Skip to content

Commit

Permalink
Merge pull request #1443 from Adyen/sdk-automation/models
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwok-he-Chu authored Jan 20, 2025
2 parents 85a513f + afd1b80 commit 831d25b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/typings/checkout/additionalDataCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export class AdditionalDataCommon {
*/
'authorisationType'?: string;
/**
* 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.
*/
'autoRescue'?: string;
/**
* 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).
*/
'customRoutingFlag'?: string;
Expand All @@ -34,6 +38,10 @@ export class AdditionalDataCommon {
*/
'manualCapture'?: string;
/**
* 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.
*/
'maxDaysToRescue'?: string;
/**
* 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.
*/
'networkTxReference'?: string;
Expand Down Expand Up @@ -92,6 +100,11 @@ export class AdditionalDataCommon {
"baseName": "authorisationType",
"type": "string"
},
{
"name": "autoRescue",
"baseName": "autoRescue",
"type": "string"
},
{
"name": "customRoutingFlag",
"baseName": "customRoutingFlag",
Expand All @@ -107,6 +120,11 @@ export class AdditionalDataCommon {
"baseName": "manualCapture",
"type": "string"
},
{
"name": "maxDaysToRescue",
"baseName": "maxDaysToRescue",
"type": "string"
},
{
"name": "networkTxReference",
"baseName": "networkTxReference",
Expand Down
18 changes: 18 additions & 0 deletions src/typings/payment/additionalDataCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export class AdditionalDataCommon {
*/
'authorisationType'?: string;
/**
* 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.
*/
'autoRescue'?: string;
/**
* 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).
*/
'customRoutingFlag'?: string;
Expand All @@ -34,6 +38,10 @@ export class AdditionalDataCommon {
*/
'manualCapture'?: string;
/**
* 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.
*/
'maxDaysToRescue'?: string;
/**
* 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.
*/
'networkTxReference'?: string;
Expand Down Expand Up @@ -92,6 +100,11 @@ export class AdditionalDataCommon {
"baseName": "authorisationType",
"type": "string"
},
{
"name": "autoRescue",
"baseName": "autoRescue",
"type": "string"
},
{
"name": "customRoutingFlag",
"baseName": "customRoutingFlag",
Expand All @@ -107,6 +120,11 @@ export class AdditionalDataCommon {
"baseName": "manualCapture",
"type": "string"
},
{
"name": "maxDaysToRescue",
"baseName": "maxDaysToRescue",
"type": "string"
},
{
"name": "networkTxReference",
"baseName": "networkTxReference",
Expand Down

0 comments on commit 831d25b

Please sign in to comment.