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

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 企业团餐试算结果 VO。
 */
@Data
public class FoodCompanyMealTrialVO {

    private String companyId;
    private String companyName;
    private String employeeId;
    private String employeeName;
    private String accountId;
    private BigDecimal accountAvailableBalance;
    private String menuId;
    private LocalDate mealDate;
    private String mealType;
    private BigDecimal originalAmount;
    private BigDecimal discountAmount;
    private BigDecimal payableAmount;
    private BigDecimal companyPayAmount;
    private BigDecimal employeePayAmount;
    private FoodCompanySubsidyRuleSummaryVO subsidyRule;
    private BigDecimal dailyUsedAmount;
    private BigDecimal mealUsedAmount;
    private BigDecimal dailyRemainAmount;
    private BigDecimal mealRemainAmount;
    private List<Item> items;

    @Data
    public static class Item {
        private String menuItemId;
        private String specId;
        private String specName;
        private String specDescription;
        private String itemType;
        private String itemName;
        private String itemImage;
        private BigDecimal salePrice;
        private Integer quantity;
        private BigDecimal originalAmount;
        private BigDecimal discountAmount;
        private BigDecimal payableAmount;
        private BigDecimal companyPayAmount;
        private BigDecimal employeePayAmount;
    }

    @Data
    public static class FoodCompanySubsidyRuleSummaryVO {
        private String ruleId;
        private String ruleName;
        private String ruleType;
        private BigDecimal subsidyAmount;
        private BigDecimal discountRate;
        private BigDecimal dailyLimitAmount;
        private BigDecimal mealLimitAmount;
        private String mealTypes;
        private LocalDateTime effectiveTime;
        private LocalDateTime expireTime;
    }
}
