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

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

import java.math.BigDecimal;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "供应商发票信息")
@EqualsAndHashCode(callSuper = true)
public class OrderSupplierInvoice extends DTO {

	/**
	 * 记录ID
	 */
	@Schema(title = "记录ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long orderSupplierId;

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

	/**
	 * 供应商ID
	 */
	@Schema(title = "供应商ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long supplierId;

	/**
	 * 供应商姓名
	 */
	@Schema(title = "供应商姓名", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	/**
	 * 供应商类型：1_瓜农；2_自家档口；3_其他家档口
	 */
	@Schema(title = "供应商类型：1_瓜农；2_自家档口；3_其他家档口", requiredMode = Schema.RequiredMode.REQUIRED)
	private SupplierTypeEnum type;

	/**
	 * 发票金额
	 */
	@Schema(title = "瓜农发票金额", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal invoiceAmount;

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

	/**
	 * 经销航名称
	 */
	@Schema(title = "经销航名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String dealerName;

	/**
	 * 车次号
	 */
	@Schema(title = "车次号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String vehicleNo;
}
