From 19bd6015f168a80d42c7817534dccb8b7074d764 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Thu, 19 Jan 2023 16:08:59 +0000 Subject: [PATCH] [create-pull-request] automated change --- src/typings/checkout/achDetails.ts | 9 ++ src/typings/checkout/afterpayDetails.ts | 9 ++ src/typings/checkout/amazonPayDetails.ts | 9 ++ src/typings/checkout/androidPayDetails.ts | 9 ++ src/typings/checkout/applePayDetails.ts | 9 ++ src/typings/checkout/authenticationData.ts | 23 ---- src/typings/checkout/authenticationData2.ts | 53 ++++++++ .../checkout/bacsDirectDebitDetails.ts | 9 ++ src/typings/checkout/billDeskDetails.ts | 9 ++ src/typings/checkout/blikDetails.ts | 9 ++ src/typings/checkout/card.ts | 4 +- src/typings/checkout/cardDetails.ts | 16 ++- src/typings/checkout/cellulantDetails.ts | 9 ++ .../checkout/createCheckoutSessionRequest.ts | 20 ++- .../checkout/createCheckoutSessionResponse.ts | 20 ++- .../checkout/createPaymentLinkRequest.ts | 18 +++ src/typings/checkout/detailsRequest.ts | 7 + src/typings/checkout/dokuDetails.ts | 9 ++ src/typings/checkout/dotpayDetails.ts | 9 ++ src/typings/checkout/dragonpayDetails.ts | 9 ++ .../checkout/econtextVoucherDetails.ts | 9 ++ src/typings/checkout/fundOrigin.ts | 35 +++++ src/typings/checkout/fundRecipient.ts | 103 +++++++++++++++ .../genericIssuerPaymentMethodDetails.ts | 10 ++ src/typings/checkout/giropayDetails.ts | 9 ++ src/typings/checkout/googlePayDetails.ts | 9 ++ src/typings/checkout/idealDetails.ts | 9 ++ src/typings/checkout/klarnaDetails.ts | 9 ++ src/typings/checkout/masterpassDetails.ts | 9 ++ src/typings/checkout/mbwayDetails.ts | 9 ++ src/typings/checkout/mobilePayDetails.ts | 9 ++ src/typings/checkout/models.ts | 19 ++- src/typings/checkout/molPayDetails.ts | 9 ++ src/typings/checkout/openInvoiceDetails.ts | 9 ++ src/typings/checkout/payPalDetails.ts | 9 ++ src/typings/checkout/payUUpiDetails.ts | 9 ++ src/typings/checkout/payWithGoogleDetails.ts | 9 ++ .../checkout/paymentCompletionDetails.ts | 9 ++ src/typings/checkout/paymentDetails.ts | 14 +- .../checkout/paymentDetailsResponse.ts | 1 + .../checkout/paymentDonationRequest.ts | 13 +- src/typings/checkout/paymentLinkResponse.ts | 27 ++++ src/typings/checkout/paymentRequest.ts | 13 +- src/typings/checkout/paymentResponse.ts | 1 + src/typings/checkout/paymentSetupRequest.ts | 7 + .../checkout/paymentVerificationResponse.ts | 1 + .../checkout/platformChargebackLogic.ts | 40 ++++++ src/typings/checkout/ratepayDetails.ts | 9 ++ src/typings/checkout/samsungPayDetails.ts | 9 ++ .../checkout/sepaDirectDebitDetails.ts | 9 ++ src/typings/checkout/split.ts | 4 +- .../checkout/storedPaymentMethodDetails.ts | 9 ++ src/typings/checkout/subMerchant.ts | 66 +++++++++ src/typings/checkout/threeDS2RequestData.ts | 5 +- src/typings/checkout/threeDSRequestData.ts | 13 ++ src/typings/checkout/upiCollectDetails.ts | 9 ++ src/typings/checkout/upiIntentDetails.ts | 36 +++++ src/typings/checkout/vippsDetails.ts | 9 ++ src/typings/checkout/visaCheckoutDetails.ts | 9 ++ src/typings/checkout/weChatPayDetails.ts | 9 ++ .../checkout/weChatPayMiniProgramDetails.ts | 9 ++ src/typings/checkout/zipDetails.ts | 9 ++ .../acceptTermsOfServiceRequest.ts | 39 ++++++ .../acceptTermsOfServiceResponse.ts | 83 ++++++++++++ src/typings/legalEntityManagement/amount.ts | 39 ++++++ .../legalEntityManagement/attachment.ts | 2 +- .../calculateTermsOfServiceStatusResponse.ts | 38 ++++++ .../capabilityProblem.ts | 35 +++++ .../capabilityProblemEntity.ts | 47 +++++++ .../capabilityProblemEntityRecursive.ts | 40 ++++++ .../capabilitySettings.ts | 64 +++++++++ src/typings/legalEntityManagement/document.ts | 18 +++ ...etTermsOfServiceAcceptanceInfosResponse.ts | 31 +++++ .../getTermsOfServiceDocumentRequest.ts | 47 +++++++ .../getTermsOfServiceDocumentResponse.ts | 74 +++++++++++ .../identificationData.ts | 9 ++ .../legalEntityManagement/legalEntity.ts | 17 ++- .../legalEntityAssociation.ts | 4 +- .../legalEntityCapability.ts | 113 ++++++++++++++++ .../legalEntityManagement/legalEntityInfo.ts | 12 +- ...Info.ts => legalEntityInfoRequiredType.ts} | 41 +++++- src/typings/legalEntityManagement/models.ts | 79 ++++++++++- .../onboardingLinkInfo.ts | 11 +- .../legalEntityManagement/recurringDetail.ts | 48 ------- .../remediatingAction.ts | 33 +++++ .../legalEntityManagement/sourceOfFunds.ts | 4 +- .../supportingEntityCapability.ts | 67 ++++++++++ .../termsOfServiceAcceptanceInfo.ts | 74 +++++++++++ .../transferInstrument.ts | 11 +- .../transferInstrumentInfo.ts | 11 +- .../transferInstrumentReference.ts | 39 ++++++ .../verificationError.ts | 125 ++++++++++++++++++ .../verificationErrorRecursive.ts | 118 +++++++++++++++++ src/typings/legalEntityManagement/webData.ts | 11 +- src/typings/payments/fundDestination.ts | 7 + src/typings/payments/models.ts | 3 + src/typings/payments/split.ts | 4 +- src/typings/payments/subMerchant.ts | 66 +++++++++ src/typings/payments/threeDS2RequestData.ts | 5 +- .../transfer/aULocalAccountIdentification.ts | 6 +- .../transfer/bRLocalAccountIdentification.ts | 2 +- src/typings/transfer/bankAccountV3.ts | 7 +- .../transfer/cALocalAccountIdentification.ts | 62 +++++++++ .../transfer/cZLocalAccountIdentification.ts | 4 +- .../transfer/dKLocalAccountIdentification.ts | 53 ++++++++ .../transfer/hULocalAccountIdentification.ts | 4 +- .../transfer/ibanAccountIdentification.ts | 2 +- src/typings/transfer/models.ts | 12 ++ .../transfer/nOLocalAccountIdentification.ts | 4 +- .../numberAndBicAccountIdentification.ts | 4 +- .../transfer/pLLocalAccountIdentification.ts | 4 +- .../transfer/sELocalAccountIdentification.ts | 6 +- .../transfer/sGLocalAccountIdentification.ts | 53 ++++++++ src/typings/transfer/transaction.ts | 2 + src/typings/transfer/transfer.ts | 16 ++- src/typings/transfer/transferInfo.ts | 2 +- .../transfer/uKLocalAccountIdentification.ts | 6 +- .../transfer/uSLocalAccountIdentification.ts | 6 +- 118 files changed, 2453 insertions(+), 164 deletions(-) create mode 100644 src/typings/checkout/authenticationData2.ts create mode 100644 src/typings/checkout/fundOrigin.ts create mode 100644 src/typings/checkout/fundRecipient.ts create mode 100644 src/typings/checkout/platformChargebackLogic.ts create mode 100644 src/typings/checkout/subMerchant.ts create mode 100644 src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts create mode 100644 src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts create mode 100644 src/typings/legalEntityManagement/amount.ts create mode 100644 src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts create mode 100644 src/typings/legalEntityManagement/capabilityProblem.ts create mode 100644 src/typings/legalEntityManagement/capabilityProblemEntity.ts create mode 100644 src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts create mode 100644 src/typings/legalEntityManagement/capabilitySettings.ts create mode 100644 src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts create mode 100644 src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts create mode 100644 src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts create mode 100644 src/typings/legalEntityManagement/legalEntityCapability.ts rename src/typings/legalEntityManagement/{genericEntityInfo.ts => legalEntityInfoRequiredType.ts} (51%) delete mode 100644 src/typings/legalEntityManagement/recurringDetail.ts create mode 100644 src/typings/legalEntityManagement/remediatingAction.ts create mode 100644 src/typings/legalEntityManagement/supportingEntityCapability.ts create mode 100644 src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts create mode 100644 src/typings/legalEntityManagement/transferInstrumentReference.ts create mode 100644 src/typings/legalEntityManagement/verificationError.ts create mode 100644 src/typings/legalEntityManagement/verificationErrorRecursive.ts create mode 100644 src/typings/payments/subMerchant.ts create mode 100644 src/typings/transfer/cALocalAccountIdentification.ts create mode 100644 src/typings/transfer/dKLocalAccountIdentification.ts create mode 100644 src/typings/transfer/sGLocalAccountIdentification.ts diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 2f13797..c3f7337 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -18,6 +18,10 @@ export class AchDetails { */ 'bankLocationId'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * Encrypted bank account number. The bank account number (without separators). */ 'encryptedBankAccountNumber'?: string; @@ -55,6 +59,11 @@ export class AchDetails { "baseName": "bankLocationId", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "encryptedBankAccountNumber", "baseName": "encryptedBankAccountNumber", diff --git a/src/typings/checkout/afterpayDetails.ts b/src/typings/checkout/afterpayDetails.ts index cbc6149..6e2b804 100644 --- a/src/typings/checkout/afterpayDetails.ts +++ b/src/typings/checkout/afterpayDetails.ts @@ -14,6 +14,10 @@ export class AfterpayDetails { */ 'billingAddress'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * The address where the goods should be delivered. */ 'deliveryAddress'?: string; @@ -42,6 +46,11 @@ export class AfterpayDetails { "baseName": "billingAddress", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "deliveryAddress", "baseName": "deliveryAddress", diff --git a/src/typings/checkout/amazonPayDetails.ts b/src/typings/checkout/amazonPayDetails.ts index 5ddcc04..594fc39 100644 --- a/src/typings/checkout/amazonPayDetails.ts +++ b/src/typings/checkout/amazonPayDetails.ts @@ -14,6 +14,10 @@ export class AmazonPayDetails { */ 'amazonPayToken'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * **amazonpay** */ 'type'?: AmazonPayDetails.TypeEnum; @@ -26,6 +30,11 @@ export class AmazonPayDetails { "baseName": "amazonPayToken", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/androidPayDetails.ts b/src/typings/checkout/androidPayDetails.ts index 397e83c..46b168d 100644 --- a/src/typings/checkout/androidPayDetails.ts +++ b/src/typings/checkout/androidPayDetails.ts @@ -9,6 +9,10 @@ export class AndroidPayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * **androidpay** */ @@ -17,6 +21,11 @@ export class AndroidPayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/applePayDetails.ts b/src/typings/checkout/applePayDetails.ts index c5287c4..b646f26 100644 --- a/src/typings/checkout/applePayDetails.ts +++ b/src/typings/checkout/applePayDetails.ts @@ -14,6 +14,10 @@ export class ApplePayDetails { */ 'applePayToken': string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ 'fundingSource'?: ApplePayDetails.FundingSourceEnum; @@ -38,6 +42,11 @@ export class ApplePayDetails { "baseName": "applePayToken", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/checkout/authenticationData.ts b/src/typings/checkout/authenticationData.ts index ca120e7..8164a65 100644 --- a/src/typings/checkout/authenticationData.ts +++ b/src/typings/checkout/authenticationData.ts @@ -7,36 +7,20 @@ * Do not edit this class manually. */ -import { ThreeDSRequestData } from './threeDSRequestData'; export class AuthenticationData { - /** - * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don\'t perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. * **preferNo**: Do not perform 3D Secure authentication if not required by PSD2 SCA or other national regulations. - */ - 'attemptAuthentication'?: AuthenticationData.AttemptAuthenticationEnum; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: *false**. */ 'authenticationOnly'?: boolean; - 'threeDSRequestData'?: ThreeDSRequestData; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "attemptAuthentication", - "baseName": "attemptAuthentication", - "type": "AuthenticationData.AttemptAuthenticationEnum" - }, { "name": "authenticationOnly", "baseName": "authenticationOnly", "type": "boolean" - }, - { - "name": "threeDSRequestData", - "baseName": "threeDSRequestData", - "type": "ThreeDSRequestData" } ]; static getAttributeTypeMap() { @@ -44,10 +28,3 @@ export class AuthenticationData { } } -export namespace AuthenticationData { - export enum AttemptAuthenticationEnum { - Always = 'always', - Never = 'never', - PreferNo = 'preferNo' - } -} diff --git a/src/typings/checkout/authenticationData2.ts b/src/typings/checkout/authenticationData2.ts new file mode 100644 index 0000000..ba13a8e --- /dev/null +++ b/src/typings/checkout/authenticationData2.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ThreeDSRequestData } from './threeDSRequestData'; + +export class AuthenticationData2 { + /** + * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don\'t perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. * **preferNo**: Do not perform 3D Secure authentication if not required by PSD2 SCA or other national regulations. + */ + 'attemptAuthentication'?: AuthenticationData2.AttemptAuthenticationEnum; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: *false**. + */ + 'authenticationOnly'?: boolean; + 'threeDSRequestData'?: ThreeDSRequestData; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "attemptAuthentication", + "baseName": "attemptAuthentication", + "type": "AuthenticationData2.AttemptAuthenticationEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "threeDSRequestData", + "baseName": "threeDSRequestData", + "type": "ThreeDSRequestData" + } ]; + + static getAttributeTypeMap() { + return AuthenticationData2.attributeTypeMap; + } +} + +export namespace AuthenticationData2 { + export enum AttemptAuthenticationEnum { + Always = 'always', + Never = 'never', + PreferNo = 'preferNo' + } +} diff --git a/src/typings/checkout/bacsDirectDebitDetails.ts b/src/typings/checkout/bacsDirectDebitDetails.ts index 7838468..d48300c 100644 --- a/src/typings/checkout/bacsDirectDebitDetails.ts +++ b/src/typings/checkout/bacsDirectDebitDetails.ts @@ -18,6 +18,10 @@ export class BacsDirectDebitDetails { */ 'bankLocationId'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * The name of the bank account holder. */ 'holderName'?: string; @@ -47,6 +51,11 @@ export class BacsDirectDebitDetails { "baseName": "bankLocationId", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "holderName", "baseName": "holderName", diff --git a/src/typings/checkout/billDeskDetails.ts b/src/typings/checkout/billDeskDetails.ts index bfb4972..55618a6 100644 --- a/src/typings/checkout/billDeskDetails.ts +++ b/src/typings/checkout/billDeskDetails.ts @@ -9,6 +9,10 @@ export class BillDeskDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The issuer id of the shopper\'s selected bank. */ @@ -21,6 +25,11 @@ export class BillDeskDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", diff --git a/src/typings/checkout/blikDetails.ts b/src/typings/checkout/blikDetails.ts index 5d2f9c2..9149851 100644 --- a/src/typings/checkout/blikDetails.ts +++ b/src/typings/checkout/blikDetails.ts @@ -14,6 +14,10 @@ export class BlikDetails { */ 'blikCode'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ 'recurringDetailReference'?: string; @@ -34,6 +38,11 @@ export class BlikDetails { "baseName": "blikCode", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", diff --git a/src/typings/checkout/card.ts b/src/typings/checkout/card.ts index 1b01fa1..920d5a1 100644 --- a/src/typings/checkout/card.ts +++ b/src/typings/checkout/card.ts @@ -16,7 +16,7 @@ export class Card { /** * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ - 'expiryMonth': string; + 'expiryMonth'?: string; /** * The card expiry year. Format: 4 digits. For example: 2020 */ @@ -32,7 +32,7 @@ export class Card { /** * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ - 'number': string; + 'number'?: string; /** * The month component of the start date (for some UK debit cards only). */ diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index 2b92b67..f126ad9 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -13,6 +13,10 @@ export class CardDetails { * Secondary brand of the card. For example: **plastix**, **hmclub**. */ 'brand'?: string; + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; 'cupsecureplusSmscode'?: string; /** * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). @@ -87,6 +91,11 @@ export class CardDetails { "baseName": "brand", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "cupsecureplusSmscode", "baseName": "cupsecureplus.smscode", @@ -187,11 +196,6 @@ export namespace CardDetails { NetworkToken = 'networkToken', Giftcard = 'giftcard', Alliancedata = 'alliancedata', - Card = 'card', - Qiwiwallet = 'qiwiwallet', - LianlianpayEbankingEnterprise = 'lianlianpay_ebanking_enterprise', - LianlianpayEbankingCredit = 'lianlianpay_ebanking_credit', - LianlianpayEbankingDebit = 'lianlianpay_ebanking_debit', - Entercash = 'entercash' + Card = 'card' } } diff --git a/src/typings/checkout/cellulantDetails.ts b/src/typings/checkout/cellulantDetails.ts index a02bd4d..3f4f605 100644 --- a/src/typings/checkout/cellulantDetails.ts +++ b/src/typings/checkout/cellulantDetails.ts @@ -9,6 +9,10 @@ export class CellulantDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The Cellulant issuer. */ @@ -21,6 +25,11 @@ export class CellulantDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index b01582f..1b2f650 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -11,9 +11,11 @@ import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; -import { AuthenticationData } from './authenticationData'; +import { AuthenticationData2 } from './authenticationData2'; import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { Company } from './company'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; import { Name } from './name'; @@ -34,7 +36,7 @@ export class CreateCheckoutSessionRequest { 'allowedPaymentMethods'?: Array; 'amount': Amount; 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; + 'authenticationData'?: AuthenticationData2; 'billingAddress'?: Address; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type`from [Payment methods overview](https://docs.adyen.com/payment-methods). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` @@ -78,6 +80,8 @@ export class CreateCheckoutSessionRequest { * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ 'expiresAt'?: Date; + 'fundOrigin'?: FundOrigin; + 'fundRecipient'?: FundRecipient; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @@ -227,7 +231,7 @@ export class CreateCheckoutSessionRequest { { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData2" }, { "name": "billingAddress", @@ -294,6 +298,16 @@ export class CreateCheckoutSessionRequest { "baseName": "expiresAt", "type": "Date" }, + { + "name": "fundOrigin", + "baseName": "fundOrigin", + "type": "FundOrigin" + }, + { + "name": "fundRecipient", + "baseName": "fundRecipient", + "type": "FundRecipient" + }, { "name": "installmentOptions", "baseName": "installmentOptions", diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 52e374c..5f0b4cb 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -11,9 +11,11 @@ import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; -import { AuthenticationData } from './authenticationData'; +import { AuthenticationData2 } from './authenticationData2'; import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { Company } from './company'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; import { Name } from './name'; @@ -34,7 +36,7 @@ export class CreateCheckoutSessionResponse { 'allowedPaymentMethods'?: Array; 'amount': Amount; 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; + 'authenticationData'?: AuthenticationData2; 'billingAddress'?: Address; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type`from [Payment methods overview](https://docs.adyen.com/payment-methods). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` @@ -78,6 +80,8 @@ export class CreateCheckoutSessionResponse { * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ 'expiresAt': Date; + 'fundOrigin'?: FundOrigin; + 'fundRecipient'?: FundRecipient; /** * A unique identifier of the session. */ @@ -235,7 +239,7 @@ export class CreateCheckoutSessionResponse { { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData2" }, { "name": "billingAddress", @@ -302,6 +306,16 @@ export class CreateCheckoutSessionResponse { "baseName": "expiresAt", "type": "Date" }, + { + "name": "fundOrigin", + "baseName": "fundOrigin", + "type": "FundOrigin" + }, + { + "name": "fundRecipient", + "baseName": "fundRecipient", + "type": "FundRecipient" + }, { "name": "id", "baseName": "id", diff --git a/src/typings/checkout/createPaymentLinkRequest.ts b/src/typings/checkout/createPaymentLinkRequest.ts index 9a0e855..caf65da 100644 --- a/src/typings/checkout/createPaymentLinkRequest.ts +++ b/src/typings/checkout/createPaymentLinkRequest.ts @@ -62,6 +62,10 @@ export class CreatePaymentLinkRequest { */ 'lineItems'?: Array; /** + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + */ + 'manualCapture'?: boolean; + /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ 'mcc'?: string; @@ -116,6 +120,10 @@ export class CreatePaymentLinkRequest { */ 'shopperStatement'?: string; /** + * Set to **false** to hide the button that lets the shopper remove a stored payment method. + */ + 'showRemovePaymentMethodButton'?: boolean; + /** * The shopper\'s social security number. */ 'socialSecurityNumber'?: string; @@ -217,6 +225,11 @@ export class CreatePaymentLinkRequest { "baseName": "lineItems", "type": "Array" }, + { + "name": "manualCapture", + "baseName": "manualCapture", + "type": "boolean" + }, { "name": "mcc", "baseName": "mcc", @@ -292,6 +305,11 @@ export class CreatePaymentLinkRequest { "baseName": "shopperStatement", "type": "string" }, + { + "name": "showRemovePaymentMethodButton", + "baseName": "showRemovePaymentMethodButton", + "type": "boolean" + }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", diff --git a/src/typings/checkout/detailsRequest.ts b/src/typings/checkout/detailsRequest.ts index 23b5b47..20be108 100644 --- a/src/typings/checkout/detailsRequest.ts +++ b/src/typings/checkout/detailsRequest.ts @@ -7,9 +7,11 @@ * Do not edit this class manually. */ +import { AuthenticationData } from './authenticationData'; import { PaymentCompletionDetails } from './paymentCompletionDetails'; export class DetailsRequest { + 'authenticationData'?: AuthenticationData; 'details': PaymentCompletionDetails; /** * The `paymentData` value from the `/payments` response. Required if the `/payments` response returns this value. @@ -23,6 +25,11 @@ export class DetailsRequest { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, { "name": "details", "baseName": "details", diff --git a/src/typings/checkout/dokuDetails.ts b/src/typings/checkout/dokuDetails.ts index 3bf0364..2b0221b 100644 --- a/src/typings/checkout/dokuDetails.ts +++ b/src/typings/checkout/dokuDetails.ts @@ -9,6 +9,10 @@ export class DokuDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The shopper\'s first name. */ @@ -29,6 +33,11 @@ export class DokuDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "firstName", "baseName": "firstName", diff --git a/src/typings/checkout/dotpayDetails.ts b/src/typings/checkout/dotpayDetails.ts index 58e9747..3e847c6 100644 --- a/src/typings/checkout/dotpayDetails.ts +++ b/src/typings/checkout/dotpayDetails.ts @@ -9,6 +9,10 @@ export class DotpayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it. */ @@ -21,6 +25,11 @@ export class DotpayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", diff --git a/src/typings/checkout/dragonpayDetails.ts b/src/typings/checkout/dragonpayDetails.ts index b020601..4eb4505 100644 --- a/src/typings/checkout/dragonpayDetails.ts +++ b/src/typings/checkout/dragonpayDetails.ts @@ -9,6 +9,10 @@ export class DragonpayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. */ @@ -25,6 +29,11 @@ export class DragonpayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", diff --git a/src/typings/checkout/econtextVoucherDetails.ts b/src/typings/checkout/econtextVoucherDetails.ts index e173d91..87e00b8 100644 --- a/src/typings/checkout/econtextVoucherDetails.ts +++ b/src/typings/checkout/econtextVoucherDetails.ts @@ -9,6 +9,10 @@ export class EcontextVoucherDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The shopper\'s first name. */ @@ -33,6 +37,11 @@ export class EcontextVoucherDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "firstName", "baseName": "firstName", diff --git a/src/typings/checkout/fundOrigin.ts b/src/typings/checkout/fundOrigin.ts new file mode 100644 index 0000000..a1278b3 --- /dev/null +++ b/src/typings/checkout/fundOrigin.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * 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 { Name } from './name'; + +export class FundOrigin { + 'billingAddress'?: Address; + 'shopperName'?: Name; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + } ]; + + static getAttributeTypeMap() { + return FundOrigin.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/fundRecipient.ts b/src/typings/checkout/fundRecipient.ts new file mode 100644 index 0000000..ef3ef76 --- /dev/null +++ b/src/typings/checkout/fundRecipient.ts @@ -0,0 +1,103 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * 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 { CardDetails } from './cardDetails'; +import { Name } from './name'; +import { SubMerchant } from './subMerchant'; + +export class FundRecipient { + 'billingAddress'?: Address; + 'paymentMethod'?: CardDetails; + /** + * the email address of the person + */ + 'shopperEmail'?: string; + 'shopperName'?: Name; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + /** + * This is the `recurringDetailReference` returned in the response when you created the token. + */ + 'storedPaymentMethodId'?: string; + 'subMerchant'?: SubMerchant; + /** + * the telephone number of the person + */ + 'telephoneNumber'?: string; + /** + * indicates where the money is going + */ + 'walletIdentifier'?: string; + /** + * indicates the tax identifier of the fund recepient + */ + 'walletOwnerTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "CardDetails" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "subMerchant", + "baseName": "subMerchant", + "type": "SubMerchant" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "walletIdentifier", + "baseName": "walletIdentifier", + "type": "string" + }, + { + "name": "walletOwnerTaxId", + "baseName": "walletOwnerTaxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FundRecipient.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts index d327133..5a81fa1 100644 --- a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts +++ b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts @@ -9,6 +9,10 @@ export class GenericIssuerPaymentMethodDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The issuer id of the shopper\'s selected bank. */ @@ -29,6 +33,11 @@ export class GenericIssuerPaymentMethodDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", @@ -57,6 +66,7 @@ export class GenericIssuerPaymentMethodDetails { export namespace GenericIssuerPaymentMethodDetails { export enum TypeEnum { + OnlineBankingPl = 'onlineBanking_PL', Eps = 'eps', OnlineBankingSk = 'onlineBanking_SK', OnlineBankingCz = 'onlineBanking_CZ' diff --git a/src/typings/checkout/giropayDetails.ts b/src/typings/checkout/giropayDetails.ts index 5f02c67..e0a1c58 100644 --- a/src/typings/checkout/giropayDetails.ts +++ b/src/typings/checkout/giropayDetails.ts @@ -9,6 +9,10 @@ export class GiropayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ @@ -25,6 +29,11 @@ export class GiropayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", diff --git a/src/typings/checkout/googlePayDetails.ts b/src/typings/checkout/googlePayDetails.ts index 3f7e22b..2da5362 100644 --- a/src/typings/checkout/googlePayDetails.ts +++ b/src/typings/checkout/googlePayDetails.ts @@ -9,6 +9,10 @@ export class GooglePayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @@ -33,6 +37,11 @@ export class GooglePayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/checkout/idealDetails.ts b/src/typings/checkout/idealDetails.ts index 42b04b4..650c820 100644 --- a/src/typings/checkout/idealDetails.ts +++ b/src/typings/checkout/idealDetails.ts @@ -9,6 +9,10 @@ export class IdealDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ @@ -29,6 +33,11 @@ export class IdealDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", diff --git a/src/typings/checkout/klarnaDetails.ts b/src/typings/checkout/klarnaDetails.ts index a08e3dc..6bef93e 100644 --- a/src/typings/checkout/klarnaDetails.ts +++ b/src/typings/checkout/klarnaDetails.ts @@ -14,6 +14,10 @@ export class KlarnaDetails { */ 'billingAddress'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * The address where the goods should be delivered. */ 'deliveryAddress'?: string; @@ -42,6 +46,11 @@ export class KlarnaDetails { "baseName": "billingAddress", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "deliveryAddress", "baseName": "deliveryAddress", diff --git a/src/typings/checkout/masterpassDetails.ts b/src/typings/checkout/masterpassDetails.ts index 6081f3e..566c397 100644 --- a/src/typings/checkout/masterpassDetails.ts +++ b/src/typings/checkout/masterpassDetails.ts @@ -9,6 +9,10 @@ export class MasterpassDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @@ -25,6 +29,11 @@ export class MasterpassDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/checkout/mbwayDetails.ts b/src/typings/checkout/mbwayDetails.ts index 7e89299..ee6b5ce 100644 --- a/src/typings/checkout/mbwayDetails.ts +++ b/src/typings/checkout/mbwayDetails.ts @@ -9,6 +9,10 @@ export class MbwayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; 'shopperEmail': string; 'telephoneNumber': string; /** @@ -19,6 +23,11 @@ export class MbwayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "shopperEmail", "baseName": "shopperEmail", diff --git a/src/typings/checkout/mobilePayDetails.ts b/src/typings/checkout/mobilePayDetails.ts index e7b9d49..7c85192 100644 --- a/src/typings/checkout/mobilePayDetails.ts +++ b/src/typings/checkout/mobilePayDetails.ts @@ -9,6 +9,10 @@ export class MobilePayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * **mobilepay** */ @@ -17,6 +21,11 @@ export class MobilePayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 0c65d5c..4b7ad15 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -35,6 +35,7 @@ export * from './applePayDetails'; export * from './applePaySessionResponse'; export * from './applicationInfo'; export * from './authenticationData'; +export * from './authenticationData2'; export * from './avs'; export * from './bacsDirectDebitDetails'; export * from './bankAccount'; @@ -88,6 +89,8 @@ export * from './externalPlatform'; export * from './forexQuote'; export * from './fraudCheckResult'; export * from './fraudResult'; +export * from './fundOrigin'; +export * from './fundRecipient'; export * from './genericIssuerPaymentMethodDetails'; export * from './giropayDetails'; export * from './googlePayDetails'; @@ -133,6 +136,7 @@ export * from './paymentSetupResponse'; export * from './paymentVerificationRequest'; export * from './paymentVerificationResponse'; export * from './phone'; +export * from './platformChargebackLogic'; export * from './ratepayDetails'; export * from './recurring'; export * from './recurringDetail'; @@ -160,6 +164,7 @@ export * from './storedDetails'; export * from './storedPaymentMethod'; export * from './storedPaymentMethodDetails'; export * from './subInputDetail'; +export * from './subMerchant'; export * from './threeDS2RequestData'; export * from './threeDS2ResponseData'; export * from './threeDS2Result'; @@ -204,6 +209,7 @@ import { ApplePayDetails } from './applePayDetails'; import { ApplePaySessionResponse } from './applePaySessionResponse'; import { ApplicationInfo } from './applicationInfo'; import { AuthenticationData } from './authenticationData'; +import { AuthenticationData2 } from './authenticationData2'; import { Avs } from './avs'; import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; import { BankAccount } from './bankAccount'; @@ -257,6 +263,8 @@ import { ExternalPlatform } from './externalPlatform'; import { ForexQuote } from './forexQuote'; import { FraudCheckResult } from './fraudCheckResult'; import { FraudResult } from './fraudResult'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; import { GiropayDetails } from './giropayDetails'; import { GooglePayDetails } from './googlePayDetails'; @@ -302,6 +310,7 @@ import { PaymentSetupResponse } from './paymentSetupResponse'; import { PaymentVerificationRequest } from './paymentVerificationRequest'; import { PaymentVerificationResponse } from './paymentVerificationResponse'; import { Phone } from './phone'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; import { RatepayDetails } from './ratepayDetails'; import { Recurring } from './recurring'; import { RecurringDetail } from './recurringDetail'; @@ -329,6 +338,7 @@ import { StoredDetails } from './storedDetails'; import { StoredPaymentMethod } from './storedPaymentMethod'; import { StoredPaymentMethodDetails } from './storedPaymentMethodDetails'; import { SubInputDetail } from './subInputDetail'; +import { SubMerchant } from './subMerchant'; import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDS2ResponseData } from './threeDS2ResponseData'; import { ThreeDS2Result } from './threeDS2Result'; @@ -379,7 +389,7 @@ let enumsMap: {[index: string]: any} = { "AndroidPayDetails.TypeEnum": AndroidPayDetails.TypeEnum, "ApplePayDetails.FundingSourceEnum": ApplePayDetails.FundingSourceEnum, "ApplePayDetails.TypeEnum": ApplePayDetails.TypeEnum, - "AuthenticationData.AttemptAuthenticationEnum": AuthenticationData.AttemptAuthenticationEnum, + "AuthenticationData2.AttemptAuthenticationEnum": AuthenticationData2.AttemptAuthenticationEnum, "Avs.EnabledEnum": Avs.EnabledEnum, "BacsDirectDebitDetails.TypeEnum": BacsDirectDebitDetails.TypeEnum, "BillDeskDetails.TypeEnum": BillDeskDetails.TypeEnum, @@ -468,6 +478,7 @@ let enumsMap: {[index: string]: any} = { "PaymentSetupRequest.EntityTypeEnum": PaymentSetupRequest.EntityTypeEnum, "PaymentSetupRequest.ShopperInteractionEnum": PaymentSetupRequest.ShopperInteractionEnum, "PaymentVerificationResponse.ResultCodeEnum": PaymentVerificationResponse.ResultCodeEnum, + "PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum, "RatepayDetails.TypeEnum": RatepayDetails.TypeEnum, "Recurring.ContractEnum": Recurring.ContractEnum, "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, @@ -493,6 +504,7 @@ let enumsMap: {[index: string]: any} = { "ThreeDS2Result.ChallengeIndicatorEnum": ThreeDS2Result.ChallengeIndicatorEnum, "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, "ThreeDSRequestData.ChallengeWindowSizeEnum": ThreeDSRequestData.ChallengeWindowSizeEnum, + "ThreeDSRequestData.DataOnlyEnum": ThreeDSRequestData.DataOnlyEnum, "ThreeDSRequestData.NativeThreeDSEnum": ThreeDSRequestData.NativeThreeDSEnum, "ThreeDSRequestData.ThreeDSVersionEnum": ThreeDSRequestData.ThreeDSVersionEnum, "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, @@ -539,6 +551,7 @@ let typeMap: {[index: string]: any} = { "ApplePaySessionResponse": ApplePaySessionResponse, "ApplicationInfo": ApplicationInfo, "AuthenticationData": AuthenticationData, + "AuthenticationData2": AuthenticationData2, "Avs": Avs, "BacsDirectDebitDetails": BacsDirectDebitDetails, "BankAccount": BankAccount, @@ -592,6 +605,8 @@ let typeMap: {[index: string]: any} = { "ForexQuote": ForexQuote, "FraudCheckResult": FraudCheckResult, "FraudResult": FraudResult, + "FundOrigin": FundOrigin, + "FundRecipient": FundRecipient, "GenericIssuerPaymentMethodDetails": GenericIssuerPaymentMethodDetails, "GiropayDetails": GiropayDetails, "GooglePayDetails": GooglePayDetails, @@ -637,6 +652,7 @@ let typeMap: {[index: string]: any} = { "PaymentVerificationRequest": PaymentVerificationRequest, "PaymentVerificationResponse": PaymentVerificationResponse, "Phone": Phone, + "PlatformChargebackLogic": PlatformChargebackLogic, "RatepayDetails": RatepayDetails, "Recurring": Recurring, "RecurringDetail": RecurringDetail, @@ -664,6 +680,7 @@ let typeMap: {[index: string]: any} = { "StoredPaymentMethod": StoredPaymentMethod, "StoredPaymentMethodDetails": StoredPaymentMethodDetails, "SubInputDetail": SubInputDetail, + "SubMerchant": SubMerchant, "ThreeDS2RequestData": ThreeDS2RequestData, "ThreeDS2ResponseData": ThreeDS2ResponseData, "ThreeDS2Result": ThreeDS2Result, diff --git a/src/typings/checkout/molPayDetails.ts b/src/typings/checkout/molPayDetails.ts index d35195f..69f3737 100644 --- a/src/typings/checkout/molPayDetails.ts +++ b/src/typings/checkout/molPayDetails.ts @@ -9,6 +9,10 @@ export class MolPayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The shopper\'s bank. Specify this with the issuer value that corresponds to this bank. */ @@ -21,6 +25,11 @@ export class MolPayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "issuer", "baseName": "issuer", diff --git a/src/typings/checkout/openInvoiceDetails.ts b/src/typings/checkout/openInvoiceDetails.ts index 5a7f98e..99c83a2 100644 --- a/src/typings/checkout/openInvoiceDetails.ts +++ b/src/typings/checkout/openInvoiceDetails.ts @@ -14,6 +14,10 @@ export class OpenInvoiceDetails { */ 'billingAddress'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * The address where the goods should be delivered. */ 'deliveryAddress'?: string; @@ -42,6 +46,11 @@ export class OpenInvoiceDetails { "baseName": "billingAddress", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "deliveryAddress", "baseName": "deliveryAddress", diff --git a/src/typings/checkout/payPalDetails.ts b/src/typings/checkout/payPalDetails.ts index 6326c24..bac9981 100644 --- a/src/typings/checkout/payPalDetails.ts +++ b/src/typings/checkout/payPalDetails.ts @@ -9,6 +9,10 @@ export class PayPalDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The unique ID associated with the order. */ @@ -37,6 +41,11 @@ export class PayPalDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "orderID", "baseName": "orderID", diff --git a/src/typings/checkout/payUUpiDetails.ts b/src/typings/checkout/payUUpiDetails.ts index 3bddd94..5bb8be0 100644 --- a/src/typings/checkout/payUUpiDetails.ts +++ b/src/typings/checkout/payUUpiDetails.ts @@ -9,6 +9,10 @@ export class PayUUpiDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ @@ -33,6 +37,11 @@ export class PayUUpiDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", diff --git a/src/typings/checkout/payWithGoogleDetails.ts b/src/typings/checkout/payWithGoogleDetails.ts index 45c3da1..bf5aaec 100644 --- a/src/typings/checkout/payWithGoogleDetails.ts +++ b/src/typings/checkout/payWithGoogleDetails.ts @@ -9,6 +9,10 @@ export class PayWithGoogleDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @@ -33,6 +37,11 @@ export class PayWithGoogleDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/checkout/paymentCompletionDetails.ts b/src/typings/checkout/paymentCompletionDetails.ts index a700af2..b46153e 100644 --- a/src/typings/checkout/paymentCompletionDetails.ts +++ b/src/typings/checkout/paymentCompletionDetails.ts @@ -62,6 +62,10 @@ export class PaymentCompletionDetails { */ 'redirectResult'?: string; /** + * Value you received from the WeChat Pay SDK. + */ + 'resultCode'?: string; + /** * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. */ 'threeDSResult'?: string; @@ -142,6 +146,11 @@ export class PaymentCompletionDetails { "baseName": "redirectResult", "type": "string" }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + }, { "name": "threeDSResult", "baseName": "threeDSResult", diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 6e73703..e2347d9 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -9,6 +9,10 @@ export class PaymentDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The payment method type. */ @@ -17,6 +21,11 @@ export class PaymentDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "type", "baseName": "type", @@ -37,6 +46,7 @@ export namespace PaymentDetails { Paynow = 'paynow', Affirm = 'affirm', AffirmPos = 'affirm_pos', + Trustly = 'trustly', Trustlyvector = 'trustlyvector', Oney = 'oney', Facilypay = 'facilypay', @@ -59,7 +69,6 @@ export namespace PaymentDetails { UpiQr = 'upi_qr', Paytm = 'paytm', MolpayEbankingVn = 'molpay_ebanking_VN', - OnlineBankingPl = 'onlineBanking_PL', OpenbankingUk = 'openbanking_UK', Paybybank = 'paybybank', EbankingFi = 'ebanking_FI', @@ -67,9 +76,10 @@ export namespace PaymentDetails { MolpayEbankingDirectMy = 'molpay_ebanking_direct_MY', Swish = 'swish', Twint = 'twint', - Pix = 'pix', Walley = 'walley', WalleyB2b = 'walley_b2b', + Pix = 'pix', + Bizum = 'bizum', Alma = 'alma', MolpayFpx = 'molpay_fpx', Konbini = 'konbini', diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index deac6e3..2c9d1eb 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -145,6 +145,7 @@ export class PaymentDetailsResponse { export namespace PaymentDetailsResponse { export enum ResultCodeEnum { AuthenticationFinished = 'AuthenticationFinished', + AuthenticationNotRequired = 'AuthenticationNotRequired', Authorised = 'Authorised', Cancelled = 'Cancelled', ChallengeShopper = 'ChallengeShopper', diff --git a/src/typings/checkout/paymentDonationRequest.ts b/src/typings/checkout/paymentDonationRequest.ts index dabce82..6e9283d 100644 --- a/src/typings/checkout/paymentDonationRequest.ts +++ b/src/typings/checkout/paymentDonationRequest.ts @@ -16,7 +16,7 @@ import { Amount } from './amount'; import { AndroidPayDetails } from './androidPayDetails'; import { ApplePayDetails } from './applePayDetails'; import { ApplicationInfo } from './applicationInfo'; -import { AuthenticationData } from './authenticationData'; +import { AuthenticationData2 } from './authenticationData2'; import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; import { BillDeskDetails } from './billDeskDetails'; import { BlikDetails } from './blikDetails'; @@ -49,6 +49,7 @@ import { PayPalDetails } from './payPalDetails'; import { PayUUpiDetails } from './payUUpiDetails'; import { PayWithGoogleDetails } from './payWithGoogleDetails'; import { PaymentDetails } from './paymentDetails'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; import { RatepayDetails } from './ratepayDetails'; import { RiskData } from './riskData'; import { SamsungPayDetails } from './samsungPayDetails'; @@ -73,7 +74,7 @@ export class PaymentDonationRequest { 'additionalData'?: { [key: string]: string; }; 'amount': Amount; 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; + 'authenticationData'?: AuthenticationData2; 'billingAddress'?: Address; 'browserInfo'?: BrowserInfo; /** @@ -180,6 +181,7 @@ export class PaymentDonationRequest { * The type and required details of a payment method to use. */ 'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; + 'platformChargebackLogic'?: PlatformChargebackLogic; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @@ -294,7 +296,7 @@ export class PaymentDonationRequest { { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData2" }, { "name": "billingAddress", @@ -466,6 +468,11 @@ export class PaymentDonationRequest { "baseName": "paymentMethod", "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" }, + { + "name": "platformChargebackLogic", + "baseName": "platformChargebackLogic", + "type": "PlatformChargebackLogic" + }, { "name": "recurringExpiry", "baseName": "recurringExpiry", diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 13b86a2..f63ee08 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -66,6 +66,10 @@ export class PaymentLinkResponse { */ 'lineItems'?: Array; /** + * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). + */ + 'manualCapture'?: boolean; + /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ 'mcc'?: string; @@ -120,6 +124,10 @@ export class PaymentLinkResponse { */ 'shopperStatement'?: string; /** + * Set to **false** to hide the button that lets the shopper remove a stored payment method. + */ + 'showRemovePaymentMethodButton'?: boolean; + /** * The shopper\'s social security number. */ 'socialSecurityNumber'?: string; @@ -152,6 +160,10 @@ export class PaymentLinkResponse { */ 'themeId'?: string; /** + * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. + */ + 'updatedAt'?: Date; + /** * The URL at which the shopper can complete the payment. */ 'url': string; @@ -234,6 +246,11 @@ export class PaymentLinkResponse { "baseName": "lineItems", "type": "Array" }, + { + "name": "manualCapture", + "baseName": "manualCapture", + "type": "boolean" + }, { "name": "mcc", "baseName": "mcc", @@ -309,6 +326,11 @@ export class PaymentLinkResponse { "baseName": "shopperStatement", "type": "string" }, + { + "name": "showRemovePaymentMethodButton", + "baseName": "showRemovePaymentMethodButton", + "type": "boolean" + }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", @@ -349,6 +371,11 @@ export class PaymentLinkResponse { "baseName": "themeId", "type": "string" }, + { + "name": "updatedAt", + "baseName": "updatedAt", + "type": "Date" + }, { "name": "url", "baseName": "url", diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 796f4a6..0f5332e 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -16,7 +16,7 @@ import { Amount } from './amount'; import { AndroidPayDetails } from './androidPayDetails'; import { ApplePayDetails } from './applePayDetails'; import { ApplicationInfo } from './applicationInfo'; -import { AuthenticationData } from './authenticationData'; +import { AuthenticationData2 } from './authenticationData2'; import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; import { BillDeskDetails } from './billDeskDetails'; import { BlikDetails } from './blikDetails'; @@ -49,6 +49,7 @@ import { PayPalDetails } from './payPalDetails'; import { PayUUpiDetails } from './payUUpiDetails'; import { PayWithGoogleDetails } from './payWithGoogleDetails'; import { PaymentDetails } from './paymentDetails'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; import { RatepayDetails } from './ratepayDetails'; import { RiskData } from './riskData'; import { SamsungPayDetails } from './samsungPayDetails'; @@ -73,7 +74,7 @@ export class PaymentRequest { 'additionalData'?: { [key: string]: string; }; 'amount': Amount; 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; + 'authenticationData'?: AuthenticationData2; 'billingAddress'?: Address; 'browserInfo'?: BrowserInfo; /** @@ -168,6 +169,7 @@ export class PaymentRequest { * The type and required details of a payment method to use. */ 'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; + 'platformChargebackLogic'?: PlatformChargebackLogic; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @@ -282,7 +284,7 @@ export class PaymentRequest { { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData2" }, { "name": "billingAddress", @@ -439,6 +441,11 @@ export class PaymentRequest { "baseName": "paymentMethod", "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" }, + { + "name": "platformChargebackLogic", + "baseName": "platformChargebackLogic", + "type": "PlatformChargebackLogic" + }, { "name": "recurringExpiry", "baseName": "recurringExpiry", diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index c938cd0..efac400 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -151,6 +151,7 @@ export class PaymentResponse { export namespace PaymentResponse { export enum ResultCodeEnum { AuthenticationFinished = 'AuthenticationFinished', + AuthenticationNotRequired = 'AuthenticationNotRequired', Authorised = 'Authorised', Cancelled = 'Cancelled', ChallengeShopper = 'ChallengeShopper', diff --git a/src/typings/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts index 270ba8f..4f486b5 100644 --- a/src/typings/checkout/paymentSetupRequest.ts +++ b/src/typings/checkout/paymentSetupRequest.ts @@ -17,6 +17,7 @@ import { Installments } from './installments'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; import { Name } from './name'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; import { RiskData } from './riskData'; import { Split } from './split'; @@ -118,6 +119,7 @@ export class PaymentSetupRequest { * Required for the Web integration. Set this parameter to the origin URL of the page that you are loading the SDK from. */ 'origin'?: string; + 'platformChargebackLogic'?: PlatformChargebackLogic; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @@ -359,6 +361,11 @@ export class PaymentSetupRequest { "baseName": "origin", "type": "string" }, + { + "name": "platformChargebackLogic", + "baseName": "platformChargebackLogic", + "type": "PlatformChargebackLogic" + }, { "name": "recurringExpiry", "baseName": "recurringExpiry", diff --git a/src/typings/checkout/paymentVerificationResponse.ts b/src/typings/checkout/paymentVerificationResponse.ts index 2f2ed67..6d7f0c6 100644 --- a/src/typings/checkout/paymentVerificationResponse.ts +++ b/src/typings/checkout/paymentVerificationResponse.ts @@ -106,6 +106,7 @@ export class PaymentVerificationResponse { export namespace PaymentVerificationResponse { export enum ResultCodeEnum { AuthenticationFinished = 'AuthenticationFinished', + AuthenticationNotRequired = 'AuthenticationNotRequired', Authorised = 'Authorised', Cancelled = 'Cancelled', ChallengeShopper = 'ChallengeShopper', diff --git a/src/typings/checkout/platformChargebackLogic.ts b/src/typings/checkout/platformChargebackLogic.ts new file mode 100644 index 0000000..0a5d41c --- /dev/null +++ b/src/typings/checkout/platformChargebackLogic.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * 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 PlatformChargebackLogic { + 'behavior'?: PlatformChargebackLogic.BehaviorEnum; + 'targetAccount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "behavior", + "baseName": "behavior", + "type": "PlatformChargebackLogic.BehaviorEnum" + }, + { + "name": "targetAccount", + "baseName": "targetAccount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PlatformChargebackLogic.attributeTypeMap; + } +} + +export namespace PlatformChargebackLogic { + export enum BehaviorEnum { + DeductAccordingToSplitRatio = 'deductAccordingToSplitRatio', + DeductFromLiableAccount = 'deductFromLiableAccount', + DeductFromOneBalanceAccount = 'deductFromOneBalanceAccount' + } +} diff --git a/src/typings/checkout/ratepayDetails.ts b/src/typings/checkout/ratepayDetails.ts index 6788011..d76e189 100644 --- a/src/typings/checkout/ratepayDetails.ts +++ b/src/typings/checkout/ratepayDetails.ts @@ -14,6 +14,10 @@ export class RatepayDetails { */ 'billingAddress'?: string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * The address where the goods should be delivered. */ 'deliveryAddress'?: string; @@ -42,6 +46,11 @@ export class RatepayDetails { "baseName": "billingAddress", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "deliveryAddress", "baseName": "deliveryAddress", diff --git a/src/typings/checkout/samsungPayDetails.ts b/src/typings/checkout/samsungPayDetails.ts index 8f56cde..06a57b6 100644 --- a/src/typings/checkout/samsungPayDetails.ts +++ b/src/typings/checkout/samsungPayDetails.ts @@ -9,6 +9,10 @@ export class SamsungPayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @@ -33,6 +37,11 @@ export class SamsungPayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/checkout/sepaDirectDebitDetails.ts b/src/typings/checkout/sepaDirectDebitDetails.ts index 960dea3..3223ca7 100644 --- a/src/typings/checkout/sepaDirectDebitDetails.ts +++ b/src/typings/checkout/sepaDirectDebitDetails.ts @@ -9,6 +9,10 @@ export class SepaDirectDebitDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The International Bank Account Number (IBAN). */ @@ -33,6 +37,11 @@ export class SepaDirectDebitDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "iban", "baseName": "iban", diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts index f44eec3..3c7b473 100644 --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -24,7 +24,7 @@ export class Split { */ 'reference'?: string; /** - * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. + * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. */ 'type': Split.TypeEnum; @@ -70,6 +70,8 @@ export namespace Split { MarketPlace = 'MarketPlace', PaymentFee = 'PaymentFee', Remainder = 'Remainder', + Surcharge = 'Surcharge', + Tip = 'Tip', Vat = 'VAT', Verification = 'Verification' } diff --git a/src/typings/checkout/storedPaymentMethodDetails.ts b/src/typings/checkout/storedPaymentMethodDetails.ts index ccbc9be..302f5ca 100644 --- a/src/typings/checkout/storedPaymentMethodDetails.ts +++ b/src/typings/checkout/storedPaymentMethodDetails.ts @@ -9,6 +9,10 @@ export class StoredPaymentMethodDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ @@ -25,6 +29,11 @@ export class StoredPaymentMethodDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", diff --git a/src/typings/checkout/subMerchant.ts b/src/typings/checkout/subMerchant.ts new file mode 100644 index 0000000..40dc300 --- /dev/null +++ b/src/typings/checkout/subMerchant.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * 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 SubMerchant { + /** + * The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters + */ + 'city'?: string; + /** + * The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + */ + 'country'?: string; + /** + * The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + */ + 'mcc'?: string; + /** + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + */ + 'name'?: string; + /** + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubMerchant.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index 83b63db..79ee026 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -118,7 +118,7 @@ export class ThreeDS2RequestData { 'threeDSRequestorAuthenticationInd'?: string; 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; /** @@ -373,7 +373,8 @@ export namespace ThreeDS2RequestData { _02 = '02', _03 = '03', _04 = '04', - _05 = '05' + _05 = '05', + _06 = '06' } export enum TransTypeEnum { _01 = '01', diff --git a/src/typings/checkout/threeDSRequestData.ts b/src/typings/checkout/threeDSRequestData.ts index 43fb42f..d0b87cd 100644 --- a/src/typings/checkout/threeDSRequestData.ts +++ b/src/typings/checkout/threeDSRequestData.ts @@ -14,6 +14,10 @@ export class ThreeDSRequestData { */ 'challengeWindowSize'?: ThreeDSRequestData.ChallengeWindowSizeEnum; /** + * Flag for data only flow. + */ + 'dataOnly'?: ThreeDSRequestData.DataOnlyEnum; + /** * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. */ 'nativeThreeDS'?: ThreeDSRequestData.NativeThreeDSEnum; @@ -30,6 +34,11 @@ export class ThreeDSRequestData { "baseName": "challengeWindowSize", "type": "ThreeDSRequestData.ChallengeWindowSizeEnum" }, + { + "name": "dataOnly", + "baseName": "dataOnly", + "type": "ThreeDSRequestData.DataOnlyEnum" + }, { "name": "nativeThreeDS", "baseName": "nativeThreeDS", @@ -54,6 +63,10 @@ export namespace ThreeDSRequestData { _04 = '04', _05 = '05' } + export enum DataOnlyEnum { + False = 'false', + True = 'true' + } export enum NativeThreeDSEnum { Preferred = 'preferred' } diff --git a/src/typings/checkout/upiCollectDetails.ts b/src/typings/checkout/upiCollectDetails.ts index bed01e4..18805fd 100644 --- a/src/typings/checkout/upiCollectDetails.ts +++ b/src/typings/checkout/upiCollectDetails.ts @@ -14,6 +14,10 @@ export class UpiCollectDetails { */ 'billingSequenceNumber': string; /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ 'recurringDetailReference'?: string; @@ -42,6 +46,11 @@ export class UpiCollectDetails { "baseName": "billingSequenceNumber", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", diff --git a/src/typings/checkout/upiIntentDetails.ts b/src/typings/checkout/upiIntentDetails.ts index 17a65b9..d67496d 100644 --- a/src/typings/checkout/upiIntentDetails.ts +++ b/src/typings/checkout/upiIntentDetails.ts @@ -9,6 +9,22 @@ export class UpiIntentDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; + /** + * This is the `recurringDetailReference` returned in the response when you created the token. + */ + 'recurringDetailReference'?: string; + /** + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + */ + 'shopperNotificationReference'?: string; + /** + * This is the `recurringDetailReference` returned in the response when you created the token. + */ + 'storedPaymentMethodId'?: string; /** * **upi_intent** */ @@ -17,6 +33,26 @@ export class UpiIntentDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/vippsDetails.ts b/src/typings/checkout/vippsDetails.ts index 77c0c5b..7432078 100644 --- a/src/typings/checkout/vippsDetails.ts +++ b/src/typings/checkout/vippsDetails.ts @@ -9,6 +9,10 @@ export class VippsDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ @@ -26,6 +30,11 @@ export class VippsDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", diff --git a/src/typings/checkout/visaCheckoutDetails.ts b/src/typings/checkout/visaCheckoutDetails.ts index 812b599..94e5f35 100644 --- a/src/typings/checkout/visaCheckoutDetails.ts +++ b/src/typings/checkout/visaCheckoutDetails.ts @@ -9,6 +9,10 @@ export class VisaCheckoutDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @@ -25,6 +29,11 @@ export class VisaCheckoutDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/checkout/weChatPayDetails.ts b/src/typings/checkout/weChatPayDetails.ts index 14da3eb..2c0a4f8 100644 --- a/src/typings/checkout/weChatPayDetails.ts +++ b/src/typings/checkout/weChatPayDetails.ts @@ -9,6 +9,10 @@ export class WeChatPayDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * **wechatpay** */ @@ -17,6 +21,11 @@ export class WeChatPayDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/weChatPayMiniProgramDetails.ts b/src/typings/checkout/weChatPayMiniProgramDetails.ts index 6c3f825..9896035 100644 --- a/src/typings/checkout/weChatPayMiniProgramDetails.ts +++ b/src/typings/checkout/weChatPayMiniProgramDetails.ts @@ -10,6 +10,10 @@ export class WeChatPayMiniProgramDetails { 'appId'?: string; + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; 'openid'?: string; /** * **wechatpayMiniProgram** @@ -24,6 +28,11 @@ export class WeChatPayMiniProgramDetails { "baseName": "appId", "type": "string" }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "openid", "baseName": "openid", diff --git a/src/typings/checkout/zipDetails.ts b/src/typings/checkout/zipDetails.ts index 58a50f5..4f294c7 100644 --- a/src/typings/checkout/zipDetails.ts +++ b/src/typings/checkout/zipDetails.ts @@ -9,6 +9,10 @@ export class ZipDetails { + /** + * The checkout attempt identifier. + */ + 'checkoutAttemptId'?: string; /** * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. */ @@ -29,6 +33,11 @@ export class ZipDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, { "name": "clickAndCollect", "baseName": "clickAndCollect", diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts new file mode 100644 index 0000000..61cee4d --- /dev/null +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 AcceptTermsOfServiceRequest { + /** + * The unique identifier of the user accepting the Terms of Service. + */ + 'acceptedBy'?: string; + /** + * The IP address of the user accepting the Terms of Service. + */ + 'ipAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptedBy", + "baseName": "acceptedBy", + "type": "string" + }, + { + "name": "ipAddress", + "baseName": "ipAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AcceptTermsOfServiceRequest.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts new file mode 100644 index 0000000..ec328a9 --- /dev/null +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts @@ -0,0 +1,83 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 AcceptTermsOfServiceResponse { + /** + * The unique identifier of the user that accepted the Terms of Service. + */ + 'acceptedBy'?: string; + /** + * The unique identifier of the Terms of Service acceptance. + */ + 'id'?: string; + /** + * The IP address of the user that accepted the Terms of Service. + */ + 'ipAddress'?: string; + /** + * The language used for the Terms of Service document, specified by the two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. For example, **nl** for Dutch. + */ + 'language'?: string; + /** + * The unique identifier of the Terms of Service document. + */ + 'termsOfServiceDocumentId'?: string; + /** + * The type of Terms of Service. + */ + 'type'?: AcceptTermsOfServiceResponse.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptedBy", + "baseName": "acceptedBy", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "ipAddress", + "baseName": "ipAddress", + "type": "string" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "termsOfServiceDocumentId", + "baseName": "termsOfServiceDocumentId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AcceptTermsOfServiceResponse.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AcceptTermsOfServiceResponse.attributeTypeMap; + } +} + +export namespace AcceptTermsOfServiceResponse { + export enum TypeEnum { + AdyenCapital = 'adyenCapital', + AdyenForPlatformsAdvanced = 'adyenForPlatformsAdvanced', + AdyenForPlatformsManage = 'adyenForPlatformsManage', + AdyenIssuing = 'adyenIssuing' + } +} diff --git a/src/typings/legalEntityManagement/amount.ts b/src/typings/legalEntityManagement/amount.ts new file mode 100644 index 0000000..f8f5052 --- /dev/null +++ b/src/typings/legalEntityManagement/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 type of currency. Must be EUR (or EUR equivalent) + */ + 'currency'?: string; + /** + * Total value of amount. Must be >= 0 + */ + '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/legalEntityManagement/attachment.ts b/src/typings/legalEntityManagement/attachment.ts index a531fff..c0b2f5d 100644 --- a/src/typings/legalEntityManagement/attachment.ts +++ b/src/typings/legalEntityManagement/attachment.ts @@ -26,7 +26,7 @@ export class Attachment { */ 'pageName'?: string; /** - * Specifies which side of the ID card is uploaded. * When `type` is **driversLicense**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments. */ 'pageType'?: string; diff --git a/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts b/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts new file mode 100644 index 0000000..d8130a5 --- /dev/null +++ b/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 CalculateTermsOfServiceStatusResponse { + /** + * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. + */ + 'termsOfServiceTypes'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "termsOfServiceTypes", + "baseName": "termsOfServiceTypes", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CalculateTermsOfServiceStatusResponse.attributeTypeMap; + } +} + +export namespace CalculateTermsOfServiceStatusResponse { + export enum TermsOfServiceTypesEnum { + AdyenCapital = 'adyenCapital', + AdyenForPlatformsAdvanced = 'adyenForPlatformsAdvanced', + AdyenForPlatformsManage = 'adyenForPlatformsManage', + AdyenIssuing = 'adyenIssuing' + } +} diff --git a/src/typings/legalEntityManagement/capabilityProblem.ts b/src/typings/legalEntityManagement/capabilityProblem.ts new file mode 100644 index 0000000..d3007f5 --- /dev/null +++ b/src/typings/legalEntityManagement/capabilityProblem.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; + +export class CapabilityProblem { + 'entity'?: CapabilityProblemEntity; + 'verificationErrors'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entity", + "baseName": "entity", + "type": "CapabilityProblemEntity" + }, + { + "name": "verificationErrors", + "baseName": "verificationErrors", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblem.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/capabilityProblemEntity.ts b/src/typings/legalEntityManagement/capabilityProblemEntity.ts new file mode 100644 index 0000000..b862a8b --- /dev/null +++ b/src/typings/legalEntityManagement/capabilityProblemEntity.ts @@ -0,0 +1,47 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; + +export class CapabilityProblemEntity { + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive; + 'type'?: CapabilityProblemEntity.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "owner", + "baseName": "owner", + "type": "CapabilityProblemEntityRecursive" + }, + { + "name": "type", + "baseName": "type", + "type": "CapabilityProblemEntity.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblemEntity.attributeTypeMap; + } +} + +export namespace CapabilityProblemEntity { + export enum TypeEnum { + BankAccount = 'BankAccount', + Document = 'Document', + LegalEntity = 'LegalEntity' + } +} diff --git a/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts b/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts new file mode 100644 index 0000000..c504d10 --- /dev/null +++ b/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 CapabilityProblemEntityRecursive { + 'id'?: string; + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CapabilityProblemEntityRecursive.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblemEntityRecursive.attributeTypeMap; + } +} + +export namespace CapabilityProblemEntityRecursive { + export enum TypeEnum { + BankAccount = 'BankAccount', + Document = 'Document', + LegalEntity = 'LegalEntity' + } +} diff --git a/src/typings/legalEntityManagement/capabilitySettings.ts b/src/typings/legalEntityManagement/capabilitySettings.ts new file mode 100644 index 0000000..8fd0040 --- /dev/null +++ b/src/typings/legalEntityManagement/capabilitySettings.ts @@ -0,0 +1,64 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 CapabilitySettings { + 'amountPerIndustry'?: { [key: string]: Amount; }; + 'authorizedCardUsers'?: boolean; + 'fundingSource'?: Array; + 'interval'?: CapabilitySettings.IntervalEnum; + 'maxAmount'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amountPerIndustry", + "baseName": "amountPerIndustry", + "type": "{ [key: string]: Amount; }" + }, + { + "name": "authorizedCardUsers", + "baseName": "authorizedCardUsers", + "type": "boolean" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "Array" + }, + { + "name": "interval", + "baseName": "interval", + "type": "CapabilitySettings.IntervalEnum" + }, + { + "name": "maxAmount", + "baseName": "maxAmount", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return CapabilitySettings.attributeTypeMap; + } +} + +export namespace CapabilitySettings { + export enum FundingSourceEnum { + Credit = 'credit', + Debit = 'debit', + Prepaid = 'prepaid' + } + export enum IntervalEnum { + Daily = 'daily', + Monthly = 'monthly', + Weekly = 'weekly' + } +} diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts index 1c0a47b..c290918 100644 --- a/src/typings/legalEntityManagement/document.ts +++ b/src/typings/legalEntityManagement/document.ts @@ -17,6 +17,10 @@ export class Document { */ 'attachments': Array; /** + * The creation date of the document. + */ + 'creationDate'?: Date; + /** * Your description for the document. */ 'description': string; @@ -41,6 +45,10 @@ export class Document { */ 'issuerState'?: string; /** + * The modification date of the document. + */ + 'modificationDate'?: Date; + /** * The number in the document. */ 'number'?: string; @@ -63,6 +71,11 @@ export class Document { "baseName": "attachments", "type": "Array" }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, { "name": "description", "baseName": "description", @@ -93,6 +106,11 @@ export class Document { "baseName": "issuerState", "type": "string" }, + { + "name": "modificationDate", + "baseName": "modificationDate", + "type": "Date" + }, { "name": "number", "baseName": "number", diff --git a/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts new file mode 100644 index 0000000..8497ea2 --- /dev/null +++ b/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TermsOfServiceAcceptanceInfo } from './termsOfServiceAcceptanceInfo'; + +export class GetTermsOfServiceAcceptanceInfosResponse { + /** + * The Terms of Service acceptance information. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetTermsOfServiceAcceptanceInfosResponse.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts new file mode 100644 index 0000000..c023af3 --- /dev/null +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts @@ -0,0 +1,47 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 GetTermsOfServiceDocumentRequest { + /** + * The language to be used for the Terms of Service document, specified by the two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. For example, **nl** for Dutch. + */ + 'language'?: string; + /** + * The type of Terms of Service. + */ + 'type'?: GetTermsOfServiceDocumentRequest.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GetTermsOfServiceDocumentRequest.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GetTermsOfServiceDocumentRequest.attributeTypeMap; + } +} + +export namespace GetTermsOfServiceDocumentRequest { + export enum TypeEnum { + AdyenCapital = 'adyenCapital', + AdyenForPlatformsAdvanced = 'adyenForPlatformsAdvanced', + AdyenForPlatformsManage = 'adyenForPlatformsManage', + AdyenIssuing = 'adyenIssuing' + } +} diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts new file mode 100644 index 0000000..8392737 --- /dev/null +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts @@ -0,0 +1,74 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 GetTermsOfServiceDocumentResponse { + /** + * The Terms of Service document in Base64-encoded format. + */ + 'document'?: string; + /** + * The unique identifier of the legal entity. + */ + 'id'?: string; + /** + * The language used for the Terms of Service document, specified by the two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. For example, **nl** for Dutch. + */ + 'language'?: string; + /** + * The unique identifier of the Terms of Service document. + */ + 'termsOfServiceDocumentId'?: string; + /** + * The type of Terms of Service. + */ + 'type'?: GetTermsOfServiceDocumentResponse.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "document", + "baseName": "document", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "termsOfServiceDocumentId", + "baseName": "termsOfServiceDocumentId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GetTermsOfServiceDocumentResponse.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GetTermsOfServiceDocumentResponse.attributeTypeMap; + } +} + +export namespace GetTermsOfServiceDocumentResponse { + export enum TypeEnum { + AdyenCapital = 'adyenCapital', + AdyenForPlatformsAdvanced = 'adyenForPlatformsAdvanced', + AdyenForPlatformsManage = 'adyenForPlatformsManage', + AdyenIssuing = 'adyenIssuing' + } +} diff --git a/src/typings/legalEntityManagement/identificationData.ts b/src/typings/legalEntityManagement/identificationData.ts index 1d2687a..ba6558c 100644 --- a/src/typings/legalEntityManagement/identificationData.ts +++ b/src/typings/legalEntityManagement/identificationData.ts @@ -9,6 +9,10 @@ export class IdentificationData { + /** + * The card number of the document that was issued (AU only). + */ + 'cardNumber'?: string; /** * The expiry date of the document, in YYYY-MM-DD format. */ @@ -37,6 +41,11 @@ export class IdentificationData { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, { "name": "expiryDate", "baseName": "expiryDate", diff --git a/src/typings/legalEntityManagement/legalEntity.ts b/src/typings/legalEntityManagement/legalEntity.ts index bf1198c..13a61f3 100644 --- a/src/typings/legalEntityManagement/legalEntity.ts +++ b/src/typings/legalEntityManagement/legalEntity.ts @@ -11,10 +11,16 @@ import { DocumentReference } from './documentReference'; import { EntityReference } from './entityReference'; import { Individual } from './individual'; import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; import { Organization } from './organization'; import { SoleProprietorship } from './soleProprietorship'; +import { TransferInstrumentReference } from './transferInstrumentReference'; export class LegalEntity { + /** + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + */ + 'capabilities'?: { [key: string]: LegalEntityCapability; }; /** * List of documents uploaded for the legal entity. */ @@ -41,15 +47,20 @@ export class LegalEntity { /** * List of transfer instruments owned by the legal entity. */ - 'transferInstruments'?: Array; + 'transferInstruments'?: Array; /** * The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. */ - 'type': LegalEntity.TypeEnum; + 'type'?: LegalEntity.TypeEnum; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "{ [key: string]: LegalEntityCapability; }" + }, { "name": "documentDetails", "baseName": "documentDetails", @@ -93,7 +104,7 @@ export class LegalEntity { { "name": "transferInstruments", "baseName": "transferInstruments", - "type": "Array" + "type": "Array" }, { "name": "type", diff --git a/src/typings/legalEntityManagement/legalEntityAssociation.ts b/src/typings/legalEntityManagement/legalEntityAssociation.ts index 1d8ad9f..752d9d1 100644 --- a/src/typings/legalEntityManagement/legalEntityAssociation.ts +++ b/src/typings/legalEntityManagement/legalEntityAssociation.ts @@ -30,7 +30,7 @@ export class LegalEntityAssociation { */ 'name'?: string; /** - * Defines the relationship of the legal entity to the current legal entity. For example, **uboThroughOwnership**, **uboThroughControl**, or **signatory**. + * Defines the relationship of the legal entity to the current legal entity. For example, **uboThroughOwnership**, **uboThroughControl**, **signatory**, or **soleProprietorship**. */ 'type': LegalEntityAssociation.TypeEnum; @@ -75,7 +75,9 @@ export class LegalEntityAssociation { export namespace LegalEntityAssociation { export enum TypeEnum { + PciSignatory = 'pciSignatory', Signatory = 'signatory', + SoleProprietorship = 'soleProprietorship', UboThroughControl = 'uboThroughControl', UboThroughOwnership = 'uboThroughOwnership' } diff --git a/src/typings/legalEntityManagement/legalEntityCapability.ts b/src/typings/legalEntityManagement/legalEntityCapability.ts new file mode 100644 index 0000000..6a41176 --- /dev/null +++ b/src/typings/legalEntityManagement/legalEntityCapability.ts @@ -0,0 +1,113 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilitySettings } from './capabilitySettings'; +import { SupportingEntityCapability } from './supportingEntityCapability'; + +export class LegalEntityCapability { + /** + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful + */ + 'allowed'?: boolean; + /** + * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. + */ + 'allowedLevel'?: LegalEntityCapability.AllowedLevelEnum; + 'allowedSettings'?: CapabilitySettings; + /** + * Contains verification errors and the actions that you can take to resolve them. + */ + 'problems'?: Array; + /** + * Indicates whether the capability is requested. To check whether the Legal Entity is permitted to use the capability, + */ + 'requested'?: boolean; + /** + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + */ + 'requestedLevel'?: LegalEntityCapability.RequestedLevelEnum; + 'requestedSettings'?: CapabilitySettings; + /** + * Capability status for transfer instruments associated with legal entity + */ + 'transferInstruments'?: Array; + /** + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + */ + 'verificationStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowed", + "baseName": "allowed", + "type": "boolean" + }, + { + "name": "allowedLevel", + "baseName": "allowedLevel", + "type": "LegalEntityCapability.AllowedLevelEnum" + }, + { + "name": "allowedSettings", + "baseName": "allowedSettings", + "type": "CapabilitySettings" + }, + { + "name": "problems", + "baseName": "problems", + "type": "Array" + }, + { + "name": "requested", + "baseName": "requested", + "type": "boolean" + }, + { + "name": "requestedLevel", + "baseName": "requestedLevel", + "type": "LegalEntityCapability.RequestedLevelEnum" + }, + { + "name": "requestedSettings", + "baseName": "requestedSettings", + "type": "CapabilitySettings" + }, + { + "name": "transferInstruments", + "baseName": "transferInstruments", + "type": "Array" + }, + { + "name": "verificationStatus", + "baseName": "verificationStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return LegalEntityCapability.attributeTypeMap; + } +} + +export namespace LegalEntityCapability { + export enum AllowedLevelEnum { + High = 'high', + Low = 'low', + Medium = 'medium', + NotApplicable = 'notApplicable' + } + export enum RequestedLevelEnum { + High = 'high', + Low = 'low', + Medium = 'medium', + NotApplicable = 'notApplicable' + } +} diff --git a/src/typings/legalEntityManagement/legalEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfo.ts index c332b91..e097212 100644 --- a/src/typings/legalEntityManagement/legalEntityInfo.ts +++ b/src/typings/legalEntityManagement/legalEntityInfo.ts @@ -9,10 +9,15 @@ import { Individual } from './individual'; import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; import { Organization } from './organization'; import { SoleProprietorship } from './soleProprietorship'; export class LegalEntityInfo { + /** + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + */ + 'capabilities'?: { [key: string]: LegalEntityCapability; }; /** * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ @@ -27,11 +32,16 @@ export class LegalEntityInfo { /** * The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. */ - 'type': LegalEntityInfo.TypeEnum; + 'type'?: LegalEntityInfo.TypeEnum; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "{ [key: string]: LegalEntityCapability; }" + }, { "name": "entityAssociations", "baseName": "entityAssociations", diff --git a/src/typings/legalEntityManagement/genericEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts similarity index 51% rename from src/typings/legalEntityManagement/genericEntityInfo.ts rename to src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts index 96817be..41578d2 100644 --- a/src/typings/legalEntityManagement/genericEntityInfo.ts +++ b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts @@ -9,21 +9,39 @@ import { Individual } from './individual'; import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; import { Organization } from './organization'; import { SoleProprietorship } from './soleProprietorship'; -export class GenericEntityInfo { +export class LegalEntityInfoRequiredType { + /** + * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + */ + 'capabilities'?: { [key: string]: LegalEntityCapability; }; /** * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ 'entityAssociations'?: Array; 'individual'?: Individual; 'organization'?: Organization; + /** + * Your reference for the legal entity, maximum 150 characters. + */ + 'reference'?: string; 'soleProprietorship'?: SoleProprietorship; + /** + * The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + */ + 'type': LegalEntityInfoRequiredType.TypeEnum; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "{ [key: string]: LegalEntityCapability; }" + }, { "name": "entityAssociations", "baseName": "entityAssociations", @@ -39,14 +57,33 @@ export class GenericEntityInfo { "baseName": "organization", "type": "Organization" }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, { "name": "soleProprietorship", "baseName": "soleProprietorship", "type": "SoleProprietorship" + }, + { + "name": "type", + "baseName": "type", + "type": "LegalEntityInfoRequiredType.TypeEnum" } ]; static getAttributeTypeMap() { - return GenericEntityInfo.attributeTypeMap; + return LegalEntityInfoRequiredType.attributeTypeMap; } } +export namespace LegalEntityInfoRequiredType { + export enum TypeEnum { + Individual = 'individual', + Organization = 'organization', + SoleProprietorship = 'soleProprietorship', + Trust = 'trust', + UnincorporatedPartnership = 'unincorporatedPartnership' + } +} diff --git a/src/typings/legalEntityManagement/models.ts b/src/typings/legalEntityManagement/models.ts index d0afe41..e8b1e9f 100644 --- a/src/typings/legalEntityManagement/models.ts +++ b/src/typings/legalEntityManagement/models.ts @@ -8,7 +8,10 @@ */ +export * from './acceptTermsOfServiceRequest'; +export * from './acceptTermsOfServiceResponse'; export * from './address'; +export * from './amount'; export * from './attachment'; export * from './bankAccountInfo'; export * from './birthData'; @@ -16,15 +19,24 @@ export * from './businessLine'; export * from './businessLineInfo'; export * from './businessLineInfoUpdate'; export * from './businessLines'; +export * from './calculateTermsOfServiceStatusResponse'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; +export * from './capabilitySettings'; export * from './document'; export * from './documentReference'; export * from './entityReference'; -export * from './genericEntityInfo'; +export * from './getTermsOfServiceAcceptanceInfosResponse'; +export * from './getTermsOfServiceDocumentRequest'; +export * from './getTermsOfServiceDocumentResponse'; export * from './identificationData'; export * from './individual'; export * from './legalEntity'; export * from './legalEntityAssociation'; +export * from './legalEntityCapability'; export * from './legalEntityInfo'; +export * from './legalEntityInfoRequiredType'; export * from './name'; export * from './onboardingLink'; export * from './onboardingLinkInfo'; @@ -33,20 +45,28 @@ export * from './onboardingThemes'; export * from './organization'; export * from './ownerEntity'; export * from './phoneNumber'; -export * from './recurringDetail'; +export * from './remediatingAction'; export * from './serviceError'; export * from './soleProprietorship'; export * from './sourceOfFunds'; export * from './stockData'; +export * from './supportingEntityCapability'; export * from './taxInformation'; export * from './taxReportingClassification'; +export * from './termsOfServiceAcceptanceInfo'; export * from './transferInstrument'; export * from './transferInstrumentInfo'; +export * from './transferInstrumentReference'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; export * from './webData'; export * from './webDataExemption'; +import { AcceptTermsOfServiceRequest } from './acceptTermsOfServiceRequest'; +import { AcceptTermsOfServiceResponse } from './acceptTermsOfServiceResponse'; import { Address } from './address'; +import { Amount } from './amount'; import { Attachment } from './attachment'; import { BankAccountInfo } from './bankAccountInfo'; import { BirthData } from './birthData'; @@ -54,15 +74,24 @@ import { BusinessLine } from './businessLine'; import { BusinessLineInfo } from './businessLineInfo'; import { BusinessLineInfoUpdate } from './businessLineInfoUpdate'; import { BusinessLines } from './businessLines'; +import { CalculateTermsOfServiceStatusResponse } from './calculateTermsOfServiceStatusResponse'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; +import { CapabilitySettings } from './capabilitySettings'; import { Document } from './document'; import { DocumentReference } from './documentReference'; import { EntityReference } from './entityReference'; -import { GenericEntityInfo } from './genericEntityInfo'; +import { GetTermsOfServiceAcceptanceInfosResponse } from './getTermsOfServiceAcceptanceInfosResponse'; +import { GetTermsOfServiceDocumentRequest } from './getTermsOfServiceDocumentRequest'; +import { GetTermsOfServiceDocumentResponse } from './getTermsOfServiceDocumentResponse'; import { IdentificationData } from './identificationData'; import { Individual } from './individual'; import { LegalEntity } from './legalEntity'; import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; import { LegalEntityInfo } from './legalEntityInfo'; +import { LegalEntityInfoRequiredType } from './legalEntityInfoRequiredType'; import { Name } from './name'; import { OnboardingLink } from './onboardingLink'; import { OnboardingLinkInfo } from './onboardingLinkInfo'; @@ -71,15 +100,20 @@ import { OnboardingThemes } from './onboardingThemes'; import { Organization } from './organization'; import { OwnerEntity } from './ownerEntity'; import { PhoneNumber } from './phoneNumber'; -import { RecurringDetail } from './recurringDetail'; +import { RemediatingAction } from './remediatingAction'; import { ServiceError } from './serviceError'; import { SoleProprietorship } from './soleProprietorship'; import { SourceOfFunds } from './sourceOfFunds'; import { StockData } from './stockData'; +import { SupportingEntityCapability } from './supportingEntityCapability'; import { TaxInformation } from './taxInformation'; import { TaxReportingClassification } from './taxReportingClassification'; +import { TermsOfServiceAcceptanceInfo } from './termsOfServiceAcceptanceInfo'; import { TransferInstrument } from './transferInstrument'; import { TransferInstrumentInfo } from './transferInstrumentInfo'; +import { TransferInstrumentReference } from './transferInstrumentReference'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; import { WebData } from './webData'; import { WebDataExemption } from './webDataExemption'; @@ -96,11 +130,22 @@ let primitives = [ ]; let enumsMap: {[index: string]: any} = { + "AcceptTermsOfServiceResponse.TypeEnum": AcceptTermsOfServiceResponse.TypeEnum, + "CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum": CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum, + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, + "CapabilitySettings.FundingSourceEnum": CapabilitySettings.FundingSourceEnum, + "CapabilitySettings.IntervalEnum": CapabilitySettings.IntervalEnum, "Document.TypeEnum": Document.TypeEnum, + "GetTermsOfServiceDocumentRequest.TypeEnum": GetTermsOfServiceDocumentRequest.TypeEnum, + "GetTermsOfServiceDocumentResponse.TypeEnum": GetTermsOfServiceDocumentResponse.TypeEnum, "IdentificationData.TypeEnum": IdentificationData.TypeEnum, "LegalEntity.TypeEnum": LegalEntity.TypeEnum, "LegalEntityAssociation.TypeEnum": LegalEntityAssociation.TypeEnum, + "LegalEntityCapability.AllowedLevelEnum": LegalEntityCapability.AllowedLevelEnum, + "LegalEntityCapability.RequestedLevelEnum": LegalEntityCapability.RequestedLevelEnum, "LegalEntityInfo.TypeEnum": LegalEntityInfo.TypeEnum, + "LegalEntityInfoRequiredType.TypeEnum": LegalEntityInfoRequiredType.TypeEnum, "Organization.TypeEnum": Organization.TypeEnum, "Organization.VatAbsenceReasonEnum": Organization.VatAbsenceReasonEnum, "SoleProprietorship.VatAbsenceReasonEnum": SoleProprietorship.VatAbsenceReasonEnum, @@ -108,13 +153,21 @@ let enumsMap: {[index: string]: any} = { "TaxReportingClassification.BusinessTypeEnum": TaxReportingClassification.BusinessTypeEnum, "TaxReportingClassification.MainSourceOfIncomeEnum": TaxReportingClassification.MainSourceOfIncomeEnum, "TaxReportingClassification.TypeEnum": TaxReportingClassification.TypeEnum, + "TermsOfServiceAcceptanceInfo.TypeEnum": TermsOfServiceAcceptanceInfo.TypeEnum, "TransferInstrument.TypeEnum": TransferInstrument.TypeEnum, "TransferInstrumentInfo.TypeEnum": TransferInstrumentInfo.TypeEnum, + "VerificationError.CapabilitiesEnum": VerificationError.CapabilitiesEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.CapabilitiesEnum": VerificationErrorRecursive.CapabilitiesEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, "WebDataExemption.ReasonEnum": WebDataExemption.ReasonEnum, } let typeMap: {[index: string]: any} = { + "AcceptTermsOfServiceRequest": AcceptTermsOfServiceRequest, + "AcceptTermsOfServiceResponse": AcceptTermsOfServiceResponse, "Address": Address, + "Amount": Amount, "Attachment": Attachment, "BankAccountInfo": BankAccountInfo, "BirthData": BirthData, @@ -122,15 +175,24 @@ let typeMap: {[index: string]: any} = { "BusinessLineInfo": BusinessLineInfo, "BusinessLineInfoUpdate": BusinessLineInfoUpdate, "BusinessLines": BusinessLines, + "CalculateTermsOfServiceStatusResponse": CalculateTermsOfServiceStatusResponse, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, + "CapabilitySettings": CapabilitySettings, "Document": Document, "DocumentReference": DocumentReference, "EntityReference": EntityReference, - "GenericEntityInfo": GenericEntityInfo, + "GetTermsOfServiceAcceptanceInfosResponse": GetTermsOfServiceAcceptanceInfosResponse, + "GetTermsOfServiceDocumentRequest": GetTermsOfServiceDocumentRequest, + "GetTermsOfServiceDocumentResponse": GetTermsOfServiceDocumentResponse, "IdentificationData": IdentificationData, "Individual": Individual, "LegalEntity": LegalEntity, "LegalEntityAssociation": LegalEntityAssociation, + "LegalEntityCapability": LegalEntityCapability, "LegalEntityInfo": LegalEntityInfo, + "LegalEntityInfoRequiredType": LegalEntityInfoRequiredType, "Name": Name, "OnboardingLink": OnboardingLink, "OnboardingLinkInfo": OnboardingLinkInfo, @@ -139,15 +201,20 @@ let typeMap: {[index: string]: any} = { "Organization": Organization, "OwnerEntity": OwnerEntity, "PhoneNumber": PhoneNumber, - "RecurringDetail": RecurringDetail, + "RemediatingAction": RemediatingAction, "ServiceError": ServiceError, "SoleProprietorship": SoleProprietorship, "SourceOfFunds": SourceOfFunds, "StockData": StockData, + "SupportingEntityCapability": SupportingEntityCapability, "TaxInformation": TaxInformation, "TaxReportingClassification": TaxReportingClassification, + "TermsOfServiceAcceptanceInfo": TermsOfServiceAcceptanceInfo, "TransferInstrument": TransferInstrument, "TransferInstrumentInfo": TransferInstrumentInfo, + "TransferInstrumentReference": TransferInstrumentReference, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, "WebData": WebData, "WebDataExemption": WebDataExemption, } diff --git a/src/typings/legalEntityManagement/onboardingLinkInfo.ts b/src/typings/legalEntityManagement/onboardingLinkInfo.ts index 788ed2e..0bfbbc5 100644 --- a/src/typings/legalEntityManagement/onboardingLinkInfo.ts +++ b/src/typings/legalEntityManagement/onboardingLinkInfo.ts @@ -10,7 +10,7 @@ export class OnboardingLinkInfo { /** - * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. Possible values: **cs-CZ**, **de-DE**, **en-US**, **es-ES**, **it-IT**, **nl-NL**, **no-NO**, **pl-PL**, **pt-PT**, **sv-SE**. If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See [possible values](https://docs.adyen.com/marketplaces-and-platforms/onboarding/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. */ 'locale'?: string; /** @@ -18,6 +18,10 @@ export class OnboardingLinkInfo { */ 'redirectUrl'?: string; /** + * The enabled/disabled settings in the hosted onboarding webpage. + */ + 'settings'?: { [key: string]: boolean; }; + /** * The unique identifier of the hosted onboarding theme. */ 'themeId'?: string; @@ -35,6 +39,11 @@ export class OnboardingLinkInfo { "baseName": "redirectUrl", "type": "string" }, + { + "name": "settings", + "baseName": "settings", + "type": "{ [key: string]: boolean; }" + }, { "name": "themeId", "baseName": "themeId", diff --git a/src/typings/legalEntityManagement/recurringDetail.ts b/src/typings/legalEntityManagement/recurringDetail.ts deleted file mode 100644 index bf8a56b..0000000 --- a/src/typings/legalEntityManagement/recurringDetail.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The version of the OpenAPI document: v2 - * Contact: developer-experience@adyen.com - * - * 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 RecurringDetail { - /** - * The merchant account used when the payment details were stored. - */ - 'merchantAccount'?: string; - /** - * The `recurringDetailReference` returned in the response when the payment details were stored. - */ - 'reference'?: string; - /** - * The unique identifier used when the payment details were stored. - */ - 'shopperReference'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "shopperReference", - "baseName": "shopperReference", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return RecurringDetail.attributeTypeMap; - } -} - diff --git a/src/typings/legalEntityManagement/remediatingAction.ts b/src/typings/legalEntityManagement/remediatingAction.ts new file mode 100644 index 0000000..9c52e83 --- /dev/null +++ b/src/typings/legalEntityManagement/remediatingAction.ts @@ -0,0 +1,33 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 RemediatingAction { + 'code'?: string; + 'message'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RemediatingAction.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/sourceOfFunds.ts b/src/typings/legalEntityManagement/sourceOfFunds.ts index d8ce5c5..8c2757c 100644 --- a/src/typings/legalEntityManagement/sourceOfFunds.ts +++ b/src/typings/legalEntityManagement/sourceOfFunds.ts @@ -10,11 +10,11 @@ export class SourceOfFunds { /** - * The unique identifier of the business line that will be the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. Required when `adyenProcessedFunds` is **true**. + * The unique identifier of the business line that will be the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. */ 'acquiringBusinessLineId'?: string; /** - * Indicates whether the funds are coming from transactions processed by Adyen. - If **true**, the `acquiringBusinessLineId` is required. - If **false**, a `description` is required. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. */ 'adyenProcessedFunds'?: boolean; /** diff --git a/src/typings/legalEntityManagement/supportingEntityCapability.ts b/src/typings/legalEntityManagement/supportingEntityCapability.ts new file mode 100644 index 0000000..530b93d --- /dev/null +++ b/src/typings/legalEntityManagement/supportingEntityCapability.ts @@ -0,0 +1,67 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblem } from './capabilityProblem'; + +export class SupportingEntityCapability { + /** + * Indicates whether the supporting entity capability is allowed. If a supporting entity is allowed but its parent legal entity is not, it means there are other supporting entities that failed validation. **The allowed supporting entity can still be used** + */ + 'allowed'?: boolean; + /** + * Supporting entity reference + */ + 'id'?: string; + /** + * Contains verification errors and the actions that you can take to resolve them. + */ + 'problems'?: Array; + /** + * Indicates whether the supporting entity capability is requested. + */ + 'requested'?: boolean; + /** + * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + */ + 'verificationStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowed", + "baseName": "allowed", + "type": "boolean" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "problems", + "baseName": "problems", + "type": "Array" + }, + { + "name": "requested", + "baseName": "requested", + "type": "boolean" + }, + { + "name": "verificationStatus", + "baseName": "verificationStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SupportingEntityCapability.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts b/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts new file mode 100644 index 0000000..4b15531 --- /dev/null +++ b/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts @@ -0,0 +1,74 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 TermsOfServiceAcceptanceInfo { + /** + * The unique identifier of the user that accepted the Terms of Service. + */ + 'acceptedBy'?: string; + /** + * The unique identifier of the legal entity for which the Terms of Service are accepted. + */ + 'acceptedFor'?: string; + /** + * The date when the Terms of Service were accepted. + */ + 'createdAt'?: Date; + /** + * An Adyen-generated reference for the accepted Terms of Service. + */ + 'id'?: string; + /** + * The type of Terms of Service. + */ + 'type'?: TermsOfServiceAcceptanceInfo.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptedBy", + "baseName": "acceptedBy", + "type": "string" + }, + { + "name": "acceptedFor", + "baseName": "acceptedFor", + "type": "string" + }, + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "TermsOfServiceAcceptanceInfo.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TermsOfServiceAcceptanceInfo.attributeTypeMap; + } +} + +export namespace TermsOfServiceAcceptanceInfo { + export enum TypeEnum { + AdyenCapital = 'adyenCapital', + AdyenForPlatformsAdvanced = 'adyenForPlatformsAdvanced', + AdyenForPlatformsManage = 'adyenForPlatformsManage', + AdyenIssuing = 'adyenIssuing' + } +} diff --git a/src/typings/legalEntityManagement/transferInstrument.ts b/src/typings/legalEntityManagement/transferInstrument.ts index 1c31905..555fcf1 100644 --- a/src/typings/legalEntityManagement/transferInstrument.ts +++ b/src/typings/legalEntityManagement/transferInstrument.ts @@ -9,10 +9,9 @@ import { BankAccountInfo } from './bankAccountInfo'; import { DocumentReference } from './documentReference'; -import { RecurringDetail } from './recurringDetail'; export class TransferInstrument { - 'bankAccount'?: BankAccountInfo; + 'bankAccount': BankAccountInfo; /** * List of documents uploaded for the transfer instrument. */ @@ -25,9 +24,8 @@ export class TransferInstrument { * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument. */ 'legalEntityId': string; - 'recurringDetail'?: RecurringDetail; /** - * The type of transfer instrument. Possible values: **bankAccount**, **recurringDetail**. + * The type of transfer instrument. Possible value: **bankAccount**. */ 'type': TransferInstrument.TypeEnum; @@ -54,11 +52,6 @@ export class TransferInstrument { "baseName": "legalEntityId", "type": "string" }, - { - "name": "recurringDetail", - "baseName": "recurringDetail", - "type": "RecurringDetail" - }, { "name": "type", "baseName": "type", diff --git a/src/typings/legalEntityManagement/transferInstrumentInfo.ts b/src/typings/legalEntityManagement/transferInstrumentInfo.ts index 53a9fd8..2f3c98a 100644 --- a/src/typings/legalEntityManagement/transferInstrumentInfo.ts +++ b/src/typings/legalEntityManagement/transferInstrumentInfo.ts @@ -8,17 +8,15 @@ */ import { BankAccountInfo } from './bankAccountInfo'; -import { RecurringDetail } from './recurringDetail'; export class TransferInstrumentInfo { - 'bankAccount'?: BankAccountInfo; + 'bankAccount': BankAccountInfo; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument. */ 'legalEntityId': string; - 'recurringDetail'?: RecurringDetail; /** - * The type of transfer instrument. Possible values: **bankAccount**, **recurringDetail**. + * The type of transfer instrument. Possible value: **bankAccount**. */ 'type': TransferInstrumentInfo.TypeEnum; @@ -35,11 +33,6 @@ export class TransferInstrumentInfo { "baseName": "legalEntityId", "type": "string" }, - { - "name": "recurringDetail", - "baseName": "recurringDetail", - "type": "RecurringDetail" - }, { "name": "type", "baseName": "type", diff --git a/src/typings/legalEntityManagement/transferInstrumentReference.ts b/src/typings/legalEntityManagement/transferInstrumentReference.ts new file mode 100644 index 0000000..de59d96 --- /dev/null +++ b/src/typings/legalEntityManagement/transferInstrumentReference.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * 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 TransferInstrumentReference { + /** + * Account identifier + */ + 'accountIdentifier'?: string; + /** + * The unique identifier of the resource. + */ + 'id'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountIdentifier", + "baseName": "accountIdentifier", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransferInstrumentReference.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/verificationError.ts b/src/typings/legalEntityManagement/verificationError.ts new file mode 100644 index 0000000..239ae65 --- /dev/null +++ b/src/typings/legalEntityManagement/verificationError.ts @@ -0,0 +1,125 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; + +export class VerificationError { + 'capabilities'?: Array; + 'code'?: string; + 'entity'?: CapabilityProblemEntity; + 'message'?: string; + 'remediatingActions'?: Array; + 'subErrors'?: Array; + 'type'?: VerificationError.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "Array" + }, + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "entity", + "baseName": "entity", + "type": "CapabilityProblemEntity" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "remediatingActions", + "baseName": "remediatingActions", + "type": "Array" + }, + { + "name": "subErrors", + "baseName": "subErrors", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "VerificationError.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return VerificationError.attributeTypeMap; + } +} + +export namespace VerificationError { + export enum CapabilitiesEnum { + AcceptExternalFunding = 'acceptExternalFunding', + AcceptPspFunding = 'acceptPspFunding', + AcceptTransactionInRestrictedCountries = 'acceptTransactionInRestrictedCountries', + AcceptTransactionInRestrictedCountriesCommercial = 'acceptTransactionInRestrictedCountriesCommercial', + AcceptTransactionInRestrictedCountriesConsumer = 'acceptTransactionInRestrictedCountriesConsumer', + AcceptTransactionInRestrictedIndustries = 'acceptTransactionInRestrictedIndustries', + AcceptTransactionInRestrictedIndustriesCommercial = 'acceptTransactionInRestrictedIndustriesCommercial', + AcceptTransactionInRestrictedIndustriesConsumer = 'acceptTransactionInRestrictedIndustriesConsumer', + Acquiring = 'acquiring', + AtmWithdrawal = 'atmWithdrawal', + AtmWithdrawalCommercial = 'atmWithdrawalCommercial', + AtmWithdrawalConsumer = 'atmWithdrawalConsumer', + AtmWithdrawalInRestrictedCountries = 'atmWithdrawalInRestrictedCountries', + AtmWithdrawalInRestrictedCountriesCommercial = 'atmWithdrawalInRestrictedCountriesCommercial', + AtmWithdrawalInRestrictedCountriesConsumer = 'atmWithdrawalInRestrictedCountriesConsumer', + AuthorisedPaymentInstrumentUser = 'authorisedPaymentInstrumentUser', + GetGrantOffers = 'getGrantOffers', + IssueBankAccount = 'issueBankAccount', + IssueCard = 'issueCard', + IssueCardCommercial = 'issueCardCommercial', + IssueCardConsumer = 'issueCardConsumer', + LocalAcceptance = 'localAcceptance', + Payout = 'payout', + PayoutToTransferInstrument = 'payoutToTransferInstrument', + Processing = 'processing', + ReceiveFromBalanceAccount = 'receiveFromBalanceAccount', + ReceiveFromPlatformPayments = 'receiveFromPlatformPayments', + ReceiveFromThirdParty = 'receiveFromThirdParty', + ReceiveFromTransferInstrument = 'receiveFromTransferInstrument', + ReceiveGrants = 'receiveGrants', + ReceivePayments = 'receivePayments', + SendToBalanceAccount = 'sendToBalanceAccount', + SendToThirdParty = 'sendToThirdParty', + SendToTransferInstrument = 'sendToTransferInstrument', + ThirdPartyFunding = 'thirdPartyFunding', + UseCard = 'useCard', + UseCardCommercial = 'useCardCommercial', + UseCardConsumer = 'useCardConsumer', + UseCardInRestrictedCountries = 'useCardInRestrictedCountries', + UseCardInRestrictedCountriesCommercial = 'useCardInRestrictedCountriesCommercial', + UseCardInRestrictedCountriesConsumer = 'useCardInRestrictedCountriesConsumer', + UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries', + UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial', + UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer', + WithdrawFromAtm = 'withdrawFromAtm', + WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial', + WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer', + WithdrawFromAtmInRestrictedCountries = 'withdrawFromAtmInRestrictedCountries', + WithdrawFromAtmInRestrictedCountriesCommercial = 'withdrawFromAtmInRestrictedCountriesCommercial', + WithdrawFromAtmInRestrictedCountriesConsumer = 'withdrawFromAtmInRestrictedCountriesConsumer' + } + export enum TypeEnum { + DataMissing = 'dataMissing', + InvalidInput = 'invalidInput', + PendingStatus = 'pendingStatus' + } +} diff --git a/src/typings/legalEntityManagement/verificationErrorRecursive.ts b/src/typings/legalEntityManagement/verificationErrorRecursive.ts new file mode 100644 index 0000000..b991e3d --- /dev/null +++ b/src/typings/legalEntityManagement/verificationErrorRecursive.ts @@ -0,0 +1,118 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { RemediatingAction } from './remediatingAction'; + +export class VerificationErrorRecursive { + 'capabilities'?: Array; + 'code'?: string; + 'message'?: string; + 'type'?: VerificationErrorRecursive.TypeEnum; + 'entity'?: CapabilityProblemEntity; + 'remediatingActions'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "Array" + }, + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "VerificationErrorRecursive.TypeEnum" + }, + { + "name": "entity", + "baseName": "entity", + "type": "CapabilityProblemEntity" + }, + { + "name": "remediatingActions", + "baseName": "remediatingActions", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return VerificationErrorRecursive.attributeTypeMap; + } +} + +export namespace VerificationErrorRecursive { + export enum CapabilitiesEnum { + AcceptExternalFunding = 'acceptExternalFunding', + AcceptPspFunding = 'acceptPspFunding', + AcceptTransactionInRestrictedCountries = 'acceptTransactionInRestrictedCountries', + AcceptTransactionInRestrictedCountriesCommercial = 'acceptTransactionInRestrictedCountriesCommercial', + AcceptTransactionInRestrictedCountriesConsumer = 'acceptTransactionInRestrictedCountriesConsumer', + AcceptTransactionInRestrictedIndustries = 'acceptTransactionInRestrictedIndustries', + AcceptTransactionInRestrictedIndustriesCommercial = 'acceptTransactionInRestrictedIndustriesCommercial', + AcceptTransactionInRestrictedIndustriesConsumer = 'acceptTransactionInRestrictedIndustriesConsumer', + Acquiring = 'acquiring', + AtmWithdrawal = 'atmWithdrawal', + AtmWithdrawalCommercial = 'atmWithdrawalCommercial', + AtmWithdrawalConsumer = 'atmWithdrawalConsumer', + AtmWithdrawalInRestrictedCountries = 'atmWithdrawalInRestrictedCountries', + AtmWithdrawalInRestrictedCountriesCommercial = 'atmWithdrawalInRestrictedCountriesCommercial', + AtmWithdrawalInRestrictedCountriesConsumer = 'atmWithdrawalInRestrictedCountriesConsumer', + AuthorisedPaymentInstrumentUser = 'authorisedPaymentInstrumentUser', + GetGrantOffers = 'getGrantOffers', + IssueBankAccount = 'issueBankAccount', + IssueCard = 'issueCard', + IssueCardCommercial = 'issueCardCommercial', + IssueCardConsumer = 'issueCardConsumer', + LocalAcceptance = 'localAcceptance', + Payout = 'payout', + PayoutToTransferInstrument = 'payoutToTransferInstrument', + Processing = 'processing', + ReceiveFromBalanceAccount = 'receiveFromBalanceAccount', + ReceiveFromPlatformPayments = 'receiveFromPlatformPayments', + ReceiveFromThirdParty = 'receiveFromThirdParty', + ReceiveFromTransferInstrument = 'receiveFromTransferInstrument', + ReceiveGrants = 'receiveGrants', + ReceivePayments = 'receivePayments', + SendToBalanceAccount = 'sendToBalanceAccount', + SendToThirdParty = 'sendToThirdParty', + SendToTransferInstrument = 'sendToTransferInstrument', + ThirdPartyFunding = 'thirdPartyFunding', + UseCard = 'useCard', + UseCardCommercial = 'useCardCommercial', + UseCardConsumer = 'useCardConsumer', + UseCardInRestrictedCountries = 'useCardInRestrictedCountries', + UseCardInRestrictedCountriesCommercial = 'useCardInRestrictedCountriesCommercial', + UseCardInRestrictedCountriesConsumer = 'useCardInRestrictedCountriesConsumer', + UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries', + UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial', + UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer', + WithdrawFromAtm = 'withdrawFromAtm', + WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial', + WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer', + WithdrawFromAtmInRestrictedCountries = 'withdrawFromAtmInRestrictedCountries', + WithdrawFromAtmInRestrictedCountriesCommercial = 'withdrawFromAtmInRestrictedCountriesCommercial', + WithdrawFromAtmInRestrictedCountriesConsumer = 'withdrawFromAtmInRestrictedCountriesConsumer' + } + export enum TypeEnum { + DataMissing = 'dataMissing', + InvalidInput = 'invalidInput', + PendingStatus = 'pendingStatus' + } +} diff --git a/src/typings/legalEntityManagement/webData.ts b/src/typings/legalEntityManagement/webData.ts index 06e36ff..ad8d294 100644 --- a/src/typings/legalEntityManagement/webData.ts +++ b/src/typings/legalEntityManagement/webData.ts @@ -10,9 +10,13 @@ export class WebData { /** - * The URL of the website. + * The URL of the website or the app store URL. */ 'webAddress'?: string; + /** + * The unique identifier of the web address. + */ + 'webAddressId'?: string; static discriminator: string | undefined = undefined; @@ -21,6 +25,11 @@ export class WebData { "name": "webAddress", "baseName": "webAddress", "type": "string" + }, + { + "name": "webAddressId", + "baseName": "webAddressId", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payments/fundDestination.ts b/src/typings/payments/fundDestination.ts index d570b57..b16dbc2 100644 --- a/src/typings/payments/fundDestination.ts +++ b/src/typings/payments/fundDestination.ts @@ -10,6 +10,7 @@ import { Address } from './address'; import { Card } from './card'; import { Name } from './name'; +import { SubMerchant } from './subMerchant'; export class FundDestination { /** @@ -31,6 +32,7 @@ export class FundDestination { * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ 'shopperReference'?: string; + 'subMerchant'?: SubMerchant; /** * the telephone number of the person */ @@ -74,6 +76,11 @@ export class FundDestination { "baseName": "shopperReference", "type": "string" }, + { + "name": "subMerchant", + "baseName": "subMerchant", + "type": "SubMerchant" + }, { "name": "telephoneNumber", "baseName": "telephoneNumber", diff --git a/src/typings/payments/models.ts b/src/typings/payments/models.ts index 62a14fc..d4a017c 100644 --- a/src/typings/payments/models.ts +++ b/src/typings/payments/models.ts @@ -73,6 +73,7 @@ export * from './serviceError'; export * from './shopperInteractionDevice'; export * from './split'; export * from './splitAmount'; +export * from './subMerchant'; export * from './technicalCancelRequest'; export * from './threeDS1Result'; export * from './threeDS2RequestData'; @@ -150,6 +151,7 @@ import { ServiceError } from './serviceError'; import { ShopperInteractionDevice } from './shopperInteractionDevice'; import { Split } from './split'; import { SplitAmount } from './splitAmount'; +import { SubMerchant } from './subMerchant'; import { TechnicalCancelRequest } from './technicalCancelRequest'; import { ThreeDS1Result } from './threeDS1Result'; import { ThreeDS2RequestData } from './threeDS2RequestData'; @@ -294,6 +296,7 @@ let typeMap: {[index: string]: any} = { "ShopperInteractionDevice": ShopperInteractionDevice, "Split": Split, "SplitAmount": SplitAmount, + "SubMerchant": SubMerchant, "TechnicalCancelRequest": TechnicalCancelRequest, "ThreeDS1Result": ThreeDS1Result, "ThreeDS2RequestData": ThreeDS2RequestData, diff --git a/src/typings/payments/split.ts b/src/typings/payments/split.ts index 76b0992..f18e515 100644 --- a/src/typings/payments/split.ts +++ b/src/typings/payments/split.ts @@ -24,7 +24,7 @@ export class Split { */ 'reference'?: string; /** - * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. + * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. */ 'type': Split.TypeEnum; @@ -70,6 +70,8 @@ export namespace Split { MarketPlace = 'MarketPlace', PaymentFee = 'PaymentFee', Remainder = 'Remainder', + Surcharge = 'Surcharge', + Tip = 'Tip', Vat = 'VAT', Verification = 'Verification' } diff --git a/src/typings/payments/subMerchant.ts b/src/typings/payments/subMerchant.ts new file mode 100644 index 0000000..65c2ebb --- /dev/null +++ b/src/typings/payments/subMerchant.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * 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 SubMerchant { + /** + * The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters + */ + 'city'?: string; + /** + * The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + */ + 'country'?: string; + /** + * The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + */ + 'mcc'?: string; + /** + * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + */ + 'name'?: string; + /** + * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubMerchant.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2RequestData.ts b/src/typings/payments/threeDS2RequestData.ts index ef0f123..d5a66d5 100644 --- a/src/typings/payments/threeDS2RequestData.ts +++ b/src/typings/payments/threeDS2RequestData.ts @@ -118,7 +118,7 @@ export class ThreeDS2RequestData { 'threeDSRequestorAuthenticationInd'?: string; 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; /** @@ -373,7 +373,8 @@ export namespace ThreeDS2RequestData { _02 = '02', _03 = '03', _04 = '04', - _05 = '05' + _05 = '05', + _06 = '06' } export enum TransTypeEnum { _01 = '01', diff --git a/src/typings/transfer/aULocalAccountIdentification.ts b/src/typings/transfer/aULocalAccountIdentification.ts index 6ae5e6a..6f41cb1 100644 --- a/src/typings/transfer/aULocalAccountIdentification.ts +++ b/src/typings/transfer/aULocalAccountIdentification.ts @@ -10,17 +10,17 @@ export class AULocalAccountIdentification { /** - * The bank account number (without separators or whitespace). + * The bank account number, without separators or whitespace. */ 'accountNumber': string; /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch) (without separators or whitespace). + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ 'bsbCode': string; /** * **auLocal** */ - 'type'?: AULocalAccountIdentification.TypeEnum; + 'type': AULocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/bRLocalAccountIdentification.ts b/src/typings/transfer/bRLocalAccountIdentification.ts index 2e07655..4940a21 100644 --- a/src/typings/transfer/bRLocalAccountIdentification.ts +++ b/src/typings/transfer/bRLocalAccountIdentification.ts @@ -24,7 +24,7 @@ export class BRLocalAccountIdentification { /** * **brLocal** */ - 'type'?: BRLocalAccountIdentification.TypeEnum; + 'type': BRLocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/bankAccountV3.ts b/src/typings/transfer/bankAccountV3.ts index 72d6a19..b22eb76 100644 --- a/src/typings/transfer/bankAccountV3.ts +++ b/src/typings/transfer/bankAccountV3.ts @@ -9,7 +9,9 @@ import { AULocalAccountIdentification } from './aULocalAccountIdentification'; import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; @@ -17,6 +19,7 @@ import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentifi import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; import { PartyIdentification2 } from './partyIdentification2'; import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; @@ -25,7 +28,7 @@ export class BankAccountV3 { /** * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. */ - 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CZLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -38,7 +41,7 @@ export class BankAccountV3 { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CZLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfer/cALocalAccountIdentification.ts b/src/typings/transfer/cALocalAccountIdentification.ts new file mode 100644 index 0000000..68e05a0 --- /dev/null +++ b/src/typings/transfer/cALocalAccountIdentification.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v3 + * Contact: developer-experience@adyen.com + * + * 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 CALocalAccountIdentification { + /** + * The 5- to 12-digit bank account number, without separators or whitespace. + */ + 'accountNumber': string; + /** + * The 3-digit institution number, without separators or whitespace. + */ + 'institutionNumber': string; + /** + * The 5-digit transit number, without separators or whitespace. + */ + 'transitNumber': string; + /** + * **caLocal** + */ + 'type': CALocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "institutionNumber", + "baseName": "institutionNumber", + "type": "string" + }, + { + "name": "transitNumber", + "baseName": "transitNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CALocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CALocalAccountIdentification.attributeTypeMap; + } +} + +export namespace CALocalAccountIdentification { + export enum TypeEnum { + CaLocal = 'caLocal' + } +} diff --git a/src/typings/transfer/cZLocalAccountIdentification.ts b/src/typings/transfer/cZLocalAccountIdentification.ts index 52a32c0..025a759 100644 --- a/src/typings/transfer/cZLocalAccountIdentification.ts +++ b/src/typings/transfer/cZLocalAccountIdentification.ts @@ -14,13 +14,13 @@ export class CZLocalAccountIdentification { */ 'accountNumber': string; /** - * The 4-digit bank code (Kód banky) (without separators or whitespace). + * The 4-digit bank code (Kód banky), without separators or whitespace. */ 'bankCode': string; /** * **czLocal** */ - 'type'?: CZLocalAccountIdentification.TypeEnum; + 'type': CZLocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/dKLocalAccountIdentification.ts b/src/typings/transfer/dKLocalAccountIdentification.ts new file mode 100644 index 0000000..addd6be --- /dev/null +++ b/src/typings/transfer/dKLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * Contact: developer-experience@adyen.com + * + * 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 DKLocalAccountIdentification { + /** + * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). + */ + 'bankCode': string; + /** + * **dkLocal** + */ + 'type': DKLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DKLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DKLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace DKLocalAccountIdentification { + export enum TypeEnum { + DkLocal = 'dkLocal' + } +} diff --git a/src/typings/transfer/hULocalAccountIdentification.ts b/src/typings/transfer/hULocalAccountIdentification.ts index e26c527..8c2a52b 100644 --- a/src/typings/transfer/hULocalAccountIdentification.ts +++ b/src/typings/transfer/hULocalAccountIdentification.ts @@ -10,13 +10,13 @@ export class HULocalAccountIdentification { /** - * The 24-digit bank account number (without separators or whitespace). + * The 24-digit bank account number, without separators or whitespace. */ 'accountNumber': string; /** * **huLocal** */ - 'type'?: HULocalAccountIdentification.TypeEnum; + 'type': HULocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/ibanAccountIdentification.ts b/src/typings/transfer/ibanAccountIdentification.ts index b360c8d..5af8f76 100644 --- a/src/typings/transfer/ibanAccountIdentification.ts +++ b/src/typings/transfer/ibanAccountIdentification.ts @@ -16,7 +16,7 @@ export class IbanAccountIdentification { /** * **iban** */ - 'type'?: IbanAccountIdentification.TypeEnum; + 'type': IbanAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/models.ts b/src/typings/transfer/models.ts index 15e0479..3d02424 100644 --- a/src/typings/transfer/models.ts +++ b/src/typings/transfer/models.ts @@ -14,9 +14,11 @@ export * from './address2'; export * from './amount'; export * from './bRLocalAccountIdentification'; export * from './bankAccountV3'; +export * from './cALocalAccountIdentification'; export * from './cZLocalAccountIdentification'; export * from './counterpartyInfoV3'; export * from './counterpartyV3'; +export * from './dKLocalAccountIdentification'; export * from './hULocalAccountIdentification'; export * from './ibanAccountIdentification'; export * from './invalidField'; @@ -32,6 +34,7 @@ export * from './pLLocalAccountIdentification'; export * from './partyIdentification2'; export * from './restServiceError'; export * from './sELocalAccountIdentification'; +export * from './sGLocalAccountIdentification'; export * from './transaction'; export * from './transactionSearchResponse'; export * from './transfer'; @@ -46,9 +49,11 @@ import { Address2 } from './address2'; import { Amount } from './amount'; import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; import { BankAccountV3 } from './bankAccountV3'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; import { CounterpartyInfoV3 } from './counterpartyInfoV3'; import { CounterpartyV3 } from './counterpartyV3'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { InvalidField } from './invalidField'; @@ -64,6 +69,7 @@ import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; import { PartyIdentification2 } from './partyIdentification2'; import { RestServiceError } from './restServiceError'; import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; import { Transaction } from './transaction'; import { TransactionSearchResponse } from './transactionSearchResponse'; import { Transfer } from './transfer'; @@ -87,7 +93,9 @@ let enumsMap: {[index: string]: any} = { "AULocalAccountIdentification.TypeEnum": AULocalAccountIdentification.TypeEnum, "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, "BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum, + "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, @@ -95,6 +103,7 @@ let enumsMap: {[index: string]: any} = { "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, "PartyIdentification2.TypeEnum": PartyIdentification2.TypeEnum, "SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum, + "SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum, "Transaction.CategoryEnum": Transaction.CategoryEnum, "Transaction.StatusEnum": Transaction.StatusEnum, "Transaction.TypeEnum": Transaction.TypeEnum, @@ -117,9 +126,11 @@ let typeMap: {[index: string]: any} = { "Amount": Amount, "BRLocalAccountIdentification": BRLocalAccountIdentification, "BankAccountV3": BankAccountV3, + "CALocalAccountIdentification": CALocalAccountIdentification, "CZLocalAccountIdentification": CZLocalAccountIdentification, "CounterpartyInfoV3": CounterpartyInfoV3, "CounterpartyV3": CounterpartyV3, + "DKLocalAccountIdentification": DKLocalAccountIdentification, "HULocalAccountIdentification": HULocalAccountIdentification, "IbanAccountIdentification": IbanAccountIdentification, "InvalidField": InvalidField, @@ -135,6 +146,7 @@ let typeMap: {[index: string]: any} = { "PartyIdentification2": PartyIdentification2, "RestServiceError": RestServiceError, "SELocalAccountIdentification": SELocalAccountIdentification, + "SGLocalAccountIdentification": SGLocalAccountIdentification, "Transaction": Transaction, "TransactionSearchResponse": TransactionSearchResponse, "Transfer": Transfer, diff --git a/src/typings/transfer/nOLocalAccountIdentification.ts b/src/typings/transfer/nOLocalAccountIdentification.ts index 2a5073f..1da037f 100644 --- a/src/typings/transfer/nOLocalAccountIdentification.ts +++ b/src/typings/transfer/nOLocalAccountIdentification.ts @@ -10,13 +10,13 @@ export class NOLocalAccountIdentification { /** - * The 11-digit bank account number (without separators or whitespace). + * The 11-digit bank account number, without separators or whitespace. */ 'accountNumber': string; /** * **noLocal** */ - 'type'?: NOLocalAccountIdentification.TypeEnum; + 'type': NOLocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/numberAndBicAccountIdentification.ts b/src/typings/transfer/numberAndBicAccountIdentification.ts index 86978a8..684b72c 100644 --- a/src/typings/transfer/numberAndBicAccountIdentification.ts +++ b/src/typings/transfer/numberAndBicAccountIdentification.ts @@ -16,13 +16,13 @@ export class NumberAndBicAccountIdentification { 'accountNumber': string; 'additionalBankIdentification'?: AdditionalBankIdentification; /** - * The bank\'s 8 or 11 character BIC or SWIFT code. + * The bank\'s 8- or 11-character BIC or SWIFT code. */ 'bic': string; /** * **numberAndBic** */ - 'type'?: NumberAndBicAccountIdentification.TypeEnum; + 'type': NumberAndBicAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/pLLocalAccountIdentification.ts b/src/typings/transfer/pLLocalAccountIdentification.ts index 851b760..90f3a48 100644 --- a/src/typings/transfer/pLLocalAccountIdentification.ts +++ b/src/typings/transfer/pLLocalAccountIdentification.ts @@ -10,13 +10,13 @@ export class PLLocalAccountIdentification { /** - * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)) (without separators or whitespace). + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ 'accountNumber': string; /** * **plLocal** */ - 'type'?: PLLocalAccountIdentification.TypeEnum; + 'type': PLLocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/sELocalAccountIdentification.ts b/src/typings/transfer/sELocalAccountIdentification.ts index f93fa10..971be07 100644 --- a/src/typings/transfer/sELocalAccountIdentification.ts +++ b/src/typings/transfer/sELocalAccountIdentification.ts @@ -10,17 +10,17 @@ export class SELocalAccountIdentification { /** - * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)) (without the clearing number, separators, or whitespace). + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ 'accountNumber': string; /** - * The 4– to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)) (without separators or whitespace). + * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ 'clearingNumber': string; /** * **seLocal** */ - 'type'?: SELocalAccountIdentification.TypeEnum; + 'type': SELocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/sGLocalAccountIdentification.ts b/src/typings/transfer/sGLocalAccountIdentification.ts new file mode 100644 index 0000000..2e0476c --- /dev/null +++ b/src/typings/transfer/sGLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * Contact: developer-experience@adyen.com + * + * 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 SGLocalAccountIdentification { + /** + * The 4- to 19-digit bank account number, without separators or whitespace. + */ + 'accountNumber': string; + /** + * The bank\'s 8- or 11-character BIC or SWIFT code. + */ + 'bic': string; + /** + * **sgLocal** + */ + 'type'?: SGLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SGLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SGLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace SGLocalAccountIdentification { + export enum TypeEnum { + SgLocal = 'sgLocal' + } +} diff --git a/src/typings/transfer/transaction.ts b/src/typings/transfer/transaction.ts index 4d4febc..7cef423 100644 --- a/src/typings/transfer/transaction.ts +++ b/src/typings/transfer/transaction.ts @@ -190,12 +190,14 @@ export namespace Transaction { AtmWithdrawal = 'atmWithdrawal', AtmWithdrawalReversal = 'atmWithdrawalReversal', BalanceAdjustment = 'balanceAdjustment', + BalanceRollover = 'balanceRollover', BankTransfer = 'bankTransfer', Capture = 'capture', CaptureReversal = 'captureReversal', Chargeback = 'chargeback', ChargebackReversal = 'chargebackReversal', DepositCorrection = 'depositCorrection', + DirectDebit = 'directDebit', Fee = 'fee', Grant = 'grant', Installment = 'installment', diff --git a/src/typings/transfer/transfer.ts b/src/typings/transfer/transfer.ts index 4895b5b..3a66521 100644 --- a/src/typings/transfer/transfer.ts +++ b/src/typings/transfer/transfer.ts @@ -38,7 +38,7 @@ export class Transfer { */ 'paymentInstrumentId'?: string; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). */ 'priority'?: Transfer.PriorityEnum; /** @@ -148,15 +148,28 @@ export namespace Transfer { Wire = 'wire' } export enum ReasonEnum { + AmountLimitExceded = 'amountLimitExceded', Approved = 'approved', + CounterpartyAccountBlocked = 'counterpartyAccountBlocked', + CounterpartyAccountClosed = 'counterpartyAccountClosed', + CounterpartyAccountNotFound = 'counterpartyAccountNotFound', + CounterpartyAddressRequired = 'counterpartyAddressRequired', + CounterpartyBankTimedOut = 'counterpartyBankTimedOut', + CounterpartyBankUnavailable = 'counterpartyBankUnavailable', Error = 'error', NotEnoughBalance = 'notEnoughBalance', + RefusedByCounterpartyBank = 'refusedByCounterpartyBank', + RejectedByCounterpartyBank = 'rejectedByCounterpartyBank', + RouteNotFound = 'routeNotFound', Unknown = 'unknown' } export enum StatusEnum { AtmWithdrawal = 'atmWithdrawal', AtmWithdrawalReversalPending = 'atmWithdrawalReversalPending', AtmWithdrawalReversed = 'atmWithdrawalReversed', + AuthAdjustmentAuthorised = 'authAdjustmentAuthorised', + AuthAdjustmentError = 'authAdjustmentError', + AuthAdjustmentRefused = 'authAdjustmentRefused', Authorised = 'authorised', BankTransfer = 'bankTransfer', BankTransferPending = 'bankTransferPending', @@ -206,6 +219,7 @@ export namespace Transfer { Refused = 'refused', ReserveAdjustment = 'reserveAdjustment', ReserveAdjustmentPending = 'reserveAdjustmentPending', + Returned = 'returned', SecondChargeback = 'secondChargeback', SecondChargebackPending = 'secondChargebackPending', Undefined = 'undefined' diff --git a/src/typings/transfer/transferInfo.ts b/src/typings/transfer/transferInfo.ts index b73cfd6..5684f9a 100644 --- a/src/typings/transfer/transferInfo.ts +++ b/src/typings/transfer/transferInfo.ts @@ -34,7 +34,7 @@ export class TransferInfo { */ 'paymentInstrumentId'?: string; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). */ 'priority'?: TransferInfo.PriorityEnum; /** diff --git a/src/typings/transfer/uKLocalAccountIdentification.ts b/src/typings/transfer/uKLocalAccountIdentification.ts index 9743876..1fdd17c 100644 --- a/src/typings/transfer/uKLocalAccountIdentification.ts +++ b/src/typings/transfer/uKLocalAccountIdentification.ts @@ -10,17 +10,17 @@ export class UKLocalAccountIdentification { /** - * The 8-digit bank account number (without separators or whitespace). + * The 8-digit bank account number, without separators or whitespace. */ 'accountNumber': string; /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code) (without separators or whitespace). + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ 'sortCode': string; /** * **ukLocal** */ - 'type'?: UKLocalAccountIdentification.TypeEnum; + 'type': UKLocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined; diff --git a/src/typings/transfer/uSLocalAccountIdentification.ts b/src/typings/transfer/uSLocalAccountIdentification.ts index 97b8e85..1435f67 100644 --- a/src/typings/transfer/uSLocalAccountIdentification.ts +++ b/src/typings/transfer/uSLocalAccountIdentification.ts @@ -10,7 +10,7 @@ export class USLocalAccountIdentification { /** - * The bank account number (without separators or whitespace). + * The bank account number, without separators or whitespace. */ 'accountNumber': string; /** @@ -18,13 +18,13 @@ export class USLocalAccountIdentification { */ 'accountType'?: USLocalAccountIdentification.AccountTypeEnum; /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number) (without separators or whitespace). + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ 'routingNumber': string; /** * **usLocal** */ - 'type'?: USLocalAccountIdentification.TypeEnum; + 'type': USLocalAccountIdentification.TypeEnum; static discriminator: string | undefined = undefined;