Class Attachment


  • public class Attachment
    extends Object
    Attachment
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • content

        public Attachment content​(byte[] content)
      • getContent

        public byte[] getContent()
        The document in Base64-encoded string format.
        Returns:
        content
      • setContent

        public void setContent​(byte[] content)
        The document in Base64-encoded string format.
        Parameters:
        content -
      • getContentType

        @Deprecated
        public String getContentType()
        Deprecated.
        The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.
        Returns:
        contentType
      • setContentType

        @Deprecated
        public void setContentType​(String contentType)
        Deprecated.
        The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.
        Parameters:
        contentType -
      • getFilename

        @Deprecated
        public String getFilename()
        Deprecated.
        The name of the file including the file extension.
        Returns:
        filename
      • setFilename

        @Deprecated
        public void setFilename​(String filename)
        Deprecated.
        The name of the file including the file extension.
        Parameters:
        filename -
      • getPageName

        public String getPageName()
        The name of the file including the file extension.
        Returns:
        pageName
      • setPageName

        public void setPageName​(String pageName)
        The name of the file including the file extension.
        Parameters:
        pageName -
      • getPageType

        public String getPageType()
        Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.
        Returns:
        pageType
      • setPageType

        public void setPageType​(String pageType)
        Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.
        Parameters:
        pageType -
      • equals

        public boolean equals​(Object o)
        Return true if this Attachment object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static Attachment fromJson​(String jsonString)
                                   throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Attachment given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Attachment
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Attachment
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Attachment to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException