package com.crm.pay.entity.qr;

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;

@Data
public class QrCodeAddEntity 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;

}
