Class OwnerDocumentUploadRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.OwnerDocumentUploadRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OwnerDocumentUploadRequest
extends Object
implements Serializable
The request to upload a document for an owner of the account
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontentData(W8benDocument contentData) documentSubType(String documentSubType) documentType(OwnerDocumentType documentType) booleanstatic OwnerDocumentUploadRequestCreate an instance of OwnerDocumentUploadRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The base64 string encoding of the document contents.Get contentDataThe specific type of document, e.g.Get documentTypeThis field is required if content is specified.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetContent(String content) voidsetContentData(W8benDocument contentData) voidsetDocumentSubType(String documentSubType) voidsetDocumentType(OwnerDocumentType documentType) voidsetMimeType(String mimeType) toJson()Convert an instance of OwnerDocumentUploadRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_CONTENT_DATA
- See Also:
-
SERIALIZED_NAME_DOCUMENT_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_DOCUMENT_TYPE
- See Also:
-
SERIALIZED_NAME_MIME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OwnerDocumentUploadRequest
public OwnerDocumentUploadRequest()
-
-
Method Details
-
content
-
getContent
The base64 string encoding of the document contents. This property is required unless content_data is provided.- Returns:
- content
-
setContent
-
contentData
-
getContentData
Get contentData- Returns:
- contentData
-
setContentData
-
documentSubType
-
getDocumentSubType
The specific type of document, e.g. passport. This is a free-form property.- Returns:
- documentSubType
-
setDocumentSubType
-
documentType
-
getDocumentType
Get documentType- Returns:
- documentType
-
setDocumentType
-
mimeType
-
getMimeType
This field is required if content is specified. ENUM: application/pdf, image/png, or image/jpeg. If document_type is w8ben then application/json is also accepted- Returns:
- mimeType
-
setMimeType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the OwnerDocumentUploadRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to OwnerDocumentUploadRequest
-
fromJson
Create an instance of OwnerDocumentUploadRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OwnerDocumentUploadRequest
- Throws:
IOException- if the JSON string is invalid with respect to OwnerDocumentUploadRequest
-
toJson
Convert an instance of OwnerDocumentUploadRequest to an JSON string- Returns:
- JSON string
-