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

import com.xunhong.erp.turbo.api.biz.dto.common.ShipOrderItem;
import com.xunhong.erp.turbo.base.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "发货单生成单据")
@EqualsAndHashCode(callSuper = true)
public class ShipOrderGenerateDocumentCmd extends Command {

	@Schema(title = "发货单ID", requiredMode = Schema.RequiredMode.REQUIRED, type = "string")
	private Long shipOrderId;

	/**
	 * 预计到仓时间
	 */
	@Schema(title = "预计到仓时间")
	private LocalDate estimatedArrivalDate;

	/**
	 * 西瓜品级
	 */
	@Schema(title = "西瓜品级")
	private String watermelonGrade;

	/**
	 * 发货地址
	 */
	@Schema(title = "发货地址")
	private String shippingAddress;

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

	/**
	 * 发货单明细
	 */
	@Schema(title = "发货单明细")
	private List<ShipOrderItem> shipOrderItemList;

	/**
	 * 发货单据
	 */
	@Schema(title = "发货单据")
	private String shipDocument;

	/**
	 * 采购底单
	 */
	@Schema(title = "采购底单")
	private String purchaseDocument;

	/**
	 * 成本单据
	 */
	@Schema(title = "成本单据")
	private String costDocument;
}

