正在查看: BodyTech v7.6.4 应用的 PaymentIntent.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 PaymentIntent.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.RestrictTo;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.model.StripeIntent;
import io.ktor.http.ContentDisposition;
import io.ktor.http.LinkHeader;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.collections.g0;
import kotlin.collections.p0;
import kotlin.enums.EnumEntries;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.text.Regex;
import kotlinx.coroutines.scheduling.WorkQueueKt;
import org.json.JSONObject;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000\u0094\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0010 \n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\bD\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0087\b\u0018\u0000 \u0086\u00012\u00020\u0001:\u000b\u0087\u0001\u0088\u0001R0\u0089\u0001\u008a\u0001AB\u009b\u0002\b\u0007\u0012\b\u0010\r\u001a\u0004\u0018\u00010\u0004\u0012\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e\u0012\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010\u0012\b\b\u0002\u0010\u0012\u001a\u00020\u0010\u0012\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u0013\u0012\b\b\u0002\u0010\u0016\u001a\u00020\u0015\u0012\b\u0010\u0017\u001a\u0004\u0018\u00010\u0004\u0012\b\b\u0002\u0010\u0019\u001a\u00020\u0018\u0012\b\u0010\u001a\u001a\u0004\u0018\u00010\u0004\u0012\u0006\u0010\u001b\u001a\u00020\u0010\u0012\b\u0010\u001c\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\u001d\u001a\u0004\u0018\u00010\u0004\u0012\u0006\u0010\u001e\u001a\u00020\u0002\u0012\n\b\u0002\u0010 \u001a\u0004\u0018\u00010\u001f\u0012\n\b\u0002\u0010!\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\"\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010$\u001a\u0004\u0018\u00010#\u0012\n\b\u0002\u0010&\u001a\u0004\u0018\u00010%\u0012\n\b\u0002\u0010(\u001a\u0004\u0018\u00010'\u0012\n\b\u0002\u0010*\u001a\u0004\u0018\u00010)\u0012\f\u0010+\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e\u0012\u000e\b\u0002\u0010,\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e\u0012\n\b\u0002\u0010.\u001a\u0004\u0018\u00010-\u0012\n\b\u0002\u0010/\u001a\u0004\u0018\u00010\u0004¢\u0006\u0006\b\u0084\u0001\u0010\u0085\u0001J\b\u0010\u0003\u001a\u00020\u0002H\u0002J\u0014\u0010\u0007\u001a\u00020\u00022\n\u0010\u0006\u001a\u00060\u0004j\u0002`\u0005H\u0002J\u0016\u0010\n\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\t0\bH\u0016J\b\u0010\u000b\u001a\u00020\u0002H\u0016J\u0014\u0010\f\u001a\u00020\u00022\n\u0010\u0006\u001a\u00060\u0004j\u0002`\u0005H\u0007J²\u0002\u00100\u001a\u00020\u00002\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u00042\u000e\b\u0002\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e2\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u00102\b\b\u0002\u0010\u0012\u001a\u00020\u00102\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u00132\b\b\u0002\u0010\u0016\u001a\u00020\u00152\n\b\u0002\u0010\u0017\u001a\u0004\u0018\u00010\u00042\b\b\u0002\u0010\u0019\u001a\u00020\u00182\n\b\u0002\u0010\u001a\u001a\u0004\u0018\u00010\u00042\b\b\u0002\u0010\u001b\u001a\u00020\u00102\n\b\u0002\u0010\u001c\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\u001d\u001a\u0004\u0018\u00010\u00042\b\b\u0002\u0010\u001e\u001a\u00020\u00022\n\b\u0002\u0010 \u001a\u0004\u0018\u00010\u001f2\n\b\u0002\u0010!\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\"\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010$\u001a\u0004\u0018\u00010#2\n\b\u0002\u0010&\u001a\u0004\u0018\u00010%2\n\b\u0002\u0010(\u001a\u0004\u0018\u00010'2\n\b\u0002\u0010*\u001a\u0004\u0018\u00010)2\u000e\b\u0002\u0010+\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e2\u000e\b\u0002\u0010,\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e2\n\b\u0002\u0010.\u001a\u0004\u0018\u00010-2\n\b\u0002\u0010/\u001a\u0004\u0018\u00010\u0004HÆ\u0001¢\u0006\u0004\b0\u00101J\t\u00102\u001a\u00020\u0004HÖ\u0001J\t\u00104\u001a\u000203HÖ\u0001J\u0013\u00106\u001a\u00020\u00022\b\u00105\u001a\u0004\u0018\u00010\tHÖ\u0003J\t\u00107\u001a\u000203HÖ\u0001J\u0019\u0010<\u001a\u00020;2\u0006\u00109\u001a\u0002082\u0006\u0010:\u001a\u000203HÖ\u0001R\u001c\u0010\r\u001a\u0004\u0018\u00010\u00048\u0016X\u0096\u0004¢\u0006\f\n\u0004\b=\u0010>\u001a\u0004\b?\u0010@R \u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bA\u0010B\u001a\u0004\bA\u0010CR\u0019\u0010\u0011\u001a\u0004\u0018\u00010\u00108\u0006¢\u0006\f\n\u0004\bD\u0010E\u001a\u0004\bD\u0010FR\u0017\u0010\u0012\u001a\u00020\u00108\u0006¢\u0006\f\n\u0004\bG\u0010H\u001a\u0004\bI\u0010JR\u0019\u0010\u0014\u001a\u0004\u0018\u00010\u00138\u0006¢\u0006\f\n\u0004\bK\u0010L\u001a\u0004\bM\u0010NR\u0017\u0010\u0016\u001a\u00020\u00158\u0006¢\u0006\f\n\u0004\b\u000b\u0010O\u001a\u0004\bP\u0010QR\u001c\u0010\u0017\u001a\u0004\u0018\u00010\u00048\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\f\u0010>\u001a\u0004\bR\u0010@R\u0017\u0010\u0019\u001a\u00020\u00188\u0006¢\u0006\f\n\u0004\bS\u0010T\u001a\u0004\bU\u0010VR\u001c\u0010\u001a\u001a\u0004\u0018\u00010\u00048\u0017X\u0096\u0004¢\u0006\f\n\u0004\bW\u0010>\u001a\u0004\bX\u0010@R\u001a\u0010\u001b\u001a\u00020\u00108\u0016X\u0096\u0004¢\u0006\f\n\u0004\bY\u0010H\u001a\u0004\bZ\u0010JR\u0019\u0010\u001c\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b[\u0010>\u001a\u0004\b\\\u0010@R\u001c\u0010\u001d\u001a\u0004\u0018\u00010\u00048\u0016X\u0096\u0004¢\u0006\f\n\u0004\b]\u0010>\u001a\u0004\b^\u0010@R\u001a\u0010\u001e\u001a\u00020\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b_\u0010`\u001a\u0004\ba\u0010bR\u001c\u0010 \u001a\u0004\u0018\u00010\u001f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bc\u0010d\u001a\u0004\be\u0010fR\u001c\u0010!\u001a\u0004\u0018\u00010\u00048\u0016X\u0096\u0004¢\u0006\f\n\u0004\bg\u0010>\u001a\u0004\bh\u0010@R\u0019\u0010\"\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b\n\u0010>\u001a\u0004\bi\u0010@R\u001c\u0010$\u001a\u0004\u0018\u00010#8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bj\u0010k\u001a\u0004\bl\u0010mR\u0019\u0010&\u001a\u0004\u0018\u00010%8\u0006¢\u0006\f\n\u0004\bn\u0010o\u001a\u0004\bW\u0010pR\u0019\u0010(\u001a\u0004\u0018\u00010'8\u0006¢\u0006\f\n\u0004\bq\u0010r\u001a\u0004\bs\u0010tR\u0019\u0010*\u001a\u0004\u0018\u00010)8\u0006¢\u0006\f\n\u0004\bu\u0010v\u001a\u0004\bK\u0010wR \u0010+\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bH\u0010B\u001a\u0004\bx\u0010CR \u0010,\u001a\b\u0012\u0004\u0012\u00020\u00040\u000e8\u0016X\u0096\u0004¢\u0006\f\n\u0004\by\u0010B\u001a\u0004\bz\u0010CR\u001c\u0010.\u001a\u0004\u0018\u00010-8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b{\u0010|\u001a\u0004\b}\u0010~R\u0016\u0010/\u001a\u0004\u0018\u00010\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u007f\u0010>R\u0019\u0010\u0082\u0001\u001a\u0005\u0018\u00010\u0080\u00018VX\u0096\u0004¢\u0006\u0007\u001a\u0005\bq\u0010\u0081\u0001R\u0016\u0010\u0083\u0001\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0007\u001a\u0005\b\u0083\u0001\u0010b¨\u0006\u008b\u0001"}, d2 = {"Lcom/stripe/android/model/PaymentIntent;", "Lcom/stripe/android/model/StripeIntent;", "", "u", "", "Lcom/stripe/android/model/PaymentMethodCode;", "code", "o", "", "", "B", "p", "q", "id", "", "paymentMethodTypes", "", "amount", "canceledAt", "Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "cancellationReason", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "captureMethod", "clientSecret", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "confirmationMethod", "countryCode", "created", "currency", "description", "isLiveMode", "Lcom/stripe/android/model/PaymentMethod;", "paymentMethod", "paymentMethodId", "receiptEmail", "Lcom/stripe/android/model/StripeIntent$Status;", "status", "Lcom/stripe/android/model/StripeIntent$Usage;", "setupFutureUsage", "Lcom/stripe/android/model/PaymentIntent$Error;", "lastPaymentError", "Lcom/stripe/android/model/PaymentIntent$d;", "shipping", "unactivatedPaymentMethods", "linkFundingSources", "Lcom/stripe/android/model/StripeIntent$a;", "nextActionData", "paymentMethodOptionsJsonString", "b", "(Ljava/lang/String;Ljava/util/List;Ljava/lang/Long;JLcom/stripe/android/model/PaymentIntent$CancellationReason;Lcom/stripe/android/model/PaymentIntent$CaptureMethod;Ljava/lang/String;Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZLcom/stripe/android/model/PaymentMethod;Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/StripeIntent$Status;Lcom/stripe/android/model/StripeIntent$Usage;Lcom/stripe/android/model/PaymentIntent$Error;Lcom/stripe/android/model/PaymentIntent$d;Ljava/util/List;Ljava/util/List;Lcom/stripe/android/model/StripeIntent$a;Ljava/lang/String;)Lcom/stripe/android/model/PaymentIntent;", "toString", "", "hashCode", "other", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "c", "Ljava/lang/String;", "getId", "()Ljava/lang/String;", "d", "Ljava/util/List;", "()Ljava/util/List;", "e", "Ljava/lang/Long;", "()Ljava/lang/Long;", "k", "J", "getCanceledAt", "()J", "n", "Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "getCancellationReason", "()Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "g", "()Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "a", "r", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "i", "()Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "t", "getCountryCode", "v", "getCreated", "w", "e0", "x", "getDescription", "y", "Z", "n0", "()Z", "z", "Lcom/stripe/android/model/PaymentMethod;", "P", "()Lcom/stripe/android/model/PaymentMethod;", "A", "getPaymentMethodId", "getReceiptEmail", "C", "Lcom/stripe/android/model/StripeIntent$Status;", "getStatus", "()Lcom/stripe/android/model/StripeIntent$Status;", "G", "Lcom/stripe/android/model/StripeIntent$Usage;", "()Lcom/stripe/android/model/StripeIntent$Usage;", "H", "Lcom/stripe/android/model/PaymentIntent$Error;", "m", "()Lcom/stripe/android/model/PaymentIntent$Error;", "I", "Lcom/stripe/android/model/PaymentIntent$d;", "()Lcom/stripe/android/model/PaymentIntent$d;", "X", "K", "b0", "L", "Lcom/stripe/android/model/StripeIntent$a;", "h", "()Lcom/stripe/android/model/StripeIntent$a;", "M", "Lcom/stripe/android/model/StripeIntent$NextActionType;", "()Lcom/stripe/android/model/StripeIntent$NextActionType;", "nextActionType", "isConfirmed", "<init>", "(Ljava/lang/String;Ljava/util/List;Ljava/lang/Long;JLcom/stripe/android/model/PaymentIntent$CancellationReason;Lcom/stripe/android/model/PaymentIntent$CaptureMethod;Ljava/lang/String;Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZLcom/stripe/android/model/PaymentMethod;Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/StripeIntent$Status;Lcom/stripe/android/model/StripeIntent$Usage;Lcom/stripe/android/model/PaymentIntent$Error;Lcom/stripe/android/model/PaymentIntent$d;Ljava/util/List;Ljava/util/List;Lcom/stripe/android/model/StripeIntent$a;Ljava/lang/String;)V", "N", "CancellationReason", "CaptureMethod", "ConfirmationMethod", "Error", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public final class PaymentIntent implements StripeIntent {
private final String paymentMethodId;
private final String receiptEmail;
private final StripeIntent.Status status;
private final StripeIntent.Usage setupFutureUsage;
private final Error lastPaymentError;
private final Shipping shipping;
private final List<String> unactivatedPaymentMethods;
private final List<String> linkFundingSources;
private final StripeIntent.a nextActionData;
private final String paymentMethodOptionsJsonString;
private final String id;
private final List<String> paymentMethodTypes;
private final Long amount;
private final long canceledAt;
private final CancellationReason cancellationReason;
private final CaptureMethod captureMethod;
private final String clientSecret;
private final ConfirmationMethod confirmationMethod;
private final String countryCode;
private final long created;
private final String currency;
private final String description;
private final boolean isLiveMode;
private final PaymentMethod paymentMethod;
public static final int O = 8;
public static final Parcelable.Creator<PaymentIntent> CREATOR = new c();
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0010\u000e\n\u0002\b\u000e\b\u0086\u0081\u0002\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\bB\u0011\b\u0002\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004j\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000ej\u0002\b\u000f¨\u0006\u0010"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "", "", "code", "Ljava/lang/String;", "<init>", "(Ljava/lang/String;ILjava/lang/String;)V", "c", "a", "d", "e", "k", "n", "p", "q", "r", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class CancellationReason {
public static final Companion INSTANCE;
public static final CancellationReason d = new CancellationReason("Duplicate", 0, "duplicate");
public static final CancellationReason e = new CancellationReason("Fraudulent", 1, "fraudulent");
public static final CancellationReason k = new CancellationReason("RequestedByCustomer", 2, "requested_by_customer");
public static final CancellationReason n = new CancellationReason("Abandoned", 3, "abandoned");
public static final CancellationReason p = new CancellationReason("FailedInvoice", 4, "failed_invoice");
public static final CancellationReason q = new CancellationReason("VoidInvoice", 5, "void_invoice");
public static final CancellationReason r = new CancellationReason("Automatic", 6, "automatic");
private static final CancellationReason[] t;
private static final EnumEntries v;
private final String code;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CancellationReason$a;", "", "", "code", "Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "a", "<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 CancellationReason a(String code) {
Object obj;
Iterator<E> it = CancellationReason.d().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.r.d(((CancellationReason) obj).code, code)) {
break;
}
}
return (CancellationReason) obj;
}
}
static {
CancellationReason[] a = a();
t = a;
v = kotlin.enums.a.a(a);
INSTANCE = new Companion(null);
}
private CancellationReason(String str, int i, String str2) {
this.code = str2;
}
private static final CancellationReason[] a() {
return new CancellationReason[]{d, e, k, n, p, q, r};
}
public static EnumEntries<CancellationReason> d() {
return v;
}
public static CancellationReason valueOf(String str) {
return (CancellationReason) Enum.valueOf(CancellationReason.class, str);
}
public static CancellationReason[] values() {
return (CancellationReason[]) t.clone();
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0010\u000e\n\u0002\b\u000b\b\u0086\u0081\u0002\u0018\u0000 \u00052\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\tB\u0011\b\u0002\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0007\u0010\bR\u0017\u0010\u0003\u001a\u00020\u00028\u0007¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\nj\u0002\b\u000bj\u0002\b\f¨\u0006\r"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "", "", "code", "Ljava/lang/String;", "c", "()Ljava/lang/String;", "<init>", "(Ljava/lang/String;ILjava/lang/String;)V", "a", "d", "e", "k", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class CaptureMethod {
public static final Companion INSTANCE;
public static final CaptureMethod d = new CaptureMethod("Automatic", 0, "automatic");
public static final CaptureMethod e = new CaptureMethod("AutomaticAsync", 1, "automatic_async");
public static final CaptureMethod k = new CaptureMethod("Manual", 2, "manual");
private static final CaptureMethod[] n;
private static final EnumEntries p;
private final String code;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0010\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CaptureMethod$a;", "", "", "code", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "a", "<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 CaptureMethod a(String code) {
Object obj;
Iterator<E> it = CaptureMethod.d().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.r.d(((CaptureMethod) obj).getCode(), code)) {
break;
}
}
CaptureMethod captureMethod = (CaptureMethod) obj;
return captureMethod == null ? CaptureMethod.d : captureMethod;
}
}
static {
CaptureMethod[] a = a();
n = a;
p = kotlin.enums.a.a(a);
INSTANCE = new Companion(null);
}
private CaptureMethod(String str, int i, String str2) {
this.code = str2;
}
private static final CaptureMethod[] a() {
return new CaptureMethod[]{d, e, k};
}
public static EnumEntries<CaptureMethod> d() {
return p;
}
public static CaptureMethod valueOf(String str) {
return (CaptureMethod) Enum.valueOf(CaptureMethod.class, str);
}
public static CaptureMethod[] values() {
return (CaptureMethod[]) n.clone();
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final String getCode() {
return this.code;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0010\u000e\n\u0002\b\t\b\u0086\u0081\u0002\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\bB\u0011\b\u0002\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004j\u0002\b\tj\u0002\b\n¨\u0006\u000b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "", "", "code", "Ljava/lang/String;", "<init>", "(Ljava/lang/String;ILjava/lang/String;)V", "c", "a", "d", "e", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class ConfirmationMethod {
public static final Companion INSTANCE;
public static final ConfirmationMethod d = new ConfirmationMethod("Automatic", 0, "automatic");
public static final ConfirmationMethod e = new ConfirmationMethod("Manual", 1, "manual");
private static final ConfirmationMethod[] k;
private static final EnumEntries n;
private final String code;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0010\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod$a;", "", "", "code", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "a", "<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 ConfirmationMethod a(String code) {
Object obj;
Iterator<E> it = ConfirmationMethod.d().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.r.d(((ConfirmationMethod) obj).code, code)) {
break;
}
}
ConfirmationMethod confirmationMethod = (ConfirmationMethod) obj;
return confirmationMethod == null ? ConfirmationMethod.d : confirmationMethod;
}
}
static {
ConfirmationMethod[] a = a();
k = a;
n = kotlin.enums.a.a(a);
INSTANCE = new Companion(null);
}
private ConfirmationMethod(String str, int i, String str2) {
this.code = str2;
}
private static final ConfirmationMethod[] a() {
return new ConfirmationMethod[]{d, e};
}
public static EnumEntries<ConfirmationMethod> d() {
return n;
}
public static ConfirmationMethod valueOf(String str) {
return (ConfirmationMethod) Enum.valueOf(ConfirmationMethod.class, str);
}
public static ConfirmationMethod[] values() {
return (ConfirmationMethod[]) k.clone();
}
}
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u001c\b\u0087\b\u0018\u0000 22\u00020\u0001:\u000234BY\b\u0000\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\n\u001a\u0004\u0018\u00010\t\u0012\b\u0010\f\u001a\u0004\u0018\u00010\u000b¢\u0006\u0004\b0\u00101Ji\u0010\r\u001a\u00020\u00002\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\t2\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u000bHÆ\u0001J\t\u0010\u000e\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0010\u001a\u00020\u000fHÖ\u0001J\u0013\u0010\u0014\u001a\u00020\u00132\b\u0010\u0012\u001a\u0004\u0018\u00010\u0011HÖ\u0003J\t\u0010\u0015\u001a\u00020\u000fHÖ\u0001J\u0019\u0010\u001a\u001a\u00020\u00192\u0006\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0018\u001a\u00020\u000fHÖ\u0001R\u0019\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001b\u0010\u001c\u001a\u0004\b\u001d\u0010\u001eR\u0019\u0010\u0004\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001f\u0010\u001c\u001a\u0004\b \u0010\u001eR\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b!\u0010\u001c\u001a\u0004\b\"\u0010\u001eR\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b#\u0010\u001c\u001a\u0004\b$\u0010\u001eR\u0019\u0010\u0007\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b%\u0010\u001c\u001a\u0004\b!\u0010\u001eR\u0019\u0010\b\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b&\u0010\u001c\u001a\u0004\b'\u0010\u001eR\u0019\u0010\n\u001a\u0004\u0018\u00010\t8\u0006¢\u0006\f\n\u0004\b(\u0010)\u001a\u0004\b*\u0010+R\u0019\u0010\f\u001a\u0004\u0018\u00010\u000b8\u0006¢\u0006\f\n\u0004\b,\u0010-\u001a\u0004\b.\u0010/¨\u00065"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Error;", "Lph/b;", "", "charge", "code", "declineCode", "docUrl", "message", "param", "Lcom/stripe/android/model/PaymentMethod;", "paymentMethod", "Lcom/stripe/android/model/PaymentIntent$Error$Type;", LinkHeader.Parameters.Type, "b", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "c", "Ljava/lang/String;", "getCharge", "()Ljava/lang/String;", "d", "l", "e", "getDeclineCode", "k", "getDocUrl", "n", "p", "getParam", "q", "Lcom/stripe/android/model/PaymentMethod;", "getPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "r", "Lcom/stripe/android/model/PaymentIntent$Error$Type;", "g", "()Lcom/stripe/android/model/PaymentIntent$Error$Type;", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/PaymentMethod;Lcom/stripe/android/model/PaymentIntent$Error$Type;)V", "t", "a", "Type", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class Error implements ph.b {
private final String charge;
private final String code;
private final String declineCode;
private final String docUrl;
private final String message;
private final String param;
private final PaymentMethod paymentMethod;
private final Type type;
public static final int v = PaymentMethod.I;
public static final Parcelable.Creator<Error> CREATOR = new b();
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0010\u000e\n\u0002\b\u000f\b\u0086\u0081\u0002\u0018\u0000 \u00052\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\tB\u0011\b\u0002\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0007\u0010\bR\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000ej\u0002\b\u000fj\u0002\b\u0010¨\u0006\u0011"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Error$Type;", "", "", "code", "Ljava/lang/String;", "c", "()Ljava/lang/String;", "<init>", "(Ljava/lang/String;ILjava/lang/String;)V", "a", "d", "e", "k", "n", "p", "q", "r", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class Type {
public static final Companion INSTANCE;
public static final Type d = new Type("ApiConnectionError", 0, "api_connection_error");
public static final Type e = new Type("ApiError", 1, "api_error");
public static final Type k = new Type("AuthenticationError", 2, "authentication_error");
public static final Type n = new Type("CardError", 3, "card_error");
public static final Type p = new Type("IdempotencyError", 4, "idempotency_error");
public static final Type q = new Type("InvalidRequestError", 5, "invalid_request_error");
public static final Type r = new Type("RateLimitError", 6, "rate_limit_error");
private static final Type[] t;
private static final EnumEntries v;
private final String code;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Error$Type$a;", "", "", "typeCode", "Lcom/stripe/android/model/PaymentIntent$Error$Type;", "a", "<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 Type a(String typeCode) {
Object obj;
Iterator<E> it = Type.d().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.r.d(((Type) obj).getCode(), typeCode)) {
break;
}
}
return (Type) obj;
}
}
static {
Type[] a = a();
t = a;
v = kotlin.enums.a.a(a);
INSTANCE = new Companion(null);
}
private Type(String str, int i, String str2) {
this.code = str2;
}
private static final Type[] a() {
return new Type[]{d, e, k, n, p, q, r};
}
public static EnumEntries<Type> d() {
return v;
}
public static Type valueOf(String str) {
return (Type) Enum.valueOf(Type.class, str);
}
public static Type[] values() {
return (Type[]) t.clone();
}
public final String getCode() {
return this.code;
}
}
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class b implements Parcelable.Creator<Error> {
@Override
public final Error createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
return new Error(parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), (PaymentMethod) parcel.readParcelable(Error.class.getClassLoader()), parcel.readInt() == 0 ? null : Type.valueOf(parcel.readString()));
}
@Override
public final Error[] newArray(int i) {
return new Error[i];
}
}
public Error(String str, String str2, String str3, String str4, String str5, String str6, PaymentMethod paymentMethod, Type type) {
this.charge = str;
this.code = str2;
this.declineCode = str3;
this.docUrl = str4;
this.message = str5;
this.param = str6;
this.paymentMethod = paymentMethod;
this.type = type;
}
public final Error b(String charge, String code, String declineCode, String docUrl, String message, String param, PaymentMethod paymentMethod, Type type) {
return new Error(charge, code, declineCode, docUrl, message, param, paymentMethod, type);
}
@Override
public int describeContents() {
return 0;
}
public final String getMessage() {
return this.message;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Error)) {
return false;
}
Error error = (Error) other;
return kotlin.jvm.internal.r.d(this.charge, error.charge) && kotlin.jvm.internal.r.d(this.code, error.code) && kotlin.jvm.internal.r.d(this.declineCode, error.declineCode) && kotlin.jvm.internal.r.d(this.docUrl, error.docUrl) && kotlin.jvm.internal.r.d(this.message, error.message) && kotlin.jvm.internal.r.d(this.param, error.param) && kotlin.jvm.internal.r.d(this.paymentMethod, error.paymentMethod) && this.type == error.type;
}
public final Type getType() {
return this.type;
}
public int hashCode() {
String str = this.charge;
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
String str2 = this.code;
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
String str3 = this.declineCode;
int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
String str4 = this.docUrl;
int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
String str5 = this.message;
int hashCode5 = (hashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31;
String str6 = this.param;
int hashCode6 = (hashCode5 + (str6 == null ? 0 : str6.hashCode())) * 31;
PaymentMethod paymentMethod = this.paymentMethod;
int hashCode7 = (hashCode6 + (paymentMethod == null ? 0 : paymentMethod.hashCode())) * 31;
Type type = this.type;
return hashCode7 + (type != null ? type.hashCode() : 0);
}
public final String getCode() {
return this.code;
}
public String toString() {
return "Error(charge=" + this.charge + ", code=" + this.code + ", declineCode=" + this.declineCode + ", docUrl=" + this.docUrl + ", message=" + this.message + ", param=" + this.param + ", paymentMethod=" + this.paymentMethod + ", type=" + this.type + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
parcel.writeString(this.charge);
parcel.writeString(this.code);
parcel.writeString(this.declineCode);
parcel.writeString(this.docUrl);
parcel.writeString(this.message);
parcel.writeString(this.param);
parcel.writeParcelable(this.paymentMethod, flags);
Type type = this.type;
if (type == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(type.name());
}
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u000b\b\u0080\b\u0018\u0000 \u000b2\u00020\u0001:\u0001\tB\u000f\u0012\u0006\u0010\r\u001a\u00020\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\b\u001a\u00020\u00072\b\u0010\u0006\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\u001a\u0010\r\u001a\u00020\u00028\u0000X\u0080\u0004¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR\u001a\u0010\u000f\u001a\u00020\u00028\u0000X\u0080\u0004¢\u0006\f\n\u0004\b\u000e\u0010\n\u001a\u0004\b\u000e\u0010\f¨\u0006\u0012"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$a;", "", "", "toString", "", "hashCode", "other", "", "equals", "a", "Ljava/lang/String;", "c", "()Ljava/lang/String;", "value", "b", "paymentIntentId", "<init>", "(Ljava/lang/String;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class ClientSecret {
public static final Companion INSTANCE = new Companion(null);
private static final Pattern d = Pattern.compile("^pi_[^_]+_secret_[^_]+$");
private final String value;
private final String paymentIntentId;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u000e\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002R\u001c\u0010\b\u001a\n \u0007*\u0004\u0018\u00010\u00060\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\b\u0010\t¨\u0006\f"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$a$a;", "", "", "value", "", "a", "Ljava/util/regex/Pattern;", "kotlin.jvm.PlatformType", "PATTERN", "Ljava/util/regex/Pattern;", "<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 boolean a(String value) {
kotlin.jvm.internal.r.i(value, "value");
return ClientSecret.d.matcher(value).matches();
}
}
public ClientSecret(String value) {
List n;
kotlin.jvm.internal.r.i(value, "value");
this.value = value;
List<String> l = new Regex("_secret").l(value, 0);
if (!l.isEmpty()) {
ListIterator<String> listIterator = l.listIterator(l.size());
while (listIterator.hasPrevious()) {
if (listIterator.previous().length() != 0) {
n = CollectionsKt___CollectionsKt.d1(l, listIterator.nextIndex() + 1);
break;
}
}
}
n = kotlin.collections.o.n();
this.paymentIntentId = ((String[]) n.toArray(new String[0]))[0];
if (INSTANCE.a(this.value)) {
return;
}
throw new IllegalArgumentException(("Invalid Payment Intent client secret: " + this.value).toString());
}
public final String getPaymentIntentId() {
return this.paymentIntentId;
}
public final String getValue() {
return this.value;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof ClientSecret) && kotlin.jvm.internal.r.d(this.value, ((ClientSecret) other).value);
}
public int hashCode() {
return this.value.hashCode();
}
public String toString() {
return "ClientSecret(value=" + this.value + ")";
}
}
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class c implements Parcelable.Creator<PaymentIntent> {
@Override
public final PaymentIntent createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
return new PaymentIntent(parcel.readString(), parcel.createStringArrayList(), parcel.readInt() == 0 ? null : Long.valueOf(parcel.readLong()), parcel.readLong(), parcel.readInt() == 0 ? null : CancellationReason.valueOf(parcel.readString()), CaptureMethod.valueOf(parcel.readString()), parcel.readString(), ConfirmationMethod.valueOf(parcel.readString()), parcel.readString(), parcel.readLong(), parcel.readString(), parcel.readString(), parcel.readInt() != 0, (PaymentMethod) parcel.readParcelable(PaymentIntent.class.getClassLoader()), parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : StripeIntent.Status.valueOf(parcel.readString()), parcel.readInt() == 0 ? null : StripeIntent.Usage.valueOf(parcel.readString()), parcel.readInt() == 0 ? null : Error.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : Shipping.CREATOR.createFromParcel(parcel), parcel.createStringArrayList(), parcel.createStringArrayList(), (StripeIntent.a) parcel.readParcelable(PaymentIntent.class.getClassLoader()), parcel.readString());
}
@Override
public final PaymentIntent[] newArray(int i) {
return new PaymentIntent[i];
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0015\b\u0087\b\u0018\u00002\u00020\u0001B?\u0012\u0006\u0010\u0015\u001a\u00020\u0010\u0012\n\b\u0002\u0010\u001a\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\u001c\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\u001f\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\"\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b#\u0010$J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u0017\u0010\u0015\u001a\u00020\u00108\u0006¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u0013\u0010\u0014R\u0019\u0010\u001a\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u0019\u0010\u001c\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001b\u0010\u0017\u001a\u0004\b\u0011\u0010\u0019R\u0019\u0010\u001f\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001d\u0010\u0017\u001a\u0004\b\u001e\u0010\u0019R\u0019\u0010\"\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b \u0010\u0017\u001a\u0004\b!\u0010\u0019¨\u0006%"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$d;", "Lph/b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "Lcom/stripe/android/model/Address;", "c", "Lcom/stripe/android/model/Address;", "b", "()Lcom/stripe/android/model/Address;", "address", "d", "Ljava/lang/String;", "getCarrier", "()Ljava/lang/String;", "carrier", "e", ContentDisposition.Parameters.Name, "k", "getPhone", "phone", "n", "getTrackingNumber", "trackingNumber", "<init>", "(Lcom/stripe/android/model/Address;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
public static final class Shipping implements ph.b {
public static final Parcelable.Creator<Shipping> CREATOR = new a();
private final Address address;
private final String carrier;
private final String name;
private final String phone;
private final String trackingNumber;
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class a implements Parcelable.Creator<Shipping> {
@Override
public final Shipping createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
return new Shipping((Address) parcel.readParcelable(Shipping.class.getClassLoader()), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString());
}
@Override
public final Shipping[] newArray(int i) {
return new Shipping[i];
}
}
public Shipping(Address address, String str, String str2, String str3, String str4) {
kotlin.jvm.internal.r.i(address, "address");
this.address = address;
this.carrier = str;
this.name = str2;
this.phone = str3;
this.trackingNumber = str4;
}
public final Address getAddress() {
return this.address;
}
public final String getName() {
return this.name;
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Shipping)) {
return false;
}
Shipping shipping = (Shipping) other;
return kotlin.jvm.internal.r.d(this.address, shipping.address) && kotlin.jvm.internal.r.d(this.carrier, shipping.carrier) && kotlin.jvm.internal.r.d(this.name, shipping.name) && kotlin.jvm.internal.r.d(this.phone, shipping.phone) && kotlin.jvm.internal.r.d(this.trackingNumber, shipping.trackingNumber);
}
public int hashCode() {
int hashCode = this.address.hashCode() * 31;
String str = this.carrier;
int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
String str2 = this.name;
int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
String str3 = this.phone;
int hashCode4 = (hashCode3 + (str3 == null ? 0 : str3.hashCode())) * 31;
String str4 = this.trackingNumber;
return hashCode4 + (str4 != null ? str4.hashCode() : 0);
}
public String toString() {
return "Shipping(address=" + this.address + ", carrier=" + this.carrier + ", name=" + this.name + ", phone=" + this.phone + ", trackingNumber=" + this.trackingNumber + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
parcel.writeParcelable(this.address, flags);
parcel.writeString(this.carrier);
parcel.writeString(this.name);
parcel.writeString(this.phone);
parcel.writeString(this.trackingNumber);
}
}
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public class e {
public static final int[] a;
static {
int[] iArr = new int[StripeIntent.Usage.values().length];
try {
iArr[StripeIntent.Usage.d.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[StripeIntent.Usage.e.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[StripeIntent.Usage.k.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
a = iArr;
}
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public PaymentIntent(String str, List<String> paymentMethodTypes, Long l, long j, CancellationReason cancellationReason, CaptureMethod captureMethod, String str2, ConfirmationMethod confirmationMethod, String str3, long j2, String str4, String str5, boolean z, PaymentMethod paymentMethod, String str6, String str7, StripeIntent.Status status, StripeIntent.Usage usage, Error error, Shipping shipping, List<String> unactivatedPaymentMethods, List<String> linkFundingSources, StripeIntent.a aVar, String str8) {
kotlin.jvm.internal.r.i(paymentMethodTypes, "paymentMethodTypes");
kotlin.jvm.internal.r.i(captureMethod, "captureMethod");
kotlin.jvm.internal.r.i(confirmationMethod, "confirmationMethod");
kotlin.jvm.internal.r.i(unactivatedPaymentMethods, "unactivatedPaymentMethods");
kotlin.jvm.internal.r.i(linkFundingSources, "linkFundingSources");
this.id = str;
this.paymentMethodTypes = paymentMethodTypes;
this.amount = l;
this.canceledAt = j;
this.cancellationReason = cancellationReason;
this.captureMethod = captureMethod;
this.clientSecret = str2;
this.confirmationMethod = confirmationMethod;
this.countryCode = str3;
this.created = j2;
this.currency = str4;
this.description = str5;
this.isLiveMode = z;
this.paymentMethod = paymentMethod;
this.paymentMethodId = str6;
this.receiptEmail = str7;
this.status = status;
this.setupFutureUsage = usage;
this.lastPaymentError = error;
this.shipping = shipping;
this.unactivatedPaymentMethods = unactivatedPaymentMethods;
this.linkFundingSources = linkFundingSources;
this.nextActionData = aVar;
this.paymentMethodOptionsJsonString = str8;
}
private final boolean o(String code) {
JSONObject optJSONObject;
String str = this.paymentMethodOptionsJsonString;
if (str == null || (optJSONObject = new JSONObject(str).optJSONObject(code)) == null) {
return false;
}
return optJSONObject.has("setup_future_usage");
}
private final boolean u() {
StripeIntent.Usage usage = this.setupFutureUsage;
int i = usage == null ? -1 : e.a[usage.ordinal()];
if (i == -1) {
return false;
}
if (i == 1 || i == 2) {
return true;
}
if (i == 3) {
return false;
}
throw new NoWhenBranchMatchedException();
}
@Override
public Map<String, Object> B() {
Map<String, Object> j;
Map<String, Object> b;
String str = this.paymentMethodOptionsJsonString;
if (str != null && (b = ph.a.a.b(new JSONObject(str))) != null) {
return b;
}
j = g0.j();
return j;
}
@Override
public StripeIntent.NextActionType H() {
StripeIntent.a nextActionData = getNextActionData();
if (nextActionData instanceof StripeIntent.a.j) {
return StripeIntent.NextActionType.e;
}
if (nextActionData instanceof StripeIntent.a.RedirectToUrl) {
return StripeIntent.NextActionType.d;
}
if (nextActionData instanceof StripeIntent.a.DisplayOxxoDetails) {
return StripeIntent.NextActionType.k;
}
if (nextActionData instanceof StripeIntent.a.DisplayBoletoDetails) {
return StripeIntent.NextActionType.w;
}
if (nextActionData instanceof StripeIntent.a.DisplayKonbiniDetails) {
return StripeIntent.NextActionType.x;
}
if (nextActionData instanceof StripeIntent.a.DisplayMultibancoDetails) {
return StripeIntent.NextActionType.y;
}
if (nextActionData instanceof StripeIntent.a.VerifyWithMicrodeposits) {
return StripeIntent.NextActionType.r;
}
if (nextActionData instanceof StripeIntent.a.l) {
return StripeIntent.NextActionType.t;
}
if (nextActionData instanceof StripeIntent.a.CashAppRedirect) {
return StripeIntent.NextActionType.v;
}
if (nextActionData instanceof StripeIntent.a.b) {
return StripeIntent.NextActionType.p;
}
if (nextActionData instanceof StripeIntent.a.SwishRedirect) {
return StripeIntent.NextActionType.z;
}
if ((nextActionData instanceof StripeIntent.a.AlipayRedirect) || (nextActionData instanceof StripeIntent.a.WeChatPayRedirect) || nextActionData == null) {
return null;
}
throw new NoWhenBranchMatchedException();
}
@Override
public PaymentMethod getPaymentMethod() {
return this.paymentMethod;
}
@Override
public List<String> X() {
return this.unactivatedPaymentMethods;
}
@Override
public String getClientSecret() {
return this.clientSecret;
}
public final PaymentIntent b(String id, List<String> paymentMethodTypes, Long amount, long canceledAt, CancellationReason cancellationReason, CaptureMethod captureMethod, String clientSecret, ConfirmationMethod confirmationMethod, String countryCode, long created, String currency, String description, boolean isLiveMode, PaymentMethod paymentMethod, String paymentMethodId, String receiptEmail, StripeIntent.Status status, StripeIntent.Usage setupFutureUsage, Error lastPaymentError, Shipping shipping, List<String> unactivatedPaymentMethods, List<String> linkFundingSources, StripeIntent.a nextActionData, String paymentMethodOptionsJsonString) {
kotlin.jvm.internal.r.i(paymentMethodTypes, "paymentMethodTypes");
kotlin.jvm.internal.r.i(captureMethod, "captureMethod");
kotlin.jvm.internal.r.i(confirmationMethod, "confirmationMethod");
kotlin.jvm.internal.r.i(unactivatedPaymentMethods, "unactivatedPaymentMethods");
kotlin.jvm.internal.r.i(linkFundingSources, "linkFundingSources");
return new PaymentIntent(id, paymentMethodTypes, amount, canceledAt, cancellationReason, captureMethod, clientSecret, confirmationMethod, countryCode, created, currency, description, isLiveMode, paymentMethod, paymentMethodId, receiptEmail, status, setupFutureUsage, lastPaymentError, shipping, unactivatedPaymentMethods, linkFundingSources, nextActionData, paymentMethodOptionsJsonString);
}
@Override
public List<String> b0() {
return this.linkFundingSources;
}
@Override
public List<String> d() {
return this.paymentMethodTypes;
}
@Override
public int describeContents() {
return 0;
}
public final Long getAmount() {
return this.amount;
}
public final String getCurrency() {
return this.currency;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof PaymentIntent)) {
return false;
}
PaymentIntent paymentIntent = (PaymentIntent) other;
return kotlin.jvm.internal.r.d(this.id, paymentIntent.id) && kotlin.jvm.internal.r.d(this.paymentMethodTypes, paymentIntent.paymentMethodTypes) && kotlin.jvm.internal.r.d(this.amount, paymentIntent.amount) && this.canceledAt == paymentIntent.canceledAt && this.cancellationReason == paymentIntent.cancellationReason && this.captureMethod == paymentIntent.captureMethod && kotlin.jvm.internal.r.d(this.clientSecret, paymentIntent.clientSecret) && this.confirmationMethod == paymentIntent.confirmationMethod && kotlin.jvm.internal.r.d(this.countryCode, paymentIntent.countryCode) && this.created == paymentIntent.created && kotlin.jvm.internal.r.d(this.currency, paymentIntent.currency) && kotlin.jvm.internal.r.d(this.description, paymentIntent.description) && this.isLiveMode == paymentIntent.isLiveMode && kotlin.jvm.internal.r.d(this.paymentMethod, paymentIntent.paymentMethod) && kotlin.jvm.internal.r.d(this.paymentMethodId, paymentIntent.paymentMethodId) && kotlin.jvm.internal.r.d(this.receiptEmail, paymentIntent.receiptEmail) && this.status == paymentIntent.status && this.setupFutureUsage == paymentIntent.setupFutureUsage && kotlin.jvm.internal.r.d(this.lastPaymentError, paymentIntent.lastPaymentError) && kotlin.jvm.internal.r.d(this.shipping, paymentIntent.shipping) && kotlin.jvm.internal.r.d(this.unactivatedPaymentMethods, paymentIntent.unactivatedPaymentMethods) && kotlin.jvm.internal.r.d(this.linkFundingSources, paymentIntent.linkFundingSources) && kotlin.jvm.internal.r.d(this.nextActionData, paymentIntent.nextActionData) && kotlin.jvm.internal.r.d(this.paymentMethodOptionsJsonString, paymentIntent.paymentMethodOptionsJsonString);
}
public final CaptureMethod getCaptureMethod() {
return this.captureMethod;
}
@Override
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public String getCountryCode() {
return this.countryCode;
}
@Override
public String getId() {
return this.id;
}
@Override
public StripeIntent.Status getStatus() {
return this.status;
}
@Override
public StripeIntent.a getNextActionData() {
return this.nextActionData;
}
public int hashCode() {
String str = this.id;
int hashCode = (((str == null ? 0 : str.hashCode()) * 31) + this.paymentMethodTypes.hashCode()) * 31;
Long l = this.amount;
int hashCode2 = (((hashCode + (l == null ? 0 : l.hashCode())) * 31) + androidx.collection.a.a(this.canceledAt)) * 31;
CancellationReason cancellationReason = this.cancellationReason;
int hashCode3 = (((hashCode2 + (cancellationReason == null ? 0 : cancellationReason.hashCode())) * 31) + this.captureMethod.hashCode()) * 31;
String str2 = this.clientSecret;
int hashCode4 = (((hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31) + this.confirmationMethod.hashCode()) * 31;
String str3 = this.countryCode;
int hashCode5 = (((hashCode4 + (str3 == null ? 0 : str3.hashCode())) * 31) + androidx.collection.a.a(this.created)) * 31;
String str4 = this.currency;
int hashCode6 = (hashCode5 + (str4 == null ? 0 : str4.hashCode())) * 31;
String str5 = this.description;
int hashCode7 = (((hashCode6 + (str5 == null ? 0 : str5.hashCode())) * 31) + androidx.compose.animation.a.a(this.isLiveMode)) * 31;
PaymentMethod paymentMethod = this.paymentMethod;
int hashCode8 = (hashCode7 + (paymentMethod == null ? 0 : paymentMethod.hashCode())) * 31;
String str6 = this.paymentMethodId;
int hashCode9 = (hashCode8 + (str6 == null ? 0 : str6.hashCode())) * 31;
String str7 = this.receiptEmail;
int hashCode10 = (hashCode9 + (str7 == null ? 0 : str7.hashCode())) * 31;
StripeIntent.Status status = this.status;
int hashCode11 = (hashCode10 + (status == null ? 0 : status.hashCode())) * 31;
StripeIntent.Usage usage = this.setupFutureUsage;
int hashCode12 = (hashCode11 + (usage == null ? 0 : usage.hashCode())) * 31;
Error error = this.lastPaymentError;
int hashCode13 = (hashCode12 + (error == null ? 0 : error.hashCode())) * 31;
Shipping shipping = this.shipping;
int hashCode14 = (((((hashCode13 + (shipping == null ? 0 : shipping.hashCode())) * 31) + this.unactivatedPaymentMethods.hashCode()) * 31) + this.linkFundingSources.hashCode()) * 31;
StripeIntent.a aVar = this.nextActionData;
int hashCode15 = (hashCode14 + (aVar == null ? 0 : aVar.hashCode())) * 31;
String str8 = this.paymentMethodOptionsJsonString;
return hashCode15 + (str8 != null ? str8.hashCode() : 0);
}
public final ConfirmationMethod getConfirmationMethod() {
return this.confirmationMethod;
}
@Override
public boolean isConfirmed() {
Set j;
boolean j0;
j = p0.j(StripeIntent.Status.e, StripeIntent.Status.r, StripeIntent.Status.q);
j0 = CollectionsKt___CollectionsKt.j0(j, getStatus());
return j0;
}
public final Error getLastPaymentError() {
return this.lastPaymentError;
}
public final Shipping getShipping() {
return this.shipping;
}
@Override
public boolean getIsLiveMode() {
return this.isLiveMode;
}
@Override
public boolean p() {
return getStatus() == StripeIntent.Status.k;
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final boolean q(String code) {
kotlin.jvm.internal.r.i(code, "code");
return u() || o(code);
}
public final StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public String toString() {
return "PaymentIntent(id=" + this.id + ", paymentMethodTypes=" + this.paymentMethodTypes + ", amount=" + this.amount + ", canceledAt=" + this.canceledAt + ", cancellationReason=" + this.cancellationReason + ", captureMethod=" + this.captureMethod + ", clientSecret=" + this.clientSecret + ", confirmationMethod=" + this.confirmationMethod + ", countryCode=" + this.countryCode + ", created=" + this.created + ", currency=" + this.currency + ", description=" + this.description + ", isLiveMode=" + this.isLiveMode + ", paymentMethod=" + this.paymentMethod + ", paymentMethodId=" + this.paymentMethodId + ", receiptEmail=" + this.receiptEmail + ", status=" + this.status + ", setupFutureUsage=" + this.setupFutureUsage + ", lastPaymentError=" + this.lastPaymentError + ", shipping=" + this.shipping + ", unactivatedPaymentMethods=" + this.unactivatedPaymentMethods + ", linkFundingSources=" + this.linkFundingSources + ", nextActionData=" + this.nextActionData + ", paymentMethodOptionsJsonString=" + this.paymentMethodOptionsJsonString + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
parcel.writeString(this.id);
parcel.writeStringList(this.paymentMethodTypes);
Long l = this.amount;
if (l == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeLong(l.longValue());
}
parcel.writeLong(this.canceledAt);
CancellationReason cancellationReason = this.cancellationReason;
if (cancellationReason == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(cancellationReason.name());
}
parcel.writeString(this.captureMethod.name());
parcel.writeString(this.clientSecret);
parcel.writeString(this.confirmationMethod.name());
parcel.writeString(this.countryCode);
parcel.writeLong(this.created);
parcel.writeString(this.currency);
parcel.writeString(this.description);
parcel.writeInt(this.isLiveMode ? 1 : 0);
parcel.writeParcelable(this.paymentMethod, flags);
parcel.writeString(this.paymentMethodId);
parcel.writeString(this.receiptEmail);
StripeIntent.Status status = this.status;
if (status == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(status.name());
}
StripeIntent.Usage usage = this.setupFutureUsage;
if (usage == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(usage.name());
}
Error error = this.lastPaymentError;
if (error == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
error.writeToParcel(parcel, flags);
}
Shipping shipping = this.shipping;
if (shipping == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
shipping.writeToParcel(parcel, flags);
}
parcel.writeStringList(this.unactivatedPaymentMethods);
parcel.writeStringList(this.linkFundingSources);
parcel.writeParcelable(this.nextActionData, flags);
parcel.writeString(this.paymentMethodOptionsJsonString);
}
public PaymentIntent(String str, List list, Long l, long j, CancellationReason cancellationReason, CaptureMethod captureMethod, String str2, ConfirmationMethod confirmationMethod, String str3, long j2, String str4, String str5, boolean z, PaymentMethod paymentMethod, String str6, String str7, StripeIntent.Status status, StripeIntent.Usage usage, Error error, Shipping shipping, List list2, List list3, StripeIntent.a aVar, String str8, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, list, l, (i & 8) != 0 ? 0L : j, (i & 16) != 0 ? null : cancellationReason, (i & 32) != 0 ? CaptureMethod.d : captureMethod, str2, (i & WorkQueueKt.BUFFER_CAPACITY) != 0 ? ConfirmationMethod.d : confirmationMethod, str3, j2, str4, (i & 2048) != 0 ? null : str5, z, (i & 8192) != 0 ? null : paymentMethod, (i & 16384) != 0 ? null : str6, (32768 & i) != 0 ? null : str7, (65536 & i) != 0 ? null : status, (131072 & i) != 0 ? null : usage, (262144 & i) != 0 ? null : error, (524288 & i) != 0 ? null : shipping, list2, (2097152 & i) != 0 ? kotlin.collections.o.n() : list3, (4194304 & i) != 0 ? null : aVar, (i & 8388608) != 0 ? null : str8);
}
}