Subversion Repositories SmartDukaan

Rev

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