package com.xunhong.erp.turbo.api.biz.dto.vo;

import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.enums.RebateCalcMethodEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "经销商返点客户")
@EqualsAndHashCode(callSuper = true)
public class DealerRebateCustomerVO extends DTO {

	/**
	 * 客户ID
	 */
	@Schema(title = "客户ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long customerId;

	/**
	 * 经销商ID
	 */
	@Schema(title = "经销商ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long dealerId;

	/**
	 * 客户名称
	 */
	@Schema(title = "客户名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	/**
	 * 状态：1_启用；0_禁用；
	 */
	@Schema(title = "状态：1_启用；0_禁用；", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean status;

	/**
	 * 备注
	 */
	@Schema(title = "备注")
	private String remark;

	/**
	 * 创建时间
	 */
	@Schema(title = "创建时间")
	private LocalDateTime createdAt;

	/**
	 * 经销商信息
	 */
	@Schema(title = "经销商信息")
	private DealerVO dealerVO;

	/**
	 * 返点计算方式：1_按净重计算；2_固定金额；3_不固定
	 */
	@Schema(title = "返点计算方式：1_按净重计算；2_固定金额；3_不固定")
	private RebateCalcMethodEnum calcMethod;

	/**
	 * 返点单价
	 */
	@Schema(title = "返点单价")
	private BigDecimal unitPrice;

	/**
	 * 返点金额
	 */
	@Schema(title = "返点金额")
	private BigDecimal amount;

}

