Skip to content

Commit e22b955

Browse files
authored
Merge pull request #1418 from Adyen/sdk-automation/models
Update all services
2 parents e579e2b + 5bdd450 commit e22b955

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

src/typings/management/configuration.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ export class Configuration {
1515
*/
1616
'brand': string;
1717
/**
18-
* Countries, to filter different surcharge amounts for domestic or international cards.
18+
* Set to **true** to apply surcharges only to commercial/business cards.
19+
*/
20+
'commercial'?: boolean;
21+
/**
22+
* The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
1923
*/
2024
'country'?: Array<string>;
2125
/**
22-
* Currency, and surcharge percentage or amount.
26+
* Currency and percentage or amount of the surcharge.
2327
*/
2428
'currencies': Array<Currency>;
2529
/**
@@ -35,6 +39,11 @@ export class Configuration {
3539
"baseName": "brand",
3640
"type": "string"
3741
},
42+
{
43+
"name": "commercial",
44+
"baseName": "commercial",
45+
"type": "boolean"
46+
},
3847
{
3948
"name": "country",
4049
"baseName": "country",

src/typings/management/currency.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export class Currency {
1818
*/
1919
'currencyCode': string;
2020
/**
21+
* The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
22+
*/
23+
'maxAmount'?: number;
24+
/**
2125
* Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**.
2226
*/
2327
'percentage'?: number;
@@ -35,6 +39,11 @@ export class Currency {
3539
"baseName": "currencyCode",
3640
"type": "string"
3741
},
42+
{
43+
"name": "maxAmount",
44+
"baseName": "maxAmount",
45+
"type": "number"
46+
},
3847
{
3948
"name": "percentage",
4049
"baseName": "percentage",

src/typings/management/splitConfiguration.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ export class SplitConfiguration {
2222
* Unique identifier of the split configuration.
2323
*/
2424
'splitConfigurationId'?: string;
25-
/**
26-
* List of stores to which the split configuration applies.
27-
*/
28-
'stores'?: Array<string>;
2925

3026
static discriminator: string | undefined = undefined;
3127

@@ -44,11 +40,6 @@ export class SplitConfiguration {
4440
"name": "splitConfigurationId",
4541
"baseName": "splitConfigurationId",
4642
"type": "string"
47-
},
48-
{
49-
"name": "stores",
50-
"baseName": "stores",
51-
"type": "Array<string>"
5243
} ];
5344

5445
static getAttributeTypeMap() {

src/typings/management/surcharge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class Surcharge {
1515
*/
1616
'askConfirmation'?: boolean;
1717
/**
18-
* Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.
18+
* Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.
1919
*/
2020
'configurations'?: Array<Configuration>;
2121

src/typings/payment/modificationResult.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export namespace ModificationResult {
5555
AdjustAuthorisationReceived = '[adjustAuthorisation-received]',
5656
DonationReceived = '[donation-received]',
5757
TechnicalCancelReceived = '[technical-cancel-received]',
58-
VoidPendingRefundReceived = '[voidPendingRefund-received]'
58+
VoidPendingRefundReceived = '[voidPendingRefund-received]',
59+
Authorised = 'Authorised'
5960
}
6061
}

0 commit comments

Comments
 (0)