
com.adyen.model.balanceplatform.AccountHolderInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* Configuration API
*
* The version of the OpenAPI document: 2
*
*
* 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.balanceplatform;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.balanceplatform.AccountHolderCapability;
import com.adyen.model.balanceplatform.ContactDetails;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* AccountHolderInfo
*/
@JsonPropertyOrder({
AccountHolderInfo.JSON_PROPERTY_BALANCE_PLATFORM,
AccountHolderInfo.JSON_PROPERTY_CAPABILITIES,
AccountHolderInfo.JSON_PROPERTY_CONTACT_DETAILS,
AccountHolderInfo.JSON_PROPERTY_DESCRIPTION,
AccountHolderInfo.JSON_PROPERTY_LEGAL_ENTITY_ID,
AccountHolderInfo.JSON_PROPERTY_METADATA,
AccountHolderInfo.JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE,
AccountHolderInfo.JSON_PROPERTY_REFERENCE,
AccountHolderInfo.JSON_PROPERTY_TIME_ZONE
})
public class AccountHolderInfo {
public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform";
private String balancePlatform;
public static final String JSON_PROPERTY_CAPABILITIES = "capabilities";
private Map capabilities;
public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails";
@Deprecated // deprecated
private ContactDetails contactDetails;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId";
private String legalEntityId;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map metadata;
public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE = "migratedAccountHolderCode";
private String migratedAccountHolderCode;
public static final String JSON_PROPERTY_REFERENCE = "reference";
private String reference;
public static final String JSON_PROPERTY_TIME_ZONE = "timeZone";
private String timeZone;
public AccountHolderInfo() {
}
@JsonCreator
public AccountHolderInfo(
@JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE) String migratedAccountHolderCode
) {
this();
this.migratedAccountHolderCode = migratedAccountHolderCode;
}
/**
* 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.
*
* @param 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 the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo balancePlatform(String balancePlatform) {
this.balancePlatform = balancePlatform;
return this;
}
/**
* 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 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.
*/
@JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBalancePlatform() {
return 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.
*
* @param 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.
*/
@JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBalancePlatform(String balancePlatform) {
this.balancePlatform = balancePlatform;
}
/**
* 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.
*
* @param capabilities 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 the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo capabilities(Map capabilities) {
this.capabilities = capabilities;
return this;
}
public AccountHolderInfo putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new HashMap<>();
}
this.capabilities.put(key, capabilitiesItem);
return this;
}
/**
* 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 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.
*/
@JsonProperty(JSON_PROPERTY_CAPABILITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getCapabilities() {
return capabilities;
}
/**
* 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.
*
* @param capabilities 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.
*/
@JsonProperty(JSON_PROPERTY_CAPABILITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapabilities(Map capabilities) {
this.capabilities = capabilities;
}
/**
* contactDetails
*
* @param contactDetails
* @return the current {@code AccountHolderInfo} instance, allowing for method chaining
*
* @deprecated
*/
@Deprecated // deprecated
public AccountHolderInfo contactDetails(ContactDetails contactDetails) {
this.contactDetails = contactDetails;
return this;
}
/**
* Get contactDetails
* @return contactDetails
* @deprecated // deprecated
*/
@Deprecated // deprecated
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ContactDetails getContactDetails() {
return contactDetails;
}
/**
* contactDetails
*
* @param contactDetails
*
* @deprecated
*/
@Deprecated // deprecated
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setContactDetails(ContactDetails contactDetails) {
this.contactDetails = contactDetails;
}
/**
* Your description for the account holder.
*
* @param description Your description for the account holder.
* @return the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo description(String description) {
this.description = description;
return this;
}
/**
* Your description for the account holder.
* @return description Your description for the account holder.
*/
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
/**
* Your description for the account holder.
*
* @param description Your description for the account holder.
*/
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
/**
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
*
* @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
* @return the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo legalEntityId(String legalEntityId) {
this.legalEntityId = legalEntityId;
return this;
}
/**
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
* @return legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
*/
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLegalEntityId() {
return legalEntityId;
}
/**
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
*
* @param legalEntityId The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
*/
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegalEntityId(String legalEntityId) {
this.legalEntityId = legalEntityId;
}
/**
* 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.
*
* @param metadata 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.
* @return the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public AccountHolderInfo putMetadataItem(String key, String metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* 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.
* @return metadata 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)
public Map getMetadata() {
return metadata;
}
/**
* 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.
*
* @param metadata 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)
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
/**
* The unique identifier of the migrated account holder in the classic integration.
* @return migratedAccountHolderCode 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;
}
/**
* Your reference for the account holder.
*
* @param reference Your reference for the account holder.
* @return the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo reference(String reference) {
this.reference = reference;
return this;
}
/**
* Your reference for the account holder.
* @return reference Your reference for the account holder.
*/
@JsonProperty(JSON_PROPERTY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getReference() {
return reference;
}
/**
* Your reference for the account holder.
*
* @param reference Your reference for the account holder.
*/
@JsonProperty(JSON_PROPERTY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReference(String reference) {
this.reference = reference;
}
/**
* The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
*
* @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
* @return the current {@code AccountHolderInfo} instance, allowing for method chaining
*/
public AccountHolderInfo timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
/**
* The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
* @return timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
*/
@JsonProperty(JSON_PROPERTY_TIME_ZONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTimeZone() {
return timeZone;
}
/**
* The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
*
* @param timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
*/
@JsonProperty(JSON_PROPERTY_TIME_ZONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
/**
* Return true if this AccountHolderInfo object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountHolderInfo accountHolderInfo = (AccountHolderInfo) o;
return Objects.equals(this.balancePlatform, accountHolderInfo.balancePlatform) &&
Objects.equals(this.capabilities, accountHolderInfo.capabilities) &&
Objects.equals(this.contactDetails, accountHolderInfo.contactDetails) &&
Objects.equals(this.description, accountHolderInfo.description) &&
Objects.equals(this.legalEntityId, accountHolderInfo.legalEntityId) &&
Objects.equals(this.metadata, accountHolderInfo.metadata) &&
Objects.equals(this.migratedAccountHolderCode, accountHolderInfo.migratedAccountHolderCode) &&
Objects.equals(this.reference, accountHolderInfo.reference) &&
Objects.equals(this.timeZone, accountHolderInfo.timeZone);
}
@Override
public int hashCode() {
return Objects.hash(balancePlatform, capabilities, contactDetails, description, legalEntityId, metadata, migratedAccountHolderCode, reference, timeZone);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountHolderInfo {\n");
sb.append(" balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n");
sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" contactDetails: ").append(toIndentedString(contactDetails)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" timeZone: ").append(toIndentedString(timeZone)).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 AccountHolderInfo given an JSON string
*
* @param jsonString JSON string
* @return An instance of AccountHolderInfo
* @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderInfo
*/
public static AccountHolderInfo fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, AccountHolderInfo.class);
}
/**
* Convert an instance of AccountHolderInfo to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy