001package io.konik.sdk.invoices;
002
003import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
004import io.konik.sdk.json.DateDeserializer;
005import io.konik.sdk.json.DateTimeDeserializer;
006
007import java.math.BigDecimal;
008import java.util.Date;
009
010public class InvoicesListElement {
011
012        private String id;
013
014        private String documentType;
015
016        private String status;
017
018        private String number;
019
020        @JsonDeserialize(using = DateDeserializer.class)
021        private Date performanceDate;
022
023        private String buyerName;
024
025        private String sellerName;
026
027        private BigDecimal amount;
028
029        private String currency;
030
031        @JsonDeserialize(using = DateTimeDeserializer.class)
032        private Date createdDate;
033
034        public String getId() {
035                return id;
036        }
037
038        public void setId(String id) {
039                this.id = id;
040        }
041
042        public String getDocumentType() {
043                return documentType;
044        }
045
046        public void setDocumentType(String documentType) {
047                this.documentType = documentType;
048        }
049
050        public String getStatus() {
051                return status;
052        }
053
054        public void setStatus(String status) {
055                this.status = status;
056        }
057
058        public String getNumber() {
059                return number;
060        }
061
062        public void setNumber(String number) {
063                this.number = number;
064        }
065
066        public Date getPerformanceDate() {
067                return performanceDate;
068        }
069
070        public void setPerformanceDate(Date performanceDate) {
071                this.performanceDate = performanceDate;
072        }
073
074        public String getBuyerName() {
075                return buyerName;
076        }
077
078        public void setBuyerName(String buyerName) {
079                this.buyerName = buyerName;
080        }
081
082        public String getSellerName() {
083                return sellerName;
084        }
085
086        public void setSellerName(String sellerName) {
087                this.sellerName = sellerName;
088        }
089
090        public BigDecimal getAmount() {
091                return amount;
092        }
093
094        public void setAmount(BigDecimal amount) {
095                this.amount = amount;
096        }
097
098        public String getCurrency() {
099                return currency;
100        }
101
102        public void setCurrency(String currency) {
103                this.currency = currency;
104        }
105
106        public Date getCreatedDate() {
107                return createdDate;
108        }
109
110        public void setCreatedDate(Date createdDate) {
111                this.createdDate = createdDate;
112        }
113
114        @Override
115        public String toString() {
116                return "InvoicesListElement{" +
117                                "id='" + id + '\'' +
118                                ", documentType='" + documentType + '\'' +
119                                ", status=" + status +
120                                ", number='" + number + '\'' +
121                                ", performanceDate=" + performanceDate +
122                                ", buyerName='" + buyerName + '\'' +
123                                ", sellerName='" + sellerName + '\'' +
124                                ", amount=" + amount +
125                                ", currency='" + currency + '\'' +
126                                ", createdDate=" + createdDate +
127                                '}';
128        }
129}