/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.guosen.bussinessRateStrategy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

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

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-09-23
 */
@Data
@TableName("cyzh_bussiness_rate_strategy")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BussinessRateStrategy对象", description = "BussinessRateStrategy对象")
public class BussinessRateStrategy extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 易宝产品码
	*/
		@NotNull
		@ApiModelProperty(value = "易宝产品码")
		private String productCode;
	/**
	* 计费策略:	SINGLE_PERCENT:单笔百分比SINGLE_FIXED:单笔固定值FIXED_MIX_PERCENT:单笔固定值+单笔百分比PERCENT_MIX_CAP:单笔百分比+封顶值。
	*/
		@ApiModelProperty(value = "计费策略:	SINGLE_PERCENT:单笔百分比SINGLE_FIXED:单笔固定值FIXED_MIX_PERCENT:单笔固定值+单笔百分比PERCENT_MIX_CAP:单笔百分比+封顶值。")
		private String rateType;
	/**
	* 单笔百分比：	计费策略为SINGLE_PERCENT、FIXED_MIX_PERCENT、PERCENT_MIX_CAP时，必填。PERCENT_MIX_CAP时，必填。	1、该字段单位：%；如0.5%，上传0.5即可。	2、规则:0<=rate<=100,整数位最多3位，小数位最多保留2位
	*/
		@ApiModelProperty(value = "单笔百分比：	计费策略为SINGLE_PERCENT、FIXED_MIX_PERCENT、PERCENT_MIX_CAP时，必填。PERCENT_MIX_CAP时，必填。	1、该字段单位：%；如0.5%，上传0.5即可。	2、规则:0<=rate<=100,整数位最多3位，小数位最多保留2位")
		private BigDecimal percentRate;
	/**
	* 单笔固定值
	*/
		@ApiModelProperty(value = "单笔固定值")
		private String fixedRate;

		@NotNull
		@ApiModelProperty(value = "本平台采购商ID")
		private Long bussinessId;

}
