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

import org.dromara.payment.channel.domain.BusChannelProduct;
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.math.BigDecimal;

/**
 * 代理商产品业务对象 bus_channel_product
 *
 * @author LionLi
 * @date 2024-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusChannelProduct.class, reverseConvertGenerate = false)
public class BusChannelProductBo extends BaseEntity {

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

    /**
     * 结算中心id
     */
    @NotNull(message = "结算中心id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sydId;

    /**
     * 结算中心编号
     */
    @NotBlank(message = "结算中心编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sydNo;

    /**
     * 业务类型(1:委托代征，2:自然人代开，3:个体户注册 4:临时税务登记 5：资金代发 6：派遣&外包
     */
    @NotNull(message = "业务类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long busType;

    /**
     * 产品编号
     */
    @NotBlank(message = "产品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String proNo;

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

    /**
     * 运营商编号
     */
    @NotBlank(message = "运营商编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String opNo;

    /**
     * 运营商id
     */
    @NotNull(message = "运营商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long opId;

    /**
     * 运营商服务费率(%)
     */
    @NotNull(message = "运营商服务费率(%)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal costServiceCharge;

    /**
     * 代理商服务费率(%)
     */
//    @NotNull(message = "代理商服务费率(%)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal serviceCharge;

    /**
     * 代理商id
     */
    @NotNull(message = "代理商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelId;

    /**
     * 代理商编号
     */
    @NotBlank(message = "代理商编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channelNo;

    /**
     * 计费模式(1:个人应得计费、2:开票金额计费)
     */
    @NotNull(message = "计费模式不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long chargeMode;

    /**
     * 结算方式（1：到卡 2：余额）
     */
    @NotNull(message = "结算方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer settlementStyle;

    /**
     * 单月发放上限（分）
     */
    @NotNull(message = "单月发放上限不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long maxMonth;

    /**
     * 开票类型（1：增值税专用发票 2：增值税普通发票 3：差额票）
     */
    @NotNull(message = "开票类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer invoiceType;

    /**
     * 开票类目名称
     */
//    @NotBlank(message = "开票类目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invoiceItems;

    /**
     * 状态（1：上架 2：下架）
     */
    private Integer proStatus;


    private Long chId;

    private Integer upIsOp;


}
