Class AccountHolderCapability
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.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.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 StringJSON_PROPERTY_ALLOWEDstatic StringJSON_PROPERTY_ALLOWED_LEVELstatic StringJSON_PROPERTY_ALLOWED_SETTINGSstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_PROBLEMSstatic StringJSON_PROPERTY_REQUESTEDstatic StringJSON_PROPERTY_REQUESTED_LEVELstatic StringJSON_PROPERTY_REQUESTED_SETTINGSstatic StringJSON_PROPERTY_TRANSFER_INSTRUMENTSstatic StringJSON_PROPERTY_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description AccountHolderCapability()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOWED
public static final String JSON_PROPERTY_ALLOWED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_LEVEL
public static final String JSON_PROPERTY_ALLOWED_LEVEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_SETTINGS
public static final String JSON_PROPERTY_ALLOWED_SETTINGS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROBLEMS
public static final String JSON_PROPERTY_PROBLEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED
public static final String JSON_PROPERTY_REQUESTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED_LEVEL
public static final String JSON_PROPERTY_REQUESTED_LEVEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED_SETTINGS
public static final String JSON_PROPERTY_REQUESTED_SETTINGS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_INSTRUMENTS
public static final String JSON_PROPERTY_TRANSFER_INSTRUMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERIFICATION_STATUS
public static final String JSON_PROPERTY_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowed
public AccountHolderCapability allowed(Boolean allowed)
-
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
-
setAllowed
public void setAllowed(Boolean allowed)
-
allowedLevel
public AccountHolderCapability allowedLevel(AccountHolderCapability.AllowedLevelEnum allowedLevel)
-
getAllowedLevel
public AccountHolderCapability.AllowedLevelEnum getAllowedLevel()
The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.- Returns:
- allowedLevel
-
setAllowedLevel
public void setAllowedLevel(AccountHolderCapability.AllowedLevelEnum 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)
-
problems
public AccountHolderCapability problems(List<CapabilityProblem> problems)
-
addProblemsItem
public AccountHolderCapability addProblemsItem(CapabilityProblem problemsItem)
-
getProblems
public List<CapabilityProblem> getProblems()
Contains verification errors and the actions that you can take to resolve them.- Returns:
- problems
-
setProblems
public void setProblems(List<CapabilityProblem> 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)
-
verificationStatus
public AccountHolderCapability verificationStatus(AccountHolderCapability.VerificationStatusEnum verificationStatus)
-
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
-
setVerificationStatus
public void setVerificationStatus(AccountHolderCapability.VerificationStatusEnum verificationStatus)
-
equals
public boolean equals(Object o)
Return true if this AccountHolderCapability object is equal to o.
-
fromJson
public static AccountHolderCapability fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountHolderCapability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountHolderCapability
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountHolderCapability
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountHolderCapability to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-