package com.erp.dashboard.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 近期订单DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "近期订单")
public class RecentOrderDTO {

    @Schema(description = "订单ID")
    private Long id;

    @Schema(description = "短单号")
    private String shortId;

    @Schema(description = "平台")
    private String platform;

    @Schema(description = "店铺名称")
    private String shopName;

    @Schema(description = "订单状态")
    private String orderStatus;

    @Schema(description = "发货状态")
    private String deliveryStatus;

    @Schema(description = "订单总金额")
    private BigDecimal totalAmount;

    @Schema(description = "商品金额")
    private BigDecimal goodsAmount;

    @Schema(description = "运费")
    private BigDecimal freight;

    @Schema(description = "商品数量")
    private Integer itemCount;

    @Schema(description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime paymentTime;

    @Schema(description = "仓库名称")
    private String warehouseName;

    @Schema(description = "快递公司")
    private String expressCompany;

    @Schema(description = "快递单号")
    private String expressNo;
}
