正在查看: Empower MX v1.29.4.340 应用的 w.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 w.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.cardview.widget.CNi.bZcstJdUJR;
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;
import x8.iqjI.PmCnkAs;
public final class w implements StripeIntent {
private final String F;
private final boolean G;
private final q H;
private final String I;
private final List J;
private final StripeIntent.Status K;
private final StripeIntent.Usage L;
private final e M;
private final List N;
private final List O;
private final StripeIntent.a P;
private final String Q;
private final String d;
private final a e;
private final long i;
private final String v;
private final String w;
public static final c R = new c(null);
public static final int S = 8;
public static final Parcelable.Creator<w> CREATOR = new d();
public static final class a {
private static final a[] F;
private static final xf.a G;
public static final C0368a e;
public static final a i = new a("Duplicate", 0, "duplicate");
public static final a v = new a("RequestedByCustomer", 1, "requested_by_customer");
public static final a w = new a("Abandoned", 2, "abandoned");
private final String d;
public static final class C0368a {
public C0368a(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 C0368a() {
}
}
static {
a[] a = a();
F = a;
G = xf.b.a(a);
e = new C0368a(null);
}
private a(String str, int i2, String str2) {
this.d = str2;
}
private static final a[] a() {
return new a[]{i, v, w};
}
public static xf.a d() {
return G;
}
public static a valueOf(String str) {
return (a) Enum.valueOf(a.class, str);
}
public static a[] values() {
return (a[]) F.clone();
}
}
public static final class b {
public static final a c = new a(null);
private static final Pattern d = Pattern.compile("^seti_[^_]+_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 b.d.matcher(str).matches();
}
private a() {
}
}
public b(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 Setup 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 b) && Intrinsics.d(this.a, ((b) obj).a);
}
public int hashCode() {
return this.a.hashCode();
}
public String toString() {
return "ClientSecret(value=" + this.a + ")";
}
}
public static final class c {
public c(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private c() {
}
}
public static final class d implements Parcelable.Creator {
@Override
public final w createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new w(parcel.readString(), parcel.readInt() == 0 ? null : a.valueOf(parcel.readString()), parcel.readLong(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt() != 0, parcel.readInt() == 0 ? null : q.CREATOR.createFromParcel(parcel), parcel.readString(), parcel.createStringArrayList(), parcel.readInt() == 0 ? null : StripeIntent.Status.valueOf(parcel.readString()), parcel.readInt() == 0 ? null : StripeIntent.Usage.valueOf(parcel.readString()), parcel.readInt() != 0 ? e.CREATOR.createFromParcel(parcel) : null, parcel.createStringArrayList(), parcel.createStringArrayList(), (StripeIntent.a) parcel.readParcelable(w.class.getClassLoader()), parcel.readString());
}
@Override
public final w[] newArray(int i) {
return new w[i];
}
}
public static final class e implements InterfaceC2990f {
private final q F;
private final c G;
private final String d;
private final String e;
private final String i;
private final String v;
private final String w;
public static final a H = new a(null);
public static final int I = 8;
public static final Parcelable.Creator<e> 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 e createFromParcel(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
return new e(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 e[] newArray(int i) {
return new e[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(PmCnkAs.jDFTAXtDFC, 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() {
}
}
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;
}
static {
c[] a2 = a();
J = a2;
K = xf.b.a(a2);
e = new a(null);
}
}
public e(String str, String str2, String str3, String str4, String str5, q qVar, c cVar) {
this.d = str;
this.e = str2;
this.i = str3;
this.v = str4;
this.w = str5;
this.F = qVar;
this.G = cVar;
}
public static e b(e eVar, String str, String str2, String str3, String str4, String str5, q qVar, c cVar, int i, Object obj) {
if ((i & 1) != 0) {
str = eVar.d;
}
if ((i & 2) != 0) {
str2 = eVar.e;
}
String str6 = str2;
if ((i & 4) != 0) {
str3 = eVar.i;
}
String str7 = str3;
if ((i & 8) != 0) {
str4 = eVar.v;
}
String str8 = str4;
if ((i & 16) != 0) {
str5 = eVar.w;
}
String str9 = str5;
if ((i & 32) != 0) {
qVar = eVar.F;
}
q qVar2 = qVar;
if ((i & 64) != 0) {
cVar = eVar.G;
}
return eVar.a(str, str6, str7, str8, str9, qVar2, cVar);
}
public final e a(String str, String str2, String str3, String str4, String str5, q qVar, c cVar) {
return new e(str, str2, str3, str4, str5, qVar, cVar);
}
public final String c() {
return this.v;
}
public final c d() {
return this.G;
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof e)) {
return false;
}
e eVar = (e) obj;
return Intrinsics.d(this.d, eVar.d) && Intrinsics.d(this.e, eVar.e) && Intrinsics.d(this.i, eVar.i) && Intrinsics.d(this.v, eVar.v) && Intrinsics.d(this.w, eVar.w) && Intrinsics.d(this.F, eVar.F) && this.G == eVar.G;
}
public final String getCode() {
return this.d;
}
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;
q qVar = this.F;
int hashCode6 = (hashCode5 + (qVar == null ? 0 : qVar.hashCode())) * 31;
c cVar = this.G;
return hashCode6 + (cVar != null ? cVar.hashCode() : 0);
}
public String toString() {
return "Error(code=" + this.d + ", declineCode=" + this.e + bZcstJdUJR.Aqdwcgvfydhn + this.i + ", message=" + this.v + ", param=" + this.w + ", paymentMethod=" + this.F + ", type=" + this.G + ")";
}
@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);
q qVar = this.F;
if (qVar == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
qVar.writeToParcel(parcel, i);
}
c cVar = this.G;
if (cVar == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(cVar.name());
}
}
}
public w(String str, a aVar, long j, String str2, String str3, String str4, boolean z, q qVar, String str5, List list, StripeIntent.Status status, StripeIntent.Usage usage, e eVar, List list2, List list3, StripeIntent.a aVar2, String str6) {
Intrinsics.checkNotNullParameter(list, "paymentMethodTypes");
Intrinsics.checkNotNullParameter(list2, "unactivatedPaymentMethods");
Intrinsics.checkNotNullParameter(list3, "linkFundingSources");
this.d = str;
this.e = aVar;
this.i = j;
this.v = str2;
this.w = str3;
this.F = str4;
this.G = z;
this.H = qVar;
this.I = str5;
this.J = list;
this.K = status;
this.L = usage;
this.M = eVar;
this.N = list2;
this.O = list3;
this.P = aVar2;
this.Q = str6;
}
@Override
public StripeIntent.a J() {
return this.P;
}
@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.c) {
return StripeIntent.NextActionType.K;
}
boolean z = true;
if (!(J instanceof StripeIntent.a.C0317a ? true : J instanceof StripeIntent.a.b ? true : J instanceof StripeIntent.a.n ? true : J instanceof StripeIntent.a.l ? true : J instanceof StripeIntent.a.k) && J != null) {
z = false;
}
if (z) {
return null;
}
throw new NoWhenBranchMatchedException();
}
@Override
public List O0() {
return this.N;
}
@Override
public boolean V1() {
return this.G;
}
public final w a(String str, a aVar, long j, String str2, String str3, String str4, boolean z, q qVar, String str5, List list, StripeIntent.Status status, StripeIntent.Usage usage, e eVar, List list2, List list3, StripeIntent.a aVar2, String str6) {
Intrinsics.checkNotNullParameter(list, "paymentMethodTypes");
Intrinsics.checkNotNullParameter(list2, "unactivatedPaymentMethods");
Intrinsics.checkNotNullParameter(list3, "linkFundingSources");
return new w(str, aVar, j, str2, str3, str4, z, qVar, str5, list, status, usage, eVar, list2, list3, aVar2, str6);
}
public final e c() {
return this.M;
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof w)) {
return false;
}
w wVar = (w) obj;
return Intrinsics.d(this.d, wVar.d) && this.e == wVar.e && this.i == wVar.i && Intrinsics.d(this.v, wVar.v) && Intrinsics.d(this.w, wVar.w) && Intrinsics.d(this.F, wVar.F) && this.G == wVar.G && Intrinsics.d(this.H, wVar.H) && Intrinsics.d(this.I, wVar.I) && Intrinsics.d(this.J, wVar.J) && this.K == wVar.K && this.L == wVar.L && Intrinsics.d(this.M, wVar.M) && Intrinsics.d(this.N, wVar.N) && Intrinsics.d(this.O, wVar.O) && Intrinsics.d(this.P, wVar.P) && Intrinsics.d(this.Q, wVar.Q);
}
@Override
public String g() {
return this.d;
}
@Override
public String getCountryCode() {
return this.v;
}
@Override
public q h0() {
return this.H;
}
public int hashCode() {
String str = this.d;
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
a aVar = this.e;
int hashCode2 = (((hashCode + (aVar == null ? 0 : aVar.hashCode())) * 31) + Long.hashCode(this.i)) * 31;
String str2 = this.v;
int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
String str3 = this.w;
int hashCode4 = (hashCode3 + (str3 == null ? 0 : str3.hashCode())) * 31;
String str4 = this.F;
int hashCode5 = (((hashCode4 + (str4 == null ? 0 : str4.hashCode())) * 31) + Boolean.hashCode(this.G)) * 31;
q qVar = this.H;
int hashCode6 = (hashCode5 + (qVar == null ? 0 : qVar.hashCode())) * 31;
String str5 = this.I;
int hashCode7 = (((hashCode6 + (str5 == null ? 0 : str5.hashCode())) * 31) + this.J.hashCode()) * 31;
StripeIntent.Status status = this.K;
int hashCode8 = (hashCode7 + (status == null ? 0 : status.hashCode())) * 31;
StripeIntent.Usage usage = this.L;
int hashCode9 = (hashCode8 + (usage == null ? 0 : usage.hashCode())) * 31;
e eVar = this.M;
int hashCode10 = (((((hashCode9 + (eVar == null ? 0 : eVar.hashCode())) * 31) + this.N.hashCode()) * 31) + this.O.hashCode()) * 31;
StripeIntent.a aVar2 = this.P;
int hashCode11 = (hashCode10 + (aVar2 == null ? 0 : aVar2.hashCode())) * 31;
String str6 = this.Q;
return hashCode11 + (str6 != null ? str6.hashCode() : 0);
}
@Override
public List k1() {
return this.O;
}
@Override
public String m() {
return this.w;
}
@Override
public boolean m1() {
return CollectionsKt.a0(X.g(new StripeIntent.Status[]{StripeIntent.Status.v, StripeIntent.Status.H}), o());
}
@Override
public StripeIntent.Status o() {
return this.K;
}
@Override
public boolean q0() {
return o() == StripeIntent.Status.w;
}
public String toString() {
return "SetupIntent(id=" + this.d + ", cancellationReason=" + this.e + ", created=" + this.i + ", countryCode=" + this.v + ", clientSecret=" + this.w + ", description=" + this.F + ", isLiveMode=" + this.G + ", paymentMethod=" + this.H + ", paymentMethodId=" + this.I + ", paymentMethodTypes=" + this.J + ", status=" + this.K + ", usage=" + this.L + ", lastSetupError=" + this.M + ", unactivatedPaymentMethods=" + this.N + ", linkFundingSources=" + this.O + ", nextActionData=" + this.P + ", paymentMethodOptionsJsonString=" + this.Q + ")";
}
@Override
public List v() {
return this.J;
}
@Override
public void writeToParcel(Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
parcel.writeString(this.d);
a aVar = this.e;
if (aVar == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(aVar.name());
}
parcel.writeLong(this.i);
parcel.writeString(this.v);
parcel.writeString(this.w);
parcel.writeString(this.F);
parcel.writeInt(this.G ? 1 : 0);
q qVar = this.H;
if (qVar == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
qVar.writeToParcel(parcel, i);
}
parcel.writeString(this.I);
parcel.writeStringList(this.J);
StripeIntent.Status status = this.K;
if (status == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(status.name());
}
StripeIntent.Usage usage = this.L;
if (usage == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeString(usage.name());
}
e eVar = this.M;
if (eVar == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
eVar.writeToParcel(parcel, i);
}
parcel.writeStringList(this.N);
parcel.writeStringList(this.O);
parcel.writeParcelable(this.P, i);
parcel.writeString(this.Q);
}
@Override
public Map z1() {
Map b2;
String str = this.Q;
return (str == null || (b2 = C2989e.a.b(new JSONObject(str))) == null) ? P.i() : b2;
}
public w(String str, a aVar, long j, String str2, String str3, String str4, boolean z, q qVar, String str5, List list, StripeIntent.Status status, StripeIntent.Usage usage, e eVar, List list2, List list3, StripeIntent.a aVar2, String str6, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(str, aVar, j, str2, str3, str4, z, (i & 128) != 0 ? null : qVar, str5, list, status, usage, (i & 4096) != 0 ? null : eVar, list2, list3, aVar2, (i & 65536) != 0 ? null : str6);
}
}