322 lines
12 KiB
Java
322 lines
12 KiB
Java
package o;
|
|
|
|
import com.scb.phone.data.entity.transfer.SingleDataEntity;
|
|
import com.scb.phone.data.network.service.prepaid.PrepaidTravelService;
|
|
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import o.C15752iLQ;
|
|
import o.gDd;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/* renamed from: o.egn, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C11516egn implements TGk {
|
|
final WxJ a;
|
|
final JXA b;
|
|
final SXI c;
|
|
final aPJ d;
|
|
final C0794Oqx e;
|
|
private final PrepaidTravelService g;
|
|
private final String i;
|
|
|
|
@InterfaceC13391fZD
|
|
public C11516egn(String str, PrepaidTravelService prepaidTravelService, WxJ wxJ, JXA jxa, C0794Oqx c0794Oqx, aPJ apj, SXI sxi) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(prepaidTravelService, "");
|
|
C14957gcv.e(wxJ, "");
|
|
C14957gcv.e(jxa, "");
|
|
C14957gcv.e(c0794Oqx, "");
|
|
C14957gcv.e(apj, "");
|
|
C14957gcv.e(sxi, "");
|
|
this.i = str;
|
|
this.g = prepaidTravelService;
|
|
this.a = wxJ;
|
|
this.b = jxa;
|
|
this.e = c0794Oqx;
|
|
this.d = apj;
|
|
this.c = sxi;
|
|
}
|
|
|
|
/* renamed from: o.egn$IeS */
|
|
/* loaded from: classes3.dex */
|
|
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C16562pOe>, Pag> {
|
|
private C11516egn b;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ Pag invoke(SingleDataEntity<C16562pOe> singleDataEntity) {
|
|
return this.b.a.d(singleDataEntity);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
IeS(C11516egn c11516egn) {
|
|
super(1);
|
|
this.b = c11516egn;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.egn$Sts */
|
|
/* loaded from: classes3.dex */
|
|
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C15752iLQ>, gDd> {
|
|
private C11516egn e;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ gDd invoke(SingleDataEntity<C15752iLQ> singleDataEntity) {
|
|
JXA jxa = this.e.b;
|
|
C15752iLQ data = singleDataEntity.getData();
|
|
C14957gcv.c(data, "");
|
|
C15752iLQ c15752iLQ = data;
|
|
C14957gcv.e(c15752iLQ, "");
|
|
String str = c15752iLQ.b;
|
|
List<C15752iLQ.IeS> list = c15752iLQ.a;
|
|
C14957gcv.e(list, "");
|
|
List<C15752iLQ.IeS> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
for (C15752iLQ.IeS ieS : list2) {
|
|
String str2 = ieS.d;
|
|
String str3 = ieS.a;
|
|
arrayList.add(new wZk(str2, str3 == null ? "" : str3, ieS.c, ieS.e, ieS.h, ieS.i, ieS.b, 0, 0));
|
|
}
|
|
ArrayList arrayList2 = arrayList;
|
|
List<C15752iLQ.HBt> list3 = c15752iLQ.e;
|
|
C14957gcv.e(list3, "");
|
|
List<C15752iLQ.HBt> list4 = list3;
|
|
C14957gcv.e(list4, "");
|
|
ArrayList arrayList3 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
|
|
for (C15752iLQ.HBt hBt : list4) {
|
|
arrayList3.add(new wZk(hBt.a, hBt.e, hBt.d, hBt.b, hBt.i, hBt.j, hBt.c, 0, 0));
|
|
}
|
|
ArrayList arrayList4 = arrayList3;
|
|
List<C15752iLQ.RVV> list5 = c15752iLQ.d;
|
|
C14957gcv.e(list5, "");
|
|
List<C15752iLQ.RVV> list6 = list5;
|
|
C14957gcv.e(list6, "");
|
|
ArrayList arrayList5 = new ArrayList(list6 instanceof Collection ? list6.size() : 10);
|
|
for (C15752iLQ.RVV rvv : list6) {
|
|
arrayList5.add(new gDd.RVV(rvv.b, rvv.d, rvv.a, rvv.c, rvv.e));
|
|
}
|
|
return new gDd(str, arrayList2, arrayList4, arrayList5);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
Sts(C11516egn c11516egn) {
|
|
super(1);
|
|
this.e = c11516egn;
|
|
}
|
|
}
|
|
|
|
@Override // o.TGk
|
|
public final AbstractC13175fSw<gDd> a(C9765dq c9765dq) {
|
|
C14957gcv.e(c9765dq, "");
|
|
AbstractC13175fSw<SingleDataEntity<C15752iLQ>> prepaidTravelConversionLanding = this.g.getPrepaidTravelConversionLanding(c9765dq);
|
|
final Sts sts = new Sts(this);
|
|
C13372fYk c13372fYk = new C13372fYk(prepaidTravelConversionLanding, new fSS(sts) { // from class: o.OiZ
|
|
private InterfaceC14894gbR c;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.c;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (gDd) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.c = sts;
|
|
}
|
|
});
|
|
C14957gcv.c(c13372fYk, "");
|
|
return c13372fYk;
|
|
}
|
|
|
|
/* renamed from: o.egn$LWm */
|
|
/* loaded from: classes3.dex */
|
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<yFy>, C10146dxJ> {
|
|
private C11516egn c;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C10146dxJ invoke(SingleDataEntity<yFy> singleDataEntity) {
|
|
C0794Oqx c0794Oqx = this.c.e;
|
|
yFy data = singleDataEntity.getData();
|
|
C14957gcv.c(data, "");
|
|
return C0794Oqx.c(data);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
LWm(C11516egn c11516egn) {
|
|
super(1);
|
|
this.c = c11516egn;
|
|
}
|
|
}
|
|
|
|
@Override // o.TGk
|
|
public final AbstractC13175fSw<C10146dxJ> e(C9712dp c9712dp) {
|
|
C14957gcv.e(c9712dp, "");
|
|
AbstractC13175fSw<SingleDataEntity<yFy>> prepaidTravelConversionVerification = this.g.getPrepaidTravelConversionVerification(c9712dp);
|
|
final LWm lWm = new LWm(this);
|
|
C13372fYk c13372fYk = new C13372fYk(prepaidTravelConversionVerification, new fSS(lWm) { // from class: o.Fkz
|
|
private InterfaceC14894gbR b;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.b;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (C10146dxJ) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.b = lWm;
|
|
}
|
|
});
|
|
C14957gcv.c(c13372fYk, "");
|
|
return c13372fYk;
|
|
}
|
|
|
|
/* renamed from: o.egn$RVV */
|
|
/* loaded from: classes3.dex */
|
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<veH>, C16738qof> {
|
|
private C11516egn e;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C16738qof invoke(SingleDataEntity<veH> singleDataEntity) {
|
|
aPJ apj = this.e.d;
|
|
veH data = singleDataEntity.getData();
|
|
C14957gcv.c(data, "");
|
|
veH veh = data;
|
|
C14957gcv.e(veh, "");
|
|
String str = veh.e;
|
|
OffsetDateTime offsetDateTime = (OffsetDateTime) ZTC.e(new Object[]{veh.e, null}, 267499366, -267499366, (int) System.currentTimeMillis());
|
|
String str2 = veh.c;
|
|
String str3 = str2 == null ? "" : str2;
|
|
String str4 = veh.b;
|
|
return new C16738qof(offsetDateTime, str3, str4 == null ? "" : str4, veh.a);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
RVV(C11516egn c11516egn) {
|
|
super(1);
|
|
this.e = c11516egn;
|
|
}
|
|
}
|
|
|
|
@Override // o.TGk
|
|
public final AbstractC13175fSw<C16738qof> d(C9818dr c9818dr) {
|
|
C14957gcv.e(c9818dr, "");
|
|
AbstractC13175fSw<SingleDataEntity<veH>> prepaidTravelConversionConfirm = this.g.getPrepaidTravelConversionConfirm(c9818dr);
|
|
final RVV rvv = new RVV(this);
|
|
C13372fYk c13372fYk = new C13372fYk(prepaidTravelConversionConfirm, new fSS(rvv) { // from class: o.SHh
|
|
private InterfaceC14894gbR d;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.d;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (C16738qof) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.d = rvv;
|
|
}
|
|
});
|
|
C14957gcv.c(c13372fYk, "");
|
|
return c13372fYk;
|
|
}
|
|
|
|
/* renamed from: o.egn$HBt */
|
|
/* loaded from: classes3.dex */
|
|
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C16208mKx>, VlV> {
|
|
private C11516egn a;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ VlV invoke(SingleDataEntity<C16208mKx> singleDataEntity) {
|
|
SXI sxi = this.a.c;
|
|
C16208mKx data = singleDataEntity.getData();
|
|
C14957gcv.c(data, "");
|
|
C16208mKx c16208mKx = data;
|
|
C14957gcv.e(c16208mKx, "");
|
|
if (!(!c16208mKx.a.isEmpty())) {
|
|
throw new EntityMappingException("prepaidCardList can't be empty");
|
|
}
|
|
List<hrD> list = c16208mKx.a;
|
|
C14957gcv.e(list, "");
|
|
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
|
|
for (hrD hrd : list) {
|
|
if (hrd.b.length() <= 0) {
|
|
throw new EntityMappingException("cardRefNo can't be empty");
|
|
}
|
|
String str = hrd.b;
|
|
String str2 = hrd.e;
|
|
if (str2 == null) {
|
|
str2 = "";
|
|
}
|
|
String str3 = hrd.d;
|
|
if (str3 == null) {
|
|
str3 = "";
|
|
}
|
|
String str4 = hrd.c;
|
|
if (str4 == null) {
|
|
str4 = "";
|
|
}
|
|
arrayList.add(new NjI(str, str2, str3, str4));
|
|
}
|
|
return new VlV(arrayList);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
HBt(C11516egn c11516egn) {
|
|
super(1);
|
|
this.a = c11516egn;
|
|
}
|
|
}
|
|
|
|
@Override // o.TGk
|
|
public final AbstractC13175fSw<VlV> d(C9138de c9138de) {
|
|
C14957gcv.e(c9138de, "");
|
|
AbstractC13175fSw<SingleDataEntity<C16208mKx>> prepaidEcomInquiry = this.g.getPrepaidEcomInquiry(c9138de);
|
|
final HBt hBt = new HBt(this);
|
|
C13372fYk c13372fYk = new C13372fYk(prepaidEcomInquiry, new fSS(hBt) { // from class: o.kdi
|
|
private InterfaceC14894gbR b;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.b;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (VlV) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.b = hBt;
|
|
}
|
|
});
|
|
C14957gcv.c(c13372fYk, "");
|
|
return c13372fYk;
|
|
}
|
|
|
|
@Override // o.TGk
|
|
public final AbstractC13175fSw<Pag> c(C9977du c9977du) {
|
|
C14957gcv.e(c9977du, "");
|
|
String str = this.i;
|
|
C14957gcv.e(str, "");
|
|
c9977du.c = str;
|
|
AbstractC13175fSw<SingleDataEntity<C16562pOe>> prepaidTravelBlockStatus = this.g.getPrepaidTravelBlockStatus(c9977du);
|
|
final IeS ieS = new IeS(this);
|
|
C13372fYk c13372fYk = new C13372fYk(prepaidTravelBlockStatus, new fSS(ieS) { // from class: o.Bkr
|
|
private InterfaceC14894gbR d;
|
|
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
InterfaceC14894gbR interfaceC14894gbR = this.d;
|
|
C14957gcv.e(interfaceC14894gbR, "");
|
|
return (Pag) interfaceC14894gbR.invoke(obj);
|
|
}
|
|
|
|
{
|
|
this.d = ieS;
|
|
}
|
|
});
|
|
C14957gcv.c(c13372fYk, "");
|
|
return c13372fYk;
|
|
}
|
|
}
|