package com.erp.common.core.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单取消/退款事件 - 订单取消或退款时发布
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderCancelledEvent {
    private Long orderId;
    private String orderNo;
    private String shortId;
    private String platform;
    private Long shopId;
    private BigDecimal refundAmount;
    private String refundReason;
    private String eventType; // cancel / refund
    private LocalDateTime eventTime;
}
