正在查看: Crafto v9.3.3 应用的 PaymentMethodOptionsParams.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 PaymentMethodOptionsParams.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import c0.u0;
import com.stripe.android.model.ConfirmPaymentIntentParams;
import com.stripe.android.model.PaymentMethod;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.collections.P;
import kotlin.collections.Q;
import kotlin.collections.s;
import kotlin.collections.t;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import s7.a;
@Metadata
public abstract class PaymentMethodOptionsParams implements StripeParamsModel, Parcelable {
public static final int $stable = 0;
@NotNull
private final PaymentMethod.Type type;
@Metadata
public static final class Blik extends PaymentMethodOptionsParams {
@NotNull
public static final String PARAM_CODE = "code";
@NotNull
private String code;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final Parcelable.Creator<Blik> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
public static final class Creator implements Parcelable.Creator<Blik> {
@Override
@NotNull
public final Blik createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new Blik(parcel.readString());
}
@Override
@NotNull
public final Blik[] newArray(int i) {
return new Blik[i];
}
}
public Blik(@NotNull String str) {
super(PaymentMethod.Type.Blik, null);
Intrinsics.checkNotNullParameter(str, PARAM_CODE);
this.code = str;
}
public static Blik copy$default(Blik blik, String str, int i, Object obj) {
if ((i & 1) != 0) {
str = blik.code;
}
return blik.copy(str);
}
@NotNull
public final String component1() {
return this.code;
}
@NotNull
public final Blik copy(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, PARAM_CODE);
return new Blik(str);
}
@Override
@NotNull
public List<Pair<String, Object>> createTypeParams$payments_core_release() {
return s.b(new Pair(PARAM_CODE, this.code));
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof Blik) && Intrinsics.areEqual(this.code, ((Blik) obj).code);
}
@NotNull
public final String getCode() {
return this.code;
}
public int hashCode() {
return this.code.hashCode();
}
public final void setCode(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.code = str;
}
@NotNull
public String toString() {
return u0.a(new StringBuilder("Blik(code="), this.code, ')');
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.code);
}
}
@Metadata
public static final class Card extends PaymentMethodOptionsParams {
@Deprecated
@NotNull
private static final String PARAM_CVC = "cvc";
@Deprecated
@NotNull
private static final String PARAM_MOTO = "moto";
@Deprecated
@NotNull
private static final String PARAM_NETWORK = "network";
@Deprecated
@NotNull
private static final String PARAM_SETUP_FUTURE_USAGE = "setup_future_usage";
private String cvc;
private Boolean moto;
private String network;
private ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage;
@NotNull
private static final Companion Companion = new Companion(null);
@NotNull
public static final Parcelable.Creator<Card> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
public static final class Creator implements Parcelable.Creator<Card> {
@Override
@NotNull
public final Card createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
String readString = parcel.readString();
String readString2 = parcel.readString();
Boolean bool = null;
ConfirmPaymentIntentParams.SetupFutureUsage valueOf = parcel.readInt() == 0 ? null : ConfirmPaymentIntentParams.SetupFutureUsage.valueOf(parcel.readString());
if (parcel.readInt() != 0) {
bool = Boolean.valueOf(parcel.readInt() != 0);
}
return new Card(readString, readString2, valueOf, bool);
}
@Override
@NotNull
public final Card[] newArray(int i) {
return new Card[i];
}
}
public Card() {
this(null, null, null, null, 15, null);
}
public static Card copy$default(Card card, String str, String str2, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, Boolean bool, int i, Object obj) {
if ((i & 1) != 0) {
str = card.cvc;
}
if ((i & 2) != 0) {
str2 = card.network;
}
if ((i & 4) != 0) {
setupFutureUsage = card.setupFutureUsage;
}
if ((i & 8) != 0) {
bool = card.moto;
}
return card.copy(str, str2, setupFutureUsage, bool);
}
public final String component1() {
return this.cvc;
}
public final String component2() {
return this.network;
}
public final ConfirmPaymentIntentParams.SetupFutureUsage component3() {
return this.setupFutureUsage;
}
public final Boolean component4$payments_core_release() {
return this.moto;
}
@NotNull
public final Card copy(String str, String str2, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, Boolean bool) {
return new Card(str, str2, setupFutureUsage, bool);
}
@Override
@NotNull
public List<Pair<String, Object>> createTypeParams$payments_core_release() {
Pair pair = new Pair(PARAM_CVC, this.cvc);
Pair pair2 = new Pair(PARAM_NETWORK, this.network);
Pair pair3 = new Pair(PARAM_MOTO, this.moto);
ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage = this.setupFutureUsage;
return t.i(new Pair[]{pair, pair2, pair3, new Pair("setup_future_usage", setupFutureUsage != null ? setupFutureUsage.getCode$payments_core_release() : null)});
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Card)) {
return false;
}
Card card = (Card) obj;
return Intrinsics.areEqual(this.cvc, card.cvc) && Intrinsics.areEqual(this.network, card.network) && this.setupFutureUsage == card.setupFutureUsage && Intrinsics.areEqual(this.moto, card.moto);
}
public final String getCvc() {
return this.cvc;
}
public final Boolean getMoto$payments_core_release() {
return this.moto;
}
public final String getNetwork() {
return this.network;
}
public final ConfirmPaymentIntentParams.SetupFutureUsage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public int hashCode() {
String str = this.cvc;
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
String str2 = this.network;
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage = this.setupFutureUsage;
int hashCode3 = (hashCode2 + (setupFutureUsage == null ? 0 : setupFutureUsage.hashCode())) * 31;
Boolean bool = this.moto;
return hashCode3 + (bool != null ? bool.hashCode() : 0);
}
public final void setCvc(String str) {
this.cvc = str;
}
public final void setMoto$payments_core_release(Boolean bool) {
this.moto = bool;
}
public final void setNetwork(String str) {
this.network = str;
}
public final void setSetupFutureUsage(ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage) {
this.setupFutureUsage = setupFutureUsage;
}
@NotNull
public String toString() {
StringBuilder sb = new StringBuilder("Card(cvc=");
sb.append(this.cvc);
sb.append(", network=");
sb.append(this.network);
sb.append(", setupFutureUsage=");
sb.append(this.setupFutureUsage);
sb.append(", moto=");
return a.a(sb, this.moto, ')');
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.cvc);
parcel.writeString(this.network);
ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage = this.setupFutureUsage;
if (setupFutureUsage == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(setupFutureUsage.name());
}
Boolean bool = this.moto;
if (bool == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeInt(bool.booleanValue() ? 1 : 0);
}
}
public Card(String str, String str2, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, Boolean bool, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : setupFutureUsage, (i & 8) != 0 ? null : bool);
}
public Card(String str, String str2, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, Boolean bool) {
super(PaymentMethod.Type.Card, null);
this.cvc = str;
this.network = str2;
this.setupFutureUsage = setupFutureUsage;
this.moto = bool;
}
public Card(String str, String str2, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : setupFutureUsage);
}
public Card(String str, String str2, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage) {
this(str, str2, setupFutureUsage, null);
}
}
@Metadata
public static final class USBankAccount extends PaymentMethodOptionsParams {
@NotNull
public static final String PARAM_SETUP_FUTURE_USAGE = "setup_future_usage";
private ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final Parcelable.Creator<USBankAccount> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
public static final class Creator implements Parcelable.Creator<USBankAccount> {
@Override
@NotNull
public final USBankAccount createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new USBankAccount(parcel.readInt() == 0 ? null : ConfirmPaymentIntentParams.SetupFutureUsage.valueOf(parcel.readString()));
}
@Override
@NotNull
public final USBankAccount[] newArray(int i) {
return new USBankAccount[i];
}
}
public USBankAccount() {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.model.PaymentMethodOptionsParams.USBankAccount.<init>():void");
}
public static USBankAccount copy$default(USBankAccount uSBankAccount, ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, int i, Object obj) {
if ((i & 1) != 0) {
setupFutureUsage = uSBankAccount.setupFutureUsage;
}
return uSBankAccount.copy(setupFutureUsage);
}
public final ConfirmPaymentIntentParams.SetupFutureUsage component1() {
return this.setupFutureUsage;
}
@NotNull
public final USBankAccount copy(ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage) {
return new USBankAccount(setupFutureUsage);
}
@Override
@NotNull
public List<Pair<String, Object>> createTypeParams$payments_core_release() {
ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage = this.setupFutureUsage;
return s.b(new Pair(PARAM_SETUP_FUTURE_USAGE, setupFutureUsage != null ? setupFutureUsage.getCode$payments_core_release() : null));
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof USBankAccount) && this.setupFutureUsage == ((USBankAccount) obj).setupFutureUsage;
}
public final ConfirmPaymentIntentParams.SetupFutureUsage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public int hashCode() {
ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage = this.setupFutureUsage;
if (setupFutureUsage == null) {
return 0;
}
return setupFutureUsage.hashCode();
}
public final void setSetupFutureUsage(ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage) {
this.setupFutureUsage = setupFutureUsage;
}
@NotNull
public String toString() {
return "USBankAccount(setupFutureUsage=" + this.setupFutureUsage + ')';
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage = this.setupFutureUsage;
if (setupFutureUsage == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(setupFutureUsage.name());
}
}
public USBankAccount(ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : setupFutureUsage);
}
public USBankAccount(ConfirmPaymentIntentParams.SetupFutureUsage setupFutureUsage) {
super(PaymentMethod.Type.USBankAccount, null);
this.setupFutureUsage = setupFutureUsage;
}
}
@Metadata
public static final class WeChatPay extends PaymentMethodOptionsParams {
@NotNull
public static final String PARAM_APP_ID = "app_id";
@NotNull
public static final String PARAM_CLIENT = "client";
@NotNull
private String appId;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final Parcelable.Creator<WeChatPay> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
public static final class Creator implements Parcelable.Creator<WeChatPay> {
@Override
@NotNull
public final WeChatPay createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new WeChatPay(parcel.readString());
}
@Override
@NotNull
public final WeChatPay[] newArray(int i) {
return new WeChatPay[i];
}
}
public WeChatPay(@NotNull String str) {
super(PaymentMethod.Type.WeChatPay, null);
Intrinsics.checkNotNullParameter(str, "appId");
this.appId = str;
}
public static WeChatPay copy$default(WeChatPay weChatPay, String str, int i, Object obj) {
if ((i & 1) != 0) {
str = weChatPay.appId;
}
return weChatPay.copy(str);
}
@NotNull
public final String component1() {
return this.appId;
}
@NotNull
public final WeChatPay copy(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "appId");
return new WeChatPay(str);
}
@Override
@NotNull
public List<Pair<String, Object>> createTypeParams$payments_core_release() {
return t.i(new Pair[]{new Pair(PARAM_CLIENT, "android"), new Pair(PARAM_APP_ID, this.appId)});
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof WeChatPay) && Intrinsics.areEqual(this.appId, ((WeChatPay) obj).appId);
}
@NotNull
public final String getAppId() {
return this.appId;
}
public int hashCode() {
return this.appId.hashCode();
}
public final void setAppId(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.appId = str;
}
@NotNull
public String toString() {
return u0.a(new StringBuilder("WeChatPay(appId="), this.appId, ')');
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.appId);
}
}
public PaymentMethodOptionsParams(PaymentMethod.Type type, DefaultConstructorMarker defaultConstructorMarker) {
this(type);
}
@NotNull
public abstract List<Pair<String, Object>> createTypeParams$payments_core_release();
@NotNull
public final PaymentMethod.Type getType() {
return this.type;
}
@Override
@NotNull
public Map<String, Object> toParamMap() {
List<Pair<String, Object>> createTypeParams$payments_core_release = createTypeParams$payments_core_release();
LinkedHashMap d = Q.d();
Iterator<T> it = createTypeParams$payments_core_release.iterator();
while (it.hasNext()) {
Pair pair = (Pair) it.next();
String str = (String) pair.a;
Object obj = pair.b;
Map b = obj != null ? P.b(new Pair(str, obj)) : null;
if (b == null) {
b = Q.d();
}
d = Q.i(d, b);
}
return d.isEmpty() ^ true ? P.b(new Pair(this.type.code, d)) : Q.d();
}
private PaymentMethodOptionsParams(PaymentMethod.Type type) {
this.type = type;
}
}