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-04-10T08:24:56Z",
"openapiCommitSha": "aa5556ef9586980ba6c319d0750fb38d7bbda09b",
"automationCommitSha": "855b6c5526cb5fae757e921687c38df66d31dc4b",
"libraryCommitSha": "334bfa6a6af849c76a7a28c45a36a692ab0274c3"
"generatedAt": "2026-05-14T14:22:16Z",
"openapiCommitSha": "cbc5406a2df1f24d50e40742f18342f7ca7f21fc",
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
"libraryCommitSha": "5790580db2f8a931a68baba2bff9760b8aed2067"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,304 @@
/*
* 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;

/** FundingInstrument */
@JsonPropertyOrder({
FundingInstrument.JSON_PROPERTY_CARD_IDENTIFICATION,
FundingInstrument.JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE,
FundingInstrument.JSON_PROPERTY_REFERENCE,
FundingInstrument.JSON_PROPERTY_SOURCE_OF_FUNDS
})
public class FundingInstrument {
public static final String JSON_PROPERTY_CARD_IDENTIFICATION = "cardIdentification";
private CardIdentification cardIdentification;

public static final String JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE = "networkPaymentReference";
private String networkPaymentReference;

public static final String JSON_PROPERTY_REFERENCE = "reference";
private String reference;

/**
* Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT**
* for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
*/
public enum SourceOfFundsEnum {
DEBIT(String.valueOf("DEBIT")),

DEPOSIT_ACCOUNT(String.valueOf("DEPOSIT_ACCOUNT"));

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

private String value;

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

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

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

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

public static final String JSON_PROPERTY_SOURCE_OF_FUNDS = "sourceOfFunds";
private SourceOfFundsEnum sourceOfFunds;

public FundingInstrument() {}

/**
* cardIdentification
*
* @param cardIdentification
* @return the current {@code FundingInstrument} instance, allowing for method chaining
*/
public FundingInstrument cardIdentification(CardIdentification cardIdentification) {
this.cardIdentification = cardIdentification;
return this;
}

/**
* Get cardIdentification
*
* @return cardIdentification
*/
@JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CardIdentification getCardIdentification() {
return cardIdentification;
}

/**
* cardIdentification
*
* @param cardIdentification
*/
@JsonProperty(JSON_PROPERTY_CARD_IDENTIFICATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCardIdentification(CardIdentification cardIdentification) {
this.cardIdentification = cardIdentification;
}

/**
* The unique reference assigned by the card network for the pay-in transaction.
*
* @param networkPaymentReference The unique reference assigned by the card network for the pay-in
* transaction.
* @return the current {@code FundingInstrument} instance, allowing for method chaining
*/
public FundingInstrument networkPaymentReference(String networkPaymentReference) {
this.networkPaymentReference = networkPaymentReference;
return this;
}

/**
* The unique reference assigned by the card network for the pay-in transaction.
*
* @return networkPaymentReference The unique reference assigned by the card network for the
* pay-in transaction.
*/
@JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNetworkPaymentReference() {
return networkPaymentReference;
}

/**
* The unique reference assigned by the card network for the pay-in transaction.
*
* @param networkPaymentReference The unique reference assigned by the card network for the pay-in
* transaction.
*/
@JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNetworkPaymentReference(String networkPaymentReference) {
this.networkPaymentReference = networkPaymentReference;
}

/**
* Your internal reference that identifies this funding instrument. Required if
* `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
*
* @param reference Your internal reference that identifies this funding instrument. Required if
* `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
* @return the current {@code FundingInstrument} instance, allowing for method chaining
*/
public FundingInstrument reference(String reference) {
this.reference = reference;
return this;
}

/**
* Your internal reference that identifies this funding instrument. Required if
* `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
*
* @return reference Your internal reference that identifies this funding instrument. Required if
* `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
*/
@JsonProperty(JSON_PROPERTY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getReference() {
return reference;
}

/**
* Your internal reference that identifies this funding instrument. Required if
* `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
*
* @param reference Your internal reference that identifies this funding instrument. Required if
* `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
*/
@JsonProperty(JSON_PROPERTY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReference(String reference) {
this.reference = reference;
}

/**
* Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT**
* for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
*
* @param sourceOfFunds Indicates where the funds used for the transfer originated. Possible
* values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for
* wallet-to-card transfers.
* @return the current {@code FundingInstrument} instance, allowing for method chaining
*/
public FundingInstrument sourceOfFunds(SourceOfFundsEnum sourceOfFunds) {
this.sourceOfFunds = sourceOfFunds;
return this;
}

/**
* Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT**
* for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
*
* @return sourceOfFunds Indicates where the funds used for the transfer originated. Possible
* values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for
* wallet-to-card transfers.
*/
@JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SourceOfFundsEnum getSourceOfFunds() {
return sourceOfFunds;
}

/**
* Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT**
* for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
*
* @param sourceOfFunds Indicates where the funds used for the transfer originated. Possible
* values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for
* wallet-to-card transfers.
*/
@JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSourceOfFunds(SourceOfFundsEnum sourceOfFunds) {
this.sourceOfFunds = sourceOfFunds;
}

/** Return true if this FundingInstrument object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FundingInstrument fundingInstrument = (FundingInstrument) o;
return Objects.equals(this.cardIdentification, fundingInstrument.cardIdentification)
&& Objects.equals(this.networkPaymentReference, fundingInstrument.networkPaymentReference)
&& Objects.equals(this.reference, fundingInstrument.reference)
&& Objects.equals(this.sourceOfFunds, fundingInstrument.sourceOfFunds);
}

@Override
public int hashCode() {
return Objects.hash(cardIdentification, networkPaymentReference, reference, sourceOfFunds);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FundingInstrument {\n");
sb.append(" cardIdentification: ").append(toIndentedString(cardIdentification)).append("\n");
sb.append(" networkPaymentReference: ")
.append(toIndentedString(networkPaymentReference))
.append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" sourceOfFunds: ").append(toIndentedString(sourceOfFunds)).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 FundingInstrument given an JSON string
*
* @param jsonString JSON string
* @return An instance of FundingInstrument
* @throws JsonProcessingException if the JSON string is invalid with respect to FundingInstrument
*/
public static FundingInstrument fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, FundingInstrument.class);
}

/**
* Convert an instance of FundingInstrument to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@

/** IbanAccountIdentification */
@JsonPropertyOrder({
IbanAccountIdentification.JSON_PROPERTY_BIC,
IbanAccountIdentification.JSON_PROPERTY_IBAN,
IbanAccountIdentification.JSON_PROPERTY_TYPE
})
public class IbanAccountIdentification {
public static final String JSON_PROPERTY_BIC = "bic";
private String bic;

public static final String JSON_PROPERTY_IBAN = "iban";
private String iban;

Expand Down Expand Up @@ -74,6 +78,39 @@ public static TypeEnum fromValue(String value) {

public IbanAccountIdentification() {}

/**
* The bank's 8- or 11-character BIC or SWIFT code.
*
* @param bic The bank's 8- or 11-character BIC or SWIFT code.
* @return the current {@code IbanAccountIdentification} instance, allowing for method chaining
*/
public IbanAccountIdentification bic(String bic) {
this.bic = bic;
return this;
}

/**
* The bank's 8- or 11-character BIC or SWIFT code.
*
* @return bic The bank's 8- or 11-character BIC or SWIFT code.
*/
@JsonProperty(JSON_PROPERTY_BIC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBic() {
return bic;
}

/**
* The bank's 8- or 11-character BIC or SWIFT code.
*
* @param bic The bank's 8- or 11-character BIC or SWIFT code.
*/
@JsonProperty(JSON_PROPERTY_BIC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBic(String bic) {
this.bic = bic;
}

/**
* The international bank account number as defined in the
* [ISO-13616](https://www.iso.org/standard/81090.html) standard.
Expand Down Expand Up @@ -156,19 +193,21 @@ public boolean equals(Object o) {
return false;
}
IbanAccountIdentification ibanAccountIdentification = (IbanAccountIdentification) o;
return Objects.equals(this.iban, ibanAccountIdentification.iban)
return Objects.equals(this.bic, ibanAccountIdentification.bic)
&& Objects.equals(this.iban, ibanAccountIdentification.iban)
&& Objects.equals(this.type, ibanAccountIdentification.type);
}

@Override
public int hashCode() {
return Objects.hash(iban, type);
return Objects.hash(bic, iban, type);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IbanAccountIdentification {\n");
sb.append(" bic: ").append(toIndentedString(bic)).append("\n");
sb.append(" iban: ").append(toIndentedString(iban)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
Expand Down
Loading
Loading