导航菜单

页面标题

页面副标题

Rilo v2.0.21 - PaymentSheetState.java 源代码

正在查看: Rilo v2.0.21 应用的 PaymentSheetState.java JAVA 源代码文件

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


package com.stripe.android.paymentsheet.state;

import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.paymentsheet.PaymentSheet;
import com.stripe.android.paymentsheet.model.PaymentSelection;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bp\u0018\u00002\u00020\u0001:\u0002\u0002\u0003\u0082\u0001\u0002\u0004\u0005¨\u0006\u0006"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetState;", "Landroid/os/Parcelable;", "Full", "Loading", "Lcom/stripe/android/paymentsheet/state/PaymentSheetState$Full;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetState$Loading;", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public interface PaymentSheetState extends Parcelable {

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÇ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\t\u0010\u0003\u001a\u00020\u0004HÖ\u0001J\u0019\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u0004HÖ\u0001¨\u0006\n"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetState$Loading;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetState;", "()V", "describeContents", "", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Loading implements PaymentSheetState {
        public static final int $stable = 0;
        public static final Loading INSTANCE = new Loading();
        public static final Parcelable.Creator<Loading> CREATOR = new Creator();

        @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class Creator implements Parcelable.Creator<Loading> {
            @Override
            public final Loading createFromParcel(Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                parcel.readInt();
                return Loading.INSTANCE;
            }

            @Override
            public final Loading[] newArray(int i2) {
                return new Loading[i2];
            }
        }

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

        @Override
        public void writeToParcel(Parcel parcel, int flags) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeInt(1);
        }

        private Loading() {
        }
    }

    @Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0017\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001BG\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007\u0012\u0006\u0010\t\u001a\u00020\n\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\f\u0012\u0006\u0010\r\u001a\u00020\n\u0012\b\u0010\u000e\u001a\u0004\u0018\u00010\u000f¢\u0006\u0002\u0010\u0010J\t\u0010\u001e\u001a\u00020\u0003HÆ\u0003J\t\u0010\u001f\u001a\u00020\u0005HÆ\u0003J\u000f\u0010 \u001a\b\u0012\u0004\u0012\u00020\b0\u0007HÆ\u0003J\t\u0010!\u001a\u00020\nHÆ\u0003J\u000b\u0010\"\u001a\u0004\u0018\u00010\fHÆ\u0003J\t\u0010#\u001a\u00020\nHÆ\u0003J\u000b\u0010$\u001a\u0004\u0018\u00010\u000fHÆ\u0003JY\u0010%\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\u000e\b\u0002\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u00072\b\b\u0002\u0010\t\u001a\u00020\n2\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\f2\b\b\u0002\u0010\r\u001a\u00020\n2\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\u000fHÆ\u0001J\t\u0010&\u001a\u00020'HÖ\u0001J\u0013\u0010(\u001a\u00020\n2\b\u0010)\u001a\u0004\u0018\u00010*HÖ\u0003J\t\u0010+\u001a\u00020'HÖ\u0001J\t\u0010,\u001a\u00020-HÖ\u0001J\u0019\u0010.\u001a\u00020/2\u0006\u00100\u001a\u0002012\u0006\u00102\u001a\u00020'HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u0017\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0015\u001a\u00020\n8F¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017R\u0011\u0010\r\u001a\u00020\n¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u0017R\u0011\u0010\t\u001a\u00020\n¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\u0017R\u0013\u0010\u000b\u001a\u0004\u0018\u00010\f¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0019R\u0013\u0010\u000e\u001a\u0004\u0018\u00010\u000f¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u001bR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u001d¨\u00063"}, d2 = {"Lcom/stripe/android/paymentsheet/state/PaymentSheetState$Full;", "Lcom/stripe/android/paymentsheet/state/PaymentSheetState;", "config", "Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration;", "stripeIntent", "Lcom/stripe/android/model/StripeIntent;", "customerPaymentMethods", "", "Lcom/stripe/android/model/PaymentMethod;", "isGooglePayReady", "", "linkState", "Lcom/stripe/android/paymentsheet/state/LinkState;", "isEligibleForCardBrandChoice", "paymentSelection", "Lcom/stripe/android/paymentsheet/model/PaymentSelection;", "(Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration;Lcom/stripe/android/model/StripeIntent;Ljava/util/List;ZLcom/stripe/android/paymentsheet/state/LinkState;ZLcom/stripe/android/paymentsheet/model/PaymentSelection;)V", "getConfig", "()Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration;", "getCustomerPaymentMethods", "()Ljava/util/List;", "hasPaymentOptions", "getHasPaymentOptions", "()Z", "getLinkState", "()Lcom/stripe/android/paymentsheet/state/LinkState;", "getPaymentSelection", "()Lcom/stripe/android/paymentsheet/model/PaymentSelection;", "getStripeIntent", "()Lcom/stripe/android/model/StripeIntent;", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "copy", "describeContents", "", "equals", "other", "", "hashCode", "toString", "", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Full implements PaymentSheetState {
        public static final int $stable = 8;
        public static final Parcelable.Creator<Full> CREATOR = new Creator();
        private final PaymentSheet.Configuration config;
        private final List<PaymentMethod> customerPaymentMethods;
        private final boolean isEligibleForCardBrandChoice;
        private final boolean isGooglePayReady;
        private final LinkState linkState;
        private final PaymentSelection paymentSelection;
        private final StripeIntent stripeIntent;

        @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class Creator implements Parcelable.Creator<Full> {
            @Override
            public final Full createFromParcel(Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                PaymentSheet.Configuration configuration = (PaymentSheet.Configuration) parcel.readParcelable(Full.class.getClassLoader());
                StripeIntent stripeIntent = (StripeIntent) parcel.readParcelable(Full.class.getClassLoader());
                int readInt = parcel.readInt();
                ArrayList arrayList = new ArrayList(readInt);
                for (int i2 = 0; i2 != readInt; i2++) {
                    arrayList.add(parcel.readParcelable(Full.class.getClassLoader()));
                }
                return new Full(configuration, stripeIntent, arrayList, parcel.readInt() != 0, (LinkState) parcel.readParcelable(Full.class.getClassLoader()), parcel.readInt() != 0, (PaymentSelection) parcel.readParcelable(Full.class.getClassLoader()));
            }

            @Override
            public final Full[] newArray(int i2) {
                return new Full[i2];
            }
        }

        public static Full copy$default(Full full, PaymentSheet.Configuration configuration, StripeIntent stripeIntent, List list, boolean z, LinkState linkState, boolean z2, PaymentSelection paymentSelection, int i2, Object obj) {
            if ((i2 & 1) != 0) {
                configuration = full.config;
            }
            if ((i2 & 2) != 0) {
                stripeIntent = full.stripeIntent;
            }
            StripeIntent stripeIntent2 = stripeIntent;
            if ((i2 & 4) != 0) {
                list = full.customerPaymentMethods;
            }
            List list2 = list;
            if ((i2 & 8) != 0) {
                z = full.isGooglePayReady;
            }
            boolean z3 = z;
            if ((i2 & 16) != 0) {
                linkState = full.linkState;
            }
            LinkState linkState2 = linkState;
            if ((i2 & 32) != 0) {
                z2 = full.isEligibleForCardBrandChoice;
            }
            boolean z4 = z2;
            if ((i2 & 64) != 0) {
                paymentSelection = full.paymentSelection;
            }
            return full.copy(configuration, stripeIntent2, list2, z3, linkState2, z4, paymentSelection);
        }

        public final PaymentSheet.Configuration getConfig() {
            return this.config;
        }

        public final StripeIntent getStripeIntent() {
            return this.stripeIntent;
        }

        public final List<PaymentMethod> component3() {
            return this.customerPaymentMethods;
        }

        public final boolean getIsGooglePayReady() {
            return this.isGooglePayReady;
        }

        public final LinkState getLinkState() {
            return this.linkState;
        }

        public final boolean getIsEligibleForCardBrandChoice() {
            return this.isEligibleForCardBrandChoice;
        }

        public final PaymentSelection getPaymentSelection() {
            return this.paymentSelection;
        }

        public final Full copy(PaymentSheet.Configuration config, StripeIntent stripeIntent, List<PaymentMethod> customerPaymentMethods, boolean isGooglePayReady, LinkState linkState, boolean isEligibleForCardBrandChoice, PaymentSelection paymentSelection) {
            Intrinsics.checkNotNullParameter(config, "config");
            Intrinsics.checkNotNullParameter(stripeIntent, "stripeIntent");
            Intrinsics.checkNotNullParameter(customerPaymentMethods, "customerPaymentMethods");
            return new Full(config, stripeIntent, customerPaymentMethods, isGooglePayReady, linkState, isEligibleForCardBrandChoice, paymentSelection);
        }

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

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof Full)) {
                return false;
            }
            Full full = (Full) other;
            return Intrinsics.areEqual(this.config, full.config) && Intrinsics.areEqual(this.stripeIntent, full.stripeIntent) && Intrinsics.areEqual(this.customerPaymentMethods, full.customerPaymentMethods) && this.isGooglePayReady == full.isGooglePayReady && Intrinsics.areEqual(this.linkState, full.linkState) && this.isEligibleForCardBrandChoice == full.isEligibleForCardBrandChoice && Intrinsics.areEqual(this.paymentSelection, full.paymentSelection);
        }

        public int hashCode() {
            int hashCode = ((((this.config.hashCode() * 31) + this.stripeIntent.hashCode()) * 31) + this.customerPaymentMethods.hashCode()) * 31;
            boolean z = this.isGooglePayReady;
            int i2 = z;
            if (z != 0) {
                i2 = 1;
            }
            int i3 = (hashCode + i2) * 31;
            LinkState linkState = this.linkState;
            int hashCode2 = (i3 + (linkState == null ? 0 : linkState.hashCode())) * 31;
            boolean z2 = this.isEligibleForCardBrandChoice;
            int i4 = (hashCode2 + (z2 ? 1 : z2 ? 1 : 0)) * 31;
            PaymentSelection paymentSelection = this.paymentSelection;
            return i4 + (paymentSelection != null ? paymentSelection.hashCode() : 0);
        }

        public String toString() {
            return "Full(config=" + this.config + ", stripeIntent=" + this.stripeIntent + ", customerPaymentMethods=" + this.customerPaymentMethods + ", isGooglePayReady=" + this.isGooglePayReady + ", linkState=" + this.linkState + ", isEligibleForCardBrandChoice=" + this.isEligibleForCardBrandChoice + ", paymentSelection=" + this.paymentSelection + ")";
        }

        @Override
        public void writeToParcel(Parcel parcel, int flags) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeParcelable(this.config, flags);
            parcel.writeParcelable((Parcelable) this.stripeIntent, flags);
            List<PaymentMethod> list = this.customerPaymentMethods;
            parcel.writeInt(list.size());
            Iterator<PaymentMethod> it2 = list.iterator();
            while (it2.hasNext()) {
                parcel.writeParcelable((Parcelable) it2.next(), flags);
            }
            parcel.writeInt(this.isGooglePayReady ? 1 : 0);
            parcel.writeParcelable(this.linkState, flags);
            parcel.writeInt(this.isEligibleForCardBrandChoice ? 1 : 0);
            parcel.writeParcelable(this.paymentSelection, flags);
        }

        public Full(PaymentSheet.Configuration configuration, StripeIntent stripeIntent, List<PaymentMethod> list, boolean z, LinkState linkState, boolean z2, PaymentSelection paymentSelection) {
            Intrinsics.checkNotNullParameter(configuration, "config");
            Intrinsics.checkNotNullParameter(stripeIntent, "stripeIntent");
            Intrinsics.checkNotNullParameter(list, "customerPaymentMethods");
            this.config = configuration;
            this.stripeIntent = stripeIntent;
            this.customerPaymentMethods = list;
            this.isGooglePayReady = z;
            this.linkState = linkState;
            this.isEligibleForCardBrandChoice = z2;
            this.paymentSelection = paymentSelection;
        }

        public final PaymentSheet.Configuration getConfig() {
            return this.config;
        }

        public final StripeIntent getStripeIntent() {
            return this.stripeIntent;
        }

        public final List<PaymentMethod> getCustomerPaymentMethods() {
            return this.customerPaymentMethods;
        }

        public final boolean isGooglePayReady() {
            return this.isGooglePayReady;
        }

        public final LinkState getLinkState() {
            return this.linkState;
        }

        public final boolean isEligibleForCardBrandChoice() {
            return this.isEligibleForCardBrandChoice;
        }

        public final PaymentSelection getPaymentSelection() {
            return this.paymentSelection;
        }

        public final boolean getHasPaymentOptions() {
            return this.isGooglePayReady || this.linkState != null || (this.customerPaymentMethods.isEmpty() ^ true);
        }
    }
}