Class IncodeWelcome.OCRData
-
- All Implemented Interfaces:
public class IncodeWelcome.OCRData
-
-
Field Summary
Fields Modifier and Type Field Description public String
birthDate
public String
fullName
public String
firstName
public String
givenNameMrz
public String
middleName
public String
lastName
public String
lastNameMrz
public String
address
public String
gender
public int
registrationDate
public int
issueDate
public int
expirationDate
public String
claveDeElector
public String
curp
public String
numeroEmisionCredencial
public String
cic
public String
ocr
public String
issuingCountry
public int
notExtracted
public List<String>
notExtractedDetails
public IncodeWelcome.AddressFields
addressFields
public IncodeWelcome.AddressFields
addressFieldsFromStatement
public Map<String, Object>
extendedOcrJsonData
-
Constructor Summary
Constructors Constructor Description IncodeWelcome.OCRData(String birthDate, String fullName, String firstName, String givenNameMrz, String middleName, String lastName, String lastNameMrz, String address, String gender, int registrationDate, int issueDate, int expirationDate, String claveDeElector, String curp, String numeroEmisionCredencial, String cic, String ocr, String issuingCountry, int notExtracted, List<String> notExtractedDetails, Map<String, Object> extendedOcrJsonData)
IncodeWelcome.OCRData(ResponseOCRData response)
-
Method Summary
Modifier and Type Method Description String
getBirthDate()
String
getFullName()
String
getFirstName()
String
getGivenNameMrz()
String
getMiddleName()
String
getLastName()
String
getLastNameMrz()
String
getAddress()
String
getGender()
int
getRegistrationDate()
int
getIssueDate()
int
getExpirationDate()
String
getClaveDeElector()
String
getCurp()
String
getNumeroEmisionCredencial()
String
getCic()
String
getOcr()
String
getIssuingCountry()
int
getNotExtracted()
List<String>
getNotExtractedDetails()
IncodeWelcome.AddressFields
getAddressFields()
IncodeWelcome.AddressFields
getAddressFieldsFromStatement()
Map<String, Object>
getExtendedOcrJsonData()
static IncodeWelcome.OCRData
createEmpty()
static IncodeWelcome.OCRData
createDummy()
String
toString()
-
-
Constructor Detail
-
IncodeWelcome.OCRData
IncodeWelcome.OCRData(String birthDate, String fullName, String firstName, String givenNameMrz, String middleName, String lastName, String lastNameMrz, String address, String gender, int registrationDate, int issueDate, int expirationDate, String claveDeElector, String curp, String numeroEmisionCredencial, String cic, String ocr, String issuingCountry, int notExtracted, List<String> notExtractedDetails, Map<String, Object> extendedOcrJsonData)
-
IncodeWelcome.OCRData
IncodeWelcome.OCRData(ResponseOCRData response)
-
-
Method Detail
-
getBirthDate
@Nullable() String getBirthDate()
- Returns:
User birth Date as UNIX timestamp in milliseconds, empty if unable to extract
-
getFullName
@Nullable() String getFullName()
- Returns:
Full name of the user, empty if unable to extract
-
getFirstName
@Nullable() String getFirstName()
- Returns:
First name of the user, empty if unable to extract
-
getGivenNameMrz
@Nullable() String getGivenNameMrz()
-
getMiddleName
@Nullable() String getMiddleName()
- Returns:
Middle (or maternal) name of the user, empty if unable to extract
-
getLastName
@Nullable() String getLastName()
- Returns:
Last (or paternal) name of the user, empty if unable to extract
-
getLastNameMrz
@Nullable() String getLastNameMrz()
-
getAddress
@Nullable() String getAddress()
- Returns:
Address of the user, empty if unable to extract
-
getGender
@Nullable() String getGender()
- Returns:
Gender of the user, "M" for male, "F" for female, empty if unable to extract
-
getRegistrationDate
int getRegistrationDate()
- Returns:
year when the person was registered, 0 if unable to extract
-
getIssueDate
int getIssueDate()
- Returns:
year when the ID was issued, 0 if unable to extract
-
getExpirationDate
int getExpirationDate()
- Returns:
year when the ID will expire, 0 if unable to extract
-
getClaveDeElector
String getClaveDeElector()
- Returns:
String, 18 characters. Clave de elector as read from id.
-
getNumeroEmisionCredencial
String getNumeroEmisionCredencial()
- Returns:
Numero Emision Credencial as read from id.
-
getCic
String getCic()
- Returns:
String, 9 characters. Cic as read from id. (This field is read from back side of id)
-
getOcr
String getOcr()
- Returns:
String, 13 characters. Ocr as read from id. (This field is read from back side of id)
-
getIssuingCountry
String getIssuingCountry()
- Returns:
Country that issued the document
-
getNotExtracted
int getNotExtracted()
- Returns:
Number of fields that could not be extracted by the Ocr.
-
getNotExtractedDetails
List<String> getNotExtractedDetails()
- Returns:
List of fields that could not be extracted from the id.
-
getAddressFields
IncodeWelcome.AddressFields getAddressFields()
- Returns:
Address separated into following fields: street, colony, postal code, city and state read from the ID.
-
getAddressFieldsFromStatement
IncodeWelcome.AddressFields getAddressFieldsFromStatement()
- Returns:
Address separated into following fields: street, colony, postal code, city and state read from the address statement.
-
getExtendedOcrJsonData
Map<String, Object> getExtendedOcrJsonData()
- Returns:
A map with the raw data from the server response.
-
createEmpty
static IncodeWelcome.OCRData createEmpty()
-
createDummy
static IncodeWelcome.OCRData createDummy()
-
-
-
-