Skip to content

Commit 831d25b

Browse files
authored
Merge pull request #1443 from Adyen/sdk-automation/models
2 parents 85a513f + afd1b80 commit 831d25b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

src/typings/checkout/additionalDataCommon.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export class AdditionalDataCommon {
2222
*/
2323
'authorisationType'?: string;
2424
/**
25+
* Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.
26+
*/
27+
'autoRescue'?: string;
28+
/**
2529
* Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new).
2630
*/
2731
'customRoutingFlag'?: string;
@@ -34,6 +38,10 @@ export class AdditionalDataCommon {
3438
*/
3539
'manualCapture'?: string;
3640
/**
41+
* The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.
42+
*/
43+
'maxDaysToRescue'?: string;
44+
/**
3745
* Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.
3846
*/
3947
'networkTxReference'?: string;
@@ -92,6 +100,11 @@ export class AdditionalDataCommon {
92100
"baseName": "authorisationType",
93101
"type": "string"
94102
},
103+
{
104+
"name": "autoRescue",
105+
"baseName": "autoRescue",
106+
"type": "string"
107+
},
95108
{
96109
"name": "customRoutingFlag",
97110
"baseName": "customRoutingFlag",
@@ -107,6 +120,11 @@ export class AdditionalDataCommon {
107120
"baseName": "manualCapture",
108121
"type": "string"
109122
},
123+
{
124+
"name": "maxDaysToRescue",
125+
"baseName": "maxDaysToRescue",
126+
"type": "string"
127+
},
110128
{
111129
"name": "networkTxReference",
112130
"baseName": "networkTxReference",

src/typings/payment/additionalDataCommon.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export class AdditionalDataCommon {
2222
*/
2323
'authorisationType'?: string;
2424
/**
25+
* Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.
26+
*/
27+
'autoRescue'?: string;
28+
/**
2529
* Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new).
2630
*/
2731
'customRoutingFlag'?: string;
@@ -34,6 +38,10 @@ export class AdditionalDataCommon {
3438
*/
3539
'manualCapture'?: string;
3640
/**
41+
* The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.
42+
*/
43+
'maxDaysToRescue'?: string;
44+
/**
3745
* Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.
3846
*/
3947
'networkTxReference'?: string;
@@ -92,6 +100,11 @@ export class AdditionalDataCommon {
92100
"baseName": "authorisationType",
93101
"type": "string"
94102
},
103+
{
104+
"name": "autoRescue",
105+
"baseName": "autoRescue",
106+
"type": "string"
107+
},
95108
{
96109
"name": "customRoutingFlag",
97110
"baseName": "customRoutingFlag",
@@ -107,6 +120,11 @@ export class AdditionalDataCommon {
107120
"baseName": "manualCapture",
108121
"type": "string"
109122
},
123+
{
124+
"name": "maxDaysToRescue",
125+
"baseName": "maxDaysToRescue",
126+
"type": "string"
127+
},
110128
{
111129
"name": "networkTxReference",
112130
"baseName": "networkTxReference",

0 commit comments

Comments
 (0)