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

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

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

@Data
public class CardQueryCvvVerifyEmailCodeEntity {

    @NotNull(message = CustomConstant.COUNTRY_NOT_NULL)
    @NotBlank(message = CustomConstant.COUNTRY_NOT_NULL)
    private String country;

    @Pattern(regexp = RegexpConstants.REGEXP_EMAIL, message = Constants.EMAIL_FORMAT_ERROR)
    @NotNull(message = Constants.EMAIL_NOT_NULL_ERROR)
    @NotBlank(message = Constants.EMAIL_NOT_NULL_ERROR)
    private String email;

    @NotNull(message = Constants.EMAIL_CODE_NOT_NULL_ERROR)
    @NotBlank(message = Constants.EMAIL_CODE_NOT_NULL_ERROR)
    private String emailCode;

    @NotNull(message = Constants.EMAIL_CODE_NOT_NULL_ERROR)
    @NotBlank(message = Constants.EMAIL_CODE_NOT_NULL_ERROR)
    private String cardNumber;

}
