Package model
Class CreateFileRequest
- java.lang.Object
-
- model.CreateFileRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateFileRequest extends Object
CreateFileRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateFileRequest.CustomTypeAdapterFactorystatic classCreateFileRequest.TypeEnumThe type of document.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DISPLAY_NAMEstatic StringSERIALIZED_NAME_LINKED_TOstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description CreateFileRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFileRequestdisplayName(String displayName)booleanequals(Object o)static CreateFileRequestfromJson(String jsonString)Create an instance of CreateFileRequest given an JSON stringStringgetDisplayName()The name of the `File` you'll create.StringgetLinkedTo()The resource ID that you want linked to the `File` (e.g.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.CreateFileRequest.TypeEnumgetType()The type of document.inthashCode()CreateFileRequestlinkedTo(String linkedTo)CreateFileRequestputTagsItem(String key, String tagsItem)voidsetDisplayName(String displayName)voidsetLinkedTo(String linkedTo)voidsetTags(Map<String,String> tags)voidsetType(CreateFileRequest.TypeEnum type)CreateFileRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of CreateFileRequest to an JSON stringStringtoString()CreateFileRequesttype(CreateFileRequest.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKED_TO
public static final String SERIALIZED_NAME_LINKED_TO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
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
-
type
public CreateFileRequest type(CreateFileRequest.TypeEnum type)
-
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
-
setType
public void setType(CreateFileRequest.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-