package vn.vinfast.paymentkit.datasources.remote.responses;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000f\n\u0002\u0010\u0006\n\u0002\b\u0004\n\u0002\u0010\t\n\u0002\b\u0006\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0086\b\u0018\u0000 -2\u00020\u0001:\u0001.J\u0010\u0010\u0003\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u0003\u0010\u0004J\u0010\u0010\u0006\u001a\u00020\u0005HÖ\u0001¢\u0006\u0004\b\u0006\u0010\u0007J\u001a\u0010\n\u001a\u00020\t2\b\u0010\b\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\n\u0010\u000bR\u001c\u0010\u000e\u001a\u0004\u0018\u00010\u00028\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\f\u0010\r\u001a\u0004\b\f\u0010\u0004R\u001a\u0010\u0011\u001a\u00020\u00028\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u000f\u0010\r\u001a\u0004\b\u0010\u0010\u0004R\u001c\u0010\u0014\u001a\u0004\u0018\u00010\u00028\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u0012\u0010\r\u001a\u0004\b\u0013\u0010\u0004R\u001c\u0010\u0018\u001a\u0004\u0018\u00010\t8\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u000f\u0010\u0017R\u001c\u0010\u001d\u001a\u0004\u0018\u00010\u00198\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u001a\u0010\u001b\u001a\u0004\b\u001a\u0010\u001cR\u001c\u0010\"\u001a\u0004\u0018\u00010\u001e8\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b\u0012\u0010!R\u001c\u0010$\u001a\u0004\u0018\u00010\t8\u0006X\u0087\u0004¢\u0006\f\n\u0004\b#\u0010\u0016\u001a\u0004\b\u0015\u0010\u0017R\"\u0010(\u001a\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010%8\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u0013\u0010&\u001a\u0004\b#\u0010'R\u001c\u0010,\u001a\u0004\u0018\u00010)8\u0006X\u0087\u0004¢\u0006\f\n\u0004\b\u0010\u0010*\u001a\u0004\b\u001f\u0010+¨\u0006/"}, d2 = {"Lvn/vinfast/paymentkit/datasources/remote/responses/AutoPaymentModelDto;", "", "", "toString", "()Ljava/lang/String;", "", "hashCode", "()I", "other", "", "equals", "(Ljava/lang/Object;)Z", "a", "Ljava/lang/String;", "customerId", "b", "i", "vehicleId", "c", "h", "tokenNumber", "d", "Ljava/lang/Boolean;", "()Ljava/lang/Boolean;", "enabled", "", "e", "Ljava/lang/Double;", "()Ljava/lang/Double;", "limitAmount", "", "f", "Ljava/lang/Long;", "()Ljava/lang/Long;", "lastTransactionDate", "g", "lastTransactionStatus", "", "Ljava/util/List;", "()Ljava/util/List;", "serviceTypes", "Lvn/vinfast/paymentkit/datasources/remote/responses/PaymentMethodResponse;", "Lvn/vinfast/paymentkit/datasources/remote/responses/PaymentMethodResponse;", "()Lvn/vinfast/paymentkit/datasources/remote/responses/PaymentMethodResponse;", "paymentMethod", "j", "Companion", "paymentkit_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class AutoPaymentModelDto {

    /* JADX INFO: renamed from: j, reason: from kotlin metadata */
    public static final vn.vinfast.paymentkit.datasources.remote.responses.AutoPaymentModelDto.Companion INSTANCE = new vn.vinfast.paymentkit.datasources.remote.responses.AutoPaymentModelDto.Companion(null);

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("customerId")
    @org.jetbrains.annotations.Nullable
    private final java.lang.String customerId;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("vehicleId")
    @org.jetbrains.annotations.NotNull
    private final java.lang.String vehicleId;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("tokenNumber")
    @org.jetbrains.annotations.Nullable
    private final java.lang.String tokenNumber;

    /* JADX INFO: renamed from: d, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("enabled")
    @org.jetbrains.annotations.Nullable
    private final java.lang.Boolean enabled;

    /* JADX INFO: renamed from: e, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("limitAmount")
    @org.jetbrains.annotations.Nullable
    private final java.lang.Double limitAmount;

    /* JADX INFO: renamed from: f, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("lastTransactionDate")
    @org.jetbrains.annotations.Nullable
    private final java.lang.Long lastTransactionDate;

    /* JADX INFO: renamed from: g, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("lastTransactionStatus")
    @org.jetbrains.annotations.Nullable
    private final java.lang.Boolean lastTransactionStatus;

    /* JADX INFO: renamed from: h, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("serviceTypes")
    @org.jetbrains.annotations.Nullable
    private final java.util.List<java.lang.String> serviceTypes;

    /* JADX INFO: renamed from: i, reason: from kotlin metadata and from toString */
    @com.google.gson.annotations.SerializedName("paymentMethod")
    @org.jetbrains.annotations.Nullable
    private final vn.vinfast.paymentkit.datasources.remote.responses.PaymentMethodResponse paymentMethod;

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u0000\"\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\u0002\n\u0002\u0010\u0006\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u001b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0007¢\u0006\u0004\b\u0007\u0010\bR\u0014\u0010\n\u001a\u00020\t8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\n\u0010\u000b¨\u0006\f"}, d2 = {"Lvn/vinfast/paymentkit/datasources/remote/responses/AutoPaymentModelDto$Companion;", "", "<init>", "()V", "Lvn/vinfast/paymentkit/datasources/remote/responses/AutoPaymentModelDto;", "dto", "Lvn/vinfast/paymentkitapi/models/autopayment/AutoPaymentModel;", "a", "(Lvn/vinfast/paymentkit/datasources/remote/responses/AutoPaymentModelDto;)Lvn/vinfast/paymentkitapi/models/autopayment/AutoPaymentModel;", "", "DEFAULT_AMOUNT_VALUE", "D", "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.paymentkitapi.models.autopayment.AutoPaymentModel a(vn.vinfast.paymentkit.datasources.remote.responses.AutoPaymentModelDto dto) {
            java.util.ArrayList arrayList;
            if (dto == null) {
                return null;
            }
            java.lang.Double limitAmount = dto.getLimitAmount();
            if (limitAmount == null || limitAmount.doubleValue() <= 0.0d) {
                limitAmount = java.lang.Double.valueOf(1.0E7d);
            }
            java.lang.String vehicleId = dto.getVehicleId();
            java.lang.String customerId = dto.getCustomerId();
            java.lang.String tokenNumber = dto.getTokenNumber();
            java.lang.Boolean enabled = dto.getEnabled();
            boolean zBooleanValue = enabled != null ? enabled.booleanValue() : false;
            double dDoubleValue = limitAmount.doubleValue();
            java.lang.Long lastTransactionDate = dto.getLastTransactionDate();
            java.lang.Boolean lastTransactionStatus = dto.getLastTransactionStatus();
            java.util.List serviceTypes = dto.getServiceTypes();
            if (serviceTypes != null) {
                java.util.ArrayList arrayList2 = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(serviceTypes, 10));
                java.util.Iterator it = serviceTypes.iterator();
                while (it.hasNext()) {
                    arrayList2.add(vn.vinfast.paymentkitapi.models.autopayment.ServiceTypeAutoPay.Companion.a((java.lang.String) it.next()));
                }
                arrayList = arrayList2;
            } else {
                arrayList = null;
            }
            vn.vinfast.paymentkit.datasources.remote.responses.PaymentMethodResponse paymentMethod = dto.getPaymentMethod();
            return new vn.vinfast.paymentkitapi.models.autopayment.AutoPaymentModel(vehicleId, customerId, tokenNumber, zBooleanValue, dDoubleValue, lastTransactionDate, lastTransactionStatus, arrayList, paymentMethod != null ? vn.vinfast.paymentkit.datasources.remote.transformers.PaymentMethodTransformerKt.a(paymentMethod) : null);
        }

        private Companion() {
        }
    }

    /* JADX INFO: renamed from: a, reason: from getter */
    public final java.lang.String getCustomerId() {
        return this.customerId;
    }

    /* JADX INFO: renamed from: b, reason: from getter */
    public final java.lang.Boolean getEnabled() {
        return this.enabled;
    }

    /* JADX INFO: renamed from: c, reason: from getter */
    public final java.lang.Long getLastTransactionDate() {
        return this.lastTransactionDate;
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final java.lang.Boolean getLastTransactionStatus() {
        return this.lastTransactionStatus;
    }

    /* JADX INFO: renamed from: e, reason: from getter */
    public final java.lang.Double getLimitAmount() {
        return this.limitAmount;
    }

    public boolean equals(java.lang.Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof vn.vinfast.paymentkit.datasources.remote.responses.AutoPaymentModelDto)) {
            return false;
        }
        vn.vinfast.paymentkit.datasources.remote.responses.AutoPaymentModelDto autoPaymentModelDto = (vn.vinfast.paymentkit.datasources.remote.responses.AutoPaymentModelDto) other;
        return kotlin.jvm.internal.Intrinsics.g(this.customerId, autoPaymentModelDto.customerId) && kotlin.jvm.internal.Intrinsics.g(this.vehicleId, autoPaymentModelDto.vehicleId) && kotlin.jvm.internal.Intrinsics.g(this.tokenNumber, autoPaymentModelDto.tokenNumber) && kotlin.jvm.internal.Intrinsics.g(this.enabled, autoPaymentModelDto.enabled) && kotlin.jvm.internal.Intrinsics.g(this.limitAmount, autoPaymentModelDto.limitAmount) && kotlin.jvm.internal.Intrinsics.g(this.lastTransactionDate, autoPaymentModelDto.lastTransactionDate) && kotlin.jvm.internal.Intrinsics.g(this.lastTransactionStatus, autoPaymentModelDto.lastTransactionStatus) && kotlin.jvm.internal.Intrinsics.g(this.serviceTypes, autoPaymentModelDto.serviceTypes) && kotlin.jvm.internal.Intrinsics.g(this.paymentMethod, autoPaymentModelDto.paymentMethod);
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final vn.vinfast.paymentkit.datasources.remote.responses.PaymentMethodResponse getPaymentMethod() {
        return this.paymentMethod;
    }

    /* JADX INFO: renamed from: g, reason: from getter */
    public final java.util.List getServiceTypes() {
        return this.serviceTypes;
    }

    /* JADX INFO: renamed from: h, reason: from getter */
    public final java.lang.String getTokenNumber() {
        return this.tokenNumber;
    }

    public int hashCode() {
        java.lang.String str = this.customerId;
        int iHashCode = (((str == null ? 0 : str.hashCode()) * 31) + this.vehicleId.hashCode()) * 31;
        java.lang.String str2 = this.tokenNumber;
        int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        java.lang.Boolean bool = this.enabled;
        int iHashCode3 = (iHashCode2 + (bool == null ? 0 : bool.hashCode())) * 31;
        java.lang.Double d = this.limitAmount;
        int iHashCode4 = (iHashCode3 + (d == null ? 0 : d.hashCode())) * 31;
        java.lang.Long l = this.lastTransactionDate;
        int iHashCode5 = (iHashCode4 + (l == null ? 0 : l.hashCode())) * 31;
        java.lang.Boolean bool2 = this.lastTransactionStatus;
        int iHashCode6 = (iHashCode5 + (bool2 == null ? 0 : bool2.hashCode())) * 31;
        java.util.List<java.lang.String> list = this.serviceTypes;
        int iHashCode7 = (iHashCode6 + (list == null ? 0 : list.hashCode())) * 31;
        vn.vinfast.paymentkit.datasources.remote.responses.PaymentMethodResponse paymentMethodResponse = this.paymentMethod;
        return iHashCode7 + (paymentMethodResponse != null ? paymentMethodResponse.hashCode() : 0);
    }

    /* JADX INFO: renamed from: i, reason: from getter */
    public final java.lang.String getVehicleId() {
        return this.vehicleId;
    }

    public java.lang.String toString() {
        return "AutoPaymentModelDto(customerId=" + this.customerId + ", vehicleId=" + this.vehicleId + ", tokenNumber=" + this.tokenNumber + ", enabled=" + this.enabled + ", limitAmount=" + this.limitAmount + ", lastTransactionDate=" + this.lastTransactionDate + ", lastTransactionStatus=" + this.lastTransactionStatus + ", serviceTypes=" + this.serviceTypes + ", paymentMethod=" + this.paymentMethod + ")";
    }
}
