package com.cool.store.request.store;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 编辑预分账记录请求
 */
@Data
public class PreAllocationEditRequest {

    @NotNull(message = "记录ID不能为空")
    @ApiModelProperty("记录ID")
    private Long id;

    @ApiModelProperty("费用类型")
    private String expenseType;

    @ApiModelProperty("收款公司名称")
    private String payeeName;

    @ApiModelProperty("收款公司Code")
    private String payeeCode;

    @ApiModelProperty("分账金额")
    @DecimalMin(value = "0.01", message = "分账金额必须大于0")
    private BigDecimal payAmount;

    @ApiModelProperty("分账备注")
    private String remark;
}
