what-the-bank/sources/com/kofax/mobile/sdk/capture/passport/a.java

112 lines
3.8 KiB
Java

package com.kofax.mobile.sdk.capture.passport;
import com.kofax.mobile.sdk._internal.extraction.IJsonExactionHelper;
import com.kofax.mobile.sdk._internal.extraction.id.IIdFieldNameConvention;
import com.kofax.mobile.sdk._internal.i;
import com.kofax.mobile.sdk.capture.model.Field;
import com.kofax.mobile.sdk.capture.model.Passport;
/* loaded from: classes3.dex */
class a extends Passport implements i {
private final IJsonExactionHelper ZW;
private String ZX;
private final IIdFieldNameConvention acl;
/* JADX INFO: Access modifiers changed from: package-private */
public a(IIdFieldNameConvention iIdFieldNameConvention, IJsonExactionHelper iJsonExactionHelper, String str) {
if (str == null) {
throw new IllegalArgumentException("json cannot be null");
}
if (iIdFieldNameConvention == null) {
throw new IllegalArgumentException("convention cannot be null");
}
if (iJsonExactionHelper == null) {
throw new IllegalArgumentException("helper cannot be null");
}
this.ZW = iJsonExactionHelper;
iJsonExactionHelper.init(str);
this.acl = iIdFieldNameConvention;
setJson(str);
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getFirstName() {
return this.ZW.getString(this.acl.getFirstNameFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getMiddleName() {
return this.ZW.getString(this.acl.getMiddleNameFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getLastName() {
return this.ZW.getString(this.acl.getLastNameFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getDateOfBirth() {
return this.ZW.getString(this.acl.getDateOfBirthFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getGender() {
return this.ZW.getString(this.acl.getGenderFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getIssueDate() {
return this.ZW.getString(this.acl.getDateOfIssueFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getExpirationDate() {
return this.ZW.getString(this.acl.getDateOfExpirationFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getPassportNumber() {
return this.ZW.getString("PassportNumber");
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getCountry() {
return this.ZW.getString(this.acl.getCountryShortFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getCountryLong() {
return this.ZW.getString(this.acl.getCountryFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getNationality() {
return this.ZW.getString(this.acl.getNationalityFieldName());
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getPersonalNumber() {
return this.ZW.getString("PersonalNumber");
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getMRZ1() {
return this.ZW.getString("MRZ1");
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public Field<String> getMRZ2() {
return this.ZW.getString("MRZ2");
}
@Override // com.kofax.mobile.sdk._internal.i
public void setJson(String str) {
this.ZX = str;
}
@Override // com.kofax.mobile.sdk.capture.model.Passport
public String getRawData() {
return this.ZX;
}
}