正在查看: Biko v2.0.23 应用的 DeferredIntentParams.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Biko v2.0.23 应用的 DeferredIntentParams.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.core.model.StripeModel;
import com.stripe.android.model.PaymentIntent;
import com.stripe.android.model.PaymentMethodOptionsParams;
import com.stripe.android.model.StripeIntent;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\r\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0087\b\u0018\u00002\u00020\u0001:\u0001\"B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\bJ\t\u0010\u000f\u001a\u00020\u0003HÆ\u0003J\u000f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005HÆ\u0003J\u000b\u0010\u0011\u001a\u0004\u0018\u00010\u0006HÆ\u0003J/\u0010\u0012\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u00052\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÆ\u0001J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\u0013\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0018HÖ\u0003J\t\u0010\u0019\u001a\u00020\u0014HÖ\u0001J\u0014\u0010\u001a\u001a\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0006\u0012\u0004\u0018\u00010\u00180\u001bJ\t\u0010\u001c\u001a\u00020\u0006HÖ\u0001J\u0019\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020\u0014HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0013\u0010\u0007\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0017\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006#"}, d2 = {"Lcom/stripe/android/model/DeferredIntentParams;", "Lcom/stripe/android/core/model/StripeModel;", "mode", "Lcom/stripe/android/model/DeferredIntentParams$Mode;", "paymentMethodTypes", "", "", "onBehalfOf", "(Lcom/stripe/android/model/DeferredIntentParams$Mode;Ljava/util/List;Ljava/lang/String;)V", "getMode", "()Lcom/stripe/android/model/DeferredIntentParams$Mode;", "getOnBehalfOf", "()Ljava/lang/String;", "getPaymentMethodTypes", "()Ljava/util/List;", "component1", "component2", "component3", "copy", "describeContents", "", "equals", "", "other", "", "hashCode", "toQueryParams", "", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "Mode", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class DeferredIntentParams implements StripeModel {
public static final int $stable = 8;
public static final Parcelable.Creator<DeferredIntentParams> CREATOR = new Creator();
private final Mode mode;
private final String onBehalfOf;
private final List<String> paymentMethodTypes;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<DeferredIntentParams> {
@Override
public final DeferredIntentParams createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new DeferredIntentParams((Mode) parcel.readParcelable(DeferredIntentParams.class.getClassLoader()), parcel.createStringArrayList(), parcel.readString());
}
@Override
public final DeferredIntentParams[] newArray(int i2) {
return new DeferredIntentParams[i2];
}
}
public static DeferredIntentParams copy$default(DeferredIntentParams deferredIntentParams, Mode mode, List list, String str, int i2, Object obj) {
if ((i2 & 1) != 0) {
mode = deferredIntentParams.mode;
}
if ((i2 & 2) != 0) {
list = deferredIntentParams.paymentMethodTypes;
}
if ((i2 & 4) != 0) {
str = deferredIntentParams.onBehalfOf;
}
return deferredIntentParams.copy(mode, list, str);
}
public final Mode getMode() {
return this.mode;
}
public final List<String> component2() {
return this.paymentMethodTypes;
}
public final String getOnBehalfOf() {
return this.onBehalfOf;
}
public final DeferredIntentParams copy(Mode mode, List<String> paymentMethodTypes, String onBehalfOf) {
Intrinsics.checkNotNullParameter(mode, "mode");
Intrinsics.checkNotNullParameter(paymentMethodTypes, "paymentMethodTypes");
return new DeferredIntentParams(mode, paymentMethodTypes, onBehalfOf);
}
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof DeferredIntentParams)) {
return false;
}
DeferredIntentParams deferredIntentParams = (DeferredIntentParams) other;
return Intrinsics.areEqual(this.mode, deferredIntentParams.mode) && Intrinsics.areEqual(this.paymentMethodTypes, deferredIntentParams.paymentMethodTypes) && Intrinsics.areEqual(this.onBehalfOf, deferredIntentParams.onBehalfOf);
}
public int hashCode() {
int hashCode = ((this.mode.hashCode() * 31) + this.paymentMethodTypes.hashCode()) * 31;
String str = this.onBehalfOf;
return hashCode + (str == null ? 0 : str.hashCode());
}
public String toString() {
return "DeferredIntentParams(mode=" + this.mode + ", paymentMethodTypes=" + this.paymentMethodTypes + ", onBehalfOf=" + this.onBehalfOf + ")";
}
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeParcelable(this.mode, flags);
parcel.writeStringList(this.paymentMethodTypes);
parcel.writeString(this.onBehalfOf);
}
public DeferredIntentParams(Mode mode, List<String> list, String str) {
Intrinsics.checkNotNullParameter(mode, "mode");
Intrinsics.checkNotNullParameter(list, "paymentMethodTypes");
this.mode = mode;
this.paymentMethodTypes = list;
this.onBehalfOf = str;
}
public final Mode getMode() {
return this.mode;
}
public final List<String> getPaymentMethodTypes() {
return this.paymentMethodTypes;
}
public final String getOnBehalfOf() {
return this.onBehalfOf;
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bw\u0018\u00002\u00020\u0001:\u0002\f\rR\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005R\u0014\u0010\u0006\u001a\u0004\u0018\u00010\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0005R\u0014\u0010\b\u001a\u0004\u0018\u00010\tX¦\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b\u0082\u0001\u0002\u000e\u000f¨\u0006\u0010"}, d2 = {"Lcom/stripe/android/model/DeferredIntentParams$Mode;", "Landroid/os/Parcelable;", PaymentMethodOptionsParams.Blik.PARAM_CODE, "", "getCode", "()Ljava/lang/String;", "currency", "getCurrency", "setupFutureUsage", "Lcom/stripe/android/model/StripeIntent$Usage;", "getSetupFutureUsage", "()Lcom/stripe/android/model/StripeIntent$Usage;", "Payment", "Setup", "Lcom/stripe/android/model/DeferredIntentParams$Mode$Payment;", "Lcom/stripe/android/model/DeferredIntentParams$Mode$Setup;", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public interface Mode extends Parcelable {
String getCode();
String getCurrency();
StripeIntent.Usage getSetupFutureUsage();
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B'\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\t\u0010\u0015\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0016\u001a\u00020\u0005HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\u0007HÆ\u0003J\t\u0010\u0018\u001a\u00020\tHÆ\u0003J3\u0010\u0019\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00072\b\b\u0002\u0010\b\u001a\u00020\tHÆ\u0001J\t\u0010\u001a\u001a\u00020\u001bHÖ\u0001J\u0013\u0010\u001c\u001a\u00020\u001d2\b\u0010\u001e\u001a\u0004\u0018\u00010\u001fHÖ\u0003J\t\u0010 \u001a\u00020\u001bHÖ\u0001J\t\u0010!\u001a\u00020\u0005HÖ\u0001J\u0019\u0010\"\u001a\u00020#2\u0006\u0010$\u001a\u00020%2\u0006\u0010&\u001a\u00020\u001bHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u000f\u001a\u00020\u00058VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011R\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0011R\u0016\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014¨\u0006'"}, d2 = {"Lcom/stripe/android/model/DeferredIntentParams$Mode$Payment;", "Lcom/stripe/android/model/DeferredIntentParams$Mode;", CreateFinancialConnectionsSessionForDeferredPaymentParams.PARAM_AMOUNT, "", "currency", "", "setupFutureUsage", "Lcom/stripe/android/model/StripeIntent$Usage;", "captureMethod", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "(JLjava/lang/String;Lcom/stripe/android/model/StripeIntent$Usage;Lcom/stripe/android/model/PaymentIntent$CaptureMethod;)V", "getAmount", "()J", "getCaptureMethod", "()Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", PaymentMethodOptionsParams.Blik.PARAM_CODE, "getCode", "()Ljava/lang/String;", "getCurrency", "getSetupFutureUsage", "()Lcom/stripe/android/model/StripeIntent$Usage;", "component1", "component2", "component3", "component4", "copy", "describeContents", "", "equals", "", "other", "", "hashCode", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Payment implements Mode {
public static final int $stable = 0;
public static final Parcelable.Creator<Payment> CREATOR = new Creator();
private final long amount;
private final PaymentIntent.CaptureMethod captureMethod;
private final String currency;
private final StripeIntent.Usage setupFutureUsage;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<Payment> {
@Override
public final Payment createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new Payment(parcel.readLong(), parcel.readString(), parcel.readInt() == 0 ? null : StripeIntent.Usage.valueOf(parcel.readString()), PaymentIntent.CaptureMethod.valueOf(parcel.readString()));
}
@Override
public final Payment[] newArray(int i2) {
return new Payment[i2];
}
}
public static Payment copy$default(Payment payment, long j2, String str, StripeIntent.Usage usage, PaymentIntent.CaptureMethod captureMethod, int i2, Object obj) {
if ((i2 & 1) != 0) {
j2 = payment.amount;
}
long j3 = j2;
if ((i2 & 2) != 0) {
str = payment.currency;
}
String str2 = str;
if ((i2 & 4) != 0) {
usage = payment.setupFutureUsage;
}
StripeIntent.Usage usage2 = usage;
if ((i2 & 8) != 0) {
captureMethod = payment.captureMethod;
}
return payment.copy(j3, str2, usage2, captureMethod);
}
public final long getAmount() {
return this.amount;
}
public final String getCurrency() {
return this.currency;
}
public final StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public final PaymentIntent.CaptureMethod getCaptureMethod() {
return this.captureMethod;
}
public final Payment copy(long amount, String currency, StripeIntent.Usage setupFutureUsage, PaymentIntent.CaptureMethod captureMethod) {
Intrinsics.checkNotNullParameter(currency, "currency");
Intrinsics.checkNotNullParameter(captureMethod, "captureMethod");
return new Payment(amount, currency, setupFutureUsage, captureMethod);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Payment)) {
return false;
}
Payment payment = (Payment) other;
return this.amount == payment.amount && Intrinsics.areEqual(this.currency, payment.currency) && this.setupFutureUsage == payment.setupFutureUsage && this.captureMethod == payment.captureMethod;
}
@Override
public String getCode() {
return "payment";
}
public int hashCode() {
int hashCode = ((Long.hashCode(this.amount) * 31) + this.currency.hashCode()) * 31;
StripeIntent.Usage usage = this.setupFutureUsage;
return ((hashCode + (usage == null ? 0 : usage.hashCode())) * 31) + this.captureMethod.hashCode();
}
public String toString() {
return "Payment(amount=" + this.amount + ", currency=" + this.currency + ", setupFutureUsage=" + this.setupFutureUsage + ", captureMethod=" + this.captureMethod + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeLong(this.amount);
parcel.writeString(this.currency);
StripeIntent.Usage usage = this.setupFutureUsage;
if (usage == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(usage.name());
}
parcel.writeString(this.captureMethod.name());
}
public Payment(long j2, String str, StripeIntent.Usage usage, PaymentIntent.CaptureMethod captureMethod) {
Intrinsics.checkNotNullParameter(str, "currency");
Intrinsics.checkNotNullParameter(captureMethod, "captureMethod");
this.amount = j2;
this.currency = str;
this.setupFutureUsage = usage;
this.captureMethod = captureMethod;
}
public final long getAmount() {
return this.amount;
}
@Override
public String getCurrency() {
return this.currency;
}
@Override
public StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public final PaymentIntent.CaptureMethod getCaptureMethod() {
return this.captureMethod;
}
}
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001B\u0017\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u000b\u0010\r\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010\u000e\u001a\u00020\u0005HÆ\u0003J\u001f\u0010\u000f\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\t\u0010\u0010\u001a\u00020\u0011HÖ\u0001J\u0013\u0010\u0012\u001a\u00020\u00132\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015HÖ\u0003J\t\u0010\u0016\u001a\u00020\u0011HÖ\u0001J\t\u0010\u0017\u001a\u00020\u0003HÖ\u0001J\u0019\u0010\u0018\u001a\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u0011HÖ\u0001R\u0014\u0010\u0007\u001a\u00020\u00038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0016\u0010\u0002\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\tR\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f¨\u0006\u001d"}, d2 = {"Lcom/stripe/android/model/DeferredIntentParams$Mode$Setup;", "Lcom/stripe/android/model/DeferredIntentParams$Mode;", "currency", "", "setupFutureUsage", "Lcom/stripe/android/model/StripeIntent$Usage;", "(Ljava/lang/String;Lcom/stripe/android/model/StripeIntent$Usage;)V", PaymentMethodOptionsParams.Blik.PARAM_CODE, "getCode", "()Ljava/lang/String;", "getCurrency", "getSetupFutureUsage", "()Lcom/stripe/android/model/StripeIntent$Usage;", "component1", "component2", "copy", "describeContents", "", "equals", "", "other", "", "hashCode", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Setup implements Mode {
public static final int $stable = 0;
public static final Parcelable.Creator<Setup> CREATOR = new Creator();
private final String currency;
private final StripeIntent.Usage setupFutureUsage;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<Setup> {
@Override
public final Setup createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new Setup(parcel.readString(), StripeIntent.Usage.valueOf(parcel.readString()));
}
@Override
public final Setup[] newArray(int i2) {
return new Setup[i2];
}
}
public static Setup copy$default(Setup setup, String str, StripeIntent.Usage usage, int i2, Object obj) {
if ((i2 & 1) != 0) {
str = setup.currency;
}
if ((i2 & 2) != 0) {
usage = setup.setupFutureUsage;
}
return setup.copy(str, usage);
}
public final String getCurrency() {
return this.currency;
}
public final StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
public final Setup copy(String currency, StripeIntent.Usage setupFutureUsage) {
Intrinsics.checkNotNullParameter(setupFutureUsage, "setupFutureUsage");
return new Setup(currency, setupFutureUsage);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Setup)) {
return false;
}
Setup setup = (Setup) other;
return Intrinsics.areEqual(this.currency, setup.currency) && this.setupFutureUsage == setup.setupFutureUsage;
}
@Override
public String getCode() {
return "setup";
}
public int hashCode() {
String str = this.currency;
return ((str == null ? 0 : str.hashCode()) * 31) + this.setupFutureUsage.hashCode();
}
public String toString() {
return "Setup(currency=" + this.currency + ", setupFutureUsage=" + this.setupFutureUsage + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.currency);
parcel.writeString(this.setupFutureUsage.name());
}
public Setup(String str, StripeIntent.Usage usage) {
Intrinsics.checkNotNullParameter(usage, "setupFutureUsage");
this.currency = str;
this.setupFutureUsage = usage;
}
@Override
public String getCurrency() {
return this.currency;
}
@Override
public StripeIntent.Usage getSetupFutureUsage() {
return this.setupFutureUsage;
}
}
}
public final Map<String, Object> toQueryParams() {
PaymentIntent.CaptureMethod captureMethod;
Pair[] pairArr = new Pair[6];
int i2 = 0;
pairArr[0] = TuplesKt.to("deferred_intent[mode]", this.mode.getCode());
Mode mode = this.mode;
String str = null;
Mode.Payment payment = mode instanceof Mode.Payment ? (Mode.Payment) mode : null;
pairArr[1] = TuplesKt.to("deferred_intent[amount]", payment != null ? Long.valueOf(payment.getAmount()) : null);
pairArr[2] = TuplesKt.to("deferred_intent[currency]", this.mode.getCurrency());
StripeIntent.Usage setupFutureUsage = this.mode.getSetupFutureUsage();
pairArr[3] = TuplesKt.to("deferred_intent[setup_future_usage]", setupFutureUsage != null ? setupFutureUsage.getCode() : null);
Mode mode2 = this.mode;
Mode.Payment payment2 = mode2 instanceof Mode.Payment ? (Mode.Payment) mode2 : null;
if (payment2 != null && (captureMethod = payment2.getCaptureMethod()) != null) {
str = captureMethod.getCode();
}
pairArr[4] = TuplesKt.to("deferred_intent[capture_method]", str);
pairArr[5] = TuplesKt.to("deferred_intent[on_behalf_of]", this.onBehalfOf);
Map mapOf = MapsKt.mapOf(pairArr);
List<String> list = this.paymentMethodTypes;
ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(list, 10));
for (Object obj : list) {
int i3 = i2 + 1;
if (i2 < 0) {
CollectionsKt.throwIndexOverflow();
}
arrayList.add(TuplesKt.to("deferred_intent[payment_method_types][" + i2 + "]", (String) obj));
i2 = i3;
}
return MapsKt.plus(mapOf, arrayList);
}
}