diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index 7da6a45d2..a6d0caf72 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -16,7 +16,6 @@ import { AccountHolderUpdateRequest, GetTaxFormResponse, PaginatedBalanceAccountsResponse, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; @@ -103,7 +102,7 @@ export class AccountHoldersApi extends Service { * @param year {@link number } The tax year in YYYY format for the tax form you want to retrieve * @return {@link GetTaxFormResponse } */ - public async getTaxForm(id: string, formType?: 'US1099k' | 'US1099nec', year?: number, requestOptions?: IRequest.Options): Promise { + public async getTaxForm(id: string, formType?: "US1099k" | "US1099nec", year?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/accountHolders/{id}/taxForms` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); diff --git a/src/services/balancePlatform/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index ffff0ea11..b117b62c1 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -17,7 +17,6 @@ import { BalanceSweepConfigurationsResponse, CreateSweepConfigurationV2, PaginatedPaymentInstrumentsResponse, - RestServiceError, SweepConfigurationV2, UpdateSweepConfigurationV2, ObjectSerializer diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index e58593d70..cb5f174f8 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { BankAccountIdentificationValidationRequest, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/cardOrdersApi.ts b/src/services/balancePlatform/cardOrdersApi.ts index 990c03d5c..cb95622e0 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PaginatedGetCardOrderItemResponse, PaginatedGetCardOrderResponse, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/grantAccountsApi.ts b/src/services/balancePlatform/grantAccountsApi.ts index 7612e2016..8127a64f0 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { CapitalGrantAccount, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/grantOffersApi.ts b/src/services/balancePlatform/grantOffersApi.ts index 84d1b4d03..fa3298ff5 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { GrantOffer, GrantOffers, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/manageCardPINApi.ts b/src/services/balancePlatform/manageCardPINApi.ts index c94f194b0..d550c4ece 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -14,7 +14,6 @@ import { PinChangeRequest, PinChangeResponse, PublicKeyResponse, - RestServiceError, RevealPinRequest, RevealPinResponse, ObjectSerializer diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index 0499bedfc..d15464bef 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -14,7 +14,6 @@ import { RegisterSCAFinalResponse, RegisterSCARequest, RegisterSCAResponse, - RestServiceError, SearchRegisteredDevicesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts index 8620e5b5a..b30105e81 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GetNetworkTokenResponse, - RestServiceError, UpdateNetworkTokenRequest, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts index 603d1b874..934568c13 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PaymentInstrumentGroup, PaymentInstrumentGroupInfo, - RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 78536c29c..9f9a68fea 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -18,7 +18,6 @@ import { PaymentInstrumentRevealRequest, PaymentInstrumentRevealResponse, PaymentInstrumentUpdateRequest, - RestServiceError, TransactionRulesResponse, UpdatePaymentInstrument, ObjectSerializer diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index dbc7c296b..fe87aa4ed 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { BalancePlatform, PaginatedAccountHoldersResponse, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index 2a0cf66a5..b76f5687c 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { TransactionRule, TransactionRuleInfo, TransactionRuleResponse, diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index 585e29eaa..8121a3ab6 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { TransferRouteRequest, TransferRouteResponse, ObjectSerializer diff --git a/src/services/binLookupApi.ts b/src/services/binLookupApi.ts index f5ae3df91..e65887989 100644 --- a/src/services/binLookupApi.ts +++ b/src/services/binLookupApi.ts @@ -12,7 +12,6 @@ import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; import { CostEstimateRequest } from "../typings/binLookup/models"; import { CostEstimateResponse } from "../typings/binLookup/models"; -import { ServiceError } from "../typings/binLookup/models"; import { ThreeDSAvailabilityRequest } from "../typings/binLookup/models"; import { ThreeDSAvailabilityResponse } from "../typings/binLookup/models"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/checkout/classicCheckoutSDKApi.ts b/src/services/checkout/classicCheckoutSDKApi.ts index 847acc93c..f52f6a81f 100644 --- a/src/services/checkout/classicCheckoutSDKApi.ts +++ b/src/services/checkout/classicCheckoutSDKApi.ts @@ -15,7 +15,6 @@ import { PaymentSetupResponse, PaymentVerificationRequest, PaymentVerificationResponse, - ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index e53db3720..b85b89a07 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -15,7 +15,6 @@ import { DonationCampaignsResponse, DonationPaymentRequest, DonationPaymentResponse, - ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index ac7d1e267..1b79c9297 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -21,7 +21,6 @@ import { PaymentRefundResponse, PaymentReversalRequest, PaymentReversalResponse, - ServiceError, StandalonePaymentCancelRequest, StandalonePaymentCancelResponse, ObjectSerializer diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index 4ae182408..530fc30a1 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -17,7 +17,6 @@ import { CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, - ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/paymentLinksApi.ts b/src/services/checkout/paymentLinksApi.ts index 548d781a8..6fcad85cf 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PaymentLinkRequest, PaymentLinkResponse, - ServiceError, UpdatePaymentLinkRequest, ObjectSerializer } from "../../typings/checkout/models"; diff --git a/src/services/checkout/paymentsApi.ts b/src/services/checkout/paymentsApi.ts index 72e5a00e6..3a6a35ed4 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -21,7 +21,6 @@ import { PaymentMethodsResponse, PaymentRequest, PaymentResponse, - ServiceError, SessionResultResponse, ObjectSerializer } from "../../typings/checkout/models"; diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index 156549273..95a0582aa 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -15,7 +15,6 @@ import { ApplePaySessionResponse, PaypalUpdateOrderRequest, PaypalUpdateOrderResponse, - ServiceError, UtilityRequest, UtilityResponse, ObjectSerializer diff --git a/src/services/dataProtectionApi.ts b/src/services/dataProtectionApi.ts index 07db4b737..7c2a0f30c 100644 --- a/src/services/dataProtectionApi.ts +++ b/src/services/dataProtectionApi.ts @@ -10,7 +10,6 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; -import { ServiceError } from "../typings/dataProtection/models"; import { SubjectErasureByPspReferenceRequest } from "../typings/dataProtection/models"; import { SubjectErasureResponse } from "../typings/dataProtection/models"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/disputesApi.ts b/src/services/disputesApi.ts index 86b6f3de0..f2f61b18b 100644 --- a/src/services/disputesApi.ts +++ b/src/services/disputesApi.ts @@ -18,7 +18,6 @@ import { DefenseReasonsRequest } from "../typings/disputes/models"; import { DefenseReasonsResponse } from "../typings/disputes/models"; import { DeleteDefenseDocumentRequest } from "../typings/disputes/models"; import { DeleteDefenseDocumentResponse } from "../typings/disputes/models"; -import { ServiceError } from "../typings/disputes/models"; import { SupplyDefenseDocumentRequest } from "../typings/disputes/models"; import { SupplyDefenseDocumentResponse } from "../typings/disputes/models"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index 6c7796f6f..45ce6adaa 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -14,7 +14,6 @@ import { BusinessLine, BusinessLineInfo, BusinessLineInfoUpdate, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 3a25c7d8a..dbd3cb953 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Document, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index 8467218db..a217be595 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -15,7 +15,6 @@ import { OnboardingLinkInfo, OnboardingTheme, OnboardingThemes, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index fb12a96a2..1fc9b48e3 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -16,7 +16,6 @@ import { LegalEntity, LegalEntityInfo, LegalEntityInfoRequiredType, - ServiceError, VerificationErrors, ObjectSerializer } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index 9fa5950e9..3b9d32711 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -17,7 +17,6 @@ import { GetPciQuestionnaireResponse, PciSigningRequest, PciSigningResponse, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 288149b2e..8dc4a1011 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { CheckTaxElectronicDeliveryConsentResponse, - ServiceError, SetTaxElectronicDeliveryConsentRequest, ObjectSerializer } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index 9b680259a..0215ae644 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -17,7 +17,6 @@ import { GetTermsOfServiceAcceptanceInfosResponse, GetTermsOfServiceDocumentRequest, GetTermsOfServiceDocumentResponse, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index 7f6073adf..8e58ae184 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - ServiceError, +import { TransferInstrument, TransferInstrumentInfo, ObjectSerializer diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index 9bdb6cb02..2822cbbce 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -15,7 +15,6 @@ import { CreateCompanyApiCredentialRequest, CreateCompanyApiCredentialResponse, ListCompanyApiCredentialsResponse, - RestServiceError, UpdateCompanyApiCredentialRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/aPICredentialsMerchantLevelApi.ts b/src/services/management/aPICredentialsMerchantLevelApi.ts index 86830c0d6..6dccd370c 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -15,7 +15,6 @@ import { CreateApiCredentialResponse, CreateMerchantApiCredentialRequest, ListMerchantApiCredentialsResponse, - RestServiceError, UpdateMerchantApiCredentialRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/aPIKeyCompanyLevelApi.ts b/src/services/management/aPIKeyCompanyLevelApi.ts index 0a1070979..c8a128d6e 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateApiKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/aPIKeyMerchantLevelApi.ts b/src/services/management/aPIKeyMerchantLevelApi.ts index 6b8740ab2..a1f23dd3a 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateApiKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountCompanyLevelApi.ts b/src/services/management/accountCompanyLevelApi.ts index 1caa3bc7e..21d1c5c42 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -14,7 +14,6 @@ import { Company, ListCompanyResponse, ListMerchantResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountMerchantLevelApi.ts b/src/services/management/accountMerchantLevelApi.ts index 3bd650245..f8a1dee7d 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -16,7 +16,6 @@ import { ListMerchantResponse, Merchant, RequestActivationResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountStoreLevelApi.ts b/src/services/management/accountStoreLevelApi.ts index b3d6c4d8c..545afe5eb 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { ListStoresResponse, - RestServiceError, Store, StoreCreationRequest, StoreCreationWithMerchantCodeRequest, diff --git a/src/services/management/allowedOriginsCompanyLevelApi.ts b/src/services/management/allowedOriginsCompanyLevelApi.ts index cd220b1b6..46489f6f5 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { AllowedOrigin, AllowedOriginsResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/allowedOriginsMerchantLevelApi.ts b/src/services/management/allowedOriginsMerchantLevelApi.ts index c26620af1..be538d69b 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { AllowedOrigin, AllowedOriginsResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/androidFilesCompanyLevelApi.ts b/src/services/management/androidFilesCompanyLevelApi.ts index cb47700f1..b2c6ac73b 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -15,7 +15,6 @@ import { AndroidAppsResponse, AndroidCertificatesResponse, ReprocessAndroidAppResponse, - RestServiceError, UploadAndroidAppResponse, UploadAndroidCertificateResponse, ObjectSerializer diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index 3369429bb..ac6dd07b4 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateClientKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/clientKeyMerchantLevelApi.ts b/src/services/management/clientKeyMerchantLevelApi.ts index eb2c13d28..4e4f9c4a0 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateClientKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/myAPICredentialApi.ts b/src/services/management/myAPICredentialApi.ts index 4d80fd02f..e01f51baa 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -16,7 +16,6 @@ import { CreateAllowedOriginRequest, GenerateClientKeyResponse, MeApiCredential, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/paymentMethodsMerchantLevelApi.ts b/src/services/management/paymentMethodsMerchantLevelApi.ts index 4953f5af4..210b8134f 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -15,7 +15,6 @@ import { PaymentMethod, PaymentMethodResponse, PaymentMethodSetupInfo, - RestServiceError, UpdatePaymentMethodInfo, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/payoutSettingsMerchantLevelApi.ts b/src/services/management/payoutSettingsMerchantLevelApi.ts index b70bce7f8..6574022ee 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -14,7 +14,6 @@ import { PayoutSettings, PayoutSettingsRequest, PayoutSettingsResponse, - RestServiceError, UpdatePayoutSettingsRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index a266ee9be..202d77de0 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { SplitConfiguration, SplitConfigurationList, SplitConfigurationRule, diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index 5cdad0cac..ff1903e73 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { ExternalTerminalAction, ListExternalTerminalActionsResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/terminalActionsTerminalLevelApi.ts b/src/services/management/terminalActionsTerminalLevelApi.ts index 783686fe0..b9e729cf2 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { ScheduleTerminalActionsRequest, ScheduleTerminalActionsResponse, ObjectSerializer diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index 6b353199d..f444bb764 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { BillingEntitiesResponse, - RestServiceError, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, diff --git a/src/services/management/terminalOrdersMerchantLevelApi.ts b/src/services/management/terminalOrdersMerchantLevelApi.ts index 6caf70726..06e39cea5 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { BillingEntitiesResponse, - RestServiceError, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, diff --git a/src/services/management/terminalSettingsCompanyLevelApi.ts b/src/services/management/terminalSettingsCompanyLevelApi.ts index 5fb48db84..e56221a1e 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsMerchantLevelApi.ts b/src/services/management/terminalSettingsMerchantLevelApi.ts index cf97028e8..6c41e12fd 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsStoreLevelApi.ts b/src/services/management/terminalSettingsStoreLevelApi.ts index 7f8711311..89b2f4373 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsTerminalLevelApi.ts b/src/services/management/terminalSettingsTerminalLevelApi.ts index 0e706e759..1893a17c6 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalsTerminalLevelApi.ts b/src/services/management/terminalsTerminalLevelApi.ts index b230c217b..c0ef8f83f 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { ListTerminalsResponse, - RestServiceError, TerminalReassignmentRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/usersCompanyLevelApi.ts b/src/services/management/usersCompanyLevelApi.ts index 55f9a62c4..9af238a0a 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -15,7 +15,6 @@ import { CreateCompanyUserRequest, CreateCompanyUserResponse, ListCompanyUsersResponse, - RestServiceError, UpdateCompanyUserRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/usersMerchantLevelApi.ts b/src/services/management/usersMerchantLevelApi.ts index ebb82d2bc..7726040e5 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -14,7 +14,6 @@ import { CreateMerchantUserRequest, CreateUserResponse, ListMerchantUsersResponse, - RestServiceError, UpdateMerchantUserRequest, User, ObjectSerializer diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index c3c85c61d..802aebf34 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -14,7 +14,6 @@ import { CreateCompanyWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, - RestServiceError, TestCompanyWebhookRequest, TestWebhookResponse, UpdateCompanyWebhookRequest, diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index 9b0b2dc52..e41f15630 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -14,7 +14,6 @@ import { CreateMerchantWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, - RestServiceError, TestWebhookRequest, TestWebhookResponse, UpdateMerchantWebhookRequest, diff --git a/src/services/paymentApi.ts b/src/services/paymentApi.ts index d06272faa..d0b9076d7 100644 --- a/src/services/paymentApi.ts +++ b/src/services/paymentApi.ts @@ -23,7 +23,6 @@ import { PaymentRequest3d } from "../typings/payment/models"; import { PaymentRequest3ds2 } from "../typings/payment/models"; import { PaymentResult } from "../typings/payment/models"; import { RefundRequest } from "../typings/payment/models"; -import { ServiceError } from "../typings/payment/models"; import { TechnicalCancelRequest } from "../typings/payment/models"; import { ThreeDS2ResultRequest } from "../typings/payment/models"; import { ThreeDS2ResultResponse } from "../typings/payment/models"; diff --git a/src/services/paymentsAppApi.ts b/src/services/paymentsAppApi.ts index a8cc47838..fc21763bf 100644 --- a/src/services/paymentsAppApi.ts +++ b/src/services/paymentsAppApi.ts @@ -12,7 +12,6 @@ import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; import { BoardingTokenRequest } from "../typings/paymentsApp/models"; import { BoardingTokenResponse } from "../typings/paymentsApp/models"; -import { DefaultErrorResponseEntity } from "../typings/paymentsApp/models"; import { PaymentsAppResponse } from "../typings/paymentsApp/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; diff --git a/src/services/payout/initializationApi.ts b/src/services/payout/initializationApi.ts index d4441c599..03fce51d8 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - ServiceError, +import { StoreDetailAndSubmitRequest, StoreDetailAndSubmitResponse, StoreDetailRequest, diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index 2b58a4edd..421a4147f 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PayoutRequest, PayoutResponse, - ServiceError, ObjectSerializer } from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/payout/reviewingApi.ts b/src/services/payout/reviewingApi.ts index e1903496a..a5e014232 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { ModifyRequest, ModifyResponse, - ServiceError, ObjectSerializer } from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/recurringApi.ts b/src/services/recurringApi.ts index daf1c7005..f4d672a04 100644 --- a/src/services/recurringApi.ts +++ b/src/services/recurringApi.ts @@ -22,7 +22,6 @@ import { RecurringDetailsRequest } from "../typings/recurring/models"; import { RecurringDetailsResult } from "../typings/recurring/models"; import { ScheduleAccountUpdaterRequest } from "../typings/recurring/models"; import { ScheduleAccountUpdaterResult } from "../typings/recurring/models"; -import { ServiceError } from "../typings/recurring/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; import { ObjectSerializer } from "../typings/recurring/models"; diff --git a/src/services/storedValueApi.ts b/src/services/storedValueApi.ts index e675d176e..28425347d 100644 --- a/src/services/storedValueApi.ts +++ b/src/services/storedValueApi.ts @@ -10,7 +10,6 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; -import { ServiceError } from "../typings/storedValue/models"; import { StoredValueBalanceCheckRequest } from "../typings/storedValue/models"; import { StoredValueBalanceCheckResponse } from "../typings/storedValue/models"; import { StoredValueBalanceMergeRequest } from "../typings/storedValue/models"; diff --git a/src/services/terminalManagementApi.ts b/src/services/terminalManagementApi.ts index b654d9cb8..7effe9e62 100644 --- a/src/services/terminalManagementApi.ts +++ b/src/services/terminalManagementApi.ts @@ -20,7 +20,6 @@ import { GetTerminalDetailsRequest } from "../typings/terminalManagement/models" import { GetTerminalDetailsResponse } from "../typings/terminalManagement/models"; import { GetTerminalsUnderAccountRequest } from "../typings/terminalManagement/models"; import { GetTerminalsUnderAccountResponse } from "../typings/terminalManagement/models"; -import { ServiceError } from "../typings/terminalManagement/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; import { ObjectSerializer } from "../typings/terminalManagement/models"; diff --git a/src/services/transfers/capitalApi.ts b/src/services/transfers/capitalApi.ts index b7f19bc5c..a5a3e2c3e 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -14,7 +14,6 @@ import { CapitalGrant, CapitalGrantInfo, CapitalGrants, - RestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/transfers/transactionsApi.ts b/src/services/transfers/transactionsApi.ts index 18a397b64..3146cedb6 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { Transaction, TransactionSearchResponse, ObjectSerializer diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index a01f1b30e..b40a94778 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -16,11 +16,9 @@ import { FindTransfersResponse, ReturnTransferRequest, ReturnTransferResponse, - ServiceError, Transfer, TransferData, TransferInfo, - TransferServiceRestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; @@ -83,7 +81,7 @@ export class TransfersApi extends Service { * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link FindTransfersResponse } */ - public async getAllTransfers(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: 'bank' | 'card' | 'grants' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade', createdSince?: Date, createdUntil?: Date, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransfers(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: "bank" | "card" | "grants" | "internal" | "issuedCard" | "migration" | "platformPayment" | "topUp" | "upgrade", createdSince?: Date, createdUntil?: Date, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); const hasDefinedQueryParams = balancePlatform ?? accountHolderId ?? balanceAccountId ?? paymentInstrumentId ?? reference ?? category ?? createdSince ?? createdUntil ?? cursor ?? limit;