Class IncodeWelcome.OCRData
-
- All Implemented Interfaces:
public final class IncodeWelcome.OCRData
-
-
Field Summary
Fields Modifier and Type Field Description private final StringbirthDateprivate final StringfullNameprivate final StringfirstNameprivate final StringgivenNameMrzprivate final StringmiddleNameprivate final StringlastNameprivate final StringlastNameMrzprivate final Stringaddressprivate final Stringgenderprivate final IntegerregistrationDateprivate final IntegerissueDateprivate final IntegerexpirationDateprivate final StringclaveDeElectorprivate final Stringcurpprivate final StringnumeroEmisionCredencialprivate final Stringcicprivate final Stringocrprivate final StringissuingCountryprivate final IntegernotExtractedprivate final List<String>notExtractedDetailsprivate final IncodeWelcome.AddressFieldsaddressFieldsprivate final IncodeWelcome.AddressFieldsaddressFieldsFromStatementprivate final 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, Integer registrationDate, Integer issueDate, Integer expirationDate, String claveDeElector, String curp, String numeroEmisionCredencial, String cic, String ocr, String issuingCountry, Integer notExtracted, List<String> notExtractedDetails, Map<String, Object> extendedOcrJsonData)IncodeWelcome.OCRData(ResponseOCRData response)
-
Method Summary
Modifier and Type Method Description final StringgetBirthDate()User birth Date as UNIX timestamp in milliseconds, empty if unable to extract final StringgetFullName()Full name of the user, empty if unable to extract final StringgetFirstName()First name of the user, empty if unable to extract final StringgetGivenNameMrz()final StringgetMiddleName()Middle (or maternal) name of the user, empty if unable to extract final StringgetLastName()Last (or paternal) name of the user, empty if unable to extract final StringgetLastNameMrz()final StringgetAddress()Address of the user, empty if unable to extract final StringgetGender()Gender of the user, "M" for male, "F" for female, empty if unable to extract final IntegergetRegistrationDate()year when the person was registered, 0 if unable to extract final IntegergetIssueDate()year when the ID was issued, 0 if unable to extract final IntegergetExpirationDate()year when the ID will expire, 0 if unable to extract final StringgetClaveDeElector()String, 18 characters. final StringgetCurp()String, 18 characters. final StringgetNumeroEmisionCredencial()Numero Emision Credencial as read from id. final StringgetCic()String, 9 characters. final StringgetOcr()String, 13 characters. final StringgetIssuingCountry()Country that issued the document final IntegergetNotExtracted()Number of fields that could not be extracted by the Ocr. final List<String>getNotExtractedDetails()List of fields that could not be extracted from the id. final IncodeWelcome.AddressFieldsgetAddressFields()Address separated into following fields: street, colony, postal code, city and state read from the ID. final IncodeWelcome.AddressFieldsgetAddressFieldsFromStatement()Address separated into following fields: street, colony, postal code, city and state read from the address statement. final Map<String, Object>getExtendedOcrJsonData()A map with the raw data from the server response. StringtoString()final static IncodeWelcome.OCRDatacreateEmpty()final static IncodeWelcome.OCRDatacreateDummy()-
-
Constructor Detail
-
IncodeWelcome.OCRData
IncodeWelcome.OCRData(String birthDate, String fullName, String firstName, String givenNameMrz, String middleName, String lastName, String lastNameMrz, String address, String gender, Integer registrationDate, Integer issueDate, Integer expirationDate, String claveDeElector, String curp, String numeroEmisionCredencial, String cic, String ocr, String issuingCountry, Integer notExtracted, List<String> notExtractedDetails, Map<String, Object> extendedOcrJsonData)
-
IncodeWelcome.OCRData
IncodeWelcome.OCRData(ResponseOCRData response)
-
-
Method Detail
-
getBirthDate
final String getBirthDate()
User birth Date as UNIX timestamp in milliseconds, empty if unable to extract
-
getFullName
final String getFullName()
Full name of the user, empty if unable to extract
-
getFirstName
final String getFirstName()
First name of the user, empty if unable to extract
-
getGivenNameMrz
final String getGivenNameMrz()
-
getMiddleName
final String getMiddleName()
Middle (or maternal) name of the user, empty if unable to extract
-
getLastName
final String getLastName()
Last (or paternal) name of the user, empty if unable to extract
-
getLastNameMrz
final String getLastNameMrz()
-
getAddress
final String getAddress()
Address of the user, empty if unable to extract
-
getGender
final String getGender()
Gender of the user, "M" for male, "F" for female, empty if unable to extract
-
getRegistrationDate
final Integer getRegistrationDate()
year when the person was registered, 0 if unable to extract
-
getIssueDate
final Integer getIssueDate()
year when the ID was issued, 0 if unable to extract
-
getExpirationDate
final Integer getExpirationDate()
year when the ID will expire, 0 if unable to extract
-
getClaveDeElector
final String getClaveDeElector()
String, 18 characters. Clave de elector as read from id.
-
getNumeroEmisionCredencial
final String getNumeroEmisionCredencial()
Numero Emision Credencial as read from id.
-
getCic
final String getCic()
String, 9 characters. Cic as read from id. (This field is read from back side of id)
-
getOcr
final String getOcr()
String, 13 characters. Ocr as read from id. (This field is read from back side of id)
-
getIssuingCountry
final String getIssuingCountry()
Country that issued the document
-
getNotExtracted
final Integer getNotExtracted()
Number of fields that could not be extracted by the Ocr.
-
getNotExtractedDetails
final List<String> getNotExtractedDetails()
List of fields that could not be extracted from the id.
-
getAddressFields
final IncodeWelcome.AddressFields getAddressFields()
Address separated into following fields: street, colony, postal code, city and state read from the ID.
-
getAddressFieldsFromStatement
final IncodeWelcome.AddressFields getAddressFieldsFromStatement()
Address separated into following fields: street, colony, postal code, city and state read from the address statement.
-
getExtendedOcrJsonData
final Map<String, Object> getExtendedOcrJsonData()
A map with the raw data from the server response.
-
createEmpty
final static IncodeWelcome.OCRData createEmpty()
-
createDummy
final static IncodeWelcome.OCRData createDummy()
-
-
-
-