Class OwnerEntity


  • public class OwnerEntity
    extends Object
    OwnerEntity
    • Constructor Detail

      • OwnerEntity

        public OwnerEntity()
    • Method Detail

      • getId

        public String getId()
        Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
        Returns:
        id
      • setId

        public void setId​(String id)
      • getType

        public String getType()
        Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**.
        Returns:
        type
      • setType

        public void setType​(String type)
      • 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 OwnerEntity
      • fromJson

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

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