what-the-bank/sources/o/TMv.java

51 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.Objects;
/* loaded from: classes3.dex */
public final class TMv implements AxQ {
private final Pvh c;
private final uVx e;
@InterfaceC13391fZD
public TMv(uVx uvx, Pvh pvh) {
this.e = uvx;
this.c = pvh;
}
@Override // o.AxQ
public final AbstractC13163fSk<C9567dmF> a(String str) {
AbstractC13163fSk<SingleDataEntity<ieb>> eligibilityDetails;
uVx uvx = this.e;
AyC ayC = uvx.c;
str.hashCode();
String str2 = !str.equals("ETB") ? !str.equals("CLOSE_ACCOUNT") ? null : "v1/deposits/closeaccount/eligibility" : "v1/deposits/openaccounts/eligibility";
if (str2 == null) {
eligibilityDetails = AbstractC13163fSk.error(new IllegalArgumentException("Unknown eligibility type"));
} else {
eligibilityDetails = uvx.a.getEligibilityDetails(str2);
}
AbstractC13163fSk<R> map = eligibilityDetails.map(new fSS() { // from class: o.FCs
@Override // o.fSS
public final Object a(Object obj) {
return (ieb) ((SingleDataEntity) obj).getData();
}
});
final Pvh pvh = this.c;
Objects.requireNonNull(pvh);
return map.map(new fSS(pvh) { // from class: o.grp
private Pvh d;
@Override // o.fSS
public final Object a(Object obj) {
return Pvh.b((ieb) obj);
}
{
this.d = pvh;
}
});
}
}