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 PreAllocationAddRequest {

    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty("订单ID")
    private Long orderId;

    @NotNull(message = "门店ID不能为空")
    @ApiModelProperty("门店ID")
    private Long shopId;

    @NotBlank(message = "费用类型不能为空")
    @ApiModelProperty("费用类型")
    private String expenseType;

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

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

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

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