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


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 费用项目
 * </p>
 *
 * @author cxj
 * @since 2023-12-12
 */
@Data
@ApiModel(value="PropertyFeeItemAddDto", description="新增")
public class PropertyFeeItemAddDto {

    @ApiModelProperty(name = "id", value = "id")
    private Long id;

    @NotNull
    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;
    /**
     * 费用项目名称
     */
    @NotBlank
    @ApiModelProperty(name = "feeItemName", value = "费用项目名称")
    private String feeItemName;
    /**
     * 归属收费科目:1:0001主营业务收入,2:0002营业外收入,3:0003保证金,4:004代收费,5:0005预存款
     */
    @NotNull
    @Range(min = 1,max = 5)
    @ApiModelProperty(name = "feeSubject", value = "归属收费科目:1:0001主营业务收入,2:0002营业外收入,3:0003保证金,4:004代收费,5:0005预存款")
    private Integer feeSubject;
    /**
     * 费用项目编码
     */
    @ApiModelProperty(name = "feeItemCode", value = "费用项目编码")
    private String feeItemCode;
    /**
     * 税收分类ID
     */
    @Range(min = 1,max = 5)
    @ApiModelProperty(name = "taxCategoryId", value = "税收分类ID")
    private Long taxCategoryId;
    /**
     * 是否含税0不含税,1含税
     */
    @ApiModelProperty(name = "isTaxInclusive", value = "是否含税0不含税,1含税")
    private Integer isTaxInclusive;
    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    /**
     * 是否设置充值条件0未设置,1设置
     */
    @ApiModelProperty(name = "isSetCondition", value = "是否设置充值条件0未设置,1设置")
    private Integer isSetCondition;
    /**
     * 设置充值条件的收费项目id
     */
    @ApiModelProperty(name = "conditionFeeItemId", value = "设置充值条件的收费项目id")
    private Long conditionFeeItemId;
    /**
     * 欠费(设置条件类型1金额,2时长)
     */
    @ApiModelProperty(name = "conditionType", value = "欠费(设置条件类型1金额,2时长)")
    private Integer conditionType;
    /**
     * 大于条件数值:分或月
     */
    @ApiModelProperty(name = "conditionNum", value = "大于条件数值:分或月")
    private Long conditionNum;

    @ApiModelProperty(name = "conditionNum", value = "充值金额")
    private Long maxAmount;
    /**
     * 用于冲抵的项目1所有项目,2指定项目
     */
    @ApiModelProperty(name = "balanceType", value = "用于冲抵的项目1所有项目,2指定项目")
    private Integer balanceType;

    @ApiModelProperty(name = "itemId", value = "选择指定项目")
    private List<Long> itemId;


}
