Skip to content
Merged
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-08-21T14:02:21Z",
"openapiCommitSha": "bee086f2cd666ac7cb5b5ba2813a8b5dc943c2d2",
"automationCommitSha": "8d09e0f762f7b00c707748d84d0d002964410c0f",
"libraryCommitSha": "bca8a14bd8bfd031e109bbf12684150f37b17a2b"
"generatedAt": "2026-10-08T14:22:53Z",
"openapiCommitSha": "45520ee6246d7e3d8074c3c5c5e991e65c2c02d6",
"automationCommitSha": "82147244fd717b50362f88a20e4436e693d0aed6",
"libraryCommitSha": "00947dacaaee54f8ed6e4929cc04f243e32ad898"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
/*
* Adyen Checkout API
*
* The version of the OpenAPI document: 72
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.adyen.model.checkout;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.util.*;
import java.util.Arrays;
import java.util.logging.Logger;

/** CheckoutForwardAccountUpdateResult */
@JsonPropertyOrder({CheckoutForwardAccountUpdateResult.JSON_PROPERTY_RESULT})
public class CheckoutForwardAccountUpdateResult {
/**
* The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
*/
public enum ResultEnum {
CARDCHANGED(String.valueOf("CardChanged")),

CARDEXPIRYCHANGED(String.valueOf("CardExpiryChanged")),

CLOSEACCOUNT(String.valueOf("CloseAccount")),

CONTACTCARDACCOUNTHOLDER(String.valueOf("ContactCardAccountHolder")),

ERROR(String.valueOf("Error")),

NOCHANGE(String.valueOf("NoChange"));

private static final Logger LOG = Logger.getLogger(ResultEnum.class.getName());

private String value;

ResultEnum(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static ResultEnum fromValue(String value) {
for (ResultEnum b : ResultEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"ResultEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(ResultEnum.values()));

Check warning on line 78 in src/main/java/com/adyen/model/checkout/CheckoutForwardAccountUpdateResult.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Invoke method(s) only conditionally. Use the built-in formatting to construct this argument.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-java-api-library&issues=AaDnH4vze96Vtai5KCfj&open=AaDnH4vze96Vtai5KCfj&pullRequest=2073
return null;
}
}

public static final String JSON_PROPERTY_RESULT = "result";
private ResultEnum result;

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

/**
* Sets whether attributes with null values should be explicitly included in the JSON payload.
* Default is false.
*/
@JsonIgnore private boolean includeNullValues = false;

public CheckoutForwardAccountUpdateResult() {}

Check failure on line 95 in src/main/java/com/adyen/model/checkout/CheckoutForwardAccountUpdateResult.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-java-api-library&issues=AaDnH4vze96Vtai5KCfk&open=AaDnH4vze96Vtai5KCfk&pullRequest=2073

/**
* The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
*
* @param result The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
* @return the current {@code CheckoutForwardAccountUpdateResult} instance, allowing for method
* chaining
*/
public CheckoutForwardAccountUpdateResult result(ResultEnum result) {
this.result = result;
isSetResult = true; // mark as set
return this;
}

/**
* The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
*
* @return result The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
*/
@JsonProperty(JSON_PROPERTY_RESULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ResultEnum getResult() {
return result;
}

/**
* The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
*
* @param result The result of the [Real Time Account
* Updater](https://docs.adyen.com/online-payments/account-updater/real-time-account-updater).
* Possible values: * NoChange * CardChanged * CardExpiryChanged * CloseAccount *
* ContactCardAccountHolder * Error
*/
@JsonProperty(JSON_PROPERTY_RESULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setResult(ResultEnum result) {
this.result = result;
isSetResult = true; // mark as set
}

/**
* Configures whether null values are explicitly serialized in the JSON payload. Default is false.
*/
public CheckoutForwardAccountUpdateResult includeNullValues(boolean includeNullValues) {
this.includeNullValues = includeNullValues;
return this;
}

/** Returns whether null values are explicitly serialized in the JSON payload. */
public boolean isIncludeNullValues() {
return includeNullValues;
}

/**
* Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
*/
public void setIncludeNullValues(boolean includeNullValues) {
this.includeNullValues = includeNullValues;
}

/** Return true if this CheckoutForwardAccountUpdateResult object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CheckoutForwardAccountUpdateResult checkoutForwardAccountUpdateResult =
(CheckoutForwardAccountUpdateResult) o;
return Objects.equals(this.result, checkoutForwardAccountUpdateResult.result)
&& Objects.equals(this.isSetResult, checkoutForwardAccountUpdateResult.isSetResult);
}

@Override
public int hashCode() {
return Objects.hash(result, isSetResult);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckoutForwardAccountUpdateResult {\n");
sb.append(" result: ").append(toIndentedString(result)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

/** Returns a map of properties to be merged into the JSON payload as explicit null values. */
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonAnyGetter
public Map<String, Object> getExplicitNulls() {
if (!this.includeNullValues) {
return Collections.emptyMap();
}

Map<String, Object> nulls = new HashMap<>();

if (isSetResult) {
addIfNull(nulls, JSON_PROPERTY_RESULT, this.result);
}

return nulls;
}

// add to map when value is null
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}

/**
* Create an instance of CheckoutForwardAccountUpdateResult given an JSON string
*
* @param jsonString JSON string
* @return An instance of CheckoutForwardAccountUpdateResult
* @throws JsonProcessingException if the JSON string is invalid with respect to
* CheckoutForwardAccountUpdateResult
*/
public static CheckoutForwardAccountUpdateResult fromJson(String jsonString)
throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, CheckoutForwardAccountUpdateResult.class);
}

/**
* Convert an instance of CheckoutForwardAccountUpdateResult to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
Loading
Loading