导航菜单

页面标题

页面副标题

Biko v2.0.23 - PaymentSheetLoadingException.java 源代码

正在查看: Biko v2.0.23 应用的 PaymentSheetLoadingException.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.stripe.android.paymentsheet.state;

import com.stripe.android.core.exception.StripeException;
import com.stripe.android.model.PaymentIntent;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.paymentsheet.analytics.PaymentSheetConfirmationErrorKt;
import com.truecaller.android.sdk.network.RestAdapter;
import com.truecaller.android.sdk.network.VerificationService;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;

@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u00002\u00020\u0001:\u0006\u000b\f\r\u000e\u000f\u0010B\u0007\b\u0004¢\u0006\u0002\u0010\u0002R\u0012\u0010\u0003\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0007\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\n\u0082\u0001\u0006\u0011\u0012\u0013\u0014\u0015\u0016¨\u0006\u0017"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "()V", "type", "", "getType", "()Ljava/lang/String;", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "InvalidConfirmationMethod", "MissingAmountOrCurrency", "NoPaymentMethodTypesAvailable", "PaymentIntentInTerminalState", "SetupIntentInTerminalState", "Unknown", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$InvalidConfirmationMethod;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$MissingAmountOrCurrency;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$NoPaymentMethodTypesAvailable;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$PaymentIntentInTerminalState;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$SetupIntentInTerminalState;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$Unknown;", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public abstract class PaymentSheetLoadingException extends Throwable {
    public PaymentSheetLoadingException(DefaultConstructorMarker defaultConstructorMarker) {
        this();
    }

    public abstract String getType();

    public abstract PaymentMethod getUsedPaymentMethod();

    private PaymentSheetLoadingException() {
    }

    @Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u000f\u001a\u00020\u0003HÂ\u0003J\u0013\u0010\u0010\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u0014HÖ\u0003J\t\u0010\u0015\u001a\u00020\u0016HÖ\u0001J\t\u0010\u0017\u001a\u00020\u0006HÖ\u0001R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0014\u0010\t\u001a\u00020\u0006X\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\bR\u0016\u0010\u000b\u001a\u0004\u0018\u00010\fX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0018"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$InvalidConfirmationMethod;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "confirmationMethod", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "(Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;)V", RestAdapter.JSON_KEY_ERROR_MESSAGE, "", "getMessage", "()Ljava/lang/String;", "type", "getType", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class InvalidConfirmationMethod extends PaymentSheetLoadingException {
        public static final int $stable = PaymentMethod.$stable;
        private final PaymentIntent.ConfirmationMethod confirmationMethod;
        private final String message;
        private final String type;
        private final PaymentMethod usedPaymentMethod;

        private final PaymentIntent.ConfirmationMethod getConfirmationMethod() {
            return this.confirmationMethod;
        }

        public static InvalidConfirmationMethod copy$default(InvalidConfirmationMethod invalidConfirmationMethod, PaymentIntent.ConfirmationMethod confirmationMethod, int i2, Object obj) {
            if ((i2 & 1) != 0) {
                confirmationMethod = invalidConfirmationMethod.confirmationMethod;
            }
            return invalidConfirmationMethod.copy(confirmationMethod);
        }

        public final InvalidConfirmationMethod copy(PaymentIntent.ConfirmationMethod confirmationMethod) {
            Intrinsics.checkNotNullParameter(confirmationMethod, "confirmationMethod");
            return new InvalidConfirmationMethod(confirmationMethod);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            return (other instanceof InvalidConfirmationMethod) && this.confirmationMethod == ((InvalidConfirmationMethod) other).confirmationMethod;
        }

        public int hashCode() {
            return this.confirmationMethod.hashCode();
        }

        @Override
        public String toString() {
            return "InvalidConfirmationMethod(confirmationMethod=" + this.confirmationMethod + ")";
        }

        public InvalidConfirmationMethod(PaymentIntent.ConfirmationMethod confirmationMethod) {
            super(null);
            Intrinsics.checkNotNullParameter(confirmationMethod, "confirmationMethod");
            this.confirmationMethod = confirmationMethod;
            this.type = "invalidConfirmationMethod";
            this.message = StringsKt.trimIndent("\n            PaymentIntent with confirmation_method='automatic' is required.\n            The current PaymentIntent has confirmation_method '" + confirmationMethod + "'.\n            See https://stripe.com/docs/api/payment_intents/object#payment_intent_object-confirmation_method.\n        ");
        }

        @Override
        public PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }

        @Override
        public String getType() {
            return this.type;
        }

        @Override
        public String getMessage() {
            return this.message;
        }
    }

    @Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J\t\u0010\u000f\u001a\u00020\u0003HÂ\u0003J\t\u0010\u0010\u001a\u00020\u0003HÂ\u0003J\u001d\u0010\u0011\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015HÖ\u0003J\t\u0010\u0016\u001a\u00020\u0017HÖ\u0001J\t\u0010\u0018\u001a\u00020\u0003HÖ\u0001R\u0014\u0010\u0006\u001a\u00020\u00038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\bR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\u00020\u0003X\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\bR\u0016\u0010\u000b\u001a\u0004\u0018\u00010\fX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0019"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$NoPaymentMethodTypesAvailable;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "requested", "", "supported", "(Ljava/lang/String;Ljava/lang/String;)V", RestAdapter.JSON_KEY_ERROR_MESSAGE, "getMessage", "()Ljava/lang/String;", "type", "getType", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "", "toString", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class NoPaymentMethodTypesAvailable extends PaymentSheetLoadingException {
        public static final int $stable = PaymentMethod.$stable;
        private final String requested;
        private final String supported;
        private final String type;
        private final PaymentMethod usedPaymentMethod;

        private final String getRequested() {
            return this.requested;
        }

        private final String getSupported() {
            return this.supported;
        }

        public static NoPaymentMethodTypesAvailable copy$default(NoPaymentMethodTypesAvailable noPaymentMethodTypesAvailable, String str, String str2, int i2, Object obj) {
            if ((i2 & 1) != 0) {
                str = noPaymentMethodTypesAvailable.requested;
            }
            if ((i2 & 2) != 0) {
                str2 = noPaymentMethodTypesAvailable.supported;
            }
            return noPaymentMethodTypesAvailable.copy(str, str2);
        }

        public final NoPaymentMethodTypesAvailable copy(String requested, String supported) {
            Intrinsics.checkNotNullParameter(requested, "requested");
            Intrinsics.checkNotNullParameter(supported, "supported");
            return new NoPaymentMethodTypesAvailable(requested, supported);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof NoPaymentMethodTypesAvailable)) {
                return false;
            }
            NoPaymentMethodTypesAvailable noPaymentMethodTypesAvailable = (NoPaymentMethodTypesAvailable) other;
            return Intrinsics.areEqual(this.requested, noPaymentMethodTypesAvailable.requested) && Intrinsics.areEqual(this.supported, noPaymentMethodTypesAvailable.supported);
        }

        public int hashCode() {
            return (this.requested.hashCode() * 31) + this.supported.hashCode();
        }

        @Override
        public String toString() {
            return "NoPaymentMethodTypesAvailable(requested=" + this.requested + ", supported=" + this.supported + ")";
        }

        public NoPaymentMethodTypesAvailable(String str, String str2) {
            super(null);
            Intrinsics.checkNotNullParameter(str, "requested");
            Intrinsics.checkNotNullParameter(str2, "supported");
            this.requested = str;
            this.supported = str2;
            this.type = "noPaymentMethodTypesAvailable";
        }

        @Override
        public PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }

        @Override
        public String getType() {
            return this.type;
        }

        @Override
        public String getMessage() {
            return "None of the requested payment methods (" + this.requested + ") match the supported payment types (" + this.supported + ").";
        }
    }

    @Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\u0019\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006J\u000b\u0010\u000f\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u0010\u001a\u0004\u0018\u00010\u0005HÂ\u0003J!\u0010\u0011\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005HÆ\u0001J\u0013\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015HÖ\u0003J\t\u0010\u0016\u001a\u00020\u0017HÖ\u0001J\t\u0010\u0018\u001a\u00020\bHÖ\u0001R\u0014\u0010\u0007\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u000b\u001a\u00020\bX\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\nR\u0016\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0019"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$PaymentIntentInTerminalState;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", VerificationService.JSON_KEY_STATUS, "Lcom/stripe/android/model/StripeIntent$Status;", "(Lcom/stripe/android/model/PaymentMethod;Lcom/stripe/android/model/StripeIntent$Status;)V", RestAdapter.JSON_KEY_ERROR_MESSAGE, "", "getMessage", "()Ljava/lang/String;", "type", "getType", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "", "toString", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class PaymentIntentInTerminalState extends PaymentSheetLoadingException {
        public static final int $stable = PaymentMethod.$stable;
        private final StripeIntent.Status status;
        private final String type;
        private final PaymentMethod usedPaymentMethod;

        private final StripeIntent.Status getStatus() {
            return this.status;
        }

        public static PaymentIntentInTerminalState copy$default(PaymentIntentInTerminalState paymentIntentInTerminalState, PaymentMethod paymentMethod, StripeIntent.Status status, int i2, Object obj) {
            if ((i2 & 1) != 0) {
                paymentMethod = paymentIntentInTerminalState.usedPaymentMethod;
            }
            if ((i2 & 2) != 0) {
                status = paymentIntentInTerminalState.status;
            }
            return paymentIntentInTerminalState.copy(paymentMethod, status);
        }

        public final PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }

        public final PaymentIntentInTerminalState copy(PaymentMethod usedPaymentMethod, StripeIntent.Status status) {
            return new PaymentIntentInTerminalState(usedPaymentMethod, status);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof PaymentIntentInTerminalState)) {
                return false;
            }
            PaymentIntentInTerminalState paymentIntentInTerminalState = (PaymentIntentInTerminalState) other;
            return Intrinsics.areEqual(this.usedPaymentMethod, paymentIntentInTerminalState.usedPaymentMethod) && this.status == paymentIntentInTerminalState.status;
        }

        public int hashCode() {
            PaymentMethod paymentMethod = this.usedPaymentMethod;
            int hashCode = (paymentMethod == null ? 0 : paymentMethod.hashCode()) * 31;
            StripeIntent.Status status = this.status;
            return hashCode + (status != null ? status.hashCode() : 0);
        }

        @Override
        public String toString() {
            return "PaymentIntentInTerminalState(usedPaymentMethod=" + this.usedPaymentMethod + ", status=" + this.status + ")";
        }

        @Override
        public PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }

        public PaymentIntentInTerminalState(PaymentMethod paymentMethod, StripeIntent.Status status) {
            super(null);
            this.usedPaymentMethod = paymentMethod;
            this.status = status;
            this.type = "paymentIntentInTerminalState";
        }

        @Override
        public String getType() {
            return this.type;
        }

        @Override
        public String getMessage() {
            return StringsKt.trimIndent("\n                PaymentSheet cannot set up a PaymentIntent in status '" + this.status + "'.\n                See https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status.\n            ");
        }
    }

    @Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\u0019\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006J\u000b\u0010\u000f\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u0010\u001a\u0004\u0018\u00010\u0005HÂ\u0003J!\u0010\u0011\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005HÆ\u0001J\u0013\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015HÖ\u0003J\t\u0010\u0016\u001a\u00020\u0017HÖ\u0001J\t\u0010\u0018\u001a\u00020\bHÖ\u0001R\u0014\u0010\u0007\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u000b\u001a\u00020\bX\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\nR\u0016\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0019"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$SetupIntentInTerminalState;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", VerificationService.JSON_KEY_STATUS, "Lcom/stripe/android/model/StripeIntent$Status;", "(Lcom/stripe/android/model/PaymentMethod;Lcom/stripe/android/model/StripeIntent$Status;)V", RestAdapter.JSON_KEY_ERROR_MESSAGE, "", "getMessage", "()Ljava/lang/String;", "type", "getType", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "component1", "component2", "copy", "equals", "", "other", "", "hashCode", "", "toString", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class SetupIntentInTerminalState extends PaymentSheetLoadingException {
        public static final int $stable = PaymentMethod.$stable;
        private final StripeIntent.Status status;
        private final String type;
        private final PaymentMethod usedPaymentMethod;

        private final StripeIntent.Status getStatus() {
            return this.status;
        }

        public static SetupIntentInTerminalState copy$default(SetupIntentInTerminalState setupIntentInTerminalState, PaymentMethod paymentMethod, StripeIntent.Status status, int i2, Object obj) {
            if ((i2 & 1) != 0) {
                paymentMethod = setupIntentInTerminalState.usedPaymentMethod;
            }
            if ((i2 & 2) != 0) {
                status = setupIntentInTerminalState.status;
            }
            return setupIntentInTerminalState.copy(paymentMethod, status);
        }

        public final PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }

        public final SetupIntentInTerminalState copy(PaymentMethod usedPaymentMethod, StripeIntent.Status status) {
            return new SetupIntentInTerminalState(usedPaymentMethod, status);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof SetupIntentInTerminalState)) {
                return false;
            }
            SetupIntentInTerminalState setupIntentInTerminalState = (SetupIntentInTerminalState) other;
            return Intrinsics.areEqual(this.usedPaymentMethod, setupIntentInTerminalState.usedPaymentMethod) && this.status == setupIntentInTerminalState.status;
        }

        public int hashCode() {
            PaymentMethod paymentMethod = this.usedPaymentMethod;
            int hashCode = (paymentMethod == null ? 0 : paymentMethod.hashCode()) * 31;
            StripeIntent.Status status = this.status;
            return hashCode + (status != null ? status.hashCode() : 0);
        }

        @Override
        public String toString() {
            return "SetupIntentInTerminalState(usedPaymentMethod=" + this.usedPaymentMethod + ", status=" + this.status + ")";
        }

        @Override
        public PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }

        public SetupIntentInTerminalState(PaymentMethod paymentMethod, StripeIntent.Status status) {
            super(null);
            this.usedPaymentMethod = paymentMethod;
            this.status = status;
            this.type = "setupIntentInTerminalState";
        }

        @Override
        public String getType() {
            return this.type;
        }

        @Override
        public String getMessage() {
            return StringsKt.trimIndent("\n                PaymentSheet cannot set up a SetupIntent in status '" + this.status + "'.\n                See https://stripe.com/docs/api/setup_intents/object#setup_intent_object-status.\n            ");
        }
    }

    @Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0007\u001a\u00020\u0004X\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0006R\u0016\u0010\t\u001a\u0004\u0018\u00010\nX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f¨\u0006\r"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$MissingAmountOrCurrency;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "()V", RestAdapter.JSON_KEY_ERROR_MESSAGE, "", "getMessage", "()Ljava/lang/String;", "type", "getType", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class MissingAmountOrCurrency extends PaymentSheetLoadingException {
        private static final PaymentMethod usedPaymentMethod = null;
        public static final MissingAmountOrCurrency INSTANCE = new MissingAmountOrCurrency();
        private static final String type = "missingAmountOrCurrency";
        private static final String message = "PaymentIntent must contain amount and currency.";
        public static final int $stable = PaymentMethod.$stable;

        private MissingAmountOrCurrency() {
            super(null);
        }

        @Override
        public PaymentMethod getUsedPaymentMethod() {
            return usedPaymentMethod;
        }

        @Override
        public String getType() {
            return type;
        }

        @Override
        public String getMessage() {
            return message;
        }
    }

    @Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0011\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\u0012\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016HÖ\u0003J\t\u0010\u0017\u001a\u00020\u0018HÖ\u0001J\t\u0010\u0019\u001a\u00020\bHÖ\u0001R\u0014\u0010\u0002\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u0016\u0010\u0007\u001a\u0004\u0018\u00010\bX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0014\u0010\u000b\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\nR\u0016\u0010\r\u001a\u0004\u0018\u00010\u000eX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010¨\u0006\u001a"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$Unknown;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "cause", "", "(Ljava/lang/Throwable;)V", "getCause", "()Ljava/lang/Throwable;", RestAdapter.JSON_KEY_ERROR_MESSAGE, "", "getMessage", "()Ljava/lang/String;", "type", "getType", "usedPaymentMethod", "Lcom/stripe/android/model/PaymentMethod;", "getUsedPaymentMethod", "()Lcom/stripe/android/model/PaymentMethod;", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Unknown extends PaymentSheetLoadingException {
        public static final int $stable = 8;
        private final Throwable cause;
        private final String message;
        private final PaymentMethod usedPaymentMethod;

        public static Unknown copy$default(Unknown unknown, Throwable th, int i2, Object obj) {
            if ((i2 & 1) != 0) {
                th = unknown.cause;
            }
            return unknown.copy(th);
        }

        public final Throwable getCause() {
            return this.cause;
        }

        public final Unknown copy(Throwable cause) {
            Intrinsics.checkNotNullParameter(cause, "cause");
            return new Unknown(cause);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            return (other instanceof Unknown) && Intrinsics.areEqual(this.cause, ((Unknown) other).cause);
        }

        public int hashCode() {
            return this.cause.hashCode();
        }

        @Override
        public String toString() {
            return "Unknown(cause=" + this.cause + ")";
        }

        @Override
        public Throwable getCause() {
            return this.cause;
        }

        public Unknown(Throwable th) {
            super(null);
            Intrinsics.checkNotNullParameter(th, "cause");
            this.cause = th;
            this.message = getCause().getMessage();
        }

        @Override
        public String getType() {
            return PaymentSheetConfirmationErrorKt.getAnalyticsValue(StripeException.Companion.create(getCause()));
        }

        @Override
        public String getMessage() {
            return this.message;
        }

        @Override
        public PaymentMethod getUsedPaymentMethod() {
            return this.usedPaymentMethod;
        }
    }
}