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;

/**
 * /selectInvoiceHistoryRecords接口的返回数据包装类
 *
 * @author WH
 * @date 2021/12/27 14:34
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class InvoiceHistoryRecordsResponse {

    @JsonProperty("totalItems")
    private Long totalItems;
    @JsonProperty("items")
    private List<ItemsDTO> items;

    @NoArgsConstructor
    @Data
    public static class ItemsDTO {

        @JsonProperty("invoiceId")
        private Long invoiceId;
        @JsonProperty("createTime")
        private String createTime;
        @JsonProperty("status")
        private Integer status;
        @JsonProperty("invoicingMoney")
        private BigDecimal invoicingMoney;
        @JsonProperty("isRead")
        private Integer isRead;

    }

}
