package com.ss.android.ugc.aweme.ecommerce.coupon.repository.dto;

import X.2HN;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.Objects;

public final class ClaimVoucherRequest {
    @c(LIZ = "request_source")
    public final int requestSource;
    @c(LIZ = "source")
    public final Integer trafficSource;
    @c(LIZ = "voucher_type_id")
    public final String voucherTypeID;

    static {
        Covode.recordClassIndex(69811);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_ecommerce_coupon_repository_dto_ClaimVoucherRequest_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ ClaimVoucherRequest copy$default(ClaimVoucherRequest claimVoucherRequest, String str, int i, Integer num, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = claimVoucherRequest.voucherTypeID;
        }
        if ((i2 & 2) != 0) {
            i = claimVoucherRequest.requestSource;
        }
        if ((i2 & 4) != 0) {
            num = claimVoucherRequest.trafficSource;
        }
        return claimVoucherRequest.copy(str, i, num);
    }

    private Object[] getObjects() {
        return new Object[]{this.voucherTypeID, Integer.valueOf(this.requestSource), this.trafficSource};
    }

    public final ClaimVoucherRequest copy(String str, int i, Integer num) {
        M12.LIZ(str);
        return new ClaimVoucherRequest(str, i, num);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ClaimVoucherRequest)) {
            return false;
        }
        return M12.LIZ(((ClaimVoucherRequest) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("ClaimVoucherRequest:%s,%s,%s", getObjects());
    }

    public final int getRequestSource() {
        return this.requestSource;
    }

    public final Integer getTrafficSource() {
        return this.trafficSource;
    }

    public final String getVoucherTypeID() {
        return this.voucherTypeID;
    }

    public ClaimVoucherRequest(String str, int i, Integer num) {
        M12.LIZ(str);
        this.voucherTypeID = str;
        this.requestSource = i;
        this.trafficSource = num;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ ClaimVoucherRequest(String str, int i, Integer num, int i2, 2HN r6) {
        this(str, i, (i2 & 4) != 0 ? null : num);
    }
}
