diff --git a/src/typings/transfers/amount.ts b/src/typings/transfers/amount.ts index cd1649aa4..608564d02 100644 --- a/src/typings/transfers/amount.ts +++ b/src/typings/transfers/amount.ts @@ -10,11 +10,11 @@ export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. */ "currency": string; /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ "value": number; diff --git a/src/typings/transfers/bankAccountV3.ts b/src/typings/transfers/bankAccountV3.ts index 05a01f7e3..b1ed591e2 100644 --- a/src/typings/transfers/bankAccountV3.ts +++ b/src/typings/transfers/bankAccountV3.ts @@ -14,6 +14,10 @@ import { PartyIdentification } from "./partyIdentification"; export class BankAccountV3 { "accountHolder": PartyIdentification; "accountIdentification": BankAccountV3AccountIdentification; + /** + * The unique token that identifies the stored bank account details of the counterparty for a payout. + */ + "storedPaymentMethodId"?: string; static readonly discriminator: string | undefined = undefined; @@ -31,6 +35,12 @@ export class BankAccountV3 { "baseName": "accountIdentification", "type": "BankAccountV3AccountIdentification", "format": "" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string", + "format": "" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfers/bankCategoryData.ts b/src/typings/transfers/bankCategoryData.ts index 27b20a0e9..931b9c768 100644 --- a/src/typings/transfers/bankCategoryData.ts +++ b/src/typings/transfers/bankCategoryData.ts @@ -10,7 +10,7 @@ export class BankCategoryData { /** - * 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**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * 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**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ "priority"?: BankCategoryData.PriorityEnum; /** diff --git a/src/typings/transfers/fundingInstrument.ts b/src/typings/transfers/fundingInstrument.ts new file mode 100644 index 000000000..d8e0bd175 --- /dev/null +++ b/src/typings/transfers/fundingInstrument.ts @@ -0,0 +1,71 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CardIdentification } from "./cardIdentification"; + + +export class FundingInstrument { + "cardIdentification"?: CardIdentification | null; + /** + * The unique reference assigned by the card network for the pay-in transaction. + */ + "networkPaymentReference"?: string; + /** + * Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**. + */ + "reference"?: string; + /** + * Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers. + */ + "sourceOfFunds"?: FundingInstrument.SourceOfFundsEnum; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "cardIdentification", + "baseName": "cardIdentification", + "type": "CardIdentification | null", + "format": "" + }, + { + "name": "networkPaymentReference", + "baseName": "networkPaymentReference", + "type": "string", + "format": "" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string", + "format": "" + }, + { + "name": "sourceOfFunds", + "baseName": "sourceOfFunds", + "type": "FundingInstrument.SourceOfFundsEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return FundingInstrument.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace FundingInstrument { + export enum SourceOfFundsEnum { + Debit = 'DEBIT', + DepositAccount = 'DEPOSIT_ACCOUNT' + } +} diff --git a/src/typings/transfers/models.ts b/src/typings/transfers/models.ts index f36ca2628..58a7dcc83 100644 --- a/src/typings/transfers/models.ts +++ b/src/typings/transfers/models.ts @@ -30,6 +30,7 @@ export * from "./executionDate" export * from "./externalReason" export * from "./fee" export * from "./findTransfersResponse" +export * from "./fundingInstrument" export * from "./hKLocalAccountIdentification" export * from "./hULocalAccountIdentification" export * from "./ibanAccountIdentification" diff --git a/src/typings/transfers/objectSerializer.ts b/src/typings/transfers/objectSerializer.ts index 3cb76b231..e14146cc6 100644 --- a/src/typings/transfers/objectSerializer.ts +++ b/src/typings/transfers/objectSerializer.ts @@ -32,6 +32,7 @@ import { ExecutionDate } from "./executionDate"; import { ExternalReason } from "./externalReason"; import { Fee } from "./fee"; import { FindTransfersResponse } from "./findTransfersResponse"; +import { FundingInstrument } from "./fundingInstrument"; import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; import { IbanAccountIdentification } from "./ibanAccountIdentification"; @@ -122,6 +123,7 @@ let enumsMap: Set = new Set([ "ConfirmationTrackingData.TypeEnum", "DKLocalAccountIdentification.TypeEnum", "EstimationTrackingData.TypeEnum", + "FundingInstrument.SourceOfFundsEnum", "HKLocalAccountIdentification.TypeEnum", "HULocalAccountIdentification.TypeEnum", "IbanAccountIdentification.TypeEnum", @@ -216,6 +218,7 @@ let typeMap: {[index: string]: any} = { "ExternalReason": ExternalReason, "Fee": Fee, "FindTransfersResponse": FindTransfersResponse, + "FundingInstrument": FundingInstrument, "HKLocalAccountIdentification": HKLocalAccountIdentification, "HULocalAccountIdentification": HULocalAccountIdentification, "IbanAccountIdentification": IbanAccountIdentification, diff --git a/src/typings/transfers/platformPayment.ts b/src/typings/transfers/platformPayment.ts index ea9db1f6b..935146ed8 100644 --- a/src/typings/transfers/platformPayment.ts +++ b/src/typings/transfers/platformPayment.ts @@ -22,7 +22,7 @@ export class PlatformPayment { */ "paymentMerchantReference"?: string; /** - * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: the acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: all transaction fees due to Adyen. This is the aggregated amount of Adyen\'s commission and markup. * **AdyenMarkup**: the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: the amount booked to your user after the deduction of the relevant fees. * **Commission**: your platform\'s or marketplace\'s commission on a transaction. * **DCCPlatformCommission**: the Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: the aggregated amount of all transaction fees. * **Remainder**: the leftover amount after currency conversion. * **SchemeFee**: the scheme fee incurred on a transaction. * **Surcharge**: the surcharge paid by the customer on a transaction. * **Tip**: the tip paid by the customer. * **TopUp**: an incoming transfer to top up your user\'s balance account. * **VAT**: the value-added tax charged on the payment. + * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: The acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: All transaction fees due to Adyen. This is the aggregated amount of Adyen\'s commission and markup. * **AdyenMarkup**: The transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The amount booked to your user after the deduction of the relevant fees. * **Commission**: Your platform\'s or marketplace\'s commission on a transaction. * **DCCPlatformCommission**: **deprecated** The Dynamic Currency Conversion (DCC) fee on a transaction. * **DCCMarkup**: The Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all transaction fees. * **Remainder**: The leftover amount after currency conversion. * **SchemeFee**: The scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by the customer on a transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An incoming transfer to top up your user\'s balance account. * **VAT**: The value-added tax charged on the payment. */ "platformPaymentType"?: PlatformPayment.PlatformPaymentTypeEnum; /** @@ -93,6 +93,7 @@ export namespace PlatformPayment { BalanceAccount = 'BalanceAccount', ChargebackRemainder = 'ChargebackRemainder', Commission = 'Commission', + DccMarkup = 'DCCMarkup', DccPlatformCommission = 'DCCPlatformCommission', Default = 'Default', Interchange = 'Interchange', diff --git a/src/typings/transfers/routingDetails.ts b/src/typings/transfers/routingDetails.ts index 24f5c0dc4..f88fe70aa 100644 --- a/src/typings/transfers/routingDetails.ts +++ b/src/typings/transfers/routingDetails.ts @@ -18,7 +18,7 @@ export class RoutingDetails { */ "errorCode"?: 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**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * 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**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ "priority"?: RoutingDetails.PriorityEnum; /** diff --git a/src/typings/transfers/transfer.ts b/src/typings/transfers/transfer.ts index 7f2fc4679..66e35a6c1 100644 --- a/src/typings/transfers/transfer.ts +++ b/src/typings/transfers/transfer.ts @@ -22,7 +22,7 @@ export class Transfer { "amount": Amount; "balanceAccount"?: ResourceReference | null; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: A transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) or a bank account. - **card**: A transfer involving a third-party card. - **internal**: A transfer between [balance accounts](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id) within your platform. - **issuedCard**: A transfer initiated by an Adyen-issued card. - **platformPayment**: Funds movements related to payments that are acquired for your users. - **topUp**: An incoming transfer initiated by your user to top up their balance account. */ "category": Transfer.CategoryEnum; "categoryData"?: TransferCategoryData | null; @@ -67,7 +67,7 @@ export class Transfer { "referenceForBeneficiary"?: string; "review"?: TransferReview | null; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **refused**: the transfer request is rejected by Adyen for one of the following reasons: - Lack of funds in the balance account. - Transfer limit exceeded. - Transaction rule requirements violated. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. */ "status": Transfer.StatusEnum; /** @@ -227,27 +227,87 @@ export namespace Transfer { AmountLimitExceeded = 'amountLimitExceeded', ApprovalExpired = 'approvalExpired', Approved = 'approved', + AvsDeclined = 'avsDeclined', BalanceAccountTemporarilyBlockedByTransactionRule = 'balanceAccountTemporarilyBlockedByTransactionRule', + BlockCard = 'blockCard', + CallReferral = 'callReferral', + Cancelled = 'cancelled', + CaptureCard = 'captureCard', + CardExpired = 'cardExpired', + CardholderAuthenticationRequired = 'cardholderAuthenticationRequired', + CashbackAmountExceedsLimit = 'cashbackAmountExceedsLimit', + CavvDeclined = 'cavvDeclined', + ContactlessFallback = 'contactlessFallback', + ContactlessLimitReached = 'contactlessLimitReached', CounterpartyAccountBlocked = 'counterpartyAccountBlocked', CounterpartyAccountClosed = 'counterpartyAccountClosed', CounterpartyAccountNotFound = 'counterpartyAccountNotFound', CounterpartyAddressRequired = 'counterpartyAddressRequired', CounterpartyBankTimedOut = 'counterpartyBankTimedOut', CounterpartyBankUnavailable = 'counterpartyBankUnavailable', + CryptographicFailure = 'cryptographicFailure', + CvcDeclined = 'cvcDeclined', Declined = 'declined', + DeclinedByBapValidation = 'declinedByBapValidation', DeclinedByTransactionRule = 'declinedByTransactionRule', + DeclinedNonGeneric = 'declinedNonGeneric', DirectDebitNotSupported = 'directDebitNotSupported', + DoNotHonor = 'doNotHonor', + DomesticDebitTransactionNotAllowed = 'domesticDebitTransactionNotAllowed', + DuplicateTransmissionDetected = 'duplicateTransmissionDetected', Error = 'error', + FormatError = 'formatError', + Fraud = 'fraud', + FraudCancelled = 'fraudCancelled', + HonorWithId = 'honorWithId', + InternalTimeout = 'internalTimeout', + InvalidAccount = 'invalidAccount', + InvalidAmount = 'invalidAmount', + InvalidAuthorizationLifeCycle = 'invalidAuthorizationLifeCycle', + InvalidCard = 'invalidCard', + InvalidExpiryDate = 'invalidExpiryDate', + InvalidFromAccount = 'invalidFromAccount', + InvalidIssuer = 'invalidIssuer', + InvalidMerchant = 'invalidMerchant', + InvalidPin = 'invalidPin', + InvalidToAccount = 'invalidToAccount', + InvalidTransaction = 'invalidTransaction', + IssuerSuspectedFraud = 'issuerSuspectedFraud', + LostCard = 'lostCard', + MobilePinRequired = 'mobilePinRequired', + NoCheckingAccount = 'noCheckingAccount', + NoSavingsAccount = 'noSavingsAccount', + Not3dAuthenticated = 'not3dAuthenticated', NotEnoughBalance = 'notEnoughBalance', + NotSubmitted = 'notSubmitted', + NotSupported = 'notSupported', + PartiallyApproved = 'partiallyApproved', Pending = 'pending', PendingApproval = 'pendingApproval', PendingExecution = 'pendingExecution', + PinNotChanged = 'pinNotChanged', + PinRequired = 'pinRequired', + PinTriesExceeded = 'pinTriesExceeded', + PinValidationNotPossible = 'pinValidationNotPossible', + PurchaseAmountOnlyNoCashBack = 'purchaseAmountOnlyNoCashBack', RefusedByCounterpartyBank = 'refusedByCounterpartyBank', RefusedByCustomer = 'refusedByCustomer', + RestrictedCard = 'restrictedCard', + RevocationOfAuth = 'revocationOfAuth', RouteNotFound = 'routeNotFound', + ScaAuthenticationRequired = 'scaAuthenticationRequired', ScaFailed = 'scaFailed', + SchemeAdvice = 'schemeAdvice', + SecurityViolation = 'securityViolation', + ShopperCancelled = 'shopperCancelled', + StolenCard = 'stolenCard', + ThreedsDynamicLinkingMismatch = 'threedsDynamicLinkingMismatch', + TransactionNotPermitted = 'transactionNotPermitted', TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist', - Unknown = 'unknown' + UnableToRouteTransaction = 'unableToRouteTransaction', + Unknown = 'unknown', + WithdrawalAmountExceeded = 'withdrawalAmountExceeded', + WithdrawalCountExceeded = 'withdrawalCountExceeded' } export enum StatusEnum { ApprovalPending = 'approvalPending', diff --git a/src/typings/transfers/transferData.ts b/src/typings/transfers/transferData.ts index 9a9cdd3aa..80bcb5dc7 100644 --- a/src/typings/transfers/transferData.ts +++ b/src/typings/transfers/transferData.ts @@ -35,7 +35,7 @@ export class TransferData { */ "balances"?: Array; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: A transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) or a bank account. - **card**: A transfer involving a third-party card. - **internal**: A transfer between [balance accounts](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id) within your platform. - **issuedCard**: A transfer initiated by an Adyen-issued card. - **platformPayment**: Funds movements related to payments that are acquired for your users. - **topUp**: An incoming transfer initiated by your user to top up their balance account. */ "category": TransferData.CategoryEnum; "categoryData"?: TransferCategoryData | null; @@ -93,7 +93,7 @@ export class TransferData { */ "sequenceNumber"?: number; /** - * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **refused**: the transfer request is rejected by Adyen for one of the following reasons: - Lack of funds in the balance account. - Transfer limit exceeded. - Transaction rule requirements violated. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. */ "status": TransferData.StatusEnum; "tracking"?: TransferDataTracking | null; @@ -313,27 +313,87 @@ export namespace TransferData { AmountLimitExceeded = 'amountLimitExceeded', ApprovalExpired = 'approvalExpired', Approved = 'approved', + AvsDeclined = 'avsDeclined', BalanceAccountTemporarilyBlockedByTransactionRule = 'balanceAccountTemporarilyBlockedByTransactionRule', + BlockCard = 'blockCard', + CallReferral = 'callReferral', + Cancelled = 'cancelled', + CaptureCard = 'captureCard', + CardExpired = 'cardExpired', + CardholderAuthenticationRequired = 'cardholderAuthenticationRequired', + CashbackAmountExceedsLimit = 'cashbackAmountExceedsLimit', + CavvDeclined = 'cavvDeclined', + ContactlessFallback = 'contactlessFallback', + ContactlessLimitReached = 'contactlessLimitReached', CounterpartyAccountBlocked = 'counterpartyAccountBlocked', CounterpartyAccountClosed = 'counterpartyAccountClosed', CounterpartyAccountNotFound = 'counterpartyAccountNotFound', CounterpartyAddressRequired = 'counterpartyAddressRequired', CounterpartyBankTimedOut = 'counterpartyBankTimedOut', CounterpartyBankUnavailable = 'counterpartyBankUnavailable', + CryptographicFailure = 'cryptographicFailure', + CvcDeclined = 'cvcDeclined', Declined = 'declined', + DeclinedByBapValidation = 'declinedByBapValidation', DeclinedByTransactionRule = 'declinedByTransactionRule', + DeclinedNonGeneric = 'declinedNonGeneric', DirectDebitNotSupported = 'directDebitNotSupported', + DoNotHonor = 'doNotHonor', + DomesticDebitTransactionNotAllowed = 'domesticDebitTransactionNotAllowed', + DuplicateTransmissionDetected = 'duplicateTransmissionDetected', Error = 'error', + FormatError = 'formatError', + Fraud = 'fraud', + FraudCancelled = 'fraudCancelled', + HonorWithId = 'honorWithId', + InternalTimeout = 'internalTimeout', + InvalidAccount = 'invalidAccount', + InvalidAmount = 'invalidAmount', + InvalidAuthorizationLifeCycle = 'invalidAuthorizationLifeCycle', + InvalidCard = 'invalidCard', + InvalidExpiryDate = 'invalidExpiryDate', + InvalidFromAccount = 'invalidFromAccount', + InvalidIssuer = 'invalidIssuer', + InvalidMerchant = 'invalidMerchant', + InvalidPin = 'invalidPin', + InvalidToAccount = 'invalidToAccount', + InvalidTransaction = 'invalidTransaction', + IssuerSuspectedFraud = 'issuerSuspectedFraud', + LostCard = 'lostCard', + MobilePinRequired = 'mobilePinRequired', + NoCheckingAccount = 'noCheckingAccount', + NoSavingsAccount = 'noSavingsAccount', + Not3dAuthenticated = 'not3dAuthenticated', NotEnoughBalance = 'notEnoughBalance', + NotSubmitted = 'notSubmitted', + NotSupported = 'notSupported', + PartiallyApproved = 'partiallyApproved', Pending = 'pending', PendingApproval = 'pendingApproval', PendingExecution = 'pendingExecution', + PinNotChanged = 'pinNotChanged', + PinRequired = 'pinRequired', + PinTriesExceeded = 'pinTriesExceeded', + PinValidationNotPossible = 'pinValidationNotPossible', + PurchaseAmountOnlyNoCashBack = 'purchaseAmountOnlyNoCashBack', RefusedByCounterpartyBank = 'refusedByCounterpartyBank', RefusedByCustomer = 'refusedByCustomer', + RestrictedCard = 'restrictedCard', + RevocationOfAuth = 'revocationOfAuth', RouteNotFound = 'routeNotFound', + ScaAuthenticationRequired = 'scaAuthenticationRequired', ScaFailed = 'scaFailed', + SchemeAdvice = 'schemeAdvice', + SecurityViolation = 'securityViolation', + ShopperCancelled = 'shopperCancelled', + StolenCard = 'stolenCard', + ThreedsDynamicLinkingMismatch = 'threedsDynamicLinkingMismatch', + TransactionNotPermitted = 'transactionNotPermitted', TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist', - Unknown = 'unknown' + UnableToRouteTransaction = 'unableToRouteTransaction', + Unknown = 'unknown', + WithdrawalAmountExceeded = 'withdrawalAmountExceeded', + WithdrawalCountExceeded = 'withdrawalCountExceeded' } export enum StatusEnum { ApprovalPending = 'approvalPending', diff --git a/src/typings/transfers/transferEvent.ts b/src/typings/transfers/transferEvent.ts index 6a15b1023..72ef684d0 100644 --- a/src/typings/transfers/transferEvent.ts +++ b/src/typings/transfers/transferEvent.ts @@ -203,27 +203,87 @@ export namespace TransferEvent { AmountLimitExceeded = 'amountLimitExceeded', ApprovalExpired = 'approvalExpired', Approved = 'approved', + AvsDeclined = 'avsDeclined', BalanceAccountTemporarilyBlockedByTransactionRule = 'balanceAccountTemporarilyBlockedByTransactionRule', + BlockCard = 'blockCard', + CallReferral = 'callReferral', + Cancelled = 'cancelled', + CaptureCard = 'captureCard', + CardExpired = 'cardExpired', + CardholderAuthenticationRequired = 'cardholderAuthenticationRequired', + CashbackAmountExceedsLimit = 'cashbackAmountExceedsLimit', + CavvDeclined = 'cavvDeclined', + ContactlessFallback = 'contactlessFallback', + ContactlessLimitReached = 'contactlessLimitReached', CounterpartyAccountBlocked = 'counterpartyAccountBlocked', CounterpartyAccountClosed = 'counterpartyAccountClosed', CounterpartyAccountNotFound = 'counterpartyAccountNotFound', CounterpartyAddressRequired = 'counterpartyAddressRequired', CounterpartyBankTimedOut = 'counterpartyBankTimedOut', CounterpartyBankUnavailable = 'counterpartyBankUnavailable', + CryptographicFailure = 'cryptographicFailure', + CvcDeclined = 'cvcDeclined', Declined = 'declined', + DeclinedByBapValidation = 'declinedByBapValidation', DeclinedByTransactionRule = 'declinedByTransactionRule', + DeclinedNonGeneric = 'declinedNonGeneric', DirectDebitNotSupported = 'directDebitNotSupported', + DoNotHonor = 'doNotHonor', + DomesticDebitTransactionNotAllowed = 'domesticDebitTransactionNotAllowed', + DuplicateTransmissionDetected = 'duplicateTransmissionDetected', Error = 'error', + FormatError = 'formatError', + Fraud = 'fraud', + FraudCancelled = 'fraudCancelled', + HonorWithId = 'honorWithId', + InternalTimeout = 'internalTimeout', + InvalidAccount = 'invalidAccount', + InvalidAmount = 'invalidAmount', + InvalidAuthorizationLifeCycle = 'invalidAuthorizationLifeCycle', + InvalidCard = 'invalidCard', + InvalidExpiryDate = 'invalidExpiryDate', + InvalidFromAccount = 'invalidFromAccount', + InvalidIssuer = 'invalidIssuer', + InvalidMerchant = 'invalidMerchant', + InvalidPin = 'invalidPin', + InvalidToAccount = 'invalidToAccount', + InvalidTransaction = 'invalidTransaction', + IssuerSuspectedFraud = 'issuerSuspectedFraud', + LostCard = 'lostCard', + MobilePinRequired = 'mobilePinRequired', + NoCheckingAccount = 'noCheckingAccount', + NoSavingsAccount = 'noSavingsAccount', + Not3dAuthenticated = 'not3dAuthenticated', NotEnoughBalance = 'notEnoughBalance', + NotSubmitted = 'notSubmitted', + NotSupported = 'notSupported', + PartiallyApproved = 'partiallyApproved', Pending = 'pending', PendingApproval = 'pendingApproval', PendingExecution = 'pendingExecution', + PinNotChanged = 'pinNotChanged', + PinRequired = 'pinRequired', + PinTriesExceeded = 'pinTriesExceeded', + PinValidationNotPossible = 'pinValidationNotPossible', + PurchaseAmountOnlyNoCashBack = 'purchaseAmountOnlyNoCashBack', RefusedByCounterpartyBank = 'refusedByCounterpartyBank', RefusedByCustomer = 'refusedByCustomer', + RestrictedCard = 'restrictedCard', + RevocationOfAuth = 'revocationOfAuth', RouteNotFound = 'routeNotFound', + ScaAuthenticationRequired = 'scaAuthenticationRequired', ScaFailed = 'scaFailed', + SchemeAdvice = 'schemeAdvice', + SecurityViolation = 'securityViolation', + ShopperCancelled = 'shopperCancelled', + StolenCard = 'stolenCard', + ThreedsDynamicLinkingMismatch = 'threedsDynamicLinkingMismatch', + TransactionNotPermitted = 'transactionNotPermitted', TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist', - Unknown = 'unknown' + UnableToRouteTransaction = 'unableToRouteTransaction', + Unknown = 'unknown', + WithdrawalAmountExceeded = 'withdrawalAmountExceeded', + WithdrawalCountExceeded = 'withdrawalCountExceeded' } export enum StatusEnum { ApprovalPending = 'approvalPending', diff --git a/src/typings/transfers/transferInfo.ts b/src/typings/transfers/transferInfo.ts index 098a55eaa..b2295f90c 100644 --- a/src/typings/transfers/transferInfo.ts +++ b/src/typings/transfers/transferInfo.ts @@ -21,7 +21,7 @@ export class TransferInfo { */ "balanceAccountId"?: string; /** - * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. + * The category of the transfer. Possible values: - **bank**: A transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) or a bank account. - **card**: A transfer involving a third-party card. - **internal**: A transfer between [balance accounts](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id) within your platform. - **issuedCard**: A transfer initiated by an Adyen-issued card. - **platformPayment**: Funds movements related to payments that are acquired for your users. - **topUp**: An incoming transfer initiated by your user to top up their balance account. */ "category": TransferInfo.CategoryEnum; "counterparty": CounterpartyInfoV3; @@ -35,11 +35,11 @@ export class TransferInfo { */ "paymentInstrumentId"?: string; /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). */ "priorities"?: Array; /** - * 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**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * 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**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ "priority"?: TransferInfo.PriorityEnum; /** diff --git a/src/typings/transfers/ultimatePartyIdentification.ts b/src/typings/transfers/ultimatePartyIdentification.ts index c1b288ba4..03b9c2703 100644 --- a/src/typings/transfers/ultimatePartyIdentification.ts +++ b/src/typings/transfers/ultimatePartyIdentification.ts @@ -8,6 +8,7 @@ */ import { Address } from "./address"; +import { FundingInstrument } from "./fundingInstrument"; export class UltimatePartyIdentification { @@ -28,6 +29,7 @@ export class UltimatePartyIdentification { * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" \' and space. Required when `category` is **bank**. */ "fullName"?: string; + "fundingInstrument"?: FundingInstrument | null; /** * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ @@ -80,6 +82,12 @@ export class UltimatePartyIdentification { "type": "string", "format": "" }, + { + "name": "fundingInstrument", + "baseName": "fundingInstrument", + "type": "FundingInstrument | null", + "format": "" + }, { "name": "lastName", "baseName": "lastName",