正在查看: BodyTech v7.6.4 应用的 PaymentSheetLoadingException.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 PaymentSheetLoadingException.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet.state;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.core.exception.StripeException;
import com.stripe.android.model.PaymentIntent;
import com.stripe.android.model.StripeIntent;
import io.ktor.http.LinkHeader;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.r;
import kotlin.text.StringsKt__IndentKt;
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\u0010\u000e\n\u0002\b\u000b\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\b\t\n\u000b\f\rB\t\b\u0004¢\u0006\u0004\b\u0006\u0010\u0007R\u0014\u0010\u0005\u001a\u00020\u00028&X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\u0082\u0001\u0006\u000e\u000f\u0010\u0011\u0012\u0013¨\u0006\u0014"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "", "a", "()Ljava/lang/String;", LinkHeader.Parameters.Type, "<init>", "()V", "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, 9, 0})
public abstract class PaymentSheetLoadingException extends Throwable {
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u000b\u001a\u00020\n¢\u0006\u0004\b\u0013\u0010\u0014J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\u00020\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0011\u0010\u000e\u001a\u0004\b\u0012\u0010\u0010¨\u0006\u0015"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$InvalidConfirmationMethod;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "toString", "", "hashCode", "", "other", "", "equals", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", "confirmationMethod", "Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;", LinkHeader.Parameters.Type, "Ljava/lang/String;", "a", "()Ljava/lang/String;", "message", "getMessage", "<init>", "(Lcom/stripe/android/model/PaymentIntent$ConfirmationMethod;)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public static final class InvalidConfirmationMethod extends PaymentSheetLoadingException {
private final PaymentIntent.ConfirmationMethod confirmationMethod;
private final String message;
private final String type;
public InvalidConfirmationMethod(PaymentIntent.ConfirmationMethod confirmationMethod) {
super(null);
String f;
r.i(confirmationMethod, "confirmationMethod");
this.confirmationMethod = confirmationMethod;
this.type = "invalidConfirmationMethod";
f = StringsKt__IndentKt.f("\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 ");
this.message = f;
}
@Override
public String getType() {
return this.type;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof InvalidConfirmationMethod) && this.confirmationMethod == ((InvalidConfirmationMethod) other).confirmationMethod;
}
@Override
public String getMessage() {
return this.message;
}
public int hashCode() {
return this.confirmationMethod.hashCode();
}
@Override
public String toString() {
return "InvalidConfirmationMethod(confirmationMethod=" + this.confirmationMethod + ")";
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u000b\bÇ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u000b\u0010\fR\u001a\u0010\u0007\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006R\u001a\u0010\n\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\b\u0010\u0004\u001a\u0004\b\t\u0010\u0006¨\u0006\r"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$MissingAmountOrCurrency;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "d", "Ljava/lang/String;", "a", "()Ljava/lang/String;", LinkHeader.Parameters.Type, "e", "getMessage", "message", "<init>", "()V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public static final class MissingAmountOrCurrency extends PaymentSheetLoadingException {
public static final MissingAmountOrCurrency c = new MissingAmountOrCurrency();
private static final String type = "missingAmountOrCurrency";
private static final String message = "PaymentIntent must contain amount and currency.";
private MissingAmountOrCurrency() {
super(null);
}
@Override
public String getType() {
return type;
}
@Override
public String getMessage() {
return message;
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\n\u001a\u00020\u0002¢\u0006\u0004\b\u0011\u0010\u0012J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003R\u0014\u0010\n\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u000bR\u001a\u0010\f\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\f\u0010\u000b\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u0010\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u000e¨\u0006\u0013"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$NoPaymentMethodTypesAvailable;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "toString", "", "hashCode", "", "other", "", "equals", "requested", "Ljava/lang/String;", LinkHeader.Parameters.Type, "a", "()Ljava/lang/String;", "getMessage", "message", "<init>", "(Ljava/lang/String;)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public static final class NoPaymentMethodTypesAvailable extends PaymentSheetLoadingException {
private final String requested;
private final String type;
public NoPaymentMethodTypesAvailable(String requested) {
super(null);
r.i(requested, "requested");
this.requested = requested;
this.type = "noPaymentMethodTypesAvailable";
}
@Override
public String getType() {
return this.type;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof NoPaymentMethodTypesAvailable) && r.d(this.requested, ((NoPaymentMethodTypesAvailable) other).requested);
}
@Override
public String getMessage() {
return "None of the requested payment methods (" + this.requested + ") are supported.";
}
public int hashCode() {
return this.requested.hashCode();
}
@Override
public String toString() {
return "NoPaymentMethodTypesAvailable(requested=" + this.requested + ")";
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B\u0011\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\n¢\u0006\u0004\b\u0013\u0010\u0014J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0012\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0010¨\u0006\u0015"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$PaymentIntentInTerminalState;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "toString", "", "hashCode", "", "other", "", "equals", "Lcom/stripe/android/model/StripeIntent$Status;", "status", "Lcom/stripe/android/model/StripeIntent$Status;", LinkHeader.Parameters.Type, "Ljava/lang/String;", "a", "()Ljava/lang/String;", "getMessage", "message", "<init>", "(Lcom/stripe/android/model/StripeIntent$Status;)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public static final class PaymentIntentInTerminalState extends PaymentSheetLoadingException {
private final StripeIntent.Status status;
private final String type;
public PaymentIntentInTerminalState(StripeIntent.Status status) {
super(null);
this.status = status;
this.type = "paymentIntentInTerminalState";
}
@Override
public String getType() {
return this.type;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof PaymentIntentInTerminalState) && this.status == ((PaymentIntentInTerminalState) other).status;
}
@Override
public String getMessage() {
String f;
f = StringsKt__IndentKt.f("\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 ");
return f;
}
public int hashCode() {
StripeIntent.Status status = this.status;
if (status == null) {
return 0;
}
return status.hashCode();
}
@Override
public String toString() {
return "PaymentIntentInTerminalState(status=" + this.status + ")";
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B\u0011\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\n¢\u0006\u0004\b\u0013\u0010\u0014J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0012\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0010¨\u0006\u0015"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$SetupIntentInTerminalState;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "toString", "", "hashCode", "", "other", "", "equals", "Lcom/stripe/android/model/StripeIntent$Status;", "status", "Lcom/stripe/android/model/StripeIntent$Status;", LinkHeader.Parameters.Type, "Ljava/lang/String;", "a", "()Ljava/lang/String;", "getMessage", "message", "<init>", "(Lcom/stripe/android/model/StripeIntent$Status;)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public static final class SetupIntentInTerminalState extends PaymentSheetLoadingException {
private final StripeIntent.Status status;
private final String type;
public SetupIntentInTerminalState(StripeIntent.Status status) {
super(null);
this.status = status;
this.type = "setupIntentInTerminalState";
}
@Override
public String getType() {
return this.type;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof SetupIntentInTerminalState) && this.status == ((SetupIntentInTerminalState) other).status;
}
@Override
public String getMessage() {
String f;
f = StringsKt__IndentKt.f("\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 ");
return f;
}
public int hashCode() {
StripeIntent.Status status = this.status;
if (status == null) {
return 0;
}
return status.hashCode();
}
@Override
public String toString() {
return "SetupIntentInTerminalState(status=" + this.status + ")";
}
}
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0003\n\u0002\b\r\b\u0087\b\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u000b\u001a\u00020\n¢\u0006\u0004\b\u0015\u0010\u0016J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003R\u001a\u0010\u000b\u001a\u00020\n8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000eR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0014\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0012¨\u0006\u0017"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException$Unknown;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetLoadingException;", "", "toString", "", "hashCode", "", "other", "", "equals", "", "cause", "Ljava/lang/Throwable;", "getCause", "()Ljava/lang/Throwable;", "message", "Ljava/lang/String;", "getMessage", "()Ljava/lang/String;", "a", LinkHeader.Parameters.Type, "<init>", "(Ljava/lang/Throwable;)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public static final class Unknown extends PaymentSheetLoadingException {
private final Throwable cause;
private final String message;
public Unknown(Throwable cause) {
super(null);
r.i(cause, "cause");
this.cause = cause;
this.message = getCause().getMessage();
}
@Override
public String getType() {
return StripeException.INSTANCE.b(getCause()).a();
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof Unknown) && r.d(this.cause, ((Unknown) other).cause);
}
@Override
public Throwable getCause() {
return this.cause;
}
@Override
public String getMessage() {
return this.message;
}
public int hashCode() {
return this.cause.hashCode();
}
@Override
public String toString() {
return "Unknown(cause=" + this.cause + ")";
}
}
public PaymentSheetLoadingException(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public abstract String getType();
private PaymentSheetLoadingException() {
}
}