Package com.onfido.model
Class DocumentShared
- java.lang.Object
-
- com.onfido.model.DocumentShared
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class DocumentShared extends Object
DocumentShared
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentShared.CustomTypeAdapterFactorystatic classDocumentShared.FileTypeEnumThe file type of the uploaded filestatic classDocumentShared.SideEnumThe side of the document, if applicable.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLICANT_IDstatic StringSERIALIZED_NAME_FILE_TYPEstatic StringSERIALIZED_NAME_ISSUING_COUNTRYstatic StringSERIALIZED_NAME_SIDEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description DocumentShared()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentSharedapplicantId(UUID applicantId)booleanequals(Object o)DocumentSharedfileType(DocumentShared.FileTypeEnum fileType)static DocumentSharedfromJson(String jsonString)Create an instance of DocumentShared given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.UUIDgetApplicantId()The ID of the applicant whose document is being uploaded.DocumentShared.FileTypeEnumgetFileType()The file type of the uploaded fileCountryCodesgetIssuingCountry()The issuing country of the document, a 3-letter ISO code.DocumentShared.SideEnumgetSide()The side of the document, if applicable.DocumentTypesgetType()The type of documentinthashCode()DocumentSharedissuingCountry(CountryCodes issuingCountry)DocumentSharedputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetApplicantId(UUID applicantId)voidsetFileType(DocumentShared.FileTypeEnum fileType)voidsetIssuingCountry(CountryCodes issuingCountry)voidsetSide(DocumentShared.SideEnum side)voidsetType(DocumentTypes type)DocumentSharedside(DocumentShared.SideEnum side)StringtoJson()Convert an instance of DocumentShared to an JSON stringStringtoString()DocumentSharedtype(DocumentTypes type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FILE_TYPE
public static final String SERIALIZED_NAME_FILE_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIDE
public static final String SERIALIZED_NAME_SIDE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUING_COUNTRY
public static final String SERIALIZED_NAME_ISSUING_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICANT_ID
public static final String SERIALIZED_NAME_APPLICANT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
fileType
public DocumentShared fileType(DocumentShared.FileTypeEnum fileType)
-
getFileType
@Nullable public DocumentShared.FileTypeEnum getFileType()
The file type of the uploaded file- Returns:
- fileType
-
setFileType
public void setFileType(DocumentShared.FileTypeEnum fileType)
-
type
public DocumentShared type(DocumentTypes type)
-
getType
@Nullable public DocumentTypes getType()
The type of document- Returns:
- type
-
setType
public void setType(DocumentTypes type)
-
side
public DocumentShared side(DocumentShared.SideEnum side)
-
getSide
@Nullable public DocumentShared.SideEnum getSide()
The side of the document, if applicable. The possible values are front and back- Returns:
- side
-
setSide
public void setSide(DocumentShared.SideEnum side)
-
issuingCountry
public DocumentShared issuingCountry(CountryCodes issuingCountry)
-
getIssuingCountry
@Nullable public CountryCodes getIssuingCountry()
The issuing country of the document, a 3-letter ISO code.- Returns:
- issuingCountry
-
setIssuingCountry
public void setIssuingCountry(CountryCodes issuingCountry)
-
applicantId
public DocumentShared applicantId(UUID applicantId)
-
getApplicantId
@Nullable public UUID getApplicantId()
The ID of the applicant whose document is being uploaded.- Returns:
- applicantId
-
setApplicantId
public void setApplicantId(UUID applicantId)
-
putAdditionalProperty
public DocumentShared putAdditionalProperty(String key, Object value)
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 DocumentShared instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 DocumentShared
-
fromJson
public static DocumentShared fromJson(String jsonString) throws IOException
Create an instance of DocumentShared given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentShared
- Throws:
IOException- if the JSON string is invalid with respect to DocumentShared
-
toJson
public String toJson()
Convert an instance of DocumentShared to an JSON string- Returns:
- JSON string
-
-