|
45 | 45 | AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE, |
46 | 46 | AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STATE, |
47 | 47 | AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STREET, |
48 | | - AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID |
| 48 | + AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID, |
| 49 | + AdditionalDataCommon.JSON_PROPERTY_TRANSACTION_LINK_ID |
49 | 50 | }) |
50 | 51 | public class AdditionalDataCommon { |
51 | 52 | public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = |
@@ -224,6 +225,12 @@ public static IndustryUsageEnum fromValue(String value) { |
224 | 225 | /** Mark when the attribute has been explicitly set. */ |
225 | 226 | private boolean isSetSubMerchantTaxId = false; |
226 | 227 |
|
| 228 | + public static final String JSON_PROPERTY_TRANSACTION_LINK_ID = "transactionLinkId"; |
| 229 | + private String transactionLinkId; |
| 230 | + |
| 231 | + /** Mark when the attribute has been explicitly set. */ |
| 232 | + private boolean isSetTransactionLinkId = false; |
| 233 | + |
227 | 234 | /** |
228 | 235 | * Sets whether attributes with null values should be explicitly included in the JSON payload. |
229 | 236 | * Default is false. |
@@ -1395,6 +1402,86 @@ public void setSubMerchantTaxId(String subMerchantTaxId) { |
1395 | 1402 | isSetSubMerchantTaxId = true; // mark as set |
1396 | 1403 | } |
1397 | 1404 |
|
| 1405 | + /** |
| 1406 | + * Allows you to link the transaction to the original or previous one in a |
| 1407 | + * subscription/card-on-file chain For Mastercard payments. This field is required for token-based |
| 1408 | + * transactions where Adyen does not tokenize the card. Transaction identifier from Mastercard. |
| 1409 | + * Submit the original transaction ID of the contract in your payment request if you are not |
| 1410 | + * tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for |
| 1411 | + * subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and |
| 1412 | + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure |
| 1413 | + * that the transaction is classified as MIT. |
| 1414 | + * |
| 1415 | + * @param transactionLinkId Allows you to link the transaction to the original or previous one in |
| 1416 | + * a subscription/card-on-file chain For Mastercard payments. This field is required for |
| 1417 | + * token-based transactions where Adyen does not tokenize the card. Transaction identifier |
| 1418 | + * from Mastercard. Submit the original transaction ID of the contract in your payment request |
| 1419 | + * if you are not tokenizing card details with Adyen and are making a merchant-initiated |
| 1420 | + * transaction (MIT) for subsequent charges. Make sure you are sending |
| 1421 | + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` |
| 1422 | + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified |
| 1423 | + * as MIT. |
| 1424 | + * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining |
| 1425 | + */ |
| 1426 | + public AdditionalDataCommon transactionLinkId(String transactionLinkId) { |
| 1427 | + this.transactionLinkId = transactionLinkId; |
| 1428 | + isSetTransactionLinkId = true; // mark as set |
| 1429 | + return this; |
| 1430 | + } |
| 1431 | + |
| 1432 | + /** |
| 1433 | + * Allows you to link the transaction to the original or previous one in a |
| 1434 | + * subscription/card-on-file chain For Mastercard payments. This field is required for token-based |
| 1435 | + * transactions where Adyen does not tokenize the card. Transaction identifier from Mastercard. |
| 1436 | + * Submit the original transaction ID of the contract in your payment request if you are not |
| 1437 | + * tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for |
| 1438 | + * subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and |
| 1439 | + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure |
| 1440 | + * that the transaction is classified as MIT. |
| 1441 | + * |
| 1442 | + * @return transactionLinkId Allows you to link the transaction to the original or previous one in |
| 1443 | + * a subscription/card-on-file chain For Mastercard payments. This field is required for |
| 1444 | + * token-based transactions where Adyen does not tokenize the card. Transaction identifier |
| 1445 | + * from Mastercard. Submit the original transaction ID of the contract in your payment request |
| 1446 | + * if you are not tokenizing card details with Adyen and are making a merchant-initiated |
| 1447 | + * transaction (MIT) for subsequent charges. Make sure you are sending |
| 1448 | + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` |
| 1449 | + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified |
| 1450 | + * as MIT. |
| 1451 | + */ |
| 1452 | + @JsonProperty(JSON_PROPERTY_TRANSACTION_LINK_ID) |
| 1453 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 1454 | + public String getTransactionLinkId() { |
| 1455 | + return transactionLinkId; |
| 1456 | + } |
| 1457 | + |
| 1458 | + /** |
| 1459 | + * Allows you to link the transaction to the original or previous one in a |
| 1460 | + * subscription/card-on-file chain For Mastercard payments. This field is required for token-based |
| 1461 | + * transactions where Adyen does not tokenize the card. Transaction identifier from Mastercard. |
| 1462 | + * Submit the original transaction ID of the contract in your payment request if you are not |
| 1463 | + * tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for |
| 1464 | + * subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and |
| 1465 | + * `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure |
| 1466 | + * that the transaction is classified as MIT. |
| 1467 | + * |
| 1468 | + * @param transactionLinkId Allows you to link the transaction to the original or previous one in |
| 1469 | + * a subscription/card-on-file chain For Mastercard payments. This field is required for |
| 1470 | + * token-based transactions where Adyen does not tokenize the card. Transaction identifier |
| 1471 | + * from Mastercard. Submit the original transaction ID of the contract in your payment request |
| 1472 | + * if you are not tokenizing card details with Adyen and are making a merchant-initiated |
| 1473 | + * transaction (MIT) for subsequent charges. Make sure you are sending |
| 1474 | + * `shopperInteraction` **ContAuth** and `recurringProcessingModel` |
| 1475 | + * **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified |
| 1476 | + * as MIT. |
| 1477 | + */ |
| 1478 | + @JsonProperty(JSON_PROPERTY_TRANSACTION_LINK_ID) |
| 1479 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 1480 | + public void setTransactionLinkId(String transactionLinkId) { |
| 1481 | + this.transactionLinkId = transactionLinkId; |
| 1482 | + isSetTransactionLinkId = true; // mark as set |
| 1483 | + } |
| 1484 | + |
1398 | 1485 | /** |
1399 | 1486 | * Configures whether null values are explicitly serialized in the JSON payload. Default is false. |
1400 | 1487 | */ |
@@ -1478,7 +1565,9 @@ public boolean equals(Object o) { |
1478 | 1565 | && Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) |
1479 | 1566 | && Objects.equals(this.isSetSubMerchantStreet, additionalDataCommon.isSetSubMerchantStreet) |
1480 | 1567 | && Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId) |
1481 | | - && Objects.equals(this.isSetSubMerchantTaxId, additionalDataCommon.isSetSubMerchantTaxId); |
| 1568 | + && Objects.equals(this.isSetSubMerchantTaxId, additionalDataCommon.isSetSubMerchantTaxId) |
| 1569 | + && Objects.equals(this.transactionLinkId, additionalDataCommon.transactionLinkId) |
| 1570 | + && Objects.equals(this.isSetTransactionLinkId, additionalDataCommon.isSetTransactionLinkId); |
1482 | 1571 | } |
1483 | 1572 |
|
1484 | 1573 | @Override |
@@ -1525,7 +1614,9 @@ public int hashCode() { |
1525 | 1614 | subMerchantStreet, |
1526 | 1615 | isSetSubMerchantStreet, |
1527 | 1616 | subMerchantTaxId, |
1528 | | - isSetSubMerchantTaxId); |
| 1617 | + isSetSubMerchantTaxId, |
| 1618 | + transactionLinkId, |
| 1619 | + isSetTransactionLinkId); |
1529 | 1620 | } |
1530 | 1621 |
|
1531 | 1622 | @Override |
@@ -1561,6 +1652,7 @@ public String toString() { |
1561 | 1652 | sb.append(" subMerchantState: ").append(toIndentedString(subMerchantState)).append("\n"); |
1562 | 1653 | sb.append(" subMerchantStreet: ").append(toIndentedString(subMerchantStreet)).append("\n"); |
1563 | 1654 | sb.append(" subMerchantTaxId: ").append(toIndentedString(subMerchantTaxId)).append("\n"); |
| 1655 | + sb.append(" transactionLinkId: ").append(toIndentedString(transactionLinkId)).append("\n"); |
1564 | 1656 | sb.append("}"); |
1565 | 1657 | return sb.toString(); |
1566 | 1658 | } |
@@ -1654,6 +1746,9 @@ public Map<String, Object> getExplicitNulls() { |
1654 | 1746 | if (isSetSubMerchantTaxId) { |
1655 | 1747 | addIfNull(nulls, JSON_PROPERTY_SUB_MERCHANT_TAX_ID, this.subMerchantTaxId); |
1656 | 1748 | } |
| 1749 | + if (isSetTransactionLinkId) { |
| 1750 | + addIfNull(nulls, JSON_PROPERTY_TRANSACTION_LINK_ID, this.transactionLinkId); |
| 1751 | + } |
1657 | 1752 |
|
1658 | 1753 | return nulls; |
1659 | 1754 | } |
|
0 commit comments