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;

/**
 * /selectSpecificInvoiced接口的返回数据封装类
 *
 * @author WH
 * @date 2021/12/27 12:43
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class SpecificInvoicedResponse {

    @JsonProperty("creatorTime")
    private String creatorTime;
    @JsonProperty("receiveEmail")
    private String receiveEmail;
    @JsonProperty("titleType")
    private Integer titleType;
    @JsonProperty("titleContent")
    private String titleContent;
    @JsonProperty("dutyNumber")
    private String dutyNumber;
    @JsonProperty("invoiceContent")
    private String invoiceContent;
    @JsonProperty("invoiceMoney")
    private BigDecimal invoiceMoney;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("financeNotes")
    private String financeNotes;
    @JsonProperty("historyOrders")
    private HistoryOrdersDTO historyOrders;

    @NoArgsConstructor
    @Data
    public static class HistoryOrdersDTO {

        @JsonProperty("totalItems")
        private Integer totalItems;
        @JsonProperty("historyOrdersData")
        private List<HistoryOrdersDataDTO> historyOrdersData;

        @NoArgsConstructor
        @Data
        public static class HistoryOrdersDataDTO {

            @JsonProperty("historyOrderId")
            private Long historyOrderId;
            @JsonProperty("actPrice")
            private BigDecimal actPrice;
            @JsonProperty("historySerialNumber")
            private String historySerialNumber;
            @JsonProperty("orderCreateTime")
            private String orderCreateTime;

        }

    }

}
