| 30158 |
manish |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
import in.shop2020.model.v1.order.OrderStatus;
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
public class PendingIndentReportModel {
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
private int transactionId;
|
|
|
9 |
private int orderId;
|
|
|
10 |
private LocalDateTime creatTimestamp;
|
|
|
11 |
private int itemId;
|
|
|
12 |
|
|
|
13 |
private String brand;
|
|
|
14 |
private String modelName;
|
|
|
15 |
private String modelNumber;
|
|
|
16 |
private String color;
|
|
|
17 |
|
|
|
18 |
private int quantity;
|
|
|
19 |
private Float unitPrice;
|
|
|
20 |
private Float walletAmount;
|
|
|
21 |
private String status;
|
|
|
22 |
|
|
|
23 |
private String invoiceNumber;
|
|
|
24 |
private LocalDateTime billingTimestamp;
|
|
|
25 |
public int getTransactionId() {
|
|
|
26 |
return transactionId;
|
|
|
27 |
}
|
|
|
28 |
public void setTransactionId(int transactionId) {
|
|
|
29 |
this.transactionId = transactionId;
|
|
|
30 |
}
|
|
|
31 |
public int getOrderId() {
|
|
|
32 |
return orderId;
|
|
|
33 |
}
|
|
|
34 |
public void setOrderId(int orderId) {
|
|
|
35 |
this.orderId = orderId;
|
|
|
36 |
}
|
|
|
37 |
public LocalDateTime getCreatTimestamp() {
|
|
|
38 |
return creatTimestamp;
|
|
|
39 |
}
|
|
|
40 |
public void setCreatTimestamp(LocalDateTime creatTimestamp) {
|
|
|
41 |
this.creatTimestamp = creatTimestamp;
|
|
|
42 |
}
|
|
|
43 |
public int getItemId() {
|
|
|
44 |
return itemId;
|
|
|
45 |
}
|
|
|
46 |
public void setItemId(int itemId) {
|
|
|
47 |
this.itemId = itemId;
|
|
|
48 |
}
|
|
|
49 |
public String getBrand() {
|
|
|
50 |
return brand;
|
|
|
51 |
}
|
|
|
52 |
public void setBrand(String brand) {
|
|
|
53 |
this.brand = brand;
|
|
|
54 |
}
|
|
|
55 |
public String getModelName() {
|
|
|
56 |
return modelName;
|
|
|
57 |
}
|
|
|
58 |
public void setModelName(String modelName) {
|
|
|
59 |
this.modelName = modelName;
|
|
|
60 |
}
|
|
|
61 |
public String getModelNumber() {
|
|
|
62 |
return modelNumber;
|
|
|
63 |
}
|
|
|
64 |
public void setModelNumber(String modelNumber) {
|
|
|
65 |
this.modelNumber = modelNumber;
|
|
|
66 |
}
|
|
|
67 |
public String getColor() {
|
|
|
68 |
return color;
|
|
|
69 |
}
|
|
|
70 |
public void setColor(String color) {
|
|
|
71 |
this.color = color;
|
|
|
72 |
}
|
|
|
73 |
public int getQuantity() {
|
|
|
74 |
return quantity;
|
|
|
75 |
}
|
|
|
76 |
public void setQuantity(int quantity) {
|
|
|
77 |
this.quantity = quantity;
|
|
|
78 |
}
|
|
|
79 |
public Float getUnitPrice() {
|
|
|
80 |
return unitPrice;
|
|
|
81 |
}
|
|
|
82 |
public void setUnitPrice(Float unitPrice) {
|
|
|
83 |
this.unitPrice = unitPrice;
|
|
|
84 |
}
|
|
|
85 |
public Float getWalletAmount() {
|
|
|
86 |
return walletAmount;
|
|
|
87 |
}
|
|
|
88 |
public void setWalletAmount(Float walletAmount) {
|
|
|
89 |
this.walletAmount = walletAmount;
|
|
|
90 |
}
|
|
|
91 |
public String getStatus() {
|
|
|
92 |
return status;
|
|
|
93 |
}
|
|
|
94 |
public void setStatus(String status) {
|
|
|
95 |
this.status = status;
|
|
|
96 |
}
|
|
|
97 |
public String getInvoiceNumber() {
|
|
|
98 |
return invoiceNumber;
|
|
|
99 |
}
|
|
|
100 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
101 |
this.invoiceNumber = invoiceNumber;
|
|
|
102 |
}
|
|
|
103 |
public LocalDateTime getBillingTimestamp() {
|
|
|
104 |
return billingTimestamp;
|
|
|
105 |
}
|
|
|
106 |
public void setBillingTimestamp(LocalDateTime billingTimestamp) {
|
|
|
107 |
this.billingTimestamp = billingTimestamp;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
@Override
|
|
|
112 |
public int hashCode() {
|
|
|
113 |
final int prime = 31;
|
|
|
114 |
int result = 1;
|
|
|
115 |
result = prime * result + ((billingTimestamp == null) ? 0 : billingTimestamp.hashCode());
|
|
|
116 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
|
|
117 |
result = prime * result + ((color == null) ? 0 : color.hashCode());
|
|
|
118 |
result = prime * result + ((creatTimestamp == null) ? 0 : creatTimestamp.hashCode());
|
|
|
119 |
result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
|
|
|
120 |
result = prime * result + itemId;
|
|
|
121 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
|
|
122 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
|
|
123 |
result = prime * result + orderId;
|
|
|
124 |
result = prime * result + quantity;
|
|
|
125 |
result = prime * result + ((status == null) ? 0 : status.hashCode());
|
|
|
126 |
result = prime * result + transactionId;
|
|
|
127 |
result = prime * result + ((unitPrice == null) ? 0 : unitPrice.hashCode());
|
|
|
128 |
result = prime * result + ((walletAmount == null) ? 0 : walletAmount.hashCode());
|
|
|
129 |
return result;
|
|
|
130 |
}
|
|
|
131 |
@Override
|
|
|
132 |
public boolean equals(Object obj) {
|
|
|
133 |
if (this == obj)
|
|
|
134 |
return true;
|
|
|
135 |
if (obj == null)
|
|
|
136 |
return false;
|
|
|
137 |
if (getClass() != obj.getClass())
|
|
|
138 |
return false;
|
|
|
139 |
PendingIndentReportModel other = (PendingIndentReportModel) obj;
|
|
|
140 |
if (billingTimestamp == null) {
|
|
|
141 |
if (other.billingTimestamp != null)
|
|
|
142 |
return false;
|
|
|
143 |
} else if (!billingTimestamp.equals(other.billingTimestamp))
|
|
|
144 |
return false;
|
|
|
145 |
if (brand == null) {
|
|
|
146 |
if (other.brand != null)
|
|
|
147 |
return false;
|
|
|
148 |
} else if (!brand.equals(other.brand))
|
|
|
149 |
return false;
|
|
|
150 |
if (color == null) {
|
|
|
151 |
if (other.color != null)
|
|
|
152 |
return false;
|
|
|
153 |
} else if (!color.equals(other.color))
|
|
|
154 |
return false;
|
|
|
155 |
if (creatTimestamp == null) {
|
|
|
156 |
if (other.creatTimestamp != null)
|
|
|
157 |
return false;
|
|
|
158 |
} else if (!creatTimestamp.equals(other.creatTimestamp))
|
|
|
159 |
return false;
|
|
|
160 |
if (invoiceNumber == null) {
|
|
|
161 |
if (other.invoiceNumber != null)
|
|
|
162 |
return false;
|
|
|
163 |
} else if (!invoiceNumber.equals(other.invoiceNumber))
|
|
|
164 |
return false;
|
|
|
165 |
if (itemId != other.itemId)
|
|
|
166 |
return false;
|
|
|
167 |
if (modelName == null) {
|
|
|
168 |
if (other.modelName != null)
|
|
|
169 |
return false;
|
|
|
170 |
} else if (!modelName.equals(other.modelName))
|
|
|
171 |
return false;
|
|
|
172 |
if (modelNumber == null) {
|
|
|
173 |
if (other.modelNumber != null)
|
|
|
174 |
return false;
|
|
|
175 |
} else if (!modelNumber.equals(other.modelNumber))
|
|
|
176 |
return false;
|
|
|
177 |
if (orderId != other.orderId)
|
|
|
178 |
return false;
|
|
|
179 |
if (quantity != other.quantity)
|
|
|
180 |
return false;
|
|
|
181 |
if (status != other.status)
|
|
|
182 |
return false;
|
|
|
183 |
if (transactionId != other.transactionId)
|
|
|
184 |
return false;
|
|
|
185 |
if (unitPrice == null) {
|
|
|
186 |
if (other.unitPrice != null)
|
|
|
187 |
return false;
|
|
|
188 |
} else if (!unitPrice.equals(other.unitPrice))
|
|
|
189 |
return false;
|
|
|
190 |
if (walletAmount == null) {
|
|
|
191 |
if (other.walletAmount != null)
|
|
|
192 |
return false;
|
|
|
193 |
} else if (!walletAmount.equals(other.walletAmount))
|
|
|
194 |
return false;
|
|
|
195 |
return true;
|
|
|
196 |
}
|
|
|
197 |
@Override
|
|
|
198 |
public String toString() {
|
|
|
199 |
return "PendingIndentReportModel [transactionId=" + transactionId + ", orderId=" + orderId + ", creatTimestamp="
|
|
|
200 |
+ creatTimestamp + ", itemId=" + itemId + ", brand=" + brand + ", modelName=" + modelName
|
|
|
201 |
+ ", modelNumber=" + modelNumber + ", color=" + color + ", quantity=" + quantity + ", unitPrice="
|
|
|
202 |
+ unitPrice + ", walletAmount=" + walletAmount + ", status=" + status + ", invoiceNumber="
|
|
|
203 |
+ invoiceNumber + ", billingTimestamp=" + billingTimestamp + "]";
|
|
|
204 |
}
|
|
|
205 |
public PendingIndentReportModel(int transactionId, int orderId, LocalDateTime creatTimestamp, int itemId,
|
|
|
206 |
String brand, String modelName, String modelNumber, String color, int quantity, Float unitPrice,
|
|
|
207 |
Float walletAmount, String status, String invoiceNumber, LocalDateTime billingTimestamp) {
|
|
|
208 |
super();
|
|
|
209 |
this.transactionId = transactionId;
|
|
|
210 |
this.orderId = orderId;
|
|
|
211 |
this.creatTimestamp = creatTimestamp;
|
|
|
212 |
this.itemId = itemId;
|
|
|
213 |
this.brand = brand;
|
|
|
214 |
this.modelName = modelName;
|
|
|
215 |
this.modelNumber = modelNumber;
|
|
|
216 |
this.color = color;
|
|
|
217 |
this.quantity = quantity;
|
|
|
218 |
this.unitPrice = unitPrice;
|
|
|
219 |
this.walletAmount = walletAmount;
|
|
|
220 |
this.status = status;
|
|
|
221 |
this.invoiceNumber = invoiceNumber;
|
|
|
222 |
this.billingTimestamp = billingTimestamp;
|
|
|
223 |
}
|
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
|
|
|
228 |
}
|