导航菜单

页面标题

页面副标题

Empower MX v1.29.4.340 - k.java 源代码

正在查看: Empower MX v1.29.4.340 应用的 k.java JAVA 源代码文件

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


package F9;

import com.stripe.android.core.exception.StripeException;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.model.p;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;

public abstract class k extends Throwable {

    public static final class a extends k {
        private final p.e d;
        private final String e;
        private final String i;

        public a(p.e eVar) {
            super(null);
            Intrinsics.checkNotNullParameter(eVar, "confirmationMethod");
            this.d = eVar;
            this.e = "invalidConfirmationMethod";
            this.i = StringsKt.j("\n            PaymentIntent with confirmation_method='automatic' is required.\n            The current PaymentIntent has confirmation_method '" + eVar + "'.\n            See https://stripe.com/docs/api/payment_intents/object#payment_intent_object-confirmation_method.\n        ");
        }

        @Override
        public String a() {
            return this.e;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof a) && this.d == ((a) obj).d;
        }

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

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

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

    public static final class b extends k {
        public static final b d = new b();
        private static final String e = "missingAmountOrCurrency";
        private static final String i = "PaymentIntent must contain amount and currency.";

        private b() {
            super(null);
        }

        @Override
        public String a() {
            return e;
        }

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

    public static final class c extends k {
        private final String d;
        private final String e;

        public c(String str) {
            super(null);
            Intrinsics.checkNotNullParameter(str, "requested");
            this.d = str;
            this.e = "noPaymentMethodTypesAvailable";
        }

        @Override
        public String a() {
            return this.e;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof c) && Intrinsics.d(this.d, ((c) obj).d);
        }

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

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

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

    public static final class d extends k {
        private final StripeIntent.Status d;
        private final String e;

        public d(StripeIntent.Status status) {
            super(null);
            this.d = status;
            this.e = "paymentIntentInTerminalState";
        }

        @Override
        public String a() {
            return this.e;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof d) && this.d == ((d) obj).d;
        }

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

        public int hashCode() {
            StripeIntent.Status status = this.d;
            if (status == null) {
                return 0;
            }
            return status.hashCode();
        }

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

    public static final class e extends k {
        private final StripeIntent.Status d;
        private final String e;

        public e(StripeIntent.Status status) {
            super(null);
            this.d = status;
            this.e = "setupIntentInTerminalState";
        }

        @Override
        public String a() {
            return this.e;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof e) && this.d == ((e) obj).d;
        }

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

        public int hashCode() {
            StripeIntent.Status status = this.d;
            if (status == null) {
                return 0;
            }
            return status.hashCode();
        }

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

    public static final class f extends k {
        private final Throwable d;
        private final String e;

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

        @Override
        public String a() {
            return StripeException.INSTANCE.b(getCause()).a();
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof f) && Intrinsics.d(this.d, ((f) obj).d);
        }

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

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

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

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

    public k(DefaultConstructorMarker defaultConstructorMarker) {
        this();
    }

    public abstract String a();

    private k() {
    }
}