diff --git a/src/typings/transferWebhooks/amount.ts b/src/typings/transferWebhooks/amount.ts index cd1649aa4..608564d02 100644 --- a/src/typings/transferWebhooks/amount.ts +++ b/src/typings/transferWebhooks/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/transferWebhooks/bankAccountV3.ts b/src/typings/transferWebhooks/bankAccountV3.ts index 05a01f7e3..b1ed591e2 100644 --- a/src/typings/transferWebhooks/bankAccountV3.ts +++ b/src/typings/transferWebhooks/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/transferWebhooks/bankCategoryData.ts b/src/typings/transferWebhooks/bankCategoryData.ts index 27b20a0e9..931b9c768 100644 --- a/src/typings/transferWebhooks/bankCategoryData.ts +++ b/src/typings/transferWebhooks/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/transferWebhooks/platformPayment.ts b/src/typings/transferWebhooks/platformPayment.ts index ea9db1f6b..935146ed8 100644 --- a/src/typings/transferWebhooks/platformPayment.ts +++ b/src/typings/transferWebhooks/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/transferWebhooks/transferData.ts b/src/typings/transferWebhooks/transferData.ts index 822ff351c..02d1798c0 100644 --- a/src/typings/transferWebhooks/transferData.ts +++ b/src/typings/transferWebhooks/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"?: TransferDataCategoryData | 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/transferWebhooks/transferDataTracking.ts b/src/typings/transferWebhooks/transferDataTracking.ts index 3d942bc34..336ee1789 100644 --- a/src/typings/transferWebhooks/transferDataTracking.ts +++ b/src/typings/transferWebhooks/transferDataTracking.ts @@ -30,11 +30,7 @@ export type TransferDataTracking = ConfirmationTrackingData | EstimationTracking */ export class TransferDataTrackingClass { - static readonly discriminator: string | undefined = "type"; + static readonly discriminator: string = "type"; - static readonly mapping: {[index: string]: string} | undefined = { - "confirmation": "ConfirmationTrackingData", - "estimation": "EstimationTrackingData", - "internalReview": "InternalReviewTrackingData" - }; + static readonly mapping: {[index: string]: string} | undefined = undefined; } diff --git a/src/typings/transferWebhooks/transferEvent.ts b/src/typings/transferWebhooks/transferEvent.ts index 6a15b1023..72ef684d0 100644 --- a/src/typings/transferWebhooks/transferEvent.ts +++ b/src/typings/transferWebhooks/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',