正在查看: Crafto v9.3.3 应用的 GooglePayLauncherContract.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 GooglePayLauncherContract.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.googlepaylauncher;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.Window;
import c0.u0;
import com.stripe.android.googlepaylauncher.GooglePayLauncher;
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 GooglePayLauncherContract extends j.a<Args, GooglePayLauncher.Result> {
public static final int $stable = 0;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final String EXTRA_RESULT = "extra_result";
@NotNull
public static final String EXTRA_STATUS_BAR_COLOR = "extra_status_bar_color";
@Metadata
public static abstract class Args implements Parcelable {
public static final int $stable = 0;
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
private static final String EXTRA_ARGS = "extra_args";
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Args fromIntent$payments_core_release(@NotNull Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
return (Args) intent.getParcelableExtra(Args.EXTRA_ARGS);
}
private Companion() {
}
}
public Args(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@NotNull
public abstract String getClientSecret$payments_core_release();
@NotNull
public abstract GooglePayLauncher.Config getConfig$payments_core_release();
@NotNull
public final Bundle toBundle$payments_core_release() {
return Q1.c.a(new Pair[]{new Pair(EXTRA_ARGS, this)});
}
private Args() {
}
}
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
public static final class PaymentIntentArgs extends Args {
@NotNull
private final String clientSecret;
@NotNull
private final GooglePayLauncher.Config config;
@NotNull
public static final Parcelable.Creator<PaymentIntentArgs> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Creator implements Parcelable.Creator<PaymentIntentArgs> {
@Override
@NotNull
public final PaymentIntentArgs createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new PaymentIntentArgs(parcel.readString(), GooglePayLauncher.Config.CREATOR.createFromParcel(parcel));
}
@Override
@NotNull
public final PaymentIntentArgs[] newArray(int i) {
return new PaymentIntentArgs[i];
}
}
public PaymentIntentArgs(@NotNull String str, @NotNull GooglePayLauncher.Config config) {
super(null);
Intrinsics.checkNotNullParameter(str, "clientSecret");
Intrinsics.checkNotNullParameter(config, "config");
this.clientSecret = str;
this.config = config;
}
public static PaymentIntentArgs copy$default(PaymentIntentArgs paymentIntentArgs, String str, GooglePayLauncher.Config config, int i, Object obj) {
if ((i & 1) != 0) {
str = paymentIntentArgs.getClientSecret$payments_core_release();
}
if ((i & 2) != 0) {
config = paymentIntentArgs.getConfig$payments_core_release();
}
return paymentIntentArgs.copy(str, config);
}
@NotNull
public final String component1$payments_core_release() {
return getClientSecret$payments_core_release();
}
@NotNull
public final GooglePayLauncher.Config component2$payments_core_release() {
return getConfig$payments_core_release();
}
@NotNull
public final PaymentIntentArgs copy(@NotNull String str, @NotNull GooglePayLauncher.Config config) {
Intrinsics.checkNotNullParameter(str, "clientSecret");
Intrinsics.checkNotNullParameter(config, "config");
return new PaymentIntentArgs(str, config);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PaymentIntentArgs)) {
return false;
}
PaymentIntentArgs paymentIntentArgs = (PaymentIntentArgs) obj;
return Intrinsics.areEqual(getClientSecret$payments_core_release(), paymentIntentArgs.getClientSecret$payments_core_release()) && Intrinsics.areEqual(getConfig$payments_core_release(), paymentIntentArgs.getConfig$payments_core_release());
}
@Override
@NotNull
public String getClientSecret$payments_core_release() {
return this.clientSecret;
}
@Override
@NotNull
public GooglePayLauncher.Config getConfig$payments_core_release() {
return this.config;
}
public int hashCode() {
return getConfig$payments_core_release().hashCode() + (getClientSecret$payments_core_release().hashCode() * 31);
}
@NotNull
public String toString() {
return "PaymentIntentArgs(clientSecret=" + getClientSecret$payments_core_release() + ", config=" + getConfig$payments_core_release() + ')';
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.clientSecret);
this.config.writeToParcel(parcel, i);
}
}
@Metadata
public static final class SetupIntentArgs extends Args {
@NotNull
private final String clientSecret;
@NotNull
private final GooglePayLauncher.Config config;
@NotNull
private final String currencyCode;
@NotNull
public static final Parcelable.Creator<SetupIntentArgs> CREATOR = new Creator();
public static final int $stable = 8;
@Metadata
public static final class Creator implements Parcelable.Creator<SetupIntentArgs> {
@Override
@NotNull
public final SetupIntentArgs createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new SetupIntentArgs(parcel.readString(), GooglePayLauncher.Config.CREATOR.createFromParcel(parcel), parcel.readString());
}
@Override
@NotNull
public final SetupIntentArgs[] newArray(int i) {
return new SetupIntentArgs[i];
}
}
public SetupIntentArgs(@NotNull String str, @NotNull GooglePayLauncher.Config config, @NotNull String str2) {
super(null);
Intrinsics.checkNotNullParameter(str, "clientSecret");
Intrinsics.checkNotNullParameter(config, "config");
Intrinsics.checkNotNullParameter(str2, "currencyCode");
this.clientSecret = str;
this.config = config;
this.currencyCode = str2;
}
public static SetupIntentArgs copy$default(SetupIntentArgs setupIntentArgs, String str, GooglePayLauncher.Config config, String str2, int i, Object obj) {
if ((i & 1) != 0) {
str = setupIntentArgs.getClientSecret$payments_core_release();
}
if ((i & 2) != 0) {
config = setupIntentArgs.getConfig$payments_core_release();
}
if ((i & 4) != 0) {
str2 = setupIntentArgs.currencyCode;
}
return setupIntentArgs.copy(str, config, str2);
}
@NotNull
public final String component1$payments_core_release() {
return getClientSecret$payments_core_release();
}
@NotNull
public final GooglePayLauncher.Config component2$payments_core_release() {
return getConfig$payments_core_release();
}
@NotNull
public final String component3$payments_core_release() {
return this.currencyCode;
}
@NotNull
public final SetupIntentArgs copy(@NotNull String str, @NotNull GooglePayLauncher.Config config, @NotNull String str2) {
Intrinsics.checkNotNullParameter(str, "clientSecret");
Intrinsics.checkNotNullParameter(config, "config");
Intrinsics.checkNotNullParameter(str2, "currencyCode");
return new SetupIntentArgs(str, config, str2);
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SetupIntentArgs)) {
return false;
}
SetupIntentArgs setupIntentArgs = (SetupIntentArgs) obj;
return Intrinsics.areEqual(getClientSecret$payments_core_release(), setupIntentArgs.getClientSecret$payments_core_release()) && Intrinsics.areEqual(getConfig$payments_core_release(), setupIntentArgs.getConfig$payments_core_release()) && Intrinsics.areEqual(this.currencyCode, setupIntentArgs.currencyCode);
}
@Override
@NotNull
public String getClientSecret$payments_core_release() {
return this.clientSecret;
}
@Override
@NotNull
public GooglePayLauncher.Config getConfig$payments_core_release() {
return this.config;
}
@NotNull
public final String getCurrencyCode$payments_core_release() {
return this.currencyCode;
}
public int hashCode() {
return this.currencyCode.hashCode() + ((getConfig$payments_core_release().hashCode() + (getClientSecret$payments_core_release().hashCode() * 31)) * 31);
}
@NotNull
public String toString() {
StringBuilder sb = new StringBuilder("SetupIntentArgs(clientSecret=");
sb.append(getClientSecret$payments_core_release());
sb.append(", config=");
sb.append(getConfig$payments_core_release());
sb.append(", currencyCode=");
return u0.a(sb, this.currencyCode, ')');
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.clientSecret);
this.config.writeToParcel(parcel, i);
parcel.writeString(this.currencyCode);
}
}
@NotNull
public Intent createIntent(@NotNull Context context, @NotNull Args args) {
Window window;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(args, "input");
Integer num = null;
if ((context instanceof Activity) && (window = ((Activity) context).getWindow()) != null) {
num = Integer.valueOf(window.getStatusBarColor());
}
Bundle bundle$payments_core_release = args.toBundle$payments_core_release();
if (num != null) {
bundle$payments_core_release.putInt("extra_status_bar_color", num.intValue());
}
Intent putExtras = new Intent(context, (Class<?>) GooglePayLauncherActivity.class).putExtras(bundle$payments_core_release);
Intrinsics.checkNotNullExpressionValue(putExtras, "Intent(context, GooglePa… .putExtras(extras)");
return putExtras;
}
@NotNull
public GooglePayLauncher.Result m148parseResult(int i, Intent intent) {
GooglePayLauncher.Result result = intent != null ? (GooglePayLauncher.Result) intent.getParcelableExtra("extra_result") : null;
return result == null ? new GooglePayLauncher.Result.Failed(new IllegalStateException("Error while processing result from Google Pay.")) : result;
}
}