Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk-generation-log/payment.json
Original file line number Diff line number Diff line change
@@ -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"
}
101 changes: 98 additions & 3 deletions src/main/java/com/adyen/model/payment/AdditionalDataCommon.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1525,7 +1614,9 @@ public int hashCode() {
subMerchantStreet,
isSetSubMerchantStreet,
subMerchantTaxId,
isSetSubMerchantTaxId);
isSetSubMerchantTaxId,
transactionLinkId,
isSetTransactionLinkId);
}

@Override
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -1654,6 +1746,9 @@ public Map<String, Object> 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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down Expand Up @@ -465,7 +466,7 @@
public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE =
"recurring.shopperReference";
/* deprecated since Adyen Payment API v68: Use tokenization.shopperReference instead. */
@Deprecated private String recurringShopperReference;

Check warning on line 469 in src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add 'since' and/or 'forRemoval' arguments to the @Deprecated annotation.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-java-api-library&issues=AZ-4EtUUXF-Rs4_NsIBV&open=AZ-4EtUUXF-Rs4_NsIBV&pullRequest=2021

/** Mark when the attribute has been explicitly set. */
private boolean isSetRecurringShopperReference = false;
Expand Down Expand Up @@ -662,6 +663,12 @@
/** 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;

Expand Down Expand Up @@ -3279,6 +3286,47 @@
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 &#x60;visaTransactionId&#x60;, has a fixed length of 15 numeric characters. &gt; Contact
* Support Team to enable this field.
Expand Down Expand Up @@ -3610,6 +3658,9 @@
&& 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)
Expand Down Expand Up @@ -3744,6 +3795,8 @@
isSetTokenizationStoreOperationType,
tokenizationStoredPaymentMethodId,
isSetTokenizationStoredPaymentMethodId,
transactionLinkId,
isSetTransactionLinkId,
visaTransactionId,
isSetVisaTransactionId,
xid,
Expand Down Expand Up @@ -3860,6 +3913,7 @@
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("}");
Expand Down Expand Up @@ -4088,6 +4142,9 @@
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);
}
Expand Down