正在查看: Rilo v2.0.21 应用的 NextActionDataParser.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Rilo v2.0.21 应用的 NextActionDataParser.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.model.parsers;
import android.net.Uri;
import com.stripe.android.core.model.StripeJsonUtils;
import com.stripe.android.core.model.parsers.ModelJsonParser;
import com.stripe.android.model.MicrodepositType;
import com.stripe.android.model.StripeIntent;
import com.stripe.android.model.WeChat;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000e\b\u0000\u0018\u0000 \n2\b\u0012\u0004\u0012\u00020\u00020\u0001:\r\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013B\u0005¢\u0006\u0002\u0010\u0003J\u0012\u0010\u0004\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0014"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData;", "()V", "parse", "json", "Lorg/json/JSONObject;", "AlipayRedirectParser", "BlikAuthorizeParser", "CashAppRedirectParser", "Companion", "DisplayBoletoDetailsJsonParser", "DisplayKonbiniDetailsJsonParser", "DisplayOxxoDetailsJsonParser", "RedirectToUrlParser", "SdkDataJsonParser", "SwishRedirectParser", "UpiAwaitNotificationParser", "VerifyWithMicrodepositsParser", "WeChatPayRedirectParser", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class NextActionDataParser implements ModelJsonParser<StripeIntent.NextActionData> {
private static final Companion Companion = new Companion(null);
private static final String FIELD_NEXT_ACTION_TYPE = "type";
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public class WhenMappings {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[StripeIntent.NextActionType.values().length];
try {
iArr[StripeIntent.NextActionType.DisplayOxxoDetails.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[StripeIntent.NextActionType.DisplayBoletoDetails.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[StripeIntent.NextActionType.DisplayKonbiniDetails.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[StripeIntent.NextActionType.RedirectToUrl.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[StripeIntent.NextActionType.UseStripeSdk.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[StripeIntent.NextActionType.AlipayRedirect.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
iArr[StripeIntent.NextActionType.BlikAuthorize.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
iArr[StripeIntent.NextActionType.WeChatPayRedirect.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
try {
iArr[StripeIntent.NextActionType.VerifyWithMicrodeposits.ordinal()] = 9;
} catch (NoSuchFieldError unused9) {
}
try {
iArr[StripeIntent.NextActionType.UpiAwaitNotification.ordinal()] = 10;
} catch (NoSuchFieldError unused10) {
}
try {
iArr[StripeIntent.NextActionType.CashAppRedirect.ordinal()] = 11;
} catch (NoSuchFieldError unused11) {
}
try {
iArr[StripeIntent.NextActionType.SwishRedirect.ordinal()] = 12;
} catch (NoSuchFieldError unused12) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public StripeIntent.NextActionData parse(JSONObject json) {
DisplayOxxoDetailsJsonParser displayOxxoDetailsJsonParser;
Intrinsics.checkNotNullParameter(json, "json");
StripeIntent.NextActionType fromCode$payments_core_release = StripeIntent.NextActionType.INSTANCE.fromCode$payments_core_release(json.optString(FIELD_NEXT_ACTION_TYPE));
switch (fromCode$payments_core_release == null ? -1 : WhenMappings.$EnumSwitchMapping$0[fromCode$payments_core_release.ordinal()]) {
case -1:
return null;
case 0:
default:
throw new NoWhenBranchMatchedException();
case 1:
displayOxxoDetailsJsonParser = new DisplayOxxoDetailsJsonParser();
break;
case 2:
displayOxxoDetailsJsonParser = new DisplayBoletoDetailsJsonParser();
break;
case 3:
displayOxxoDetailsJsonParser = new DisplayKonbiniDetailsJsonParser();
break;
case 4:
displayOxxoDetailsJsonParser = new RedirectToUrlParser();
break;
case 5:
displayOxxoDetailsJsonParser = new SdkDataJsonParser();
break;
case 6:
displayOxxoDetailsJsonParser = new AlipayRedirectParser();
break;
case 7:
displayOxxoDetailsJsonParser = new BlikAuthorizeParser();
break;
case 8:
displayOxxoDetailsJsonParser = new WeChatPayRedirectParser();
break;
case 9:
displayOxxoDetailsJsonParser = new VerifyWithMicrodepositsParser();
break;
case 10:
displayOxxoDetailsJsonParser = new UpiAwaitNotificationParser();
break;
case 11:
displayOxxoDetailsJsonParser = new CashAppRedirectParser();
break;
case 12:
displayOxxoDetailsJsonParser = new SwishRedirectParser();
break;
}
JSONObject optJSONObject = json.optJSONObject(fromCode$payments_core_release.getCode());
if (optJSONObject == null) {
optJSONObject = new JSONObject();
}
return (StripeIntent.NextActionData) displayOxxoDetailsJsonParser.parse(optJSONObject);
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0007B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$DisplayOxxoDetailsJsonParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayOxxoDetails;", "()V", "parse", "json", "Lorg/json/JSONObject;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class DisplayOxxoDetailsJsonParser implements ModelJsonParser<StripeIntent.NextActionData.DisplayOxxoDetails> {
private static final Companion Companion = new Companion(null);
private static final String FIELD_EXPIRES_AFTER = "expires_after";
private static final String FIELD_HOSTED_VOUCHER_URL = "hosted_voucher_url";
private static final String FIELD_NUMBER = "number";
public StripeIntent.NextActionData.DisplayOxxoDetails parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
return new StripeIntent.NextActionData.DisplayOxxoDetails(json.optInt(FIELD_EXPIRES_AFTER), StripeJsonUtils.optString(json, FIELD_NUMBER), StripeJsonUtils.optString(json, FIELD_HOSTED_VOUCHER_URL));
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$DisplayOxxoDetailsJsonParser$Companion;", "", "()V", "FIELD_EXPIRES_AFTER", "", "FIELD_HOSTED_VOUCHER_URL", "FIELD_NUMBER", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0007B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$DisplayBoletoDetailsJsonParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayBoletoDetails;", "()V", "parse", "json", "Lorg/json/JSONObject;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class DisplayBoletoDetailsJsonParser implements ModelJsonParser<StripeIntent.NextActionData.DisplayBoletoDetails> {
private static final Companion Companion = new Companion(null);
private static final String FIELD_HOSTED_VOUCHER_URL = "hosted_voucher_url";
public StripeIntent.NextActionData.DisplayBoletoDetails parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
return new StripeIntent.NextActionData.DisplayBoletoDetails(StripeJsonUtils.optString(json, FIELD_HOSTED_VOUCHER_URL));
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$DisplayBoletoDetailsJsonParser$Companion;", "", "()V", "FIELD_HOSTED_VOUCHER_URL", "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0007B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$DisplayKonbiniDetailsJsonParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayKonbiniDetails;", "()V", "parse", "json", "Lorg/json/JSONObject;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class DisplayKonbiniDetailsJsonParser implements ModelJsonParser<StripeIntent.NextActionData.DisplayKonbiniDetails> {
private static final Companion Companion = new Companion(null);
private static final String FIELD_HOSTED_VOUCHER_URL = "hosted_voucher_url";
public StripeIntent.NextActionData.DisplayKonbiniDetails parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
return new StripeIntent.NextActionData.DisplayKonbiniDetails(StripeJsonUtils.optString(json, FIELD_HOSTED_VOUCHER_URL));
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$DisplayKonbiniDetailsJsonParser$Companion;", "", "()V", "FIELD_HOSTED_VOUCHER_URL", "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0000\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0007B\u0005¢\u0006\u0002\u0010\u0003J\u0012\u0010\u0004\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$RedirectToUrlParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$RedirectToUrl;", "()V", "parse", "json", "Lorg/json/JSONObject;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class RedirectToUrlParser implements ModelJsonParser<StripeIntent.NextActionData.RedirectToUrl> {
private static final Companion Companion = new Companion(null);
@Deprecated
public static final String FIELD_RETURN_URL = "return_url";
@Deprecated
public static final String FIELD_URL = "url";
public StripeIntent.NextActionData.RedirectToUrl parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
if (!json.has("url")) {
return null;
}
Uri parse = Uri.parse(json.getString("url"));
Intrinsics.checkNotNullExpressionValue(parse, "parse(json.getString(FIELD_URL))");
return new StripeIntent.NextActionData.RedirectToUrl(parse, json.optString("return_url"));
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000¨\u0006\u0006"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$RedirectToUrlParser$Companion;", "", "()V", "FIELD_RETURN_URL", "", "FIELD_URL", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0000\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0007B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$AlipayRedirectParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect;", "()V", "parse", "json", "Lorg/json/JSONObject;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class AlipayRedirectParser implements ModelJsonParser<StripeIntent.NextActionData.AlipayRedirect> {
private static final Companion Companion = new Companion(null);
@Deprecated
public static final String FIELD_NATIVE_DATA = "native_data";
@Deprecated
public static final String FIELD_RETURN_URL = "return_url";
@Deprecated
public static final String FIELD_URL = "url";
public StripeIntent.NextActionData.AlipayRedirect parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
String string = json.getString(FIELD_NATIVE_DATA);
Intrinsics.checkNotNullExpressionValue(string, "json.getString(FIELD_NATIVE_DATA)");
String string2 = json.getString("url");
Intrinsics.checkNotNullExpressionValue(string2, "json.getString(FIELD_URL)");
return new StripeIntent.NextActionData.AlipayRedirect(string, string2, StripeJsonUtils.optString(json, "return_url"));
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$AlipayRedirectParser$Companion;", "", "()V", "FIELD_NATIVE_DATA", "", "FIELD_RETURN_URL", "FIELD_URL", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000 \t2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\tB\u0005¢\u0006\u0002\u0010\u0003J\u0012\u0010\u0004\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\u0010\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u0006H\u0002¨\u0006\n"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$SdkDataJsonParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;", "()V", "parse", "json", "Lorg/json/JSONObject;", "parseDirectoryServerEncryption", "Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class SdkDataJsonParser implements ModelJsonParser<StripeIntent.NextActionData.SdkData> {
private static final Companion Companion = new Companion(null);
private static final String FIELD_CERTIFICATE = "certificate";
private static final String FIELD_DIRECTORY_SERVER_ENCRYPTION = "directory_server_encryption";
private static final String FIELD_DIRECTORY_SERVER_ID = "directory_server_id";
private static final String FIELD_DIRECTORY_SERVER_NAME = "directory_server_name";
private static final String FIELD_KEY_ID = "key_id";
private static final String FIELD_PUBLISHABLE_KEY = "publishable_key";
private static final String FIELD_ROOT_CAS = "root_certificate_authorities";
private static final String FIELD_SERVER_TRANSACTION_ID = "server_transaction_id";
private static final String FIELD_STRIPE_JS = "stripe_js";
private static final String FIELD_THREE_D_SECURE_2_INTENT = "three_d_secure_2_intent";
private static final String FIELD_THREE_D_SECURE_2_SOURCE = "three_d_secure_2_source";
private static final String FIELD_TYPE = "type";
private static final String TYPE_3DS1 = "three_d_secure_redirect";
private static final String TYPE_3DS2 = "stripe_3ds2_fingerprint";
public StripeIntent.NextActionData.SdkData parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
String optString = StripeJsonUtils.optString(json, FIELD_TYPE);
if (Intrinsics.areEqual(optString, TYPE_3DS1)) {
String optString2 = json.optString(FIELD_STRIPE_JS);
Intrinsics.checkNotNullExpressionValue(optString2, "json.optString(FIELD_STRIPE_JS)");
return new StripeIntent.NextActionData.SdkData.Use3DS1(optString2);
}
if (!Intrinsics.areEqual(optString, TYPE_3DS2)) {
return null;
}
String optString3 = json.optString(FIELD_THREE_D_SECURE_2_SOURCE);
Intrinsics.checkNotNullExpressionValue(optString3, "json.optString(FIELD_THREE_D_SECURE_2_SOURCE)");
String optString4 = json.optString(FIELD_DIRECTORY_SERVER_NAME);
Intrinsics.checkNotNullExpressionValue(optString4, "json.optString(FIELD_DIRECTORY_SERVER_NAME)");
String optString5 = json.optString(FIELD_SERVER_TRANSACTION_ID);
Intrinsics.checkNotNullExpressionValue(optString5, "json.optString(FIELD_SERVER_TRANSACTION_ID)");
JSONObject optJSONObject = json.optJSONObject(FIELD_DIRECTORY_SERVER_ENCRYPTION);
if (optJSONObject == null) {
optJSONObject = new JSONObject();
}
return new StripeIntent.NextActionData.SdkData.Use3DS2(optString3, optString4, optString5, parseDirectoryServerEncryption(optJSONObject), StripeJsonUtils.optString(json, FIELD_THREE_D_SECURE_2_INTENT), StripeJsonUtils.optString(json, FIELD_PUBLISHABLE_KEY));
}
private final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption parseDirectoryServerEncryption(org.json.JSONObject r6) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.model.parsers.NextActionDataParser.SdkDataJsonParser.parseDirectoryServerEncryption(org.json.JSONObject):com.stripe.android.model.StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption");
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u000e\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0011\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0012"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$SdkDataJsonParser$Companion;", "", "()V", "FIELD_CERTIFICATE", "", "FIELD_DIRECTORY_SERVER_ENCRYPTION", "FIELD_DIRECTORY_SERVER_ID", "FIELD_DIRECTORY_SERVER_NAME", "FIELD_KEY_ID", "FIELD_PUBLISHABLE_KEY", "FIELD_ROOT_CAS", "FIELD_SERVER_TRANSACTION_ID", "FIELD_STRIPE_JS", "FIELD_THREE_D_SECURE_2_INTENT", "FIELD_THREE_D_SECURE_2_SOURCE", "FIELD_TYPE", "TYPE_3DS1", "TYPE_3DS2", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$BlikAuthorizeParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$BlikAuthorize;", "()V", "parse", "json", "Lorg/json/JSONObject;", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class BlikAuthorizeParser implements ModelJsonParser<StripeIntent.NextActionData.BlikAuthorize> {
public StripeIntent.NextActionData.BlikAuthorize parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
return StripeIntent.NextActionData.BlikAuthorize.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0000\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0007B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$WeChatPayRedirectParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$WeChatPayRedirect;", "()V", "parse", "json", "Lorg/json/JSONObject;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class WeChatPayRedirectParser implements ModelJsonParser<StripeIntent.NextActionData.WeChatPayRedirect> {
private static final String APP_ID = "app_id";
private static final Companion Companion = new Companion(null);
private static final String NONCE_STR = "nonce_str";
private static final String PACKAGE = "package";
private static final String PARTNER_ID = "partner_id";
private static final String PREPAY_ID = "prepay_id";
private static final String SIGN = "sign";
private static final String TIMESTAMP = "timestamp";
public StripeIntent.NextActionData.WeChatPayRedirect parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
return new StripeIntent.NextActionData.WeChatPayRedirect(new WeChat(null, json.optString("app_id"), json.optString(NONCE_STR), json.optString(PACKAGE), json.optString(PARTNER_ID), json.optString(PREPAY_ID), json.optString(SIGN), json.optString("timestamp"), null, 257, null));
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0007\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$WeChatPayRedirectParser$Companion;", "", "()V", "APP_ID", "", "NONCE_STR", "PACKAGE", "PARTNER_ID", "PREPAY_ID", "SIGN", "TIMESTAMP", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0000\u0018\u0000 \t2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\tB\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\u0010\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u0006H\u0002¨\u0006\n"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$VerifyWithMicrodepositsParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$VerifyWithMicrodeposits;", "()V", "parse", "json", "Lorg/json/JSONObject;", "parseMicrodepositType", "Lcom/stripe/android/model/MicrodepositType;", "Companion", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class VerifyWithMicrodepositsParser implements ModelJsonParser<StripeIntent.NextActionData.VerifyWithMicrodeposits> {
private static final String ARRIVAL_DATE = "arrival_date";
private static final Companion Companion = new Companion(null);
private static final String HOSTED_VERIFICATION_URL = "hosted_verification_url";
private static final String MICRODEPOSIT_TYPE = "microdeposit_type";
public StripeIntent.NextActionData.VerifyWithMicrodeposits parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
long optLong = json.optLong(ARRIVAL_DATE);
String optString = json.optString(HOSTED_VERIFICATION_URL);
Intrinsics.checkNotNullExpressionValue(optString, "json.optString(HOSTED_VERIFICATION_URL)");
return new StripeIntent.NextActionData.VerifyWithMicrodeposits(optLong, optString, parseMicrodepositType(json));
}
private final MicrodepositType parseMicrodepositType(JSONObject json) {
MicrodepositType microdepositType;
MicrodepositType[] values = MicrodepositType.values();
int length = values.length;
int i2 = 0;
while (true) {
if (i2 >= length) {
microdepositType = null;
break;
}
microdepositType = values[i2];
if (Intrinsics.areEqual(microdepositType.getValue(), json.optString(MICRODEPOSIT_TYPE))) {
break;
}
i2++;
}
return microdepositType == null ? MicrodepositType.UNKNOWN : microdepositType;
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$VerifyWithMicrodepositsParser$Companion;", "", "()V", "ARRIVAL_DATE", "", "HOSTED_VERIFICATION_URL", "MICRODEPOSIT_TYPE", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$UpiAwaitNotificationParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$UpiAwaitNotification;", "()V", "parse", "json", "Lorg/json/JSONObject;", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class UpiAwaitNotificationParser implements ModelJsonParser<StripeIntent.NextActionData.UpiAwaitNotification> {
public StripeIntent.NextActionData.UpiAwaitNotification parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
return StripeIntent.NextActionData.UpiAwaitNotification.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$CashAppRedirectParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$CashAppRedirect;", "()V", "parse", "json", "Lorg/json/JSONObject;", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class CashAppRedirectParser implements ModelJsonParser<StripeIntent.NextActionData.CashAppRedirect> {
public StripeIntent.NextActionData.CashAppRedirect parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
String optString = json.optString("mobile_auth_url");
Intrinsics.checkNotNullExpressionValue(optString, "json.optString(\"mobile_auth_url\")");
return new StripeIntent.NextActionData.CashAppRedirect(optString);
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$SwishRedirectParser;", "Lcom/stripe/android/core/model/parsers/ModelJsonParser;", "Lcom/stripe/android/model/StripeIntent$NextActionData$SwishRedirect;", "()V", "parse", "json", "Lorg/json/JSONObject;", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class SwishRedirectParser implements ModelJsonParser<StripeIntent.NextActionData.SwishRedirect> {
public StripeIntent.NextActionData.SwishRedirect parse(JSONObject json) {
Intrinsics.checkNotNullParameter(json, "json");
String optString = json.optString("mobile_auth_url");
Intrinsics.checkNotNullExpressionValue(optString, "json.optString(\"mobile_auth_url\")");
return new StripeIntent.NextActionData.SwishRedirect(optString);
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lcom/stripe/android/model/parsers/NextActionDataParser$Companion;", "", "()V", "FIELD_NEXT_ACTION_TYPE", "", "payments-core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
private static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
}