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

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;

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

@Data
public class FinanceWithdrawApproveChannelEntity extends BaseUpdateEntity {

    private String serial;

    private String channelSerial;

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

    @Size(max = 200, message = "content_oversize")
    private String approveDesc;

    private String channelCode;
}
