正在查看: BodyTech v7.6.4 应用的 PaymentFlowResultProcessor.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 PaymentFlowResultProcessor.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.payments;
import android.content.Context;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.core.networking.e;
import com.stripe.android.core.networking.o;
import com.stripe.android.g0;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.networking.m;
import java.util.List;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.collections.n;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlinx.coroutines.scheduling.WorkQueueKt;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000\u008c\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u0000 L*\b\b\u0000\u0010\u0002*\u00020\u0001*\u0010\b\u0001\u0010\u0004 \u0001*\b\u0012\u0004\u0012\u00028\u00000\u00032\u00020\u0005:\u0001/BA\b\u0004\u0012\u0006\u0010I\u001a\u00020H\u0012\f\u00101\u001a\b\u0012\u0004\u0012\u00020\u00120.\u0012\u0006\u00107\u001a\u000202\u0012\u0006\u0010;\u001a\u000208\u0012\u0006\u0010?\u001a\u00020<\u0012\b\b\u0002\u0010C\u001a\u00020@¢\u0006\u0004\bJ\u0010KJ\u0018\u0010\t\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u00012\u0006\u0010\b\u001a\u00020\u0007H\u0002J\u0018\u0010\f\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u00012\u0006\u0010\u000b\u001a\u00020\nH\u0002J\u0018\u0010\u000f\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u00012\u0006\u0010\u000e\u001a\u00020\nH\u0002J\u0010\u0010\u0010\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0001H\u0002J4\u0010\u0017\u001a\b\u0012\u0004\u0012\u00028\u00000\u00162\u0006\u0010\u0011\u001a\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u0014H\u0082@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0017\u0010\u0018J\u001d\u0010\u001a\u001a\u00020\u00072\f\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u00010\u0016H\u0002¢\u0006\u0004\b\u001a\u0010\u001bJ\u001d\u0010\u001c\u001a\u00020\u00072\f\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u00010\u0016H\u0002¢\u0006\u0004\b\u001c\u0010\u001bJ$\u0010\u001f\u001a\b\u0012\u0004\u0012\u00028\u00010\u00162\u0006\u0010\u001e\u001a\u00020\u001dH\u0086@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u001f\u0010 J:\u0010#\u001a\b\u0012\u0004\u0012\u00028\u00000\u00162\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u00142\f\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00120!H¤@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b#\u0010$J:\u0010%\u001a\b\u0012\u0004\u0012\u00028\u00000\u00162\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u00142\f\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00120!H¤@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b%\u0010$J4\u0010(\u001a\b\u0012\u0004\u0012\u00028\u00000\u00162\u0006\u0010&\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u00142\u0006\u0010'\u001a\u00020\u0012H¤@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b(\u0010)J)\u0010,\u001a\u00028\u00012\u0006\u0010\u0006\u001a\u00028\u00002\u0006\u0010*\u001a\u00020\n2\b\u0010+\u001a\u0004\u0018\u00010\u0012H$¢\u0006\u0004\b,\u0010-R\u001a\u00101\u001a\b\u0012\u0004\u0012\u00020\u00120.8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b/\u00100R\u001a\u00107\u001a\u0002028\u0004X\u0084\u0004¢\u0006\f\n\u0004\b3\u00104\u001a\u0004\b5\u00106R\u0014\u0010;\u001a\u0002088\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b9\u0010:R\u0014\u0010?\u001a\u00020<8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b=\u0010>R\u0014\u0010C\u001a\u00020@8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bA\u0010BR\u0014\u0010G\u001a\u00020D8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bE\u0010F\u0082\u0001\u0002MN\u0082\u0002\u000b\n\u0002\b!\n\u0005\b¡\u001e0\u0001¨\u0006O"}, d2 = {"Lcom/stripe/android/payments/PaymentFlowResultProcessor;", "Lcom/stripe/android/model/StripeIntent;", "T", "Lcom/stripe/android/g0;", "S", "", "stripeIntent", "", "shouldCancelSource", "r", "", "flowOutcome", "s", "intent", "originalFlowOutcome", "k", "q", "originalIntent", "", "clientSecret", "Lcom/stripe/android/core/networking/e$c;", "requestOptions", "Lkotlin/Result;", "o", "(Lcom/stripe/android/model/StripeIntent;Ljava/lang/String;Lcom/stripe/android/core/networking/e$c;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "stripeIntentResult", "t", "(Ljava/lang/Object;)Z", "u", "Lcom/stripe/android/payments/c;", "unvalidatedResult", "m", "(Lcom/stripe/android/payments/c;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "", "expandFields", "p", "(Ljava/lang/String;Lcom/stripe/android/core/networking/e$c;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "n", "stripeIntentId", "sourceId", "i", "(Ljava/lang/String;Lcom/stripe/android/core/networking/e$c;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "outcomeFromFlow", "failureMessage", "j", "(Lcom/stripe/android/model/StripeIntent;ILjava/lang/String;)Lcom/stripe/android/g0;", "Lfj/a;", "a", "Lfj/a;", "publishableKeyProvider", "Lcom/stripe/android/networking/m;", "b", "Lcom/stripe/android/networking/m;", "l", "()Lcom/stripe/android/networking/m;", "stripeRepository", "Llh/d;", "c", "Llh/d;", "logger", "Lkotlin/coroutines/CoroutineContext;", "d", "Lkotlin/coroutines/CoroutineContext;", "workContext", "Lcom/stripe/android/core/networking/o;", "e", "Lcom/stripe/android/core/networking/o;", "retryDelaySupplier", "Lcom/stripe/android/payments/b;", "f", "Lcom/stripe/android/payments/b;", "failureMessageFactory", "Landroid/content/Context;", "context", "<init>", "(Landroid/content/Context;Lfj/a;Lcom/stripe/android/networking/m;Llh/d;Lkotlin/coroutines/CoroutineContext;Lcom/stripe/android/core/networking/o;)V", "g", "Lcom/stripe/android/payments/PaymentIntentFlowResultProcessor;", "Lcom/stripe/android/payments/SetupIntentFlowResultProcessor;", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public abstract class PaymentFlowResultProcessor<T extends StripeIntent, S extends g0<? extends T>> {
public static final Companion INSTANCE = new Companion(null);
public static final int h = 8;
private static final List<String> i = n.e("payment_method");
private final fj.a<String> publishableKeyProvider;
private final m stripeRepository;
private final lh.d logger;
private final CoroutineContext workContext;
private final o retryDelaySupplier;
private final com.stripe.android.payments.b failureMessageFactory;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0005\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u000b\u0010\fR\u001d\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0006¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R\u0014\u0010\t\u001a\u00020\b8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\t\u0010\n¨\u0006\r"}, d2 = {"Lcom/stripe/android/payments/PaymentFlowResultProcessor$a;", "", "", "", "EXPAND_PAYMENT_METHOD", "Ljava/util/List;", "a", "()Ljava/util/List;", "", "MAX_RETRIES", "I", "<init>", "()V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class Companion {
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final List<String> a() {
return PaymentFlowResultProcessor.i;
}
}
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public class b {
public static final int[] a;
static {
int[] iArr = new int[StripeIntent.Status.values().length];
try {
iArr[StripeIntent.Status.q.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[StripeIntent.Status.r.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
a = iArr;
}
}
public PaymentFlowResultProcessor(Context context, fj.a aVar, m mVar, lh.d dVar, CoroutineContext coroutineContext, o oVar, DefaultConstructorMarker defaultConstructorMarker) {
this(context, aVar, mVar, dVar, coroutineContext, oVar);
}
public final int k(StripeIntent intent, int originalFlowOutcome) {
StripeIntent.Status status = intent.getStatus();
int i2 = status == null ? -1 : b.a[status.ordinal()];
if (i2 == 1 || i2 == 2) {
return 1;
}
return originalFlowOutcome;
}
public final java.lang.Object o(com.stripe.android.model.StripeIntent r12, java.lang.String r13, com.stripe.android.core.networking.e.Options r14, kotlin.coroutines.Continuation<? super kotlin.Result<? extends T>> r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.payments.PaymentFlowResultProcessor.o(com.stripe.android.model.StripeIntent, java.lang.String, com.stripe.android.core.networking.e$c, kotlin.coroutines.Continuation):java.lang.Object");
}
private final boolean q(StripeIntent stripeIntent) {
PaymentMethod paymentMethod = stripeIntent.getPaymentMethod();
if ((paymentMethod != null ? paymentMethod.type : null) != PaymentMethod.Type.L) {
PaymentMethod paymentMethod2 = stripeIntent.getPaymentMethod();
if ((paymentMethod2 != null ? paymentMethod2.type : null) != PaymentMethod.Type.w) {
return false;
}
}
return true;
}
public final boolean r(StripeIntent stripeIntent, boolean shouldCancelSource) {
return shouldCancelSource && stripeIntent.p();
}
public final boolean s(com.stripe.android.model.StripeIntent r8, int r9) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.payments.PaymentFlowResultProcessor.s(com.stripe.android.model.StripeIntent, int):boolean");
}
private final boolean t(Object stripeIntentResult) {
boolean z;
if (Result.g(stripeIntentResult)) {
stripeIntentResult = null;
}
StripeIntent stripeIntent = (StripeIntent) stripeIntentResult;
if (stripeIntent == null) {
return true;
}
boolean p = stripeIntent.p();
if (stripeIntent.getStatus() == StripeIntent.Status.e) {
PaymentMethod paymentMethod = stripeIntent.getPaymentMethod();
if ((paymentMethod != null ? paymentMethod.type : null) == PaymentMethod.Type.e) {
z = true;
return p || z;
}
}
z = false;
if (p) {
return true;
}
}
private final boolean u(Object stripeIntentResult) {
if (Result.g(stripeIntentResult)) {
stripeIntentResult = null;
}
StripeIntent stripeIntent = (StripeIntent) stripeIntentResult;
if (stripeIntent == null) {
return true;
}
return stripeIntent.p() && !(stripeIntent.getNextActionData() instanceof StripeIntent.a.j.Use3DS2);
}
protected abstract Object i(String str, e.Options options, String str2, Continuation<? super Result<? extends T>> continuation);
protected abstract S j(T stripeIntent, int outcomeFromFlow, String failureMessage);
protected final m getStripeRepository() {
return this.stripeRepository;
}
public final java.lang.Object m(com.stripe.android.payments.Unvalidated r6, kotlin.coroutines.Continuation<? super kotlin.Result<? extends S>> r7) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.payments.PaymentFlowResultProcessor.m(com.stripe.android.payments.c, kotlin.coroutines.Continuation):java.lang.Object");
}
protected abstract Object n(String str, e.Options options, List<String> list, Continuation<? super Result<? extends T>> continuation);
protected abstract Object p(String str, e.Options options, List<String> list, Continuation<? super Result<? extends T>> continuation);
private PaymentFlowResultProcessor(Context context, fj.a<String> aVar, m mVar, lh.d dVar, CoroutineContext coroutineContext, o oVar) {
this.publishableKeyProvider = aVar;
this.stripeRepository = mVar;
this.logger = dVar;
this.workContext = coroutineContext;
this.retryDelaySupplier = oVar;
this.failureMessageFactory = new com.stripe.android.payments.b(context);
}
public PaymentFlowResultProcessor(Context context, fj.a aVar, m mVar, lh.d dVar, CoroutineContext coroutineContext, o oVar, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(context, aVar, mVar, dVar, coroutineContext, (i2 & 32) != 0 ? new com.stripe.android.core.networking.j() : oVar, null);
}
}