| 21686 |
ashik.ali |
1 |
package com.spice.profitmandi.common.model;
|
|
|
2 |
|
| 30399 |
amit.gupta |
3 |
import java.io.File;
|
| 23001 |
amit.gupta |
4 |
import java.util.List;
|
| 30399 |
amit.gupta |
5 |
import java.util.Objects;
|
| 21686 |
ashik.ali |
6 |
import java.util.Set;
|
|
|
7 |
|
| 30321 |
amit.gupta |
8 |
public class InvoicePdfModel {
|
| 32246 |
tejbeer |
9 |
private String title;
|
|
|
10 |
private String auther;
|
|
|
11 |
private CustomCustomer customer;
|
|
|
12 |
private String customerAddressStateCode;
|
|
|
13 |
private File qrCode;
|
|
|
14 |
private String irnNumber;
|
| 30321 |
amit.gupta |
15 |
|
|
|
16 |
|
| 32246 |
tejbeer |
17 |
private CustomRetailer retailer;
|
|
|
18 |
private String invoiceNumber;
|
|
|
19 |
private boolean isCancelled;
|
| 30399 |
amit.gupta |
20 |
|
| 32246 |
tejbeer |
21 |
private String invoiceDate;
|
|
|
22 |
private Set<CustomOrderItem> orderItems;
|
|
|
23 |
private Set<CustomInsurancePolicy> insurancePolicies;
|
|
|
24 |
private List<CustomPaymentOption> paymentOptions;
|
|
|
25 |
private List<String> tncs;
|
|
|
26 |
private float totalAmount;
|
| 30399 |
amit.gupta |
27 |
|
| 32246 |
tejbeer |
28 |
public boolean isCancelled() {
|
|
|
29 |
return isCancelled;
|
|
|
30 |
}
|
| 30399 |
amit.gupta |
31 |
|
| 32246 |
tejbeer |
32 |
public void setCancelled(boolean isCancelled) {
|
|
|
33 |
this.isCancelled = isCancelled;
|
|
|
34 |
}
|
| 30399 |
amit.gupta |
35 |
|
| 32246 |
tejbeer |
36 |
public String getCustomerAddressStateCode() {
|
|
|
37 |
return customerAddressStateCode;
|
|
|
38 |
}
|
| 30399 |
amit.gupta |
39 |
|
| 32246 |
tejbeer |
40 |
public void setCustomerAddressStateCode(String customerAddressStateCode) {
|
|
|
41 |
this.customerAddressStateCode = customerAddressStateCode;
|
|
|
42 |
}
|
| 30399 |
amit.gupta |
43 |
|
| 32246 |
tejbeer |
44 |
private String partnerAddressStateCode;
|
| 30399 |
amit.gupta |
45 |
|
| 32246 |
tejbeer |
46 |
public String getPartnerAddressStateCode() {
|
|
|
47 |
return partnerAddressStateCode;
|
|
|
48 |
}
|
| 30399 |
amit.gupta |
49 |
|
| 32246 |
tejbeer |
50 |
public void setPartnerAddressStateCode(String partnerAddressStateCode) {
|
|
|
51 |
this.partnerAddressStateCode = partnerAddressStateCode;
|
|
|
52 |
}
|
| 30399 |
amit.gupta |
53 |
|
| 32246 |
tejbeer |
54 |
public String getTitle() {
|
|
|
55 |
return title;
|
|
|
56 |
}
|
| 30399 |
amit.gupta |
57 |
|
| 32246 |
tejbeer |
58 |
public void setTitle(String title) {
|
|
|
59 |
this.title = title;
|
|
|
60 |
}
|
| 30399 |
amit.gupta |
61 |
|
| 32246 |
tejbeer |
62 |
public String getAuther() {
|
|
|
63 |
return auther;
|
|
|
64 |
}
|
| 30399 |
amit.gupta |
65 |
|
| 32246 |
tejbeer |
66 |
public void setAuther(String auther) {
|
|
|
67 |
this.auther = auther;
|
|
|
68 |
}
|
| 30399 |
amit.gupta |
69 |
|
| 32246 |
tejbeer |
70 |
public CustomCustomer getCustomer() {
|
|
|
71 |
return customer;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public void setCustomer(CustomCustomer customer) {
|
|
|
75 |
this.customer = customer;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public CustomRetailer getRetailer() {
|
|
|
79 |
return retailer;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public void setRetailer(CustomRetailer retailer) {
|
|
|
83 |
this.retailer = retailer;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public String getInvoiceNumber() {
|
|
|
87 |
return invoiceNumber;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
91 |
this.invoiceNumber = invoiceNumber;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public Set<CustomOrderItem> getOrderItems() {
|
|
|
95 |
return orderItems;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setOrderItems(Set<CustomOrderItem> orderItems) {
|
|
|
99 |
this.orderItems = orderItems;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
public Set<CustomInsurancePolicy> getInsurancePolicies() {
|
|
|
103 |
return insurancePolicies;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
|
|
|
107 |
this.insurancePolicies = insurancePolicies;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
public float getTotalAmount() {
|
|
|
111 |
return totalAmount;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public void setTotalAmount(float totalAmount) {
|
|
|
115 |
this.totalAmount = totalAmount;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public String getInvoiceDate() {
|
|
|
119 |
return invoiceDate;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public void setInvoiceDate(String invoiceDate) {
|
|
|
123 |
this.invoiceDate = invoiceDate;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
public List<String> getTncs() {
|
|
|
127 |
return tncs;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public void setTncs(List<String> tncs) {
|
|
|
131 |
this.tncs = tncs;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public List<CustomPaymentOption> getPaymentOptions() {
|
|
|
135 |
return paymentOptions;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
|
|
|
139 |
this.paymentOptions = paymentOptions;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
@Override
|
|
|
143 |
public String toString() {
|
|
|
144 |
return "InvoicePdfModel{" + "title='" + title + '\'' + ", auther='" + auther + '\'' + ", customer=" + customer + ", customerAddressStateCode='" + customerAddressStateCode + '\'' + ", qrCode='" + qrCode + '\'' + ", irnNumber='" + irnNumber + '\'' + ", partnerAddressStateCode='" + partnerAddressStateCode + '\'' + ", retailer=" + retailer + ", invoiceNumber='" + invoiceNumber + '\'' + ", isCancelled=" + isCancelled + ", invoiceDate='" + invoiceDate + '\'' + ", orderItems=" + orderItems + ", insurancePolicies=" + insurancePolicies + ", paymentOptions=" + paymentOptions + ", tncs=" + tncs + ", totalAmount=" + totalAmount + '}';
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
@Override
|
|
|
148 |
public boolean equals(Object o) {
|
|
|
149 |
if (this == o) return true;
|
|
|
150 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
151 |
InvoicePdfModel that = (InvoicePdfModel) o;
|
|
|
152 |
return isCancelled == that.isCancelled && Float.compare(that.totalAmount, totalAmount) == 0 && Objects.equals(title, that.title) && Objects.equals(auther, that.auther) && Objects.equals(customer, that.customer) && Objects.equals(customerAddressStateCode, that.customerAddressStateCode) && Objects.equals(qrCode, that.qrCode) && Objects.equals(irnNumber, that.irnNumber) && Objects.equals(partnerAddressStateCode, that.partnerAddressStateCode) && Objects.equals(retailer, that.retailer) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(invoiceDate, that.invoiceDate) && Objects.equals(orderItems, that.orderItems) && Objects.equals(insurancePolicies, that.insurancePolicies) && Objects.equals(paymentOptions, that.paymentOptions) && Objects.equals(tncs, that.tncs);
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
@Override
|
|
|
156 |
public int hashCode() {
|
|
|
157 |
return Objects.hash(title, auther, customer, customerAddressStateCode, qrCode, irnNumber, partnerAddressStateCode, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, totalAmount);
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public File getQrCode() {
|
|
|
161 |
return qrCode;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public void setQrCode(File qrCode) {
|
|
|
165 |
this.qrCode = qrCode;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
public String getIrnNumber() {
|
|
|
169 |
return irnNumber;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
public void setIrnNumber(String irnNumber) {
|
|
|
173 |
this.irnNumber = irnNumber;
|
|
|
174 |
}
|
| 21686 |
ashik.ali |
175 |
}
|