Package com.onfido.model
Class DocumentODPReasons
- java.lang.Object
-
- com.onfido.model.DocumentODPReasons
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class DocumentODPReasons extends Object
DocumentODPReasons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentODPReasons.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOCUMENT_ON_PRINTED_PAPERstatic StringSERIALIZED_NAME_PHOTO_OF_SCREENstatic StringSERIALIZED_NAME_SCANstatic StringSERIALIZED_NAME_SCREENSHOT
-
Constructor Summary
Constructors Constructor Description DocumentODPReasons()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentODPReasonsdocumentOnPrintedPaper(String documentOnPrintedPaper)booleanequals(Object o)static DocumentODPReasonsfromJson(String jsonString)Create an instance of DocumentODPReasons given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDocumentOnPrintedPaper()When the applicant has previously captured an image of the document, printed it out, and has now taken a photo of this print out to upload.StringgetPhotoOfScreen()When the applicant's document is on a physical screen or device.StringgetScan()When the document has clearly been captured using a scanner and there are visible indicators of thisStringgetScreenshot()When the applicant has used their mobile phone, tablet, or computer to take a photo within the device.inthashCode()DocumentODPReasonsphotoOfScreen(String photoOfScreen)DocumentODPReasonsputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.DocumentODPReasonsscan(String scan)DocumentODPReasonsscreenshot(String screenshot)voidsetDocumentOnPrintedPaper(String documentOnPrintedPaper)voidsetPhotoOfScreen(String photoOfScreen)voidsetScan(String scan)voidsetScreenshot(String screenshot)StringtoJson()Convert an instance of DocumentODPReasons to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PHOTO_OF_SCREEN
public static final String SERIALIZED_NAME_PHOTO_OF_SCREEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCREENSHOT
public static final String SERIALIZED_NAME_SCREENSHOT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENT_ON_PRINTED_PAPER
public static final String SERIALIZED_NAME_DOCUMENT_ON_PRINTED_PAPER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCAN
public static final String SERIALIZED_NAME_SCAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
photoOfScreen
public DocumentODPReasons photoOfScreen(String photoOfScreen)
-
getPhotoOfScreen
@Nullable public String getPhotoOfScreen()
When the applicant's document is on a physical screen or device.- Returns:
- photoOfScreen
-
setPhotoOfScreen
public void setPhotoOfScreen(String photoOfScreen)
-
screenshot
public DocumentODPReasons screenshot(String screenshot)
-
getScreenshot
@Nullable public String getScreenshot()
When the applicant has used their mobile phone, tablet, or computer to take a photo within the device.- Returns:
- screenshot
-
setScreenshot
public void setScreenshot(String screenshot)
-
documentOnPrintedPaper
public DocumentODPReasons documentOnPrintedPaper(String documentOnPrintedPaper)
-
getDocumentOnPrintedPaper
@Nullable public String getDocumentOnPrintedPaper()
When the applicant has previously captured an image of the document, printed it out, and has now taken a photo of this print out to upload.- Returns:
- documentOnPrintedPaper
-
setDocumentOnPrintedPaper
public void setDocumentOnPrintedPaper(String documentOnPrintedPaper)
-
scan
public DocumentODPReasons scan(String scan)
-
getScan
@Nullable public String getScan()
When the document has clearly been captured using a scanner and there are visible indicators of this- Returns:
- scan
-
setScan
public void setScan(String scan)
-
putAdditionalProperty
public DocumentODPReasons 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 DocumentODPReasons 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 DocumentODPReasons
-
fromJson
public static DocumentODPReasons fromJson(String jsonString) throws IOException
Create an instance of DocumentODPReasons given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentODPReasons
- Throws:
IOException- if the JSON string is invalid with respect to DocumentODPReasons
-
toJson
public String toJson()
Convert an instance of DocumentODPReasons to an JSON string- Returns:
- JSON string
-
-