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