package com.erp.order.dto.request;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrderCreateRequest {

    private String platformOrderSn;
    private String platform;
    private Long shopId;
    private String shopName;
    private LocalDateTime orderTime;
    private String buyerNick;
    private String receiverName;
    private String receiverPhone;
    private String receiverAddress;
    private BigDecimal goodsAmount;
    private BigDecimal discountAmount;
    private BigDecimal freight;
    private BigDecimal totalAmount;
    private String platformStatus;
    private List<OrderItemRequest> items;

    @Data
    public static class OrderItemRequest {
        private String goodsName;
        private String platformSku;
        private String skuCode;
        private Long erpSkuId;
        private Integer quantity;
        private BigDecimal price;
        private BigDecimal totalAmount;
    }
}
