Subversion Repositories SmartDukaan

Rev

Rev 33189 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23945 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
import com.fasterxml.jackson.annotation.JsonProperty;
33189 amit.gupta 6
import org.springframework.cglib.core.Local;
23945 amit.gupta 7
 
23951 amit.gupta 8
public class GrnPendingDataModel implements ImeiDropSummaryModel {
23945 amit.gupta 9
	@JsonProperty("Code")
23951 amit.gupta 10
	private String partnerCode;
11
 
12
	public String getPartnerCode() {
13
		return partnerCode;
14
	}
15
 
16
	public void setPartnerCode(String partnerCode) {
17
		this.partnerCode = partnerCode;
18
	}
19
 
20
	@Override
21
	public String toString() {
23968 amit.gupta 22
		return "GrnPendingDataModel [partnerCode=" + partnerCode + ", storeName=" + storeName + ", retailerId="
23
				+ retailerId + ", email=" + email + ", phone=" + phone + ", invoiceNumber=" + invoiceNumber
26420 amit.gupta 24
				+ ", lastScanned=" + lastScanned + ", grnOn=" + grnOn + ", activationTimestamp=" + activationTimestamp
26311 amit.gupta 25
				+ ", activationAddedOn=" + activationAddedOn + ", vendorName=" + vendorName + ", itemId=" + itemId
26
				+ ", brand=" + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color
25628 amit.gupta 27
				+ ", unitPrice=" + unitPrice + ", serialNumber=" + serialNumber + "]";
23951 amit.gupta 28
	}
29
 
23945 amit.gupta 30
	@JsonProperty("Name")
31
	private String storeName;
23968 amit.gupta 32
	@JsonProperty("Partner Id")
33
	private int retailerId;
34
	public int getRetailerId() {
35
		return retailerId;
36
	}
37
 
38
	public void setRetailerId(int retailerId) {
39
		this.retailerId = retailerId;
40
	}
41
 
23945 amit.gupta 42
	@JsonProperty("Email")
43
	private String email;
44
	@JsonProperty("Phone")
45
	private String phone;
46
	@JsonProperty("Invoice Number")
47
	private String invoiceNumber;
48
	@JsonProperty("Billing Timestamp")
23951 amit.gupta 49
	private LocalDateTime lastScanned;
26311 amit.gupta 50
 
26420 amit.gupta 51
	@JsonProperty("Grn On")
52
	private LocalDateTime grnOn;
53
 
26311 amit.gupta 54
	@JsonProperty("Activation Timestamp")
55
	private LocalDateTime activationTimestamp;
56
	@JsonProperty("Activation Added On")
57
	private LocalDateTime activationAddedOn;
25628 amit.gupta 58
 
59
	@JsonProperty("Vendor Name")
60
	private String vendorName;
61
 
62
	public String getVendorName() {
63
		return vendorName;
64
	}
65
 
66
	public void setVendorName(String vendorName) {
67
		this.vendorName = vendorName;
68
	}
69
 
23945 amit.gupta 70
	@JsonProperty("Item Id")
23951 amit.gupta 71
	private int itemId;
23945 amit.gupta 72
	@JsonProperty("Brand")
73
	private String brand;
74
	@JsonProperty("Model Name")
75
	private String modelName;
76
	@JsonProperty("Model Number")
77
	private String modelNumber;
78
	@JsonProperty("Color")
79
	private String color;
80
	@JsonProperty("Unit Price")
81
	private float unitPrice;
82
	@JsonProperty("Serial Number")
83
	private String serialNumber;
84
 
23951 amit.gupta 85
	@Override
86
	public LocalDateTime getLastScanned() {
87
		return lastScanned;
23945 amit.gupta 88
	}
23951 amit.gupta 89
 
90
	public void setLastScanned(LocalDateTime lastScanned) {
91
		this.lastScanned = lastScanned;
23945 amit.gupta 92
	}
23951 amit.gupta 93
 
23945 amit.gupta 94
	public float getUnitPrice() {
95
		return unitPrice;
96
	}
23951 amit.gupta 97
 
23945 amit.gupta 98
	public void setUnitPrice(float unitPrice) {
99
		this.unitPrice = unitPrice;
100
	}
23951 amit.gupta 101
 
102
	@Override
23945 amit.gupta 103
	public String getStoreName() {
104
		return storeName;
105
	}
26420 amit.gupta 106
 
107
 
23951 amit.gupta 108
 
26420 amit.gupta 109
	public LocalDateTime getGrnOn() {
110
		return grnOn;
111
	}
112
 
113
	public void setGrnOn(LocalDateTime grnOn) {
114
		this.grnOn = grnOn;
115
	}
116
 
23945 amit.gupta 117
	public void setStoreName(String storeName) {
118
		this.storeName = storeName;
119
	}
23951 amit.gupta 120
 
23945 amit.gupta 121
	public String getEmail() {
122
		return email;
123
	}
23951 amit.gupta 124
 
23945 amit.gupta 125
	public void setEmail(String email) {
126
		this.email = email;
127
	}
23951 amit.gupta 128
 
23945 amit.gupta 129
	public String getPhone() {
130
		return phone;
131
	}
23951 amit.gupta 132
 
23945 amit.gupta 133
	public void setPhone(String phone) {
134
		this.phone = phone;
135
	}
23951 amit.gupta 136
 
23945 amit.gupta 137
	public String getInvoiceNumber() {
138
		return invoiceNumber;
139
	}
23951 amit.gupta 140
 
23945 amit.gupta 141
	public void setInvoiceNumber(String invoiceNumber) {
142
		this.invoiceNumber = invoiceNumber;
143
	}
23951 amit.gupta 144
 
145
	public void setItemId(int itemId) {
23945 amit.gupta 146
		this.itemId = itemId;
147
	}
23951 amit.gupta 148
 
23945 amit.gupta 149
	public String getBrand() {
150
		return brand;
151
	}
23951 amit.gupta 152
 
23945 amit.gupta 153
	public void setBrand(String brand) {
154
		this.brand = brand;
155
	}
23951 amit.gupta 156
 
23945 amit.gupta 157
	public String getModelName() {
158
		return modelName;
159
	}
23951 amit.gupta 160
 
23945 amit.gupta 161
	public void setModelName(String modelName) {
162
		this.modelName = modelName;
163
	}
23951 amit.gupta 164
 
23945 amit.gupta 165
	public String getModelNumber() {
166
		return modelNumber;
167
	}
23951 amit.gupta 168
 
23945 amit.gupta 169
	public void setModelNumber(String modelNumber) {
170
		this.modelNumber = modelNumber;
171
	}
23951 amit.gupta 172
 
23945 amit.gupta 173
	public String getColor() {
174
		return color;
175
	}
23951 amit.gupta 176
 
23945 amit.gupta 177
	public void setColor(String color) {
178
		this.color = color;
179
	}
23951 amit.gupta 180
 
23945 amit.gupta 181
	public String getSerialNumber() {
182
		return serialNumber;
183
	}
23951 amit.gupta 184
 
23945 amit.gupta 185
	public void setSerialNumber(String serialNumber) {
186
		this.serialNumber = serialNumber;
187
	}
23951 amit.gupta 188
 
189
	@Override
190
	public int getItemId() {
191
		return itemId;
192
	}
26311 amit.gupta 193
 
194
	public LocalDateTime getActivationTimestamp() {
195
		return activationTimestamp;
196
	}
197
 
198
	public void setActivationTimestamp(LocalDateTime activationTimestamp) {
199
		this.activationTimestamp = activationTimestamp;
200
	}
201
 
202
	public LocalDateTime getActivationAddedOn() {
203
		return activationAddedOn;
204
	}
205
 
206
	public void setActivationAddedOn(LocalDateTime activationAddedOn) {
207
		this.activationAddedOn = activationAddedOn;
208
	}
209
 
210
	@Override
211
	public int hashCode() {
212
		final int prime = 31;
213
		int result = 1;
214
		result = prime * result + ((activationAddedOn == null) ? 0 : activationAddedOn.hashCode());
215
		result = prime * result + ((activationTimestamp == null) ? 0 : activationTimestamp.hashCode());
216
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
217
		result = prime * result + ((color == null) ? 0 : color.hashCode());
218
		result = prime * result + ((email == null) ? 0 : email.hashCode());
219
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
220
		result = prime * result + itemId;
221
		result = prime * result + ((lastScanned == null) ? 0 : lastScanned.hashCode());
222
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
223
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
224
		result = prime * result + ((partnerCode == null) ? 0 : partnerCode.hashCode());
225
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
226
		result = prime * result + retailerId;
227
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
228
		result = prime * result + ((storeName == null) ? 0 : storeName.hashCode());
229
		result = prime * result + Float.floatToIntBits(unitPrice);
230
		result = prime * result + ((vendorName == null) ? 0 : vendorName.hashCode());
231
		return result;
232
	}
233
 
234
	@Override
235
	public boolean equals(Object obj) {
236
		if (this == obj)
237
			return true;
238
		if (obj == null)
239
			return false;
240
		if (getClass() != obj.getClass())
241
			return false;
242
		GrnPendingDataModel other = (GrnPendingDataModel) obj;
243
		if (activationAddedOn == null) {
244
			if (other.activationAddedOn != null)
245
				return false;
246
		} else if (!activationAddedOn.equals(other.activationAddedOn))
247
			return false;
248
		if (activationTimestamp == null) {
249
			if (other.activationTimestamp != null)
250
				return false;
251
		} else if (!activationTimestamp.equals(other.activationTimestamp))
252
			return false;
253
		if (brand == null) {
254
			if (other.brand != null)
255
				return false;
256
		} else if (!brand.equals(other.brand))
257
			return false;
258
		if (color == null) {
259
			if (other.color != null)
260
				return false;
261
		} else if (!color.equals(other.color))
262
			return false;
263
		if (email == null) {
264
			if (other.email != null)
265
				return false;
266
		} else if (!email.equals(other.email))
267
			return false;
268
		if (invoiceNumber == null) {
269
			if (other.invoiceNumber != null)
270
				return false;
271
		} else if (!invoiceNumber.equals(other.invoiceNumber))
272
			return false;
273
		if (itemId != other.itemId)
274
			return false;
275
		if (lastScanned == null) {
276
			if (other.lastScanned != null)
277
				return false;
278
		} else if (!lastScanned.equals(other.lastScanned))
279
			return false;
280
		if (modelName == null) {
281
			if (other.modelName != null)
282
				return false;
283
		} else if (!modelName.equals(other.modelName))
284
			return false;
285
		if (modelNumber == null) {
286
			if (other.modelNumber != null)
287
				return false;
288
		} else if (!modelNumber.equals(other.modelNumber))
289
			return false;
290
		if (partnerCode == null) {
291
			if (other.partnerCode != null)
292
				return false;
293
		} else if (!partnerCode.equals(other.partnerCode))
294
			return false;
295
		if (phone == null) {
296
			if (other.phone != null)
297
				return false;
298
		} else if (!phone.equals(other.phone))
299
			return false;
300
		if (retailerId != other.retailerId)
301
			return false;
302
		if (serialNumber == null) {
303
			if (other.serialNumber != null)
304
				return false;
305
		} else if (!serialNumber.equals(other.serialNumber))
306
			return false;
307
		if (storeName == null) {
308
			if (other.storeName != null)
309
				return false;
310
		} else if (!storeName.equals(other.storeName))
311
			return false;
312
		if (Float.floatToIntBits(unitPrice) != Float.floatToIntBits(other.unitPrice))
313
			return false;
314
		if (vendorName == null) {
315
			if (other.vendorName != null)
316
				return false;
317
		} else if (!vendorName.equals(other.vendorName))
318
			return false;
319
		return true;
320
	}
33189 amit.gupta 321
 
322
	public GrnPendingDataModel(int retailerId, String partnerCode, String storeName, String invoiceNumber, LocalDateTime  billingTimestamp,
323
							   int itemId, String brand, String modelName, String modelNumber, String color, float unitPrice, String serialNumber,
324
							   String vendorName, LocalDateTime grnOn, LocalDateTime activationTimestamp, LocalDateTime activationAddedOn) {
325
		this.storeName = storeName;
326
		this.retailerId = retailerId;
327
		this.serialNumber = serialNumber;
328
		this.partnerCode = partnerCode;
329
		this.invoiceNumber = invoiceNumber;
330
		this.lastScanned = billingTimestamp;
331
		this.itemId = itemId;
332
		this.brand = brand;
333
		this.modelName = modelName;
334
		this.modelNumber = modelNumber;
335
		this.color = color;
336
		this.unitPrice = unitPrice;
337
		this.vendorName = vendorName;
338
		this.grnOn = grnOn;
339
		this.activationAddedOn = activationAddedOn;
340
		this.activationTimestamp = activationTimestamp;
341
	}
33197 amit.gupta 342
 
343
	public GrnPendingDataModel() {
344
	}
23945 amit.gupta 345
}