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

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

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
public class OrderRebate extends DTO {

	/**
	 * 记录ID
	 */
	@Schema(title = "记录ID", type = "string")
	private Long orderRebateId;

	/**
	 * 订单ID
	 */
	@Schema(title = "订单ID", type = "string")
	private Long orderId;

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

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

	/**
	 * 客户名称
	 */
	@Schema(title = "客户名称")
	private String name;

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

	/**
	 * 返点净重
	 */
	@Schema(title = "返点净重")
	private BigDecimal netWeight;

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

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

	/**
	 * 是否已付款
	 */
	@Schema(title = "是否已付款")
	private Boolean isPaid;
}
