package com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel;

import android.net.Uri;
import androidx.compose.runtime.Immutable;
import androidx.compose.runtime.Stable;
import com.google.android.recaptcha.internal.a;
import com.revenuecat.purchases.Store;
import com.revenuecat.purchases.models.Price;
import java.util.Date;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
@Stable
public abstract class TransactionDetails {
    public static final int $stable = 0;
    private final boolean isSandbox;
    private final Price price;
    private final String productIdentifier;
    private final Store store;

    @Immutable
    public static final class NonSubscription extends TransactionDetails {
        public static final int $stable = 0;
        private final boolean isSandbox;
        private final Price price;
        private final String productIdentifier;
        private final Store store;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public NonSubscription(String productIdentifier, Store store, Price price, boolean z6) {
            super(productIdentifier, store, price, z6, null);
            o.h(productIdentifier, "productIdentifier");
            o.h(store, "store");
            this.productIdentifier = productIdentifier;
            this.store = store;
            this.price = price;
            this.isSandbox = z6;
        }

        public static /* synthetic */ NonSubscription copy$default(NonSubscription nonSubscription, String str, Store store, Price price, boolean z6, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                str = nonSubscription.productIdentifier;
            }
            if ((i6 & 2) != 0) {
                store = nonSubscription.store;
            }
            if ((i6 & 4) != 0) {
                price = nonSubscription.price;
            }
            if ((i6 & 8) != 0) {
                z6 = nonSubscription.isSandbox;
            }
            return nonSubscription.copy(str, store, price, z6);
        }

        public final String component1() {
            return this.productIdentifier;
        }

        public final Store component2() {
            return this.store;
        }

        public final Price component3() {
            return this.price;
        }

        public final boolean component4() {
            return this.isSandbox;
        }

        public final NonSubscription copy(String productIdentifier, Store store, Price price, boolean z6) {
            o.h(productIdentifier, "productIdentifier");
            o.h(store, "store");
            return new NonSubscription(productIdentifier, store, price, z6);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof NonSubscription)) {
                return false;
            }
            NonSubscription nonSubscription = (NonSubscription) obj;
            return o.c(this.productIdentifier, nonSubscription.productIdentifier) && this.store == nonSubscription.store && o.c(this.price, nonSubscription.price) && this.isSandbox == nonSubscription.isSandbox;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public Price getPrice() {
            return this.price;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public String getProductIdentifier() {
            return this.productIdentifier;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public Store getStore() {
            return this.store;
        }

        public int hashCode() {
            int iHashCode = (this.store.hashCode() + (this.productIdentifier.hashCode() * 31)) * 31;
            Price price = this.price;
            return Boolean.hashCode(this.isSandbox) + ((iHashCode + (price == null ? 0 : price.hashCode())) * 31);
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public boolean isSandbox() {
            return this.isSandbox;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("NonSubscription(productIdentifier=");
            sb.append(this.productIdentifier);
            sb.append(", store=");
            sb.append(this.store);
            sb.append(", price=");
            sb.append(this.price);
            sb.append(", isSandbox=");
            return AbstractC2761L.h(sb, this.isSandbox, ')');
        }
    }

    @Immutable
    public static final class Subscription extends TransactionDetails {
        public static final int $stable = 0;
        private final Date expiresDate;
        private final boolean isActive;
        private final boolean isSandbox;
        private final boolean isTrial;
        private final Uri managementURL;
        private final Price price;
        private final String productIdentifier;
        private final String productPlanIdentifier;
        private final Store store;
        private final boolean willRenew;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Subscription(String productIdentifier, String str, Store store, boolean z6, boolean z7, Date date, boolean z8, Uri uri, Price price, boolean z9) {
            super(productIdentifier, store, price, z9, null);
            o.h(productIdentifier, "productIdentifier");
            o.h(store, "store");
            this.productIdentifier = productIdentifier;
            this.productPlanIdentifier = str;
            this.store = store;
            this.isActive = z6;
            this.willRenew = z7;
            this.expiresDate = date;
            this.isTrial = z8;
            this.managementURL = uri;
            this.price = price;
            this.isSandbox = z9;
        }

        public static /* synthetic */ Subscription copy$default(Subscription subscription, String str, String str2, Store store, boolean z6, boolean z7, Date date, boolean z8, Uri uri, Price price, boolean z9, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                str = subscription.productIdentifier;
            }
            if ((i6 & 2) != 0) {
                str2 = subscription.productPlanIdentifier;
            }
            if ((i6 & 4) != 0) {
                store = subscription.store;
            }
            if ((i6 & 8) != 0) {
                z6 = subscription.isActive;
            }
            if ((i6 & 16) != 0) {
                z7 = subscription.willRenew;
            }
            if ((i6 & 32) != 0) {
                date = subscription.expiresDate;
            }
            if ((i6 & 64) != 0) {
                z8 = subscription.isTrial;
            }
            if ((i6 & 128) != 0) {
                uri = subscription.managementURL;
            }
            if ((i6 & 256) != 0) {
                price = subscription.price;
            }
            if ((i6 & 512) != 0) {
                z9 = subscription.isSandbox;
            }
            Price price2 = price;
            boolean z10 = z9;
            boolean z11 = z8;
            Uri uri2 = uri;
            boolean z12 = z7;
            Date date2 = date;
            return subscription.copy(str, str2, store, z6, z12, date2, z11, uri2, price2, z10);
        }

        public final String component1() {
            return this.productIdentifier;
        }

        public final boolean component10() {
            return this.isSandbox;
        }

        public final String component2() {
            return this.productPlanIdentifier;
        }

        public final Store component3() {
            return this.store;
        }

        public final boolean component4() {
            return this.isActive;
        }

        public final boolean component5() {
            return this.willRenew;
        }

        public final Date component6() {
            return this.expiresDate;
        }

        public final boolean component7() {
            return this.isTrial;
        }

        public final Uri component8() {
            return this.managementURL;
        }

        public final Price component9() {
            return this.price;
        }

        public final Subscription copy(String productIdentifier, String str, Store store, boolean z6, boolean z7, Date date, boolean z8, Uri uri, Price price, boolean z9) {
            o.h(productIdentifier, "productIdentifier");
            o.h(store, "store");
            return new Subscription(productIdentifier, str, store, z6, z7, date, z8, uri, price, z9);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Subscription)) {
                return false;
            }
            Subscription subscription = (Subscription) obj;
            return o.c(this.productIdentifier, subscription.productIdentifier) && o.c(this.productPlanIdentifier, subscription.productPlanIdentifier) && this.store == subscription.store && this.isActive == subscription.isActive && this.willRenew == subscription.willRenew && o.c(this.expiresDate, subscription.expiresDate) && this.isTrial == subscription.isTrial && o.c(this.managementURL, subscription.managementURL) && o.c(this.price, subscription.price) && this.isSandbox == subscription.isSandbox;
        }

        public final Date getExpiresDate() {
            return this.expiresDate;
        }

        public final Uri getManagementURL() {
            return this.managementURL;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public Price getPrice() {
            return this.price;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public String getProductIdentifier() {
            return this.productIdentifier;
        }

        public final String getProductPlanIdentifier() {
            return this.productPlanIdentifier;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public Store getStore() {
            return this.store;
        }

        public final boolean getWillRenew() {
            return this.willRenew;
        }

        public int hashCode() {
            int iHashCode = this.productIdentifier.hashCode() * 31;
            String str = this.productPlanIdentifier;
            int iF = a.f(a.f((this.store.hashCode() + ((iHashCode + (str == null ? 0 : str.hashCode())) * 31)) * 31, 31, this.isActive), 31, this.willRenew);
            Date date = this.expiresDate;
            int iF2 = a.f((iF + (date == null ? 0 : date.hashCode())) * 31, 31, this.isTrial);
            Uri uri = this.managementURL;
            int iHashCode2 = (iF2 + (uri == null ? 0 : uri.hashCode())) * 31;
            Price price = this.price;
            return Boolean.hashCode(this.isSandbox) + ((iHashCode2 + (price != null ? price.hashCode() : 0)) * 31);
        }

        public final boolean isActive() {
            return this.isActive;
        }

        @Override // com.revenuecat.purchases.ui.revenuecatui.customercenter.viewmodel.TransactionDetails
        public boolean isSandbox() {
            return this.isSandbox;
        }

        public final boolean isTrial() {
            return this.isTrial;
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("Subscription(productIdentifier=");
            sb.append(this.productIdentifier);
            sb.append(", productPlanIdentifier=");
            sb.append(this.productPlanIdentifier);
            sb.append(", store=");
            sb.append(this.store);
            sb.append(", isActive=");
            sb.append(this.isActive);
            sb.append(", willRenew=");
            sb.append(this.willRenew);
            sb.append(", expiresDate=");
            sb.append(this.expiresDate);
            sb.append(", isTrial=");
            sb.append(this.isTrial);
            sb.append(", managementURL=");
            sb.append(this.managementURL);
            sb.append(", price=");
            sb.append(this.price);
            sb.append(", isSandbox=");
            return AbstractC2761L.h(sb, this.isSandbox, ')');
        }
    }

    public /* synthetic */ TransactionDetails(String str, Store store, Price price, boolean z6, h hVar) {
        this(str, store, price, z6);
    }

    public Price getPrice() {
        return this.price;
    }

    public String getProductIdentifier() {
        return this.productIdentifier;
    }

    public Store getStore() {
        return this.store;
    }

    public boolean isSandbox() {
        return this.isSandbox;
    }

    private TransactionDetails(String str, Store store, Price price, boolean z6) {
        this.productIdentifier = str;
        this.store = store;
        this.price = price;
        this.isSandbox = z6;
    }
}
