Package com.adyen.model.marketpayaccount
Class UpdateAccountHolderRequest
- java.lang.Object
-
- com.adyen.model.marketpayaccount.UpdateAccountHolderRequest
-
public class UpdateAccountHolderRequest extends Object
UpdateAccountHolderRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateAccountHolderRequest.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_DESCRIPTIONstatic StringJSON_PROPERTY_LEGAL_ENTITYstatic StringJSON_PROPERTY_PRIMARY_CURRENCYstatic StringJSON_PROPERTY_PROCESSING_TIERstatic StringJSON_PROPERTY_VERIFICATION_PROFILE
-
Constructor Summary
Constructors Constructor Description UpdateAccountHolderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UpdateAccountHolderRequestaccountHolderCode(String accountHolderCode)UpdateAccountHolderRequestaccountHolderDetails(AccountHolderDetails accountHolderDetails)UpdateAccountHolderRequestdescription(String description)booleanequals(Object o)Return true if this UpdateAccountHolderRequest object is equal to o.static UpdateAccountHolderRequestfromJson(String jsonString)Create an instance of UpdateAccountHolderRequest given an JSON stringStringgetAccountHolderCode()The code of the Account Holder to be updated.AccountHolderDetailsgetAccountHolderDetails()Get accountHolderDetailsStringgetDescription()A description of the account holder, maximum 256 characters.UpdateAccountHolderRequest.LegalEntityEnumgetLegalEntity()The legal entity type of the account holder.StringgetPrimaryCurrency()Deprecated.IntegergetProcessingTier()The processing tier to which the Account Holder should be updated.StringgetVerificationProfile()The identifier of the profile that applies to this entity.inthashCode()UpdateAccountHolderRequestlegalEntity(UpdateAccountHolderRequest.LegalEntityEnum legalEntity)UpdateAccountHolderRequestprimaryCurrency(String primaryCurrency)UpdateAccountHolderRequestprocessingTier(Integer processingTier)voidsetAccountHolderCode(String accountHolderCode)voidsetAccountHolderDetails(AccountHolderDetails accountHolderDetails)voidsetDescription(String description)voidsetLegalEntity(UpdateAccountHolderRequest.LegalEntityEnum legalEntity)voidsetPrimaryCurrency(String primaryCurrency)Deprecated.voidsetProcessingTier(Integer processingTier)voidsetVerificationProfile(String verificationProfile)StringtoJson()Convert an instance of UpdateAccountHolderRequest to an JSON stringStringtoString()UpdateAccountHolderRequestverificationProfile(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_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 UpdateAccountHolderRequest accountHolderCode(String accountHolderCode)
-
getAccountHolderCode
public String getAccountHolderCode()
The code of the Account Holder to be updated.- Returns:
- accountHolderCode
-
setAccountHolderCode
public void setAccountHolderCode(String accountHolderCode)
-
accountHolderDetails
public UpdateAccountHolderRequest accountHolderDetails(AccountHolderDetails accountHolderDetails)
-
getAccountHolderDetails
public AccountHolderDetails getAccountHolderDetails()
Get accountHolderDetails- Returns:
- accountHolderDetails
-
setAccountHolderDetails
public void setAccountHolderDetails(AccountHolderDetails accountHolderDetails)
-
description
public UpdateAccountHolderRequest description(String description)
-
getDescription
public String getDescription()
A description of the 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 UpdateAccountHolderRequest legalEntity(UpdateAccountHolderRequest.LegalEntityEnum legalEntity)
-
getLegalEntity
public UpdateAccountHolderRequest.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(UpdateAccountHolderRequest.LegalEntityEnum legalEntity)
-
primaryCurrency
public UpdateAccountHolderRequest primaryCurrency(String primaryCurrency)
-
getPrimaryCurrency
@Deprecated public String getPrimaryCurrency()
Deprecated.The primary three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), to which the account holder should be updated.- Returns:
- primaryCurrency
-
setPrimaryCurrency
@Deprecated public void setPrimaryCurrency(String primaryCurrency)
Deprecated.
-
processingTier
public UpdateAccountHolderRequest processingTier(Integer processingTier)
-
getProcessingTier
public Integer getProcessingTier()
The processing tier to which the Account Holder should be updated. >The processing tier can not be lowered through this request. >Required if accountHolderDetails are not provided.- Returns:
- processingTier
-
setProcessingTier
public void setProcessingTier(Integer processingTier)
-
verificationProfile
public UpdateAccountHolderRequest 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 UpdateAccountHolderRequest object is equal to o.
-
fromJson
public static UpdateAccountHolderRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpdateAccountHolderRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateAccountHolderRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpdateAccountHolderRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpdateAccountHolderRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-