Package com.onfido.model
Class ExtractionDocumentClassification
- java.lang.Object
-
- com.onfido.model.ExtractionDocumentClassification
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class ExtractionDocumentClassification extends Object
ExtractionDocumentClassification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtractionDocumentClassification.CustomTypeAdapterFactorystatic classExtractionDocumentClassification.SubtypeEnumThe document subtype (if available).
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOCUMENT_TYPEstatic StringSERIALIZED_NAME_ISSUING_COUNTRYstatic StringSERIALIZED_NAME_ISSUING_STATEstatic StringSERIALIZED_NAME_SUBTYPEstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description ExtractionDocumentClassification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtractionDocumentClassificationdocumentType(DocumentTypes documentType)booleanequals(Object o)static ExtractionDocumentClassificationfromJson(String jsonString)Create an instance of ExtractionDocumentClassification given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.DocumentTypesgetDocumentType()Type of document.CountryCodesgetIssuingCountry()Document country in 3-letter ISO code.StringgetIssuingState()The state that issued the document (if available).ExtractionDocumentClassification.SubtypeEnumgetSubtype()The document subtype (if available).StringgetVersion()The document issuing version (if available).inthashCode()ExtractionDocumentClassificationissuingCountry(CountryCodes issuingCountry)ExtractionDocumentClassificationissuingState(String issuingState)ExtractionDocumentClassificationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetDocumentType(DocumentTypes documentType)voidsetIssuingCountry(CountryCodes issuingCountry)voidsetIssuingState(String issuingState)voidsetSubtype(ExtractionDocumentClassification.SubtypeEnum subtype)voidsetVersion(String version)ExtractionDocumentClassificationsubtype(ExtractionDocumentClassification.SubtypeEnum subtype)StringtoJson()Convert an instance of ExtractionDocumentClassification to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundExtractionDocumentClassificationversion(String version)
-
-
-
Field Detail
-
SERIALIZED_NAME_ISSUING_COUNTRY
public static final String SERIALIZED_NAME_ISSUING_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENT_TYPE
public static final String SERIALIZED_NAME_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUING_STATE
public static final String SERIALIZED_NAME_ISSUING_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBTYPE
public static final String SERIALIZED_NAME_SUBTYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
issuingCountry
public ExtractionDocumentClassification issuingCountry(CountryCodes issuingCountry)
-
getIssuingCountry
@Nullable public CountryCodes getIssuingCountry()
Document country in 3-letter ISO code.- Returns:
- issuingCountry
-
setIssuingCountry
public void setIssuingCountry(CountryCodes issuingCountry)
-
documentType
public ExtractionDocumentClassification documentType(DocumentTypes documentType)
-
getDocumentType
@Nullable public DocumentTypes getDocumentType()
Type of document.- Returns:
- documentType
-
setDocumentType
public void setDocumentType(DocumentTypes documentType)
-
issuingState
public ExtractionDocumentClassification issuingState(String issuingState)
-
getIssuingState
@Nullable public String getIssuingState()
The state that issued the document (if available).- Returns:
- issuingState
-
setIssuingState
public void setIssuingState(String issuingState)
-
subtype
public ExtractionDocumentClassification subtype(ExtractionDocumentClassification.SubtypeEnum subtype)
-
getSubtype
@Nullable public ExtractionDocumentClassification.SubtypeEnum getSubtype()
The document subtype (if available).- Returns:
- subtype
-
setSubtype
public void setSubtype(ExtractionDocumentClassification.SubtypeEnum subtype)
-
version
public ExtractionDocumentClassification version(String version)
-
getVersion
@Nullable public String getVersion()
The document issuing version (if available).- Returns:
- version
-
setVersion
public void setVersion(String version)
-
putAdditionalProperty
public ExtractionDocumentClassification 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 ExtractionDocumentClassification 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 ExtractionDocumentClassification
-
fromJson
public static ExtractionDocumentClassification fromJson(String jsonString) throws IOException
Create an instance of ExtractionDocumentClassification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExtractionDocumentClassification
- Throws:
IOException- if the JSON string is invalid with respect to ExtractionDocumentClassification
-
toJson
public String toJson()
Convert an instance of ExtractionDocumentClassification to an JSON string- Returns:
- JSON string
-
-