SouthAfricaGreenBookModel
A class derived from GreenBookModel containing details specific to the South African green book
A class derived from GreenBookModel containing details specific to the South African green book
import com.sybrin.identity.countries.SouthAfrica.GreenBook.SouthAfricaGreenBookModel
extends
GreenBookModel
The following validation and verification applies to this document:
public int getIdentityNumberADigit ()
Returns the A digits as found within the subject's identity number.
public int getIdentityNumberCheckDigit ()
Returns the check digit used to verify the subject's identity number as found on the green book document.
public
CitizenshipType
getIdentityNumberCitizenship ()
Returns the type of citizen a subject's is as found within the subject's identity number.
public Date getIdentityNumberDateOfBirth ()
Returns the subject's date of birth as found within the subject's identity number.
public String getIdentityNumberSex ()
Returns the subject's sex as found within the subject's identity number.
Public methods
Data source
int
OCR
int
OCR
OCR
Date
OCR
OCR
Data source
<T extends DocumentModel>
N/A
Bitmap
Front of card
String
Local storage
Bitmap
Front of card
String
Local storage
Bitmap
Front of card
String
Local storage
void
saveImages(Context context)
Saves all images within the model
to the local device and populates
all path fields.
N/A
Data source
OCR
String
OCR
Date
OCR
Date
OCR
String
OCR
String
OCR
String
OCR
Value
Validation type
Identity number
Check digit using Luhn algorithm
Returns
int
Returns
int
Returns
The subject's citizenship according to their identity number. This value cannot be null
.
Returns
Date
The subject's date of birth according to their identity number. This value cannot be null
.
Returns
This value cannot be null
.