| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.common.model;
|
1 |
package com.spice.profitmandi.common.model;
|
| 2 |
|
2 |
|
| 3 |
import java.io.File;
|
- |
|
| 4 |
import java.util.List;
|
3 |
import java.util.List;
|
| 5 |
import java.util.Objects;
|
4 |
import java.util.Objects;
|
| 6 |
import java.util.Set;
|
5 |
import java.util.Set;
|
| 7 |
|
6 |
|
| 8 |
public class InvoicePdfModel {
|
7 |
public class InvoicePdfModel {
|
| 9 |
private String title;
|
8 |
private String title;
|
| 10 |
private String auther;
|
9 |
private String auther;
|
| 11 |
private CustomCustomer customer;
|
10 |
private CustomCustomer customer;
|
| 12 |
private String customerAddressStateCode;
|
11 |
private String customerAddressStateCode;
|
| - |
|
12 |
|
| 13 |
private File qrCode;
|
13 |
private IrnModel irnModel;
|
| 14 |
private String irnNumber;
|
- |
|
| 15 |
|
14 |
|
| 16 |
|
15 |
|
| 17 |
private CustomRetailer retailer;
|
16 |
private CustomRetailer retailer;
|
| 18 |
private String invoiceNumber;
|
17 |
private String invoiceNumber;
|
| 19 |
private boolean isCancelled;
|
18 |
private boolean isCancelled;
|
| Line 23... |
Line 22... |
| 23 |
private Set<CustomInsurancePolicy> insurancePolicies;
|
22 |
private Set<CustomInsurancePolicy> insurancePolicies;
|
| 24 |
private List<CustomPaymentOption> paymentOptions;
|
23 |
private List<CustomPaymentOption> paymentOptions;
|
| 25 |
private List<String> tncs;
|
24 |
private List<String> tncs;
|
| 26 |
private float totalAmount;
|
25 |
private float totalAmount;
|
| 27 |
|
26 |
|
| - |
|
27 |
|
| - |
|
28 |
|
| 28 |
public boolean isCancelled() {
|
29 |
public boolean isCancelled() {
|
| 29 |
return isCancelled;
|
30 |
return isCancelled;
|
| 30 |
}
|
31 |
}
|
| 31 |
|
32 |
|
| 32 |
public void setCancelled(boolean isCancelled) {
|
33 |
public void setCancelled(boolean isCancelled) {
|
| Line 138... |
Line 139... |
| 138 |
public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
|
139 |
public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
|
| 139 |
this.paymentOptions = paymentOptions;
|
140 |
this.paymentOptions = paymentOptions;
|
| 140 |
}
|
141 |
}
|
| 141 |
|
142 |
|
| 142 |
@Override
|
143 |
@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) {
|
144 |
public boolean equals(Object o) {
|
| 149 |
if (this == o) return true;
|
145 |
if (this == o) return true;
|
| 150 |
if (o == null || getClass() != o.getClass()) return false;
|
146 |
if (o == null || getClass() != o.getClass()) return false;
|
| 151 |
InvoicePdfModel that = (InvoicePdfModel) o;
|
147 |
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);
|
148 |
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);
|
| 153 |
}
|
149 |
}
|
| 154 |
|
150 |
|
| 155 |
@Override
|
151 |
@Override
|
| 156 |
public int hashCode() {
|
152 |
public int hashCode() {
|
| 157 |
return Objects.hash(title, auther, customer, customerAddressStateCode, qrCode, irnNumber, partnerAddressStateCode, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, totalAmount);
|
153 |
return Objects.hash(title, auther, customer, customerAddressStateCode, irnModel, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, totalAmount, partnerAddressStateCode);
|
| 158 |
}
|
- |
|
| 159 |
|
- |
|
| 160 |
public File getQrCode() {
|
- |
|
| 161 |
return qrCode;
|
- |
|
| 162 |
}
|
154 |
}
|
| 163 |
|
155 |
|
| 164 |
public void setQrCode(File qrCode) {
|
156 |
public IrnModel getIrnModel() {
|
| 165 |
this.qrCode = qrCode;
|
157 |
return irnModel;
|
| 166 |
}
|
158 |
}
|
| 167 |
|
159 |
|
| 168 |
public String getIrnNumber() {
|
160 |
public void setIrnModel(IrnModel irnModel) {
|
| 169 |
return irnNumber;
|
161 |
this.irnModel = irnModel;
|
| 170 |
}
|
162 |
}
|
| 171 |
|
163 |
|
| - |
|
164 |
@Override
|
| 172 |
public void setIrnNumber(String irnNumber) {
|
165 |
public String toString() {
|
| - |
|
166 |
return "InvoicePdfModel{" +
|
| - |
|
167 |
"title='" + title + '\'' +
|
| - |
|
168 |
", auther='" + auther + '\'' +
|
| - |
|
169 |
", customer=" + customer +
|
| - |
|
170 |
", customerAddressStateCode='" + customerAddressStateCode + '\'' +
|
| 173 |
this.irnNumber = irnNumber;
|
171 |
", irnModel=" + irnModel +
|
| - |
|
172 |
", retailer=" + retailer +
|
| - |
|
173 |
", invoiceNumber='" + invoiceNumber + '\'' +
|
| - |
|
174 |
", isCancelled=" + isCancelled +
|
| - |
|
175 |
", invoiceDate='" + invoiceDate + '\'' +
|
| - |
|
176 |
", orderItems=" + orderItems +
|
| - |
|
177 |
", insurancePolicies=" + insurancePolicies +
|
| - |
|
178 |
", paymentOptions=" + paymentOptions +
|
| - |
|
179 |
", tncs=" + tncs +
|
| - |
|
180 |
", totalAmount=" + totalAmount +
|
| - |
|
181 |
", partnerAddressStateCode='" + partnerAddressStateCode + '\'' +
|
| - |
|
182 |
'}';
|
| 174 |
}
|
183 |
}
|
| 175 |
}
|
184 |
}
|