package com.heyu.api.resp.financial;


import com.heyu.api.data.dto.BaseResp;
import lombok.Data;

import java.util.List;

@Data
public class ShoppingReceiptResp extends BaseResp {


    private List<String> totalAmount;                       // 总金额
    private List<String> discount;          //优惠/折扣
    private List<String> currency;                  //	币种
    private List<String> receiptNum;                    //小票号码
    private List<String> shopName;              //	店名/超市名字
    private List<String> consumptionTime;           //消费时间
    private List<String> consumptionDate;               //消费日期
    private Integer tableRowNum;                    //商品明细行数，表示Table中的object个数
    private List<TableDTO> table;
    private List<String> paidAmount;            //实收金额
    private List<String> printDate;                     //打印日期
    private List<String> machineNum;                //机器编号
    private List<String> change;                    //找零
    private List<String> employeeNum;                   //工号
    private List<String> printTime;                 //	打印时间


    @Data
    public static class TableDTO {
        private String product;                     //商品条码/名称
        private String quantity;                // 数量
        private String unitPrice;                       //单价
        private String subtotalAmount;              // 小计金额
    }

}