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

import com.alibaba.cola.dto.DTO;
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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "瓜农发票")
@EqualsAndHashCode(callSuper = true)
public class SupplierInvoiceVO extends DTO {

	/**
	 * 发票ID
	 */
	@Schema(title = "瓜农发票ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long supplierInvoiceId;

	/**
	 * 发票类型：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;

	/**
	 * 登记时间
	 */
	@Schema(title = "登记时间", requiredMode = Schema.RequiredMode.REQUIRED)
	private LocalDateTime registrationTime;

	/**
	 * 创建人ID
	 */
	@Schema(title = "创建人ID", type = "string")
	private Long createdBy;

	/**
	 * 创建人姓名
	 */
	@Schema(title = "创建人姓名")
	private String createdByName;

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

}

