Class AccountSupportingEntityCapability


  • public class AccountSupportingEntityCapability
    extends Object
    AccountSupportingEntityCapability
    • Method Detail

      • getAllowed

        public Boolean getAllowed()
        Indicates whether the supporting entity 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
      • 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)
      • getId

        public String getId()
        The ID of the supporting entity.
        Returns:
        id
      • 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 AccountSupportingEntityCapability.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
      • getVerificationStatus

        public AccountSupportingEntityCapability.VerificationStatusEnum getVerificationStatus()
        The status of the verification checks for the supporting entity 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
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to AccountSupportingEntityCapability
      • fromJson

        public static AccountSupportingEntityCapability fromJson​(String jsonString)
                                                          throws IOException
        Create an instance of AccountSupportingEntityCapability given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of AccountSupportingEntityCapability
        Throws:
        IOException - if the JSON string is invalid with respect to AccountSupportingEntityCapability
      • toJson

        public String toJson()
        Convert an instance of AccountSupportingEntityCapability to an JSON string
        Returns:
        JSON string