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

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

import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "瓜农发票创建")
@EqualsAndHashCode(callSuper = true)
public class SupplierInvoiceCreateCmd extends Command {

	/**
	 * 发票类型：1_瓜农
	 */
	@Schema(title = "瓜农发票类型：1_瓜农")
	private SupplierInvoiceTypeEnum type;

	/**
	 * 发票开具人
	 */
	@Schema(title = "瓜农发票开具人", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long supplierId;

	/**
	 * 发票开具人名称
	 */
	@Schema(title = "瓜农发票开具人名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String supplierName;

	/**
	 * 代开发票人的信息
	 */
	@Schema(title = "代开发票人的信息")
	private List<OrderSupplierInvoice> orderSupplierInvoiceList;

	/**
	 * 发票图片（支持多张）
	 */
	@Schema(title = "瓜农发票图片（支持多张）")
	private List<UploadFileItem> invoiceImg;
}

