128 lines
4.3 KiB
Java
128 lines
4.3 KiB
Java
|
package com.discord.utilities.billing;
|
||
|
|
||
|
import c.d.b.a.a;
|
||
|
import com.android.billingclient.api.SkuDetails;
|
||
|
import d0.z.d.m;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
/* compiled from: GooglePlayInAppSku.kt */
|
||
|
public final class GooglePlayInAppSku {
|
||
|
private final String paymentGatewaySkuId;
|
||
|
private SkuDetails skuDetails;
|
||
|
private final Long skuId;
|
||
|
private InAppSkuType type;
|
||
|
|
||
|
public GooglePlayInAppSku(String str, InAppSkuType inAppSkuType, SkuDetails skuDetails, Long l) {
|
||
|
m.checkNotNullParameter(str, "paymentGatewaySkuId");
|
||
|
m.checkNotNullParameter(inAppSkuType, "type");
|
||
|
this.paymentGatewaySkuId = str;
|
||
|
this.type = inAppSkuType;
|
||
|
this.skuDetails = skuDetails;
|
||
|
this.skuId = l;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
||
|
public /* synthetic */ GooglePlayInAppSku(String str, InAppSkuType inAppSkuType, SkuDetails skuDetails, Long l, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this(str, inAppSkuType, (i & 4) != 0 ? null : skuDetails, (i & 8) != 0 ? null : l);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ GooglePlayInAppSku copy$default(GooglePlayInAppSku googlePlayInAppSku, String str, InAppSkuType inAppSkuType, SkuDetails skuDetails, Long l, int i, Object obj) {
|
||
|
if ((i & 1) != 0) {
|
||
|
str = googlePlayInAppSku.paymentGatewaySkuId;
|
||
|
}
|
||
|
if ((i & 2) != 0) {
|
||
|
inAppSkuType = googlePlayInAppSku.type;
|
||
|
}
|
||
|
if ((i & 4) != 0) {
|
||
|
skuDetails = googlePlayInAppSku.skuDetails;
|
||
|
}
|
||
|
if ((i & 8) != 0) {
|
||
|
l = googlePlayInAppSku.skuId;
|
||
|
}
|
||
|
return googlePlayInAppSku.copy(str, inAppSkuType, skuDetails, l);
|
||
|
}
|
||
|
|
||
|
public final String component1() {
|
||
|
return this.paymentGatewaySkuId;
|
||
|
}
|
||
|
|
||
|
public final InAppSkuType component2() {
|
||
|
return this.type;
|
||
|
}
|
||
|
|
||
|
public final SkuDetails component3() {
|
||
|
return this.skuDetails;
|
||
|
}
|
||
|
|
||
|
public final Long component4() {
|
||
|
return this.skuId;
|
||
|
}
|
||
|
|
||
|
public final GooglePlayInAppSku copy(String str, InAppSkuType inAppSkuType, SkuDetails skuDetails, Long l) {
|
||
|
m.checkNotNullParameter(str, "paymentGatewaySkuId");
|
||
|
m.checkNotNullParameter(inAppSkuType, "type");
|
||
|
return new GooglePlayInAppSku(str, inAppSkuType, skuDetails, l);
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof GooglePlayInAppSku)) {
|
||
|
return false;
|
||
|
}
|
||
|
GooglePlayInAppSku googlePlayInAppSku = (GooglePlayInAppSku) obj;
|
||
|
return m.areEqual(this.paymentGatewaySkuId, googlePlayInAppSku.paymentGatewaySkuId) && m.areEqual(this.type, googlePlayInAppSku.type) && m.areEqual(this.skuDetails, googlePlayInAppSku.skuDetails) && m.areEqual(this.skuId, googlePlayInAppSku.skuId);
|
||
|
}
|
||
|
|
||
|
public final String getPaymentGatewaySkuId() {
|
||
|
return this.paymentGatewaySkuId;
|
||
|
}
|
||
|
|
||
|
public final SkuDetails getSkuDetails() {
|
||
|
return this.skuDetails;
|
||
|
}
|
||
|
|
||
|
public final Long getSkuId() {
|
||
|
return this.skuId;
|
||
|
}
|
||
|
|
||
|
public final InAppSkuType getType() {
|
||
|
return this.type;
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
String str = this.paymentGatewaySkuId;
|
||
|
int i = 0;
|
||
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
||
|
InAppSkuType inAppSkuType = this.type;
|
||
|
int hashCode2 = (hashCode + (inAppSkuType != null ? inAppSkuType.hashCode() : 0)) * 31;
|
||
|
SkuDetails skuDetails = this.skuDetails;
|
||
|
int hashCode3 = (hashCode2 + (skuDetails != null ? skuDetails.hashCode() : 0)) * 31;
|
||
|
Long l = this.skuId;
|
||
|
if (l != null) {
|
||
|
i = l.hashCode();
|
||
|
}
|
||
|
return hashCode3 + i;
|
||
|
}
|
||
|
|
||
|
public final void setSkuDetails(SkuDetails skuDetails) {
|
||
|
this.skuDetails = skuDetails;
|
||
|
}
|
||
|
|
||
|
public final void setType(InAppSkuType inAppSkuType) {
|
||
|
m.checkNotNullParameter(inAppSkuType, "<set-?>");
|
||
|
this.type = inAppSkuType;
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder K = a.K("GooglePlayInAppSku(paymentGatewaySkuId=");
|
||
|
K.append(this.paymentGatewaySkuId);
|
||
|
K.append(", type=");
|
||
|
K.append(this.type);
|
||
|
K.append(", skuDetails=");
|
||
|
K.append(this.skuDetails);
|
||
|
K.append(", skuId=");
|
||
|
return a.A(K, this.skuId, ")");
|
||
|
}
|
||
|
}
|