package com.cool.store.response;

import com.cool.store.utils.CustomMapDeserializer;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
import java.util.Map;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class IncomeSummaryResponse {

    @ApiModelProperty(value = "现金")
    private PaymentDetail offline;
    @ApiModelProperty(value ="微信")
    private PaymentDetail wechat;
    @ApiModelProperty(value ="支付宝")
    private PaymentDetail ali;
    @ApiModelProperty(value ="会员卡")
    private PaymentDetail vip;
    @ApiModelProperty(value ="美团券核销")
    private PaymentDetail meituan_coupon;
    @ApiModelProperty(value ="抖音券核销")
    private PaymentDetail douyin_coupon;
    @ApiModelProperty(value ="快手券核销")
    private PaymentDetail kuaishou_coupon;
    @ApiModelProperty(value ="口碑券核销")
    private PaymentDetail koubei_coupon;
    @ApiModelProperty(value ="支付宝券核销")
    private PaymentDetail zfb_coupon;
    @ApiModelProperty(value ="云闪付")
    private PaymentDetail union_pay;
    @ApiModelProperty(value ="龙支付")
    private PaymentDetail dragon_pay;
    @ApiModelProperty(value ="其他收款")
    private OtherPayDetail other_pay;
    @ApiModelProperty(value ="补贴金额")
    private PaymentDetail subsidy_total;
    @ApiModelProperty(value ="配送费支出")
    private PaymentDetail logistics_cost_price_total;
    @ApiModelProperty(value ="饿了么外卖")
    private PaymentDetail eleme;
    @ApiModelProperty(value ="美团外卖")
    private PaymentDetail meituan;
    @ApiModelProperty(value ="APP")
    private PaymentDetail wenma_app;
}

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
class OtherPayDetail {
    @JsonDeserialize(using = CustomMapDeserializer.class)
    private Map<String,PaymentDetail> other_pay_detail;
}