// Path: allegro-nice-domain/src/main/java/com/apwglobal/nice/util/UnixDate.java
// public class UnixDate {
// 
//     public static Date toDate(long unixTimestamp) {
//         return new Date(unixTimestamp * 1000);
//     }
// 
//     public static long toUnixTimestamp(Date date) {
//         return date.getTime() / 1000;
//     }
// 
// }


import com.apwglobal.nice.util.UnixDate;
import java.util.Date;
import java.util.Optional;
    }
    public int getQuantity() {
        return quantity;
    }

    public static final class Builder {
        private long eventId;
        private DealType dealType;
        private Date eventTime;
        private long dealId;
        private Optional<Long> transactionId;
        private long sellerId;
        private long itemId;
        private int buyerId;
        private int quantity;

        public Builder() {
        }

        public Builder eventId(long eventId) {
            this.eventId = eventId;
            return this;
        }

        public Builder dealType(int dealType) {
            this.dealType = DealType.VALUES.get(dealType);
            return this;
        }

        public Builder eventTime(long eventTime) {
// Path: allegro-nice-domain/src/main/java/com/apwglobal/nice/util/UnixDate.java
// public class UnixDate {
// 
//     public static Date toDate(long unixTimestamp) {
//         return new Date(unixTimestamp * 1000);
//     }
// 
//     public static long toUnixTimestamp(Date date) {
//         return date.getTime() / 1000;
//     }
// 
// }


// Path: allegro-nice-domain/src/main/java/com/apwglobal/nice/domain/Deal.java
import com.apwglobal.nice.util.UnixDate;
import java.util.Date;
import java.util.Optional;

    }
    public int getQuantity() {
        return quantity;
    }

    public static final class Builder {
        private long eventId;
        private DealType dealType;
        private Date eventTime;
        private long dealId;
        private Optional<Long> transactionId;
        private long sellerId;
        private long itemId;
        private int buyerId;
        private int quantity;

        public Builder() {
        }

        public Builder eventId(long eventId) {
            this.eventId = eventId;
            return this;
        }

        public Builder dealType(int dealType) {
            this.dealType = DealType.VALUES.get(dealType);
            return this;
        }

        public Builder eventTime(long eventTime) {
            this.eventTime = UnixDate.toDate(eventTime);