From 40c56bea90da817fbb8d045661215d333df623eb Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Fri, 6 Dec 2024 12:19:38 +0000 Subject: [PATCH] [reformat][adyen-sdk-automation] automated change --- .../balancePlatform/accountHoldersApi.ts | 3 +- .../balancePlatform/balanceAccountsApi.ts | 1 + .../bankAccountValidationApi.ts | 1 + src/services/balancePlatform/cardOrdersApi.ts | 1 + .../balancePlatform/grantAccountsApi.ts | 1 + .../balancePlatform/grantOffersApi.ts | 1 + .../balancePlatform/manageCardPINApi.ts | 1 + .../balancePlatform/manageSCADevicesApi.ts | 1 + .../balancePlatform/networkTokensApi.ts | 1 + .../paymentInstrumentGroupsApi.ts | 1 + .../balancePlatform/paymentInstrumentsApi.ts | 1 + src/services/balancePlatform/platformApi.ts | 1 + .../balancePlatform/transactionRulesApi.ts | 3 +- .../balancePlatform/transferRoutesApi.ts | 3 +- src/services/binLookupApi.ts | 1 + src/services/checkout/donationsApi.ts | 1 + src/services/checkout/modificationsApi.ts | 1 + src/services/checkout/ordersApi.ts | 1 + src/services/checkout/paymentLinksApi.ts | 1 + src/services/checkout/paymentsApi.ts | 1 + src/services/checkout/utilityApi.ts | 1 + src/services/dataProtectionApi.ts | 1 + src/services/disputesApi.ts | 1 + .../legalEntityManagement/businessLinesApi.ts | 1 + .../legalEntityManagement/documentsApi.ts | 1 + .../hostedOnboardingApi.ts | 1 + .../legalEntityManagement/legalEntitiesApi.ts | 1 + .../pCIQuestionnairesApi.ts | 23 +++ .../taxEDeliveryConsentApi.ts | 1 + .../termsOfServiceApi.ts | 1 + .../transferInstrumentsApi.ts | 3 +- .../aPICredentialsCompanyLevelApi.ts | 1 + .../aPICredentialsMerchantLevelApi.ts | 1 + .../management/aPIKeyCompanyLevelApi.ts | 1 + .../management/aPIKeyMerchantLevelApi.ts | 1 + .../management/accountCompanyLevelApi.ts | 1 + .../management/accountMerchantLevelApi.ts | 1 + .../management/accountStoreLevelApi.ts | 1 + .../allowedOriginsCompanyLevelApi.ts | 1 + .../allowedOriginsMerchantLevelApi.ts | 1 + .../management/androidFilesCompanyLevelApi.ts | 1 + .../management/clientKeyCompanyLevelApi.ts | 1 + .../management/clientKeyMerchantLevelApi.ts | 1 + src/services/management/myAPICredentialApi.ts | 1 + .../paymentMethodsMerchantLevelApi.ts | 1 + .../payoutSettingsMerchantLevelApi.ts | 1 + .../splitConfigurationMerchantLevelApi.ts | 3 +- .../terminalActionsCompanyLevelApi.ts | 1 + .../terminalActionsTerminalLevelApi.ts | 3 +- .../terminalOrdersCompanyLevelApi.ts | 1 + .../terminalOrdersMerchantLevelApi.ts | 1 + .../terminalSettingsCompanyLevelApi.ts | 1 + .../terminalSettingsMerchantLevelApi.ts | 1 + .../terminalSettingsStoreLevelApi.ts | 1 + .../terminalSettingsTerminalLevelApi.ts | 1 + .../management/terminalsTerminalLevelApi.ts | 1 + .../management/usersCompanyLevelApi.ts | 1 + .../management/usersMerchantLevelApi.ts | 1 + .../management/webhooksCompanyLevelApi.ts | 1 + .../management/webhooksMerchantLevelApi.ts | 1 + src/services/paymentApi.ts | 1 + src/services/paymentsAppApi.ts | 1 + src/services/payout/initializationApi.ts | 3 +- src/services/payout/instantPayoutsApi.ts | 1 + src/services/payout/reviewingApi.ts | 1 + src/services/recurringApi.ts | 1 + src/services/storedValueApi.ts | 1 + src/services/terminalManagementApi.ts | 1 + src/services/transfers/capitalApi.ts | 1 + src/services/transfers/transactionsApi.ts | 3 +- src/services/transfers/transfersApi.ts | 4 +- src/typings/balancePlatform/transferRoute.ts | 1 + src/typings/checkout/amount.ts | 4 +- src/typings/checkout/cardDetails.ts | 12 +- src/typings/checkout/cardDonations.ts | 12 +- src/typings/checkout/models.ts | 4 + src/typings/checkout/paymentRequest.ts | 5 +- src/typings/checkout/pseDetails.ts | 80 +++++++++ src/typings/disputeWebhooks/amount.ts | 39 +++++ .../balancePlatformNotificationResponse.ts | 30 ++++ .../disputeEventNotification.ts | 115 +++++++++++++ .../disputeNotificationRequest.ts | 43 +++++ src/typings/disputeWebhooks/models.ts | 158 +++++++++++++++++ .../calculatePciStatusRequest.ts | 38 +++++ .../calculatePciStatusResponse.ts | 30 ++++ src/typings/legalEntityManagement/document.ts | 2 +- .../generatePciDescriptionResponse.ts | 2 +- .../identificationData.ts | 2 +- .../legalEntityManagement/legalEntity.ts | 7 + .../legalEntityAssociation.ts | 8 +- .../legalEntityManagement/legalEntityInfo.ts | 7 + .../legalEntityInfoRequiredType.ts | 7 + src/typings/legalEntityManagement/models.ts | 12 ++ .../onboardingLinkSettings.ts | 9 + .../legalEntityManagement/phoneNumber.ts | 9 + src/typings/legalEntityManagement/trust.ts | 24 +-- .../unincorporatedPartnership.ts | 161 ++++++++++++++++++ src/typings/management/amexInfo.ts | 6 +- src/typings/management/dinersInfo.ts | 61 +++++++ src/typings/management/jCBInfo.ts | 8 +- src/typings/management/models.ts | 4 + src/typings/management/paymentMethod.ts | 5 +- .../management/paymentMethodResponse.ts | 1 + .../management/paymentMethodSetupInfo.ts | 6 +- src/typings/management/terminalSettings.ts | 42 ++--- 105 files changed, 1003 insertions(+), 63 deletions(-) create mode 100644 src/typings/checkout/pseDetails.ts create mode 100644 src/typings/disputeWebhooks/amount.ts create mode 100644 src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts create mode 100644 src/typings/disputeWebhooks/disputeEventNotification.ts create mode 100644 src/typings/disputeWebhooks/disputeNotificationRequest.ts create mode 100644 src/typings/disputeWebhooks/models.ts create mode 100644 src/typings/legalEntityManagement/calculatePciStatusRequest.ts create mode 100644 src/typings/legalEntityManagement/calculatePciStatusResponse.ts create mode 100644 src/typings/legalEntityManagement/unincorporatedPartnership.ts create mode 100644 src/typings/management/dinersInfo.ts 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..e04ff6f70 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -11,12 +11,15 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; import { + CalculatePciStatusRequest, + CalculatePciStatusResponse, GeneratePciDescriptionRequest, GeneratePciDescriptionResponse, GetPciQuestionnaireInfosResponse, GetPciQuestionnaireResponse, PciSigningRequest, PciSigningResponse, + ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; @@ -32,6 +35,26 @@ export class PCIQuestionnairesApi extends Service { this.baseUrl = this.createBaseUrl(this.API_BASEPATH); } + /** + * @summary Calculate PCI status of a legal entity + * @param id {@link string } The unique identifier of the legal entity to calculate PCI status. + * @param calculatePciStatusRequest {@link CalculatePciStatusRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link CalculatePciStatusResponse } + */ + public async calculatePciStatusOfLegalEntity(id: string, calculatePciStatusRequest: CalculatePciStatusRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires/signingRequired` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + const request: CalculatePciStatusRequest = ObjectSerializer.serialize(calculatePciStatusRequest, "CalculatePciStatusRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + return ObjectSerializer.deserialize(response, "CalculatePciStatusResponse"); + } + /** * @summary Generate PCI questionnaire * @param id {@link string } The unique identifier of the legal entity to get PCI questionnaire information. 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..b6a29d678 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -26,6 +26,10 @@ export class CardDetails { */ 'cvc'?: string; /** + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + */ + 'encryptedCard'?: string; + /** * The encrypted card number. */ 'encryptedCardNumber'?: string; @@ -128,6 +132,11 @@ export class CardDetails { "baseName": "cvc", "type": "string" }, + { + "name": "encryptedCard", + "baseName": "encryptedCard", + "type": "string" + }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", @@ -239,6 +248,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..d41b72590 100644 --- a/src/typings/checkout/cardDonations.ts +++ b/src/typings/checkout/cardDonations.ts @@ -26,6 +26,10 @@ export class CardDonations { */ 'cvc'?: string; /** + * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. + */ + 'encryptedCard'?: string; + /** * The encrypted card number. */ 'encryptedCardNumber'?: string; @@ -128,6 +132,11 @@ export class CardDonations { "baseName": "cvc", "type": "string" }, + { + "name": "encryptedCard", + "baseName": "encryptedCard", + "type": "string" + }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", @@ -239,6 +248,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..a52ca2bdb --- /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-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + */ + '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/calculatePciStatusRequest.ts b/src/typings/legalEntityManagement/calculatePciStatusRequest.ts new file mode 100644 index 000000000..92f46facc --- /dev/null +++ b/src/typings/legalEntityManagement/calculatePciStatusRequest.ts @@ -0,0 +1,38 @@ +/* + * 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. + */ + + +export class CalculatePciStatusRequest { + /** + * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** + */ + 'additionalSalesChannels'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalSalesChannels", + "baseName": "additionalSalesChannels", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CalculatePciStatusRequest.attributeTypeMap; + } +} + +export namespace CalculatePciStatusRequest { + export enum AdditionalSalesChannelsEnum { + ECommerce = 'eCommerce', + EcomMoto = 'ecomMoto', + Pos = 'pos', + PosMoto = 'posMoto' + } +} diff --git a/src/typings/legalEntityManagement/calculatePciStatusResponse.ts b/src/typings/legalEntityManagement/calculatePciStatusResponse.ts new file mode 100644 index 000000000..0926ae48a --- /dev/null +++ b/src/typings/legalEntityManagement/calculatePciStatusResponse.ts @@ -0,0 +1,30 @@ +/* + * 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. + */ + + +export class CalculatePciStatusResponse { + /** + * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. + */ + 'signingRequired'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "signingRequired", + "baseName": "signingRequired", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CalculatePciStatusResponse.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts index 7a84709a2..d6a463792 100644 --- a/src/typings/legalEntityManagement/document.ts +++ b/src/typings/legalEntityManagement/document.ts @@ -60,7 +60,7 @@ export class Document { 'number'?: string; 'owner'?: OwnerEntity; /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ 'type': Document.TypeEnum; diff --git a/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts b/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts index edc555130..0224a7d24 100644 --- a/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts +++ b/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts @@ -18,7 +18,7 @@ export class GeneratePciDescriptionResponse { */ 'language'?: string; /** - * The array of Adyen-generated unique identifiers for the questionnaires. + * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. */ 'pciTemplateReferences'?: Array; 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/legalEntity.ts b/src/typings/legalEntityManagement/legalEntity.ts index 32035fae9..7149b044d 100644 --- a/src/typings/legalEntityManagement/legalEntity.ts +++ b/src/typings/legalEntityManagement/legalEntity.ts @@ -17,6 +17,7 @@ import { Organization } from './organization'; import { SoleProprietorship } from './soleProprietorship'; import { TransferInstrumentReference } from './transferInstrumentReference'; import { Trust } from './trust'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; import { VerificationDeadline } from './verificationDeadline'; export class LegalEntity { @@ -63,6 +64,7 @@ export class LegalEntity { * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ 'type'?: LegalEntity.TypeEnum; + 'unincorporatedPartnership'?: UnincorporatedPartnership; /** * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @@ -140,6 +142,11 @@ export class LegalEntity { "baseName": "type", "type": "LegalEntity.TypeEnum" }, + { + "name": "unincorporatedPartnership", + "baseName": "unincorporatedPartnership", + "type": "UnincorporatedPartnership" + }, { "name": "verificationDeadlines", "baseName": "verificationDeadlines", diff --git a/src/typings/legalEntityManagement/legalEntityAssociation.ts b/src/typings/legalEntityManagement/legalEntityAssociation.ts index 49e7d4042..552694af2 100644 --- a/src/typings/legalEntityManagement/legalEntityAssociation.ts +++ b/src/typings/legalEntityManagement/legalEntityAssociation.ts @@ -34,11 +34,11 @@ export class LegalEntityAssociation { */ 'relationship'?: string; /** - * Defines the Kyc Exemption Reason for a Settlor associated with a trust. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. */ 'settlorExemptionReason'?: Array; /** - * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. + * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** */ 'type': LegalEntityAssociation.TypeEnum; @@ -99,6 +99,7 @@ export namespace LegalEntityAssociation { LegalRepresentative = 'legalRepresentative', PciSignatory = 'pciSignatory', Protector = 'protector', + SecondaryPartner = 'secondaryPartner', SecondaryTrustee = 'secondaryTrustee', Settlor = 'settlor', Signatory = 'signatory', @@ -108,6 +109,7 @@ export namespace LegalEntityAssociation { UboThroughControl = 'uboThroughControl', UboThroughOwnership = 'uboThroughOwnership', UltimateParentCompany = 'ultimateParentCompany', - UndefinedBeneficiary = 'undefinedBeneficiary' + UndefinedBeneficiary = 'undefinedBeneficiary', + UnincorporatedPartnership = 'unincorporatedPartnership' } } diff --git a/src/typings/legalEntityManagement/legalEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfo.ts index 21f54cc23..46b000f8f 100644 --- a/src/typings/legalEntityManagement/legalEntityInfo.ts +++ b/src/typings/legalEntityManagement/legalEntityInfo.ts @@ -13,6 +13,7 @@ import { LegalEntityCapability } from './legalEntityCapability'; import { Organization } from './organization'; import { SoleProprietorship } from './soleProprietorship'; import { Trust } from './trust'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; export class LegalEntityInfo { /** @@ -35,6 +36,7 @@ export class LegalEntityInfo { * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ 'type'?: LegalEntityInfo.TypeEnum; + 'unincorporatedPartnership'?: UnincorporatedPartnership; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @@ -83,6 +85,11 @@ export class LegalEntityInfo { "baseName": "type", "type": "LegalEntityInfo.TypeEnum" }, + { + "name": "unincorporatedPartnership", + "baseName": "unincorporatedPartnership", + "type": "UnincorporatedPartnership" + }, { "name": "verificationPlan", "baseName": "verificationPlan", diff --git a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts index 02da3956a..d52a430fb 100644 --- a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts +++ b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts @@ -13,6 +13,7 @@ import { LegalEntityCapability } from './legalEntityCapability'; import { Organization } from './organization'; import { SoleProprietorship } from './soleProprietorship'; import { Trust } from './trust'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; export class LegalEntityInfoRequiredType { /** @@ -35,6 +36,7 @@ export class LegalEntityInfoRequiredType { * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ 'type': LegalEntityInfoRequiredType.TypeEnum; + 'unincorporatedPartnership'?: UnincorporatedPartnership; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @@ -83,6 +85,11 @@ export class LegalEntityInfoRequiredType { "baseName": "type", "type": "LegalEntityInfoRequiredType.TypeEnum" }, + { + "name": "unincorporatedPartnership", + "baseName": "unincorporatedPartnership", + "type": "UnincorporatedPartnership" + }, { "name": "verificationPlan", "baseName": "verificationPlan", diff --git a/src/typings/legalEntityManagement/models.ts b/src/typings/legalEntityManagement/models.ts index 4fa0c08c9..c73d8051f 100644 --- a/src/typings/legalEntityManagement/models.ts +++ b/src/typings/legalEntityManagement/models.ts @@ -23,6 +23,8 @@ export * from './businessLineInfoUpdate'; export * from './businessLines'; export * from './cALocalAccountIdentification'; export * from './cZLocalAccountIdentification'; +export * from './calculatePciStatusRequest'; +export * from './calculatePciStatusResponse'; export * from './calculateTermsOfServiceStatusResponse'; export * from './capabilityProblem'; export * from './capabilityProblemEntity'; @@ -88,6 +90,7 @@ export * from './trust'; export * from './uKLocalAccountIdentification'; export * from './uSLocalAccountIdentification'; export * from './undefinedBeneficiary'; +export * from './unincorporatedPartnership'; export * from './verificationDeadline'; export * from './verificationError'; export * from './verificationErrorRecursive'; @@ -111,6 +114,8 @@ import { BusinessLineInfoUpdate } from './businessLineInfoUpdate'; import { BusinessLines } from './businessLines'; import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { CalculatePciStatusRequest } from './calculatePciStatusRequest'; +import { CalculatePciStatusResponse } from './calculatePciStatusResponse'; import { CalculateTermsOfServiceStatusResponse } from './calculateTermsOfServiceStatusResponse'; import { CapabilityProblem } from './capabilityProblem'; import { CapabilityProblemEntity } from './capabilityProblemEntity'; @@ -176,6 +181,7 @@ import { Trust } from './trust'; import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; import { UndefinedBeneficiary } from './undefinedBeneficiary'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; import { VerificationDeadline } from './verificationDeadline'; import { VerificationError } from './verificationError'; import { VerificationErrorRecursive } from './verificationErrorRecursive'; @@ -206,6 +212,7 @@ let enumsMap: {[index: string]: any} = { "CALocalAccountIdentification.AccountTypeEnum": CALocalAccountIdentification.AccountTypeEnum, "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "CalculatePciStatusRequest.AdditionalSalesChannelsEnum": CalculatePciStatusRequest.AdditionalSalesChannelsEnum, "CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum": CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum, "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, @@ -249,6 +256,8 @@ let enumsMap: {[index: string]: any} = { "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, + "UnincorporatedPartnership.TypeEnum": UnincorporatedPartnership.TypeEnum, + "UnincorporatedPartnership.VatAbsenceReasonEnum": UnincorporatedPartnership.VatAbsenceReasonEnum, "VerificationDeadline.CapabilitiesEnum": VerificationDeadline.CapabilitiesEnum, "VerificationError.CapabilitiesEnum": VerificationError.CapabilitiesEnum, "VerificationError.TypeEnum": VerificationError.TypeEnum, @@ -273,6 +282,8 @@ let typeMap: {[index: string]: any} = { "BusinessLines": BusinessLines, "CALocalAccountIdentification": CALocalAccountIdentification, "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CalculatePciStatusRequest": CalculatePciStatusRequest, + "CalculatePciStatusResponse": CalculatePciStatusResponse, "CalculateTermsOfServiceStatusResponse": CalculateTermsOfServiceStatusResponse, "CapabilityProblem": CapabilityProblem, "CapabilityProblemEntity": CapabilityProblemEntity, @@ -338,6 +349,7 @@ let typeMap: {[index: string]: any} = { "UKLocalAccountIdentification": UKLocalAccountIdentification, "USLocalAccountIdentification": USLocalAccountIdentification, "UndefinedBeneficiary": UndefinedBeneficiary, + "UnincorporatedPartnership": UnincorporatedPartnership, "VerificationDeadline": VerificationDeadline, "VerificationError": VerificationError, "VerificationErrorRecursive": VerificationErrorRecursive, 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/legalEntityManagement/unincorporatedPartnership.ts b/src/typings/legalEntityManagement/unincorporatedPartnership.ts new file mode 100644 index 000000000..e0ae02361 --- /dev/null +++ b/src/typings/legalEntityManagement/unincorporatedPartnership.ts @@ -0,0 +1,161 @@ +/* + * 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 { Address } from './address'; +import { TaxInformation } from './taxInformation'; + +export class UnincorporatedPartnership { + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + */ + 'countryOfGoverningLaw': string; + /** + * The date when the legal arrangement was incorporated in YYYY-MM-DD format. + */ + 'dateOfIncorporation'?: string; + /** + * Short description about the Legal Arrangement. + */ + 'description'?: string; + /** + * The registered name, if different from the `name`. + */ + 'doingBusinessAs'?: string; + /** + * The legal name. + */ + 'name': string; + 'principalPlaceOfBusiness'?: Address; + 'registeredAddress': Address; + /** + * The registration number. + */ + 'registrationNumber'?: string; + /** + * The tax information of the entity. + */ + 'taxInformation'?: Array; + /** + * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** + */ + 'type'?: UnincorporatedPartnership.TypeEnum; + /** + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + */ + 'vatAbsenceReason'?: UnincorporatedPartnership.VatAbsenceReasonEnum; + /** + * The VAT number. + */ + 'vatNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "countryOfGoverningLaw", + "baseName": "countryOfGoverningLaw", + "type": "string" + }, + { + "name": "dateOfIncorporation", + "baseName": "dateOfIncorporation", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "doingBusinessAs", + "baseName": "doingBusinessAs", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "principalPlaceOfBusiness", + "baseName": "principalPlaceOfBusiness", + "type": "Address" + }, + { + "name": "registeredAddress", + "baseName": "registeredAddress", + "type": "Address" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "taxInformation", + "baseName": "taxInformation", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "UnincorporatedPartnership.TypeEnum" + }, + { + "name": "vatAbsenceReason", + "baseName": "vatAbsenceReason", + "type": "UnincorporatedPartnership.VatAbsenceReasonEnum" + }, + { + "name": "vatNumber", + "baseName": "vatNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UnincorporatedPartnership.attributeTypeMap; + } +} + +export namespace UnincorporatedPartnership { + export enum TypeEnum { + LimitedPartnership = 'limitedPartnership', + GeneralPartnership = 'generalPartnership', + FamilyPartnership = 'familyPartnership', + CommercialPartnership = 'commercialPartnership', + PublicPartnership = 'publicPartnership', + OtherPartnership = 'otherPartnership', + Gbr = 'gbr', + Gmbh = 'gmbh', + Kgaa = 'kgaa', + Cv = 'cv', + Vof = 'vof', + Maatschap = 'maatschap', + PrivateFundLimitedPartnership = 'privateFundLimitedPartnership', + BusinessTrustEntity = 'businessTrustEntity', + BusinessPartnership = 'businessPartnership', + LimitedLiabilityPartnership = 'limitedLiabilityPartnership', + Eg = 'eg', + Cooperative = 'cooperative', + Vos = 'vos', + ComunidadDeBienes = 'comunidadDeBienes', + HerenciaYacente = 'herenciaYacente', + ComunidadDePropietarios = 'comunidadDePropietarios', + Sep = 'sep', + Sca = 'sca', + Bt = 'bt', + Kkt = 'kkt', + Scs = 'scs', + Snc = 'snc' + } + export enum VatAbsenceReasonEnum { + IndustryExemption = 'industryExemption', + BelowTaxThreshold = 'belowTaxThreshold' + } +} 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;