diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index 2e1a9e645..b61a5aba1 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -16,6 +16,7 @@ import { AccountHolderUpdateRequest, GetTaxFormResponse, PaginatedBalanceAccountsResponse, + RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; @@ -121,7 +122,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 1c4c09c34..3d8249f10 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -17,6 +17,7 @@ import { BalanceSweepConfigurationsResponse, CreateSweepConfigurationV2, PaginatedPaymentInstrumentsResponse, + RestServiceError, SweepConfigurationV2, TransactionRulesResponse, UpdateSweepConfigurationV2, diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index cb5f174f8..e58593d70 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -12,6 +12,7 @@ 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 cb95622e0..990c03d5c 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -13,6 +13,7 @@ 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 8127a64f0..7612e2016 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -12,6 +12,7 @@ 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 fa3298ff5..84d1b4d03 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -13,6 +13,7 @@ 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 d550c4ece..c94f194b0 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -14,6 +14,7 @@ import { PinChangeRequest, PinChangeResponse, PublicKeyResponse, + RestServiceError, RevealPinRequest, RevealPinResponse, ObjectSerializer diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index d15464bef..0499bedfc 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -14,6 +14,7 @@ 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 b30105e81..8620e5b5a 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -12,6 +12,7 @@ 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 934568c13..603d1b874 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -13,6 +13,7 @@ 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 9f9a68fea..78536c29c 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -18,6 +18,7 @@ import { PaymentInstrumentRevealRequest, PaymentInstrumentRevealResponse, PaymentInstrumentUpdateRequest, + RestServiceError, TransactionRulesResponse, UpdatePaymentInstrument, ObjectSerializer diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index 0b4128ab8..7f909fc60 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { BalancePlatform, PaginatedAccountHoldersResponse, + RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index b76f5687c..2a0cf66a5 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, TransactionRule, TransactionRuleInfo, TransactionRuleResponse, diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index 8121a3ab6..585e29eaa 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, TransferRouteRequest, TransferRouteResponse, ObjectSerializer diff --git a/src/services/binLookupApi.ts b/src/services/binLookupApi.ts index e65887989..f5ae3df91 100644 --- a/src/services/binLookupApi.ts +++ b/src/services/binLookupApi.ts @@ -12,6 +12,7 @@ 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/donationsApi.ts b/src/services/checkout/donationsApi.ts index b85b89a07..e53db3720 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -15,6 +15,7 @@ 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 1b79c9297..ac7d1e267 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -21,6 +21,7 @@ import { PaymentRefundResponse, PaymentReversalRequest, PaymentReversalResponse, + ServiceError, StandalonePaymentCancelRequest, StandalonePaymentCancelResponse, ObjectSerializer diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index 530fc30a1..4ae182408 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -17,6 +17,7 @@ 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 6fcad85cf..548d781a8 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -13,6 +13,7 @@ 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 57e2fb3f6..bd6850aca 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -21,6 +21,7 @@ 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 95a0582aa..156549273 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -15,6 +15,7 @@ import { ApplePaySessionResponse, PaypalUpdateOrderRequest, PaypalUpdateOrderResponse, + ServiceError, UtilityRequest, UtilityResponse, ObjectSerializer diff --git a/src/services/dataProtectionApi.ts b/src/services/dataProtectionApi.ts index 7c2a0f30c..07db4b737 100644 --- a/src/services/dataProtectionApi.ts +++ b/src/services/dataProtectionApi.ts @@ -10,6 +10,7 @@ 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 f2f61b18b..86b6f3de0 100644 --- a/src/services/disputesApi.ts +++ b/src/services/disputesApi.ts @@ -18,6 +18,7 @@ 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 45ce6adaa..6c7796f6f 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -14,6 +14,7 @@ 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 dbd3cb953..3a25c7d8a 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -12,6 +12,7 @@ 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 a217be595..8467218db 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -15,6 +15,7 @@ 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 1fc9b48e3..fb12a96a2 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -16,6 +16,7 @@ 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 3b9d32711..9fa5950e9 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -17,6 +17,7 @@ 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 8dc4a1011..288149b2e 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -12,6 +12,7 @@ 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 38d4df809..102d9ba26 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -18,6 +18,7 @@ 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 8e58ae184..7f6073adf 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + ServiceError, TransferInstrument, TransferInstrumentInfo, ObjectSerializer diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index 2822cbbce..9bdb6cb02 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -15,6 +15,7 @@ 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 6dccd370c..86830c0d6 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -15,6 +15,7 @@ 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 c8a128d6e..0a1070979 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -12,6 +12,7 @@ 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 a1f23dd3a..6b8740ab2 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -12,6 +12,7 @@ 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 21d1c5c42..1caa3bc7e 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -14,6 +14,7 @@ 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 f8a1dee7d..3bd650245 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -16,6 +16,7 @@ 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 545afe5eb..b3d6c4d8c 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -12,6 +12,7 @@ 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 46489f6f5..cd220b1b6 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -13,6 +13,7 @@ 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 be538d69b..c26620af1 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -13,6 +13,7 @@ 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 b2c6ac73b..cb47700f1 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -15,6 +15,7 @@ import { AndroidAppsResponse, AndroidCertificatesResponse, ReprocessAndroidAppResponse, + RestServiceError, UploadAndroidAppResponse, UploadAndroidCertificateResponse, ObjectSerializer diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index ac6dd07b4..3369429bb 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -12,6 +12,7 @@ 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 4e4f9c4a0..eb2c13d28 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -12,6 +12,7 @@ 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 e01f51baa..4d80fd02f 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -16,6 +16,7 @@ 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 210b8134f..4953f5af4 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -15,6 +15,7 @@ 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 6574022ee..b70bce7f8 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -14,6 +14,7 @@ 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 202d77de0..a266ee9be 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, SplitConfiguration, SplitConfigurationList, SplitConfigurationRule, diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index ff1903e73..5cdad0cac 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -13,6 +13,7 @@ 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 b9e729cf2..783686fe0 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, ScheduleTerminalActionsRequest, ScheduleTerminalActionsResponse, ObjectSerializer diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index f444bb764..6b353199d 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -12,6 +12,7 @@ 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 06e39cea5..6caf70726 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -12,6 +12,7 @@ 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 e56221a1e..5fb48db84 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -12,6 +12,7 @@ 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 6c41e12fd..cf97028e8 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -12,6 +12,7 @@ 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 89b2f4373..7f8711311 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -12,6 +12,7 @@ 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 1893a17c6..0e706e759 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -12,6 +12,7 @@ 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 c0ef8f83f..b230c217b 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -12,6 +12,7 @@ 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 9af238a0a..55f9a62c4 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -15,6 +15,7 @@ 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 7726040e5..ebb82d2bc 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -14,6 +14,7 @@ import { CreateMerchantUserRequest, CreateUserResponse, ListMerchantUsersResponse, + RestServiceError, UpdateMerchantUserRequest, User, ObjectSerializer diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index 802aebf34..c3c85c61d 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -14,6 +14,7 @@ import { CreateCompanyWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, + RestServiceError, TestCompanyWebhookRequest, TestWebhookResponse, UpdateCompanyWebhookRequest, diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index e41f15630..9b0b2dc52 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -14,6 +14,7 @@ import { CreateMerchantWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, + RestServiceError, TestWebhookRequest, TestWebhookResponse, UpdateMerchantWebhookRequest, diff --git a/src/services/paymentApi.ts b/src/services/paymentApi.ts index d0b9076d7..d06272faa 100644 --- a/src/services/paymentApi.ts +++ b/src/services/paymentApi.ts @@ -23,6 +23,7 @@ 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 fc21763bf..a8cc47838 100644 --- a/src/services/paymentsAppApi.ts +++ b/src/services/paymentsAppApi.ts @@ -12,6 +12,7 @@ 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 03fce51d8..d4441c599 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + ServiceError, StoreDetailAndSubmitRequest, StoreDetailAndSubmitResponse, StoreDetailRequest, diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index 421a4147f..2b58a4edd 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -13,6 +13,7 @@ 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 a5e014232..e1903496a 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -13,6 +13,7 @@ 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 f4d672a04..daf1c7005 100644 --- a/src/services/recurringApi.ts +++ b/src/services/recurringApi.ts @@ -22,6 +22,7 @@ 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 28425347d..e675d176e 100644 --- a/src/services/storedValueApi.ts +++ b/src/services/storedValueApi.ts @@ -10,6 +10,7 @@ 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 7effe9e62..b654d9cb8 100644 --- a/src/services/terminalManagementApi.ts +++ b/src/services/terminalManagementApi.ts @@ -20,6 +20,7 @@ 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 a5a3e2c3e..b7f19bc5c 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -14,6 +14,7 @@ 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 3146cedb6..18a397b64 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, Transaction, TransactionSearchResponse, ObjectSerializer diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index 1d51f9e68..1a6bcea2e 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -16,9 +16,11 @@ import { FindTransfersResponse, ReturnTransferRequest, ReturnTransferResponse, + ServiceError, Transfer, TransferData, TransferInfo, + TransferServiceRestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; @@ -81,7 +83,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; diff --git a/src/typings/balancePlatform/transferRoute.ts b/src/typings/balancePlatform/transferRoute.ts index 2b8862ae9..01786c0e8 100644 --- a/src/typings/balancePlatform/transferRoute.ts +++ b/src/typings/balancePlatform/transferRoute.ts @@ -8,6 +8,7 @@ */ import { AddressRequirement } from './addressRequirement'; +import { AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement } from './addressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement'; import { AmountMinMaxRequirement } from './amountMinMaxRequirement'; import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement'; import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement'; diff --git a/src/typings/checkout/amount.ts b/src/typings/checkout/amount.ts index 46f3e1751..b542bda59 100644 --- a/src/typings/checkout/amount.ts +++ b/src/typings/checkout/amount.ts @@ -10,11 +10,11 @@ export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ 'currency': string; /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ 'value': number; diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index a152d93b3..8c0306e3d 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -239,6 +239,7 @@ export namespace CardDetails { Scheme = 'scheme', NetworkToken = 'networkToken', Giftcard = 'giftcard', - Card = 'card' + Card = 'card', + Clicktopay = 'clicktopay' } } diff --git a/src/typings/checkout/cardDonations.ts b/src/typings/checkout/cardDonations.ts index bede90ea5..8a9aae95c 100644 --- a/src/typings/checkout/cardDonations.ts +++ b/src/typings/checkout/cardDonations.ts @@ -239,6 +239,7 @@ export namespace CardDonations { Scheme = 'scheme', NetworkToken = 'networkToken', Giftcard = 'giftcard', - Card = 'card' + Card = 'card', + Clicktopay = 'clicktopay' } } diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 128a2c0b2..b3e337f5e 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -155,6 +155,7 @@ export * from './paypalUpdateOrderRequest'; export * from './paypalUpdateOrderResponse'; export * from './phone'; export * from './platformChargebackLogic'; +export * from './pseDetails'; export * from './ratepayDetails'; export * from './recurring'; export * from './responseAdditionalData3DSecure'; @@ -355,6 +356,7 @@ import { PaypalUpdateOrderRequest } from './paypalUpdateOrderRequest'; import { PaypalUpdateOrderResponse } from './paypalUpdateOrderResponse'; import { Phone } from './phone'; import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { PseDetails } from './pseDetails'; import { RatepayDetails } from './ratepayDetails'; import { Recurring } from './recurring'; import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; @@ -559,6 +561,7 @@ let enumsMap: {[index: string]: any} = { "PaymentReversalResponse.StatusEnum": PaymentReversalResponse.StatusEnum, "PaypalUpdateOrderResponse.StatusEnum": PaypalUpdateOrderResponse.StatusEnum, "PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum, + "PseDetails.TypeEnum": PseDetails.TypeEnum, "RatepayDetails.TypeEnum": RatepayDetails.TypeEnum, "Recurring.ContractEnum": Recurring.ContractEnum, "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, @@ -758,6 +761,7 @@ let typeMap: {[index: string]: any} = { "PaypalUpdateOrderResponse": PaypalUpdateOrderResponse, "Phone": Phone, "PlatformChargebackLogic": PlatformChargebackLogic, + "PseDetails": PseDetails, "RatepayDetails": RatepayDetails, "Recurring": Recurring, "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 14e9a5d28..cb60862c1 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -61,6 +61,7 @@ import { PayUUpiDetails } from './payUUpiDetails'; import { PayWithGoogleDetails } from './payWithGoogleDetails'; import { PaymentDetails } from './paymentDetails'; import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { PseDetails } from './pseDetails'; import { RatepayDetails } from './ratepayDetails'; import { RiskData } from './riskData'; import { RivertyDetails } from './rivertyDetails'; @@ -204,7 +205,7 @@ export class PaymentRequest { /** * The type and required details of a payment method to use. */ - 'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null; + 'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null; 'platformChargebackLogic'?: PlatformChargebackLogic; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. @@ -521,7 +522,7 @@ export class PaymentRequest { { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null" + "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null" }, { "name": "platformChargebackLogic", diff --git a/src/typings/checkout/pseDetails.ts b/src/typings/checkout/pseDetails.ts new file mode 100644 index 000000000..03378c965 --- /dev/null +++ b/src/typings/checkout/pseDetails.ts @@ -0,0 +1,80 @@ +/* + * The version of the OpenAPI document: v71 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PseDetails { + /** + * The shopper\'s bank. + */ + 'bank': string; + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** + * The client type. + */ + 'clientType': string; + /** + * The identification code. + */ + 'identification': string; + /** + * The identification type. + */ + 'identificationType': string; + /** + * The payment method type. + */ + 'type'?: PseDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bank", + "baseName": "bank", + "type": "string" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "clientType", + "baseName": "clientType", + "type": "string" + }, + { + "name": "identification", + "baseName": "identification", + "type": "string" + }, + { + "name": "identificationType", + "baseName": "identificationType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PseDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PseDetails.attributeTypeMap; + } +} + +export namespace PseDetails { + export enum TypeEnum { + PsePayulatam = 'pse_payulatam' + } +} diff --git a/src/typings/disputeWebhooks/amount.ts b/src/typings/disputeWebhooks/amount.ts new file mode 100644 index 000000000..1a703c2a4 --- /dev/null +++ b/src/typings/disputeWebhooks/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts b/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts new file mode 100644 index 000000000..74120e5ab --- /dev/null +++ b/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BalancePlatformNotificationResponse { + /** + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + */ + 'notificationResponse'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "notificationResponse", + "baseName": "notificationResponse", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BalancePlatformNotificationResponse.attributeTypeMap; + } +} + diff --git a/src/typings/disputeWebhooks/disputeEventNotification.ts b/src/typings/disputeWebhooks/disputeEventNotification.ts new file mode 100644 index 000000000..912fba70e --- /dev/null +++ b/src/typings/disputeWebhooks/disputeEventNotification.ts @@ -0,0 +1,115 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class DisputeEventNotification { + /** + * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. + */ + 'arn'?: string; + /** + * The unique identifier of the balance platform. + */ + 'balancePlatform'?: string; + /** + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'creationDate'?: Date; + /** + * Contains information about the dispute. + */ + 'description'?: string; + 'disputedAmount'?: Amount; + /** + * The ID of the resource. + */ + 'id'?: string; + /** + * The current status of the dispute. + */ + 'status'?: string; + /** + * Additional information about the status of the dispute, when available. + */ + 'statusDetail'?: string; + /** + * The unique reference of the transaction for which the dispute is requested. + */ + 'transactionId'?: string; + /** + * The type of dispute raised for the transaction. + */ + 'type'?: DisputeEventNotification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "arn", + "baseName": "arn", + "type": "string" + }, + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "disputedAmount", + "baseName": "disputedAmount", + "type": "Amount" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + }, + { + "name": "statusDetail", + "baseName": "statusDetail", + "type": "string" + }, + { + "name": "transactionId", + "baseName": "transactionId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DisputeEventNotification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DisputeEventNotification.attributeTypeMap; + } +} + +export namespace DisputeEventNotification { + export enum TypeEnum { + Fraud = 'fraud', + NotDelivered = 'notDelivered' + } +} diff --git a/src/typings/disputeWebhooks/disputeNotificationRequest.ts b/src/typings/disputeWebhooks/disputeNotificationRequest.ts new file mode 100644 index 000000000..a39c7ec70 --- /dev/null +++ b/src/typings/disputeWebhooks/disputeNotificationRequest.ts @@ -0,0 +1,43 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { DisputeEventNotification } from './disputeEventNotification'; + +export class DisputeNotificationRequest { + 'data': DisputeEventNotification; + /** + * Type of webhook. + */ + 'type': DisputeNotificationRequest.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "DisputeEventNotification" + }, + { + "name": "type", + "baseName": "type", + "type": "DisputeNotificationRequest.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DisputeNotificationRequest.attributeTypeMap; + } +} + +export namespace DisputeNotificationRequest { + export enum TypeEnum { + Created = 'balancePlatform.dispute.created', + Updated = 'balancePlatform.dispute.updated' + } +} diff --git a/src/typings/disputeWebhooks/models.ts b/src/typings/disputeWebhooks/models.ts new file mode 100644 index 000000000..def86d6e4 --- /dev/null +++ b/src/typings/disputeWebhooks/models.ts @@ -0,0 +1,158 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './balancePlatformNotificationResponse'; +export * from './disputeEventNotification'; +export * from './disputeNotificationRequest'; + + +import { Amount } from './amount'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { DisputeEventNotification } from './disputeEventNotification'; +import { DisputeNotificationRequest } from './disputeNotificationRequest'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "DisputeEventNotification.TypeEnum": DisputeEventNotification.TypeEnum, + "DisputeNotificationRequest.TypeEnum": DisputeNotificationRequest.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "DisputeEventNotification": DisputeEventNotification, + "DisputeNotificationRequest": DisputeNotificationRequest, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/legalEntityManagement/identificationData.ts b/src/typings/legalEntityManagement/identificationData.ts index b829a8340..f8d22bd0a 100644 --- a/src/typings/legalEntityManagement/identificationData.ts +++ b/src/typings/legalEntityManagement/identificationData.ts @@ -36,7 +36,7 @@ export class IdentificationData { */ 'number'?: string; /** - * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** + * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** */ 'type': IdentificationData.TypeEnum; diff --git a/src/typings/legalEntityManagement/onboardingLinkSettings.ts b/src/typings/legalEntityManagement/onboardingLinkSettings.ts index 399812f96..1c98570d1 100644 --- a/src/typings/legalEntityManagement/onboardingLinkSettings.ts +++ b/src/typings/legalEntityManagement/onboardingLinkSettings.ts @@ -30,6 +30,10 @@ export class OnboardingLinkSettings { */ 'editPrefilledCountry'?: boolean; /** + * Default value: **false** Indicates if only users above the age of 18 can be onboarded. + */ + 'enforceLegalAge'?: boolean; + /** * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ 'hideOnboardingIntroductionIndividual'?: boolean; @@ -98,6 +102,11 @@ export class OnboardingLinkSettings { "baseName": "editPrefilledCountry", "type": "boolean" }, + { + "name": "enforceLegalAge", + "baseName": "enforceLegalAge", + "type": "boolean" + }, { "name": "hideOnboardingIntroductionIndividual", "baseName": "hideOnboardingIntroductionIndividual", diff --git a/src/typings/legalEntityManagement/phoneNumber.ts b/src/typings/legalEntityManagement/phoneNumber.ts index bce44b150..8a247c46b 100644 --- a/src/typings/legalEntityManagement/phoneNumber.ts +++ b/src/typings/legalEntityManagement/phoneNumber.ts @@ -14,6 +14,10 @@ export class PhoneNumber { */ 'number': string; /** + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` + */ + 'phoneCountryCode'?: string; + /** * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** */ 'type'?: string; @@ -26,6 +30,11 @@ export class PhoneNumber { "baseName": "number", "type": "string" }, + { + "name": "phoneCountryCode", + "baseName": "phoneCountryCode", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/legalEntityManagement/trust.ts b/src/typings/legalEntityManagement/trust.ts index 5a7a129c8..5fd791c3a 100644 --- a/src/typings/legalEntityManagement/trust.ts +++ b/src/typings/legalEntityManagement/trust.ts @@ -21,6 +21,10 @@ export class Trust { */ 'dateOfIncorporation'?: string; /** + * A short description about the trust. Only applicable for charitable trusts in New Zealand. + */ + 'description'?: string; + /** * The registered name, if different from the `name`. */ 'doingBusinessAs'?: string; @@ -35,15 +39,11 @@ export class Trust { */ 'registrationNumber'?: string; /** - * The tax information is absent. - */ - 'taxAbsent'?: boolean | null; - /** * The tax information of the entity. */ 'taxInformation'?: Array; /** - * Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. + * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ 'type': Trust.TypeEnum; /** @@ -72,6 +72,11 @@ export class Trust { "baseName": "dateOfIncorporation", "type": "string" }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, { "name": "doingBusinessAs", "baseName": "doingBusinessAs", @@ -97,11 +102,6 @@ export class Trust { "baseName": "registrationNumber", "type": "string" }, - { - "name": "taxAbsent", - "baseName": "taxAbsent", - "type": "boolean | null" - }, { "name": "taxInformation", "baseName": "taxInformation", @@ -135,12 +135,16 @@ export class Trust { export namespace Trust { export enum TypeEnum { + BusinessTrust = 'businessTrust', CashManagementTrust = 'cashManagementTrust', + CharitableTrust = 'charitableTrust', CorporateUnitTrust = 'corporateUnitTrust', DeceasedEstate = 'deceasedEstate', + DiscretionaryTrust = 'discretionaryTrust', DiscretionaryInvestmentTrust = 'discretionaryInvestmentTrust', DiscretionaryServicesManagementTrust = 'discretionaryServicesManagementTrust', DiscretionaryTradingTrust = 'discretionaryTradingTrust', + FamilyTrust = 'familyTrust', FirstHomeSaverAccountsTrust = 'firstHomeSaverAccountsTrust', FixedTrust = 'fixedTrust', FixedUnitTrust = 'fixedUnitTrust', diff --git a/src/typings/management/amexInfo.ts b/src/typings/management/amexInfo.ts index c2492d810..6cab90b68 100644 --- a/src/typings/management/amexInfo.ts +++ b/src/typings/management/amexInfo.ts @@ -10,15 +10,15 @@ export class AmexInfo { /** - * MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels. + * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. */ 'midNumber'?: string; /** - * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is `false`. + * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. */ 'reuseMidNumber'?: boolean; /** - * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant. + * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. */ 'serviceLevel': AmexInfo.ServiceLevelEnum; diff --git a/src/typings/management/dinersInfo.ts b/src/typings/management/dinersInfo.ts new file mode 100644 index 000000000..7ee55baa9 --- /dev/null +++ b/src/typings/management/dinersInfo.ts @@ -0,0 +1,61 @@ +/* + * The version of the OpenAPI document: v3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; + +export class DinersInfo { + /** + * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. + */ + 'midNumber'?: string; + /** + * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. + */ + 'reuseMidNumber': boolean; + /** + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. + */ + 'serviceLevel'?: DinersInfo.ServiceLevelEnum; + 'transactionDescription'?: TransactionDescriptionInfo; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "midNumber", + "baseName": "midNumber", + "type": "string" + }, + { + "name": "reuseMidNumber", + "baseName": "reuseMidNumber", + "type": "boolean" + }, + { + "name": "serviceLevel", + "baseName": "serviceLevel", + "type": "DinersInfo.ServiceLevelEnum" + }, + { + "name": "transactionDescription", + "baseName": "transactionDescription", + "type": "TransactionDescriptionInfo" + } ]; + + static getAttributeTypeMap() { + return DinersInfo.attributeTypeMap; + } +} + +export namespace DinersInfo { + export enum ServiceLevelEnum { + NoContract = 'noContract', + GatewayContract = 'gatewayContract' + } +} diff --git a/src/typings/management/jCBInfo.ts b/src/typings/management/jCBInfo.ts index 3fad83dd8..4c6149799 100644 --- a/src/typings/management/jCBInfo.ts +++ b/src/typings/management/jCBInfo.ts @@ -11,17 +11,17 @@ import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class JCBInfo { /** - * MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels. + * MID (Merchant ID) number. Required for merchants operating in Japan.Format: 14 numeric characters. */ 'midNumber'?: string; /** - * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`. + * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. */ 'reuseMidNumber'?: boolean; /** - * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly. + * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ - 'serviceLevel': JCBInfo.ServiceLevelEnum; + 'serviceLevel'?: JCBInfo.ServiceLevelEnum; 'transactionDescription'?: TransactionDescriptionInfo; static discriminator: string | undefined = undefined; diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts index 732050311..d16567205 100644 --- a/src/typings/management/models.ts +++ b/src/typings/management/models.ts @@ -56,6 +56,7 @@ export * from './createUserResponse'; export * from './currency'; export * from './customNotification'; export * from './dataCenter'; +export * from './dinersInfo'; export * from './eventUrl'; export * from './externalTerminalAction'; export * from './generateApiKeyResponse'; @@ -250,6 +251,7 @@ import { CreateUserResponse } from './createUserResponse'; import { Currency } from './currency'; import { CustomNotification } from './customNotification'; import { DataCenter } from './dataCenter'; +import { DinersInfo } from './dinersInfo'; import { EventUrl } from './eventUrl'; import { ExternalTerminalAction } from './externalTerminalAction'; import { GenerateApiKeyResponse } from './generateApiKeyResponse'; @@ -418,6 +420,7 @@ let enumsMap: {[index: string]: any} = { "CreateMerchantWebhookRequest.CommunicationFormatEnum": CreateMerchantWebhookRequest.CommunicationFormatEnum, "CreateMerchantWebhookRequest.EncryptionProtocolEnum": CreateMerchantWebhookRequest.EncryptionProtocolEnum, "CreateMerchantWebhookRequest.NetworkTypeEnum": CreateMerchantWebhookRequest.NetworkTypeEnum, + "DinersInfo.ServiceLevelEnum": DinersInfo.ServiceLevelEnum, "InstallAndroidAppDetails.TypeEnum": InstallAndroidAppDetails.TypeEnum, "InstallAndroidCertificateDetails.TypeEnum": InstallAndroidCertificateDetails.TypeEnum, "JCBInfo.ServiceLevelEnum": JCBInfo.ServiceLevelEnum, @@ -534,6 +537,7 @@ let typeMap: {[index: string]: any} = { "Currency": Currency, "CustomNotification": CustomNotification, "DataCenter": DataCenter, + "DinersInfo": DinersInfo, "EventUrl": EventUrl, "ExternalTerminalAction": ExternalTerminalAction, "GenerateApiKeyResponse": GenerateApiKeyResponse, diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index aeb2dd163..f22f4e05c 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -14,6 +14,7 @@ import { ApplePayInfo } from './applePayInfo'; import { BcmcInfo } from './bcmcInfo'; import { CartesBancairesInfo } from './cartesBancairesInfo'; import { ClearpayInfo } from './clearpayInfo'; +import { DinersInfo } from './dinersInfo'; import { GenericPmWithTdiInfo } from './genericPmWithTdiInfo'; import { GiroPayInfo } from './giroPayInfo'; import { GooglePayInfo } from './googlePayInfo'; @@ -63,7 +64,7 @@ export class PaymentMethod { * The list of custom routing flags to route payment to the intended acquirer. */ 'customRoutingFlags'?: Array; - 'diners'?: GenericPmWithTdiInfo; + 'diners'?: DinersInfo; 'discover'?: GenericPmWithTdiInfo; 'eftpos_australia'?: GenericPmWithTdiInfo; /** @@ -190,7 +191,7 @@ export class PaymentMethod { { "name": "diners", "baseName": "diners", - "type": "GenericPmWithTdiInfo" + "type": "DinersInfo" }, { "name": "discover", diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts index 9a9f8d463..e6594d4f0 100644 --- a/src/typings/management/paymentMethodResponse.ts +++ b/src/typings/management/paymentMethodResponse.ts @@ -66,6 +66,7 @@ export class PaymentMethodResponse { export namespace PaymentMethodResponse { export enum TypesWithErrorsEnum { Accel = 'accel', + Affirm = 'affirm', Afterpaytouch = 'afterpaytouch', Alelo = 'alelo', Alipay = 'alipay', diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index 4bc60f918..53a323fd8 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -14,6 +14,7 @@ import { ApplePayInfo } from './applePayInfo'; import { BcmcInfo } from './bcmcInfo'; import { CartesBancairesInfo } from './cartesBancairesInfo'; import { ClearpayInfo } from './clearpayInfo'; +import { DinersInfo } from './dinersInfo'; import { GenericPmWithTdiInfo } from './genericPmWithTdiInfo'; import { GiroPayInfo } from './giroPayInfo'; import { GooglePayInfo } from './googlePayInfo'; @@ -59,7 +60,7 @@ export class PaymentMethodSetupInfo { * The list of custom routing flags to route payment to the intended acquirer. */ 'customRoutingFlags'?: Array; - 'diners'?: GenericPmWithTdiInfo; + 'diners'?: DinersInfo; 'discover'?: GenericPmWithTdiInfo; 'eftpos_australia'?: GenericPmWithTdiInfo; 'giroPay'?: GiroPayInfo; @@ -169,7 +170,7 @@ export class PaymentMethodSetupInfo { { "name": "diners", "baseName": "diners", - "type": "GenericPmWithTdiInfo" + "type": "DinersInfo" }, { "name": "discover", @@ -336,6 +337,7 @@ export namespace PaymentMethodSetupInfo { } export enum TypeEnum { Accel = 'accel', + Affirm = 'affirm', Afterpaytouch = 'afterpaytouch', Alelo = 'alelo', Alipay = 'alipay', diff --git a/src/typings/management/terminalSettings.ts b/src/typings/management/terminalSettings.ts index f080612e1..8bda07760 100644 --- a/src/typings/management/terminalSettings.ts +++ b/src/typings/management/terminalSettings.ts @@ -31,31 +31,31 @@ import { Timeouts } from './timeouts'; import { WifiProfiles } from './wifiProfiles'; export class TerminalSettings { - 'cardholderReceipt'?: CardholderReceipt | null; - 'connectivity'?: Connectivity | null; + 'cardholderReceipt'?: CardholderReceipt; + 'connectivity'?: Connectivity; /** * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. */ 'gratuities'?: Array | null; - 'hardware'?: Hardware | null; - 'localization'?: Localization | null; - 'nexo'?: Nexo | null; - 'offlineProcessing'?: OfflineProcessing | null; - 'opi'?: Opi | null; - 'passcodes'?: Passcodes | null; - 'payAtTable'?: PayAtTable | null; - 'payment'?: Payment | null; - 'receiptOptions'?: ReceiptOptions | null; - 'receiptPrinting'?: ReceiptPrinting | null; - 'refunds'?: Refunds | null; - 'signature'?: Signature | null; - 'standalone'?: Standalone | null; - 'storeAndForward'?: StoreAndForward | null; - 'surcharge'?: Surcharge | null; - 'tapToPay'?: TapToPay | null; - 'terminalInstructions'?: TerminalInstructions | null; - 'timeouts'?: Timeouts | null; - 'wifiProfiles'?: WifiProfiles | null; + 'hardware'?: Hardware; + 'localization'?: Localization; + 'nexo'?: Nexo; + 'offlineProcessing'?: OfflineProcessing; + 'opi'?: Opi; + 'passcodes'?: Passcodes; + 'payAtTable'?: PayAtTable; + 'payment'?: Payment; + 'receiptOptions'?: ReceiptOptions; + 'receiptPrinting'?: ReceiptPrinting; + 'refunds'?: Refunds; + 'signature'?: Signature; + 'standalone'?: Standalone; + 'storeAndForward'?: StoreAndForward; + 'surcharge'?: Surcharge; + 'tapToPay'?: TapToPay; + 'terminalInstructions'?: TerminalInstructions; + 'timeouts'?: Timeouts; + 'wifiProfiles'?: WifiProfiles; static discriminator: string | undefined = undefined;