Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/typings/payment/additionalDataLevel23.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AdditionalDataLevel23 {
*/
"enhancedSchemeData_freightAmount"?: string;
/**
* The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
* The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_commodityCode"?: string;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/typings/payment/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
5 changes: 3 additions & 2 deletions src/typings/payment/paymentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class PaymentRequest {
"fundingSource"?: PaymentRequest.FundingSourceEnum;
"installments"?: Installments | null;
/**
* The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters.
* The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric.
*/
"localizedShopperStatement"?: { [key: string]: string; };
"mandate"?: Mandate | null;
Expand Down Expand Up @@ -529,7 +529,8 @@ export namespace PaymentRequest {
}
export enum FundingSourceEnum {
Credit = 'credit',
Debit = 'debit'
Debit = 'debit',
Prepaid = 'prepaid'
}
export enum RecurringProcessingModelEnum {
CardOnFile = 'CardOnFile',
Expand Down
2 changes: 1 addition & 1 deletion src/typings/payment/paymentRequest3d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class PaymentRequest3d {
"fraudOffset"?: number;
"installments"?: Installments | null;
/**
* The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters.
* The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric.
*/
"localizedShopperStatement"?: { [key: string]: string; };
/**
Expand Down
2 changes: 1 addition & 1 deletion src/typings/payment/paymentRequest3ds2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class PaymentRequest3ds2 {
"fraudOffset"?: number;
"installments"?: Installments | null;
/**
* The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters.
* The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric.
*/
"localizedShopperStatement"?: { [key: string]: string; };
/**
Expand Down
10 changes: 10 additions & 0 deletions src/typings/payment/responseAdditionalDataSepa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export class ResponseAdditionalDataSepa {
*/
"sepadirectdebit_mandateId"?: string;
/**
* The date that the the shopper\'s bank account is charged.
*/
"sepadirectdebit_sepadirectdebit_dueDate"?: string;
Comment on lines +21 to +23
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The property name sepadirectdebit_sepadirectdebit_dueDate seems to have a redundant sepadirectdebit_ prefix. To maintain consistency with other properties in this class, it should probably be sepadirectdebit_dueDate.

Additionally, there is a typo in the comment on line 21 ('the the').

Suggested change
* The date that the the shopper\'s bank account is charged.
*/
"sepadirectdebit_sepadirectdebit_dueDate"?: string;
* The date that the shopper's bank account is charged.
*/
"sepadirectdebit_dueDate"?: string;

/**
* This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF
*/
"sepadirectdebit_sequenceType"?: string;
Expand All @@ -39,6 +43,12 @@ export class ResponseAdditionalDataSepa {
"type": "string",
"format": ""
},
{
"name": "sepadirectdebit_sepadirectdebit_dueDate",
"baseName": "sepadirectdebit.sepadirectdebit.dueDate",
Comment on lines +47 to +48
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To align with the suggested fix for the property name, the name and baseName here should also be corrected to remove the duplicated sepadirectdebit part.

Suggested change
"name": "sepadirectdebit_sepadirectdebit_dueDate",
"baseName": "sepadirectdebit.sepadirectdebit.dueDate",
"name": "sepadirectdebit_dueDate",
"baseName": "sepadirectdebit.dueDate",

"type": "string",
"format": ""
},
{
"name": "sepadirectdebit_sequenceType",
"baseName": "sepadirectdebit.sequenceType",
Expand Down
2 changes: 1 addition & 1 deletion src/typings/payment/split.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Split {
*/
"reference"?: string;
/**
* The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen\'s commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform\'s commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**.
* The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: Books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: The aggregated amount of the interchange and scheme fees. * **PaymentFee**: The aggregated amount of all transaction fees. * **AdyenFees**: The aggregated amount of Adyen\'s commission and markup fees. * **AdyenCommission**: The transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: The transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: The fees paid to the issuer for each payment made with the card network. * **SchemeFee**: The fees paid to the card scheme for using their network. * **Commission**: Your platform\'s commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: The amount left over after a currency conversion, booked to the specified `account`. * **Surcharge**: The payment acceptance fee imposed by the card scheme or debit network provider, paid by your user\'s customer. * **TopUp**: Allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: The value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: In very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**.
*/
"type": Split.TypeEnum;

Expand Down