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 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 aaq = new HashMap() { // 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 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; } }