Class AccountHolderCapability


  • public class AccountHolderCapability
    extends Object
    AccountHolderCapability
    • 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
      • getAllowedSettings

        public JSONObject getAllowedSettings()
        Get allowedSettings
        Returns:
        allowedSettings
      • setAllowedSettings

        public void setAllowedSettings​(JSONObject allowedSettings)
      • 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
      • 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)
      • 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
      • getRequestedSettings

        public JSONObject getRequestedSettings()
        Get requestedSettings
        Returns:
        requestedSettings
      • setRequestedSettings

        public void setRequestedSettings​(JSONObject requestedSettings)
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        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