导航菜单

页面标题

页面副标题

BodyTech v7.6.4 - DeferredIntentParams.java 源代码

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

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


package com.stripe.android.model;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.RestrictTo;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.model.PaymentIntent;
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.collections.g0;
import kotlinx.coroutines.scheduling.WorkQueueKt;

@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\b\u0010\b\u0087\b\u0018\u00002\u00020\u0001:\u0001\u0014B1\u0012\u0006\u0010\u0016\u001a\u00020\u0012\u0012\f\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00030\u0017\u0012\b\u0010!\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010$\u001a\u0004\u0018\u00010\u0003¢\u0006\u0004\b%\u0010&J\u0014\u0010\u0005\u001a\u0010\u0012\u0004\u0012\u00020\u0003\u0012\u0006\u0012\u0004\u0018\u00010\u00040\u0002J\t\u0010\u0006\u001a\u00020\u0003HÖ\u0001J\t\u0010\b\u001a\u00020\u0007HÖ\u0001J\u0013\u0010\u000b\u001a\u00020\n2\b\u0010\t\u001a\u0004\u0018\u00010\u0004HÖ\u0003J\t\u0010\f\u001a\u00020\u0007HÖ\u0001J\u0019\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u000f\u001a\u00020\u0007HÖ\u0001R\u0017\u0010\u0016\u001a\u00020\u00128\u0006¢\u0006\f\n\u0004\b\u0005\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015R\u001d\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00030\u00178\u0006¢\u0006\f\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\u0019\u0010!\u001a\u0004\u0018\u00010\u00038\u0006¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 R\u0019\u0010$\u001a\u0004\u0018\u00010\u00038\u0006¢\u0006\f\n\u0004\b\"\u0010\u001e\u001a\u0004\b#\u0010 ¨\u0006'"}, d2 = {"Lcom/stripe/android/model/i;", "Lph/b;", "", "", "", "c", "toString", "", "hashCode", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "Lcom/stripe/android/model/i$b;", "Lcom/stripe/android/model/i$b;", "b", "()Lcom/stripe/android/model/i$b;", "mode", "", "d", "Ljava/util/List;", "getPaymentMethodTypes", "()Ljava/util/List;", "paymentMethodTypes", "e", "Ljava/lang/String;", "getPaymentMethodConfigurationId", "()Ljava/lang/String;", "paymentMethodConfigurationId", "k", "getOnBehalfOf", "onBehalfOf", "<init>", "(Lcom/stripe/android/model/i$b;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
public final class DeferredIntentParams implements ph.b {
    public static final Parcelable.Creator<DeferredIntentParams> CREATOR = new a();

    private final b mode;

    private final List<String> paymentMethodTypes;

    private final String paymentMethodConfigurationId;

    private final String onBehalfOf;

    @Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
    public static final class a implements Parcelable.Creator<DeferredIntentParams> {
        @Override
        public final DeferredIntentParams createFromParcel(Parcel parcel) {
            kotlin.jvm.internal.r.i(parcel, "parcel");
            return new DeferredIntentParams((b) parcel.readParcelable(DeferredIntentParams.class.getClassLoader()), parcel.createStringArrayList(), parcel.readString(), parcel.readString());
        }

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

    @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bw\u0018\u00002\u00020\u0001:\u0002\f\rR\u0014\u0010\u0005\u001a\u00020\u00028&X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004R\u0016\u0010\u0007\u001a\u0004\u0018\u00010\u00028&X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0004R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\b8&X¦\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\n\u0082\u0001\u0002\u000e\u000f¨\u0006\u0010"}, d2 = {"Lcom/stripe/android/model/i$b;", "Landroid/os/Parcelable;", "", "l", "()Ljava/lang/String;", "code", "e0", "currency", "Lcom/stripe/android/model/StripeIntent$Usage;", "t", "()Lcom/stripe/android/model/StripeIntent$Usage;", "setupFutureUsage", "a", "b", "Lcom/stripe/android/model/i$b$a;", "Lcom/stripe/android/model/i$b$b;", "payments-core_release"}, k = 1, mv = {1, 9, 0})
    @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
    public interface b extends Parcelable {

        @StabilityInferred(parameters = 1)
        @Metadata(d1 = {"\u0000H\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\u0000\n\u0002\u0010\t\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\t\b\u0087\b\u0018\u00002\u00020\u0001B)\u0012\u0006\u0010\u0015\u001a\u00020\u0010\u0012\u0006\u0010\u001a\u001a\u00020\u0002\u0012\b\u0010 \u001a\u0004\u0018\u00010\u001b\u0012\u0006\u0010%\u001a\u00020!¢\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\u0017\u0010\u0015\u001a\u00020\u00108\u0006¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u0013\u0010\u0014R\u001a\u0010\u001a\u001a\u00020\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u001c\u0010 \u001a\u0004\u0018\u00010\u001b8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001fR\u0017\u0010%\u001a\u00020!8\u0006¢\u0006\f\n\u0004\b\"\u0010#\u001a\u0004\b\u0011\u0010$R\u0014\u0010'\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b&\u0010\u0019¨\u0006*"}, d2 = {"Lcom/stripe/android/model/i$b$a;", "Lcom/stripe/android/model/i$b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "", "c", "J", "b", "()J", "amount", "d", "Ljava/lang/String;", "e0", "()Ljava/lang/String;", "currency", "Lcom/stripe/android/model/StripeIntent$Usage;", "e", "Lcom/stripe/android/model/StripeIntent$Usage;", "t", "()Lcom/stripe/android/model/StripeIntent$Usage;", "setupFutureUsage", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "k", "Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "()Lcom/stripe/android/model/PaymentIntent$CaptureMethod;", "captureMethod", "l", "code", "<init>", "(JLjava/lang/String;Lcom/stripe/android/model/StripeIntent$Usage;Lcom/stripe/android/model/PaymentIntent$CaptureMethod;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
        @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
        public static final class Payment implements b {
            public static final Parcelable.Creator<Payment> CREATOR = new C0083a();

            private final long amount;

            private final String currency;

            private final StripeIntent.Usage setupFutureUsage;

            private final PaymentIntent.CaptureMethod captureMethod;

            @Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
            public static final class C0083a implements Parcelable.Creator<Payment> {
                @Override
                public final Payment createFromParcel(Parcel parcel) {
                    kotlin.jvm.internal.r.i(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 i) {
                    return new Payment[i];
                }
            }

            public Payment(long j, String currency, StripeIntent.Usage usage, PaymentIntent.CaptureMethod captureMethod) {
                kotlin.jvm.internal.r.i(currency, "currency");
                kotlin.jvm.internal.r.i(captureMethod, "captureMethod");
                this.amount = j;
                this.currency = currency;
                this.setupFutureUsage = usage;
                this.captureMethod = captureMethod;
            }

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

            public final PaymentIntent.CaptureMethod getCaptureMethod() {
                return this.captureMethod;
            }

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

            @Override
            public String getCurrency() {
                return this.currency;
            }

            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 && kotlin.jvm.internal.r.d(this.currency, payment.currency) && this.setupFutureUsage == payment.setupFutureUsage && this.captureMethod == payment.captureMethod;
            }

            public int hashCode() {
                int a = ((androidx.collection.a.a(this.amount) * 31) + this.currency.hashCode()) * 31;
                StripeIntent.Usage usage = this.setupFutureUsage;
                return ((a + (usage == null ? 0 : usage.hashCode())) * 31) + this.captureMethod.hashCode();
            }

            @Override
            public String l() {
                return "payment";
            }

            @Override
            public StripeIntent.Usage getSetupFutureUsage() {
                return this.setupFutureUsage;
            }

            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) {
                kotlin.jvm.internal.r.i(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());
            }
        }

        @StabilityInferred(parameters = 1)
        @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\n\b\u0087\b\u0018\u00002\u00020\u0001B\u0019\u0012\b\u0010\u0014\u001a\u0004\u0018\u00010\u0002\u0012\u0006\u0010\u001a\u001a\u00020\u0015¢\u0006\u0004\b\u001d\u0010\u001eJ\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\u001c\u0010\u0014\u001a\u0004\u0018\u00010\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u001a\u0010\u001a\u001a\u00020\u00158\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019R\u0014\u0010\u001c\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u0013¨\u0006\u001f"}, d2 = {"Lcom/stripe/android/model/i$b$b;", "Lcom/stripe/android/model/i$b;", "", "toString", "", "hashCode", "", "other", "", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "", "writeToParcel", "c", "Ljava/lang/String;", "e0", "()Ljava/lang/String;", "currency", "Lcom/stripe/android/model/StripeIntent$Usage;", "d", "Lcom/stripe/android/model/StripeIntent$Usage;", "t", "()Lcom/stripe/android/model/StripeIntent$Usage;", "setupFutureUsage", "l", "code", "<init>", "(Ljava/lang/String;Lcom/stripe/android/model/StripeIntent$Usage;)V", "payments-core_release"}, k = 1, mv = {1, 9, 0})
        @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
        public static final class Setup implements b {
            public static final Parcelable.Creator<Setup> CREATOR = new a();

            private final String currency;

            private final StripeIntent.Usage setupFutureUsage;

            @Metadata(k = WorkQueueKt.STEAL_ANY, mv = {1, 9, 0}, xi = 48)
            public static final class a implements Parcelable.Creator<Setup> {
                @Override
                public final Setup createFromParcel(Parcel parcel) {
                    kotlin.jvm.internal.r.i(parcel, "parcel");
                    return new Setup(parcel.readString(), StripeIntent.Usage.valueOf(parcel.readString()));
                }

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

            public Setup(String str, StripeIntent.Usage setupFutureUsage) {
                kotlin.jvm.internal.r.i(setupFutureUsage, "setupFutureUsage");
                this.currency = str;
                this.setupFutureUsage = setupFutureUsage;
            }

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

            @Override
            public String getCurrency() {
                return this.currency;
            }

            public boolean equals(Object other) {
                if (this == other) {
                    return true;
                }
                if (!(other instanceof Setup)) {
                    return false;
                }
                Setup setup = (Setup) other;
                return kotlin.jvm.internal.r.d(this.currency, setup.currency) && this.setupFutureUsage == setup.setupFutureUsage;
            }

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

            @Override
            public String l() {
                return "setup";
            }

            @Override
            public StripeIntent.Usage getSetupFutureUsage() {
                return this.setupFutureUsage;
            }

            public String toString() {
                return "Setup(currency=" + this.currency + ", setupFutureUsage=" + this.setupFutureUsage + ")";
            }

            @Override
            public void writeToParcel(Parcel parcel, int flags) {
                kotlin.jvm.internal.r.i(parcel, "out");
                parcel.writeString(this.currency);
                parcel.writeString(this.setupFutureUsage.name());
            }
        }

        String getCurrency();

        String l();

        StripeIntent.Usage getSetupFutureUsage();
    }

    public DeferredIntentParams(b mode, List<String> paymentMethodTypes, String str, String str2) {
        kotlin.jvm.internal.r.i(mode, "mode");
        kotlin.jvm.internal.r.i(paymentMethodTypes, "paymentMethodTypes");
        this.mode = mode;
        this.paymentMethodTypes = paymentMethodTypes;
        this.paymentMethodConfigurationId = str;
        this.onBehalfOf = str2;
    }

    public final b getMode() {
        return this.mode;
    }

    public final Map<String, Object> c() {
        Map n;
        Map<String, Object> r;
        PaymentIntent.CaptureMethod captureMethod;
        Pair[] pairArr = new Pair[7];
        int i = 0;
        pairArr[0] = gj.i.a("deferred_intent[mode]", this.mode.l());
        b bVar = this.mode;
        String str = null;
        b.Payment payment = bVar instanceof b.Payment ? (b.Payment) bVar : null;
        pairArr[1] = gj.i.a("deferred_intent[amount]", payment != null ? Long.valueOf(payment.getAmount()) : null);
        pairArr[2] = gj.i.a("deferred_intent[currency]", this.mode.getCurrency());
        StripeIntent.Usage setupFutureUsage = this.mode.getSetupFutureUsage();
        pairArr[3] = gj.i.a("deferred_intent[setup_future_usage]", setupFutureUsage != null ? setupFutureUsage.getCode() : null);
        b bVar2 = this.mode;
        b.Payment payment2 = bVar2 instanceof b.Payment ? (b.Payment) bVar2 : null;
        if (payment2 != null && (captureMethod = payment2.getCaptureMethod()) != null) {
            str = captureMethod.getCode();
        }
        pairArr[4] = gj.i.a("deferred_intent[capture_method]", str);
        pairArr[5] = gj.i.a("deferred_intent[payment_method_configuration][id]", this.paymentMethodConfigurationId);
        pairArr[6] = gj.i.a("deferred_intent[on_behalf_of]", this.onBehalfOf);
        n = g0.n(pairArr);
        List<String> list = this.paymentMethodTypes;
        ArrayList arrayList = new ArrayList(kotlin.collections.p.y(list, 10));
        for (Object obj : list) {
            int i2 = i + 1;
            if (i < 0) {
                kotlin.collections.o.x();
            }
            arrayList.add(gj.i.a("deferred_intent[payment_method_types][" + i + "]", (String) obj));
            i = i2;
        }
        r = g0.r(n, arrayList);
        return r;
    }

    @Override
    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 kotlin.jvm.internal.r.d(this.mode, deferredIntentParams.mode) && kotlin.jvm.internal.r.d(this.paymentMethodTypes, deferredIntentParams.paymentMethodTypes) && kotlin.jvm.internal.r.d(this.paymentMethodConfigurationId, deferredIntentParams.paymentMethodConfigurationId) && kotlin.jvm.internal.r.d(this.onBehalfOf, deferredIntentParams.onBehalfOf);
    }

    public int hashCode() {
        int hashCode = ((this.mode.hashCode() * 31) + this.paymentMethodTypes.hashCode()) * 31;
        String str = this.paymentMethodConfigurationId;
        int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.onBehalfOf;
        return hashCode2 + (str2 != null ? str2.hashCode() : 0);
    }

    public String toString() {
        return "DeferredIntentParams(mode=" + this.mode + ", paymentMethodTypes=" + this.paymentMethodTypes + ", paymentMethodConfigurationId=" + this.paymentMethodConfigurationId + ", onBehalfOf=" + this.onBehalfOf + ")";
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        kotlin.jvm.internal.r.i(parcel, "out");
        parcel.writeParcelable(this.mode, flags);
        parcel.writeStringList(this.paymentMethodTypes);
        parcel.writeString(this.paymentMethodConfigurationId);
        parcel.writeString(this.onBehalfOf);
    }
}