Package com.onfido.models
Class Document
- java.lang.Object
-
- com.onfido.models.Document
-
public final class Document extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Request
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)java.time.OffsetDateTimegetCreatedAt()The date and time at which the document was uploadedStringgetDownloadHref()The uri that can be used to download the documentStringgetFileName()The name of the uploaded fileintgetFileSize()The size of the file in bytesStringgetFileType()The file type of the uploaded fileStringgetHref()The uri of this resourceStringgetId()The unique identifier for the documentStringgetIssuingCountry()The issuing country of the document, a 3-letter ISO code.StringgetSide()The side of the document, if applicable.StringgetType()The type of documentinthashCode()static Document.Requestrequest()StringtoString()
-
-
-
Method Detail
-
request
public static Document.Request request()
-
getId
public String getId()
The unique identifier for the document- Returns:
- The unique identifier for the document
-
getCreatedAt
public java.time.OffsetDateTime getCreatedAt()
The date and time at which the document was uploaded- Returns:
- The date and time at which the document was uploaded
-
getFileName
public String getFileName()
The name of the uploaded file- Returns:
- The name of the uploaded file
-
getFileSize
public int getFileSize()
The size of the file in bytes- Returns:
- The size of the file in bytes
-
getFileType
public String getFileType()
The file type of the uploaded file- Returns:
- The file type of the uploaded file
-
getType
public String getType()
The type of document- Returns:
- The type of document
-
getSide
public String getSide()
The side of the document, if applicable. The possible values are front and back- Returns:
- The side of the document, if applicable. The possible values are front and back
-
getIssuingCountry
public String getIssuingCountry()
The issuing country of the document, a 3-letter ISO code.- Returns:
- The issuing country of the document, a 3-letter ISO code.
-
getHref
public String getHref()
The uri of this resource- Returns:
- The uri of this resource
-
getDownloadHref
public String getDownloadHref()
The uri that can be used to download the document- Returns:
- The uri that can be used to download the document
-
-