what-the-bank/sources/com/kofax/mobile/sdk/capture/check/CheckExtractor.java

105 lines
4.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.capture.check;
import com.kofax.mobile.sdk._internal.extraction.IDataUnitProcessedListener;
import com.kofax.mobile.sdk._internal.extraction.IExceptionResponseDeserializer;
import com.kofax.mobile.sdk.capture.check.CheckParameters;
import com.kofax.mobile.sdk.capture.extraction.ExceptionResponse;
import com.kofax.mobile.sdk.capture.extraction.Extractor;
import com.kofax.mobile.sdk.capture.extraction.ExtractorResponse;
import com.kofax.mobile.sdk.capture.model.Check;
import com.kofax.mobile.sdk.capture.parameter.ExtractionParameters;
import java.util.HashMap;
import java.util.Map;
import o.InterfaceC13390fZB;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class CheckExtractor extends Extractor<Check> implements IDataUnitProcessedListener {
public static final String CHECK_EXTRACT_KTA = "_check_extract_kta_";
public static final String CHECK_EXTRACT_RTTI = "_check_extract_rtti_";
static final Map<CheckParameters.CheckCountry, String> aaq = new HashMap<CheckParameters.CheckCountry, String>() { // from class: com.kofax.mobile.sdk.capture.check.CheckExtractor.1
{
put(CheckParameters.CheckCountry.NOT_SPECIFIED, null);
put(CheckParameters.CheckCountry.UNITED_STATES, "US");
put(CheckParameters.CheckCountry.CANADA, "CA");
put(CheckParameters.CheckCountry.SINGAPORE, "SI");
put(CheckParameters.CheckCountry.HONG_KONG, "HK");
put(CheckParameters.CheckCountry.AUSTRALIA, "AU");
put(CheckParameters.CheckCountry.UNITED_KINGDOM, "UK");
}
};
@InterfaceC13390fZB(a = CHECK_EXTRACT_RTTI)
@InterfaceC13391fZD
IExceptionResponseDeserializer ZB;
@InterfaceC13390fZB(a = CHECK_EXTRACT_KTA)
@InterfaceC13391fZD
String ZC;
@InterfaceC13390fZB(a = CHECK_EXTRACT_KTA)
@InterfaceC13391fZD
IExceptionResponseDeserializer ZF;
@InterfaceC13390fZB(a = CHECK_EXTRACT_RTTI)
@InterfaceC13391fZD
String Zy;
@InterfaceC13390fZB(a = CHECK_EXTRACT_RTTI)
@InterfaceC13391fZD
ICheckExtractionServer aar;
@InterfaceC13390fZB(a = CHECK_EXTRACT_RTTI)
@InterfaceC13391fZD
ICheckDeserializer aas;
@InterfaceC13390fZB(a = CHECK_EXTRACT_KTA)
@InterfaceC13391fZD
ICheckExtractionServer aat;
@InterfaceC13390fZB(a = CHECK_EXTRACT_KTA)
@InterfaceC13391fZD
ICheckDeserializer aau;
@InterfaceC13391fZD
public CheckExtractor() {
}
public void setParameters(CheckParameters checkParameters) {
if (CheckParameters.CheckCountry.NOT_SPECIFIED.equals(checkParameters.country)) {
checkParameters.country = CheckParameters.CheckCountry.UNITED_STATES;
}
super.setParameters(checkParameters.getExtractionParameters());
if (ExtractionParameters.ExtractionType.RTTI.equals(checkParameters.getExtractionParameters().getExtractionType())) {
this.aar.setParameters(checkParameters.getExtractionParameters());
this.aar.setCheckParameters(checkParameters);
setExtractionServer(this.aar);
setResultDeserializer(this.aas);
setExceptionResponseDeserializer(this.ZB);
return;
}
this.aat.setParameters(checkParameters.getExtractionParameters());
this.aat.setCheckParameters(checkParameters);
setExtractionServer(this.aat);
setResultDeserializer(this.aau);
setExceptionResponseDeserializer(this.ZF);
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.kofax.mobile.sdk.capture.extraction.Extractor
public ExtractorResponse<Check> createResponse(Check check, ExceptionResponse exceptionResponse) {
return new CheckExtractorResponse(check, exceptionResponse);
}
@Override // com.kofax.mobile.sdk.capture.extraction.Extractor
public String getDefaultServerUrl(ExtractionParameters.ExtractionType extractionType) {
if (ExtractionParameters.ExtractionType.RTTI.equals(extractionType)) {
return this.Zy;
}
if (ExtractionParameters.ExtractionType.KTA.equals(extractionType)) {
return this.ZC;
}
return null;
}
}