package vn.vinfast.paymentkit.datasources.remote.request;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0006\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000f\b\u0086\b\u0018\u0000 \u001f2\u00020\u0001:\u0001 B/\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\u0010\b\u0002\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0002¢\u0006\u0004\b\t\u0010\nJ\u0010\u0010\f\u001a\u00020\u000bHÖ\u0001¢\u0006\u0004\b\f\u0010\rJ\u0010\u0010\u000f\u001a\u00020\u000eHÖ\u0001¢\u0006\u0004\b\u000f\u0010\u0010J\u001a\u0010\u0013\u001a\u00020\u00122\b\u0010\u0011\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\u0013\u0010\u0014R \u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018R\u001a\u0010\u0006\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u0019\u0010\u001a\u001a\u0004\b\u001b\u0010\u001cR\"\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00028\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u001d\u0010\u0016\u001a\u0004\b\u001e\u0010\u0018¨\u0006!"}, d2 = {"Lvn/vinfast/paymentkit/datasources/remote/request/PaymentNowRequestV2;", "", "", "Lvn/vinfast/paymentkit/datasources/remote/request/BillIdRequest;", "billIds", "", "amount", "Lvn/vinfast/paymentkit/datasources/remote/request/AppliedVoucherInfo;", "appliedVoucherInfo", "<init>", "(Ljava/util/List;DLjava/util/List;)V", "", "toString", "()Ljava/lang/String;", "", "hashCode", "()I", "other", "", "equals", "(Ljava/lang/Object;)Z", "a", "Ljava/util/List;", "getBillIds", "()Ljava/util/List;", "b", "D", "getAmount", "()D", "c", "getAppliedVoucherInfo", "d", "Companion", "paymentkit_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class PaymentNowRequestV2 {

    /* JADX INFO: renamed from: d, reason: from kotlin metadata */
    public static final vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2.Companion INSTANCE = new vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2.Companion(null);

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("billIds")
    @org.jetbrains.annotations.NotNull
    private final java.util.List<vn.vinfast.paymentkit.datasources.remote.request.BillIdRequest> billIds;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("amount")
    private final double amount;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("appliedVoucherInfo")
    @org.jetbrains.annotations.Nullable
    private final java.util.List<vn.vinfast.paymentkit.datasources.remote.request.AppliedVoucherInfo> appliedVoucherInfo;

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lvn/vinfast/paymentkit/datasources/remote/request/PaymentNowRequestV2$Companion;", "", "<init>", "()V", "Lvn/vinfast/paymentkitapi/usecases/PaymentByQrCodeUseCase$Param;", "params", "Lvn/vinfast/paymentkit/datasources/remote/request/PaymentNowRequestV2;", "a", "(Lvn/vinfast/paymentkitapi/usecases/PaymentByQrCodeUseCase$Param;)Lvn/vinfast/paymentkit/datasources/remote/request/PaymentNowRequestV2;", "paymentkit_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
    @kotlin.jvm.internal.SourceDebugExtension
    public static final class Companion {
        public /* synthetic */ Companion(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2 a(vn.vinfast.paymentkitapi.usecases.PaymentByQrCodeUseCase.Param params) {
            java.util.ArrayList arrayList;
            java.util.ArrayList arrayList2;
            kotlin.jvm.internal.Intrinsics.l(params, "params");
            java.util.List listB = params.b();
            java.util.ArrayList arrayList3 = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(listB, 10));
            java.util.Iterator it = listB.iterator();
            while (true) {
                arrayList = null;
                java.lang.String type = null;
                if (!it.hasNext()) {
                    break;
                }
                vn.vinfast.paymentkitapi.models.BillSummaryRequestModel billSummaryRequestModel = (vn.vinfast.paymentkitapi.models.BillSummaryRequestModel) it.next();
                if (billSummaryRequestModel.getType().length() != 0) {
                    type = billSummaryRequestModel.getType();
                }
                arrayList3.add(new vn.vinfast.paymentkit.datasources.remote.request.BillIdRequest(billSummaryRequestModel.getId(), type, billSummaryRequestModel.f(), billSummaryRequestModel.d()));
            }
            double dA = params.a();
            java.util.List<vn.vinfast.paymentkitapi.models.SummaryVoucherModel.AppliedVoucherInfo> listC = params.c();
            if (listC != null) {
                java.util.ArrayList arrayList4 = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(listC, 10));
                for (vn.vinfast.paymentkitapi.models.SummaryVoucherModel.AppliedVoucherInfo appliedVoucherInfo : listC) {
                    java.lang.String strC = appliedVoucherInfo.c();
                    java.util.List<vn.vinfast.paymentkitapi.models.SummaryVoucherModel.AppliedVoucherInfo.Voucher> listD = appliedVoucherInfo.d();
                    if (listD != null) {
                        arrayList2 = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(listD, 10));
                        for (vn.vinfast.paymentkitapi.models.SummaryVoucherModel.AppliedVoucherInfo.Voucher voucher : listD) {
                            arrayList2.add(new vn.vinfast.paymentkit.datasources.remote.request.Voucher(voucher.f(), java.lang.Integer.valueOf(voucher.d()), voucher.c(), voucher.b()));
                        }
                    } else {
                        arrayList2 = null;
                    }
                    arrayList4.add(new vn.vinfast.paymentkit.datasources.remote.request.AppliedVoucherInfo(strC, arrayList2));
                }
                arrayList = arrayList4;
            }
            return new vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2(arrayList3, dA, arrayList);
        }

        private Companion() {
        }
    }

    public PaymentNowRequestV2(java.util.List list, double d, java.util.List list2) {
        kotlin.jvm.internal.Intrinsics.l(list, "billIds");
        this.billIds = list;
        this.amount = d;
        this.appliedVoucherInfo = list2;
    }

    public boolean equals(java.lang.Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2)) {
            return false;
        }
        vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2 paymentNowRequestV2 = (vn.vinfast.paymentkit.datasources.remote.request.PaymentNowRequestV2) other;
        return kotlin.jvm.internal.Intrinsics.g(this.billIds, paymentNowRequestV2.billIds) && java.lang.Double.compare(this.amount, paymentNowRequestV2.amount) == 0 && kotlin.jvm.internal.Intrinsics.g(this.appliedVoucherInfo, paymentNowRequestV2.appliedVoucherInfo);
    }

    public int hashCode() {
        int iHashCode = ((this.billIds.hashCode() * 31) + java.lang.Double.hashCode(this.amount)) * 31;
        java.util.List<vn.vinfast.paymentkit.datasources.remote.request.AppliedVoucherInfo> list = this.appliedVoucherInfo;
        return iHashCode + (list == null ? 0 : list.hashCode());
    }

    public java.lang.String toString() {
        return "PaymentNowRequestV2(billIds=" + this.billIds + ", amount=" + this.amount + ", appliedVoucherInfo=" + this.appliedVoucherInfo + ")";
    }
}
