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

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

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


@Data
public class WasabiActiveCardEntity {

    /**
     * 商户订单号。[20...40]位
     */
    private String merchantOrderNo;

    /**
     * 卡ID
     */
    private String cardNo;

    /**
     * 银行卡交易密码。6位数字
     */
    @NotEmpty(message = "Please input password")
    @NotBlank(message = "Please input password")
    @Pattern(regexp = "^\\d{6}$", message = Constants.PASSWORD_FORMAT_ERROR)
    private String pin;

    /**
     * 激活码
     */
    private String activeCode;

    /**
     * 无需PIN的支付金额。0~2000美元，默认500美元
     */
    private BigDecimal noPinPaymentAmount;

    private Long cId;

}
