Class SupportingEntityCapability


  • public class SupportingEntityCapability
    extends Object
    SupportingEntityCapability
    • Constructor Detail

      • SupportingEntityCapability

        public SupportingEntityCapability()
    • Method Detail

      • getAllowed

        public Boolean getAllowed()
        Indicates whether the supporting entity capability is allowed. If a supporting entity is allowed but its parent legal entity is not, it means there are other supporting entities that failed validation. **The allowed supporting entity can still be used**
        Returns:
        allowed
      • getId

        public String getId()
        Supporting entity reference
        Returns:
        id
      • 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 supporting entity capability is requested.
        Returns:
        requested
      • getVerificationStatus

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

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

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