package com.crm.rely.backend.core.entity.ucard;

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

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class CardNumberVerifyEntity {

    @NotBlank(message = Constants.PARAMETER_ERROR)
    @NotNull(message = Constants.PARAMETER_ERROR)
    @Pattern(regexp = "^[0-9]+$", message = Constants.PARAMETER_ERROR)
    private String cardNumber;

}
