导航菜单

页面标题

页面副标题

Empower MX v1.29.4.340 - p.java 源代码

正在查看: Empower MX v1.29.4.340 应用的 p.java JAVA 源代码文件

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


package com.stripe.android.model;

import Wd.wC.QUDS;
import android.os.Parcel;
import android.os.Parcelable;
import com.stripe.android.model.StripeIntent;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.regex.Pattern;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
import kotlin.collections.P;
import kotlin.collections.X;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import org.json.JSONObject;
import v8.C2989e;
import v8.InterfaceC2990f;

public final class p implements StripeIntent {
    private final b F;
    private final String G;
    private final e H;
    private final String I;
    private final long J;
    private final String K;
    private final String L;
    private final boolean M;
    private final q N;
    private final String O;
    private final String P;
    private final StripeIntent.Status Q;
    private final StripeIntent.Usage R;
    private final g S;
    private final h T;
    private final List U;
    private final List V;
    private final StripeIntent.a W;
    private final String X;
    private final String d;
    private final List e;
    private final Long i;
    private final long v;
    private final a w;
    public static final d Y = new d(null);
    public static final int Z = 8;
    public static final Parcelable.Creator<p> CREATOR = new f();

    public static final class a {
        private static final a[] J;
        private static final xf.a K;
        public static final C0355a e;
        private final String d;
        public static final a i = new a("Duplicate", 0, "duplicate");
        public static final a v = new a("Fraudulent", 1, "fraudulent");
        public static final a w = new a("RequestedByCustomer", 2, "requested_by_customer");
        public static final a F = new a("Abandoned", 3, "abandoned");
        public static final a G = new a("FailedInvoice", 4, "failed_invoice");
        public static final a H = new a("VoidInvoice", 5, "void_invoice");
        public static final a I = new a("Automatic", 6, "automatic");

        public static final class C0355a {
            public C0355a(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            public final a a(String str) {
                Object obj;
                Iterator it = a.d().iterator();
                while (true) {
                    if (!it.hasNext()) {
                        obj = null;
                        break;
                    }
                    obj = it.next();
                    if (Intrinsics.d(((a) obj).d, str)) {
                        break;
                    }
                }
                return (a) obj;
            }

            private C0355a() {
            }
        }

        static {
            a[] a = a();
            J = a;
            K = xf.b.a(a);
            e = new C0355a(null);
        }

        private a(String str, int i2, String str2) {
            this.d = str2;
        }

        private static final a[] a() {
            return new a[]{i, v, w, F, G, H, I};
        }

        public static xf.a d() {
            return K;
        }

        public static a valueOf(String str) {
            return (a) Enum.valueOf(a.class, str);
        }

        public static a[] values() {
            return (a[]) J.clone();
        }
    }

    public static final class b {
        private static final b[] F;
        private static final xf.a G;
        public static final a e;
        public static final b i = new b("Automatic", 0, "automatic");
        public static final b v = new b("AutomaticAsync", 1, "automatic_async");
        public static final b w = new b("Manual", 2, "manual");
        private final String d;

        public static final class a {
            public a(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            public final b a(String str) {
                Object obj;
                Iterator it = b.d().iterator();
                while (true) {
                    if (!it.hasNext()) {
                        obj = null;
                        break;
                    }
                    obj = it.next();
                    if (Intrinsics.d(((b) obj).b(), str)) {
                        break;
                    }
                }
                b bVar = (b) obj;
                return bVar == null ? b.i : bVar;
            }

            private a() {
            }
        }

        static {
            b[] a2 = a();
            F = a2;
            G = xf.b.a(a2);
            e = new a(null);
        }

        private b(String str, int i2, String str2) {
            this.d = str2;
        }

        private static final b[] a() {
            return new b[]{i, v, w};
        }

        public static xf.a d() {
            return G;
        }

        public static b valueOf(String str) {
            return (b) Enum.valueOf(b.class, str);
        }

        public static b[] values() {
            return (b[]) F.clone();
        }

        public final String b() {
            return this.d;
        }
    }

    public static final class c {
        public static final a c = new a(null);
        private static final Pattern d = Pattern.compile("^pi_[^_]+_secret_[^_]+$");
        private final String a;
        private final String b;

        public static final class a {
            public a(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            public final boolean a(String str) {
                Intrinsics.checkNotNullParameter(str, "value");
                return c.d.matcher(str).matches();
            }

            private a() {
            }
        }

        public c(String str) {
            List m;
            Intrinsics.checkNotNullParameter(str, "value");
            this.a = str;
            List k = new Regex("_secret").k(str, 0);
            if (!k.isEmpty()) {
                ListIterator listIterator = k.listIterator(k.size());
                while (listIterator.hasPrevious()) {
                    if (((String) listIterator.previous()).length() != 0) {
                        m = CollectionsKt.R0(k, listIterator.nextIndex() + 1);
                        break;
                    }
                }
            }
            m = CollectionsKt.m();
            this.b = ((String[]) m.toArray(new String[0]))[0];
            if (c.a(this.a)) {
                return;
            }
            throw new IllegalArgumentException(("Invalid Payment Intent client secret: " + this.a).toString());
        }

        public final String b() {
            return this.b;
        }

        public final String c() {
            return this.a;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof c) && Intrinsics.d(this.a, ((c) obj).a);
        }

        public int hashCode() {
            return this.a.hashCode();
        }

        public String toString() {
            return "ClientSecret(value=" + this.a + ")";
        }
    }

    public static final class d {
        public d(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private d() {
        }
    }

    public static final class e {
        private static final xf.a F;
        public static final a e;
        public static final e i = new e("Automatic", 0, "automatic");
        public static final e v = new e("Manual", 1, "manual");
        private static final e[] w;
        private final String d;

        public static final class a {
            public a(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            public final e a(String str) {
                Object obj;
                Iterator it = e.d().iterator();
                while (true) {
                    if (!it.hasNext()) {
                        obj = null;
                        break;
                    }
                    obj = it.next();
                    if (Intrinsics.d(((e) obj).d, str)) {
                        break;
                    }
                }
                e eVar = (e) obj;
                return eVar == null ? e.i : eVar;
            }

            private a() {
            }
        }

        static {
            e[] a2 = a();
            w = a2;
            F = xf.b.a(a2);
            e = new a(null);
        }

        private e(String str, int i2, String str2) {
            this.d = str2;
        }

        private static final e[] a() {
            return new e[]{i, v};
        }

        public static xf.a d() {
            return F;
        }

        public static e valueOf(String str) {
            return (e) Enum.valueOf(e.class, str);
        }

        public static e[] values() {
            return (e[]) w.clone();
        }
    }

    public static final class f implements Parcelable.Creator {
        @Override
        public final p createFromParcel(Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            return new p(parcel.readString(), parcel.createStringArrayList(), parcel.readInt() == 0 ? null : Long.valueOf(parcel.readLong()), parcel.readLong(), parcel.readInt() == 0 ? null : a.valueOf(parcel.readString()), b.valueOf(parcel.readString()), parcel.readString(), e.valueOf(parcel.readString()), parcel.readString(), parcel.readLong(), parcel.readString(), parcel.readString(), parcel.readInt() != 0, parcel.readInt() == 0 ? null : q.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : StripeIntent.Status.valueOf(parcel.readString()), parcel.readInt() == 0 ? null : StripeIntent.Usage.valueOf(parcel.readString()), parcel.readInt() == 0 ? null : g.CREATOR.createFromParcel(parcel), parcel.readInt() != 0 ? h.CREATOR.createFromParcel(parcel) : null, parcel.createStringArrayList(), parcel.createStringArrayList(), (StripeIntent.a) parcel.readParcelable(p.class.getClassLoader()), parcel.readString());
        }

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

    public static final class g implements InterfaceC2990f {
        private final String F;
        private final q G;
        private final c H;
        private final String d;
        private final String e;
        private final String i;
        private final String v;
        private final String w;
        public static final a I = new a(null);
        public static final int J = 8;
        public static final Parcelable.Creator<g> CREATOR = new b();

        public static final class a {
            public a(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private a() {
            }
        }

        public static final class b implements Parcelable.Creator {
            @Override
            public final g createFromParcel(Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new g(parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : q.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : c.valueOf(parcel.readString()));
            }

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

        public static final class c {
            private static final c[] J;
            private static final xf.a K;
            public static final a e;
            private final String d;
            public static final c i = new c("ApiConnectionError", 0, "api_connection_error");
            public static final c v = new c("ApiError", 1, "api_error");
            public static final c w = new c("AuthenticationError", 2, "authentication_error");
            public static final c F = new c("CardError", 3, "card_error");
            public static final c G = new c("IdempotencyError", 4, "idempotency_error");
            public static final c H = new c("InvalidRequestError", 5, "invalid_request_error");
            public static final c I = new c("RateLimitError", 6, "rate_limit_error");

            public static final class a {
                public a(DefaultConstructorMarker defaultConstructorMarker) {
                    this();
                }

                public final c a(String str) {
                    Object obj;
                    Iterator it = c.d().iterator();
                    while (true) {
                        if (!it.hasNext()) {
                            obj = null;
                            break;
                        }
                        obj = it.next();
                        if (Intrinsics.d(((c) obj).b(), str)) {
                            break;
                        }
                    }
                    return (c) obj;
                }

                private a() {
                }
            }

            static {
                c[] a2 = a();
                J = a2;
                K = xf.b.a(a2);
                e = new a(null);
            }

            private c(String str, int i2, String str2) {
                this.d = str2;
            }

            private static final c[] a() {
                return new c[]{i, v, w, F, G, H, I};
            }

            public static xf.a d() {
                return K;
            }

            public static c valueOf(String str) {
                return (c) Enum.valueOf(c.class, str);
            }

            public static c[] values() {
                return (c[]) J.clone();
            }

            public final String b() {
                return this.d;
            }
        }

        public g(String str, String str2, String str3, String str4, String str5, String str6, q qVar, c cVar) {
            this.d = str;
            this.e = str2;
            this.i = str3;
            this.v = str4;
            this.w = str5;
            this.F = str6;
            this.G = qVar;
            this.H = cVar;
        }

        public final g a(String str, String str2, String str3, String str4, String str5, String str6, q qVar, c cVar) {
            return new g(str, str2, str3, str4, str5, str6, qVar, cVar);
        }

        public final String c() {
            return this.w;
        }

        public final c d() {
            return this.H;
        }

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

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof g)) {
                return false;
            }
            g gVar = (g) obj;
            return Intrinsics.d(this.d, gVar.d) && Intrinsics.d(this.e, gVar.e) && Intrinsics.d(this.i, gVar.i) && Intrinsics.d(this.v, gVar.v) && Intrinsics.d(this.w, gVar.w) && Intrinsics.d(this.F, gVar.F) && Intrinsics.d(this.G, gVar.G) && this.H == gVar.H;
        }

        public final String getCode() {
            return this.e;
        }

        public int hashCode() {
            String str = this.d;
            int hashCode = (str == null ? 0 : str.hashCode()) * 31;
            String str2 = this.e;
            int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.i;
            int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
            String str4 = this.v;
            int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
            String str5 = this.w;
            int hashCode5 = (hashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31;
            String str6 = this.F;
            int hashCode6 = (hashCode5 + (str6 == null ? 0 : str6.hashCode())) * 31;
            q qVar = this.G;
            int hashCode7 = (hashCode6 + (qVar == null ? 0 : qVar.hashCode())) * 31;
            c cVar = this.H;
            return hashCode7 + (cVar != null ? cVar.hashCode() : 0);
        }

        public String toString() {
            return "Error(charge=" + this.d + ", code=" + this.e + ", declineCode=" + this.i + ", docUrl=" + this.v + ", message=" + this.w + ", param=" + this.F + ", paymentMethod=" + this.G + ", type=" + this.H + ")";
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            parcel.writeString(this.d);
            parcel.writeString(this.e);
            parcel.writeString(this.i);
            parcel.writeString(this.v);
            parcel.writeString(this.w);
            parcel.writeString(this.F);
            q qVar = this.G;
            if (qVar == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                qVar.writeToParcel(parcel, i);
            }
            c cVar = this.H;
            if (cVar == null) {
                parcel.writeInt(0);
            } else {
                parcel.writeInt(1);
                parcel.writeString(cVar.name());
            }
        }
    }

    public static final class h implements InterfaceC2990f {
        public static final Parcelable.Creator<h> CREATOR = new a();
        private final C1459a d;
        private final String e;
        private final String i;
        private final String v;
        private final String w;

        public static final class a implements Parcelable.Creator {
            @Override
            public final h createFromParcel(Parcel parcel) {
                Intrinsics.checkNotNullParameter(parcel, "parcel");
                return new h(C1459a.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString());
            }

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

        public h(C1459a c1459a, String str, String str2, String str3, String str4) {
            Intrinsics.checkNotNullParameter(c1459a, "address");
            this.d = c1459a;
            this.e = str;
            this.i = str2;
            this.v = str3;
            this.w = str4;
        }

        public final C1459a a() {
            return this.d;
        }

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

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof h)) {
                return false;
            }
            h hVar = (h) obj;
            return Intrinsics.d(this.d, hVar.d) && Intrinsics.d(this.e, hVar.e) && Intrinsics.d(this.i, hVar.i) && Intrinsics.d(this.v, hVar.v) && Intrinsics.d(this.w, hVar.w);
        }

        public final String getName() {
            return this.i;
        }

        public int hashCode() {
            int hashCode = this.d.hashCode() * 31;
            String str = this.e;
            int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
            String str2 = this.i;
            int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.v;
            int hashCode4 = (hashCode3 + (str3 == null ? 0 : str3.hashCode())) * 31;
            String str4 = this.w;
            return hashCode4 + (str4 != null ? str4.hashCode() : 0);
        }

        public String toString() {
            return "Shipping(address=" + this.d + ", carrier=" + this.e + ", name=" + this.i + ", phone=" + this.v + ", trackingNumber=" + this.w + ")";
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            Intrinsics.checkNotNullParameter(parcel, "out");
            this.d.writeToParcel(parcel, i);
            parcel.writeString(this.e);
            parcel.writeString(this.i);
            parcel.writeString(this.v);
            parcel.writeString(this.w);
        }
    }

    public class i {
        public static final int[] a;

        static {
            int[] iArr = new int[StripeIntent.Usage.values().length];
            try {
                iArr[StripeIntent.Usage.i.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[StripeIntent.Usage.v.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[StripeIntent.Usage.w.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            a = iArr;
        }
    }

    public p(String str, List list, Long l, long j, a aVar, b bVar, String str2, e eVar, String str3, long j2, String str4, String str5, boolean z, q qVar, String str6, String str7, StripeIntent.Status status, StripeIntent.Usage usage, g gVar, h hVar, List list2, List list3, StripeIntent.a aVar2, String str8) {
        Intrinsics.checkNotNullParameter(list, "paymentMethodTypes");
        Intrinsics.checkNotNullParameter(bVar, "captureMethod");
        Intrinsics.checkNotNullParameter(eVar, "confirmationMethod");
        Intrinsics.checkNotNullParameter(list2, "unactivatedPaymentMethods");
        Intrinsics.checkNotNullParameter(list3, "linkFundingSources");
        this.d = str;
        this.e = list;
        this.i = l;
        this.v = j;
        this.w = aVar;
        this.F = bVar;
        this.G = str2;
        this.H = eVar;
        this.I = str3;
        this.J = j2;
        this.K = str4;
        this.L = str5;
        this.M = z;
        this.N = qVar;
        this.O = str6;
        this.P = str7;
        this.Q = status;
        this.R = usage;
        this.S = gVar;
        this.T = hVar;
        this.U = list2;
        this.V = list3;
        this.W = aVar2;
        this.X = str8;
    }

    private final boolean l() {
        StripeIntent.Usage usage = this.R;
        int i2 = usage == null ? -1 : i.a[usage.ordinal()];
        if (i2 == -1) {
            return false;
        }
        if (i2 == 1 || i2 == 2) {
            return true;
        }
        if (i2 == 3) {
            return false;
        }
        throw new NoWhenBranchMatchedException();
    }

    @Override
    public StripeIntent.a J() {
        return this.W;
    }

    @Override
    public StripeIntent.NextActionType L() {
        StripeIntent.a J = J();
        if (J instanceof StripeIntent.a.j) {
            return StripeIntent.NextActionType.v;
        }
        if (J instanceof StripeIntent.a.i) {
            return StripeIntent.NextActionType.i;
        }
        if (J instanceof StripeIntent.a.g) {
            return StripeIntent.NextActionType.w;
        }
        if (J instanceof StripeIntent.a.d) {
            return StripeIntent.NextActionType.L;
        }
        if (J instanceof StripeIntent.a.e) {
            return StripeIntent.NextActionType.M;
        }
        if (J instanceof StripeIntent.a.f) {
            return StripeIntent.NextActionType.N;
        }
        if (J instanceof StripeIntent.a.m) {
            return StripeIntent.NextActionType.I;
        }
        if (J instanceof StripeIntent.a.l) {
            return StripeIntent.NextActionType.J;
        }
        if (J instanceof StripeIntent.a.c) {
            return StripeIntent.NextActionType.K;
        }
        if (J instanceof StripeIntent.a.b) {
            return StripeIntent.NextActionType.G;
        }
        if (J instanceof StripeIntent.a.k) {
            return StripeIntent.NextActionType.O;
        }
        boolean z = true;
        if (!(J instanceof StripeIntent.a.C0317a ? true : J instanceof StripeIntent.a.n) && J != null) {
            z = false;
        }
        if (z) {
            return null;
        }
        throw new NoWhenBranchMatchedException();
    }

    @Override
    public List O0() {
        return this.U;
    }

    public final StripeIntent.Usage P0() {
        return this.R;
    }

    @Override
    public boolean V1() {
        return this.M;
    }

    public final p a(String str, List list, Long l, long j, a aVar, b bVar, String str2, e eVar, String str3, long j2, String str4, String str5, boolean z, q qVar, String str6, String str7, StripeIntent.Status status, StripeIntent.Usage usage, g gVar, h hVar, List list2, List list3, StripeIntent.a aVar2, String str8) {
        Intrinsics.checkNotNullParameter(list, "paymentMethodTypes");
        Intrinsics.checkNotNullParameter(bVar, "captureMethod");
        Intrinsics.checkNotNullParameter(eVar, "confirmationMethod");
        Intrinsics.checkNotNullParameter(list2, "unactivatedPaymentMethods");
        Intrinsics.checkNotNullParameter(list3, "linkFundingSources");
        return new p(str, list, l, j, aVar, bVar, str2, eVar, str3, j2, str4, str5, z, qVar, str6, str7, status, usage, gVar, hVar, list2, list3, aVar2, str8);
    }

    public final Long c() {
        return this.i;
    }

    public final e d() {
        return this.H;
    }

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

    public final g e() {
        return this.S;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof p)) {
            return false;
        }
        p pVar = (p) obj;
        return Intrinsics.d(this.d, pVar.d) && Intrinsics.d(this.e, pVar.e) && Intrinsics.d(this.i, pVar.i) && this.v == pVar.v && this.w == pVar.w && this.F == pVar.F && Intrinsics.d(this.G, pVar.G) && this.H == pVar.H && Intrinsics.d(this.I, pVar.I) && this.J == pVar.J && Intrinsics.d(this.K, pVar.K) && Intrinsics.d(this.L, pVar.L) && this.M == pVar.M && Intrinsics.d(this.N, pVar.N) && Intrinsics.d(this.O, pVar.O) && Intrinsics.d(this.P, pVar.P) && this.Q == pVar.Q && this.R == pVar.R && Intrinsics.d(this.S, pVar.S) && Intrinsics.d(this.T, pVar.T) && Intrinsics.d(this.U, pVar.U) && Intrinsics.d(this.V, pVar.V) && Intrinsics.d(this.W, pVar.W) && Intrinsics.d(this.X, pVar.X);
    }

    public final boolean f() {
        JSONObject optJSONObject;
        String str = this.X;
        if (str == null || (optJSONObject = new JSONObject(str).optJSONObject("card")) == null) {
            return false;
        }
        return optJSONObject.optBoolean("require_cvc_recollection");
    }

    @Override
    public String g() {
        return this.d;
    }

    @Override
    public String getCountryCode() {
        return this.I;
    }

    @Override
    public q h0() {
        return this.N;
    }

    public int hashCode() {
        String str = this.d;
        int hashCode = (((str == null ? 0 : str.hashCode()) * 31) + this.e.hashCode()) * 31;
        Long l = this.i;
        int hashCode2 = (((hashCode + (l == null ? 0 : l.hashCode())) * 31) + Long.hashCode(this.v)) * 31;
        a aVar = this.w;
        int hashCode3 = (((hashCode2 + (aVar == null ? 0 : aVar.hashCode())) * 31) + this.F.hashCode()) * 31;
        String str2 = this.G;
        int hashCode4 = (((hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31) + this.H.hashCode()) * 31;
        String str3 = this.I;
        int hashCode5 = (((hashCode4 + (str3 == null ? 0 : str3.hashCode())) * 31) + Long.hashCode(this.J)) * 31;
        String str4 = this.K;
        int hashCode6 = (hashCode5 + (str4 == null ? 0 : str4.hashCode())) * 31;
        String str5 = this.L;
        int hashCode7 = (((hashCode6 + (str5 == null ? 0 : str5.hashCode())) * 31) + Boolean.hashCode(this.M)) * 31;
        q qVar = this.N;
        int hashCode8 = (hashCode7 + (qVar == null ? 0 : qVar.hashCode())) * 31;
        String str6 = this.O;
        int hashCode9 = (hashCode8 + (str6 == null ? 0 : str6.hashCode())) * 31;
        String str7 = this.P;
        int hashCode10 = (hashCode9 + (str7 == null ? 0 : str7.hashCode())) * 31;
        StripeIntent.Status status = this.Q;
        int hashCode11 = (hashCode10 + (status == null ? 0 : status.hashCode())) * 31;
        StripeIntent.Usage usage = this.R;
        int hashCode12 = (hashCode11 + (usage == null ? 0 : usage.hashCode())) * 31;
        g gVar = this.S;
        int hashCode13 = (hashCode12 + (gVar == null ? 0 : gVar.hashCode())) * 31;
        h hVar = this.T;
        int hashCode14 = (((((hashCode13 + (hVar == null ? 0 : hVar.hashCode())) * 31) + this.U.hashCode()) * 31) + this.V.hashCode()) * 31;
        StripeIntent.a aVar2 = this.W;
        int hashCode15 = (hashCode14 + (aVar2 == null ? 0 : aVar2.hashCode())) * 31;
        String str8 = this.X;
        return hashCode15 + (str8 != null ? str8.hashCode() : 0);
    }

    public final h i() {
        return this.T;
    }

    public final boolean k(String str) {
        Intrinsics.checkNotNullParameter(str, "code");
        return l() || j(str);
    }

    @Override
    public List k1() {
        return this.V;
    }

    @Override
    public String m() {
        return this.G;
    }

    @Override
    public boolean m1() {
        return CollectionsKt.a0(X.g(new StripeIntent.Status[]{StripeIntent.Status.v, StripeIntent.Status.I, StripeIntent.Status.H}), o());
    }

    @Override
    public StripeIntent.Status o() {
        return this.Q;
    }

    public final String p1() {
        return this.K;
    }

    @Override
    public boolean q0() {
        return o() == StripeIntent.Status.w;
    }

    public String toString() {
        return "PaymentIntent(id=" + this.d + ", paymentMethodTypes=" + this.e + ", amount=" + this.i + ", canceledAt=" + this.v + ", cancellationReason=" + this.w + ", captureMethod=" + this.F + ", clientSecret=" + this.G + ", confirmationMethod=" + this.H + ", countryCode=" + this.I + ", created=" + this.J + ", currency=" + this.K + ", description=" + this.L + ", isLiveMode=" + this.M + ", paymentMethod=" + this.N + ", paymentMethodId=" + this.O + ", receiptEmail=" + this.P + ", status=" + this.Q + ", setupFutureUsage=" + this.R + ", lastPaymentError=" + this.S + ", shipping=" + this.T + ", unactivatedPaymentMethods=" + this.U + ", linkFundingSources=" + this.V + ", nextActionData=" + this.W + ", paymentMethodOptionsJsonString=" + this.X + ")";
    }

    @Override
    public List v() {
        return this.e;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i2) {
        Intrinsics.checkNotNullParameter(parcel, "out");
        parcel.writeString(this.d);
        parcel.writeStringList(this.e);
        Long l = this.i;
        if (l == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            parcel.writeLong(l.longValue());
        }
        parcel.writeLong(this.v);
        a aVar = this.w;
        if (aVar == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            parcel.writeString(aVar.name());
        }
        parcel.writeString(this.F.name());
        parcel.writeString(this.G);
        parcel.writeString(this.H.name());
        parcel.writeString(this.I);
        parcel.writeLong(this.J);
        parcel.writeString(this.K);
        parcel.writeString(this.L);
        parcel.writeInt(this.M ? 1 : 0);
        q qVar = this.N;
        if (qVar == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            qVar.writeToParcel(parcel, i2);
        }
        parcel.writeString(this.O);
        parcel.writeString(this.P);
        StripeIntent.Status status = this.Q;
        if (status == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            parcel.writeString(status.name());
        }
        StripeIntent.Usage usage = this.R;
        if (usage == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            parcel.writeString(usage.name());
        }
        g gVar = this.S;
        if (gVar == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            gVar.writeToParcel(parcel, i2);
        }
        h hVar = this.T;
        if (hVar == null) {
            parcel.writeInt(0);
        } else {
            parcel.writeInt(1);
            hVar.writeToParcel(parcel, i2);
        }
        parcel.writeStringList(this.U);
        parcel.writeStringList(this.V);
        parcel.writeParcelable(this.W, i2);
        parcel.writeString(this.X);
    }

    @Override
    public Map z1() {
        Map b2;
        String str = this.X;
        return (str == null || (b2 = C2989e.a.b(new JSONObject(str))) == null) ? P.i() : b2;
    }

    private final boolean j(String str) {
        JSONObject optJSONObject;
        String str2 = this.X;
        if (str2 == null || (optJSONObject = new JSONObject(str2).optJSONObject(str)) == null) {
            return false;
        }
        return optJSONObject.has(QUDS.DRAHsEEghnGXPds);
    }

    public p(String str, List list, Long l, long j, a aVar, b bVar, String str2, e eVar, String str3, long j2, String str4, String str5, boolean z, q qVar, String str6, String str7, StripeIntent.Status status, StripeIntent.Usage usage, g gVar, h hVar, List list2, List list3, StripeIntent.a aVar2, String str8, int i2, DefaultConstructorMarker defaultConstructorMarker) {
        this(str, list, l, (i2 & 8) != 0 ? 0L : j, (i2 & 16) != 0 ? null : aVar, (i2 & 32) != 0 ? b.i : bVar, str2, (i2 & 128) != 0 ? e.i : eVar, str3, j2, str4, (i2 & 2048) != 0 ? null : str5, z, (i2 & 8192) != 0 ? null : qVar, (i2 & 16384) != 0 ? null : str6, (32768 & i2) != 0 ? null : str7, (65536 & i2) != 0 ? null : status, (131072 & i2) != 0 ? null : usage, (262144 & i2) != 0 ? null : gVar, (524288 & i2) != 0 ? null : hVar, list2, (2097152 & i2) != 0 ? CollectionsKt.m() : list3, (4194304 & i2) != 0 ? null : aVar2, (i2 & 8388608) != 0 ? null : str8);
    }
}