Class AccountHolder
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.AccountHolder
-
public class AccountHolder extends Object
AccountHolder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountHolder.StatusEnumThe status of the account holder.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_PLATFORMstatic StringJSON_PROPERTY_CAPABILITIESstatic StringJSON_PROPERTY_CONTACT_DETAILSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LEGAL_ENTITY_IDstatic StringJSON_PROPERTY_METADATAstatic StringJSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODEstatic StringJSON_PROPERTY_PRIMARY_BALANCE_ACCOUNTstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TIME_ZONEstatic StringJSON_PROPERTY_VERIFICATION_DEADLINES
-
Constructor Summary
Constructors Constructor Description AccountHolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccountHolderaddVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem)AccountHolderbalancePlatform(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.AccountHoldercapabilities(Map<String,AccountHolderCapability> capabilities)Contains key-value pairs that specify the actions that an account holder can do in your platform.AccountHoldercontactDetails(ContactDetails contactDetails)Deprecated.AccountHolderdescription(String description)Your description for the account holder.booleanequals(Object o)Return true if this AccountHolder object is equal to o.static AccountHolderfromJson(String jsonString)Create an instance of AccountHolder given an JSON stringStringgetBalancePlatform()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.Map<String,AccountHolderCapability>getCapabilities()Contains key-value pairs that specify the actions that an account holder can do in your platform.ContactDetailsgetContactDetails()Deprecated.StringgetDescription()Your description for the account holder.StringgetId()The unique identifier of the account holder.StringgetLegalEntityId()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.Map<String,String>getMetadata()A set of key and value pairs for general use.StringgetMigratedAccountHolderCode()The unique identifier of the migrated account holder in the classic integration.StringgetPrimaryBalanceAccount()The ID of the account holder's primary balance account.StringgetReference()Your reference for the account holder.AccountHolder.StatusEnumgetStatus()The status of the account holder.StringgetTimeZone()The time zone of the account holder.List<VerificationDeadline>getVerificationDeadlines()List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.inthashCode()AccountHolderid(String id)The unique identifier of the account holder.AccountHolderlegalEntityId(String 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.AccountHoldermetadata(Map<String,String> metadata)A set of key and value pairs for general use.AccountHoldermigratedAccountHolderCode(String migratedAccountHolderCode)The unique identifier of the migrated account holder in the classic integration.AccountHolderprimaryBalanceAccount(String primaryBalanceAccount)The ID of the account holder's primary balance account.AccountHolderputCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem)AccountHolderputMetadataItem(String key, String metadataItem)AccountHolderreference(String reference)Your reference for the account holder.voidsetBalancePlatform(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.voidsetCapabilities(Map<String,AccountHolderCapability> capabilities)Contains key-value pairs that specify the actions that an account holder can do in your platform.voidsetContactDetails(ContactDetails contactDetails)Deprecated.voidsetDescription(String description)Your description for the account holder.voidsetId(String id)The unique identifier of the account holder.voidsetLegalEntityId(String 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.voidsetMetadata(Map<String,String> metadata)A set of key and value pairs for general use.voidsetMigratedAccountHolderCode(String migratedAccountHolderCode)The unique identifier of the migrated account holder in the classic integration.voidsetPrimaryBalanceAccount(String primaryBalanceAccount)The ID of the account holder's primary balance account.voidsetReference(String reference)Your reference for the account holder.voidsetStatus(AccountHolder.StatusEnum status)The status of the account holder.voidsetTimeZone(String timeZone)The time zone of the account holder.voidsetVerificationDeadlines(List<VerificationDeadline> verificationDeadlines)List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.AccountHolderstatus(AccountHolder.StatusEnum status)The status of the account holder.AccountHoldertimeZone(String timeZone)The time zone of the account holder.StringtoJson()Convert an instance of AccountHolder to an JSON stringStringtoString()AccountHolderverificationDeadlines(List<VerificationDeadline> verificationDeadlines)List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_PLATFORM
public static final String JSON_PROPERTY_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAPABILITIES
public static final String JSON_PROPERTY_CAPABILITIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTACT_DETAILS
public static final String JSON_PROPERTY_CONTACT_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEGAL_ENTITY_ID
public static final String JSON_PROPERTY_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METADATA
public static final String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE
public static final String JSON_PROPERTY_MIGRATED_ACCOUNT_HOLDER_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT
public static final String JSON_PROPERTY_PRIMARY_BALANCE_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME_ZONE
public static final String JSON_PROPERTY_TIME_ZONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERIFICATION_DEADLINES
public static final String JSON_PROPERTY_VERIFICATION_DEADLINES
- See Also:
- Constant Field Values
-
-
Method Detail
-
balancePlatform
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.- Parameters:
balancePlatform-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getBalancePlatform
public String getBalancePlatform()
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.- Returns:
- balancePlatform
-
setBalancePlatform
public void setBalancePlatform(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.- Parameters:
balancePlatform-
-
capabilities
public AccountHolder capabilities(Map<String,AccountHolderCapability> 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.- Parameters:
capabilities-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
putCapabilitiesItem
public AccountHolder putCapabilitiesItem(String key, AccountHolderCapability capabilitiesItem)
-
getCapabilities
public Map<String,AccountHolderCapability> getCapabilities()
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.- Returns:
- capabilities
-
setCapabilities
public void setCapabilities(Map<String,AccountHolderCapability> 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.- Parameters:
capabilities-
-
contactDetails
@Deprecated public AccountHolder contactDetails(ContactDetails contactDetails)
Deprecated.contactDetails- Parameters:
contactDetails-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getContactDetails
@Deprecated public ContactDetails getContactDetails()
Deprecated.contactDetails- Returns:
- contactDetails
-
setContactDetails
@Deprecated public void setContactDetails(ContactDetails contactDetails)
Deprecated.contactDetails- Parameters:
contactDetails-
-
description
public AccountHolder description(String description)
Your description for the account holder.- Parameters:
description-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getDescription
public String getDescription()
Your description for the account holder.- Returns:
- description
-
setDescription
public void setDescription(String description)
Your description for the account holder.- Parameters:
description-
-
id
public AccountHolder id(String id)
The unique identifier of the account holder.- Parameters:
id-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the account holder.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the account holder.- Parameters:
id-
-
legalEntityId
public AccountHolder legalEntityId(String 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.- Parameters:
legalEntityId-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getLegalEntityId
public String getLegalEntityId()
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.- Returns:
- legalEntityId
-
setLegalEntityId
public void setLegalEntityId(String 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.- Parameters:
legalEntityId-
-
metadata
public AccountHolder metadata(Map<String,String> 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.- Parameters:
metadata-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
putMetadataItem
public AccountHolder putMetadataItem(String key, String metadataItem)
-
getMetadata
public Map<String,String> getMetadata()
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.- Returns:
- metadata
-
setMetadata
public void setMetadata(Map<String,String> 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.- Parameters:
metadata-
-
migratedAccountHolderCode
public AccountHolder migratedAccountHolderCode(String migratedAccountHolderCode)
The unique identifier of the migrated account holder in the classic integration.- Parameters:
migratedAccountHolderCode-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getMigratedAccountHolderCode
public String getMigratedAccountHolderCode()
The unique identifier of the migrated account holder in the classic integration.- Returns:
- migratedAccountHolderCode
-
setMigratedAccountHolderCode
public void setMigratedAccountHolderCode(String migratedAccountHolderCode)
The unique identifier of the migrated account holder in the classic integration.- Parameters:
migratedAccountHolderCode-
-
primaryBalanceAccount
public AccountHolder primaryBalanceAccount(String primaryBalanceAccount)
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.- Parameters:
primaryBalanceAccount-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getPrimaryBalanceAccount
public String getPrimaryBalanceAccount()
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.- Returns:
- primaryBalanceAccount
-
setPrimaryBalanceAccount
public void setPrimaryBalanceAccount(String primaryBalanceAccount)
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.- Parameters:
primaryBalanceAccount-
-
reference
public AccountHolder reference(String reference)
Your reference for the account holder.- Parameters:
reference-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the account holder.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the account holder.- Parameters:
reference-
-
status
public AccountHolder status(AccountHolder.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. * **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.- Parameters:
status-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getStatus
public AccountHolder.StatusEnum getStatus()
The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **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.- Returns:
- status
-
setStatus
public void setStatus(AccountHolder.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. * **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.- Parameters:
status-
-
timeZone
public AccountHolder timeZone(String 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).- Parameters:
timeZone-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
getTimeZone
public String getTimeZone()
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).- Returns:
- timeZone
-
setTimeZone
public void setTimeZone(String 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).- Parameters:
timeZone-
-
verificationDeadlines
public AccountHolder verificationDeadlines(List<VerificationDeadline> verificationDeadlines)
List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.- Parameters:
verificationDeadlines-- Returns:
- the current
AccountHolderinstance, allowing for method chaining
-
addVerificationDeadlinesItem
public AccountHolder addVerificationDeadlinesItem(VerificationDeadline verificationDeadlinesItem)
-
getVerificationDeadlines
public List<VerificationDeadline> getVerificationDeadlines()
List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.- Returns:
- verificationDeadlines
-
setVerificationDeadlines
public void setVerificationDeadlines(List<VerificationDeadline> verificationDeadlines)
List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.- Parameters:
verificationDeadlines-
-
equals
public boolean equals(Object o)
Return true if this AccountHolder object is equal to o.
-
fromJson
public static AccountHolder fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountHolder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountHolder
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountHolder
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountHolder to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-