diff --git a/src/typings/management/configuration.ts b/src/typings/management/configuration.ts index 8f11ef2d9..0d1028879 100644 --- a/src/typings/management/configuration.ts +++ b/src/typings/management/configuration.ts @@ -15,11 +15,15 @@ export class Configuration { */ 'brand': string; /** - * Countries, to filter different surcharge amounts for domestic or international cards. + * Set to **true** to apply surcharges only to commercial/business cards. + */ + 'commercial'?: boolean; + /** + * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. */ 'country'?: Array; /** - * Currency, and surcharge percentage or amount. + * Currency and percentage or amount of the surcharge. */ 'currencies': Array; /** @@ -35,6 +39,11 @@ export class Configuration { "baseName": "brand", "type": "string" }, + { + "name": "commercial", + "baseName": "commercial", + "type": "boolean" + }, { "name": "country", "baseName": "country", diff --git a/src/typings/management/currency.ts b/src/typings/management/currency.ts index 2816fa64b..56d9a1328 100644 --- a/src/typings/management/currency.ts +++ b/src/typings/management/currency.ts @@ -18,6 +18,10 @@ export class Currency { */ 'currencyCode': string; /** + * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'maxAmount'?: number; + /** * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. */ 'percentage'?: number; @@ -35,6 +39,11 @@ export class Currency { "baseName": "currencyCode", "type": "string" }, + { + "name": "maxAmount", + "baseName": "maxAmount", + "type": "number" + }, { "name": "percentage", "baseName": "percentage", diff --git a/src/typings/management/splitConfiguration.ts b/src/typings/management/splitConfiguration.ts index 4eb234361..7fd834331 100644 --- a/src/typings/management/splitConfiguration.ts +++ b/src/typings/management/splitConfiguration.ts @@ -22,10 +22,6 @@ export class SplitConfiguration { * Unique identifier of the split configuration. */ 'splitConfigurationId'?: string; - /** - * List of stores to which the split configuration applies. - */ - 'stores'?: Array; static discriminator: string | undefined = undefined; @@ -44,11 +40,6 @@ export class SplitConfiguration { "name": "splitConfigurationId", "baseName": "splitConfigurationId", "type": "string" - }, - { - "name": "stores", - "baseName": "stores", - "type": "Array" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/surcharge.ts b/src/typings/management/surcharge.ts index 7d0943ddd..c478cd949 100644 --- a/src/typings/management/surcharge.ts +++ b/src/typings/management/surcharge.ts @@ -15,7 +15,7 @@ export class Surcharge { */ 'askConfirmation'?: boolean; /** - * Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies. + * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. */ 'configurations'?: Array; diff --git a/src/typings/payment/modificationResult.ts b/src/typings/payment/modificationResult.ts index d5a6240f7..2db6b42e3 100644 --- a/src/typings/payment/modificationResult.ts +++ b/src/typings/payment/modificationResult.ts @@ -55,6 +55,7 @@ export namespace ModificationResult { AdjustAuthorisationReceived = '[adjustAuthorisation-received]', DonationReceived = '[donation-received]', TechnicalCancelReceived = '[technical-cancel-received]', - VoidPendingRefundReceived = '[voidPendingRefund-received]' + VoidPendingRefundReceived = '[voidPendingRefund-received]', + Authorised = 'Authorised' } }