package com.erp.platformsync.dto.pdd;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 拼多多订单DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PddOrderDTO {

    /**
     * 订单编号
     */
    private String orderSn;

    /**
     * 平台订单编号
     */
    private String platformOrderSn;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 订单状态描述
     */
    private String statusDesc;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 支付时间
     */
    private String payTime;

    /**
     * 发货时间
     */
    private String consignTime;

    /**
     * 收货时间
     */
    private String receiveTime;

    /**
     * 买家昵称
     */
    private String buyerNick;

    /**
     * 收货人姓名
     */
    private String receiverName;

    /**
     * 收货人电话
     */
    private String receiverPhone;

    /**
     * 收货省份
     */
    private String receiverProvince;

    /**
     * 收货城市
     */
    private String receiverCity;

    /**
     * 收货区县
     */
    private String receiverDistrict;

    /**
     * 收货详细地址
     */
    private String receiverAddress;

    /**
     * 收货人完整地址
     */
    private String fullAddress;

    /**
     * 商品总金额
     */
    private BigDecimal totalAmount;

    /**
     * 运费
     */
    private BigDecimal postage;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 快递公司编码
     */
    private String logisticsCompany;

    /**
     * 快递单号
     */
    private String waybillNo;

    /**
     * 备注
     */
    private String remark;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 订单商品列表
     */
    private List<PddOrderItemDTO> items;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PddOrderItemDTO {
        private String skuId;
        private String skuName;
        private String skuNumber;
        private Integer quantity;
        private BigDecimal price;
        private BigDecimal amount;
        private String goodsSign;
        private String goodsName;
    }
}
