package com.crm.rely.backend.core.entity.finance.transfer;

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

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class FinanceTransferApproveManagerEntity extends BaseUpdateEntity {

    @NotNull(message = Constants.INVALID_REQUEST)
    @NotBlank(message = Constants.INVALID_REQUEST)
    private String depositTicket;

    @NotNull(message = Constants.INVALID_REQUEST)
    @NotBlank(message = Constants.INVALID_REQUEST)
    private String withdrawTicket;

    @NotNull(message = Constants.INVALID_REQUEST)
    @Min(value = 1, message = Constants.INVALID_REQUEST)
    private Integer withdrawStatus;

    @NotNull(message = Constants.INVALID_REQUEST)
    @Min(value = 1, message = Constants.INVALID_REQUEST)
    private Integer depositStatus;


}
