112 lines
4.0 KiB
Java
112 lines
4.0 KiB
Java
|
package com.scb.phone.domain.interactor;
|
||
|
|
||
|
import com.scb.phone.domain.ScbException;
|
||
|
import com.scb.phone.domain.errors.RetrofitException;
|
||
|
import com.scb.phone.domain.interactor.FatcaQuestionnaireCase;
|
||
|
import o.AbstractC13163fSk;
|
||
|
import o.C7426co;
|
||
|
import o.C7583cr;
|
||
|
import o.IfM;
|
||
|
import o.InterfaceC0773Ogw;
|
||
|
import o.InterfaceC10882eRo;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.Jsz;
|
||
|
import o.Pag;
|
||
|
import o.XJm;
|
||
|
import o.fSQ;
|
||
|
import o.fSS;
|
||
|
import o.guD;
|
||
|
import o.wRi;
|
||
|
import o.yRw;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class FatcaQuestionnaireCase extends wRi {
|
||
|
public final InterfaceC0773Ogw a;
|
||
|
private final InterfaceC10882eRo b;
|
||
|
private final Jsz c;
|
||
|
private final IfM d;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static class FatcaVerificationCodeException extends ScbException {
|
||
|
}
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public FatcaQuestionnaireCase(yRw yrw, yRw yrw2, InterfaceC10882eRo interfaceC10882eRo, IfM ifM, Jsz jsz, InterfaceC0773Ogw interfaceC0773Ogw) {
|
||
|
super(yrw, yrw2);
|
||
|
this.b = interfaceC10882eRo;
|
||
|
this.d = ifM;
|
||
|
this.c = jsz;
|
||
|
this.a = interfaceC0773Ogw;
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<XJm> b() {
|
||
|
return e(this.b.j());
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<guD> d(C7426co c7426co) {
|
||
|
return e(this.b.e(c7426co).onErrorResumeNext(new fSS() { // from class: o.KMj
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
Throwable th = (Throwable) obj;
|
||
|
if ((th instanceof RetrofitException) && "9100".equals(((RetrofitException) th).e.c.e)) {
|
||
|
return AbstractC13163fSk.error(new FatcaQuestionnaireCase.FatcaVerificationCodeException());
|
||
|
}
|
||
|
return AbstractC13163fSk.error(th);
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<Pag> c(C7583cr c7583cr) {
|
||
|
return e(this.d.e(c7583cr).onErrorResumeNext(new fSS() { // from class: o.UhT
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
Throwable th = (Throwable) obj;
|
||
|
if ((th instanceof RetrofitException) && "9100".equals(((RetrofitException) th).e.c.e)) {
|
||
|
return AbstractC13163fSk.error(new FatcaQuestionnaireCase.FatcaVerificationCodeException());
|
||
|
}
|
||
|
return AbstractC13163fSk.error(th);
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<Pag> e(C7583cr c7583cr) {
|
||
|
return e(this.c.e(c7583cr).onErrorResumeNext(new fSS() { // from class: o.jjI
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
Throwable th = (Throwable) obj;
|
||
|
if ((th instanceof RetrofitException) && "9100".equals(((RetrofitException) th).e.c.e)) {
|
||
|
return AbstractC13163fSk.error(new FatcaQuestionnaireCase.FatcaVerificationCodeException());
|
||
|
}
|
||
|
return AbstractC13163fSk.error(th);
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<guD> b(C7426co c7426co) {
|
||
|
return e(this.a.a(c7426co).doOnNext(new fSQ(this) { // from class: o.HXb
|
||
|
private FatcaQuestionnaireCase c;
|
||
|
|
||
|
@Override // o.fSQ
|
||
|
public final void c(Object obj) {
|
||
|
this.c.a.w(((guD) obj).i.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
}
|
||
|
}).onErrorResumeNext(new fSS() { // from class: o.wZy
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
Throwable th = (Throwable) obj;
|
||
|
if (th instanceof RetrofitException) {
|
||
|
RetrofitException retrofitException = (RetrofitException) th;
|
||
|
if (retrofitException.e != null && "9100".equals(retrofitException.e.c.e)) {
|
||
|
return AbstractC13163fSk.error(new FatcaQuestionnaireCase.FatcaVerificationCodeException());
|
||
|
}
|
||
|
}
|
||
|
return AbstractC13163fSk.error(th);
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
}
|