正在查看: BodyTech v7.6.4 应用的 ElementsSession.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 ElementsSession.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.RestrictTo;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.model.PaymentMethod;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Metadata;
import kotlin.collections.g0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlinx.coroutines.scheduling.WorkQueueKt;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000X\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\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010\u0003\n\u0002\b\u0007\n\u0002\u0010$\n\u0002\b\u000b\b\u0087\b\u0018\u0000 C2\u00020\u0001:\u0003D\u0011\u0016B]\u0012\b\u0010\u0015\u001a\u0004\u0018\u00010\u0010\u0012\b\u0010\u001a\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u001c\u001a\u0004\u0018\u00010\u0002\u0012\u0006\u0010\"\u001a\u00020\u001d\u0012\b\u0010'\u001a\u0004\u0018\u00010#\u0012\b\u0010*\u001a\u0004\u0018\u00010\u0002\u0012\u0006\u0010.\u001a\u00020\b\u0012\u0006\u00101\u001a\u00020\b\u0012\n\b\u0002\u00107\u001a\u0004\u0018\u000102¢\u0006\u0004\bA\u0010BJ\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Ö\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u0019\u0010\u0015\u001a\u0004\u0018\u00010\u00108\u0006¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u0013\u0010\u0014R\u0019\u0010\u001a\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u0019\u0010\u001c\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001b\u0010\u0017\u001a\u0004\b\u001b\u0010\u0019R\u0017\u0010\"\u001a\u00020\u001d8\u0006¢\u0006\f\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!R\u0019\u0010'\u001a\u0004\u0018\u00010#8\u0006¢\u0006\f\n\u0004\b\u0018\u0010$\u001a\u0004\b%\u0010&R\u0019\u0010*\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b(\u0010\u0017\u001a\u0004\b)\u0010\u0019R\u0017\u0010.\u001a\u00020\b8\u0006¢\u0006\f\n\u0004\b \u0010+\u001a\u0004\b,\u0010-R\u0017\u00101\u001a\u00020\b8\u0006¢\u0006\f\n\u0004\b/\u0010+\u001a\u0004\b0\u0010-R\u0019\u00107\u001a\u0004\u0018\u0001028\u0006¢\u0006\f\n\u0004\b3\u00104\u001a\u0004\b5\u00106R\u0011\u00109\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b8\u0010-R\u001d\u0010=\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\b0:8F¢\u0006\u0006\u001a\u0004\b;\u0010<R\u0011\u0010>\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b\u0011\u0010-R\u0011\u0010@\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b?\u0010-¨\u0006E"}, d2 = {"Lcom/stripe/android/model/j;", "Lph/b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "Lcom/stripe/android/model/j$d;", "c", "Lcom/stripe/android/model/j$d;", "getLinkSettings", "()Lcom/stripe/android/model/j$d;", "linkSettings", "d", "Ljava/lang/String;", "n", "()Ljava/lang/String;", "paymentMethodSpecs", "e", "externalPaymentMethodData", "Lcom/stripe/android/model/StripeIntent;", "k", "Lcom/stripe/android/model/StripeIntent;", "q", "()Lcom/stripe/android/model/StripeIntent;", "stripeIntent", "Lcom/stripe/android/model/j$c;", "Lcom/stripe/android/model/j$c;", "b", "()Lcom/stripe/android/model/j$c;", "customer", "p", "m", "merchantCountry", "Z", "u", "()Z", "isEligibleForCardBrandChoice", "r", "y", "isGooglePayEnabled", "", "t", "Ljava/lang/Throwable;", "o", "()Ljava/lang/Throwable;", "sessionsError", "i", "linkPassthroughModeEnabled", "", "g", "()Ljava/util/Map;", "linkFlags", "disableLinkSignup", "A", "isLinkEnabled", "<init>", "(Lcom/stripe/android/model/j$d;Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/StripeIntent;Lcom/stripe/android/model/j$c;Ljava/lang/String;ZZLjava/lang/Throwable;)V", "v", "a", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final class ElementsSession implements ph.b {
private final LinkSettings linkSettings;
private final String paymentMethodSpecs;
private final String externalPaymentMethodData;
private final StripeIntent stripeIntent;
private final Customer customer;
private final String merchantCountry;
private final boolean isEligibleForCardBrandChoice;
private final boolean isGooglePayEnabled;
private final Throwable sessionsError;
public static final Companion INSTANCE = new Companion(null);
public static final int w = 8;
public static final Parcelable.Creator<ElementsSession> CREATOR = new b();
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0087\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\b\u0010\tJ\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004¨\u0006\n"}, d2 = {"Lcom/stripe/android/model/j$a;", "", "Lcom/stripe/android/model/StripeIntent;", "stripeIntent", "", "sessionsError", "Lcom/stripe/android/model/j;", "a", "<init>", "()V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final class Companion {
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final ElementsSession a(StripeIntent stripeIntent, Throwable sessionsError) {
kotlin.jvm.internal.r.i(stripeIntent, "stripeIntent");
return new ElementsSession(null, null, null, stripeIntent, null, null, false, true, sessionsError);
}
}
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class b implements Parcelable.Creator<ElementsSession> {
@Override
public final ElementsSession createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
return new ElementsSession(parcel.readInt() == 0 ? null : LinkSettings.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readString(), (StripeIntent) parcel.readParcelable(ElementsSession.class.getClassLoader()), parcel.readInt() != 0 ? Customer.CREATOR.createFromParcel(parcel) : null, parcel.readString(), parcel.readInt() != 0, parcel.readInt() != 0, (Throwable) parcel.readSerializable());
}
@Override
public final ElementsSession[] newArray(int i) {
return new ElementsSession[i];
}
}
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000D\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\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0087\b\u0018\u00002\u00020\u0001:\u0001\u0014B'\u0012\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00110\u0010\u0012\b\u0010\u001b\u001a\u0004\u0018\u00010\u0002\u0012\u0006\u0010 \u001a\u00020\u001c¢\u0006\u0004\b!\u0010\"J\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Ö\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u001d\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00110\u00108\u0006¢\u0006\f\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015R\u0019\u0010\u001b\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001aR\u0017\u0010 \u001a\u00020\u001c8\u0006¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u0012\u0010\u001f¨\u0006#"}, d2 = {"Lcom/stripe/android/model/j$c;", "Lph/b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "", "Lcom/stripe/android/model/PaymentMethod;", "c", "Ljava/util/List;", "b", "()Ljava/util/List;", "paymentMethods", "d", "Ljava/lang/String;", "getDefaultPaymentMethod", "()Ljava/lang/String;", "defaultPaymentMethod", "Lcom/stripe/android/model/j$c$b;", "e", "Lcom/stripe/android/model/j$c$b;", "()Lcom/stripe/android/model/j$c$b;", "session", "<init>", "(Ljava/util/List;Ljava/lang/String;Lcom/stripe/android/model/j$c$b;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final class Customer implements ph.b {
public static final Parcelable.Creator<Customer> CREATOR = new a();
private final List<PaymentMethod> paymentMethods;
private final String defaultPaymentMethod;
private final Session session;
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class a implements Parcelable.Creator<Customer> {
@Override
public final Customer createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
int readInt = parcel.readInt();
ArrayList arrayList = new ArrayList(readInt);
for (int i = 0; i != readInt; i++) {
arrayList.add(PaymentMethod.CREATOR.createFromParcel(parcel));
}
return new Customer(arrayList, parcel.readString(), Session.CREATOR.createFromParcel(parcel));
}
@Override
public final Customer[] newArray(int i) {
return new Customer[i];
}
}
@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u00002\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\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0018\b\u0087\b\u0018\u00002\u00020\u0001B/\u0012\u0006\u0010\u0014\u001a\u00020\u0002\u0012\u0006\u0010\u0019\u001a\u00020\b\u0012\u0006\u0010\u001c\u001a\u00020\u0002\u0012\u0006\u0010!\u001a\u00020\u0004\u0012\u0006\u0010#\u001a\u00020\u0002¢\u0006\u0004\b$\u0010%J\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Ö\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u0017\u0010\u0014\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u0017\u0010\u0019\u001a\u00020\b8\u0006¢\u0006\f\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018R\u0017\u0010\u001c\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u001a\u0010\u0011\u001a\u0004\b\u001b\u0010\u0013R\u0017\u0010!\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 R\u0017\u0010#\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\"\u0010\u0011\u001a\u0004\b\u0010\u0010\u0013¨\u0006&"}, d2 = {"Lcom/stripe/android/model/j$c$b;", "Lph/b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "c", "Ljava/lang/String;", "getId", "()Ljava/lang/String;", "id", "d", "Z", "getLiveMode", "()Z", "liveMode", "e", "b", "apiKey", "k", "I", "getApiKeyExpiry", "()I", "apiKeyExpiry", "n", "customerId", "<init>", "(Ljava/lang/String;ZLjava/lang/String;ILjava/lang/String;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final class Session implements ph.b {
public static final Parcelable.Creator<Session> CREATOR = new a();
private final String id;
private final boolean liveMode;
private final String apiKey;
private final int apiKeyExpiry;
private final String customerId;
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class a implements Parcelable.Creator<Session> {
@Override
public final Session createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
return new Session(parcel.readString(), parcel.readInt() != 0, parcel.readString(), parcel.readInt(), parcel.readString());
}
@Override
public final Session[] newArray(int i) {
return new Session[i];
}
}
public Session(String id, boolean z, String apiKey, int i, String customerId) {
kotlin.jvm.internal.r.i(id, "id");
kotlin.jvm.internal.r.i(apiKey, "apiKey");
kotlin.jvm.internal.r.i(customerId, "customerId");
this.id = id;
this.liveMode = z;
this.apiKey = apiKey;
this.apiKeyExpiry = i;
this.customerId = customerId;
}
public final String getApiKey() {
return this.apiKey;
}
public final String getCustomerId() {
return this.customerId;
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Session)) {
return false;
}
Session session = (Session) other;
return kotlin.jvm.internal.r.d(this.id, session.id) && this.liveMode == session.liveMode && kotlin.jvm.internal.r.d(this.apiKey, session.apiKey) && this.apiKeyExpiry == session.apiKeyExpiry && kotlin.jvm.internal.r.d(this.customerId, session.customerId);
}
public int hashCode() {
return (((((((this.id.hashCode() * 31) + androidx.compose.animation.a.a(this.liveMode)) * 31) + this.apiKey.hashCode()) * 31) + this.apiKeyExpiry) * 31) + this.customerId.hashCode();
}
public String toString() {
return "Session(id=" + this.id + ", liveMode=" + this.liveMode + ", apiKey=" + this.apiKey + ", apiKeyExpiry=" + this.apiKeyExpiry + ", customerId=" + this.customerId + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
parcel.writeString(this.id);
parcel.writeInt(this.liveMode ? 1 : 0);
parcel.writeString(this.apiKey);
parcel.writeInt(this.apiKeyExpiry);
parcel.writeString(this.customerId);
}
}
public Customer(List<PaymentMethod> paymentMethods, String str, Session session) {
kotlin.jvm.internal.r.i(paymentMethods, "paymentMethods");
kotlin.jvm.internal.r.i(session, "session");
this.paymentMethods = paymentMethods;
this.defaultPaymentMethod = str;
this.session = session;
}
public final List<PaymentMethod> b() {
return this.paymentMethods;
}
public final Session getSession() {
return this.session;
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Customer)) {
return false;
}
Customer customer = (Customer) other;
return kotlin.jvm.internal.r.d(this.paymentMethods, customer.paymentMethods) && kotlin.jvm.internal.r.d(this.defaultPaymentMethod, customer.defaultPaymentMethod) && kotlin.jvm.internal.r.d(this.session, customer.session);
}
public int hashCode() {
int hashCode = this.paymentMethods.hashCode() * 31;
String str = this.defaultPaymentMethod;
return ((hashCode + (str == null ? 0 : str.hashCode())) * 31) + this.session.hashCode();
}
public String toString() {
return "Customer(paymentMethods=" + this.paymentMethods + ", defaultPaymentMethod=" + this.defaultPaymentMethod + ", session=" + this.session + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
List<PaymentMethod> list = this.paymentMethods;
parcel.writeInt(list.size());
Iterator<PaymentMethod> it = list.iterator();
while (it.hasNext()) {
it.next().writeToParcel(parcel, flags);
}
parcel.writeString(this.defaultPaymentMethod);
this.session.writeToParcel(parcel, flags);
}
}
@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\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\n\n\u0002\u0010$\n\u0002\b\t\b\u0087\b\u0018\u00002\u00020\u0001B9\u0012\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00020\u0010\u0012\u0006\u0010\u001a\u001a\u00020\b\u0012\u0012\u0010\u001e\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\b0\u001b\u0012\u0006\u0010!\u001a\u00020\b¢\u0006\u0004\b\"\u0010#J\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Ö\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u001d\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00020\u00108\u0006¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u0013\u0010\u0014R\u0017\u0010\u001a\u001a\u00020\b8\u0006¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R#\u0010\u001e\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\b0\u001b8\u0006¢\u0006\f\n\u0004\b\u0018\u0010\u001c\u001a\u0004\b\u0011\u0010\u001dR\u0017\u0010!\u001a\u00020\b8\u0006¢\u0006\f\n\u0004\b\u001f\u0010\u0017\u001a\u0004\b \u0010\u0019¨\u0006$"}, d2 = {"Lcom/stripe/android/model/j$d;", "Lph/b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "", "c", "Ljava/util/List;", "getLinkFundingSources", "()Ljava/util/List;", "linkFundingSources", "d", "Z", "e", "()Z", "linkPassthroughModeEnabled", "", "Ljava/util/Map;", "()Ljava/util/Map;", "linkFlags", "k", "b", "disableLinkSignup", "<init>", "(Ljava/util/List;ZLjava/util/Map;Z)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public static final class LinkSettings implements ph.b {
public static final Parcelable.Creator<LinkSettings> CREATOR = new a();
private final List<String> linkFundingSources;
private final boolean linkPassthroughModeEnabled;
private final Map<String, Boolean> linkFlags;
private final boolean disableLinkSignup;
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class a implements Parcelable.Creator<LinkSettings> {
@Override
public final LinkSettings createFromParcel(Parcel parcel) {
kotlin.jvm.internal.r.i(parcel, "parcel");
ArrayList<String> createStringArrayList = parcel.createStringArrayList();
boolean z = parcel.readInt() != 0;
int readInt = parcel.readInt();
LinkedHashMap linkedHashMap = new LinkedHashMap(readInt);
for (int i = 0; i != readInt; i++) {
linkedHashMap.put(parcel.readString(), Boolean.valueOf(parcel.readInt() != 0));
}
return new LinkSettings(createStringArrayList, z, linkedHashMap, parcel.readInt() != 0);
}
@Override
public final LinkSettings[] newArray(int i) {
return new LinkSettings[i];
}
}
public LinkSettings(List<String> linkFundingSources, boolean z, Map<String, Boolean> linkFlags, boolean z2) {
kotlin.jvm.internal.r.i(linkFundingSources, "linkFundingSources");
kotlin.jvm.internal.r.i(linkFlags, "linkFlags");
this.linkFundingSources = linkFundingSources;
this.linkPassthroughModeEnabled = z;
this.linkFlags = linkFlags;
this.disableLinkSignup = z2;
}
public final boolean getDisableLinkSignup() {
return this.disableLinkSignup;
}
public final Map<String, Boolean> c() {
return this.linkFlags;
}
@Override
public int describeContents() {
return 0;
}
public final boolean getLinkPassthroughModeEnabled() {
return this.linkPassthroughModeEnabled;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof LinkSettings)) {
return false;
}
LinkSettings linkSettings = (LinkSettings) other;
return kotlin.jvm.internal.r.d(this.linkFundingSources, linkSettings.linkFundingSources) && this.linkPassthroughModeEnabled == linkSettings.linkPassthroughModeEnabled && kotlin.jvm.internal.r.d(this.linkFlags, linkSettings.linkFlags) && this.disableLinkSignup == linkSettings.disableLinkSignup;
}
public int hashCode() {
return (((((this.linkFundingSources.hashCode() * 31) + androidx.compose.animation.a.a(this.linkPassthroughModeEnabled)) * 31) + this.linkFlags.hashCode()) * 31) + androidx.compose.animation.a.a(this.disableLinkSignup);
}
public String toString() {
return "LinkSettings(linkFundingSources=" + this.linkFundingSources + ", linkPassthroughModeEnabled=" + this.linkPassthroughModeEnabled + ", linkFlags=" + this.linkFlags + ", disableLinkSignup=" + this.disableLinkSignup + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
parcel.writeStringList(this.linkFundingSources);
parcel.writeInt(this.linkPassthroughModeEnabled ? 1 : 0);
Map<String, Boolean> map = this.linkFlags;
parcel.writeInt(map.size());
for (Map.Entry<String, Boolean> entry : map.entrySet()) {
parcel.writeString(entry.getKey());
parcel.writeInt(entry.getValue().booleanValue() ? 1 : 0);
}
parcel.writeInt(this.disableLinkSignup ? 1 : 0);
}
}
public ElementsSession(LinkSettings linkSettings, String str, String str2, StripeIntent stripeIntent, Customer customer, String str3, boolean z, boolean z2, Throwable th2) {
kotlin.jvm.internal.r.i(stripeIntent, "stripeIntent");
this.linkSettings = linkSettings;
this.paymentMethodSpecs = str;
this.externalPaymentMethodData = str2;
this.stripeIntent = stripeIntent;
this.customer = customer;
this.merchantCountry = str3;
this.isEligibleForCardBrandChoice = z;
this.isGooglePayEnabled = z2;
this.sessionsError = th2;
}
public final boolean A() {
Set set;
boolean z;
boolean contains = this.stripeIntent.d().contains(PaymentMethod.Type.d.code);
List<String> b0 = this.stripeIntent.b0();
if (!(b0 instanceof Collection) || !b0.isEmpty()) {
for (String str : b0) {
set = ai.i.a;
if (set.contains(str)) {
z = true;
break;
}
}
}
z = false;
return (contains && z) || i();
}
public final Customer getCustomer() {
return this.customer;
}
public final boolean c() {
LinkSettings linkSettings = this.linkSettings;
if (linkSettings != null) {
return linkSettings.getDisableLinkSignup();
}
return false;
}
@Override
public int describeContents() {
return 0;
}
public final String getExternalPaymentMethodData() {
return this.externalPaymentMethodData;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ElementsSession)) {
return false;
}
ElementsSession elementsSession = (ElementsSession) other;
return kotlin.jvm.internal.r.d(this.linkSettings, elementsSession.linkSettings) && kotlin.jvm.internal.r.d(this.paymentMethodSpecs, elementsSession.paymentMethodSpecs) && kotlin.jvm.internal.r.d(this.externalPaymentMethodData, elementsSession.externalPaymentMethodData) && kotlin.jvm.internal.r.d(this.stripeIntent, elementsSession.stripeIntent) && kotlin.jvm.internal.r.d(this.customer, elementsSession.customer) && kotlin.jvm.internal.r.d(this.merchantCountry, elementsSession.merchantCountry) && this.isEligibleForCardBrandChoice == elementsSession.isEligibleForCardBrandChoice && this.isGooglePayEnabled == elementsSession.isGooglePayEnabled && kotlin.jvm.internal.r.d(this.sessionsError, elementsSession.sessionsError);
}
public final Map<String, Boolean> g() {
Map<String, Boolean> j;
Map<String, Boolean> c;
LinkSettings linkSettings = this.linkSettings;
if (linkSettings != null && (c = linkSettings.c()) != null) {
return c;
}
j = g0.j();
return j;
}
public int hashCode() {
LinkSettings linkSettings = this.linkSettings;
int hashCode = (linkSettings == null ? 0 : linkSettings.hashCode()) * 31;
String str = this.paymentMethodSpecs;
int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
String str2 = this.externalPaymentMethodData;
int hashCode3 = (((hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31) + this.stripeIntent.hashCode()) * 31;
Customer customer = this.customer;
int hashCode4 = (hashCode3 + (customer == null ? 0 : customer.hashCode())) * 31;
String str3 = this.merchantCountry;
int hashCode5 = (((((hashCode4 + (str3 == null ? 0 : str3.hashCode())) * 31) + androidx.compose.animation.a.a(this.isEligibleForCardBrandChoice)) * 31) + androidx.compose.animation.a.a(this.isGooglePayEnabled)) * 31;
Throwable th2 = this.sessionsError;
return hashCode5 + (th2 != null ? th2.hashCode() : 0);
}
public final boolean i() {
LinkSettings linkSettings = this.linkSettings;
if (linkSettings != null) {
return linkSettings.getLinkPassthroughModeEnabled();
}
return false;
}
public final String getMerchantCountry() {
return this.merchantCountry;
}
public final String getPaymentMethodSpecs() {
return this.paymentMethodSpecs;
}
public final Throwable getSessionsError() {
return this.sessionsError;
}
public final StripeIntent getStripeIntent() {
return this.stripeIntent;
}
public String toString() {
return "ElementsSession(linkSettings=" + this.linkSettings + ", paymentMethodSpecs=" + this.paymentMethodSpecs + ", externalPaymentMethodData=" + this.externalPaymentMethodData + ", stripeIntent=" + this.stripeIntent + ", customer=" + this.customer + ", merchantCountry=" + this.merchantCountry + ", isEligibleForCardBrandChoice=" + this.isEligibleForCardBrandChoice + ", isGooglePayEnabled=" + this.isGooglePayEnabled + ", sessionsError=" + this.sessionsError + ")";
}
public final boolean getIsEligibleForCardBrandChoice() {
return this.isEligibleForCardBrandChoice;
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
kotlin.jvm.internal.r.i(parcel, "out");
LinkSettings linkSettings = this.linkSettings;
if (linkSettings == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
linkSettings.writeToParcel(parcel, flags);
}
parcel.writeString(this.paymentMethodSpecs);
parcel.writeString(this.externalPaymentMethodData);
parcel.writeParcelable(this.stripeIntent, flags);
Customer customer = this.customer;
if (customer == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
customer.writeToParcel(parcel, flags);
}
parcel.writeString(this.merchantCountry);
parcel.writeInt(this.isEligibleForCardBrandChoice ? 1 : 0);
parcel.writeInt(this.isGooglePayEnabled ? 1 : 0);
parcel.writeSerializable(this.sessionsError);
}
public final boolean getIsGooglePayEnabled() {
return this.isGooglePayEnabled;
}
public ElementsSession(LinkSettings linkSettings, String str, String str2, StripeIntent stripeIntent, Customer customer, String str3, boolean z, boolean z2, Throwable th2, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(linkSettings, str, str2, stripeIntent, customer, str3, z, z2, (i & 256) != 0 ? null : th2);
}
}