package com.agileboot.domain.collaboration.record.command;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * @author codex
 */
@Data
public class CollaborationSettlementCommand {

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date settleDate;

    @Size(max = 30, message = "结款方式长度不能超过30个字符")
    private String method;

    @PositiveOrZero(message = "结款金额不能小于0")
    private BigDecimal income;

    @Size(max = 30, message = "结款用途长度不能超过30个字符")
    private String purpose;

}
