Package model

Class CreateFileRequest


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class CreateFileRequest
    extends Object
    CreateFileRequest
    • Constructor Detail

      • CreateFileRequest

        public CreateFileRequest()
    • Method Detail

      • getDisplayName

        @Nullable
        public String getDisplayName()
        The name of the `File` you'll create.
        Returns:
        displayName
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getLinkedTo

        @Nullable
        public String getLinkedTo()
        The resource ID that you want linked to the `File` (e.g. Merchant ID).
        Returns:
        linkedTo
      • setLinkedTo

        public void setLinkedTo​(String linkedTo)
      • getTags

        @Nullable
        public Map<String,​String> getTags()
        Key value pair for annotating custom meta data (e.g. order numbers).
        Returns:
        tags
      • getType

        @Nullable
        public CreateFileRequest.TypeEnum getType()
        The type of document. | Available values include: <br>Identity Verification<ul><li> **DRIVERS\\_LICENSE\\_FRONT**<li>**DRIVERS\\_LICENSE\\_BACK**<li>**IDENTIFICATION\\_CARD\\_FRONT**<li>**IDENTIFICATION\\_CARD\\_BACK**</ul>Bank account validation<ul><li>**BANK\\_STATEMENT**</ul>Business Verification<ul><li>**TAX\\_DOCUMENT**<li>**BUSINESS\\_REGISTRATION**<li>**BUSINESS\\_ADDRESS\\_VERIFICATION**</ul>Additional<ul><li>**OTHER**<li>**PCI\\_DOCUMENT**<li>**PASSPORT**<ul>
        Returns:
        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 CreateFileRequest
      • fromJson

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

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