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