diff --git a/sdk-generation-log/configurationwebhooks.json b/sdk-generation-log/configurationwebhooks.json index 01b4545ab..e9d72b807 100644 --- a/sdk-generation-log/configurationwebhooks.json +++ b/sdk-generation-log/configurationwebhooks.json @@ -1,8 +1,8 @@ { "service": "configurationwebhooks", "project": "java", - "generatedAt": "2026-05-19T12:23:29Z", - "openapiCommitSha": "75b5618c8524d3adf4c19c365400d017320c85e0", + "generatedAt": "2026-06-02T15:30:09Z", + "openapiCommitSha": "f3894fd6b47d9076841b04852378251de3bba2de", "automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284", - "libraryCommitSha": "b155c3941b7c46a0682b3e5aa205136e7e73308a" + "libraryCommitSha": "9539e092f2160ca341916c804f01f0f699a64415" } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java index 6f9b28e06..146ff6ffb 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java @@ -23,6 +23,7 @@ Balance.JSON_PROPERTY_BALANCE, Balance.JSON_PROPERTY_CURRENCY, Balance.JSON_PROPERTY_PENDING, + Balance.JSON_PROPERTY_PENDING_AVAILABLE, Balance.JSON_PROPERTY_RESERVED }) public class Balance { @@ -38,6 +39,9 @@ public class Balance { public static final String JSON_PROPERTY_PENDING = "pending"; private Long pending; + public static final String JSON_PROPERTY_PENDING_AVAILABLE = "pendingAvailable"; + private Long pendingAvailable; + public static final String JSON_PROPERTY_RESERVED = "reserved"; private Long reserved; @@ -181,6 +185,54 @@ public void setPending(Long pending) { this.pending = pending; } + /** + * The balance that will become the available balance after the pending balance is settled. The + * pending available balance is equal to the lower of the following: - The `pending` + * balance - The `pending` balance plus the `available` balance. + * + * @param pendingAvailable The balance that will become the available balance after the pending + * balance is settled. The pending available balance is equal to the lower of the following: - + * The `pending` balance - The `pending` balance plus the + * `available` balance. + * @return the current {@code Balance} instance, allowing for method chaining + */ + public Balance pendingAvailable(Long pendingAvailable) { + this.pendingAvailable = pendingAvailable; + return this; + } + + /** + * The balance that will become the available balance after the pending balance is settled. The + * pending available balance is equal to the lower of the following: - The `pending` + * balance - The `pending` balance plus the `available` balance. + * + * @return pendingAvailable The balance that will become the available balance after the pending + * balance is settled. The pending available balance is equal to the lower of the following: - + * The `pending` balance - The `pending` balance plus the + * `available` balance. + */ + @JsonProperty(JSON_PROPERTY_PENDING_AVAILABLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPendingAvailable() { + return pendingAvailable; + } + + /** + * The balance that will become the available balance after the pending balance is settled. The + * pending available balance is equal to the lower of the following: - The `pending` + * balance - The `pending` balance plus the `available` balance. + * + * @param pendingAvailable The balance that will become the available balance after the pending + * balance is settled. The pending available balance is equal to the lower of the following: - + * The `pending` balance - The `pending` balance plus the + * `available` balance. + */ + @JsonProperty(JSON_PROPERTY_PENDING_AVAILABLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPendingAvailable(Long pendingAvailable) { + this.pendingAvailable = pendingAvailable; + } + /** * The balance currently held in reserve. * @@ -228,12 +280,13 @@ public boolean equals(Object o) { && Objects.equals(this.balance, balance.balance) && Objects.equals(this.currency, balance.currency) && Objects.equals(this.pending, balance.pending) + && Objects.equals(this.pendingAvailable, balance.pendingAvailable) && Objects.equals(this.reserved, balance.reserved); } @Override public int hashCode() { - return Objects.hash(available, balance, currency, pending, reserved); + return Objects.hash(available, balance, currency, pending, pendingAvailable, reserved); } @Override @@ -244,6 +297,7 @@ 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();