package org.dromara.payment.invoice.domain.bo;

import org.dromara.payment.invoice.domain.MerInvoiceAddress;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 发票地址业务对象 mer_invoice_address
 *
 * @author LionLi
 * @date 2024-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MerInvoiceAddress.class, reverseConvertGenerate = false)
public class MerInvoiceAddressBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商户id
     */
    private Long merId;

    /**
     * 商户编号
     */
    private String merNo;

    /**
     * 收件人姓名
     */
    @NotBlank(message = "收件人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 收件人手机号
     */
    @NotBlank(message = "收件人手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 收件地址
     */
    @NotBlank(message = "收件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 是否默认（0:否 1:是）
     */
    private Long isDefault;

    /**
     * 添加时间
     */
    private Date addTime;

    /**
     * 添加人
     */
    private String addBy;

    /**
     * 发票抬头
     */
    @NotBlank(message = "发票抬头不能为空", groups = { AddGroup.class, EditGroup.class })
    private String header;

    /**
     * 纳税人识别号
     */
    @NotBlank(message = "纳税人识别号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nsrSbh;

    /**
     * 单位注册地址
     */
    @NotBlank(message = "单位注册地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitAddress;

    /**
     * 单位电话
     */
    @NotBlank(message = "单位电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitPhone;

    /**
     * 开户银行账号
     */
    @NotBlank(message = "开户银行账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankCard;

    /**
     * 开户行地址
     */
    @NotBlank(message = "开户行地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankAddress;


}
