正在查看: Biko v2.0.23 应用的 ConfirmSetupIntentParams.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Biko v2.0.23 应用的 ConfirmSetupIntentParams.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.model.MandateDataParams;
import com.stripe.android.model.PaymentMethod;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010$\n\u0002\u0010\u0000\n\u0002\b\u0017\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0087\b\u0018\u0000 ;2\u00020\u0001:\u0001;BU\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0003\u0012\b\b\u0002\u0010\b\u001a\u00020\t\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\f¢\u0006\u0002\u0010\rJ\t\u0010#\u001a\u00020\u0003HÆ\u0003J\u0010\u0010$\u001a\u0004\u0018\u00010\u0003HÀ\u0003¢\u0006\u0002\b%J\u0010\u0010&\u001a\u0004\u0018\u00010\u0006HÀ\u0003¢\u0006\u0002\b'J\u000b\u0010(\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010)\u001a\u00020\tHÂ\u0003J\u000b\u0010*\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010+\u001a\u0004\u0018\u00010\fHÆ\u0003JY\u0010,\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\b\u001a\u00020\t2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\fHÆ\u0001J\t\u0010-\u001a\u00020.HÖ\u0001J\u0013\u0010/\u001a\u00020\t2\b\u00100\u001a\u0004\u0018\u00010\u0016HÖ\u0003J\t\u00101\u001a\u00020.HÖ\u0001J\b\u00102\u001a\u00020\tH\u0016J\u0014\u00103\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00160\u0015H\u0016J\t\u00104\u001a\u00020\u0003HÖ\u0001J\u0010\u00105\u001a\u00020\u00002\u0006\u00102\u001a\u00020\tH\u0016J\u0019\u00106\u001a\u0002072\u0006\u00108\u001a\u0002092\u0006\u0010:\u001a\u00020.HÖ\u0001R\u0014\u0010\u0002\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u001c\u0010\u000b\u001a\u0004\u0018\u00010\fX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R\"\u0010\u0014\u001a\u0010\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u0016\u0018\u00010\u00158BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u001c\u0010\n\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u000f\"\u0004\b\u001a\u0010\u001bR\u0016\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u001dR\u0016\u0010\u0004\u001a\u0004\u0018\u00010\u0003X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u000fR \u0010\u001f\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00160\u00158BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b \u0010\u0018R\u001c\u0010\u0007\u001a\u0004\u0018\u00010\u0003X\u0096\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b!\u0010\u000f\"\u0004\b\"\u0010\u001bR\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006<"}, d2 = {"Lcom/stripe/android/model/ConfirmSetupIntentParams;", "Lcom/stripe/android/model/ConfirmStripeIntentParams;", "clientSecret", "", "paymentMethodId", "paymentMethodCreateParams", "Lcom/stripe/android/model/PaymentMethodCreateParams;", "returnUrl", "useStripeSdk", "", "mandateId", "mandateData", "Lcom/stripe/android/model/MandateDataParams;", "(Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/PaymentMethodCreateParams;Ljava/lang/String;ZLjava/lang/String;Lcom/stripe/android/model/MandateDataParams;)V", "getClientSecret", "()Ljava/lang/String;", "getMandateData", "()Lcom/stripe/android/model/MandateDataParams;", "setMandateData", "(Lcom/stripe/android/model/MandateDataParams;)V", "mandateDataParams", "", "", "getMandateDataParams", "()Ljava/util/Map;", "getMandateId", "setMandateId", "(Ljava/lang/String;)V", "getPaymentMethodCreateParams$payments_core_release", "()Lcom/stripe/android/model/PaymentMethodCreateParams;", "getPaymentMethodId$payments_core_release", "paymentMethodParamMap", "getPaymentMethodParamMap", "getReturnUrl", "setReturnUrl", "component1", "component2", "component2$payments_core_release", "component3", "component3$payments_core_release", "component4", "component5", "component6", "component7", "copy", "describeContents", "", "equals", "other", "hashCode", "shouldUseStripeSdk", "toParamMap", "toString", "withShouldUseStripeSdk", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class ConfirmSetupIntentParams implements ConfirmStripeIntentParams {
private final String clientSecret;
private MandateDataParams mandateData;
private String mandateId;
private final PaymentMethodCreateParams paymentMethodCreateParams;
private final String paymentMethodId;
private String returnUrl;
private final boolean useStripeSdk;
public static final Companion INSTANCE = new Companion(null);
public static final int $stable = 8;
public static final Parcelable.Creator<ConfirmSetupIntentParams> CREATOR = new Creator();
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class Creator implements Parcelable.Creator<ConfirmSetupIntentParams> {
@Override
public final ConfirmSetupIntentParams createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new ConfirmSetupIntentParams(parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : PaymentMethodCreateParams.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readInt() != 0, parcel.readString(), parcel.readInt() != 0 ? MandateDataParams.CREATOR.createFromParcel(parcel) : null);
}
@Override
public final ConfirmSetupIntentParams[] newArray(int i2) {
return new ConfirmSetupIntentParams[i2];
}
}
private final boolean getUseStripeSdk() {
return this.useStripeSdk;
}
public static ConfirmSetupIntentParams copy$default(ConfirmSetupIntentParams confirmSetupIntentParams, String str, String str2, PaymentMethodCreateParams paymentMethodCreateParams, String str3, boolean z, String str4, MandateDataParams mandateDataParams, int i2, Object obj) {
if ((i2 & 1) != 0) {
str = confirmSetupIntentParams.clientSecret;
}
if ((i2 & 2) != 0) {
str2 = confirmSetupIntentParams.paymentMethodId;
}
String str5 = str2;
if ((i2 & 4) != 0) {
paymentMethodCreateParams = confirmSetupIntentParams.paymentMethodCreateParams;
}
PaymentMethodCreateParams paymentMethodCreateParams2 = paymentMethodCreateParams;
if ((i2 & 8) != 0) {
str3 = confirmSetupIntentParams.returnUrl;
}
String str6 = str3;
if ((i2 & 16) != 0) {
z = confirmSetupIntentParams.useStripeSdk;
}
boolean z2 = z;
if ((i2 & 32) != 0) {
str4 = confirmSetupIntentParams.mandateId;
}
String str7 = str4;
if ((i2 & 64) != 0) {
mandateDataParams = confirmSetupIntentParams.mandateData;
}
return confirmSetupIntentParams.copy(str, str5, paymentMethodCreateParams2, str6, z2, str7, mandateDataParams);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(PaymentMethodCreateParams paymentMethodCreateParams, String str) {
return INSTANCE.create(paymentMethodCreateParams, str);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(PaymentMethodCreateParams paymentMethodCreateParams, String str, MandateDataParams mandateDataParams) {
return INSTANCE.create(paymentMethodCreateParams, str, mandateDataParams);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(PaymentMethodCreateParams paymentMethodCreateParams, String str, MandateDataParams mandateDataParams, String str2) {
return INSTANCE.create(paymentMethodCreateParams, str, mandateDataParams, str2);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(String str, PaymentMethod.Type type) {
return INSTANCE.create(str, type);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(String str, String str2) {
return INSTANCE.create(str, str2);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(String str, String str2, MandateDataParams mandateDataParams) {
return INSTANCE.create(str, str2, mandateDataParams);
}
@JvmStatic
public static final ConfirmSetupIntentParams create(String str, String str2, MandateDataParams mandateDataParams, String str3) {
return INSTANCE.create(str, str2, mandateDataParams, str3);
}
@JvmStatic
public static final ConfirmSetupIntentParams createWithoutPaymentMethod(String str) {
return INSTANCE.createWithoutPaymentMethod(str);
}
public final String getClientSecret() {
return this.clientSecret;
}
public final String getPaymentMethodId() {
return this.paymentMethodId;
}
public final PaymentMethodCreateParams getPaymentMethodCreateParams() {
return this.paymentMethodCreateParams;
}
public final String getReturnUrl() {
return this.returnUrl;
}
public final String getMandateId() {
return this.mandateId;
}
public final MandateDataParams getMandateData() {
return this.mandateData;
}
public final ConfirmSetupIntentParams copy(String clientSecret, String paymentMethodId, PaymentMethodCreateParams paymentMethodCreateParams, String returnUrl, boolean useStripeSdk, String mandateId, MandateDataParams mandateData) {
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
return new ConfirmSetupIntentParams(clientSecret, paymentMethodId, paymentMethodCreateParams, returnUrl, useStripeSdk, mandateId, mandateData);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ConfirmSetupIntentParams)) {
return false;
}
ConfirmSetupIntentParams confirmSetupIntentParams = (ConfirmSetupIntentParams) other;
return Intrinsics.areEqual(this.clientSecret, confirmSetupIntentParams.clientSecret) && Intrinsics.areEqual(this.paymentMethodId, confirmSetupIntentParams.paymentMethodId) && Intrinsics.areEqual(this.paymentMethodCreateParams, confirmSetupIntentParams.paymentMethodCreateParams) && Intrinsics.areEqual(this.returnUrl, confirmSetupIntentParams.returnUrl) && this.useStripeSdk == confirmSetupIntentParams.useStripeSdk && Intrinsics.areEqual(this.mandateId, confirmSetupIntentParams.mandateId) && Intrinsics.areEqual(this.mandateData, confirmSetupIntentParams.mandateData);
}
public int hashCode() {
int hashCode = this.clientSecret.hashCode() * 31;
String str = this.paymentMethodId;
int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
PaymentMethodCreateParams paymentMethodCreateParams = this.paymentMethodCreateParams;
int hashCode3 = (hashCode2 + (paymentMethodCreateParams == null ? 0 : paymentMethodCreateParams.hashCode())) * 31;
String str2 = this.returnUrl;
int hashCode4 = (hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31;
boolean z = this.useStripeSdk;
int i2 = z;
if (z != 0) {
i2 = 1;
}
int i3 = (hashCode4 + i2) * 31;
String str3 = this.mandateId;
int hashCode5 = (i3 + (str3 == null ? 0 : str3.hashCode())) * 31;
MandateDataParams mandateDataParams = this.mandateData;
return hashCode5 + (mandateDataParams != null ? mandateDataParams.hashCode() : 0);
}
public String toString() {
return "ConfirmSetupIntentParams(clientSecret=" + this.clientSecret + ", paymentMethodId=" + this.paymentMethodId + ", paymentMethodCreateParams=" + this.paymentMethodCreateParams + ", returnUrl=" + this.returnUrl + ", useStripeSdk=" + this.useStripeSdk + ", mandateId=" + this.mandateId + ", mandateData=" + this.mandateData + ")";
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.clientSecret);
parcel.writeString(this.paymentMethodId);
PaymentMethodCreateParams paymentMethodCreateParams = this.paymentMethodCreateParams;
if (paymentMethodCreateParams == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
paymentMethodCreateParams.writeToParcel(parcel, flags);
}
parcel.writeString(this.returnUrl);
parcel.writeInt(this.useStripeSdk ? 1 : 0);
parcel.writeString(this.mandateId);
MandateDataParams mandateDataParams = this.mandateData;
if (mandateDataParams == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
mandateDataParams.writeToParcel(parcel, flags);
}
}
public ConfirmSetupIntentParams(String str, String str2, PaymentMethodCreateParams paymentMethodCreateParams, String str3, boolean z, String str4, MandateDataParams mandateDataParams) {
Intrinsics.checkNotNullParameter(str, "clientSecret");
this.clientSecret = str;
this.paymentMethodId = str2;
this.paymentMethodCreateParams = paymentMethodCreateParams;
this.returnUrl = str3;
this.useStripeSdk = z;
this.mandateId = str4;
this.mandateData = mandateDataParams;
}
public ConfirmSetupIntentParams(String str, String str2, PaymentMethodCreateParams paymentMethodCreateParams, String str3, boolean z, String str4, MandateDataParams mandateDataParams, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(str, (i2 & 2) != 0 ? null : str2, (i2 & 4) != 0 ? null : paymentMethodCreateParams, (i2 & 8) != 0 ? null : str3, (i2 & 16) != 0 ? false : z, (i2 & 32) != 0 ? null : str4, (i2 & 64) == 0 ? mandateDataParams : null);
}
@Override
public String getClientSecret() {
return this.clientSecret;
}
public final String getPaymentMethodId$payments_core_release() {
return this.paymentMethodId;
}
public final PaymentMethodCreateParams getPaymentMethodCreateParams$payments_core_release() {
return this.paymentMethodCreateParams;
}
@Override
public String getReturnUrl() {
return this.returnUrl;
}
@Override
public void setReturnUrl(String str) {
this.returnUrl = str;
}
public final String getMandateId() {
return this.mandateId;
}
public final void setMandateId(String str) {
this.mandateId = str;
}
public final MandateDataParams getMandateData() {
return this.mandateData;
}
public final void setMandateData(MandateDataParams mandateDataParams) {
this.mandateData = mandateDataParams;
}
@Override
public boolean shouldUseStripeSdk() {
return this.useStripeSdk;
}
@Override
public ConfirmSetupIntentParams withShouldUseStripeSdk(boolean shouldUseStripeSdk) {
return copy$default(this, null, null, null, null, shouldUseStripeSdk, null, null, 111, null);
}
@Override
public Map<String, Object> toParamMap() {
Map mapOf = MapsKt.mapOf(new Pair[]{TuplesKt.to("client_secret", getClientSecret()), TuplesKt.to("use_stripe_sdk", Boolean.valueOf(this.useStripeSdk))});
String returnUrl = getReturnUrl();
Map mapOf2 = returnUrl != null ? MapsKt.mapOf(TuplesKt.to("return_url", returnUrl)) : null;
if (mapOf2 == null) {
mapOf2 = MapsKt.emptyMap();
}
Map plus = MapsKt.plus(mapOf, mapOf2);
String str = this.mandateId;
Map mapOf3 = str != null ? MapsKt.mapOf(TuplesKt.to("mandate", str)) : null;
if (mapOf3 == null) {
mapOf3 = MapsKt.emptyMap();
}
Map plus2 = MapsKt.plus(plus, mapOf3);
Map<String, Object> mandateDataParams = getMandateDataParams();
Map mapOf4 = mandateDataParams != null ? MapsKt.mapOf(TuplesKt.to("mandate_data", mandateDataParams)) : null;
if (mapOf4 == null) {
mapOf4 = MapsKt.emptyMap();
}
return MapsKt.plus(MapsKt.plus(plus2, mapOf4), getPaymentMethodParamMap());
}
private final Map<String, Object> getPaymentMethodParamMap() {
PaymentMethodCreateParams paymentMethodCreateParams = this.paymentMethodCreateParams;
if (paymentMethodCreateParams != null) {
return MapsKt.mapOf(TuplesKt.to("payment_method_data", paymentMethodCreateParams.toParamMap()));
}
String str = this.paymentMethodId;
if (str != null) {
return MapsKt.mapOf(TuplesKt.to("payment_method", str));
}
return MapsKt.emptyMap();
}
private final Map<String, Object> getMandateDataParams() {
Map<String, Object> paramMap;
MandateDataParams mandateDataParams = this.mandateData;
if (mandateDataParams != null && (paramMap = mandateDataParams.toParamMap()) != null) {
return paramMap;
}
PaymentMethodCreateParams paymentMethodCreateParams = this.paymentMethodCreateParams;
if ((paymentMethodCreateParams != null && paymentMethodCreateParams.getRequiresMandate$payments_core_release()) && this.mandateId == null) {
return new MandateDataParams(MandateDataParams.Type.Online.INSTANCE.getDEFAULT()).toParamMap();
}
return null;
}
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J0\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\bH\u0007J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\rH\u0007J0\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u000e\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\bH\u0007J\u0010\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\bH\u0007¨\u0006\u0010"}, d2 = {"Lcom/stripe/android/model/ConfirmSetupIntentParams$Companion;", "", "()V", "create", "Lcom/stripe/android/model/ConfirmSetupIntentParams;", "paymentMethodCreateParams", "Lcom/stripe/android/model/PaymentMethodCreateParams;", "clientSecret", "", "mandateData", "Lcom/stripe/android/model/MandateDataParams;", "mandateId", "paymentMethodType", "Lcom/stripe/android/model/PaymentMethod$Type;", "paymentMethodId", "createWithoutPaymentMethod", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@JvmStatic
public final ConfirmSetupIntentParams create(PaymentMethodCreateParams paymentMethodCreateParams, String str) {
Intrinsics.checkNotNullParameter(paymentMethodCreateParams, "paymentMethodCreateParams");
Intrinsics.checkNotNullParameter(str, "clientSecret");
return create$default(this, paymentMethodCreateParams, str, (MandateDataParams) null, (String) null, 12, (Object) null);
}
@JvmStatic
public final ConfirmSetupIntentParams create(PaymentMethodCreateParams paymentMethodCreateParams, String str, MandateDataParams mandateDataParams) {
Intrinsics.checkNotNullParameter(paymentMethodCreateParams, "paymentMethodCreateParams");
Intrinsics.checkNotNullParameter(str, "clientSecret");
return create$default(this, paymentMethodCreateParams, str, mandateDataParams, (String) null, 8, (Object) null);
}
@JvmStatic
public final ConfirmSetupIntentParams create(String str, String str2) {
Intrinsics.checkNotNullParameter(str, "paymentMethodId");
Intrinsics.checkNotNullParameter(str2, "clientSecret");
return create$default(this, str, str2, (MandateDataParams) null, (String) null, 12, (Object) null);
}
@JvmStatic
public final ConfirmSetupIntentParams create(String str, String str2, MandateDataParams mandateDataParams) {
Intrinsics.checkNotNullParameter(str, "paymentMethodId");
Intrinsics.checkNotNullParameter(str2, "clientSecret");
return create$default(this, str, str2, mandateDataParams, (String) null, 8, (Object) null);
}
private Companion() {
}
@JvmStatic
public final ConfirmSetupIntentParams create(String clientSecret, PaymentMethod.Type paymentMethodType) {
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
Intrinsics.checkNotNullParameter(paymentMethodType, "paymentMethodType");
MandateDataParams mandateDataParams = new MandateDataParams(MandateDataParams.Type.Online.INSTANCE.getDEFAULT());
if (!paymentMethodType.requiresMandate) {
mandateDataParams = null;
}
return new ConfirmSetupIntentParams(clientSecret, null, null, null, false, null, mandateDataParams, 62, null);
}
@JvmStatic
public final ConfirmSetupIntentParams createWithoutPaymentMethod(String clientSecret) {
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
return new ConfirmSetupIntentParams(clientSecret, null, null, null, false, null, null, 126, null);
}
public static ConfirmSetupIntentParams create$default(Companion companion, String str, String str2, MandateDataParams mandateDataParams, String str3, int i2, Object obj) {
if ((i2 & 4) != 0) {
mandateDataParams = null;
}
if ((i2 & 8) != 0) {
str3 = null;
}
return companion.create(str, str2, mandateDataParams, str3);
}
@JvmStatic
public final ConfirmSetupIntentParams create(String paymentMethodId, String clientSecret, MandateDataParams mandateData, String mandateId) {
Intrinsics.checkNotNullParameter(paymentMethodId, "paymentMethodId");
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
return new ConfirmSetupIntentParams(clientSecret, paymentMethodId, null, null, false, mandateId, mandateData, 28, null);
}
public static ConfirmSetupIntentParams create$default(Companion companion, PaymentMethodCreateParams paymentMethodCreateParams, String str, MandateDataParams mandateDataParams, String str2, int i2, Object obj) {
if ((i2 & 4) != 0) {
mandateDataParams = null;
}
if ((i2 & 8) != 0) {
str2 = null;
}
return companion.create(paymentMethodCreateParams, str, mandateDataParams, str2);
}
@JvmStatic
public final ConfirmSetupIntentParams create(PaymentMethodCreateParams paymentMethodCreateParams, String clientSecret, MandateDataParams mandateData, String mandateId) {
Intrinsics.checkNotNullParameter(paymentMethodCreateParams, "paymentMethodCreateParams");
Intrinsics.checkNotNullParameter(clientSecret, "clientSecret");
return new ConfirmSetupIntentParams(clientSecret, null, paymentMethodCreateParams, null, false, mandateId, mandateData, 26, null);
}
}
}