正在查看: Crafto v9.3.3 应用的 InitData.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 InitData.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet.flowcontroller;
import B.k;
import C0.l;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.paymentsheet.PaymentSheet;
import com.stripe.android.paymentsheet.model.ClientSecret;
import com.stripe.android.paymentsheet.model.SavedSelection;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class InitData implements Parcelable {
@NotNull
public static final Parcelable.Creator<InitData> CREATOR = new Creator();
@NotNull
private final ClientSecret clientSecret;
private final PaymentSheet.Configuration config;
private final boolean isGooglePayReady;
@NotNull
private final List<PaymentMethod> paymentMethods;
@NotNull
private final SavedSelection savedSelection;
@NotNull
private final StripeIntent stripeIntent;
@Metadata
public static final class Creator implements Parcelable.Creator<InitData> {
@Override
@NotNull
public final InitData createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
PaymentSheet.Configuration createFromParcel = parcel.readInt() == 0 ? null : PaymentSheet.Configuration.CREATOR.createFromParcel(parcel);
ClientSecret clientSecret = (ClientSecret) parcel.readParcelable(InitData.class.getClassLoader());
StripeIntent stripeIntent = (StripeIntent) parcel.readParcelable(InitData.class.getClassLoader());
int readInt = parcel.readInt();
ArrayList arrayList = new ArrayList(readInt);
for (int i = 0; i != readInt; i++) {
arrayList.add(parcel.readParcelable(InitData.class.getClassLoader()));
}
return new InitData(createFromParcel, clientSecret, stripeIntent, arrayList, (SavedSelection) parcel.readParcelable(InitData.class.getClassLoader()), parcel.readInt() != 0);
}
@Override
@NotNull
public final InitData[] newArray(int i) {
return new InitData[i];
}
}
public InitData(PaymentSheet.Configuration configuration, @NotNull ClientSecret clientSecret, @NotNull StripeIntent stripeIntent, @NotNull List<PaymentMethod> list, @NotNull SavedSelection savedSelection, boolean z) {
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
Intrinsics.checkNotNullParameter(stripeIntent, "stripeIntent");
Intrinsics.checkNotNullParameter(list, "paymentMethods");
Intrinsics.checkNotNullParameter(savedSelection, "savedSelection");
this.config = configuration;
this.clientSecret = clientSecret;
this.stripeIntent = stripeIntent;
this.paymentMethods = list;
this.savedSelection = savedSelection;
this.isGooglePayReady = z;
}
public static InitData copy$default(InitData initData, PaymentSheet.Configuration configuration, ClientSecret clientSecret, StripeIntent stripeIntent, List list, SavedSelection savedSelection, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
configuration = initData.config;
}
if ((i & 2) != 0) {
clientSecret = initData.clientSecret;
}
ClientSecret clientSecret2 = clientSecret;
if ((i & 4) != 0) {
stripeIntent = initData.stripeIntent;
}
StripeIntent stripeIntent2 = stripeIntent;
if ((i & 8) != 0) {
list = initData.paymentMethods;
}
List list2 = list;
if ((i & 16) != 0) {
savedSelection = initData.savedSelection;
}
SavedSelection savedSelection2 = savedSelection;
if ((i & 32) != 0) {
z = initData.isGooglePayReady;
}
return initData.copy(configuration, clientSecret2, stripeIntent2, list2, savedSelection2, z);
}
public final PaymentSheet.Configuration component1() {
return this.config;
}
@NotNull
public final ClientSecret component2() {
return this.clientSecret;
}
@NotNull
public final StripeIntent component3() {
return this.stripeIntent;
}
@NotNull
public final List<PaymentMethod> component4() {
return this.paymentMethods;
}
@NotNull
public final SavedSelection component5() {
return this.savedSelection;
}
public final boolean component6() {
return this.isGooglePayReady;
}
@NotNull
public final InitData copy(PaymentSheet.Configuration configuration, @NotNull ClientSecret clientSecret, @NotNull StripeIntent stripeIntent, @NotNull List<PaymentMethod> list, @NotNull SavedSelection savedSelection, boolean z) {
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
Intrinsics.checkNotNullParameter(stripeIntent, "stripeIntent");
Intrinsics.checkNotNullParameter(list, "paymentMethods");
Intrinsics.checkNotNullParameter(savedSelection, "savedSelection");
return new InitData(configuration, clientSecret, stripeIntent, list, savedSelection, z);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof InitData)) {
return false;
}
InitData initData = (InitData) obj;
return Intrinsics.areEqual(this.config, initData.config) && Intrinsics.areEqual(this.clientSecret, initData.clientSecret) && Intrinsics.areEqual(this.stripeIntent, initData.stripeIntent) && Intrinsics.areEqual(this.paymentMethods, initData.paymentMethods) && Intrinsics.areEqual(this.savedSelection, initData.savedSelection) && this.isGooglePayReady == initData.isGooglePayReady;
}
@NotNull
public final ClientSecret getClientSecret() {
return this.clientSecret;
}
public final PaymentSheet.Configuration getConfig() {
return this.config;
}
@NotNull
public final List<PaymentMethod> getPaymentMethods() {
return this.paymentMethods;
}
@NotNull
public final SavedSelection getSavedSelection() {
return this.savedSelection;
}
@NotNull
public final StripeIntent getStripeIntent() {
return this.stripeIntent;
}
public int hashCode() {
PaymentSheet.Configuration configuration = this.config;
int hashCode = (this.savedSelection.hashCode() + l.a((this.stripeIntent.hashCode() + ((this.clientSecret.hashCode() + ((configuration == null ? 0 : configuration.hashCode()) * 31)) * 31)) * 31, 31, this.paymentMethods)) * 31;
boolean z = this.isGooglePayReady;
int i = z;
if (z != 0) {
i = 1;
}
return hashCode + i;
}
public final boolean isGooglePayReady() {
return this.isGooglePayReady;
}
@NotNull
public String toString() {
StringBuilder sb = new StringBuilder("InitData(config=");
sb.append(this.config);
sb.append(", clientSecret=");
sb.append(this.clientSecret);
sb.append(", stripeIntent=");
sb.append(this.stripeIntent);
sb.append(", paymentMethods=");
sb.append(this.paymentMethods);
sb.append(", savedSelection=");
sb.append(this.savedSelection);
sb.append(", isGooglePayReady=");
return k.a(sb, this.isGooglePayReady, ')');
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
PaymentSheet.Configuration configuration = this.config;
if (configuration == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
configuration.writeToParcel(parcel, i);
}
parcel.writeParcelable(this.clientSecret, i);
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);
}
parcel.writeParcelable(this.savedSelection, i);
parcel.writeInt(this.isGooglePayReady ? 1 : 0);
}
}