正在查看: BodyTech v7.6.4 应用的 PaymentMethodMetadata.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 PaymentMethodMetadata.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package yh;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.lpmfoundations.paymentmethod.PaymentMethodRegistry;
import com.stripe.android.model.PaymentIntent;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.SetupIntent;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.paymentsheet.PaymentSheet;
import com.stripe.android.paymentsheet.addresselement.AddressDetails;
import com.stripe.android.ui.core.Amount;
import com.stripe.android.ui.core.elements.ExternalPaymentMethodSpec;
import com.stripe.android.ui.core.elements.SharedDataSpec;
import gj.i;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.collections.g0;
import kotlin.collections.o;
import kotlin.collections.p;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.r;
import kotlinx.coroutines.scheduling.WorkQueueKt;
import xh.SupportedPaymentMethod;
import yh.d;
import zh.b0;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000¢\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0000\n\u0002\u0010$\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\n\b\u0081\b\u0018\u00002\u00020\u0001B\u0087\u0001\u0012\u0006\u0010.\u001a\u00020*\u0012\u0006\u00104\u001a\u00020/\u0012\u0006\u00108\u001a\u00020\u000e\u0012\u0006\u0010;\u001a\u00020\u000e\u0012\f\u0010@\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002\u0012\u0006\u0010E\u001a\u00020A\u0012\u0006\u0010J\u001a\u00020\u0003\u0012\b\u0010P\u001a\u0004\u0018\u00010K\u0012\b\u0010V\u001a\u0004\u0018\u00010Q\u0012\f\u0010Z\u001a\b\u0012\u0004\u0012\u00020W0\u0002\u0012\f\u0010^\u001a\b\u0012\u0004\u0012\u00020[0\u0002\u0012\u0006\u0010a\u001a\u00020\u000e\u0012\b\b\u0002\u0010b\u001a\u00020\u000e¢\u0006\u0004\bc\u0010dJ\u000e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0002J\u001e\u0010\u0007\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00060\u0005*\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0002J\u000e\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0002J\u0012\u0010\u000b\u001a\u0004\u0018\u00010\n2\u0006\u0010\t\u001a\u00020\u0003H\u0002J\u000e\u0010\r\u001a\b\u0012\u0004\u0012\u00020\f0\u0002H\u0002J\u0006\u0010\u000f\u001a\u00020\u000eJ\u000e\u0010\u0011\u001a\u00020\u000e2\u0006\u0010\u0010\u001a\u00020\u0003J\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002J\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00130\u0002J\u0010\u0010\u0016\u001a\u0004\u0018\u00010\u00152\u0006\u0010\t\u001a\u00020\u0003J\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00150\u0002J\u000e\u0010\u0018\u001a\u00020\u000e2\u0006\u0010\t\u001a\u00020\u0003J\b\u0010\u001a\u001a\u0004\u0018\u00010\u0019J\u001e\u0010\u001e\u001a\n\u0012\u0004\u0012\u00020\u001d\u0018\u00010\u00022\u0006\u0010\t\u001a\u00020\u00032\u0006\u0010\u001c\u001a\u00020\u001bJ\t\u0010\u001f\u001a\u00020\u0003HÖ\u0001J\t\u0010 \u001a\u00020\u0006HÖ\u0001J\u0013\u0010#\u001a\u00020\u000e2\b\u0010\"\u001a\u0004\u0018\u00010!HÖ\u0003J\t\u0010$\u001a\u00020\u0006HÖ\u0001J\u0019\u0010)\u001a\u00020(2\u0006\u0010&\u001a\u00020%2\u0006\u0010'\u001a\u00020\u0006HÖ\u0001R\u0017\u0010.\u001a\u00020*8\u0006¢\u0006\f\n\u0004\b\b\u0010+\u001a\u0004\b,\u0010-R\u0017\u00104\u001a\u00020/8\u0006¢\u0006\f\n\u0004\b0\u00101\u001a\u0004\b2\u00103R\u0017\u00108\u001a\u00020\u000e8\u0006¢\u0006\f\n\u0004\b\u001e\u00105\u001a\u0004\b6\u00107R\u0017\u0010;\u001a\u00020\u000e8\u0006¢\u0006\f\n\u0004\b9\u00105\u001a\u0004\b:\u00107R\u001d\u0010@\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0006¢\u0006\f\n\u0004\b<\u0010=\u001a\u0004\b>\u0010?R\u0017\u0010E\u001a\u00020A8\u0006¢\u0006\f\n\u0004\bB\u0010C\u001a\u0004\b<\u0010DR\u0017\u0010J\u001a\u00020\u00038\u0006¢\u0006\f\n\u0004\bF\u0010G\u001a\u0004\bH\u0010IR\u0019\u0010P\u001a\u0004\u0018\u00010K8\u0006¢\u0006\f\n\u0004\bL\u0010M\u001a\u0004\bN\u0010OR\u0019\u0010V\u001a\u0004\u0018\u00010Q8\u0006¢\u0006\f\n\u0004\bR\u0010S\u001a\u0004\bT\u0010UR\u001d\u0010Z\u001a\b\u0012\u0004\u0012\u00020W0\u00028\u0006¢\u0006\f\n\u0004\bX\u0010=\u001a\u0004\bY\u0010?R\u001d\u0010^\u001a\b\u0012\u0004\u0012\u00020[0\u00028\u0006¢\u0006\f\n\u0004\b\\\u0010=\u001a\u0004\b]\u0010?R\u0017\u0010a\u001a\u00020\u000e8\u0006¢\u0006\f\n\u0004\b_\u00105\u001a\u0004\b`\u00107R\u0017\u0010b\u001a\u00020\u000e8\u0006¢\u0006\f\n\u0004\bH\u00105\u001a\u0004\bF\u00107¨\u0006e"}, d2 = {"Lyh/c;", "Landroid/os/Parcelable;", "", "", "K", "", "", "J", "c", "code", "Lyh/d$d;", "D", "Lyh/a;", "Q", "", "E", "paymentMethodCode", "M", "W", "Lcom/stripe/android/model/PaymentMethod$Type;", "Y", "Lxh/f;", "T", "O", "F", "Lcom/stripe/android/ui/core/b;", "b", "Lyh/d$a$a;", "uiDefinitionFactoryArgumentsFactory", "Lcom/stripe/android/uicore/elements/o;", "e", "toString", "hashCode", "", "other", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "Lcom/stripe/android/model/StripeIntent;", "Lcom/stripe/android/model/StripeIntent;", "C", "()Lcom/stripe/android/model/StripeIntent;", "stripeIntent", "Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;", "d", "Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;", "m", "()Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;", "billingDetailsCollectionConfiguration", "Z", "g", "()Z", "allowsDelayedPaymentMethods", "k", "i", "allowsPaymentMethodsRequiringShippingAddress", "n", "Ljava/util/List;", "getPaymentMethodOrder", "()Ljava/util/List;", "paymentMethodOrder", "Lqi/a;", "p", "Lqi/a;", "()Lqi/a;", "cbcEligibility", "q", "Ljava/lang/String;", "y", "()Ljava/lang/String;", "merchantName", "Lcom/stripe/android/paymentsheet/PaymentSheet$c;", "r", "Lcom/stripe/android/paymentsheet/PaymentSheet$c;", "o", "()Lcom/stripe/android/paymentsheet/PaymentSheet$c;", "defaultBillingDetails", "Lcom/stripe/android/paymentsheet/addresselement/a;", "t", "Lcom/stripe/android/paymentsheet/addresselement/a;", "A", "()Lcom/stripe/android/paymentsheet/addresselement/a;", "shippingDetails", "Lcom/stripe/android/ui/core/elements/SharedDataSpec;", "v", "getSharedDataSpecs", "sharedDataSpecs", "Lcom/stripe/android/ui/core/elements/ExternalPaymentMethodSpec;", "w", "getExternalPaymentMethodSpecs", "externalPaymentMethodSpecs", "x", "u", "hasCustomerConfiguration", "financialConnectionsAvailable", "<init>", "(Lcom/stripe/android/model/StripeIntent;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;ZZLjava/util/List;Lqi/a;Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$c;Lcom/stripe/android/paymentsheet/addresselement/a;Ljava/util/List;Ljava/util/List;ZZ)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public final class PaymentMethodMetadata implements Parcelable {
public static final Parcelable.Creator<PaymentMethodMetadata> CREATOR = new a();
private final StripeIntent stripeIntent;
private final PaymentSheet.BillingDetailsCollectionConfiguration billingDetailsCollectionConfiguration;
private final boolean allowsDelayedPaymentMethods;
private final boolean allowsPaymentMethodsRequiringShippingAddress;
private final List<String> paymentMethodOrder;
private final qi.a cbcEligibility;
private final String merchantName;
private final PaymentSheet.BillingDetails defaultBillingDetails;
private final AddressDetails shippingDetails;
private final List<SharedDataSpec> sharedDataSpecs;
private final List<ExternalPaymentMethodSpec> externalPaymentMethodSpecs;
private final boolean hasCustomerConfiguration;
private final boolean financialConnectionsAvailable;
@Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
public static final class a implements Parcelable.Creator<PaymentMethodMetadata> {
@Override
public final PaymentMethodMetadata createFromParcel(Parcel parcel) {
r.i(parcel, "parcel");
StripeIntent stripeIntent = (StripeIntent) parcel.readParcelable(PaymentMethodMetadata.class.getClassLoader());
PaymentSheet.BillingDetailsCollectionConfiguration createFromParcel = PaymentSheet.BillingDetailsCollectionConfiguration.CREATOR.createFromParcel(parcel);
boolean z = parcel.readInt() != 0;
boolean z2 = parcel.readInt() != 0;
ArrayList<String> createStringArrayList = parcel.createStringArrayList();
qi.a aVar = (qi.a) parcel.readParcelable(PaymentMethodMetadata.class.getClassLoader());
String readString = parcel.readString();
PaymentSheet.BillingDetails createFromParcel2 = parcel.readInt() == 0 ? null : PaymentSheet.BillingDetails.CREATOR.createFromParcel(parcel);
AddressDetails createFromParcel3 = parcel.readInt() != 0 ? AddressDetails.CREATOR.createFromParcel(parcel) : null;
int readInt = parcel.readInt();
ArrayList arrayList = new ArrayList(readInt);
for (int i = 0; i != readInt; i++) {
arrayList.add(parcel.readParcelable(PaymentMethodMetadata.class.getClassLoader()));
}
int readInt2 = parcel.readInt();
ArrayList arrayList2 = new ArrayList(readInt2);
for (int i2 = 0; i2 != readInt2; i2++) {
arrayList2.add(parcel.readParcelable(PaymentMethodMetadata.class.getClassLoader()));
}
return new PaymentMethodMetadata(stripeIntent, createFromParcel, z, z2, createStringArrayList, aVar, readString, createFromParcel2, createFromParcel3, arrayList, arrayList2, parcel.readInt() != 0, parcel.readInt() != 0);
}
@Override
public final PaymentMethodMetadata[] newArray(int i) {
return new PaymentMethodMetadata[i];
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\u0010\u0007\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u00002\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00018\u00008\u00002\u000e\u0010\u0003\u001a\n \u0001*\u0004\u0018\u00018\u00008\u0000H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"T", "kotlin.jvm.PlatformType", "a", "b", "", "compare", "(Ljava/lang/Object;Ljava/lang/Object;)I", "<anonymous>"}, k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0})
public static final class b<T> implements Comparator {
final Map c;
public b(Map map) {
this.c = map;
}
@Override
public final int compare(T t, T t2) {
int e;
e = ij.d.e((Integer) this.c.get((String) t), (Integer) this.c.get((String) t2));
return e;
}
}
public PaymentMethodMetadata(StripeIntent stripeIntent, PaymentSheet.BillingDetailsCollectionConfiguration billingDetailsCollectionConfiguration, boolean z, boolean z2, List<String> paymentMethodOrder, qi.a cbcEligibility, String merchantName, PaymentSheet.BillingDetails billingDetails, AddressDetails addressDetails, List<SharedDataSpec> sharedDataSpecs, List<ExternalPaymentMethodSpec> externalPaymentMethodSpecs, boolean z3, boolean z4) {
r.i(stripeIntent, "stripeIntent");
r.i(billingDetailsCollectionConfiguration, "billingDetailsCollectionConfiguration");
r.i(paymentMethodOrder, "paymentMethodOrder");
r.i(cbcEligibility, "cbcEligibility");
r.i(merchantName, "merchantName");
r.i(sharedDataSpecs, "sharedDataSpecs");
r.i(externalPaymentMethodSpecs, "externalPaymentMethodSpecs");
this.stripeIntent = stripeIntent;
this.billingDetailsCollectionConfiguration = billingDetailsCollectionConfiguration;
this.allowsDelayedPaymentMethods = z;
this.allowsPaymentMethodsRequiringShippingAddress = z2;
this.paymentMethodOrder = paymentMethodOrder;
this.cbcEligibility = cbcEligibility;
this.merchantName = merchantName;
this.defaultBillingDetails = billingDetails;
this.shippingDetails = addressDetails;
this.sharedDataSpecs = sharedDataSpecs;
this.externalPaymentMethodSpecs = externalPaymentMethodSpecs;
this.hasCustomerConfiguration = z3;
this.financialConnectionsAvailable = z4;
}
private final d.InterfaceC0301d D(String code) {
Object obj;
Iterator<T> it = this.externalPaymentMethodSpecs.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (r.d(((ExternalPaymentMethodSpec) obj).getType(), code)) {
break;
}
}
ExternalPaymentMethodSpec externalPaymentMethodSpec = (ExternalPaymentMethodSpec) obj;
if (externalPaymentMethodSpec == null) {
return null;
}
return new b0(externalPaymentMethodSpec);
}
private final Map<String, Integer> J(List<String> list) {
Map<String, Integer> x;
ArrayList arrayList = new ArrayList(p.y(list, 10));
int i = 0;
for (Object obj : list) {
int i2 = i + 1;
if (i < 0) {
o.x();
}
arrayList.add(i.a((String) obj, Integer.valueOf(i)));
i = i2;
}
x = g0.x(arrayList);
return x;
}
private final List<String> K() {
List o1 = CollectionsKt___CollectionsKt.o1(CollectionsKt___CollectionsKt.R0(this.stripeIntent.d(), c()));
ArrayList arrayList = new ArrayList();
for (String str : this.paymentMethodOrder) {
if (o1.contains(str)) {
arrayList.add(str);
o1.remove(str);
}
}
arrayList.addAll(o1);
return arrayList;
}
private final List<yh.a> Q() {
List<String> d = this.stripeIntent.d();
ArrayList arrayList = new ArrayList();
Iterator<T> it = d.iterator();
while (it.hasNext()) {
yh.a aVar = PaymentMethodRegistry.a.b().get((String) it.next());
if (aVar != null) {
arrayList.add(aVar);
}
}
ArrayList arrayList2 = new ArrayList();
for (Object obj : arrayList) {
if (yh.b.a((yh.a) obj, this)) {
arrayList2.add(obj);
}
}
ArrayList arrayList3 = new ArrayList();
for (Object obj2 : arrayList2) {
yh.a aVar2 = (yh.a) obj2;
if (!this.stripeIntent.getIsLiveMode() || !this.stripeIntent.X().contains(aVar2.getType().code)) {
arrayList3.add(obj2);
}
}
ArrayList arrayList4 = new ArrayList();
for (Object obj3 : arrayList3) {
yh.a aVar3 = (yh.a) obj3;
if (aVar3.c().f(aVar3, this.sharedDataSpecs)) {
arrayList4.add(obj3);
}
}
return arrayList4;
}
private final List<String> c() {
List<ExternalPaymentMethodSpec> list = this.externalPaymentMethodSpecs;
ArrayList arrayList = new ArrayList(p.y(list, 10));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
arrayList.add(((ExternalPaymentMethodSpec) it.next()).getType());
}
return arrayList;
}
public final AddressDetails getShippingDetails() {
return this.shippingDetails;
}
public final StripeIntent getStripeIntent() {
return this.stripeIntent;
}
public final boolean E() {
StripeIntent stripeIntent = this.stripeIntent;
if (stripeIntent instanceof PaymentIntent) {
return ((PaymentIntent) stripeIntent).getSetupFutureUsage() != null;
}
if (stripeIntent instanceof SetupIntent) {
return true;
}
throw new NoWhenBranchMatchedException();
}
public final boolean F(String code) {
r.i(code, "code");
return c().contains(code);
}
public final boolean M(String paymentMethodCode) {
r.i(paymentMethodCode, "paymentMethodCode");
yh.a aVar = PaymentMethodRegistry.a.b().get(paymentMethodCode);
if (aVar != null) {
return aVar.b(this);
}
return false;
}
public final List<SupportedPaymentMethod> O() {
List<String> W = W();
ArrayList arrayList = new ArrayList();
Iterator<T> it = W.iterator();
while (it.hasNext()) {
SupportedPaymentMethod T = T((String) it.next());
if (T != null) {
arrayList.add(T);
}
}
return arrayList;
}
public final SupportedPaymentMethod T(String code) {
Object obj;
r.i(code, "code");
if (F(code)) {
d.InterfaceC0301d D = D(code);
if (D != null) {
return D.e();
}
return null;
}
Iterator<T> it = Q().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (r.d(((yh.a) obj).getType().code, code)) {
break;
}
}
yh.a aVar = (yh.a) obj;
if (aVar == null) {
return null;
}
return aVar.c().d(aVar, this.sharedDataSpecs);
}
public final List<String> W() {
List<yh.a> Q = Q();
ArrayList arrayList = new ArrayList(p.y(Q, 10));
Iterator<T> it = Q.iterator();
while (it.hasNext()) {
arrayList.add(((yh.a) it.next()).getType().code);
}
List<String> R0 = CollectionsKt___CollectionsKt.R0(arrayList, c());
return this.paymentMethodOrder.isEmpty() ? R0 : CollectionsKt___CollectionsKt.b1(R0, new b(J(K())));
}
public final List<PaymentMethod.Type> Y() {
List<yh.a> Q = Q();
ArrayList arrayList = new ArrayList();
for (Object obj : Q) {
if (((yh.a) obj).d()) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = new ArrayList(p.y(arrayList, 10));
Iterator it = arrayList.iterator();
while (it.hasNext()) {
arrayList2.add(((yh.a) it.next()).getType());
}
return arrayList2;
}
public final Amount b() {
if (!(this.stripeIntent instanceof PaymentIntent)) {
return null;
}
Long amount = ((PaymentIntent) this.stripeIntent).getAmount();
if (amount == null) {
throw new IllegalArgumentException("Required value was null.".toString());
}
long longValue = amount.longValue();
String currency = ((PaymentIntent) this.stripeIntent).getCurrency();
if (currency != null) {
return new Amount(longValue, currency);
}
throw new IllegalArgumentException("Required value was null.".toString());
}
@Override
public int describeContents() {
return 0;
}
public final List<com.stripe.android.uicore.elements.o> e(String code, d.a.InterfaceC0299a uiDefinitionFactoryArgumentsFactory) {
Object obj;
r.i(code, "code");
r.i(uiDefinitionFactoryArgumentsFactory, "uiDefinitionFactoryArgumentsFactory");
if (F(code)) {
d.InterfaceC0301d D = D(code);
if (D != null) {
return D.b(this, uiDefinitionFactoryArgumentsFactory.a(this, false));
}
return null;
}
Iterator<T> it = Q().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (r.d(((yh.a) obj).getType().code, code)) {
break;
}
}
yh.a aVar = (yh.a) obj;
if (aVar == null) {
return null;
}
return aVar.c().a(aVar, this, this.sharedDataSpecs, uiDefinitionFactoryArgumentsFactory.a(this, aVar.b(this)));
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof PaymentMethodMetadata)) {
return false;
}
PaymentMethodMetadata paymentMethodMetadata = (PaymentMethodMetadata) other;
return r.d(this.stripeIntent, paymentMethodMetadata.stripeIntent) && r.d(this.billingDetailsCollectionConfiguration, paymentMethodMetadata.billingDetailsCollectionConfiguration) && this.allowsDelayedPaymentMethods == paymentMethodMetadata.allowsDelayedPaymentMethods && this.allowsPaymentMethodsRequiringShippingAddress == paymentMethodMetadata.allowsPaymentMethodsRequiringShippingAddress && r.d(this.paymentMethodOrder, paymentMethodMetadata.paymentMethodOrder) && r.d(this.cbcEligibility, paymentMethodMetadata.cbcEligibility) && r.d(this.merchantName, paymentMethodMetadata.merchantName) && r.d(this.defaultBillingDetails, paymentMethodMetadata.defaultBillingDetails) && r.d(this.shippingDetails, paymentMethodMetadata.shippingDetails) && r.d(this.sharedDataSpecs, paymentMethodMetadata.sharedDataSpecs) && r.d(this.externalPaymentMethodSpecs, paymentMethodMetadata.externalPaymentMethodSpecs) && this.hasCustomerConfiguration == paymentMethodMetadata.hasCustomerConfiguration && this.financialConnectionsAvailable == paymentMethodMetadata.financialConnectionsAvailable;
}
public final boolean getAllowsDelayedPaymentMethods() {
return this.allowsDelayedPaymentMethods;
}
public int hashCode() {
int hashCode = ((((((((((((this.stripeIntent.hashCode() * 31) + this.billingDetailsCollectionConfiguration.hashCode()) * 31) + androidx.compose.animation.a.a(this.allowsDelayedPaymentMethods)) * 31) + androidx.compose.animation.a.a(this.allowsPaymentMethodsRequiringShippingAddress)) * 31) + this.paymentMethodOrder.hashCode()) * 31) + this.cbcEligibility.hashCode()) * 31) + this.merchantName.hashCode()) * 31;
PaymentSheet.BillingDetails billingDetails = this.defaultBillingDetails;
int hashCode2 = (hashCode + (billingDetails == null ? 0 : billingDetails.hashCode())) * 31;
AddressDetails addressDetails = this.shippingDetails;
return ((((((((hashCode2 + (addressDetails != null ? addressDetails.hashCode() : 0)) * 31) + this.sharedDataSpecs.hashCode()) * 31) + this.externalPaymentMethodSpecs.hashCode()) * 31) + androidx.compose.animation.a.a(this.hasCustomerConfiguration)) * 31) + androidx.compose.animation.a.a(this.financialConnectionsAvailable);
}
public final boolean getAllowsPaymentMethodsRequiringShippingAddress() {
return this.allowsPaymentMethodsRequiringShippingAddress;
}
public final PaymentSheet.BillingDetailsCollectionConfiguration getBillingDetailsCollectionConfiguration() {
return this.billingDetailsCollectionConfiguration;
}
public final qi.a getCbcEligibility() {
return this.cbcEligibility;
}
public final PaymentSheet.BillingDetails getDefaultBillingDetails() {
return this.defaultBillingDetails;
}
public final boolean getFinancialConnectionsAvailable() {
return this.financialConnectionsAvailable;
}
public String toString() {
return "PaymentMethodMetadata(stripeIntent=" + this.stripeIntent + ", billingDetailsCollectionConfiguration=" + this.billingDetailsCollectionConfiguration + ", allowsDelayedPaymentMethods=" + this.allowsDelayedPaymentMethods + ", allowsPaymentMethodsRequiringShippingAddress=" + this.allowsPaymentMethodsRequiringShippingAddress + ", paymentMethodOrder=" + this.paymentMethodOrder + ", cbcEligibility=" + this.cbcEligibility + ", merchantName=" + this.merchantName + ", defaultBillingDetails=" + this.defaultBillingDetails + ", shippingDetails=" + this.shippingDetails + ", sharedDataSpecs=" + this.sharedDataSpecs + ", externalPaymentMethodSpecs=" + this.externalPaymentMethodSpecs + ", hasCustomerConfiguration=" + this.hasCustomerConfiguration + ", financialConnectionsAvailable=" + this.financialConnectionsAvailable + ")";
}
public final boolean getHasCustomerConfiguration() {
return this.hasCustomerConfiguration;
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
r.i(parcel, "out");
parcel.writeParcelable(this.stripeIntent, flags);
this.billingDetailsCollectionConfiguration.writeToParcel(parcel, flags);
parcel.writeInt(this.allowsDelayedPaymentMethods ? 1 : 0);
parcel.writeInt(this.allowsPaymentMethodsRequiringShippingAddress ? 1 : 0);
parcel.writeStringList(this.paymentMethodOrder);
parcel.writeParcelable(this.cbcEligibility, flags);
parcel.writeString(this.merchantName);
PaymentSheet.BillingDetails billingDetails = this.defaultBillingDetails;
if (billingDetails == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
billingDetails.writeToParcel(parcel, flags);
}
AddressDetails addressDetails = this.shippingDetails;
if (addressDetails == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
addressDetails.writeToParcel(parcel, flags);
}
List<SharedDataSpec> list = this.sharedDataSpecs;
parcel.writeInt(list.size());
Iterator<SharedDataSpec> it = list.iterator();
while (it.hasNext()) {
parcel.writeParcelable(it.next(), flags);
}
List<ExternalPaymentMethodSpec> list2 = this.externalPaymentMethodSpecs;
parcel.writeInt(list2.size());
Iterator<ExternalPaymentMethodSpec> it2 = list2.iterator();
while (it2.hasNext()) {
parcel.writeParcelable(it2.next(), flags);
}
parcel.writeInt(this.hasCustomerConfiguration ? 1 : 0);
parcel.writeInt(this.financialConnectionsAvailable ? 1 : 0);
}
public final String getMerchantName() {
return this.merchantName;
}
public PaymentMethodMetadata(StripeIntent stripeIntent, PaymentSheet.BillingDetailsCollectionConfiguration billingDetailsCollectionConfiguration, boolean z, boolean z2, List list, qi.a aVar, String str, PaymentSheet.BillingDetails billingDetails, AddressDetails addressDetails, List list2, List list3, boolean z3, boolean z4, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(stripeIntent, billingDetailsCollectionConfiguration, z, z2, list, aVar, str, billingDetails, addressDetails, list2, list3, z3, (i & 4096) != 0 ? com.stripe.android.payments.financialconnections.a.a.invoke() : z4);
}
}