Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/typings/transferWebhooks/amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
10 changes: 10 additions & 0 deletions src/typings/transferWebhooks/bankAccountV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -31,6 +35,12 @@ export class BankAccountV3 {
"baseName": "accountIdentification",
"type": "BankAccountV3AccountIdentification",
"format": ""
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down
2 changes: 1 addition & 1 deletion src/typings/transferWebhooks/bankCategoryData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
3 changes: 2 additions & 1 deletion src/typings/transferWebhooks/platformPayment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -93,6 +93,7 @@ export namespace PlatformPayment {
BalanceAccount = 'BalanceAccount',
ChargebackRemainder = 'ChargebackRemainder',
Commission = 'Commission',
DccMarkup = 'DCCMarkup',
DccPlatformCommission = 'DCCPlatformCommission',
Default = 'Default',
Interchange = 'Interchange',
Expand Down
66 changes: 63 additions & 3 deletions src/typings/transferWebhooks/transferData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class TransferData {
*/
"balances"?: Array<BalanceMutation>;
/**
* 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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 2 additions & 6 deletions src/typings/transferWebhooks/transferDataTracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Removing the mapping object will likely break the deserialization of the TransferDataTracking union type. The ObjectSerializer.deserialize method relies on this mapping to resolve the concrete type from the type discriminator field in the JSON payload. Without it, the serializer won't be able to map values like "confirmation" to the ConfirmationTrackingData class, leading to runtime errors. Please restore the mapping to ensure proper deserialization.

    static readonly mapping: {[index: string]: string} | undefined = {
        "confirmation": "ConfirmationTrackingData",
        "estimation": "EstimationTrackingData",
        "internalReview": "InternalReviewTrackingData"
    };

}
62 changes: 61 additions & 1 deletion src/typings/transferWebhooks/transferEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading