88 lines
3.1 KiB
Java
88 lines
3.1 KiB
Java
package com.kofax.mobile.sdk.capture.bill;
|
|
|
|
import com.kofax.mobile.sdk._internal.extraction.IDataUnitProcessedListener;
|
|
import com.kofax.mobile.sdk._internal.extraction.IExceptionResponseDeserializer;
|
|
import com.kofax.mobile.sdk._internal.extraction.IExtractionServer;
|
|
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.Bill;
|
|
import com.kofax.mobile.sdk.capture.parameter.ExtractionParameters;
|
|
import o.InterfaceC13390fZB;
|
|
import o.InterfaceC13391fZD;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class BillExtractor extends Extractor<Bill> implements IDataUnitProcessedListener {
|
|
public static final String BILL_EXTRACT_KTA = "_bill_extract_kta_";
|
|
public static final String BILL_EXTRACT_RTTI = "_bill_extract_rtti_";
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_RTTI)
|
|
@InterfaceC13391fZD
|
|
IBillDeserializer ZA;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_RTTI)
|
|
@InterfaceC13391fZD
|
|
IExceptionResponseDeserializer ZB;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_KTA)
|
|
@InterfaceC13391fZD
|
|
String ZC;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_KTA)
|
|
@InterfaceC13391fZD
|
|
IExtractionServer ZD;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_KTA)
|
|
@InterfaceC13391fZD
|
|
IBillDeserializer ZE;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_KTA)
|
|
@InterfaceC13391fZD
|
|
IExceptionResponseDeserializer ZF;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_RTTI)
|
|
@InterfaceC13391fZD
|
|
String Zy;
|
|
|
|
@InterfaceC13390fZB(a = BILL_EXTRACT_RTTI)
|
|
@InterfaceC13391fZD
|
|
IExtractionServer Zz;
|
|
|
|
@InterfaceC13391fZD
|
|
public BillExtractor() {
|
|
}
|
|
|
|
@Override // com.kofax.mobile.sdk.capture.extraction.Extractor
|
|
public void setParameters(ExtractionParameters extractionParameters) {
|
|
super.setParameters(extractionParameters);
|
|
if (ExtractionParameters.ExtractionType.RTTI.equals(extractionParameters.getExtractionType())) {
|
|
this.Zz.setParameters(extractionParameters);
|
|
setExtractionServer(this.Zz);
|
|
setResultDeserializer(this.ZA);
|
|
setExceptionResponseDeserializer(this.ZB);
|
|
return;
|
|
}
|
|
this.ZD.setParameters(extractionParameters);
|
|
setExtractionServer(this.ZD);
|
|
setResultDeserializer(this.ZE);
|
|
setExceptionResponseDeserializer(this.ZF);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // com.kofax.mobile.sdk.capture.extraction.Extractor
|
|
public ExtractorResponse<Bill> createResponse(Bill bill, ExceptionResponse exceptionResponse) {
|
|
return new BillExtractorResponse(bill, 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;
|
|
}
|
|
}
|