Package com.adyen.model.marketpayaccount
Class CreateAccountHolderRequest
- java.lang.Object
-
- com.adyen.model.marketpayaccount.CreateAccountHolderRequest
-
public class CreateAccountHolderRequest extends Object
CreateAccountHolderRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAccountHolderRequest.LegalEntityEnumThe legal entity type of the account holder.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_CODEstatic StringJSON_PROPERTY_ACCOUNT_HOLDER_DETAILSstatic StringJSON_PROPERTY_CREATE_DEFAULT_ACCOUNTstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_LEGAL_ENTITYstatic StringJSON_PROPERTY_PRIMARY_CURRENCYstatic StringJSON_PROPERTY_PROCESSING_TIERstatic StringJSON_PROPERTY_VERIFICATION_PROFILE
-
Constructor Summary
Constructors Constructor Description CreateAccountHolderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CreateAccountHolderRequestaccountHolderCode(String accountHolderCode)CreateAccountHolderRequestaccountHolderDetails(AccountHolderDetails accountHolderDetails)CreateAccountHolderRequestcreateDefaultAccount(Boolean createDefaultAccount)CreateAccountHolderRequestdescription(String description)booleanequals(Object o)Return true if this CreateAccountHolderRequest object is equal to o.static CreateAccountHolderRequestfromJson(String jsonString)Create an instance of CreateAccountHolderRequest given an JSON stringStringgetAccountHolderCode()Your unique identifier for the prospective account holder.AccountHolderDetailsgetAccountHolderDetails()Get accountHolderDetailsBooleangetCreateDefaultAccount()If set to **true**, an account with the default options is automatically created for the account holder.StringgetDescription()A description of the prospective account holder, maximum 256 characters.CreateAccountHolderRequest.LegalEntityEnumgetLegalEntity()The legal entity type of the account holder.StringgetPrimaryCurrency()Deprecated.IntegergetProcessingTier()The starting [processing tier](https://docs.adyen.com/marketplaces-and-platforms/classic/onboarding-and-verification/precheck-kyc-information) for the prospective account holder.StringgetVerificationProfile()The identifier of the profile that applies to this entity.inthashCode()CreateAccountHolderRequestlegalEntity(CreateAccountHolderRequest.LegalEntityEnum legalEntity)CreateAccountHolderRequestprimaryCurrency(String primaryCurrency)CreateAccountHolderRequestprocessingTier(Integer processingTier)voidsetAccountHolderCode(String accountHolderCode)voidsetAccountHolderDetails(AccountHolderDetails accountHolderDetails)voidsetCreateDefaultAccount(Boolean createDefaultAccount)voidsetDescription(String description)voidsetLegalEntity(CreateAccountHolderRequest.LegalEntityEnum legalEntity)voidsetPrimaryCurrency(String primaryCurrency)Deprecated.voidsetProcessingTier(Integer processingTier)voidsetVerificationProfile(String verificationProfile)StringtoJson()Convert an instance of CreateAccountHolderRequest to an JSON stringStringtoString()CreateAccountHolderRequestverificationProfile(String verificationProfile)
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_CODE
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_HOLDER_DETAILS
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATE_DEFAULT_ACCOUNT
public static final String JSON_PROPERTY_CREATE_DEFAULT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEGAL_ENTITY
public static final String JSON_PROPERTY_LEGAL_ENTITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRIMARY_CURRENCY
public static final String JSON_PROPERTY_PRIMARY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROCESSING_TIER
public static final String JSON_PROPERTY_PROCESSING_TIER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERIFICATION_PROFILE
public static final String JSON_PROPERTY_VERIFICATION_PROFILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderCode
public CreateAccountHolderRequest accountHolderCode(String accountHolderCode)
-
getAccountHolderCode
public String getAccountHolderCode()
Your unique identifier for the prospective account holder. The length must be between three (3) and fifty (50) characters long. Only letters, digits, and hyphens (-) are allowed.- Returns:
- accountHolderCode
-
setAccountHolderCode
public void setAccountHolderCode(String accountHolderCode)
-
accountHolderDetails
public CreateAccountHolderRequest accountHolderDetails(AccountHolderDetails accountHolderDetails)
-
getAccountHolderDetails
public AccountHolderDetails getAccountHolderDetails()
Get accountHolderDetails- Returns:
- accountHolderDetails
-
setAccountHolderDetails
public void setAccountHolderDetails(AccountHolderDetails accountHolderDetails)
-
createDefaultAccount
public CreateAccountHolderRequest createDefaultAccount(Boolean createDefaultAccount)
-
getCreateDefaultAccount
public Boolean getCreateDefaultAccount()
If set to **true**, an account with the default options is automatically created for the account holder. By default, this field is set to **true**.- Returns:
- createDefaultAccount
-
setCreateDefaultAccount
public void setCreateDefaultAccount(Boolean createDefaultAccount)
-
description
public CreateAccountHolderRequest description(String description)
-
getDescription
public String getDescription()
A description of the prospective account holder, maximum 256 characters. You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
legalEntity
public CreateAccountHolderRequest legalEntity(CreateAccountHolderRequest.LegalEntityEnum legalEntity)
-
getLegalEntity
public CreateAccountHolderRequest.LegalEntityEnum getLegalEntity()
The legal entity type of the account holder. This determines the information that should be provided in the request. Possible values: **Business**, **Individual**, or **NonProfit**. * If set to **Business** or **NonProfit**, then `accountHolderDetails.businessDetails` must be provided, with at least one entry in the `accountHolderDetails.businessDetails.shareholders` list. * If set to **Individual**, then `accountHolderDetails.individualDetails` must be provided.- Returns:
- legalEntity
-
setLegalEntity
public void setLegalEntity(CreateAccountHolderRequest.LegalEntityEnum legalEntity)
-
primaryCurrency
public CreateAccountHolderRequest primaryCurrency(String primaryCurrency)
-
getPrimaryCurrency
@Deprecated public String getPrimaryCurrency()
Deprecated.The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.- Returns:
- primaryCurrency
-
setPrimaryCurrency
@Deprecated public void setPrimaryCurrency(String primaryCurrency)
Deprecated.
-
processingTier
public CreateAccountHolderRequest processingTier(Integer processingTier)
-
getProcessingTier
public Integer getProcessingTier()
The starting [processing tier](https://docs.adyen.com/marketplaces-and-platforms/classic/onboarding-and-verification/precheck-kyc-information) for the prospective account holder.- Returns:
- processingTier
-
setProcessingTier
public void setProcessingTier(Integer processingTier)
-
verificationProfile
public CreateAccountHolderRequest verificationProfile(String verificationProfile)
-
getVerificationProfile
public String getVerificationProfile()
The identifier of the profile that applies to this entity.- Returns:
- verificationProfile
-
setVerificationProfile
public void setVerificationProfile(String verificationProfile)
-
equals
public boolean equals(Object o)
Return true if this CreateAccountHolderRequest object is equal to o.
-
fromJson
public static CreateAccountHolderRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateAccountHolderRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAccountHolderRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateAccountHolderRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateAccountHolderRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-