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
13 changes: 11 additions & 2 deletions src/typings/management/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>;
/**
* Currency, and surcharge percentage or amount.
* Currency and percentage or amount of the surcharge.
*/
'currencies': Array<Currency>;
/**
Expand All @@ -35,6 +39,11 @@ export class Configuration {
"baseName": "brand",
"type": "string"
},
{
"name": "commercial",
"baseName": "commercial",
"type": "boolean"
},
{
"name": "country",
"baseName": "country",
Expand Down
9 changes: 9 additions & 0 deletions src/typings/management/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -35,6 +39,11 @@ export class Currency {
"baseName": "currencyCode",
"type": "string"
},
{
"name": "maxAmount",
"baseName": "maxAmount",
"type": "number"
},
{
"name": "percentage",
"baseName": "percentage",
Expand Down
9 changes: 0 additions & 9 deletions src/typings/management/splitConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>;

static discriminator: string | undefined = undefined;

Expand All @@ -44,11 +40,6 @@ export class SplitConfiguration {
"name": "splitConfigurationId",
"baseName": "splitConfigurationId",
"type": "string"
},
{
"name": "stores",
"baseName": "stores",
"type": "Array<string>"
} ];

static getAttributeTypeMap() {
Expand Down
2 changes: 1 addition & 1 deletion src/typings/management/surcharge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Configuration>;

Expand Down
3 changes: 2 additions & 1 deletion src/typings/payment/modificationResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Loading