diff --git a/sdk-generation-log/payment.json b/sdk-generation-log/payment.json index ac0a0412b..0dc9a9f0a 100644 --- a/sdk-generation-log/payment.json +++ b/sdk-generation-log/payment.json @@ -1,8 +1,8 @@ { "service": "payment", "project": "java", - "generatedAt": "2026-05-14T14:22:05Z", - "openapiCommitSha": "cbc5406a2df1f24d50e40742f18342f7ca7f21fc", - "automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284", - "libraryCommitSha": "5790580db2f8a931a68baba2bff9760b8aed2067" + "generatedAt": "2026-07-31T12:01:32Z", + "openapiCommitSha": "425d65d12163ebd4fe6fa6d2f859075817c81cba", + "automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397", + "libraryCommitSha": "ef0f827bf1e2d31bdc55f7cc4860ffef20601f42" } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java index abeb686d0..368db75e4 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java @@ -45,7 +45,8 @@ AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE, AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STATE, AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_STREET, - AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID + AdditionalDataCommon.JSON_PROPERTY_SUB_MERCHANT_TAX_ID, + AdditionalDataCommon.JSON_PROPERTY_TRANSACTION_LINK_ID }) public class AdditionalDataCommon { public static final String JSON_PROPERTY_REQUESTED_TEST_ACQUIRER_RESPONSE_CODE = @@ -224,6 +225,12 @@ public static IndustryUsageEnum fromValue(String value) { /** Mark when the attribute has been explicitly set. */ private boolean isSetSubMerchantTaxId = false; + public static final String JSON_PROPERTY_TRANSACTION_LINK_ID = "transactionLinkId"; + private String transactionLinkId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetTransactionLinkId = false; + /** * Sets whether attributes with null values should be explicitly included in the JSON payload. * Default is false. @@ -1395,6 +1402,86 @@ public void setSubMerchantTaxId(String subMerchantTaxId) { isSetSubMerchantTaxId = true; // mark as set } + /** + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain For Mastercard payments. This field is required for token-based + * transactions where Adyen does not tokenize the card. Transaction identifier from Mastercard. + * 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. + * + * @param transactionLinkId Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain For Mastercard payments. This field is required for + * token-based transactions where Adyen does not tokenize the card. Transaction identifier + * from Mastercard. 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. + * @return the current {@code AdditionalDataCommon} instance, allowing for method chaining + */ + public AdditionalDataCommon transactionLinkId(String transactionLinkId) { + this.transactionLinkId = transactionLinkId; + isSetTransactionLinkId = true; // mark as set + return this; + } + + /** + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain For Mastercard payments. This field is required for token-based + * transactions where Adyen does not tokenize the card. Transaction identifier from Mastercard. + * 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. + * + * @return transactionLinkId Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain For Mastercard payments. This field is required for + * token-based transactions where Adyen does not tokenize the card. Transaction identifier + * from Mastercard. 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. + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_LINK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTransactionLinkId() { + return transactionLinkId; + } + + /** + * Allows you to link the transaction to the original or previous one in a + * subscription/card-on-file chain For Mastercard payments. This field is required for token-based + * transactions where Adyen does not tokenize the card. Transaction identifier from Mastercard. + * 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. + * + * @param transactionLinkId Allows you to link the transaction to the original or previous one in + * a subscription/card-on-file chain For Mastercard payments. This field is required for + * token-based transactions where Adyen does not tokenize the card. Transaction identifier + * from Mastercard. 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. + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_LINK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionLinkId(String transactionLinkId) { + this.transactionLinkId = transactionLinkId; + isSetTransactionLinkId = true; // mark as set + } + /** * Configures whether null values are explicitly serialized in the JSON payload. Default is false. */ @@ -1478,7 +1565,9 @@ public boolean equals(Object o) { && Objects.equals(this.subMerchantStreet, additionalDataCommon.subMerchantStreet) && Objects.equals(this.isSetSubMerchantStreet, additionalDataCommon.isSetSubMerchantStreet) && Objects.equals(this.subMerchantTaxId, additionalDataCommon.subMerchantTaxId) - && Objects.equals(this.isSetSubMerchantTaxId, additionalDataCommon.isSetSubMerchantTaxId); + && Objects.equals(this.isSetSubMerchantTaxId, additionalDataCommon.isSetSubMerchantTaxId) + && Objects.equals(this.transactionLinkId, additionalDataCommon.transactionLinkId) + && Objects.equals(this.isSetTransactionLinkId, additionalDataCommon.isSetTransactionLinkId); } @Override @@ -1525,7 +1614,9 @@ public int hashCode() { subMerchantStreet, isSetSubMerchantStreet, subMerchantTaxId, - isSetSubMerchantTaxId); + isSetSubMerchantTaxId, + transactionLinkId, + isSetTransactionLinkId); } @Override @@ -1561,6 +1652,7 @@ public String toString() { sb.append(" subMerchantState: ").append(toIndentedString(subMerchantState)).append("\n"); sb.append(" subMerchantStreet: ").append(toIndentedString(subMerchantStreet)).append("\n"); sb.append(" subMerchantTaxId: ").append(toIndentedString(subMerchantTaxId)).append("\n"); + sb.append(" transactionLinkId: ").append(toIndentedString(transactionLinkId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1654,6 +1746,9 @@ public Map getExplicitNulls() { if (isSetSubMerchantTaxId) { addIfNull(nulls, JSON_PROPERTY_SUB_MERCHANT_TAX_ID, this.subMerchantTaxId); } + if (isSetTransactionLinkId) { + addIfNull(nulls, JSON_PROPERTY_TRANSACTION_LINK_ID, this.transactionLinkId); + } return nulls; } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java index cabe1f67b..4171dcccd 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java @@ -87,6 +87,7 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_TOKENIZATION_SHOPPER_REFERENCE, ResponseAdditionalDataCommon.JSON_PROPERTY_TOKENIZATION_STORE_OPERATION_TYPE, ResponseAdditionalDataCommon.JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID, + ResponseAdditionalDataCommon.JSON_PROPERTY_TRANSACTION_LINK_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_VISA_TRANSACTION_ID, ResponseAdditionalDataCommon.JSON_PROPERTY_XID }) @@ -662,6 +663,12 @@ public static TokenizationStoreOperationTypeEnum fromValue(String value) { /** Mark when the attribute has been explicitly set. */ private boolean isSetTokenizationStoredPaymentMethodId = false; + public static final String JSON_PROPERTY_TRANSACTION_LINK_ID = "transactionLinkId"; + private String transactionLinkId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetTransactionLinkId = false; + public static final String JSON_PROPERTY_VISA_TRANSACTION_ID = "visaTransactionId"; private String visaTransactionId; @@ -3279,6 +3286,47 @@ public void setTokenizationStoredPaymentMethodId(String tokenizationStoredPaymen isSetTokenizationStoredPaymentMethodId = true; // mark as set } + /** + * Returned in the response for Mastercard payments. This contains the Mastercard Transaction Link + * Identifier (TLID). + * + * @param transactionLinkId Returned in the response for Mastercard payments. This contains the + * Mastercard Transaction Link Identifier (TLID). + * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining + */ + public ResponseAdditionalDataCommon transactionLinkId(String transactionLinkId) { + this.transactionLinkId = transactionLinkId; + isSetTransactionLinkId = true; // mark as set + return this; + } + + /** + * Returned in the response for Mastercard payments. This contains the Mastercard Transaction Link + * Identifier (TLID). + * + * @return transactionLinkId Returned in the response for Mastercard payments. This contains the + * Mastercard Transaction Link Identifier (TLID). + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_LINK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTransactionLinkId() { + return transactionLinkId; + } + + /** + * Returned in the response for Mastercard payments. This contains the Mastercard Transaction Link + * Identifier (TLID). + * + * @param transactionLinkId Returned in the response for Mastercard payments. This contains the + * Mastercard Transaction Link Identifier (TLID). + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_LINK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionLinkId(String transactionLinkId) { + this.transactionLinkId = transactionLinkId; + isSetTransactionLinkId = true; // mark as set + } + /** * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact * Support Team to enable this field. @@ -3610,6 +3658,9 @@ public boolean equals(Object o) { && Objects.equals( this.isSetTokenizationStoredPaymentMethodId, responseAdditionalDataCommon.isSetTokenizationStoredPaymentMethodId) + && Objects.equals(this.transactionLinkId, responseAdditionalDataCommon.transactionLinkId) + && Objects.equals( + this.isSetTransactionLinkId, responseAdditionalDataCommon.isSetTransactionLinkId) && Objects.equals(this.visaTransactionId, responseAdditionalDataCommon.visaTransactionId) && Objects.equals( this.isSetVisaTransactionId, responseAdditionalDataCommon.isSetVisaTransactionId) @@ -3744,6 +3795,8 @@ public int hashCode() { isSetTokenizationStoreOperationType, tokenizationStoredPaymentMethodId, isSetTokenizationStoredPaymentMethodId, + transactionLinkId, + isSetTransactionLinkId, visaTransactionId, isSetVisaTransactionId, xid, @@ -3860,6 +3913,7 @@ public String toString() { sb.append(" tokenizationStoredPaymentMethodId: ") .append(toIndentedString(tokenizationStoredPaymentMethodId)) .append("\n"); + sb.append(" transactionLinkId: ").append(toIndentedString(transactionLinkId)).append("\n"); sb.append(" visaTransactionId: ").append(toIndentedString(visaTransactionId)).append("\n"); sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); sb.append("}"); @@ -4088,6 +4142,9 @@ public Map getExplicitNulls() { JSON_PROPERTY_TOKENIZATION_STORED_PAYMENT_METHOD_ID, this.tokenizationStoredPaymentMethodId); } + if (isSetTransactionLinkId) { + addIfNull(nulls, JSON_PROPERTY_TRANSACTION_LINK_ID, this.transactionLinkId); + } if (isSetVisaTransactionId) { addIfNull(nulls, JSON_PROPERTY_VISA_TRANSACTION_ID, this.visaTransactionId); }