package com.xiaoniu.system.order.storeorder.vo;

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author haoxuyang
 * @Date 2024/11/3 14:38
 */
@Data
@Schema(description = "订单详情")
public class OrderDetailsVO {
    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "手机号")
    private String phoneNumber;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "商品类型")
    private String goodsType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "下单时间")
    private Date createTime;

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

    @Schema(description = "商品ID")
    private Long goodsId;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "商品个数")
    private Integer goodsNum;

    @Schema(description = "商品原价")
    private BigDecimal goodsPrice;

    @Schema(description = "订单状态 0待支付 1待发货 2待使用 3已完成 4待评价 5退款/售后 6已结算 7未成团 8已成团 9进行中 10已评论 90已取消")
    private String status;

    @Schema(description = "支付金额")
    private BigDecimal paymentAmount;

    @Schema(description = "优惠金额")
    private BigDecimal discountAmount;

    @Schema(description = "优惠明细")
    private String discountDetails;

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

    @Schema(description = "门店负责人")
    private String storeInfo;

    @Schema(description = "关联车辆")
    private String associatedVehicles;

    @Schema(description = "售后订单信息")
    private AfterSalesVO afterSalesVO;
}
