正在查看: Rilo v2.0.21 应用的 PaymentIntent.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Rilo v2.0.21 应用的 PaymentIntent.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.core.model.StripeJsonUtils;
import com.stripe.android.core.model.StripeModel;
import com.stripe.android.model.PaymentMethodOptionsParams;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.model.parsers.PaymentIntentJsonParser;
import com.stripe.android.stripe3ds2.transactions.MessageExtension;
import com.tiktok.appevents.contents.TTContentsEventConstants;
import com.truecaller.android.sdk.TruecallerSdkScope;
import com.truecaller.android.sdk.network.RestAdapter;
import com.truecaller.android.sdk.network.VerificationService;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.regex.Pattern;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.collections.SetsKt;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000\u0098\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\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\u0005\n\u0002\u0010\u000b\n\u0000\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\u001f\n\u0002\u0018\u0002\n\u0002\b)\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\b\u0087\b\u0018\u0000 \u0086\u00012\u00020\u0001:\u000e\u0083\u0001\u0084\u0001\u0085\u0001\u0086\u0001\u0087\u0001\u0088\u0001\u0089\u0001B\u0097\u0002\b\u0007\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\b\b\u0002\u0010\b\u001a\u00020\u0007\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n\u0012\b\b\u0002\u0010\u000b\u001a\u00020\f\u0012\b\u0010\r\u001a\u0004\u0018\u00010\u0003\u0012\b\b\u0002\u0010\u000e\u001a\u00020\u000f\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0011\u001a\u00020\u0007\u0012\b\u0010\u0012\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\u0013\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0014\u001a\u00020\u0015\u0012\n\b\u0002\u0010\u0016\u001a\u0004\u0018\u00010\u0017\u0012\n\b\u0002\u0010\u0018\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\u001a\u001a\u0004\u0018\u00010\u001b\u0012\n\b\u0002\u0010\u001c\u001a\u0004\u0018\u00010\u001d\u0012\n\b\u0002\u0010\u001e\u001a\u0004\u0018\u00010\u001f\u0012\n\b\u0002\u0010 \u001a\u0004\u0018\u00010!\u0012\f\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005\u0012\u000e\b\u0002\u0010#\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005\u0012\n\b\u0002\u0010$\u001a\u0004\u0018\u00010%\u0012\n\b\u0002\u0010&\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010'J\u000b\u0010T\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010U\u001a\u00020\u0007HÆ\u0003J\u000b\u0010V\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010W\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010X\u001a\u00020\u0015HÆ\u0003J\u000b\u0010Y\u001a\u0004\u0018\u00010\u0017HÆ\u0003J\u000b\u0010Z\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010[\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\\\u001a\u0004\u0018\u00010\u001bHÆ\u0003J\u000b\u0010]\u001a\u0004\u0018\u00010\u001dHÆ\u0003J\u000b\u0010^\u001a\u0004\u0018\u00010\u001fHÆ\u0003J\u000f\u0010_\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005HÆ\u0003J\u000b\u0010`\u001a\u0004\u0018\u00010!HÆ\u0003J\u000f\u0010a\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005HÆ\u0003J\u000f\u0010b\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005HÆ\u0003J\u000b\u0010c\u001a\u0004\u0018\u00010%HÆ\u0003J\u000b\u0010d\u001a\u0004\u0018\u00010\u0003HÂ\u0003J\u0010\u0010e\u001a\u0004\u0018\u00010\u0007HÆ\u0003¢\u0006\u0002\u0010)J\t\u0010f\u001a\u00020\u0007HÆ\u0003J\u000b\u0010g\u001a\u0004\u0018\u00010\nHÆ\u0003J\t\u0010h\u001a\u00020\fHÆ\u0003J\u000b\u0010i\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010j\u001a\u00020\u000fHÆ\u0003J\u000b\u0010k\u001a\u0004\u0018\u00010\u0003HÆ\u0003J°\u0002\u0010l\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00072\b\b\u0002\u0010\b\u001a\u00020\u00072\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\b\b\u0002\u0010\u000b\u001a\u00020\f2\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u000e\u001a\u00020\u000f2\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0011\u001a\u00020\u00072\n\b\u0002\u0010\u0012\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0013\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0014\u001a\u00020\u00152\n\b\u0002\u0010\u0016\u001a\u0004\u0018\u00010\u00172\n\b\u0002\u0010\u0018\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u001a\u001a\u0004\u0018\u00010\u001b2\n\b\u0002\u0010\u001c\u001a\u0004\u0018\u00010\u001d2\n\b\u0002\u0010\u001e\u001a\u0004\u0018\u00010\u001f2\n\b\u0002\u0010 \u001a\u0004\u0018\u00010!2\u000e\b\u0002\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00030\u00052\u000e\b\u0002\u0010#\u001a\b\u0012\u0004\u0012\u00020\u00030\u00052\n\b\u0002\u0010$\u001a\u0004\u0018\u00010%2\n\b\u0002\u0010&\u001a\u0004\u0018\u00010\u0003HÆ\u0001¢\u0006\u0002\u0010mJ\t\u0010n\u001a\u00020oHÖ\u0001J\u0013\u0010p\u001a\u00020\u00152\b\u0010q\u001a\u0004\u0018\u00010rHÖ\u0003J\u0016\u0010s\u001a\u0010\u0012\u0004\u0012\u00020\u0003\u0012\u0006\u0012\u0004\u0018\u00010r0tH\u0016J\t\u0010u\u001a\u00020oHÖ\u0001J\u0014\u0010v\u001a\u00020\u00152\n\u0010w\u001a\u00060\u0003j\u0002`xH\u0002J\u0014\u0010y\u001a\u00020\u00152\n\u0010w\u001a\u00060\u0003j\u0002`xH\u0007J\b\u0010z\u001a\u00020\u0015H\u0002J\b\u0010{\u001a\u00020\u0015H\u0016J\b\u0010|\u001a\u00020\u0015H\u0016J\t\u0010}\u001a\u00020\u0003HÖ\u0001J\u001c\u0010~\u001a\u00020\u007f2\b\u0010\u0080\u0001\u001a\u00030\u0081\u00012\u0007\u0010\u0082\u0001\u001a\u00020oHÖ\u0001R\u0015\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\n\n\u0002\u0010*\u001a\u0004\b(\u0010)R\u0011\u0010\b\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b+\u0010,R\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b-\u0010.R\u0011\u0010\u000b\u001a\u00020\f¢\u0006\b\n\u0000\u001a\u0004\b/\u00100R\u0016\u0010\r\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b1\u00102R\u0011\u0010\u000e\u001a\u00020\u000f¢\u0006\b\n\u0000\u001a\u0004\b3\u00104R\u0018\u0010\u0010\u001a\u0004\u0018\u00010\u00038\u0017X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b5\u00102R\u0014\u0010\u0011\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b6\u0010,R\u0013\u0010\u0012\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b7\u00102R\u0016\u0010\u0013\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b8\u00102R\u0016\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b9\u00102R\u0014\u0010:\u001a\u00020\u00158VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b:\u0010;R\u0014\u0010\u0014\u001a\u00020\u0015X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010;R\u0016\u0010<\u001a\u0004\u0018\u00010\u00038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b=\u00102R\u0013\u0010\u001e\u001a\u0004\u0018\u00010\u001f¢\u0006\b\n\u0000\u001a\u0004\b>\u0010?R\u001a\u0010#\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b@\u0010AR\u0016\u0010$\u001a\u0004\u0018\u00010%X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\bB\u0010CR\u0016\u0010D\u001a\u0004\u0018\u00010E8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bF\u0010GR\u0016\u0010\u0016\u001a\u0004\u0018\u00010\u0017X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\bH\u0010IR\u0016\u0010\u0018\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\bJ\u00102R\u0010\u0010&\u001a\u0004\u0018\u00010\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\bK\u0010AR\u0013\u0010\u0019\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\bL\u00102R\u0013\u0010\u001c\u001a\u0004\u0018\u00010\u001d¢\u0006\b\n\u0000\u001a\u0004\bM\u0010NR\u0013\u0010 \u001a\u0004\u0018\u00010!¢\u0006\b\n\u0000\u001a\u0004\bO\u0010PR\u0016\u0010\u001a\u001a\u0004\u0018\u00010\u001bX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\bQ\u0010RR\u001a\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\bS\u0010A¨\u0006\u008a\u0001"}, d2 = {"Lcom/stripe/android/model/PaymentIntent;", "Lcom/stripe/android/model/StripeIntent;", MessageExtension.FIELD_ID, "", "paymentMethodTypes", "", CreateFinancialConnectionsSessionForDeferredPaymentParams.PARAM_AMOUNT, "", "canceledAt", "cancellationReason", "Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "captureMethod", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "clientSecret", "confirmationMethod", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "countryCode", "created", "currency", TTContentsEventConstants.Params.EVENT_PROPERTY_DESCRIPTION, "isLiveMode", "", "paymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "paymentMethodId", "receiptEmail", VerificationService.JSON_KEY_STATUS, "Lcom/stripe/android/model/StripeIntent$Status;", "setupFutureUsage", "Lcom/stripe/android/model/StripeIntent$Usage;", "lastPaymentError", "Lcom/stripe/android/model/PaymentIntent$Error;", "shipping", "Lcom/stripe/android/model/PaymentIntent$Shipping;", "unactivatedPaymentMethods", "linkFundingSources", "nextActionData", "Lcom/stripe/android/model/StripeIntent$NextActionData;", "paymentMethodOptionsJsonString", "(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$Shipping;Ljava/util/List;Ljava/util/List;Lcom/stripe/android/model/StripeIntent$NextActionData;Ljava/lang/String;)V", "getAmount", "()Ljava/lang/Long;", "Ljava/lang/Long;", "getCanceledAt", "()J", "getCancellationReason", "()Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "getCaptureMethod", "()Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "getClientSecret", "()Ljava/lang/String;", "getConfirmationMethod", "()Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "getCountryCode", "getCreated", "getCurrency", "getDescription", "getId", "isConfirmed", "()Z", "lastErrorMessage", "getLastErrorMessage", "getLastPaymentError", "()Lcom/stripe/android/model/PaymentIntent$Error;", "getLinkFundingSources", "()Ljava/util/List;", "getNextActionData", "()Lcom/stripe/android/model/StripeIntent$NextActionData;", "nextActionType", "Lcom/stripe/android/model/StripeIntent$NextActionType;", "getNextActionType", "()Lcom/stripe/android/model/StripeIntent$NextActionType;", "getPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "getPaymentMethodId", "getPaymentMethodTypes", "getReceiptEmail", "getSetupFutureUsage", "()Lcom/stripe/android/model/StripeIntent$Usage;", "getShipping", "()Lcom/stripe/android/model/PaymentIntent$Shipping;", "getStatus", "()Lcom/stripe/android/model/StripeIntent$Status;", "getUnactivatedPaymentMethods", "component1", "component10", "component11", "component12", "component13", "component14", "component15", "component16", "component17", "component18", "component19", "component2", "component20", "component21", "component22", "component23", "component24", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "(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$Shipping;Ljava/util/List;Ljava/util/List;Lcom/stripe/android/model/StripeIntent$NextActionData;Ljava/lang/String;)Lcom/stripe/android/model/PaymentIntent;", "describeContents", "", "equals", "other", "", "getPaymentMethodOptions", "", "hashCode", "isLpmLevelSetupFutureUsageSet", PaymentMethodOptionsParams.Blik.PARAM_CODE, "Lcom/stripe/android/model/PaymentMethodCode;", "isSetupFutureUsageSet", "isTopLevelSetupFutureUsageSet", "requiresAction", "requiresConfirmation", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "CancellationReason", "CaptureMethod", "ClientSecret", "Companion", "ConfirmationMethod", "Error", "Shipping", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class PaymentIntent implements StripeIntent {
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 String id;
private final boolean isLiveMode;
private final Error lastPaymentError;
private final List<String> linkFundingSources;
private final StripeIntent.NextActionData nextActionData;
private final PaymentMethod paymentMethod;
private final String paymentMethodId;
private final String paymentMethodOptionsJsonString;
private final List<String> paymentMethodTypes;
private final String receiptEmail;
private final StripeIntent.Usage setupFutureUsage;
private final Shipping shipping;
private final StripeIntent.Status status;
private final List<String> unactivatedPaymentMethods;
public static final Companion INSTANCE = new Companion(null);
public static final int $stable = 8;
public static final Parcelable.Creator<PaymentIntent> CREATOR = new Creator();
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<PaymentIntent> {
@Override
public final PaymentIntent createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(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, parcel.readInt() == 0 ? null : PaymentMethod.CREATOR.createFromParcel(parcel), 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 ? Shipping.CREATOR.createFromParcel(parcel) : null, parcel.createStringArrayList(), parcel.createStringArrayList(), (StripeIntent.NextActionData) parcel.readParcelable(PaymentIntent.class.getClassLoader()), parcel.readString());
}
@Override
public final PaymentIntent[] newArray(int i2) {
return new PaymentIntent[i2];
}
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public class WhenMappings {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[StripeIntent.Usage.values().length];
try {
iArr[StripeIntent.Usage.OnSession.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[StripeIntent.Usage.OffSession.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[StripeIntent.Usage.OneTime.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
private final String getPaymentMethodOptionsJsonString() {
return this.paymentMethodOptionsJsonString;
}
@JvmStatic
public static final PaymentIntent fromJson(JSONObject jSONObject) {
return INSTANCE.fromJson(jSONObject);
}
public final String getId() {
return this.id;
}
public final long getCreated() {
return this.created;
}
public final String getCurrency() {
return this.currency;
}
public final String getDescription() {
return this.description;
}
public final boolean getIsLiveMode() {
return this.isLiveMode;
}
public final PaymentMethod getPaymentMethod() {
return this.paymentMethod;
}
public final String getPaymentMethodId() {
return this.paymentMethodId;
}
public final String getReceiptEmail() {
return this.receiptEmail;
}
public final StripeIntent.Status getStatus() {
return this.status;
}
public final StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public final Error getLastPaymentError() {
return this.lastPaymentError;
}
public final List<String> component2() {
return this.paymentMethodTypes;
}
public final Shipping getShipping() {
return this.shipping;
}
public final List<String> component21() {
return this.unactivatedPaymentMethods;
}
public final List<String> component22() {
return this.linkFundingSources;
}
public final StripeIntent.NextActionData getNextActionData() {
return this.nextActionData;
}
public final Long getAmount() {
return this.amount;
}
public final long getCanceledAt() {
return this.canceledAt;
}
public final CancellationReason getCancellationReason() {
return this.cancellationReason;
}
public final CaptureMethod getCaptureMethod() {
return this.captureMethod;
}
public final String getClientSecret() {
return this.clientSecret;
}
public final ConfirmationMethod getConfirmationMethod() {
return this.confirmationMethod;
}
public final String getCountryCode() {
return this.countryCode;
}
public final PaymentIntent copy(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.NextActionData nextActionData, String paymentMethodOptionsJsonString) {
Intrinsics.checkNotNullParameter(paymentMethodTypes, "paymentMethodTypes");
Intrinsics.checkNotNullParameter(captureMethod, "captureMethod");
Intrinsics.checkNotNullParameter(confirmationMethod, "confirmationMethod");
Intrinsics.checkNotNullParameter(unactivatedPaymentMethods, "unactivatedPaymentMethods");
Intrinsics.checkNotNullParameter(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);
}
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof PaymentIntent)) {
return false;
}
PaymentIntent paymentIntent = (PaymentIntent) other;
return Intrinsics.areEqual(this.id, paymentIntent.id) && Intrinsics.areEqual(this.paymentMethodTypes, paymentIntent.paymentMethodTypes) && Intrinsics.areEqual(this.amount, paymentIntent.amount) && this.canceledAt == paymentIntent.canceledAt && this.cancellationReason == paymentIntent.cancellationReason && this.captureMethod == paymentIntent.captureMethod && Intrinsics.areEqual(this.clientSecret, paymentIntent.clientSecret) && this.confirmationMethod == paymentIntent.confirmationMethod && Intrinsics.areEqual(this.countryCode, paymentIntent.countryCode) && this.created == paymentIntent.created && Intrinsics.areEqual(this.currency, paymentIntent.currency) && Intrinsics.areEqual(this.description, paymentIntent.description) && this.isLiveMode == paymentIntent.isLiveMode && Intrinsics.areEqual(this.paymentMethod, paymentIntent.paymentMethod) && Intrinsics.areEqual(this.paymentMethodId, paymentIntent.paymentMethodId) && Intrinsics.areEqual(this.receiptEmail, paymentIntent.receiptEmail) && this.status == paymentIntent.status && this.setupFutureUsage == paymentIntent.setupFutureUsage && Intrinsics.areEqual(this.lastPaymentError, paymentIntent.lastPaymentError) && Intrinsics.areEqual(this.shipping, paymentIntent.shipping) && Intrinsics.areEqual(this.unactivatedPaymentMethods, paymentIntent.unactivatedPaymentMethods) && Intrinsics.areEqual(this.linkFundingSources, paymentIntent.linkFundingSources) && Intrinsics.areEqual(this.nextActionData, paymentIntent.nextActionData) && Intrinsics.areEqual(this.paymentMethodOptionsJsonString, paymentIntent.paymentMethodOptionsJsonString);
}
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) + Long.hashCode(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) + Long.hashCode(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;
boolean z = this.isLiveMode;
int i2 = z;
if (z != 0) {
i2 = 1;
}
int i3 = (hashCode7 + i2) * 31;
PaymentMethod paymentMethod = this.paymentMethod;
int hashCode8 = (i3 + (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.NextActionData nextActionData = this.nextActionData;
int hashCode15 = (hashCode14 + (nextActionData == null ? 0 : nextActionData.hashCode())) * 31;
String str8 = this.paymentMethodOptionsJsonString;
return hashCode15 + (str8 != null ? str8.hashCode() : 0);
}
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 + ")";
}
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(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);
PaymentMethod paymentMethod = this.paymentMethod;
if (paymentMethod == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
paymentMethod.writeToParcel(parcel, 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((Parcelable) this.nextActionData, flags);
parcel.writeString(this.paymentMethodOptionsJsonString);
}
public PaymentIntent(String str, List<String> list, Long l, long j2, CancellationReason cancellationReason, CaptureMethod captureMethod, String str2, ConfirmationMethod confirmationMethod, String str3, long j3, String str4, String str5, boolean z, PaymentMethod paymentMethod, String str6, String str7, StripeIntent.Status status, StripeIntent.Usage usage, Error error, Shipping shipping, List<String> list2, List<String> list3, StripeIntent.NextActionData nextActionData, String str8) {
Intrinsics.checkNotNullParameter(list, "paymentMethodTypes");
Intrinsics.checkNotNullParameter(captureMethod, "captureMethod");
Intrinsics.checkNotNullParameter(confirmationMethod, "confirmationMethod");
Intrinsics.checkNotNullParameter(list2, "unactivatedPaymentMethods");
Intrinsics.checkNotNullParameter(list3, "linkFundingSources");
this.id = str;
this.paymentMethodTypes = list;
this.amount = l;
this.canceledAt = j2;
this.cancellationReason = cancellationReason;
this.captureMethod = captureMethod;
this.clientSecret = str2;
this.confirmationMethod = confirmationMethod;
this.countryCode = str3;
this.created = j3;
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 = list2;
this.linkFundingSources = list3;
this.nextActionData = nextActionData;
this.paymentMethodOptionsJsonString = str8;
}
@Override
public String getId() {
return this.id;
}
@Override
public List<String> getPaymentMethodTypes() {
return this.paymentMethodTypes;
}
public final Long getAmount() {
return this.amount;
}
public final long getCanceledAt() {
return this.canceledAt;
}
public final CancellationReason getCancellationReason() {
return this.cancellationReason;
}
public PaymentIntent(String str, List list, Long l, long j2, CancellationReason cancellationReason, CaptureMethod captureMethod, String str2, ConfirmationMethod confirmationMethod, String str3, long j3, 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.NextActionData nextActionData, String str8, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(str, list, l, (i2 & 8) != 0 ? 0L : j2, (i2 & 16) != 0 ? null : cancellationReason, (i2 & 32) != 0 ? CaptureMethod.Automatic : captureMethod, str2, (i2 & 128) != 0 ? ConfirmationMethod.Automatic : confirmationMethod, str3, j3, str4, (i2 & TruecallerSdkScope.BUTTON_SHAPE_RECTANGLE) != 0 ? null : str5, z, (i2 & 8192) != 0 ? null : paymentMethod, (i2 & 16384) != 0 ? null : str6, (32768 & i2) != 0 ? null : str7, (65536 & i2) != 0 ? null : status, (131072 & i2) != 0 ? null : usage, (262144 & i2) != 0 ? null : error, (524288 & i2) != 0 ? null : shipping, list2, (2097152 & i2) != 0 ? CollectionsKt.emptyList() : list3, (4194304 & i2) != 0 ? null : nextActionData, (i2 & 8388608) != 0 ? null : str8);
}
public final CaptureMethod getCaptureMethod() {
return this.captureMethod;
}
@Override
public String getClientSecret() {
return this.clientSecret;
}
public final ConfirmationMethod getConfirmationMethod() {
return this.confirmationMethod;
}
@Override
public String getCountryCode() {
return this.countryCode;
}
@Override
public long getCreated() {
return this.created;
}
public final String getCurrency() {
return this.currency;
}
@Override
public String getDescription() {
return this.description;
}
@Override
public boolean isLiveMode() {
return this.isLiveMode;
}
@Override
public PaymentMethod getPaymentMethod() {
return this.paymentMethod;
}
@Override
public String getPaymentMethodId() {
return this.paymentMethodId;
}
public final String getReceiptEmail() {
return this.receiptEmail;
}
@Override
public StripeIntent.Status getStatus() {
return this.status;
}
public final StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public final Error getLastPaymentError() {
return this.lastPaymentError;
}
public final Shipping getShipping() {
return this.shipping;
}
@Override
public List<String> getUnactivatedPaymentMethods() {
return this.unactivatedPaymentMethods;
}
@Override
public List<String> getLinkFundingSources() {
return this.linkFundingSources;
}
@Override
public StripeIntent.NextActionData getNextActionData() {
return this.nextActionData;
}
@Override
public Map<String, Object> getPaymentMethodOptions() {
Map<String, Object> jsonObjectToMap;
String str = this.paymentMethodOptionsJsonString;
return (str == null || (jsonObjectToMap = StripeJsonUtils.INSTANCE.jsonObjectToMap(new JSONObject(str))) == null) ? MapsKt.emptyMap() : jsonObjectToMap;
}
@Override
public StripeIntent.NextActionType getNextActionType() {
StripeIntent.NextActionData nextActionData = getNextActionData();
if (nextActionData instanceof StripeIntent.NextActionData.SdkData) {
return StripeIntent.NextActionType.UseStripeSdk;
}
if (nextActionData instanceof StripeIntent.NextActionData.RedirectToUrl) {
return StripeIntent.NextActionType.RedirectToUrl;
}
if (nextActionData instanceof StripeIntent.NextActionData.DisplayOxxoDetails) {
return StripeIntent.NextActionType.DisplayOxxoDetails;
}
if (nextActionData instanceof StripeIntent.NextActionData.DisplayBoletoDetails) {
return StripeIntent.NextActionType.DisplayBoletoDetails;
}
if (nextActionData instanceof StripeIntent.NextActionData.DisplayKonbiniDetails) {
return StripeIntent.NextActionType.DisplayKonbiniDetails;
}
if (nextActionData instanceof StripeIntent.NextActionData.VerifyWithMicrodeposits) {
return StripeIntent.NextActionType.VerifyWithMicrodeposits;
}
if (nextActionData instanceof StripeIntent.NextActionData.UpiAwaitNotification) {
return StripeIntent.NextActionType.UpiAwaitNotification;
}
if (nextActionData instanceof StripeIntent.NextActionData.CashAppRedirect) {
return StripeIntent.NextActionType.CashAppRedirect;
}
if (nextActionData instanceof StripeIntent.NextActionData.BlikAuthorize) {
return StripeIntent.NextActionType.BlikAuthorize;
}
if (nextActionData instanceof StripeIntent.NextActionData.SwishRedirect) {
return StripeIntent.NextActionType.SwishRedirect;
}
boolean z = true;
if (!(nextActionData instanceof StripeIntent.NextActionData.AlipayRedirect ? true : nextActionData instanceof StripeIntent.NextActionData.WeChatPayRedirect) && nextActionData != null) {
z = false;
}
if (z) {
return null;
}
throw new NoWhenBranchMatchedException();
}
@Override
public boolean isConfirmed() {
return CollectionsKt.contains(SetsKt.setOf(new StripeIntent.Status[]{StripeIntent.Status.Processing, StripeIntent.Status.RequiresCapture, StripeIntent.Status.Succeeded}), getStatus());
}
@Override
public String getLastErrorMessage() {
Error error = this.lastPaymentError;
if (error != null) {
return error.getMessage();
}
return null;
}
@Override
public boolean requiresAction() {
return getStatus() == StripeIntent.Status.RequiresAction;
}
@Override
public boolean requiresConfirmation() {
return getStatus() == StripeIntent.Status.RequiresConfirmation;
}
public final boolean isSetupFutureUsageSet(String code) {
Intrinsics.checkNotNullParameter(code, PaymentMethodOptionsParams.Blik.PARAM_CODE);
return isTopLevelSetupFutureUsageSet() || isLpmLevelSetupFutureUsageSet(code);
}
private final boolean isTopLevelSetupFutureUsageSet() {
StripeIntent.Usage usage = this.setupFutureUsage;
int i2 = usage == null ? -1 : WhenMappings.$EnumSwitchMapping$0[usage.ordinal()];
if (i2 == -1) {
return false;
}
if (i2 == 1 || i2 == 2) {
return true;
}
if (i2 == 3) {
return false;
}
throw new NoWhenBranchMatchedException();
}
private final boolean isLpmLevelSetupFutureUsageSet(String code) {
JSONObject optJSONObject;
String str = this.paymentMethodOptionsJsonString;
if (str == null || (optJSONObject = new JSONObject(str).optJSONObject(code)) == null) {
return false;
}
return optJSONObject.has(PaymentMethodOptionsParams.USBankAccount.PARAM_SETUP_FUTURE_USAGE);
}
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0016\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0087\b\u0018\u0000 /2\u00020\u0001:\u0002/0BW\b\u0000\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\t\u001a\u0004\u0018\u00010\n\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\f¢\u0006\u0002\u0010\rJ\u000b\u0010\u0019\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001a\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001b\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001c\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001d\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001e\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001f\u001a\u0004\u0018\u00010\nHÆ\u0003J\u000b\u0010 \u001a\u0004\u0018\u00010\fHÆ\u0003Ji\u0010!\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\fHÆ\u0001J\t\u0010\"\u001a\u00020#HÖ\u0001J\u0013\u0010$\u001a\u00020%2\b\u0010&\u001a\u0004\u0018\u00010'HÖ\u0003J\t\u0010(\u001a\u00020#HÖ\u0001J\t\u0010)\u001a\u00020\u0003HÖ\u0001J\u0019\u0010*\u001a\u00020+2\u0006\u0010,\u001a\u00020-2\u0006\u0010.\u001a\u00020#HÖ\u0001R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u000fR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u000fR\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u000fR\u0013\u0010\u0007\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u000fR\u0013\u0010\b\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u000fR\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0013\u0010\u000b\u001a\u0004\u0018\u00010\f¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018¨\u00061"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Error;", "Lcom/stripe/android/core/model/StripeModel;", "charge", "", PaymentMethodOptionsParams.Blik.PARAM_CODE, "declineCode", "docUrl", RestAdapter.JSON_KEY_ERROR_MESSAGE, "param", "paymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "type", "Lcom/stripe/android/model/PaymentIntent$Error$Type;", "(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", "getCharge", "()Ljava/lang/String;", "getCode", "getDeclineCode", "getDocUrl", "getMessage", "getParam", "getPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "getType", "()Lcom/stripe/android/model/PaymentIntent$Error$Type;", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "copy", "describeContents", "", "equals", "", "other", "", "hashCode", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "Companion", "Type", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Error implements StripeModel {
public static final String CODE_AUTHENTICATION_ERROR = "payment_intent_authentication_failure";
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 $stable = 8;
public static final Parcelable.Creator<Error> CREATOR = new Creator();
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<Error> {
@Override
public final Error createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new Error(parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : PaymentMethod.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : Type.valueOf(parcel.readString()));
}
@Override
public final Error[] newArray(int i2) {
return new Error[i2];
}
}
public final String getCharge() {
return this.charge;
}
public final String getCode() {
return this.code;
}
public final String getDeclineCode() {
return this.declineCode;
}
public final String getDocUrl() {
return this.docUrl;
}
public final String getMessage() {
return this.message;
}
public final String getParam() {
return this.param;
}
public final PaymentMethod getPaymentMethod() {
return this.paymentMethod;
}
public final Type getType() {
return this.type;
}
public final Error copy(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);
}
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Error)) {
return false;
}
Error error = (Error) other;
return Intrinsics.areEqual(this.charge, error.charge) && Intrinsics.areEqual(this.code, error.code) && Intrinsics.areEqual(this.declineCode, error.declineCode) && Intrinsics.areEqual(this.docUrl, error.docUrl) && Intrinsics.areEqual(this.message, error.message) && Intrinsics.areEqual(this.param, error.param) && Intrinsics.areEqual(this.paymentMethod, error.paymentMethod) && this.type == error.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 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 + ")";
}
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(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);
PaymentMethod paymentMethod = this.paymentMethod;
if (paymentMethod == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
paymentMethod.writeToParcel(parcel, flags);
}
Type type = this.type;
if (type == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(type.name());
}
}
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 String getCharge() {
return this.charge;
}
public final String getCode() {
return this.code;
}
public final String getDeclineCode() {
return this.declineCode;
}
public final String getDocUrl() {
return this.docUrl;
}
public final String getMessage() {
return this.message;
}
public final String getParam() {
return this.param;
}
public final PaymentMethod getPaymentMethod() {
return this.paymentMethod;
}
public final Type getType() {
return this.type;
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\f\b\u0086\u0001\u0018\u0000 \u000e2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u000eB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\r¨\u0006\u000f"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Error$Type;", "", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "(Ljava/lang/String;ILjava/lang/String;)V", "getCode", "()Ljava/lang/String;", "ApiConnectionError", "ApiError", "AuthenticationError", "CardError", "IdempotencyError", "InvalidRequestError", "RateLimitError", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public enum Type {
ApiConnectionError("api_connection_error"),
ApiError("api_error"),
AuthenticationError("authentication_error"),
CardError("card_error"),
IdempotencyError("idempotency_error"),
InvalidRequestError("invalid_request_error"),
RateLimitError("rate_limit_error");
public static final Companion INSTANCE = new Companion(null);
private final String code;
Type(String str) {
this.code = str;
}
public final String getCode() {
return this.code;
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Error$Type$Companion;", "", "()V", "fromCode", "Lcom/stripe/android/model/PaymentIntent$Error$Type;", "typeCode", "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final Type fromCode(String typeCode) {
for (Type type : Type.values()) {
if (Intrinsics.areEqual(type.getCode(), typeCode)) {
return type;
}
}
return null;
}
}
}
}
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0012\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B=\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\tJ\t\u0010\u0011\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u0012\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u0013\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u0014\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u0015\u001a\u0004\u0018\u00010\u0005HÆ\u0003JC\u0010\u0016\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0005HÆ\u0001J\t\u0010\u0017\u001a\u00020\u0018HÖ\u0001J\u0013\u0010\u0019\u001a\u00020\u001a2\b\u0010\u001b\u001a\u0004\u0018\u00010\u001cHÖ\u0003J\t\u0010\u001d\u001a\u00020\u0018HÖ\u0001J\t\u0010\u001e\u001a\u00020\u0005HÖ\u0001J\u0019\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\u0018HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\rR\u0013\u0010\u0007\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\rR\u0013\u0010\b\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\r¨\u0006$"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Shipping;", "Lcom/stripe/android/core/model/StripeModel;", "address", "Lcom/stripe/android/model/Address;", "carrier", "", "name", "phone", "trackingNumber", "(Lcom/stripe/android/model/Address;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getAddress", "()Lcom/stripe/android/model/Address;", "getCarrier", "()Ljava/lang/String;", "getName", "getPhone", "getTrackingNumber", "component1", "component2", "component3", "component4", "component5", "copy", "describeContents", "", "equals", "", "other", "", "hashCode", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Shipping implements StripeModel {
public static final int $stable = 0;
public static final Parcelable.Creator<Shipping> CREATOR = new Creator();
private final Address address;
private final String carrier;
private final String name;
private final String phone;
private final String trackingNumber;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<Shipping> {
@Override
public final Shipping createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new Shipping(Address.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString());
}
@Override
public final Shipping[] newArray(int i2) {
return new Shipping[i2];
}
}
public static Shipping copy$default(Shipping shipping, Address address, String str, String str2, String str3, String str4, int i2, Object obj) {
if ((i2 & 1) != 0) {
address = shipping.address;
}
if ((i2 & 2) != 0) {
str = shipping.carrier;
}
String str5 = str;
if ((i2 & 4) != 0) {
str2 = shipping.name;
}
String str6 = str2;
if ((i2 & 8) != 0) {
str3 = shipping.phone;
}
String str7 = str3;
if ((i2 & 16) != 0) {
str4 = shipping.trackingNumber;
}
return shipping.copy(address, str5, str6, str7, str4);
}
public final Address getAddress() {
return this.address;
}
public final String getCarrier() {
return this.carrier;
}
public final String getName() {
return this.name;
}
public final String getPhone() {
return this.phone;
}
public final String getTrackingNumber() {
return this.trackingNumber;
}
public final Shipping copy(Address address, String carrier, String name, String phone, String trackingNumber) {
Intrinsics.checkNotNullParameter(address, "address");
return new Shipping(address, carrier, name, phone, trackingNumber);
}
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 Intrinsics.areEqual(this.address, shipping.address) && Intrinsics.areEqual(this.carrier, shipping.carrier) && Intrinsics.areEqual(this.name, shipping.name) && Intrinsics.areEqual(this.phone, shipping.phone) && Intrinsics.areEqual(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 + ")";
}
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
this.address.writeToParcel(parcel, flags);
parcel.writeString(this.carrier);
parcel.writeString(this.name);
parcel.writeString(this.phone);
parcel.writeString(this.trackingNumber);
}
public Shipping(Address address, String str, String str2, String str3, String str4) {
Intrinsics.checkNotNullParameter(address, "address");
this.address = address;
this.carrier = str;
this.name = str2;
this.phone = str3;
this.trackingNumber = str4;
}
public Shipping(Address address, String str, String str2, String str3, String str4, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(address, (i2 & 2) != 0 ? null : str, (i2 & 4) != 0 ? null : str2, (i2 & 8) != 0 ? null : str3, (i2 & 16) != 0 ? null : str4);
}
public final Address getAddress() {
return this.address;
}
public final String getCarrier() {
return this.carrier;
}
public final String getName() {
return this.name;
}
public final String getPhone() {
return this.phone;
}
public final String getTrackingNumber() {
return this.trackingNumber;
}
}
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0080\b\u0018\u0000 \u00122\u00020\u0001:\u0001\u0012B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u000e\u0010\t\u001a\u00020\u0003HÀ\u0003¢\u0006\u0002\b\nJ\u0013\u0010\u000b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001J\t\u0010\u0011\u001a\u00020\u0003HÖ\u0001R\u0014\u0010\u0005\u001a\u00020\u0003X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0014\u0010\u0002\u001a\u00020\u0003X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u0013"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$ClientSecret;", "", TTContentsEventConstants.Params.EVENT_PROPERTY_VALUE, "", "(Ljava/lang/String;)V", "paymentIntentId", "getPaymentIntentId$payments_core_release", "()Ljava/lang/String;", "getValue$payments_core_release", "component1", "component1$payments_core_release", "copy", "equals", "", "other", "hashCode", "", "toString", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class ClientSecret {
public static final Companion INSTANCE = new Companion(null);
private static final Pattern PATTERN = Pattern.compile("^pi_[^_]+_secret_[^_]+$");
private final String paymentIntentId;
private final String value;
public static ClientSecret copy$default(ClientSecret clientSecret, String str, int i2, Object obj) {
if ((i2 & 1) != 0) {
str = clientSecret.value;
}
return clientSecret.copy(str);
}
public final String getValue() {
return this.value;
}
public final ClientSecret copy(String value) {
Intrinsics.checkNotNullParameter(value, TTContentsEventConstants.Params.EVENT_PROPERTY_VALUE);
return new ClientSecret(value);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof ClientSecret) && Intrinsics.areEqual(this.value, ((ClientSecret) other).value);
}
public int hashCode() {
return this.value.hashCode();
}
public String toString() {
return "ClientSecret(value=" + this.value + ")";
}
public ClientSecret(String str) {
List emptyList;
Intrinsics.checkNotNullParameter(str, TTContentsEventConstants.Params.EVENT_PROPERTY_VALUE);
this.value = str;
List split = new Regex("_secret").split(str, 0);
if (!split.isEmpty()) {
ListIterator listIterator = split.listIterator(split.size());
while (listIterator.hasPrevious()) {
if (!(((String) listIterator.previous()).length() == 0)) {
emptyList = CollectionsKt.take(split, listIterator.nextIndex() + 1);
break;
}
}
}
emptyList = CollectionsKt.emptyList();
this.paymentIntentId = ((String[]) emptyList.toArray(new String[0]))[0];
if (INSTANCE.isMatch(this.value)) {
return;
}
throw new IllegalArgumentException(("Invalid Payment Intent client secret: " + this.value).toString());
}
public final String getValue$payments_core_release() {
return this.value;
}
public final String getPaymentIntentId() {
return this.paymentIntentId;
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tR\u0016\u0010\u0003\u001a\n \u0005*\u0004\u0018\u00010\u00040\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$ClientSecret$Companion;", "", "()V", "PATTERN", "Ljava/util/regex/Pattern;", "kotlin.jvm.PlatformType", "isMatch", "", TTContentsEventConstants.Params.EVENT_PROPERTY_VALUE, "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final boolean isMatch(String value) {
Intrinsics.checkNotNullParameter(value, TTContentsEventConstants.Params.EVENT_PROPERTY_VALUE);
return ClientSecret.PATTERN.matcher(value).matches();
}
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\n\b\u0086\u0001\u0018\u0000 \f2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\fB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000j\u0002\b\u0005j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000b¨\u0006\r"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CancellationReason;", "", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "(Ljava/lang/String;ILjava/lang/String;)V", "Duplicate", "Fraudulent", "RequestedByCustomer", "Abandoned", "FailedInvoice", "VoidInvoice", "Automatic", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public enum CancellationReason {
Duplicate("duplicate"),
Fraudulent("fraudulent"),
RequestedByCustomer("requested_by_customer"),
Abandoned("abandoned"),
FailedInvoice("failed_invoice"),
VoidInvoice("void_invoice"),
Automatic("automatic");
public static final Companion INSTANCE = new Companion(null);
private final String code;
CancellationReason(String str) {
this.code = str;
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CancellationReason$Companion;", "", "()V", "fromCode", "Lcom/stripe/android/model/PaymentIntent$CancellationReason;", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final CancellationReason fromCode(String code) {
for (CancellationReason cancellationReason : CancellationReason.values()) {
if (Intrinsics.areEqual(cancellationReason.code, code)) {
return cancellationReason;
}
}
return null;
}
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\b\u0086\u0001\u0018\u0000 \n2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\nB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0013\u0010\u0002\u001a\u00020\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\t¨\u0006\u000b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "(Ljava/lang/String;ILjava/lang/String;)V", "getCode", "()Ljava/lang/String;", "Automatic", "AutomaticAsync", "Manual", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public enum CaptureMethod {
Automatic("automatic"),
AutomaticAsync("automatic_async"),
Manual("manual");
public static final Companion INSTANCE = new Companion(null);
private final String code;
CaptureMethod(String str) {
this.code = str;
}
public final String getCode() {
return this.code;
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$CaptureMethod$Companion;", "", "()V", "fromCode", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final CaptureMethod fromCode(String code) {
CaptureMethod captureMethod;
CaptureMethod[] values = CaptureMethod.values();
int length = values.length;
int i2 = 0;
while (true) {
if (i2 >= length) {
captureMethod = null;
break;
}
captureMethod = values[i2];
if (Intrinsics.areEqual(captureMethod.getCode(), code)) {
break;
}
i2++;
}
return captureMethod == null ? CaptureMethod.Automatic : captureMethod;
}
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0086\u0001\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u0007B\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000j\u0002\b\u0005j\u0002\b\u0006¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "(Ljava/lang/String;ILjava/lang/String;)V", "Automatic", "Manual", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public enum ConfirmationMethod {
Automatic("automatic"),
Manual("manual");
public static final Companion INSTANCE = new Companion(null);
private final String code;
ConfirmationMethod(String str) {
this.code = str;
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod$Companion;", "", "()V", "fromCode", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final ConfirmationMethod fromCode(String code) {
ConfirmationMethod confirmationMethod;
ConfirmationMethod[] values = ConfirmationMethod.values();
int length = values.length;
int i2 = 0;
while (true) {
if (i2 >= length) {
confirmationMethod = null;
break;
}
confirmationMethod = values[i2];
if (Intrinsics.areEqual(confirmationMethod.code, code)) {
break;
}
i2++;
}
return confirmationMethod == null ? ConfirmationMethod.Automatic : confirmationMethod;
}
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0014\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0007¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/PaymentIntent$Companion;", "", "()V", "fromJson", "Lcom/stripe/android/model/PaymentIntent;", "jsonObject", "Lorg/json/JSONObject;", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@JvmStatic
public final PaymentIntent fromJson(JSONObject jsonObject) {
LuxePostConfirmActionRepository luxePostConfirmActionRepository = null;
if (jsonObject != null) {
return new PaymentIntentJsonParser(luxePostConfirmActionRepository, 1, luxePostConfirmActionRepository).parse(jsonObject);
}
return null;
}
}
}