Package model

Class CreateFileRequest

java.lang.Object
model.CreateFileRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class CreateFileRequest extends Object
CreateFileRequest
  • Field Details

  • Constructor Details

    • CreateFileRequest

      public CreateFileRequest()
  • Method Details

    • displayName

      public CreateFileRequest displayName(String displayName)
    • getDisplayName

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

      public void setDisplayName(String displayName)
    • linkedTo

      public CreateFileRequest linkedTo(String linkedTo)
    • 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)
    • type

    • 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
    • setType

      public void setType(CreateFileRequest.TypeEnum type)
    • tags

      public CreateFileRequest tags(Map<String,String> tags)
    • putTagsItem

      public CreateFileRequest putTagsItem(String key, String tagsItem)
    • getTags

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

      public void setTags(Map<String,String> tags)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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