Package com.adyen.model.balanceplatform
Class AccountHolderCapability
- java.lang.Object
-
- com.adyen.model.balanceplatform.AccountHolderCapability
-
public class AccountHolderCapability extends Object
AccountHolderCapability
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountHolderCapability.AllowedLevelEnumThe capability level that is allowed for the account holder.static classAccountHolderCapability.CustomTypeAdapterFactorystatic classAccountHolderCapability.RequestedLevelEnumThe requested level of the capability.static classAccountHolderCapability.VerificationStatusEnumThe status of the verification checks for the capability.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALLOWEDstatic StringSERIALIZED_NAME_ALLOWED_LEVELstatic StringSERIALIZED_NAME_ALLOWED_SETTINGSstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_PROBLEMSstatic StringSERIALIZED_NAME_REQUESTEDstatic StringSERIALIZED_NAME_REQUESTED_LEVELstatic StringSERIALIZED_NAME_REQUESTED_SETTINGSstatic StringSERIALIZED_NAME_TRANSFER_INSTRUMENTSstatic StringSERIALIZED_NAME_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description AccountHolderCapability()AccountHolderCapability(Boolean allowed, AccountHolderCapability.AllowedLevelEnum allowedLevel, List<Object> problems, AccountHolderCapability.VerificationStatusEnum verificationStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountHolderCapabilityaddTransferInstrumentsItem(AccountSupportingEntityCapability transferInstrumentsItem)AccountHolderCapabilityallowedSettings(CapabilitySettings allowedSettings)AccountHolderCapabilityenabled(Boolean enabled)booleanequals(Object o)static AccountHolderCapabilityfromJson(String jsonString)Create an instance of AccountHolderCapability given an JSON stringBooleangetAllowed()Indicates whether the capability is allowed.AccountHolderCapability.AllowedLevelEnumgetAllowedLevel()The capability level that is allowed for the account holder.CapabilitySettingsgetAllowedSettings()Get allowedSettingsBooleangetEnabled()Indicates whether the capability is enabled.List<Object>getProblems()Contains verification errors and the actions that you can take to resolve them.BooleangetRequested()Indicates whether the capability is requested.AccountHolderCapability.RequestedLevelEnumgetRequestedLevel()The requested level of the capability.CapabilitySettingsgetRequestedSettings()Get requestedSettingsList<AccountSupportingEntityCapability>getTransferInstruments()Contains the status of the transfer instruments associated with this capability.AccountHolderCapability.VerificationStatusEnumgetVerificationStatus()The status of the verification checks for the capability.inthashCode()AccountHolderCapabilityrequested(Boolean requested)AccountHolderCapabilityrequestedLevel(AccountHolderCapability.RequestedLevelEnum requestedLevel)AccountHolderCapabilityrequestedSettings(CapabilitySettings requestedSettings)voidsetAllowedSettings(CapabilitySettings allowedSettings)voidsetEnabled(Boolean enabled)voidsetRequested(Boolean requested)voidsetRequestedLevel(AccountHolderCapability.RequestedLevelEnum requestedLevel)voidsetRequestedSettings(CapabilitySettings requestedSettings)voidsetTransferInstruments(List<AccountSupportingEntityCapability> transferInstruments)StringtoJson()Convert an instance of AccountHolderCapability to an JSON stringStringtoString()AccountHolderCapabilitytransferInstruments(List<AccountSupportingEntityCapability> transferInstruments)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ALLOWED
public static final String SERIALIZED_NAME_ALLOWED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_LEVEL
public static final String SERIALIZED_NAME_ALLOWED_LEVEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_SETTINGS
public static final String SERIALIZED_NAME_ALLOWED_SETTINGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROBLEMS
public static final String SERIALIZED_NAME_PROBLEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED
public static final String SERIALIZED_NAME_REQUESTED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED_LEVEL
public static final String SERIALIZED_NAME_REQUESTED_LEVEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED_SETTINGS
public static final String SERIALIZED_NAME_REQUESTED_SETTINGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSFER_INSTRUMENTS
public static final String SERIALIZED_NAME_TRANSFER_INSTRUMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERIFICATION_STATUS
public static final String SERIALIZED_NAME_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AccountHolderCapability
public AccountHolderCapability()
-
AccountHolderCapability
public AccountHolderCapability(Boolean allowed, AccountHolderCapability.AllowedLevelEnum allowedLevel, List<Object> problems, AccountHolderCapability.VerificationStatusEnum verificationStatus)
-
-
Method Detail
-
getAllowed
public Boolean getAllowed()
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.- Returns:
- allowed
-
getAllowedLevel
public AccountHolderCapability.AllowedLevelEnum getAllowedLevel()
The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.- Returns:
- allowedLevel
-
allowedSettings
public AccountHolderCapability allowedSettings(CapabilitySettings allowedSettings)
-
getAllowedSettings
public CapabilitySettings getAllowedSettings()
Get allowedSettings- Returns:
- allowedSettings
-
setAllowedSettings
public void setAllowedSettings(CapabilitySettings allowedSettings)
-
enabled
public AccountHolderCapability enabled(Boolean enabled)
-
getEnabled
public Boolean getEnabled()
Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
getProblems
public List<Object> getProblems()
Contains verification errors and the actions that you can take to resolve them.- Returns:
- problems
-
requested
public AccountHolderCapability requested(Boolean requested)
-
getRequested
public Boolean getRequested()
Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.- Returns:
- requested
-
setRequested
public void setRequested(Boolean requested)
-
requestedLevel
public AccountHolderCapability requestedLevel(AccountHolderCapability.RequestedLevelEnum requestedLevel)
-
getRequestedLevel
public AccountHolderCapability.RequestedLevelEnum getRequestedLevel()
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**.- Returns:
- requestedLevel
-
setRequestedLevel
public void setRequestedLevel(AccountHolderCapability.RequestedLevelEnum requestedLevel)
-
requestedSettings
public AccountHolderCapability requestedSettings(CapabilitySettings requestedSettings)
-
getRequestedSettings
public CapabilitySettings getRequestedSettings()
Get requestedSettings- Returns:
- requestedSettings
-
setRequestedSettings
public void setRequestedSettings(CapabilitySettings requestedSettings)
-
transferInstruments
public AccountHolderCapability transferInstruments(List<AccountSupportingEntityCapability> transferInstruments)
-
addTransferInstrumentsItem
public AccountHolderCapability addTransferInstrumentsItem(AccountSupportingEntityCapability transferInstrumentsItem)
-
getTransferInstruments
public List<AccountSupportingEntityCapability> getTransferInstruments()
Contains the status of the transfer instruments associated with this capability.- Returns:
- transferInstruments
-
setTransferInstruments
public void setTransferInstruments(List<AccountSupportingEntityCapability> transferInstruments)
-
getVerificationStatus
public AccountHolderCapability.VerificationStatusEnum getVerificationStatus()
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.- Returns:
- verificationStatus
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to AccountHolderCapability
-
fromJson
public static AccountHolderCapability fromJson(String jsonString) throws IOException
Create an instance of AccountHolderCapability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountHolderCapability
- Throws:
IOException- if the JSON string is invalid with respect to AccountHolderCapability
-
toJson
public String toJson()
Convert an instance of AccountHolderCapability to an JSON string- Returns:
- JSON string
-
-