导航菜单

页面标题

页面副标题

BodyTech v7.6.4 - h.java 源代码

正在查看: BodyTech v7.6.4 应用的 h.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.stripe.android.googlepaylauncher;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.activity.result.contract.ActivityResultContract;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.core.os.BundleKt;
import com.stripe.android.googlepaylauncher.GooglePayLauncher;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.r;
import kotlinx.coroutines.scheduling.WorkQueueKt;

@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\b\b\u0007\u0018\u0000 \b2\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001:\u0004\b\f\u000f\u0010B\u0007¢\u0006\u0004\b\r\u0010\u000eJ\u0018\u0010\b\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0002H\u0016J\u001a\u0010\f\u001a\u00020\u00032\u0006\u0010\n\u001a\u00020\t2\b\u0010\u000b\u001a\u0004\u0018\u00010\u0007H\u0016¨\u0006\u0011"}, d2 = {"Lcom/stripe/android/googlepaylauncher/h;", "Landroidx/activity/result/contract/ActivityResultContract;", "Lcom/stripe/android/googlepaylauncher/h$a;", "Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$d;", "Landroid/content/Context;", "context", "input", "Landroid/content/Intent;", "a", "", "resultCode", "intent", "b", "<init>", "()V", "c", "d", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@gj.c
public final class h extends ActivityResultContract<a, GooglePayLauncher.d> {

    @StabilityInferred(parameters = 1)
    @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b7\u0018\u0000 \n2\u00020\u0001:\u0001\u000fB\t\b\u0004¢\u0006\u0004\b\r\u0010\u000eJ\u000f\u0010\u0003\u001a\u00020\u0002H\u0000¢\u0006\u0004\b\u0003\u0010\u0004R\u0014\u0010\b\u001a\u00020\u00058 X \u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0014\u0010\f\u001a\u00020\t8 X \u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b\u0082\u0001\u0002\u0010\u0011¨\u0006\u0012"}, d2 = {"Lcom/stripe/android/googlepaylauncher/h$a;", "Landroid/os/Parcelable;", "Landroid/os/Bundle;", "e", "()Landroid/os/Bundle;", "", "b", "()Ljava/lang/String;", "clientSecret", "Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "c", "()Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "config", "<init>", "()V", "a", "Lcom/stripe/android/googlepaylauncher/h$c;", "Lcom/stripe/android/googlepaylauncher/h$d;", "payments-core_release"}, k = 1, mv = {1, 9, 0})
    public static abstract class a implements Parcelable {

        public static final Companion INSTANCE = new Companion(null);

        @Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0000¢\u0006\u0004\b\u0005\u0010\u0006R\u0014\u0010\b\u001a\u00020\u00078\u0002X\u0082T¢\u0006\u0006\n\u0004\b\b\u0010\t¨\u0006\f"}, d2 = {"Lcom/stripe/android/googlepaylauncher/h$a$a;", "", "Landroid/content/Intent;", "intent", "Lcom/stripe/android/googlepaylauncher/h$a;", "a", "(Landroid/content/Intent;)Lcom/stripe/android/googlepaylauncher/h$a;", "", "EXTRA_ARGS", "Ljava/lang/String;", "<init>", "()V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
        public static final class Companion {
            private Companion() {
            }

            public Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            public final a a(Intent intent) {
                r.i(intent, "intent");
                return (a) intent.getParcelableExtra("extra_args");
            }
        }

        private a() {
        }

        public a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public abstract String getClientSecret();

        public abstract GooglePayLauncher.Config getConfig();

        public final Bundle e() {
            return BundleKt.bundleOf(new Pair[]{gj.i.a("extra_args", this)});
        }
    }

    @StabilityInferred(parameters = 0)
    @Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B%\b\u0007\u0012\u0006\u0010\u0014\u001a\u00020\u0002\u0012\u0006\u0010\u001a\u001a\u00020\u0015\u0012\n\b\u0002\u0010\u001d\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b\u001e\u0010\u001fJ\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u001a\u0010\u0014\u001a\u00020\u00028\u0010X\u0090\u0004¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u001a\u0010\u001a\u001a\u00020\u00158\u0010X\u0090\u0004¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u001c\u0010\u001d\u001a\u0004\u0018\u00010\u00028\u0000X\u0080\u0004¢\u0006\f\n\u0004\b\u001b\u0010\u0011\u001a\u0004\b\u001c\u0010\u0013¨\u0006 "}, d2 = {"Lcom/stripe/android/googlepaylauncher/h$c;", "Lcom/stripe/android/googlepaylauncher/h$a;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "d", "Ljava/lang/String;", "b", "()Ljava/lang/String;", "clientSecret", "Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "e", "Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "c", "()Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "config", "k", "g", "label", "<init>", "(Ljava/lang/String;Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;Ljava/lang/String;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
    public static final class PaymentIntentArgs extends a {
        public static final Parcelable.Creator<PaymentIntentArgs> CREATOR = new a();

        private final String clientSecret;

        private final GooglePayLauncher.Config config;

        private final String label;

        @Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
        public static final class a implements Parcelable.Creator<PaymentIntentArgs> {
            @Override
            public final PaymentIntentArgs createFromParcel(Parcel parcel) {
                r.i(parcel, "parcel");
                return new PaymentIntentArgs(parcel.readString(), GooglePayLauncher.Config.CREATOR.createFromParcel(parcel), parcel.readString());
            }

            @Override
            public final PaymentIntentArgs[] newArray(int i) {
                return new PaymentIntentArgs[i];
            }
        }

        public PaymentIntentArgs(String clientSecret, GooglePayLauncher.Config config, String str) {
            super(null);
            r.i(clientSecret, "clientSecret");
            r.i(config, "config");
            this.clientSecret = clientSecret;
            this.config = config;
            this.label = str;
        }

        @Override
        public String getClientSecret() {
            return this.clientSecret;
        }

        @Override
        public GooglePayLauncher.Config getConfig() {
            return this.config;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof PaymentIntentArgs)) {
                return false;
            }
            PaymentIntentArgs paymentIntentArgs = (PaymentIntentArgs) other;
            return r.d(this.clientSecret, paymentIntentArgs.clientSecret) && r.d(this.config, paymentIntentArgs.config) && r.d(this.label, paymentIntentArgs.label);
        }

        public final String getLabel() {
            return this.label;
        }

        public int hashCode() {
            int hashCode = ((this.clientSecret.hashCode() * 31) + this.config.hashCode()) * 31;
            String str = this.label;
            return hashCode + (str == null ? 0 : str.hashCode());
        }

        public String toString() {
            return "PaymentIntentArgs(clientSecret=" + this.clientSecret + ", config=" + this.config + ", label=" + this.label + ")";
        }

        @Override
        public void writeToParcel(Parcel parcel, int flags) {
            r.i(parcel, "out");
            parcel.writeString(this.clientSecret);
            this.config.writeToParcel(parcel, flags);
            parcel.writeString(this.label);
        }
    }

    @StabilityInferred(parameters = 0)
    @Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\t\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B9\b\u0007\u0012\u0006\u0010\u0014\u001a\u00020\u0002\u0012\u0006\u0010\u001a\u001a\u00020\u0015\u0012\u0006\u0010\u001d\u001a\u00020\u0002\u0012\n\b\u0002\u0010#\u001a\u0004\u0018\u00010\u001e\u0012\n\b\u0002\u0010&\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b'\u0010(J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006HÖ\u0003J\t\u0010\n\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u0004HÖ\u0001R\u001a\u0010\u0014\u001a\u00020\u00028\u0010X\u0090\u0004¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u001a\u0010\u001a\u001a\u00020\u00158\u0010X\u0090\u0004¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u001a\u0010\u001d\u001a\u00020\u00028\u0000X\u0080\u0004¢\u0006\f\n\u0004\b\u001b\u0010\u0011\u001a\u0004\b\u001c\u0010\u0013R\u001c\u0010#\u001a\u0004\u0018\u00010\u001e8\u0000X\u0080\u0004¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"R\u001c\u0010&\u001a\u0004\u0018\u00010\u00028\u0000X\u0080\u0004¢\u0006\f\n\u0004\b$\u0010\u0011\u001a\u0004\b%\u0010\u0013¨\u0006)"}, d2 = {"Lcom/stripe/android/googlepaylauncher/h$d;", "Lcom/stripe/android/googlepaylauncher/h$a;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "d", "Ljava/lang/String;", "b", "()Ljava/lang/String;", "clientSecret", "Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "e", "Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "c", "()Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;", "config", "k", "i", "currencyCode", "", "n", "Ljava/lang/Long;", "g", "()Ljava/lang/Long;", "amount", "p", "m", "label", "<init>", "(Ljava/lang/String;Lcom/stripe/android/googlepaylauncher/GooglePayLauncher$b;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
    public static final class SetupIntentArgs extends a {
        public static final Parcelable.Creator<SetupIntentArgs> CREATOR = new a();

        private final String clientSecret;

        private final GooglePayLauncher.Config config;

        private final String currencyCode;

        private final Long amount;

        private final String label;

        @Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
        public static final class a implements Parcelable.Creator<SetupIntentArgs> {
            @Override
            public final SetupIntentArgs createFromParcel(Parcel parcel) {
                r.i(parcel, "parcel");
                return new SetupIntentArgs(parcel.readString(), GooglePayLauncher.Config.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readInt() == 0 ? null : Long.valueOf(parcel.readLong()), parcel.readString());
            }

            @Override
            public final SetupIntentArgs[] newArray(int i) {
                return new SetupIntentArgs[i];
            }
        }

        public SetupIntentArgs(String clientSecret, GooglePayLauncher.Config config, String currencyCode, Long l, String str) {
            super(null);
            r.i(clientSecret, "clientSecret");
            r.i(config, "config");
            r.i(currencyCode, "currencyCode");
            this.clientSecret = clientSecret;
            this.config = config;
            this.currencyCode = currencyCode;
            this.amount = l;
            this.label = str;
        }

        @Override
        public String getClientSecret() {
            return this.clientSecret;
        }

        @Override
        public GooglePayLauncher.Config getConfig() {
            return this.config;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof SetupIntentArgs)) {
                return false;
            }
            SetupIntentArgs setupIntentArgs = (SetupIntentArgs) other;
            return r.d(this.clientSecret, setupIntentArgs.clientSecret) && r.d(this.config, setupIntentArgs.config) && r.d(this.currencyCode, setupIntentArgs.currencyCode) && r.d(this.amount, setupIntentArgs.amount) && r.d(this.label, setupIntentArgs.label);
        }

        public final Long getAmount() {
            return this.amount;
        }

        public int hashCode() {
            int hashCode = ((((this.clientSecret.hashCode() * 31) + this.config.hashCode()) * 31) + this.currencyCode.hashCode()) * 31;
            Long l = this.amount;
            int hashCode2 = (hashCode + (l == null ? 0 : l.hashCode())) * 31;
            String str = this.label;
            return hashCode2 + (str != null ? str.hashCode() : 0);
        }

        public final String getCurrencyCode() {
            return this.currencyCode;
        }

        public final String getLabel() {
            return this.label;
        }

        public String toString() {
            return "SetupIntentArgs(clientSecret=" + this.clientSecret + ", config=" + this.config + ", currencyCode=" + this.currencyCode + ", amount=" + this.amount + ", label=" + this.label + ")";
        }

        @Override
        public void writeToParcel(Parcel parcel, int flags) {
            r.i(parcel, "out");
            parcel.writeString(this.clientSecret);
            this.config.writeToParcel(parcel, flags);
            parcel.writeString(this.currencyCode);
            Long l = this.amount;
            if (l == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                parcel.writeLong(l.longValue());
            }
            parcel.writeString(this.label);
        }
    }

    public Intent createIntent(Context context, a input) {
        r.i(context, "context");
        r.i(input, "input");
        Intent putExtras = new Intent(context, (Class<?>) GooglePayLauncherActivity.class).putExtras(input.e());
        r.h(putExtras, "putExtras(...)");
        return putExtras;
    }

    public GooglePayLauncher.d parseResult(int resultCode, Intent intent) {
        GooglePayLauncher.d dVar = intent != null ? (GooglePayLauncher.d) intent.getParcelableExtra("extra_result") : null;
        return dVar == null ? new GooglePayLauncher.d.Failed(new IllegalStateException("Error while processing result from Google Pay.")) : dVar;
    }
}