156 lines
4.5 KiB
Java
156 lines
4.5 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import android.text.TextUtils;
|
|
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
|
|
|
|
/* renamed from: o.Dh, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C0289Dh extends BaseAssetsDisplayMapper {
|
|
@InterfaceC13391fZD
|
|
public C0289Dh(Resources resources, SharedPreferences sharedPreferences, String str) {
|
|
super(resources, sharedPreferences, str);
|
|
}
|
|
|
|
public final C1182Xi a(C1019Twi c1019Twi) {
|
|
C1182Xi b = C1182Xi.b();
|
|
b.q = Integer.valueOf(c1019Twi.q != null ? c1019Twi.q.intValue() : 0);
|
|
b.c = c1019Twi.u;
|
|
b.u = c1019Twi.x;
|
|
b.d = b_(c1019Twi.w);
|
|
b.t = c1019Twi.s;
|
|
b.h = c1019Twi.a;
|
|
b.i = c1019Twi.d;
|
|
b.v = c1019Twi.C;
|
|
b.w = c1019Twi.D;
|
|
b.y = c1019Twi.B;
|
|
b.g = c1019Twi.b;
|
|
b.s = i(c1019Twi.b);
|
|
b.m = c(Double.valueOf(c1019Twi.h));
|
|
b.f8448o = c1019Twi.i;
|
|
String str = c1019Twi.v;
|
|
b.x = null;
|
|
b.r = c1019Twi.t;
|
|
b.D = c1019Twi.z;
|
|
b.p = c1019Twi.f8382o;
|
|
b.l = c1019Twi.k;
|
|
b.n = c1019Twi.g;
|
|
b.f = c1019Twi.j;
|
|
b.k = c1019Twi.n;
|
|
KnO knO = c1019Twi.c;
|
|
b.j = knO != null ? new C1111Vw(knO.p, knO.e, knO.a, knO.d, knO.w, knO.x, knO.i, knO.f8242o, knO.k, knO.l, knO.n, knO.c, knO.g, knO.t, knO.q, knO.f, knO.s, knO.h, knO.r, knO.j, knO.m, knO.b) : null;
|
|
return b;
|
|
}
|
|
|
|
public static C1019Twi e(GCM gcm) {
|
|
C1019Twi c1019Twi = new C1019Twi();
|
|
c1019Twi.t = "BILLPAYMENT";
|
|
c1019Twi.z = "ALL";
|
|
c1019Twi.C = gcm.m;
|
|
c1019Twi.D = gcm.g;
|
|
c1019Twi.h = gcm.e.doubleValue();
|
|
c1019Twi.p = gcm;
|
|
return c1019Twi;
|
|
}
|
|
|
|
public static C1019Twi d(rbY rby) {
|
|
C1019Twi c1019Twi = new C1019Twi();
|
|
c1019Twi.t = "BILLPAYMENT";
|
|
c1019Twi.z = "ALL";
|
|
c1019Twi.C = rby.h;
|
|
c1019Twi.h = rby.e.doubleValue();
|
|
c1019Twi.y = rby;
|
|
return c1019Twi;
|
|
}
|
|
|
|
public static C1019Twi b(BHL bhl) {
|
|
C1019Twi c1019Twi = new C1019Twi();
|
|
c1019Twi.t = "BILLPAYMENT";
|
|
c1019Twi.z = "ALL";
|
|
c1019Twi.C = bhl.i;
|
|
c1019Twi.D = bhl.f;
|
|
c1019Twi.B = bhl.m;
|
|
c1019Twi.m = bhl;
|
|
c1019Twi.h = Double.valueOf(bhl.c).doubleValue();
|
|
return c1019Twi;
|
|
}
|
|
|
|
public static C1019Twi b(WvL wvL) {
|
|
char c;
|
|
String str;
|
|
String str2;
|
|
String str3 = wvL.m;
|
|
str3.hashCode();
|
|
int hashCode = str3.hashCode();
|
|
if (hashCode == 2126) {
|
|
if (str3.equals("BP")) {
|
|
c = 0;
|
|
}
|
|
c = 65535;
|
|
} else if (hashCode == 2560) {
|
|
if (str3.equals("PP")) {
|
|
c = 1;
|
|
}
|
|
c = 65535;
|
|
} else if (hashCode != 2684) {
|
|
if (hashCode == 2066625372 && str3.equals("FASTPP")) {
|
|
c = 3;
|
|
}
|
|
c = 65535;
|
|
} else {
|
|
if (str3.equals("TP")) {
|
|
c = 2;
|
|
}
|
|
c = 65535;
|
|
}
|
|
String str4 = "ALL";
|
|
if (c != 0) {
|
|
str2 = "";
|
|
if (c != 1) {
|
|
if (c == 2) {
|
|
str = wvL.a;
|
|
str2 = "TOPUP";
|
|
} else if (c != 3) {
|
|
str = "";
|
|
str4 = str;
|
|
}
|
|
}
|
|
if (((Boolean) C15602gz.b(new Object[]{wvL.a}, -396693817, 396693819, (int) System.currentTimeMillis())).booleanValue()) {
|
|
str2 = PWw.MOB.name();
|
|
} else if (C15602gz.b(wvL.a)) {
|
|
str2 = PWw.CID.name();
|
|
}
|
|
str4 = "PROMPTPAY";
|
|
String str5 = str2;
|
|
str2 = "TRANSFER";
|
|
str = str5;
|
|
} else {
|
|
str = wvL.a;
|
|
str2 = "BILLPAYMENT";
|
|
}
|
|
C1019Twi c1019Twi = new C1019Twi();
|
|
c1019Twi.t = str2;
|
|
c1019Twi.z = str4;
|
|
c1019Twi.x = str;
|
|
c1019Twi.b = wvL.a;
|
|
c1019Twi.A = wvL.A;
|
|
c1019Twi.r = true;
|
|
if (!TextUtils.isEmpty(wvL.y)) {
|
|
c1019Twi.C = wvL.y;
|
|
}
|
|
if (!TextUtils.isEmpty(wvL.v)) {
|
|
c1019Twi.D = wvL.v;
|
|
}
|
|
if (!TextUtils.isEmpty(wvL.u)) {
|
|
c1019Twi.B = wvL.u;
|
|
}
|
|
if (wvL.b > 0.0d) {
|
|
c1019Twi.h = wvL.b;
|
|
}
|
|
c1019Twi.f = wvL.c;
|
|
c1019Twi.l = wvL.l;
|
|
return c1019Twi;
|
|
}
|
|
}
|