PassportModel
A class derived from DocumentModel containing details pertaining to all passport documents
Last updated
A class derived from DocumentModel containing details pertaining to all passport documents
Last updated
import com.sybrin.identity.models.PassportModel
extends
DocumentModel
public Date getDateOfBirth ()
Returns the subject's date of birth as found on the passport.
public Date getDateOfExpiry ()
Returns the passport's date of expiry as found on the passport.
public String getIssuingCountryCode ()
Returns the country code of the country the passport was issued in as found on the passport.
public String getNames ()
Returns the subject's names as found on the green book document.
public String getNationality ()
Returns the subject's nationality as found on the passport.
public String getPassportNumber ()
Returns the passport number as found on the passport.
public String getPassportType ()
Returns the passport's type as found on the passport.
public String getSex ()
Returns the subject's sex as found on the passport.
public String getSurname ()
Returns the subject's surname as found on the passport.
Public methods
Data source
Date
MRZ OCR
Date
MRZ OCR
String
MRZ OCR
String
getNames()
MRZ OCR
String
MRZ OCR
String
MRZ OCR
String
MRZ OCR
getSex()
Returns the subject's sex as found on the passport.
MRZ OCR
String
MRZ OCR
Data source
<T extends DocumentModel>
N/A
Bitmap
Front of document
String
Local storage
Bitmap
Front of document
String
Local storage
Bitmap
Front of document
String
Local storage
void
saveImages(Context context)
Saves all images within the model
to the local device and populates
all path fields.
N/A
Returns
Date
The subject's date of birth. This value cannot be null
.
Returns
Date
The passport's date of expiry. This value cannot be null
.
Returns
String
The passport's issuing country code. This value cannot be null
.
Returns
String
The subject's names. This value cannot be null
.
Returns
String
The subject's nationality. This value cannot be null
.
Returns
String
The passport number. This value cannot be null
.
Returns
String
The passport type. This value cannot be null
.
Returns
This value cannot be null
.
Returns
String
The subject's surname. This value cannot be null
.