package com.izouma.nineth.event;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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 {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long      orderId;
    private String orderNo;
    private PayMethod payMethod;
    private String    transactionId;
    private long      time;
}
