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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 5 additions & 15 deletions src/main/java/com/adyen/model/balanceplatform/AccountHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class AccountHolder {
private String reference;

/**
* The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive**: The account holder is temporarily inactive. You can set the account back to active or close it permanently. * **Suspended**: The account holder is permanently suspended by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated. This action cannot be undone.
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {
Expand Down Expand Up @@ -165,7 +165,6 @@ public AccountHolder balancePlatform(String balancePlatform) {
* The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.
* @return balancePlatform
**/

@ApiModelProperty(value = "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.")

public String getBalancePlatform() {
Expand Down Expand Up @@ -196,7 +195,6 @@ public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability cap
* Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
* @return capabilities
**/

@ApiModelProperty(value = "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.")

public Map<String, AccountHolderCapability> getCapabilities() {
Expand All @@ -219,7 +217,6 @@ public AccountHolder contactDetails(ContactDetails contactDetails) {
* Get contactDetails
* @return contactDetails
**/

@ApiModelProperty(value = "")

public ContactDetails getContactDetails() {
Expand All @@ -242,7 +239,6 @@ public AccountHolder description(String description) {
* Your description for the account holder, maximum 300 characters.
* @return description
**/

@ApiModelProperty(value = "Your description for the account holder, maximum 300 characters.")

public String getDescription() {
Expand All @@ -259,7 +255,6 @@ public void setDescription(String description) {
* The unique identifier of the account holder.
* @return id
**/

@ApiModelProperty(required = true, value = "The unique identifier of the account holder.")

public String getId() {
Expand All @@ -276,11 +271,10 @@ public AccountHolder legalEntityId(String legalEntityId) {
}

/**
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
* @return legalEntityId
**/

@ApiModelProperty(required = true, value = "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. ")
@ApiModelProperty(required = true, value = "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.")

public String getLegalEntityId() {
return legalEntityId;
Expand All @@ -302,7 +296,6 @@ public AccountHolder primaryBalanceAccount(String primaryBalanceAccount) {
* The ID of the account holder&#39;s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.
* @return primaryBalanceAccount
**/

@ApiModelProperty(value = "The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.")

public String getPrimaryBalanceAccount() {
Expand All @@ -325,7 +318,6 @@ public AccountHolder reference(String reference) {
* Your reference for the account holder, maximum 150 characters.
* @return reference
**/

@ApiModelProperty(value = "Your reference for the account holder, maximum 150 characters.")

public String getReference() {
Expand All @@ -345,11 +337,10 @@ public AccountHolder status(StatusEnum status) {
}

/**
* The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive**: The account holder is temporarily inactive. You can set the account back to active or close it permanently. * **Suspended**: The account holder is permanently suspended by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated. This action cannot be undone.
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
* @return status
**/

@ApiModelProperty(value = "The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive**: The account holder is temporarily inactive. You can set the account back to active or close it permanently. * **Suspended**: The account holder is permanently suspended by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated. This action cannot be undone.")
@ApiModelProperty(value = "The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.")

public StatusEnum getStatus() {
return status;
Expand All @@ -371,7 +362,6 @@ public AccountHolder timeZone(String timeZone) {
* The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
* @return timeZone
**/

@ApiModelProperty(value = "The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).")

public String getTimeZone() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import java.util.Objects;
import java.util.Arrays;
import com.adyen.model.balanceplatform.CapabilityProblem;
import com.adyen.model.balanceplatform.JSONObject;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
Expand Down Expand Up @@ -121,7 +120,7 @@ public AllowedLevelEnum read(final JsonReader jsonReader) throws IOException {

public static final String SERIALIZED_NAME_PROBLEMS = "problems";
@SerializedName(SERIALIZED_NAME_PROBLEMS)
private List<CapabilityProblem> problems = null;
private List<Object> problems = null;

public static final String SERIALIZED_NAME_REQUESTED = "requested";
@SerializedName(SERIALIZED_NAME_REQUESTED)
Expand Down Expand Up @@ -248,7 +247,7 @@ public AccountHolderCapability() {
public AccountHolderCapability(
Boolean allowed,
AllowedLevelEnum allowedLevel,
List<CapabilityProblem> problems,
List<Object> problems,
VerificationStatusEnum verificationStatus
) {
this();
Expand All @@ -262,7 +261,6 @@ public AccountHolderCapability(
* Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.
* @return allowed
**/

@ApiModelProperty(value = "Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.")

public Boolean getAllowed() {
Expand All @@ -276,7 +274,6 @@ public Boolean getAllowed() {
* The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.
* @return allowedLevel
**/

@ApiModelProperty(value = "The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.")

public AllowedLevelEnum getAllowedLevel() {
Expand All @@ -296,7 +293,6 @@ public AccountHolderCapability allowedSettings(JSONObject allowedSettings) {
* Get allowedSettings
* @return allowedSettings
**/

@ApiModelProperty(value = "")

public JSONObject getAllowedSettings() {
Expand All @@ -319,7 +315,6 @@ public AccountHolderCapability enabled(Boolean enabled) {
* Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.
* @return enabled
**/

@ApiModelProperty(value = "Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.")

public Boolean getEnabled() {
Expand All @@ -336,10 +331,9 @@ public void setEnabled(Boolean enabled) {
* Contains verification errors and the actions that you can take to resolve them.
* @return problems
**/

@ApiModelProperty(value = "Contains verification errors and the actions that you can take to resolve them.")

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

Expand All @@ -356,7 +350,6 @@ public AccountHolderCapability requested(Boolean requested) {
* Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the &#x60;allowed&#x60; field.
* @return requested
**/

@ApiModelProperty(value = "Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.")

public Boolean getRequested() {
Expand All @@ -379,7 +372,6 @@ public AccountHolderCapability requestedLevel(RequestedLevelEnum requestedLevel)
* The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**.
* @return requestedLevel
**/

@ApiModelProperty(value = "The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**.")

public RequestedLevelEnum getRequestedLevel() {
Expand All @@ -402,7 +394,6 @@ public AccountHolderCapability requestedSettings(JSONObject requestedSettings) {
* Get requestedSettings
* @return requestedSettings
**/

@ApiModelProperty(value = "")

public JSONObject getRequestedSettings() {
Expand All @@ -419,7 +410,6 @@ public void setRequestedSettings(JSONObject requestedSettings) {
* The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the &#x60;errors&#x60; array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability.
* @return verificationStatus
**/

@ApiModelProperty(value = "The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. ")

public VerificationStatusEnum getVerificationStatus() {
Expand Down Expand Up @@ -537,17 +527,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
if (jsonObj.getAsJsonObject("allowedSettings") != null) {
JSONObject.validateJsonObject(jsonObj.getAsJsonObject("allowedSettings"));
}
JsonArray jsonArrayproblems = jsonObj.getAsJsonArray("problems");
if (jsonArrayproblems != null) {
// ensure the json data is an array
if (!jsonObj.get("problems").isJsonArray()) {
throw new IllegalArgumentException(String.format("Expected the field `problems` to be an array in the JSON string but got `%s`", jsonObj.get("problems").toString()));
}

// validate the optional field `problems` (array)
for (int i = 0; i < jsonArrayproblems.size(); i++) {
CapabilityProblem.validateJsonObject(jsonArrayproblems.get(i).getAsJsonObject());
};
// ensure the json data is an array
if (jsonObj.get("problems") != null && !jsonObj.get("problems").isJsonArray()) {
throw new IllegalArgumentException(String.format("Expected the field `problems` to be an array in the JSON string but got `%s`", jsonObj.get("problems").toString()));
}
// ensure the field requestedLevel can be parsed to an enum value
if (jsonObj.get("requestedLevel") != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public AccountHolderInfo balancePlatform(String balancePlatform) {
* The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.
* @return balancePlatform
**/

@ApiModelProperty(value = "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.")

public String getBalancePlatform() {
Expand Down Expand Up @@ -125,7 +124,6 @@ public AccountHolderInfo putCapabilitiesItem(String key, AccountHolderCapability
* Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
* @return capabilities
**/

@ApiModelProperty(value = "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.")

public Map<String, AccountHolderCapability> getCapabilities() {
Expand All @@ -148,7 +146,6 @@ public AccountHolderInfo contactDetails(ContactDetails contactDetails) {
* Get contactDetails
* @return contactDetails
**/

@ApiModelProperty(value = "")

public ContactDetails getContactDetails() {
Expand All @@ -171,7 +168,6 @@ public AccountHolderInfo description(String description) {
* Your description for the account holder, maximum 300 characters.
* @return description
**/

@ApiModelProperty(value = "Your description for the account holder, maximum 300 characters.")

public String getDescription() {
Expand All @@ -191,11 +187,10 @@ public AccountHolderInfo legalEntityId(String legalEntityId) {
}

/**
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
* @return legalEntityId
**/

@ApiModelProperty(required = true, value = "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. ")
@ApiModelProperty(required = true, value = "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.")

public String getLegalEntityId() {
return legalEntityId;
Expand All @@ -217,7 +212,6 @@ public AccountHolderInfo reference(String reference) {
* Your reference for the account holder, maximum 150 characters.
* @return reference
**/

@ApiModelProperty(value = "Your reference for the account holder, maximum 150 characters.")

public String getReference() {
Expand All @@ -240,7 +234,6 @@ public AccountHolderInfo timeZone(String timeZone) {
* The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
* @return timeZone
**/

@ApiModelProperty(value = "The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).")

public String getTimeZone() {
Expand Down
Loading