package com.vinfast.companion.core.model.sota;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlinx.parcelize.Parcelize
@kotlin.Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\u0019\b\u0087\b\u0018\u00002\u00020\u0001BU\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0004\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0007\u0012\b\u0010\t\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\n\u0012\b\u0010\r\u001a\u0004\u0018\u00010\f\u0012\b\u0010\u000f\u001a\u0004\u0018\u00010\u000e¢\u0006\u0004\b\u0010\u0010\u0011J\r\u0010\u0012\u001a\u00020\u000e¢\u0006\u0004\b\u0012\u0010\u0013J\u001d\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0016\u001a\u00020\u000e¢\u0006\u0004\b\u0018\u0010\u0019J\u0010\u0010\u001a\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u001a\u0010\u001bJ\u0010\u0010\u001c\u001a\u00020\u000eHÖ\u0001¢\u0006\u0004\b\u001c\u0010\u0013J\u001a\u0010\u001f\u001a\u00020\u00042\b\u0010\u001e\u001a\u0004\u0018\u00010\u001dHÖ\u0003¢\u0006\u0004\b\u001f\u0010 R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b!\u0010\"\u001a\u0004\b#\u0010\u001bR\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b$\u0010%\u001a\u0004\b&\u0010'R\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b(\u0010%\u001a\u0004\b)\u0010'R\u0019\u0010\b\u001a\u0004\u0018\u00010\u00078\u0006¢\u0006\f\n\u0004\b*\u0010+\u001a\u0004\b$\u0010,R\u0019\u0010\t\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b-\u0010\"\u001a\u0004\b.\u0010\u001bR\u0019\u0010\u000b\u001a\u0004\u0018\u00010\n8\u0006¢\u0006\f\n\u0004\b/\u00100\u001a\u0004\b/\u00101R\u0019\u0010\r\u001a\u0004\u0018\u00010\f8\u0006¢\u0006\f\n\u0004\b)\u00102\u001a\u0004\b*\u00103R\u0019\u0010\u000f\u001a\u0004\u0018\u00010\u000e8\u0006¢\u0006\f\n\u0004\b&\u00104\u001a\u0004\b(\u00105¨\u00066"}, d2 = {"Lcom/vinfast/companion/core/model/sota/PricingOption;", "Landroid/os/Parcelable;", "", "id", "", "isPaid", "isCurrentActive", "", "amount", "currency", "Lcom/vinfast/companion/core/model/sota/OptionPackageType;", "type", "Lcom/vinfast/companion/core/model/sota/PackageUnit;", "packageUnit", "", "durationLength", "<init>", "(Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Double;Ljava/lang/String;Lcom/vinfast/companion/core/model/sota/OptionPackageType;Lcom/vinfast/companion/core/model/sota/PackageUnit;Ljava/lang/Integer;)V", "describeContents", "()I", "Landroid/os/Parcel;", "dest", "flags", "", "writeToParcel", "(Landroid/os/Parcel;I)V", "toString", "()Ljava/lang/String;", "hashCode", "", "other", "equals", "(Ljava/lang/Object;)Z", "a", "Ljava/lang/String;", "getId", "b", "Ljava/lang/Boolean;", "h", "()Ljava/lang/Boolean;", "c", "g", "d", "Ljava/lang/Double;", "()Ljava/lang/Double;", "e", "J0", "f", "Lcom/vinfast/companion/core/model/sota/OptionPackageType;", "()Lcom/vinfast/companion/core/model/sota/OptionPackageType;", "Lcom/vinfast/companion/core/model/sota/PackageUnit;", "()Lcom/vinfast/companion/core/model/sota/PackageUnit;", "Ljava/lang/Integer;", "()Ljava/lang/Integer;", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class PricingOption implements android.os.Parcelable {

    @org.jetbrains.annotations.NotNull
    public static final android.os.Parcelable.Creator<com.vinfast.companion.core.model.sota.PricingOption> CREATOR = new com.vinfast.companion.core.model.sota.PricingOption.Creator();

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    private final java.lang.String id;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    private final java.lang.Boolean isPaid;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata and from toString */
    private final java.lang.Boolean isCurrentActive;

    /* JADX INFO: renamed from: d, reason: from kotlin metadata and from toString */
    private final java.lang.Double amount;

    /* JADX INFO: renamed from: e, reason: from kotlin metadata and from toString */
    private final java.lang.String currency;

    /* JADX INFO: renamed from: f, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.core.model.sota.OptionPackageType type;

    /* JADX INFO: renamed from: g, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.core.model.sota.PackageUnit packageUnit;

    /* JADX INFO: renamed from: h, reason: from kotlin metadata and from toString */
    private final java.lang.Integer durationLength;

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(k = 3, mv = {2, 2, 0}, xi = 48)
    public static final class Creator implements android.os.Parcelable.Creator<com.vinfast.companion.core.model.sota.PricingOption> {
        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.core.model.sota.PricingOption createFromParcel(android.os.Parcel parcel) {
            java.lang.Boolean boolValueOf;
            java.lang.Boolean boolValueOf2;
            kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
            java.lang.String string = parcel.readString();
            if (parcel.readInt() == 0) {
                boolValueOf = null;
            } else {
                boolValueOf = java.lang.Boolean.valueOf(parcel.readInt() != 0);
            }
            if (parcel.readInt() == 0) {
                boolValueOf2 = null;
            } else {
                boolValueOf2 = java.lang.Boolean.valueOf(parcel.readInt() != 0);
            }
            return new com.vinfast.companion.core.model.sota.PricingOption(string, boolValueOf, boolValueOf2, parcel.readInt() == 0 ? null : java.lang.Double.valueOf(parcel.readDouble()), parcel.readString(), parcel.readInt() == 0 ? null : com.vinfast.companion.core.model.sota.OptionPackageType.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : com.vinfast.companion.core.model.sota.PackageUnit.CREATOR.createFromParcel(parcel), parcel.readInt() != 0 ? java.lang.Integer.valueOf(parcel.readInt()) : null);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.core.model.sota.PricingOption[] newArray(int i) {
            return new com.vinfast.companion.core.model.sota.PricingOption[i];
        }
    }

    public PricingOption(java.lang.String str, java.lang.Boolean bool, java.lang.Boolean bool2, java.lang.Double d, java.lang.String str2, com.vinfast.companion.core.model.sota.OptionPackageType optionPackageType, com.vinfast.companion.core.model.sota.PackageUnit packageUnit, java.lang.Integer num) {
        kotlin.jvm.internal.Intrinsics.l(str, "id");
        this.id = str;
        this.isPaid = bool;
        this.isCurrentActive = bool2;
        this.amount = d;
        this.currency = str2;
        this.type = optionPackageType;
        this.packageUnit = packageUnit;
        this.durationLength = num;
    }

    /* JADX INFO: renamed from: J0, reason: from getter */
    public final java.lang.String getCurrency() {
        return this.currency;
    }

    /* JADX INFO: renamed from: b, reason: from getter */
    public final java.lang.Double getAmount() {
        return this.amount;
    }

    /* JADX INFO: renamed from: c, reason: from getter */
    public final java.lang.Integer getDurationLength() {
        return this.durationLength;
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final com.vinfast.companion.core.model.sota.PackageUnit getPackageUnit() {
        return this.packageUnit;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public boolean equals(java.lang.Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof com.vinfast.companion.core.model.sota.PricingOption)) {
            return false;
        }
        com.vinfast.companion.core.model.sota.PricingOption pricingOption = (com.vinfast.companion.core.model.sota.PricingOption) other;
        return kotlin.jvm.internal.Intrinsics.g(this.id, pricingOption.id) && kotlin.jvm.internal.Intrinsics.g(this.isPaid, pricingOption.isPaid) && kotlin.jvm.internal.Intrinsics.g(this.isCurrentActive, pricingOption.isCurrentActive) && kotlin.jvm.internal.Intrinsics.g(this.amount, pricingOption.amount) && kotlin.jvm.internal.Intrinsics.g(this.currency, pricingOption.currency) && this.type == pricingOption.type && this.packageUnit == pricingOption.packageUnit && kotlin.jvm.internal.Intrinsics.g(this.durationLength, pricingOption.durationLength);
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final com.vinfast.companion.core.model.sota.OptionPackageType getType() {
        return this.type;
    }

    /* JADX INFO: renamed from: g, reason: from getter */
    public final java.lang.Boolean getIsCurrentActive() {
        return this.isCurrentActive;
    }

    public final java.lang.String getId() {
        return this.id;
    }

    /* JADX INFO: renamed from: h, reason: from getter */
    public final java.lang.Boolean getIsPaid() {
        return this.isPaid;
    }

    public int hashCode() {
        int iHashCode = this.id.hashCode() * 31;
        java.lang.Boolean bool = this.isPaid;
        int iHashCode2 = (iHashCode + (bool == null ? 0 : bool.hashCode())) * 31;
        java.lang.Boolean bool2 = this.isCurrentActive;
        int iHashCode3 = (iHashCode2 + (bool2 == null ? 0 : bool2.hashCode())) * 31;
        java.lang.Double d = this.amount;
        int iHashCode4 = (iHashCode3 + (d == null ? 0 : d.hashCode())) * 31;
        java.lang.String str = this.currency;
        int iHashCode5 = (iHashCode4 + (str == null ? 0 : str.hashCode())) * 31;
        com.vinfast.companion.core.model.sota.OptionPackageType optionPackageType = this.type;
        int iHashCode6 = (iHashCode5 + (optionPackageType == null ? 0 : optionPackageType.hashCode())) * 31;
        com.vinfast.companion.core.model.sota.PackageUnit packageUnit = this.packageUnit;
        int iHashCode7 = (iHashCode6 + (packageUnit == null ? 0 : packageUnit.hashCode())) * 31;
        java.lang.Integer num = this.durationLength;
        return iHashCode7 + (num != null ? num.hashCode() : 0);
    }

    public java.lang.String toString() {
        return "PricingOption(id=" + this.id + ", isPaid=" + this.isPaid + ", isCurrentActive=" + this.isCurrentActive + ", amount=" + this.amount + ", currency=" + this.currency + ", type=" + this.type + ", packageUnit=" + this.packageUnit + ", durationLength=" + this.durationLength + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(android.os.Parcel dest, int flags) {
        kotlin.jvm.internal.Intrinsics.l(dest, "dest");
        dest.writeString(this.id);
        java.lang.Boolean bool = this.isPaid;
        if (bool == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(bool.booleanValue() ? 1 : 0);
        }
        java.lang.Boolean bool2 = this.isCurrentActive;
        if (bool2 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(bool2.booleanValue() ? 1 : 0);
        }
        java.lang.Double d = this.amount;
        if (d == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeDouble(d.doubleValue());
        }
        dest.writeString(this.currency);
        com.vinfast.companion.core.model.sota.OptionPackageType optionPackageType = this.type;
        if (optionPackageType == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            optionPackageType.writeToParcel(dest, flags);
        }
        com.vinfast.companion.core.model.sota.PackageUnit packageUnit = this.packageUnit;
        if (packageUnit == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            packageUnit.writeToParcel(dest, flags);
        }
        java.lang.Integer num = this.durationLength;
        if (num == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(num.intValue());
        }
    }
}
