package com.jeesharp.business.modules.food.event;

import lombok.Getter;

import java.math.BigDecimal;

/**
 * 美食预订创建成功后触发统一交易订单双写（M5），由 {@code FoodBookingOrderApplicationService} 发布。
 *
 * @author jeesharp
 * @since 2026-05-08
 */
@Getter
public class FoodBookingDualWriteEvent {

    private final String foodOrderId;
    private final String memberId;
    private final BigDecimal totalAmount;
    private final String title;
    private final String packageId;
    private final String restaurantId;
    private final int quantity;

    public FoodBookingDualWriteEvent(String foodOrderId, String memberId, BigDecimal totalAmount, String title,
                                     String packageId, String restaurantId, int quantity) {
        this.foodOrderId = foodOrderId;
        this.memberId = memberId;
        this.totalAmount = totalAmount;
        this.title = title;
        this.packageId = packageId;
        this.restaurantId = restaurantId;
        this.quantity = quantity;
    }
}
