package com.revenuecat.purchases.common.networking;

import g5.a;
import i5.g;
import j5.b;
import k5.P;
import k5.a0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
public final class WebBillingPrice {
    public static final Companion Companion = new Companion(null);
    private final long amountMicros;
    private final String currency;

    public static final class Companion {
        public /* synthetic */ Companion(h hVar) {
            this();
        }

        public final a serializer() {
            return WebBillingPrice$$serializer.INSTANCE;
        }

        private Companion() {
        }
    }

    @InterfaceC3141c
    public /* synthetic */ WebBillingPrice(int i6, long j4, String str, a0 a0Var) {
        if (3 != (i6 & 3)) {
            P.h(i6, 3, WebBillingPrice$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.amountMicros = j4;
        this.currency = str;
    }

    public static /* synthetic */ WebBillingPrice copy$default(WebBillingPrice webBillingPrice, long j4, String str, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            j4 = webBillingPrice.amountMicros;
        }
        if ((i6 & 2) != 0) {
            str = webBillingPrice.currency;
        }
        return webBillingPrice.copy(j4, str);
    }

    public static /* synthetic */ void getAmountMicros$annotations() {
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(WebBillingPrice webBillingPrice, b bVar, g gVar) {
        bVar.p(gVar, 0, webBillingPrice.amountMicros);
        bVar.A(gVar, 1, webBillingPrice.currency);
    }

    public final long component1() {
        return this.amountMicros;
    }

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

    public final WebBillingPrice copy(long j4, String currency) {
        o.h(currency, "currency");
        return new WebBillingPrice(j4, currency);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof WebBillingPrice)) {
            return false;
        }
        WebBillingPrice webBillingPrice = (WebBillingPrice) obj;
        return this.amountMicros == webBillingPrice.amountMicros && o.c(this.currency, webBillingPrice.currency);
    }

    public final long getAmountMicros() {
        return this.amountMicros;
    }

    public final String getCurrency() {
        return this.currency;
    }

    public int hashCode() {
        return this.currency.hashCode() + (Long.hashCode(this.amountMicros) * 31);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("WebBillingPrice(amountMicros=");
        sb.append(this.amountMicros);
        sb.append(", currency=");
        return Z0.o.r(sb, this.currency, ')');
    }

    public WebBillingPrice(long j4, String currency) {
        o.h(currency, "currency");
        this.amountMicros = j4;
        this.currency = currency;
    }
}
