package com.crm.rely.backend.model.entity.finance.train;

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

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

@Data
public class FinanceTrainAddEntity extends BaseAddEntity {

    private Long customId;

    @NotNull
    private Long login;

    @NotNull
    private BigDecimal amount;

    @NotNull(message = Constants.PARAMETER_ERROR)
    @NotBlank(message = Constants.PARAMETER_ERROR)
    private String voucherUrl;

    private String name;

}
