package com.izouma.nineth.event;

import com.izouma.nineth.enums.PayMethod;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderNotifyEvent implements Serializable {
    public static final String TYPE_ORDER      = "order";
    public static final String TYPE_MINT_ORDER = "mint_order";
    public static final String TYPE_GIFT_ORDER = "gift_order";
    public static final String TYPE_RECHARGE   = "recharge";
    public static final String TYPE_AUCTION_ORDER   = "auction_order";

    private Long      orderId;
    private PayMethod payMethod;
    private String    transactionId;
    private long      time;
    private String    type;

    public OrderNotifyEvent(Long orderId, PayMethod payMethod, String transactionId, long time) {
        this.orderId = orderId;
        this.payMethod = payMethod;
        this.transactionId = transactionId;
        this.time = time;
    }
}
