package defpackage;

import android.text.TextUtils;
import org.json.JSONObject;

/* renamed from: ᵦˀᵔᵥ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3561 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final String f13337;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final String f13338;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final String f13339;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final int f13340;

    public C3561(String str) {
        this.f13338 = str;
        JSONObject jSONObject = new JSONObject(str);
        this.f13339 = jSONObject.optString("productId");
        String strOptString = jSONObject.optString("type");
        this.f13337 = strOptString;
        this.f13340 = jSONObject.has("statusCode") ? jSONObject.optInt("statusCode") : 0;
        if (TextUtils.isEmpty(strOptString)) {
            ᵹˉᵞ.ˌᵜᵹᵩ("Product type cannot be empty.");
            throw null;
        }
        jSONObject.optString("serializedDocid");
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof C3561) {
            return TextUtils.equals(this.f13338, ((C3561) obj).f13338);
        }
        return false;
    }

    public final int hashCode() {
        return this.f13338.hashCode();
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("UnfetchedProduct{productId='");
        sb.append(this.f13339);
        sb.append("', productType='");
        sb.append(this.f13337);
        sb.append("', statusCode=");
        return AbstractC4486.m9545(sb, this.f13340, "}");
    }
}
