Skip to content

Commit

Permalink
[create-pull-request] automated change (#1099)
Browse files Browse the repository at this point in the history
Co-authored-by: jillingk <[email protected]>
  • Loading branch information
AdyenAutomationBot and jillingk authored Sep 18, 2023
1 parent f30241b commit ae6a047
Show file tree
Hide file tree
Showing 26 changed files with 2,745 additions and 1,113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
AccountHolder.JSON_PROPERTY_ID,
AccountHolder.JSON_PROPERTY_LEGAL_ENTITY_ID,
AccountHolder.JSON_PROPERTY_METADATA,
AccountHolder.JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE,
AccountHolder.JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT,
AccountHolder.JSON_PROPERTY_REFERENCE,
AccountHolder.JSON_PROPERTY_STATUS,
Expand Down Expand Up @@ -71,6 +72,9 @@ public class AccountHolder {
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map<String, String> metadata = null;

public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode";
private String migratedAccountHolderCode;

public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT = "primaryBalanceAccount";
private String primaryBalanceAccount;

Expand Down Expand Up @@ -297,10 +301,10 @@ public AccountHolder putMetadataItem(String key, String metadataItem) {
}

/**
* A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
* A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
* @return metadata
**/
@ApiModelProperty(value = "A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
@ApiModelProperty(value = "A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.")
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand All @@ -316,6 +320,31 @@ public void setMetadata(Map<String, String> metadata) {
}


public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode) {
this.migratedAccountHolderCode = migratedAccountHolderCode;
return this;
}

/**
* The unique identifier of the migrated account holder in the classic integration.
* @return migratedAccountHolderCode
**/
@ApiModelProperty(value = "The unique identifier of the migrated account holder in the classic integration.")
@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getMigratedAccountHolderCode() {
return migratedAccountHolderCode;
}


@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMigratedAccountHolderCode(String migratedAccountHolderCode) {
this.migratedAccountHolderCode = migratedAccountHolderCode;
}


public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) {
this.primaryBalanceAccount = primaryBalanceAccount;
return this;
Expand Down Expand Up @@ -435,6 +464,7 @@ public boolean equals(Object o) {
Objects.equals(this.id, accountHolder.id) &&
Objects.equals(this.legalEntityId, accountHolder.legalEntityId) &&
Objects.equals(this.metadata, accountHolder.metadata) &&
Objects.equals(this.migratedAccountHolderCode, accountHolder.migratedAccountHolderCode) &&
Objects.equals(this.primaryBalanceAccount, accountHolder.primaryBalanceAccount) &&
Objects.equals(this.reference, accountHolder.reference) &&
Objects.equals(this.status, accountHolder.status) &&
Expand All @@ -443,7 +473,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, primaryBalanceAccount, reference, status, timeZone);
return Objects.hash(balancePlatform, capabilities, contactDetails, description, id, legalEntityId, metadata, migratedAccountHolderCode, primaryBalanceAccount, reference, status, timeZone);
}

@Override
Expand All @@ -457,6 +487,7 @@ public String toString() {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" migratedAccountHolderCode: ").append(toIndentedString(migratedAccountHolderCode)).append("\n");
sb.append(" primaryBalanceAccount: ").append(toIndentedString(primaryBalanceAccount)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.configurationwebhooks.AccountSupportingEntityCapability;
import com.adyen.model.configurationwebhooks.CapabilityProblem;
import com.adyen.model.configurationwebhooks.CapabilitySettings;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -100,7 +101,7 @@ public static AllowedLevelEnum fromValue(String value) {
private Boolean enabled;

public static final String JSON_PROPERTY_PROBLEMS = "problems";
private List<Object> problems = null;
private List<CapabilityProblem> problems = null;

public static final String JSON_PROPERTY_REQUESTED = "requested";
private Boolean requested;
Expand Down Expand Up @@ -298,12 +299,12 @@ public void setEnabled(Boolean enabled) {
}


public AccountHolderCapability problems(List<Object> problems) {
public AccountHolderCapability problems(List<CapabilityProblem> problems) {
this.problems = problems;
return this;
}

public AccountHolderCapability addProblemsItem(Object problemsItem) {
public AccountHolderCapability addProblemsItem(CapabilityProblem problemsItem) {
if (this.problems == null) {
this.problems = new ArrayList<>();
}
Expand All @@ -319,14 +320,14 @@ public AccountHolderCapability addProblemsItem(Object problemsItem) {
@JsonProperty(JSON_PROPERTY_PROBLEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<Object> getProblems() {
public List<CapabilityProblem> getProblems() {
return problems;
}


@JsonProperty(JSON_PROPERTY_PROBLEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProblems(List<Object> problems) {
public void setProblems(List<CapabilityProblem> problems) {
this.problems = problems;
}

Expand Down
33 changes: 32 additions & 1 deletion src/main/java/com/adyen/model/configurationwebhooks/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
Balance.JSON_PROPERTY_AVAILABLE,
Balance.JSON_PROPERTY_BALANCE,
Balance.JSON_PROPERTY_CURRENCY,
Balance.JSON_PROPERTY_PENDING,
Balance.JSON_PROPERTY_RESERVED
})

Expand All @@ -47,6 +48,9 @@ public class Balance {
public static final String JSON_PROPERTY_CURRENCY = "currency";
private String currency;

public static final String JSON_PROPERTY_PENDING = "pending";
private Long pending;

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

Expand Down Expand Up @@ -128,6 +132,31 @@ public void setCurrency(String currency) {
}


public Balance pending(Long pending) {
this.pending = pending;
return this;
}

/**
* The amount pending to be paid out but not yet available in the balance.
* @return pending
**/
@ApiModelProperty(value = "The amount pending to be paid out but not yet available in the balance.")
@JsonProperty(JSON_PROPERTY_PENDING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Long getPending() {
return pending;
}


@JsonProperty(JSON_PROPERTY_PENDING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPending(Long pending) {
this.pending = pending;
}


public Balance reserved(Long reserved) {
this.reserved = reserved;
return this;
Expand Down Expand Up @@ -168,12 +197,13 @@ public boolean equals(Object o) {
return Objects.equals(this.available, balance.available) &&
Objects.equals(this.balance, balance.balance) &&
Objects.equals(this.currency, balance.currency) &&
Objects.equals(this.pending, balance.pending) &&
Objects.equals(this.reserved, balance.reserved);
}

@Override
public int hashCode() {
return Objects.hash(available, balance, currency, reserved);
return Objects.hash(available, balance, currency, pending, reserved);
}

@Override
Expand All @@ -183,6 +213,7 @@ public String toString() {
sb.append(" available: ").append(toIndentedString(available)).append("\n");
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(" reserved: ").append(toIndentedString(reserved)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Loading

0 comments on commit ae6a047

Please sign in to comment.