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/transferwebhooks.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"service": "transferwebhooks",
"project": "java",
"generatedAt": "2026-06-01T09:45:24Z",
"openapiCommitSha": "c0822241f611e20376f72b279f2b3e67dea27a43",
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
"libraryCommitSha": "b2ec3b93864e9e4a5548fa7e77fccd50da77ec2f"
"generatedAt": "2026-07-16T07:19:10Z",
"openapiCommitSha": "8ca5e35a2df8646fbed1793daeba735ebfcb821b",
"automationCommitSha": "a7fa5d57782b5065affe714e9d9caaf5009a1e24",
"libraryCommitSha": "503dcc66e435ded29884875f6a5bda4590cecb95"
}
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,42 @@ public BankAccountV3AccountIdentification(USLocalAccountIdentification o) {
schemas.put("USLocalAccountIdentification", new GenericType<USLocalAccountIdentification>() {});
JSON.registerDescendants(
BankAccountV3AccountIdentification.class, Collections.unmodifiableMap(schemas));
// Initialize and register the discriminator mappings.
Map<String, Class<?>> mappings = new HashMap<>();
mappings.put("auLocal", AULocalAccountIdentification.class);
mappings.put("brLocal", BRLocalAccountIdentification.class);
mappings.put("caLocal", CALocalAccountIdentification.class);
mappings.put("czLocal", CZLocalAccountIdentification.class);
mappings.put("dkLocal", DKLocalAccountIdentification.class);
mappings.put("hkLocal", HKLocalAccountIdentification.class);
mappings.put("huLocal", HULocalAccountIdentification.class);
mappings.put("iban", IbanAccountIdentification.class);
mappings.put("noLocal", NOLocalAccountIdentification.class);
mappings.put("numberAndBic", NumberAndBicAccountIdentification.class);
mappings.put("nzLocal", NZLocalAccountIdentification.class);
mappings.put("plLocal", PLLocalAccountIdentification.class);
mappings.put("seLocal", SELocalAccountIdentification.class);
mappings.put("sgLocal", SGLocalAccountIdentification.class);
mappings.put("ukLocal", UKLocalAccountIdentification.class);
mappings.put("usLocal", USLocalAccountIdentification.class);
mappings.put("AULocalAccountIdentification", AULocalAccountIdentification.class);
mappings.put("BRLocalAccountIdentification", BRLocalAccountIdentification.class);
mappings.put("CALocalAccountIdentification", CALocalAccountIdentification.class);
mappings.put("CZLocalAccountIdentification", CZLocalAccountIdentification.class);
mappings.put("DKLocalAccountIdentification", DKLocalAccountIdentification.class);
mappings.put("HKLocalAccountIdentification", HKLocalAccountIdentification.class);
mappings.put("HULocalAccountIdentification", HULocalAccountIdentification.class);
mappings.put("IbanAccountIdentification", IbanAccountIdentification.class);
mappings.put("NOLocalAccountIdentification", NOLocalAccountIdentification.class);
mappings.put("NZLocalAccountIdentification", NZLocalAccountIdentification.class);
mappings.put("NumberAndBicAccountIdentification", NumberAndBicAccountIdentification.class);
mappings.put("PLLocalAccountIdentification", PLLocalAccountIdentification.class);
mappings.put("SELocalAccountIdentification", SELocalAccountIdentification.class);
mappings.put("SGLocalAccountIdentification", SGLocalAccountIdentification.class);
mappings.put("UKLocalAccountIdentification", UKLocalAccountIdentification.class);
mappings.put("USLocalAccountIdentification", USLocalAccountIdentification.class);
mappings.put("BankAccountV3_accountIdentification", BankAccountV3AccountIdentification.class);
JSON.registerDiscriminator(BankAccountV3AccountIdentification.class, "type", mappings);
}

@Override
Expand Down
258 changes: 258 additions & 0 deletions src/main/java/com/adyen/model/transferwebhooks/NetworkReason.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
/*
* Transfer webhooks
*
* The version of the OpenAPI document: 4
*
*
* 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.transferwebhooks;

import com.fasterxml.jackson.annotation.JsonCreator;
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;

/** NetworkReason */
@JsonPropertyOrder({
NetworkReason.JSON_PROPERTY_CODE,
NetworkReason.JSON_PROPERTY_DESCRIPTION,
NetworkReason.JSON_PROPERTY_NAMESPACE
})
public class NetworkReason {
public static final String JSON_PROPERTY_CODE = "code";
private String code;

public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;

/**
* The namespace that corresponds to the reason code. Possible values: * **ukFpsRejectionCode** *
* **ukFpsReturnReasonCode** * **usAchReturnReasonCode** * **iso8583ResponseCode**
*/
public enum NamespaceEnum {
ISO8583RESPONSECODE(String.valueOf("iso8583ResponseCode")),

UKFPSREJECTIONCODE(String.valueOf("ukFpsRejectionCode")),

UKFPSRETURNREASONCODE(String.valueOf("ukFpsReturnReasonCode")),

USACHRETURNREASONCODE(String.valueOf("usAchReturnReasonCode"));

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

private String value;

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

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

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

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

Check warning on line 80 in src/main/java/com/adyen/model/transferwebhooks/NetworkReason.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=AZ9a4TqGHhV2CayPE-cA&open=AZ9a4TqGHhV2CayPE-cA&pullRequest=1984
return null;
}
}

public static final String JSON_PROPERTY_NAMESPACE = "namespace";
private NamespaceEnum namespace;

public NetworkReason() {}

Check failure on line 88 in src/main/java/com/adyen/model/transferwebhooks/NetworkReason.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=AZ9a4TqGHhV2CayPE-cB&open=AZ9a4TqGHhV2CayPE-cB&pullRequest=1984

/**
* The reason code provided by the network.
*
* @param code The reason code provided by the network.
* @return the current {@code NetworkReason} instance, allowing for method chaining
*/
public NetworkReason code(String code) {
this.code = code;
return this;
}

/**
* The reason code provided by the network.
*
* @return code The reason code provided by the network.
*/
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCode() {
return code;
}

/**
* The reason code provided by the network.
*
* @param code The reason code provided by the network.
*/
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCode(String code) {
this.code = code;
}

/**
* The description of the reason code.
*
* @param description The description of the reason code.
* @return the current {@code NetworkReason} instance, allowing for method chaining
*/
public NetworkReason description(String description) {
this.description = description;
return this;
}

/**
* The description of the reason code.
*
* @return description The description of the reason code.
*/
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}

/**
* The description of the reason code.
*
* @param description The description of the reason code.
*/
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}

/**
* The namespace that corresponds to the reason code. Possible values: * **ukFpsRejectionCode** *
* **ukFpsReturnReasonCode** * **usAchReturnReasonCode** * **iso8583ResponseCode**
*
* @param namespace The namespace that corresponds to the reason code. Possible values: *
* **ukFpsRejectionCode** * **ukFpsReturnReasonCode** * **usAchReturnReasonCode** *
* **iso8583ResponseCode**
* @return the current {@code NetworkReason} instance, allowing for method chaining
*/
public NetworkReason namespace(NamespaceEnum namespace) {
this.namespace = namespace;
return this;
}

/**
* The namespace that corresponds to the reason code. Possible values: * **ukFpsRejectionCode** *
* **ukFpsReturnReasonCode** * **usAchReturnReasonCode** * **iso8583ResponseCode**
*
* @return namespace The namespace that corresponds to the reason code. Possible values: *
* **ukFpsRejectionCode** * **ukFpsReturnReasonCode** * **usAchReturnReasonCode** *
* **iso8583ResponseCode**
*/
@JsonProperty(JSON_PROPERTY_NAMESPACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public NamespaceEnum getNamespace() {
return namespace;
}

/**
* The namespace that corresponds to the reason code. Possible values: * **ukFpsRejectionCode** *
* **ukFpsReturnReasonCode** * **usAchReturnReasonCode** * **iso8583ResponseCode**
*
* @param namespace The namespace that corresponds to the reason code. Possible values: *
* **ukFpsRejectionCode** * **ukFpsReturnReasonCode** * **usAchReturnReasonCode** *
* **iso8583ResponseCode**
*/
@JsonProperty(JSON_PROPERTY_NAMESPACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNamespace(NamespaceEnum namespace) {
this.namespace = namespace;
}

/** Return true if this NetworkReason object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NetworkReason networkReason = (NetworkReason) o;
return Objects.equals(this.code, networkReason.code)
&& Objects.equals(this.description, networkReason.description)
&& Objects.equals(this.namespace, networkReason.namespace);
}

@Override
public int hashCode() {
return Objects.hash(code, description, namespace);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NetworkReason {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" namespace: ").append(toIndentedString(namespace)).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 ");
}

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

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