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

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.payment.invoice.domain.MerInvoiceAddress;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 发票地址视图对象 mer_invoice_address
 *
 * @author LionLi
 * @date 2024-05-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MerInvoiceAddress.class)
public class MerInvoiceAddressVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 商户id
     */
    @ExcelProperty(value = "商户id")
    private Long merId;

    /**
     * 商户编号
     */
    @ExcelProperty(value = "商户编号")
    private String merNo;

    /**
     * 收件人姓名
     */
    @ExcelProperty(value = "收件人姓名")
    private String name;

    /**
     * 收件人手机号
     */
    @ExcelProperty(value = "收件人手机号")
    private String phone;

    /**
     * 收件地址
     */
    @ExcelProperty(value = "收件地址")
    private String address;

    /**
     * 邮箱地址
     */
    @ExcelProperty(value = "邮箱地址")
    private String email;

    /**
     * 是否默认（0:否 1:是）
     */
    @ExcelProperty(value = "是否默认", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:否,1=:是")
    private Long isDefault;

    /**
     * 添加时间
     */
    @ExcelProperty(value = "添加时间")
    private Date addTime;

    /**
     * 添加人
     */
    @ExcelProperty(value = "添加人")
    private String addBy;

    /**
     * 发票抬头
     */
    @ExcelProperty(value = "发票抬头")
    private String header;

    /**
     * 纳税人识别号
     */
    @ExcelProperty(value = "纳税人识别号")
    private String nsrSbh;

    /**
     * 单位注册地址
     */
    @ExcelProperty(value = "单位注册地址")
    private String unitAddress;

    /**
     * 单位电话
     */
    @ExcelProperty(value = "单位电话")
    private String unitPhone;

    /**
     * 开户银行账号
     */
    @ExcelProperty(value = "开户银行账号")
    private String bankCard;

    /**
     * 开户行地址
     */
    @ExcelProperty(value = "开户行地址")
    private String bankAddress;


}
