package com.izouma.nineth.event;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateOrderEvent implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    userId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    collectionId;
    private int     qty;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    addressId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    userCouponId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    invitor;
    private boolean vip;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long    showroomId;
}
