Class LegalEntityCapability


  • public class LegalEntityCapability
    extends Object
    LegalEntityCapability
    • Method Detail

      • getAllowed

        public Boolean getAllowed()
        Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful
        Returns:
        allowed
      • getAllowedLevel

        public LegalEntityCapability.AllowedLevelEnum getAllowedLevel()
        The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**.
        Returns:
        allowedLevel
      • getAllowedSettings

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

        public void setAllowedSettings​(CapabilitySettings allowedSettings)
      • getProblems

        public List<CapabilityProblem> 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 Legal Entity is permitted to use the capability,
        Returns:
        requested
      • getRequestedLevel

        public LegalEntityCapability.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 CapabilitySettings getRequestedSettings()
        Get requestedSettings
        Returns:
        requestedSettings
      • setRequestedSettings

        public void setRequestedSettings​(CapabilitySettings requestedSettings)
      • getTransferInstruments

        public List<SupportingEntityCapability> getTransferInstruments()
        Capability status for transfer instruments associated with legal entity
        Returns:
        transferInstruments
      • getVerificationStatus

        public String 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 LegalEntityCapability
      • fromJson

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

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