Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 b.java 源代码,内容仅作参考
package ae;
import be.a;
import by.kufar.mycards.backend.AdditionalDataX;
import by.kufar.mycards.backend.CardTokenizationResponse;
import by.kufar.mycards.backend.Checkout;
import by.kufar.mycards.backend.Data;
import by.kufar.mycards.backend.Order;
import by.kufar.mycards.backend.Settings;
import com.begateway.mobilepayments.models.network.request.Contract;
import e80.u;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.jvm.internal.s;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\t\b\u0007¢\u0006\u0004\b\u0006\u0010\u0007J\u000e\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002¨\u0006\b"}, d2 = {"Lae/b;", "", "Lby/kufar/mycards/backend/CardTokenizationResponse;", "response", "Lbe/a$a;", "a", "<init>", "()V", "feature-mycards_googleRelease"}, k = 1, mv = {1, 9, 0})
public final class b {
public final a.BePaidPayData a(CardTokenizationResponse response) {
Checkout checkout;
String publicKey;
boolean z11;
String str;
Long amount;
List<String> contract;
int i11;
String notificationUrl;
Integer autoReturn;
s.j(response, "response");
Data data = response.getData();
if (data != null && (checkout = data.getCheckout()) != null && (publicKey = checkout.getPublicKey()) != null) {
Boolean test = response.getData().getCheckout().getTest();
if (test != null) {
z11 = test.booleanValue();
} else {
z11 = false;
}
Settings settings = response.getData().getCheckout().getSettings();
if (settings == null || (str = settings.getSuccessUrl()) == null) {
str = "https://www.kufar.by/";
}
String str2 = str;
Order order = response.getData().getCheckout().getOrder();
if (order != null && (amount = order.getAmount()) != null) {
long longValue = amount.longValue();
String currency = response.getData().getCheckout().getOrder().getCurrency();
if (currency != null) {
String description = response.getData().getCheckout().getOrder().getDescription();
if (description != null) {
String trackingId = response.getData().getCheckout().getOrder().getTrackingId();
if (trackingId != null) {
AdditionalDataX additionalData = response.getData().getCheckout().getOrder().getAdditionalData();
if (additionalData != null && (contract = additionalData.getContract()) != null) {
List<String> list = contract;
ArrayList arrayList = new ArrayList(u.y(list, 10));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
String upperCase = ((String) it.next()).toUpperCase(Locale.ROOT);
s.i(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
arrayList.add(Contract.valueOf(upperCase));
}
Settings settings2 = response.getData().getCheckout().getSettings();
if (settings2 != null && (autoReturn = settings2.getAutoReturn()) != null) {
i11 = autoReturn.intValue();
} else {
i11 = 0;
}
Settings settings3 = response.getData().getCheckout().getSettings();
if (settings3 != null && (notificationUrl = settings3.getNotificationUrl()) != null) {
String requestId = response.getRequestId();
if (requestId != null) {
return new a.BePaidPayData(publicKey, "https://checkout.bepaid.by/ctp/api/", z11, longValue, currency, description, trackingId, arrayList, str2, i11, notificationUrl, requestId);
}
throw new IllegalStateException("orderID is null".toString());
}
throw new IllegalStateException("notificationUrl is null".toString());
}
throw new IllegalStateException("contract is null".toString());
}
throw new IllegalStateException("trackingId is null".toString());
}
throw new IllegalStateException("description is null".toString());
}
throw new IllegalStateException("currency is null".toString());
}
throw new IllegalStateException("amount is null".toString());
}
throw new IllegalStateException("publicKey is null".toString());
}
}