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/checkout.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"service": "checkout",
"project": "java",
"generatedAt": "2026-07-22T11:25:22Z",
"openapiCommitSha": "c6f0131e5551226fd523852ff6f5ad1df6c72ee2",
"automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397",
"libraryCommitSha": "913f166177824e57c26c5f0543b46144219ca6af"
"generatedAt": "2026-08-07T15:19:45Z",
"openapiCommitSha": "3a16b41f17d1bda097a8e25cfe3646f4af2042ec",
"automationCommitSha": "09e65f31d70416e30f8464ec7cf29e94eda443fc",
"libraryCommitSha": "ef0f827bf1e2d31bdc55f7cc4860ffef20601f42"
}
57 changes: 56 additions & 1 deletion src/main/java/com/adyen/model/checkout/AffirmDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/** AffirmDetails */
@JsonPropertyOrder({
AffirmDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
AffirmDetails.JSON_PROPERTY_FINANCING_PROGRAM,
AffirmDetails.JSON_PROPERTY_SDK_DATA,
AffirmDetails.JSON_PROPERTY_TYPE
})
Expand All @@ -36,6 +37,12 @@ public class AffirmDetails {
/** Mark when the attribute has been explicitly set. */
private boolean isSetCheckoutAttemptId = false;

public static final String JSON_PROPERTY_FINANCING_PROGRAM = "financingProgram";
private String financingProgram;

/** Mark when the attribute has been explicitly set. */
private boolean isSetFinancingProgram = false;

public static final String JSON_PROPERTY_SDK_DATA = "sdkData";
private String sdkData;

Expand Down Expand Up @@ -130,6 +137,41 @@ public void setCheckoutAttemptId(String checkoutAttemptId) {
isSetCheckoutAttemptId = true; // mark as set
}

/**
* The Affirm financing program to apply to this transaction.
*
* @param financingProgram The Affirm financing program to apply to this transaction.
* @return the current {@code AffirmDetails} instance, allowing for method chaining
*/
public AffirmDetails financingProgram(String financingProgram) {
this.financingProgram = financingProgram;
isSetFinancingProgram = true; // mark as set
return this;
}

/**
* The Affirm financing program to apply to this transaction.
*
* @return financingProgram The Affirm financing program to apply to this transaction.
*/
@JsonProperty(JSON_PROPERTY_FINANCING_PROGRAM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFinancingProgram() {
return financingProgram;
}

/**
* The Affirm financing program to apply to this transaction.
*
* @param financingProgram The Affirm financing program to apply to this transaction.
*/
@JsonProperty(JSON_PROPERTY_FINANCING_PROGRAM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFinancingProgram(String financingProgram) {
this.financingProgram = financingProgram;
isSetFinancingProgram = true; // mark as set
}

/**
* Base64-encoded JSON object containing SDK related parameters required by the SDK
*
Expand Down Expand Up @@ -233,6 +275,8 @@ public boolean equals(Object o) {
AffirmDetails affirmDetails = (AffirmDetails) o;
return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId)
&& Objects.equals(this.isSetCheckoutAttemptId, affirmDetails.isSetCheckoutAttemptId)
&& Objects.equals(this.financingProgram, affirmDetails.financingProgram)
&& Objects.equals(this.isSetFinancingProgram, affirmDetails.isSetFinancingProgram)
&& Objects.equals(this.sdkData, affirmDetails.sdkData)
&& Objects.equals(this.isSetSdkData, affirmDetails.isSetSdkData)
&& Objects.equals(this.type, affirmDetails.type)
Expand All @@ -242,14 +286,22 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
checkoutAttemptId, isSetCheckoutAttemptId, sdkData, isSetSdkData, type, isSetType);
checkoutAttemptId,
isSetCheckoutAttemptId,
financingProgram,
isSetFinancingProgram,
sdkData,
isSetSdkData,
type,
isSetType);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AffirmDetails {\n");
sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
sb.append(" financingProgram: ").append(toIndentedString(financingProgram)).append("\n");
sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
Expand Down Expand Up @@ -279,6 +331,9 @@ public Map<String, Object> getExplicitNulls() {
if (isSetCheckoutAttemptId) {
addIfNull(nulls, JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, this.checkoutAttemptId);
}
if (isSetFinancingProgram) {
addIfNull(nulls, JSON_PROPERTY_FINANCING_PROGRAM, this.financingProgram);
}
if (isSetSdkData) {
addIfNull(nulls, JSON_PROPERTY_SDK_DATA, this.sdkData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,7 @@ public CheckoutPaymentMethod(ZipDetails o) {
mappings.put("gcash", StoredPaymentMethodDetails.class);
mappings.put("giftcard", CardDetails.class);
mappings.put("googlepay", GooglePayDetails.class);
mappings.put("gopay_wallet", PaymentDetails.class);
mappings.put("gopay_wallet", StoredPaymentMethodDetails.class);
Comment thread
poojah-adyen marked this conversation as resolved.
mappings.put("grabpay_ID", StoredPaymentMethodDetails.class);
mappings.put("grabpay_MY", StoredPaymentMethodDetails.class);
mappings.put("grabpay_PH", StoredPaymentMethodDetails.class);
Expand Down
Loading