正在查看: Crafto v9.3.3 应用的 PaymentOptionContract.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 PaymentOptionContract.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet;
import K.N;
import P2.L;
import P2.M;
import android.content.Context;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.core.injection.InjectorKey;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.payments.core.injection.NamedConstantsKt;
import com.stripe.android.paymentsheet.PaymentSheet;
import com.stripe.android.paymentsheet.model.PaymentSelection;
import com.stripe.android.view.ActivityStarter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class PaymentOptionContract extends j.a<Args, PaymentOptionResult> {
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final String EXTRA_ARGS = "extra_activity_args";
@Metadata
public static final class Args implements ActivityStarter.Args {
private final PaymentSheet.Configuration config;
private final boolean enableLogging;
@NotNull
private final String injectorKey;
private final boolean isGooglePayReady;
private final PaymentSelection.New newLpm;
@NotNull
private final List<PaymentMethod> paymentMethods;
@NotNull
private final Set<String> productUsage;
private final Integer statusBarColor;
@NotNull
private final StripeIntent stripeIntent;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final Parcelable.Creator<Args> CREATOR = new Creator();
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Args fromIntent$paymentsheet_release(@NotNull Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
return (Args) intent.getParcelableExtra(PaymentOptionContract.EXTRA_ARGS);
}
private Companion() {
}
}
@Metadata
public static final class Creator implements Parcelable.Creator<Args> {
@Override
@NotNull
public final Args createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
StripeIntent stripeIntent = (StripeIntent) parcel.readParcelable(Args.class.getClassLoader());
int readInt = parcel.readInt();
ArrayList arrayList = new ArrayList(readInt);
int i = 0;
for (int i2 = 0; i2 != readInt; i2++) {
arrayList.add(parcel.readParcelable(Args.class.getClassLoader()));
}
PaymentSheet.Configuration createFromParcel = parcel.readInt() == 0 ? null : PaymentSheet.Configuration.CREATOR.createFromParcel(parcel);
boolean z = parcel.readInt() != 0;
PaymentSelection.New r0 = (PaymentSelection.New) parcel.readParcelable(Args.class.getClassLoader());
Integer valueOf = parcel.readInt() != 0 ? Integer.valueOf(parcel.readInt()) : null;
String readString = parcel.readString();
boolean z2 = parcel.readInt() != 0;
int readInt2 = parcel.readInt();
LinkedHashSet linkedHashSet = new LinkedHashSet(readInt2);
while (i != readInt2) {
i = N.b(parcel, linkedHashSet, i, 1);
}
return new Args(stripeIntent, arrayList, createFromParcel, z, r0, valueOf, readString, z2, linkedHashSet);
}
@Override
@NotNull
public final Args[] newArray(int i) {
return new Args[i];
}
}
public Args(@NotNull StripeIntent stripeIntent, @NotNull List<PaymentMethod> list, PaymentSheet.Configuration configuration, boolean z, PaymentSelection.New r6, Integer num, @InjectorKey @NotNull String str, boolean z2, @NotNull Set<String> set) {
Intrinsics.checkNotNullParameter(stripeIntent, "stripeIntent");
Intrinsics.checkNotNullParameter(list, "paymentMethods");
Intrinsics.checkNotNullParameter(str, "injectorKey");
Intrinsics.checkNotNullParameter(set, NamedConstantsKt.PRODUCT_USAGE);
this.stripeIntent = stripeIntent;
this.paymentMethods = list;
this.config = configuration;
this.isGooglePayReady = z;
this.newLpm = r6;
this.statusBarColor = num;
this.injectorKey = str;
this.enableLogging = z2;
this.productUsage = set;
}
@NotNull
public final StripeIntent component1() {
return this.stripeIntent;
}
@NotNull
public final List<PaymentMethod> component2() {
return this.paymentMethods;
}
public final PaymentSheet.Configuration component3() {
return this.config;
}
public final boolean component4() {
return this.isGooglePayReady;
}
public final PaymentSelection.New component5() {
return this.newLpm;
}
public final Integer component6() {
return this.statusBarColor;
}
@NotNull
public final String component7() {
return this.injectorKey;
}
public final boolean component8() {
return this.enableLogging;
}
@NotNull
public final Set<String> component9() {
return this.productUsage;
}
@NotNull
public final Args copy(@NotNull StripeIntent stripeIntent, @NotNull List<PaymentMethod> list, PaymentSheet.Configuration configuration, boolean z, PaymentSelection.New r16, Integer num, @InjectorKey @NotNull String str, boolean z2, @NotNull Set<String> set) {
Intrinsics.checkNotNullParameter(stripeIntent, "stripeIntent");
Intrinsics.checkNotNullParameter(list, "paymentMethods");
Intrinsics.checkNotNullParameter(str, "injectorKey");
Intrinsics.checkNotNullParameter(set, NamedConstantsKt.PRODUCT_USAGE);
return new Args(stripeIntent, list, configuration, z, r16, num, str, z2, set);
}
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Args)) {
return false;
}
Args args = (Args) obj;
return Intrinsics.areEqual(this.stripeIntent, args.stripeIntent) && Intrinsics.areEqual(this.paymentMethods, args.paymentMethods) && Intrinsics.areEqual(this.config, args.config) && this.isGooglePayReady == args.isGooglePayReady && Intrinsics.areEqual(this.newLpm, args.newLpm) && Intrinsics.areEqual(this.statusBarColor, args.statusBarColor) && Intrinsics.areEqual(this.injectorKey, args.injectorKey) && this.enableLogging == args.enableLogging && Intrinsics.areEqual(this.productUsage, args.productUsage);
}
public final PaymentSheet.Configuration getConfig() {
return this.config;
}
public final boolean getEnableLogging() {
return this.enableLogging;
}
@NotNull
public final String getInjectorKey() {
return this.injectorKey;
}
public final PaymentSelection.New getNewLpm() {
return this.newLpm;
}
@NotNull
public final List<PaymentMethod> getPaymentMethods() {
return this.paymentMethods;
}
@NotNull
public final Set<String> getProductUsage() {
return this.productUsage;
}
public final Integer getStatusBarColor() {
return this.statusBarColor;
}
@NotNull
public final StripeIntent getStripeIntent() {
return this.stripeIntent;
}
public int hashCode() {
int a = C0.l.a(this.stripeIntent.hashCode() * 31, 31, this.paymentMethods);
PaymentSheet.Configuration configuration = this.config;
int hashCode = (a + (configuration == null ? 0 : configuration.hashCode())) * 31;
boolean z = this.isGooglePayReady;
int i = z;
if (z != 0) {
i = 1;
}
int i2 = (hashCode + i) * 31;
PaymentSelection.New r2 = this.newLpm;
int hashCode2 = (i2 + (r2 == null ? 0 : r2.hashCode())) * 31;
Integer num = this.statusBarColor;
int a2 = N.a((hashCode2 + (num != null ? num.hashCode() : 0)) * 31, 31, this.injectorKey);
boolean z2 = this.enableLogging;
return this.productUsage.hashCode() + ((a2 + (z2 ? 1 : z2 ? 1 : 0)) * 31);
}
public final boolean isGooglePayReady() {
return this.isGooglePayReady;
}
@NotNull
public String toString() {
return "Args(stripeIntent=" + this.stripeIntent + ", paymentMethods=" + this.paymentMethods + ", config=" + this.config + ", isGooglePayReady=" + this.isGooglePayReady + ", newLpm=" + this.newLpm + ", statusBarColor=" + this.statusBarColor + ", injectorKey=" + this.injectorKey + ", enableLogging=" + this.enableLogging + ", productUsage=" + this.productUsage + ')';
}
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeParcelable(this.stripeIntent, i);
List<PaymentMethod> list = this.paymentMethods;
parcel.writeInt(list.size());
Iterator<PaymentMethod> it = list.iterator();
while (it.hasNext()) {
parcel.writeParcelable(it.next(), i);
}
PaymentSheet.Configuration configuration = this.config;
if (configuration == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
configuration.writeToParcel(parcel, i);
}
parcel.writeInt(this.isGooglePayReady ? 1 : 0);
parcel.writeParcelable(this.newLpm, i);
Integer num = this.statusBarColor;
if (num == null) {
parcel.writeInt(0);
} else {
L.a(parcel, 1, num);
}
parcel.writeString(this.injectorKey);
parcel.writeInt(this.enableLogging ? 1 : 0);
Iterator a = M.a(this.productUsage, parcel);
while (a.hasNext()) {
parcel.writeString((String) a.next());
}
}
}
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@NotNull
public Intent createIntent(@NotNull Context context, @NotNull Args args) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(args, "input");
Intent putExtra = new Intent(context, (Class<?>) PaymentOptionsActivity.class).putExtra(EXTRA_ARGS, (Parcelable) args);
Intrinsics.checkNotNullExpressionValue(putExtra, "Intent(context, PaymentO…tExtra(EXTRA_ARGS, input)");
return putExtra;
}
public PaymentOptionResult m554parseResult(int i, Intent intent) {
return PaymentOptionResult.Companion.fromIntent$paymentsheet_release(intent);
}
}