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
44 changes: 0 additions & 44 deletions src/main/java/com/adyen/model/balanceplatform/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
Balance.JSON_PROPERTY_BALANCE,
Balance.JSON_PROPERTY_CURRENCY,
Balance.JSON_PROPERTY_PENDING,
Balance.JSON_PROPERTY_PENDING_AVAILABLE,
Balance.JSON_PROPERTY_RESERVED
})
public class Balance {
Expand Down Expand Up @@ -53,12 +52,6 @@ public class Balance {
/** Mark when the attribute has been explicitly set. */
private boolean isSetPending = false;

public static final String JSON_PROPERTY_PENDING_AVAILABLE = "pendingAvailable";
private Long pendingAvailable;

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

public static final String JSON_PROPERTY_RESERVED = "reserved";
private Long reserved;

Expand Down Expand Up @@ -219,35 +212,6 @@ public void setPending(Long pending) {
isSetPending = true; // mark as set
}

/**
* @param pendingAvailable
* @return the current {@code Balance} instance, allowing for method chaining
*/
public Balance pendingAvailable(Long pendingAvailable) {
this.pendingAvailable = pendingAvailable;
isSetPendingAvailable = true; // mark as set
return this;
}

/**
* @return pendingAvailable
*/
@JsonProperty(JSON_PROPERTY_PENDING_AVAILABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getPendingAvailable() {
return pendingAvailable;
}

/**
* @param pendingAvailable
*/
@JsonProperty(JSON_PROPERTY_PENDING_AVAILABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPendingAvailable(Long pendingAvailable) {
this.pendingAvailable = pendingAvailable;
isSetPendingAvailable = true; // mark as set
}

/**
* The balance currently held in reserve.
*
Expand Down Expand Up @@ -321,8 +285,6 @@ public boolean equals(Object o) {
&& Objects.equals(this.isSetCurrency, balance.isSetCurrency)
&& Objects.equals(this.pending, balance.pending)
&& Objects.equals(this.isSetPending, balance.isSetPending)
&& Objects.equals(this.pendingAvailable, balance.pendingAvailable)
&& Objects.equals(this.isSetPendingAvailable, balance.isSetPendingAvailable)
&& Objects.equals(this.reserved, balance.reserved)
&& Objects.equals(this.isSetReserved, balance.isSetReserved);
}
Expand All @@ -338,8 +300,6 @@ public int hashCode() {
isSetCurrency,
pending,
isSetPending,
pendingAvailable,
isSetPendingAvailable,
reserved,
isSetReserved);
}
Expand All @@ -352,7 +312,6 @@ public String toString() {
sb.append(" balance: ").append(toIndentedString(balance)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" pending: ").append(toIndentedString(pending)).append("\n");
sb.append(" pendingAvailable: ").append(toIndentedString(pendingAvailable)).append("\n");
sb.append(" reserved: ").append(toIndentedString(reserved)).append("\n");
sb.append("}");
return sb.toString();
Expand Down Expand Up @@ -390,9 +349,6 @@ public Map<String, Object> getExplicitNulls() {
if (isSetPending) {
addIfNull(nulls, JSON_PROPERTY_PENDING, this.pending);
}
if (isSetPendingAvailable) {
addIfNull(nulls, JSON_PROPERTY_PENDING_AVAILABLE, this.pendingAvailable);
}
if (isSetReserved) {
addIfNull(nulls, JSON_PROPERTY_RESERVED, this.reserved);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,8 @@ public enum ReasonEnum {

AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")),

APPROVALEXPIRED(String.valueOf("approvalExpired")),

APPROVED(String.valueOf("approved")),

BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(
String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")),

COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")),

COUNTERPARTYACCOUNTCLOSED(String.valueOf("counterpartyAccountClosed")),
Expand All @@ -198,32 +193,16 @@ public enum ReasonEnum {

COUNTERPARTYBANKUNAVAILABLE(String.valueOf("counterpartyBankUnavailable")),

DECLINED(String.valueOf("declined")),

DECLINEDBYTRANSACTIONRULE(String.valueOf("declinedByTransactionRule")),

DIRECTDEBITNOTSUPPORTED(String.valueOf("directDebitNotSupported")),

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

NOTENOUGHBALANCE(String.valueOf("notEnoughBalance")),

PENDING(String.valueOf("pending")),

PENDINGAPPROVAL(String.valueOf("pendingApproval")),

PENDINGEXECUTION(String.valueOf("pendingExecution")),

REFUSEDBYCOUNTERPARTYBANK(String.valueOf("refusedByCounterpartyBank")),

REFUSEDBYCUSTOMER(String.valueOf("refusedByCustomer")),

ROUTENOTFOUND(String.valueOf("routeNotFound")),

SCAFAILED(String.valueOf("scaFailed")),

SCHEMEADVICE(String.valueOf("schemeAdvice")),

TRANSFERINSTRUMENTDOESNOTEXIST(String.valueOf("transferInstrumentDoesNotExist")),

UNKNOWN(String.valueOf("unknown"));
Expand Down
57 changes: 54 additions & 3 deletions src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
import java.util.*;

/** DeviceInfo */
@JsonPropertyOrder({DeviceInfo.JSON_PROPERTY_FORM_FACTOR, DeviceInfo.JSON_PROPERTY_OS_NAME})
@JsonPropertyOrder({
DeviceInfo.JSON_PROPERTY_FORM_FACTOR,
DeviceInfo.JSON_PROPERTY_OS_NAME,
DeviceInfo.JSON_PROPERTY_PHONE
})
public class DeviceInfo {
public static final String JSON_PROPERTY_FORM_FACTOR = "formFactor";
private String formFactor;
Expand All @@ -34,6 +38,12 @@ public class DeviceInfo {
/** Mark when the attribute has been explicitly set. */
private boolean isSetOsName = false;

public static final String JSON_PROPERTY_PHONE = "phone";
private PhoneInfo phone;

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

/**
* Sets whether attributes with null values should be explicitly included in the JSON payload.
* Default is false.
Expand Down Expand Up @@ -112,6 +122,41 @@ public void setOsName(String osName) {
isSetOsName = true; // mark as set
}

/**
* phone
*
* @param phone
* @return the current {@code DeviceInfo} instance, allowing for method chaining
*/
public DeviceInfo phone(PhoneInfo phone) {
this.phone = phone;
isSetPhone = true; // mark as set
return this;
}

/**
* Get phone
*
* @return phone
*/
@JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PhoneInfo getPhone() {
return phone;
}

/**
* phone
*
* @param phone
*/
@JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPhone(PhoneInfo phone) {
this.phone = phone;
isSetPhone = true; // mark as set
}

/**
* Configures whether null values are explicitly serialized in the JSON payload. Default is false.
*/
Expand Down Expand Up @@ -145,12 +190,14 @@ public boolean equals(Object o) {
return Objects.equals(this.formFactor, deviceInfo.formFactor)
&& Objects.equals(this.isSetFormFactor, deviceInfo.isSetFormFactor)
&& Objects.equals(this.osName, deviceInfo.osName)
&& Objects.equals(this.isSetOsName, deviceInfo.isSetOsName);
&& Objects.equals(this.isSetOsName, deviceInfo.isSetOsName)
&& Objects.equals(this.phone, deviceInfo.phone)
&& Objects.equals(this.isSetPhone, deviceInfo.isSetPhone);
}

@Override
public int hashCode() {
return Objects.hash(formFactor, isSetFormFactor, osName, isSetOsName);
return Objects.hash(formFactor, isSetFormFactor, osName, isSetOsName, phone, isSetPhone);
}

@Override
Expand All @@ -159,6 +206,7 @@ public String toString() {
sb.append("class DeviceInfo {\n");
sb.append(" formFactor: ").append(toIndentedString(formFactor)).append("\n");
sb.append(" osName: ").append(toIndentedString(osName)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -189,6 +237,9 @@ public Map<String, Object> getExplicitNulls() {
if (isSetOsName) {
addIfNull(nulls, JSON_PROPERTY_OS_NAME, this.osName);
}
if (isSetPhone) {
addIfNull(nulls, JSON_PROPERTY_PHONE, this.phone);
}

return nulls;
}
Expand Down
Loading