package com.crm.pay.entity.digital;

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

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

/**
 * @Author: houn
 * @Date: 2020/8/20 18:16
 * @Description:
 */
@Data
public class DigitalAddEntity extends FinanceDepositParameterEntity {

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

    private Long login;

    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal amount;

    private Integer activityDeposit;

}
