package com.xhpc.user.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @author WH
 * @date 2021/12/27 14:34
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class InvoicedOrderResponse {

    @JsonProperty("allTotalItems")
    private Integer allTotalItems;
    @JsonProperty("totalItems")
    private Integer totalItems;
    @JsonProperty("recordsMonth")
    private String recordsMonth;
    @JsonProperty("items")
    private List<ItemsDTO> items;

    @NoArgsConstructor
    @Data
    public static class ItemsDTO {

        @JsonProperty("orderScopeTime")
        private String orderScopeTime;
        @JsonProperty("orderDatas")
        private List<OrderDatasDTO> orderDatas;

        @NoArgsConstructor
        @Data
        public static class OrderDatasDTO {

            @JsonProperty("orderId")
            private Long orderId;
            @JsonProperty("orderNumber")
            private String orderNumber;
            @JsonProperty("totalMoney")
            private BigDecimal totalMoney;
            @JsonProperty("orderMoney")
            private BigDecimal orderMoney;
            @JsonProperty("placeholderMoney")
            private BigDecimal placeholderMoney;
            @JsonProperty("orderTime")
            private String orderTime;

        }

    }

}
