package com.yuchen.saas.park.api.vo.property;


import com.yuchen.saas.park.api.entity.property.PropertyDirectReduction;
import com.yuchen.saas.park.api.entity.property.PropertyDirectReductionDetail;
import com.yuchen.saas.park.api.entity.property.PropertyPayReduction;
import com.yuchen.saas.park.api.entity.property.PropertyPayReductionDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
@ApiModel(value = "减免活动-直接减免")
public class PropertyDirectReductionVo {

    @ApiModelProperty(name = "totalReductionPrice", value = "减免总额(分)(减免的总金额可能会比原来的总金额大,如果优惠后的总金额为负数,看需求是否设为0)")
    private Long totalReductionPrice=0L;


    @ApiModelProperty(name = "directReductionList", value = "减免活动明细")
    private List<DirectReductionList> directReductionList=new ArrayList<>();


    @Data
    public static class DirectReductionList{
        @ApiModelProperty(name = "itemReductionPrice", value = "单个活动减免总额(分)")
        private Long itemReductionPrice;

        @ApiModelProperty(name = "reductionPriceDetailList", value = "减免金额明细")
        private List<ReductionPriceDetail> reductionPriceDetailList;

        @ApiModelProperty(name = "directReduction", value = "使用到的直接减免活动")
        private PropertyDirectReduction directReduction;
    }


    @Data
    public static class ReductionPriceDetail {
        @ApiModelProperty(name = "reductionPrice", value = "单个活动明细减免的金额")
        private Long reductionPrice;

        @ApiModelProperty(name = "detail", value = "减免的收费详情")
        private PropertyDirectReductionDetail detail;
    }

}
