正在查看: Crafto v9.3.3 应用的 CollectBankAccountContract.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 CollectBankAccountContract.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.payments.bankaccount.navigation;
import Q1.c;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.payments.bankaccount.CollectBankAccountConfiguration;
import com.stripe.android.payments.bankaccount.navigation.CollectBankAccountResult;
import com.stripe.android.payments.bankaccount.ui.CollectBankAccountActivity;
import j.a;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class CollectBankAccountContract extends a<Args, CollectBankAccountResult> {
public static final int $stable = 0;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final String EXTRA_ARGS = "com.stripe.android.payments.bankaccount.navigation.CollectBankAccountContract.extra_args";
@NotNull
private static final String EXTRA_RESULT = "com.stripe.android.payments.bankaccount.navigation.CollectBankAccountContract.extra_result";
@Metadata
public static abstract class Args implements Parcelable {
public static final int $stable = 0;
@NotNull
public static final Companion Companion = new Companion(null);
private final boolean attachToIntent;
@NotNull
private final String clientSecret;
@NotNull
private final CollectBankAccountConfiguration configuration;
@NotNull
private final String publishableKey;
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Args fromIntent(@NotNull Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
return (Args) intent.getParcelableExtra(CollectBankAccountContract.EXTRA_ARGS);
}
private Companion() {
}
}
@Metadata
public static final class ForPaymentIntent extends Args {
private final boolean attachToIntent;
@NotNull
private final String clientSecret;
@NotNull
private final CollectBankAccountConfiguration configuration;
@NotNull
private final String publishableKey;
@NotNull
public static final Parcelable.Creator<ForPaymentIntent> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Creator implements Parcelable.Creator<ForPaymentIntent> {
@Override
@NotNull
public final ForPaymentIntent createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new ForPaymentIntent(parcel.readString(), parcel.readString(), (CollectBankAccountConfiguration) parcel.readParcelable(ForPaymentIntent.class.getClassLoader()), parcel.readInt() != 0);
}
@Override
@NotNull
public final ForPaymentIntent[] newArray(int i) {
return new ForPaymentIntent[i];
}
}
public ForPaymentIntent(@NotNull String str, @NotNull String str2, @NotNull CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z) {
super(str, str2, collectBankAccountConfiguration, z, null);
Intrinsics.checkNotNullParameter(str, "publishableKey");
Intrinsics.checkNotNullParameter(str2, "clientSecret");
Intrinsics.checkNotNullParameter(collectBankAccountConfiguration, "configuration");
this.publishableKey = str;
this.clientSecret = str2;
this.configuration = collectBankAccountConfiguration;
this.attachToIntent = z;
}
public static ForPaymentIntent copy$default(ForPaymentIntent forPaymentIntent, String str, String str2, CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
str = forPaymentIntent.getPublishableKey();
}
if ((i & 2) != 0) {
str2 = forPaymentIntent.getClientSecret();
}
if ((i & 4) != 0) {
collectBankAccountConfiguration = forPaymentIntent.getConfiguration();
}
if ((i & 8) != 0) {
z = forPaymentIntent.getAttachToIntent();
}
return forPaymentIntent.copy(str, str2, collectBankAccountConfiguration, z);
}
@NotNull
public final String component1() {
return getPublishableKey();
}
@NotNull
public final String component2() {
return getClientSecret();
}
@NotNull
public final CollectBankAccountConfiguration component3() {
return getConfiguration();
}
public final boolean component4() {
return getAttachToIntent();
}
@NotNull
public final ForPaymentIntent copy(@NotNull String str, @NotNull String str2, @NotNull CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z) {
Intrinsics.checkNotNullParameter(str, "publishableKey");
Intrinsics.checkNotNullParameter(str2, "clientSecret");
Intrinsics.checkNotNullParameter(collectBankAccountConfiguration, "configuration");
return new ForPaymentIntent(str, str2, collectBankAccountConfiguration, z);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ForPaymentIntent)) {
return false;
}
ForPaymentIntent forPaymentIntent = (ForPaymentIntent) obj;
return Intrinsics.areEqual(getPublishableKey(), forPaymentIntent.getPublishableKey()) && Intrinsics.areEqual(getClientSecret(), forPaymentIntent.getClientSecret()) && Intrinsics.areEqual(getConfiguration(), forPaymentIntent.getConfiguration()) && getAttachToIntent() == forPaymentIntent.getAttachToIntent();
}
@Override
public boolean getAttachToIntent() {
return this.attachToIntent;
}
@Override
@NotNull
public String getClientSecret() {
return this.clientSecret;
}
@Override
@NotNull
public CollectBankAccountConfiguration getConfiguration() {
return this.configuration;
}
@Override
@NotNull
public String getPublishableKey() {
return this.publishableKey;
}
public int hashCode() {
int hashCode = (getConfiguration().hashCode() + ((getClientSecret().hashCode() + (getPublishableKey().hashCode() * 31)) * 31)) * 31;
boolean attachToIntent = getAttachToIntent();
int i = attachToIntent;
if (attachToIntent) {
i = 1;
}
return hashCode + i;
}
@NotNull
public String toString() {
return "ForPaymentIntent(publishableKey=" + getPublishableKey() + ", clientSecret=" + getClientSecret() + ", configuration=" + getConfiguration() + ", attachToIntent=" + getAttachToIntent() + ')';
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.publishableKey);
parcel.writeString(this.clientSecret);
parcel.writeParcelable(this.configuration, i);
parcel.writeInt(this.attachToIntent ? 1 : 0);
}
}
@Metadata
public static final class ForSetupIntent extends Args {
private final boolean attachToIntent;
@NotNull
private final String clientSecret;
@NotNull
private final CollectBankAccountConfiguration configuration;
@NotNull
private final String publishableKey;
@NotNull
public static final Parcelable.Creator<ForSetupIntent> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Creator implements Parcelable.Creator<ForSetupIntent> {
@Override
@NotNull
public final ForSetupIntent createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new ForSetupIntent(parcel.readString(), parcel.readString(), (CollectBankAccountConfiguration) parcel.readParcelable(ForSetupIntent.class.getClassLoader()), parcel.readInt() != 0);
}
@Override
@NotNull
public final ForSetupIntent[] newArray(int i) {
return new ForSetupIntent[i];
}
}
public ForSetupIntent(@NotNull String str, @NotNull String str2, @NotNull CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z) {
super(str, str2, collectBankAccountConfiguration, z, null);
Intrinsics.checkNotNullParameter(str, "publishableKey");
Intrinsics.checkNotNullParameter(str2, "clientSecret");
Intrinsics.checkNotNullParameter(collectBankAccountConfiguration, "configuration");
this.publishableKey = str;
this.clientSecret = str2;
this.configuration = collectBankAccountConfiguration;
this.attachToIntent = z;
}
public static ForSetupIntent copy$default(ForSetupIntent forSetupIntent, String str, String str2, CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
str = forSetupIntent.getPublishableKey();
}
if ((i & 2) != 0) {
str2 = forSetupIntent.getClientSecret();
}
if ((i & 4) != 0) {
collectBankAccountConfiguration = forSetupIntent.getConfiguration();
}
if ((i & 8) != 0) {
z = forSetupIntent.getAttachToIntent();
}
return forSetupIntent.copy(str, str2, collectBankAccountConfiguration, z);
}
@NotNull
public final String component1() {
return getPublishableKey();
}
@NotNull
public final String component2() {
return getClientSecret();
}
@NotNull
public final CollectBankAccountConfiguration component3() {
return getConfiguration();
}
public final boolean component4() {
return getAttachToIntent();
}
@NotNull
public final ForSetupIntent copy(@NotNull String str, @NotNull String str2, @NotNull CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z) {
Intrinsics.checkNotNullParameter(str, "publishableKey");
Intrinsics.checkNotNullParameter(str2, "clientSecret");
Intrinsics.checkNotNullParameter(collectBankAccountConfiguration, "configuration");
return new ForSetupIntent(str, str2, collectBankAccountConfiguration, z);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ForSetupIntent)) {
return false;
}
ForSetupIntent forSetupIntent = (ForSetupIntent) obj;
return Intrinsics.areEqual(getPublishableKey(), forSetupIntent.getPublishableKey()) && Intrinsics.areEqual(getClientSecret(), forSetupIntent.getClientSecret()) && Intrinsics.areEqual(getConfiguration(), forSetupIntent.getConfiguration()) && getAttachToIntent() == forSetupIntent.getAttachToIntent();
}
@Override
public boolean getAttachToIntent() {
return this.attachToIntent;
}
@Override
@NotNull
public String getClientSecret() {
return this.clientSecret;
}
@Override
@NotNull
public CollectBankAccountConfiguration getConfiguration() {
return this.configuration;
}
@Override
@NotNull
public String getPublishableKey() {
return this.publishableKey;
}
public int hashCode() {
int hashCode = (getConfiguration().hashCode() + ((getClientSecret().hashCode() + (getPublishableKey().hashCode() * 31)) * 31)) * 31;
boolean attachToIntent = getAttachToIntent();
int i = attachToIntent;
if (attachToIntent) {
i = 1;
}
return hashCode + i;
}
@NotNull
public String toString() {
return "ForSetupIntent(publishableKey=" + getPublishableKey() + ", clientSecret=" + getClientSecret() + ", configuration=" + getConfiguration() + ", attachToIntent=" + getAttachToIntent() + ')';
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.publishableKey);
parcel.writeString(this.clientSecret);
parcel.writeParcelable(this.configuration, i);
parcel.writeInt(this.attachToIntent ? 1 : 0);
}
}
public Args(String str, String str2, CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z, DefaultConstructorMarker defaultConstructorMarker) {
this(str, str2, collectBankAccountConfiguration, z);
}
public boolean getAttachToIntent() {
return this.attachToIntent;
}
@NotNull
public String getClientSecret() {
return this.clientSecret;
}
@NotNull
public CollectBankAccountConfiguration getConfiguration() {
return this.configuration;
}
@NotNull
public String getPublishableKey() {
return this.publishableKey;
}
@NotNull
public final Bundle toBundle() {
return c.a(new Pair[]{new Pair(CollectBankAccountContract.EXTRA_ARGS, this)});
}
private Args(String str, String str2, CollectBankAccountConfiguration collectBankAccountConfiguration, boolean z) {
this.publishableKey = str;
this.clientSecret = str2;
this.configuration = collectBankAccountConfiguration;
this.attachToIntent = z;
}
}
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public static void getEXTRA_ARGS$annotations() {
}
}
@Metadata
public static final class Result implements Parcelable {
@NotNull
public static final Parcelable.Creator<Result> CREATOR = new Creator();
@NotNull
private final CollectBankAccountResult collectBankAccountResult;
@Metadata
public static final class Creator implements Parcelable.Creator<Result> {
@Override
@NotNull
public final Result createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new Result((CollectBankAccountResult) parcel.readParcelable(Result.class.getClassLoader()));
}
@Override
@NotNull
public final Result[] newArray(int i) {
return new Result[i];
}
}
public Result(@NotNull CollectBankAccountResult collectBankAccountResult) {
Intrinsics.checkNotNullParameter(collectBankAccountResult, "collectBankAccountResult");
this.collectBankAccountResult = collectBankAccountResult;
}
public static Result copy$default(Result result, CollectBankAccountResult collectBankAccountResult, int i, Object obj) {
if ((i & 1) != 0) {
collectBankAccountResult = result.collectBankAccountResult;
}
return result.copy(collectBankAccountResult);
}
@NotNull
public final CollectBankAccountResult component1() {
return this.collectBankAccountResult;
}
@NotNull
public final Result copy(@NotNull CollectBankAccountResult collectBankAccountResult) {
Intrinsics.checkNotNullParameter(collectBankAccountResult, "collectBankAccountResult");
return new Result(collectBankAccountResult);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof Result) && Intrinsics.areEqual(this.collectBankAccountResult, ((Result) obj).collectBankAccountResult);
}
@NotNull
public final CollectBankAccountResult getCollectBankAccountResult() {
return this.collectBankAccountResult;
}
public int hashCode() {
return this.collectBankAccountResult.hashCode();
}
@NotNull
public final Bundle toBundle() {
return c.a(new Pair[]{new Pair(CollectBankAccountContract.EXTRA_RESULT, this)});
}
@NotNull
public String toString() {
return "Result(collectBankAccountResult=" + this.collectBankAccountResult + ')';
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeParcelable(this.collectBankAccountResult, i);
}
}
@NotNull
public Intent createIntent(@NotNull Context context, @NotNull Args args) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(args, "input");
Intent putExtra = new Intent(context, (Class<?>) CollectBankAccountActivity.class).putExtra(EXTRA_ARGS, args);
Intrinsics.checkNotNullExpressionValue(putExtra, "Intent(context, CollectB…tExtra(EXTRA_ARGS, input)");
return putExtra;
}
@NotNull
public CollectBankAccountResult m478parseResult(int i, Intent intent) {
Result result;
CollectBankAccountResult collectBankAccountResult = (intent == null || (result = (Result) intent.getParcelableExtra(EXTRA_RESULT)) == null) ? null : result.getCollectBankAccountResult();
return collectBankAccountResult == null ? new CollectBankAccountResult.Failed(new IllegalArgumentException("Failed to retrieve a CollectBankAccountResult.")) : collectBankAccountResult;
}
}