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

import org.dromara.payment.operator.domain.ReProductInvoice;
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.*;

/**
 * 产品开票类目业务对象 re_product_invoice
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ReProductInvoice.class, reverseConvertGenerate = false)
public class ReProductInvoiceBo extends BaseEntity {

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

    /**
     * 业务类型(1:委托代征，2:自然人代开，3:个体户注册)
     */
    private Long proType;

    /**
     * 产品编号
     */
    private String proNo;

    /**
     * 产品id
     */
    private Long proId;

    /**
     * 开票类目id(mer_invoice_type表id)
     */
    @NotNull(message = "开票类目id(mer_invoice_type表id)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long invoiceTypeId;

    @NotNull(message = "开票类目名称(mer_invoice_type表type)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoiceTypeName;

    /**
     * 业务id(结算中心id或运营商id)
     */
    private Long busId;

    /**
     * 业务类型（6：服务商 7：运营商 8：代理商 9：商户 11:账单批次）
     */
    private Integer busType;


}
