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