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


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.List;


@Data
@ApiModel(value = "减免活动-缴费减免")
public class PropertyPayReductionVo  {
    @ApiModelProperty(name = "feeStandardDetailList", value = "减免的收费标准")
    private List<FeeStandardDetail> feeStandardDetailList;

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

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

    @ApiModelProperty(name = "payReduction", value = "使用到的缴费减免活动")
    private PropertyPayReduction payReduction;


    @Data
    public static class FeeStandardDetail{
        @ApiModelProperty(name = "monthNum", value = "减免的月数")
        private Long monthNum;

        @ApiModelProperty(name = "feeStandardId", value = "减免的收费标准")
        private Long feeStandardId;

        @ApiModelProperty(name = "detail", value = "减免的收费详情")
        private PropertyPayReductionDetail detail;
    }
    @Data
    public static class ReductionPriceDetail {
        @ApiModelProperty(name = "reductionPrice", value = "减免的金额")
        private Long reductionPrice;

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

}
