PassportModel
A class derived from DocumentModel containing details pertaining to all passport documents
import com.sybrin.identity.models.PassportModel
extends
DocumentModel
Summary
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 |
Inherited methods
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 |
Public methods
getDateOfBirth
public Date getDateOfBirth ()
Returns the subject's date of birth as found on the passport.
Returns | |
Date | The subject's date of birth. This value cannot be |
getDateOfExpiry
public Date getDateOfExpiry ()
Returns the passport's date of expiry as found on the passport.
Returns | |
Date | The passport's date of expiry. This value cannot be |
getIssuingCountryCode
public String getIssuingCountryCode ()
Returns the country code of the country the passport was issued in as found on the passport.
Returns | |
String | The passport's issuing country code. This value cannot be |
getNames
public String getNames ()
Returns the subject's names as found on the green book document.
Returns | |
String | The subject's names. This value cannot be |
getNationality
public String getNationality ()
Returns the subject's nationality as found on the passport.
Returns | |
String | The subject's nationality. This value cannot be |
getPassportNumber
public String getPassportNumber ()
Returns the passport number as found on the passport.
Returns | |
String | The passport number. This value cannot be |
getPassportType
public String getPassportType ()
Returns the passport's type as found on the passport.
Returns | |
String | The passport type. This value cannot be |
getSex
public String getSex ()
Returns the subject's sex as found on the passport.
Returns | |
This value cannot be |
getSurname
public String getSurname ()
Returns the subject's surname as found on the passport.
Returns | |
String | The subject's surname. This value cannot be |