Subversion Repositories SmartDukaan

Rev

Rev 21924 | Rev 22009 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21716 ashik.ali 1
package com.spice.profitmandi.dao.entity.transaction;
21545 ashik.ali 2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
21653 ashik.ali 6
import javax.persistence.CascadeType;
21545 ashik.ali 7
import javax.persistence.Column;
8
import javax.persistence.Entity;
9
import javax.persistence.EnumType;
10
import javax.persistence.Enumerated;
21653 ashik.ali 11
import javax.persistence.FetchType;
21545 ashik.ali 12
import javax.persistence.GeneratedValue;
13
import javax.persistence.GenerationType;
14
import javax.persistence.Id;
21653 ashik.ali 15
import javax.persistence.JoinColumn;
21984 kshitij.so 16
import javax.persistence.ManyToOne;
21545 ashik.ali 17
import javax.persistence.NamedQueries;
18
import javax.persistence.NamedQuery;
21653 ashik.ali 19
import javax.persistence.OneToOne;
21545 ashik.ali 20
import javax.persistence.Table;
21
 
21716 ashik.ali 22
import in.shop2020.model.v1.order.DelayReason;
23
import in.shop2020.model.v1.order.OrderStatus;
24
import in.shop2020.model.v1.order.TaxType;
21545 ashik.ali 25
 
26
/**
27
 * This class basically contains order details
28
 * 
29
 * @author ashikali
30
 *
31
 */
21634 ashik.ali 32
 
21545 ashik.ali 33
@Entity
34
@Table(name="transaction.`order`", schema = "transaction")
35
@NamedQueries({
36
	@NamedQuery(name="Order.selectAll",query="select o from Order o"),
37
	@NamedQuery(name="Order.selectById",query="select o from Order o where o.id= :id"),
38
	@NamedQuery(name = "Order.selectCountByTransactionId", query = "select count(o) from Order o where o.transactionId = :transactionId"),
39
	@NamedQuery(
21573 ashik.ali 40
		name = "Order.selectByTransactionId", 
41
		query = "select t.id, t.createTimestamp, o.retailerAddress1, o.retailerAddress2, o.retailerCity, "
42
			+ "o.retailerPinCode, o.retailerState, o.shippingCost, o.statusDescription, o.invoiceNumber, o.airwayBillNumber, o.totalAmount, li.brand, li.modelName, "
21820 amit.gupta 43
			+ "li.modelNumber, li.color, li.quantity, li.unitPrice, p.id, p.name,  o.shippingTimestamp, o.status, o.promisedDeliveryTime, o.retailerName, t.status  from Transaction t join Order o on o.transactionId = t.id "
44
			+ "join LineItem li on li.orderId = o.id left join Provider p on p.id = o.logisticsProviderId where o.transactionId = :transactionId"),
21573 ashik.ali 45
	@NamedQuery(
21653 ashik.ali 46
		name = "Order.selectByAirwayBillOrInvoiceNumberRetailerId",
21585 ashik.ali 47
		query = "select li.itemId, li.brand, li.modelName, li.modelNumber, li.color, li.quantity, li.unitPrice, i.type, sum(li.quantity), o.invoiceNumber from Order o join LineItem li on o.id = li.orderId join Item i on i.id = li.itemId where (o.airwayBillNumber = :airwayBillOrInvoiceNumber or o.invoiceNumber = :airwayBillOrInvoiceNumber) and o.retailerId = :retailerId group by li.itemId"),
21609 ashik.ali 48
 
49
	@NamedQuery(
50
		name = "Order.selectSerialNumbersByItemIdInvoiceNumberRetailerId",
21634 ashik.ali 51
		query = "select li.serialNumber from Order o join LineItem li on li.orderId = o.id where o.retailerId = :retailerId and o.invoiceNumber = :invoiceNumber and li.itemId = :itemId"),
52
 
53
	@NamedQuery(
54
		name = "Order.selectItemIdTypeQuantity",
21640 kshitij.so 55
		query = "select new com.spice.profitmandi.dao.model.ItemIdTypeQuantity(li.itemId, i.type, li.quantity) from Order o join LineItem li on li.orderId = o.id join Item i on i.id = li.itemId where o.invoiceNumber = :invoiceNumber and o.retailerId = :retailerId")
21545 ashik.ali 56
})
57
public class Order implements Serializable{
58
 
59
	private static final long serialVersionUID = 1L;
60
 
61
	public Order() {
62
	}
63
 
64
	@Id
65
	@Column(name="id", unique=true, updatable=false)
66
	@GeneratedValue(strategy = GenerationType.IDENTITY)
21629 kshitij.so 67
	private Integer id;
21545 ashik.ali 68
 
69
	@Column(name = "warehouse_id")
21629 kshitij.so 70
	private Integer warehouseId;
21545 ashik.ali 71
 
72
	@Column(name = "seller_id")
21629 kshitij.so 73
	private Integer sellerId;
21545 ashik.ali 74
 
75
	@Column(name = "warehouse_address_id")
21629 kshitij.so 76
	private Integer warehouseAddressId;
21545 ashik.ali 77
 
78
	@Column(name = "logistics_provider_id")
21629 kshitij.so 79
	private Integer logisticsProviderId;
21545 ashik.ali 80
 
21614 kshitij.so 81
	@Column(name = "airwaybill_no", length = 50)
21545 ashik.ali 82
	private String airwayBillNumber;
83
 
84
	@Column(name = "tracking_id", length = 50)
85
	private String trackingId;
86
 
87
	@Column(name = "expected_delivery_time")
88
	private LocalDateTime expectedDeliveryTime;
89
 
90
	@Column(name = "promised_delivery_time")
91
	private LocalDateTime promisedDeliveryTime;
92
 
93
	@Column(name = "expected_shipping_time")
94
	private LocalDateTime expectedShippingTime;
95
 
96
	@Column(name = "promised_shipping_time")
97
	private LocalDateTime promisedShippingTime;
98
 
99
	@Column(name = "customer_id")
21629 kshitij.so 100
	private Integer retailerId;
21545 ashik.ali 101
 
102
	@Column(name = "customer_name", length = 50)
103
	private String retailerName;
104
 
105
	@Column(name = "customer_mobilenumber", length = 20)
106
	private String retailerMobileNumber;
107
 
108
	@Column(name = "customer_pincode", length = 10)
109
	private String retailerPinCode;
110
 
111
	@Column(name = "customer_address1", length = 100)
112
	private String retailerAddress1;
113
 
114
	@Column(name = "customer_address2", length = 100)
115
	private String retailerAddress2;
116
 
117
	@Column(name = "customer_city", length = 100)
118
	private String retailerCity;
119
 
120
	@Column(name = "customer_state", length = 100)
121
	private String retailerState;
122
 
123
	@Column(name = "customer_email", length = 50)
124
	private String retailerEmailId;
125
 
126
	@Column(name = "status")
127
	@Enumerated(EnumType.ORDINAL)
128
	private OrderStatus status;
129
 
130
	@Column(name = "statusDescription", length = 50)
131
	private String statusDescription;
132
 
133
	@Column(name = "total_amount")
21629 kshitij.so 134
	private Float totalAmount;
21545 ashik.ali 135
 
136
	@Column(name = "gvAmount")
21629 kshitij.so 137
	private Float gvAmount;
21545 ashik.ali 138
 
139
	@Column(name = "total_weight")
21629 kshitij.so 140
	private Float totalWeight;
21545 ashik.ali 141
 
142
	@Column(name = "invoice_number", length = 30)
143
	private String invoiceNumber;
144
 
145
	@Column(name = "billed_by", length = 30)
146
	private String billedBy;
147
 
148
	@Column(name = "created_timestamp")
149
	private LocalDateTime createTimestamp;
150
 
151
	@Column(name = "accepted_timestamp")
152
	private LocalDateTime acceptedTimestamp;
153
 
154
	@Column(name = "billing_timestamp")
155
	private LocalDateTime billingTimestamp;
156
 
157
	@Column(name = "shipping_timestamp")
158
	private LocalDateTime shippingTimestamp;
159
 
160
	@Column(name = "pickup_timestamp")
161
	private LocalDateTime pickupTimestamp;
162
 
163
	@Column(name = "delivery_timestamp")
164
	private LocalDateTime deliveryTimestamp;
165
 
166
	@Column(name = "outofstock_timestamp")
167
	private LocalDateTime outOfStockTimestamp;
168
 
169
	@Column(name = "transaction_id")
21629 kshitij.so 170
    private Integer transactionId;
21545 ashik.ali 171
 
172
	@Column(name = "jacket_number", length = 10)
21629 kshitij.so 173
	private Integer jacketNumber;
21545 ashik.ali 174
 
175
	@Column(name = "receiver", length = 50)
176
	private String receiver;
177
 
178
	@Column(name = "batchNo")
21629 kshitij.so 179
	private Integer batchNumber;
21545 ashik.ali 180
 
181
	@Column(name = "serialNo")
21629 kshitij.so 182
	private Integer serialNumber;
21545 ashik.ali 183
 
21629 kshitij.so 184
	@Column(name = "doaFlag", columnDefinition="tinyInteger(1) default 0")
185
	private Boolean doaFlag;
21545 ashik.ali 186
 
187
	@Column(name = "pickupRequestNo")
21629 kshitij.so 188
	private Integer pickupRequestNumber;
21545 ashik.ali 189
 
190
	@Column(name = "new_order_id")
21629 kshitij.so 191
	private Integer newOrderId;
21545 ashik.ali 192
 
193
	@Column(name = "doa_auth_timestamp")
194
	private LocalDateTime doaAuthTimestamp;
195
 
196
	@Column(name = "doa_pickup_timestamp")
197
	private LocalDateTime doaPickupTimestamp;
198
 
199
	@Column(name = "received_return_timestamp")
200
	private LocalDateTime receiverReturnTimestamp;
201
 
202
	@Column(name = "reship_timestamp")
203
	private LocalDateTime reShipTimestamp;
204
 
205
	@Column(name = "refund_timestamp")
206
	private LocalDateTime refundTimestamp;
207
 
208
	@Column(name = "purchase_order_id")
21629 kshitij.so 209
	private Integer purchaseOrderId;
21545 ashik.ali 210
 
21629 kshitij.so 211
	@Column(name = "cod", columnDefinition="tinyInteger(1) default 0")
212
	private Boolean cod;
21545 ashik.ali 213
 
214
	@Column(name = "verification_timestamp")
215
	private LocalDateTime verificationTimestamp;
216
 
21629 kshitij.so 217
	@Column(name = "refunded_by", length = 30)
21545 ashik.ali 218
	private String refundBy;
219
 
220
	@Column(name = "refund_reason", length = 256)
221
	private String refundReason;
222
 
223
	@Column(name = "delay_reason")
224
	private DelayReason delayReason;
225
 
226
	@Column(name = "cod_reconciliation_timestamp")
227
	private LocalDateTime codReconciliationTimestamp;
228
 
21629 kshitij.so 229
	private Integer previousStatus;
21545 ashik.ali 230
 
231
 
232
	@Column(name = "vendorId")
21629 kshitij.so 233
	private Integer vendorId;
21545 ashik.ali 234
 
235
	@Column(name = "delayReasonText", length = 250)
236
	private String delayReasonText;
237
 
238
	@Column(name = "doa_logistics_provider_id")
21629 kshitij.so 239
	private Integer doaLogisticsProviderId;
21545 ashik.ali 240
 
21629 kshitij.so 241
	@Column(name = "vendor_paid", columnDefinition="tinyInteger(1) default 0")
242
	private Boolean vendorPaid;
21545 ashik.ali 243
 
244
	@Column(name = "local_connected_timestamp")
245
	private LocalDateTime localConnectedTimestamp;
246
 
247
	@Column(name = "reached_destination_timestamp")
248
	private LocalDateTime reachedDestinationTimestamp;
249
 
250
	@Column(name = "first_dlvyatmp_timestamp")
251
	private LocalDateTime firstDlvyatmpTimestamp;
252
 
253
	@Column(name = "originalOrderId")
21629 kshitij.so 254
	private Integer originalOrderId;
21545 ashik.ali 255
 
256
	@Column(name = "fulfilmentWarehouseId")
21629 kshitij.so 257
	private Integer fulfilmentWarehouseId;
21545 ashik.ali 258
 
259
	@Column(name = "orderType")
21629 kshitij.so 260
	private Integer orderType;
21545 ashik.ali 261
 
262
	@Column(name = "pickupStoreId")
21629 kshitij.so 263
	private Integer pickupStoreId;
21545 ashik.ali 264
 
21629 kshitij.so 265
	@Column(name = "otg", columnDefinition="tinyInteger(1) default 0")
266
	private Boolean otg;
21545 ashik.ali 267
 
268
	@Column(name = "courier_delivery_time")
269
	private LocalDateTime courierDeliveryTimestamp;
270
 
271
 
272
	@Column(name = "insurer")
21629 kshitij.so 273
	private Integer insurer;
21545 ashik.ali 274
 
275
	@Column(name = "insuranceAmount")
21629 kshitij.so 276
	private Float insuranceAmount;
21545 ashik.ali 277
 
278
	@Column(name = "freebieItemId")
21629 kshitij.so 279
	private Integer freebieItemId;
21545 ashik.ali 280
 
281
	@Column(name = "source")
21629 kshitij.so 282
	private Integer source;
21545 ashik.ali 283
 
284
	@Column(name = "advanceAmount")
21629 kshitij.so 285
	private Float advanceAmount;
21545 ashik.ali 286
 
287
	@Column(name = "storeId")
21629 kshitij.so 288
	private Integer storeId;
21545 ashik.ali 289
 
290
	@Column(name = "productCondition")
21629 kshitij.so 291
	private Integer productCondition;
21545 ashik.ali 292
 
293
 
294
	@Column(name = "dataProtectionInsurer")
21629 kshitij.so 295
	private Integer dataProtectionInsurer;
21545 ashik.ali 296
 
297
	@Column(name = "dataProtectionAmount")
21629 kshitij.so 298
	private Integer dataProtectionAmount;
21545 ashik.ali 299
 
300
	@Column(name = "taxType")
21629 kshitij.so 301
	@Enumerated(EnumType.ORDINAL)
21545 ashik.ali 302
	private TaxType taxType;
303
 
304
	@Column(name = "logisticsTransactionId", length = 100)
305
	private String logisticsTransactionId;
306
 
307
	@Column(name = "shippingCost")
21629 kshitij.so 308
	private Float shippingCost;
21545 ashik.ali 309
 
310
	@Column(name = "codCharges")
21629 kshitij.so 311
	private Float codCharges;
21545 ashik.ali 312
 
313
	@Column(name = "wallet_amount")
21629 kshitij.so 314
	private Float walletAmount;
21545 ashik.ali 315
 
316
	@Column(name = "net_payable_amount")
21629 kshitij.so 317
	private Float netPayableAmount;
21545 ashik.ali 318
 
319
	@Column(name = "shippingRefund")
21629 kshitij.so 320
	private Float shippingRefund;
21545 ashik.ali 321
 
21984 kshitij.so 322
	@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
21653 ashik.ali 323
	@JoinColumn(name="id",insertable=false,updatable=false,nullable=false, referencedColumnName="order_id")
324
	private LineItem lineItem;
325
 
21629 kshitij.so 326
	public Integer getId() {
21545 ashik.ali 327
		return id;
328
	}
21629 kshitij.so 329
	public void setId(Integer id) {
21545 ashik.ali 330
		this.id = id;
331
	}
21629 kshitij.so 332
	public Integer getWarehouseId() {
21545 ashik.ali 333
		return warehouseId;
334
	}
21629 kshitij.so 335
	public void setWarehouseId(Integer warehouseId) {
21545 ashik.ali 336
		this.warehouseId = warehouseId;
337
	}
21629 kshitij.so 338
	public Integer getSellerId() {
21545 ashik.ali 339
		return sellerId;
340
	}
21629 kshitij.so 341
	public void setSellerId(Integer sellerId) {
21545 ashik.ali 342
		this.sellerId = sellerId;
343
	}
21629 kshitij.so 344
	public Integer getWarehouseAddressId() {
21545 ashik.ali 345
		return warehouseAddressId;
346
	}
21629 kshitij.so 347
	public void setWarehouseAddressId(Integer warehouseAddressId) {
21545 ashik.ali 348
		this.warehouseAddressId = warehouseAddressId;
349
	}
21629 kshitij.so 350
	public Integer getLogisticsProviderId() {
21545 ashik.ali 351
		return logisticsProviderId;
352
	}
21629 kshitij.so 353
	public void setLogisticsProviderId(Integer logisticsProviderId) {
21545 ashik.ali 354
		this.logisticsProviderId = logisticsProviderId;
355
	}
356
	public String getAirwayBillNumber() {
357
		return airwayBillNumber;
358
	}
359
	public void setAirwayBillNumber(String airwayBillNumber) {
360
		this.airwayBillNumber = airwayBillNumber;
361
	}
362
	public String getTrackingId() {
363
		return trackingId;
364
	}
365
	public void setTrackingId(String trackingId) {
366
		this.trackingId = trackingId;
367
	}
368
	public LocalDateTime getExpectedDeliveryTime() {
369
		return expectedDeliveryTime;
370
	}
371
	public void setExpectedDeliveryTime(LocalDateTime expectedDeliveryTime) {
372
		this.expectedDeliveryTime = expectedDeliveryTime;
373
	}
374
	public LocalDateTime getPromisedDeliveryTime() {
375
		return promisedDeliveryTime;
376
	}
377
	public void setPromisedDeliveryTime(LocalDateTime promisedDeliveryTime) {
378
		this.promisedDeliveryTime = promisedDeliveryTime;
379
	}
380
	public LocalDateTime getExpectedShippingTime() {
381
		return expectedShippingTime;
382
	}
383
	public void setExpectedShippingTime(LocalDateTime expectedShippingTime) {
384
		this.expectedShippingTime = expectedShippingTime;
385
	}
386
	public LocalDateTime getPromisedShippingTime() {
387
		return promisedShippingTime;
388
	}
389
	public void setPromisedShippingTime(LocalDateTime promisedShippingTime) {
390
		this.promisedShippingTime = promisedShippingTime;
391
	}
21629 kshitij.so 392
	public Integer getRetailerId() {
21545 ashik.ali 393
		return retailerId;
394
	}
21629 kshitij.so 395
	public void setRetailerId(Integer retailerId) {
21545 ashik.ali 396
		this.retailerId = retailerId;
397
	}
398
	public String getRetailerName() {
399
		return retailerName;
400
	}
401
	public void setRetailerName(String retailerName) {
402
		this.retailerName = retailerName;
403
	}
404
	public String getRetailerMobileNumber() {
405
		return retailerMobileNumber;
406
	}
407
	public void setRetailerMobileNumber(String retailerMobileNumber) {
408
		this.retailerMobileNumber = retailerMobileNumber;
409
	}
410
	public String getRetailerPinCode() {
411
		return retailerPinCode;
412
	}
413
	public void setRetailerPinCode(String retailerPinCode) {
414
		this.retailerPinCode = retailerPinCode;
415
	}
416
	public String getRetailerAddress1() {
417
		return retailerAddress1;
418
	}
419
	public void setRetailerAddress1(String retailerAddress1) {
420
		this.retailerAddress1 = retailerAddress1;
421
	}
422
	public String getRetailerAddress2() {
423
		return retailerAddress2;
424
	}
425
	public void setRetailerAddress2(String retailerAddress2) {
426
		this.retailerAddress2 = retailerAddress2;
427
	}
428
	public String getRetailerCity() {
429
		return retailerCity;
430
	}
431
	public void setRetailerCity(String retailerCity) {
432
		this.retailerCity = retailerCity;
433
	}
434
	public String getRetailerState() {
435
		return retailerState;
436
	}
437
	public void setRetailerState(String retailerState) {
438
		this.retailerState = retailerState;
439
	}
440
	public String getRetailerEmailId() {
441
		return retailerEmailId;
442
	}
443
	public void setRetailerEmailId(String retailerEmailId) {
444
		this.retailerEmailId = retailerEmailId;
445
	}
446
	public OrderStatus getStatus() {
447
		return status;
448
	}
449
	public void setStatus(OrderStatus status) {
450
		this.status = status;
451
	}
452
	public String getStatusDescription() {
453
		return statusDescription;
454
	}
455
	public void setStatusDescription(String statusDescription) {
456
		this.statusDescription = statusDescription;
457
	}
21629 kshitij.so 458
	public Float getTotalAmount() {
21545 ashik.ali 459
		return totalAmount;
460
	}
21629 kshitij.so 461
	public void setTotalAmount(Float totalAmount) {
21545 ashik.ali 462
		this.totalAmount = totalAmount;
463
	}
21629 kshitij.so 464
	public Float getGvAmount() {
21545 ashik.ali 465
		return gvAmount;
466
	}
21629 kshitij.so 467
	public void setGvAmount(Float gvAmount) {
21545 ashik.ali 468
		this.gvAmount = gvAmount;
469
	}
21629 kshitij.so 470
	public Float getTotalWeight() {
21545 ashik.ali 471
		return totalWeight;
472
	}
21629 kshitij.so 473
	public void setTotalWeight(Float totalWeight) {
21545 ashik.ali 474
		this.totalWeight = totalWeight;
475
	}
476
	public String getInvoiceNumber() {
477
		return invoiceNumber;
478
	}
479
	public void setInvoiceNumber(String invoiceNumber) {
480
		this.invoiceNumber = invoiceNumber;
481
	}
482
	public String getBilledBy() {
483
		return billedBy;
484
	}
485
	public void setBilledBy(String billedBy) {
486
		this.billedBy = billedBy;
487
	}
488
	public LocalDateTime getCreateTimestamp() {
489
		return createTimestamp;
490
	}
491
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
492
		this.createTimestamp = createTimestamp;
493
	}
494
	public LocalDateTime getAcceptedTimestamp() {
495
		return acceptedTimestamp;
496
	}
497
	public void setAcceptedTimestamp(LocalDateTime acceptedTimestamp) {
498
		this.acceptedTimestamp = acceptedTimestamp;
499
	}
500
	public LocalDateTime getBillingTimestamp() {
501
		return billingTimestamp;
502
	}
503
	public void setBillingTimestamp(LocalDateTime billingTimestamp) {
504
		this.billingTimestamp = billingTimestamp;
505
	}
506
	public LocalDateTime getShippingTimestamp() {
507
		return shippingTimestamp;
508
	}
509
	public void setShippingTimestamp(LocalDateTime shippingTimestamp) {
510
		this.shippingTimestamp = shippingTimestamp;
511
	}
512
	public LocalDateTime getPickupTimestamp() {
513
		return pickupTimestamp;
514
	}
515
	public void setPickupTimestamp(LocalDateTime pickupTimestamp) {
516
		this.pickupTimestamp = pickupTimestamp;
517
	}
518
	public LocalDateTime getDeliveryTimestamp() {
519
		return deliveryTimestamp;
520
	}
521
	public void setDeliveryTimestamp(LocalDateTime deliveryTimestamp) {
522
		this.deliveryTimestamp = deliveryTimestamp;
523
	}
524
	public LocalDateTime getOutOfStockTimestamp() {
525
		return outOfStockTimestamp;
526
	}
527
	public void setOutOfStockTimestamp(LocalDateTime outOfStockTimestamp) {
528
		this.outOfStockTimestamp = outOfStockTimestamp;
529
	}
21629 kshitij.so 530
	public Integer getTransactionId() {
21545 ashik.ali 531
		return transactionId;
532
	}
21629 kshitij.so 533
	public void setTransactionId(Integer transactionId) {
21545 ashik.ali 534
		this.transactionId = transactionId;
535
	}
536
 
21629 kshitij.so 537
	public Integer getJacketNumber() {
21545 ashik.ali 538
		return jacketNumber;
539
	}
21629 kshitij.so 540
	public void setJacketNumber(Integer jacketNumber) {
21545 ashik.ali 541
		this.jacketNumber = jacketNumber;
542
	}
543
	public String getReceiver() {
544
		return receiver;
545
	}
546
	public void setReceiver(String receiver) {
547
		this.receiver = receiver;
548
	}
21629 kshitij.so 549
	public Integer getBatchNumber() {
21545 ashik.ali 550
		return batchNumber;
551
	}
21629 kshitij.so 552
	public void setBatchNumber(Integer batchNumber) {
21545 ashik.ali 553
		this.batchNumber = batchNumber;
554
	}
21629 kshitij.so 555
	public Integer getSerialNumber() {
21545 ashik.ali 556
		return serialNumber;
557
	}
21629 kshitij.so 558
	public void setSerialNumber(Integer serialNumber) {
21545 ashik.ali 559
		this.serialNumber = serialNumber;
560
	}
21629 kshitij.so 561
	public Boolean isDoaFlag() {
21545 ashik.ali 562
		return doaFlag;
563
	}
21629 kshitij.so 564
	public void setDoaFlag(Boolean doaFlag) {
21545 ashik.ali 565
		this.doaFlag = doaFlag;
566
	}
21629 kshitij.so 567
	public Integer getPickupRequestNumber() {
21545 ashik.ali 568
		return pickupRequestNumber;
569
	}
21629 kshitij.so 570
	public void setPickupRequestNumber(Integer pickupRequestNumber) {
21545 ashik.ali 571
		this.pickupRequestNumber = pickupRequestNumber;
572
	}
21629 kshitij.so 573
	public Integer getNewOrderId() {
21545 ashik.ali 574
		return newOrderId;
575
	}
21629 kshitij.so 576
	public void setNewOrderId(Integer newOrderId) {
21545 ashik.ali 577
		this.newOrderId = newOrderId;
578
	}
579
	public LocalDateTime getDoaAuthTimestamp() {
580
		return doaAuthTimestamp;
581
	}
582
	public void setDoaAuthTimestamp(LocalDateTime doaAuthTimestamp) {
583
		this.doaAuthTimestamp = doaAuthTimestamp;
584
	}
585
	public LocalDateTime getDoaPickupTimestamp() {
586
		return doaPickupTimestamp;
587
	}
588
	public void setDoaPickupTimestamp(LocalDateTime doaPickupTimestamp) {
589
		this.doaPickupTimestamp = doaPickupTimestamp;
590
	}
591
	public LocalDateTime getReceiverReturnTimestamp() {
592
		return receiverReturnTimestamp;
593
	}
594
	public void setReceiverReturnTimestamp(LocalDateTime receiverReturnTimestamp) {
595
		this.receiverReturnTimestamp = receiverReturnTimestamp;
596
	}
597
	public LocalDateTime getReShipTimestamp() {
598
		return reShipTimestamp;
599
	}
600
	public void setReShipTimestamp(LocalDateTime reShipTimestamp) {
601
		this.reShipTimestamp = reShipTimestamp;
602
	}
603
	public LocalDateTime getRefundTimestamp() {
604
		return refundTimestamp;
605
	}
606
	public void setRefundTimestamp(LocalDateTime refundTimestamp) {
607
		this.refundTimestamp = refundTimestamp;
608
	}
21629 kshitij.so 609
	public Integer getPurchaseOrderId() {
21545 ashik.ali 610
		return purchaseOrderId;
611
	}
21629 kshitij.so 612
	public void setPurchaseOrderId(Integer purchaseOrderId) {
21545 ashik.ali 613
		this.purchaseOrderId = purchaseOrderId;
614
	}
21629 kshitij.so 615
	public Boolean isCod() {
21545 ashik.ali 616
		return cod;
617
	}
21629 kshitij.so 618
	public void setCod(Boolean cod) {
21545 ashik.ali 619
		this.cod = cod;
620
	}
621
	public LocalDateTime getVerificationTimestamp() {
622
		return verificationTimestamp;
623
	}
624
	public void setVerificationTimestamp(LocalDateTime verificationTimestamp) {
625
		this.verificationTimestamp = verificationTimestamp;
626
	}
627
	public String getRefundBy() {
628
		return refundBy;
629
	}
630
	public void setRefundBy(String refundBy) {
631
		this.refundBy = refundBy;
632
	}
633
	public String getRefundReason() {
634
		return refundReason;
635
	}
636
	public void setRefundReason(String refundReason) {
637
		this.refundReason = refundReason;
638
	}
639
	public DelayReason getDelayReason() {
640
		return delayReason;
641
	}
642
	public void setDelayReason(DelayReason delayReason) {
643
		this.delayReason = delayReason;
644
	}
645
	public LocalDateTime getCodReconciliationTimestamp() {
646
		return codReconciliationTimestamp;
647
	}
648
	public void setCodReconciliationTimestamp(LocalDateTime codReconciliationTimestamp) {
649
		this.codReconciliationTimestamp = codReconciliationTimestamp;
650
	}
21629 kshitij.so 651
	public Integer getPreviousStatus() {
21545 ashik.ali 652
		return previousStatus;
653
	}
21629 kshitij.so 654
	public void setPreviousStatus(Integer previousStatus) {
21545 ashik.ali 655
		this.previousStatus = previousStatus;
656
	}
21629 kshitij.so 657
	public Integer getVendorId() {
21545 ashik.ali 658
		return vendorId;
659
	}
21629 kshitij.so 660
	public void setVendorId(Integer vendorId) {
21545 ashik.ali 661
		this.vendorId = vendorId;
662
	}
663
	public String getDelayReasonText() {
664
		return delayReasonText;
665
	}
666
	public void setDelayReasonText(String delayReasonText) {
667
		this.delayReasonText = delayReasonText;
668
	}
21629 kshitij.so 669
	public Integer getDoaLogisticsProviderId() {
21545 ashik.ali 670
		return doaLogisticsProviderId;
671
	}
21629 kshitij.so 672
	public void setDoaLogisticsProviderId(Integer doaLogisticsProviderId) {
21545 ashik.ali 673
		this.doaLogisticsProviderId = doaLogisticsProviderId;
674
	}
21629 kshitij.so 675
	public Boolean isVendorPaid() {
21545 ashik.ali 676
		return vendorPaid;
677
	}
21629 kshitij.so 678
	public void setVendorPaid(Boolean vendorPaid) {
21545 ashik.ali 679
		this.vendorPaid = vendorPaid;
680
	}
681
	public LocalDateTime getLocalConnectedTimestamp() {
682
		return localConnectedTimestamp;
683
	}
684
	public void setLocalConnectedTimestamp(LocalDateTime localConnectedTimestamp) {
685
		this.localConnectedTimestamp = localConnectedTimestamp;
686
	}
687
	public LocalDateTime getReachedDestinationTimestamp() {
688
		return reachedDestinationTimestamp;
689
	}
690
	public void setReachedDestinationTimestamp(LocalDateTime reachedDestinationTimestamp) {
691
		this.reachedDestinationTimestamp = reachedDestinationTimestamp;
692
	}
693
	public LocalDateTime getFirstDlvyatmpTimestamp() {
694
		return firstDlvyatmpTimestamp;
695
	}
696
	public void setFirstDlvyatmpTimestamp(LocalDateTime firstDlvyatmpTimestamp) {
697
		this.firstDlvyatmpTimestamp = firstDlvyatmpTimestamp;
698
	}
21629 kshitij.so 699
	public Integer getOriginalOrderId() {
21545 ashik.ali 700
		return originalOrderId;
701
	}
21629 kshitij.so 702
	public void setOriginalOrderId(Integer originalOrderId) {
21545 ashik.ali 703
		this.originalOrderId = originalOrderId;
704
	}
21629 kshitij.so 705
	public Integer getFulfilmentWarehouseId() {
21545 ashik.ali 706
		return fulfilmentWarehouseId;
707
	}
21629 kshitij.so 708
	public void setFulfilmentWarehouseId(Integer fulfilmentWarehouseId) {
21545 ashik.ali 709
		this.fulfilmentWarehouseId = fulfilmentWarehouseId;
710
	}
21629 kshitij.so 711
	public Integer getOrderType() {
21545 ashik.ali 712
		return orderType;
713
	}
21629 kshitij.so 714
	public void setOrderType(Integer orderType) {
21545 ashik.ali 715
		this.orderType = orderType;
716
	}
21629 kshitij.so 717
	public Integer getPickupStoreId() {
21545 ashik.ali 718
		return pickupStoreId;
719
	}
21629 kshitij.so 720
	public void setPickupStoreId(Integer pickupStoreId) {
21545 ashik.ali 721
		this.pickupStoreId = pickupStoreId;
722
	}
21629 kshitij.so 723
	public Boolean isOtg() {
21545 ashik.ali 724
		return otg;
725
	}
21629 kshitij.so 726
	public void setOtg(Boolean otg) {
21545 ashik.ali 727
		this.otg = otg;
728
	}
729
	public LocalDateTime getCourierDeliveryTimestamp() {
730
		return courierDeliveryTimestamp;
731
	}
732
	public void setCourierDeliveryTimestamp(LocalDateTime courierDeliveryTimestamp) {
733
		this.courierDeliveryTimestamp = courierDeliveryTimestamp;
734
	}
21629 kshitij.so 735
	public Integer getInsurer() {
21545 ashik.ali 736
		return insurer;
737
	}
21629 kshitij.so 738
	public void setInsurer(Integer insurer) {
21545 ashik.ali 739
		this.insurer = insurer;
740
	}
21629 kshitij.so 741
	public Float getInsuranceAmount() {
21545 ashik.ali 742
		return insuranceAmount;
743
	}
21629 kshitij.so 744
	public void setInsuranceAmount(Float insuranceAmount) {
21545 ashik.ali 745
		this.insuranceAmount = insuranceAmount;
746
	}
21629 kshitij.so 747
	public Integer getFreebieItemId() {
21545 ashik.ali 748
		return freebieItemId;
749
	}
21629 kshitij.so 750
	public void setFreebieItemId(Integer freebieItemId) {
21545 ashik.ali 751
		this.freebieItemId = freebieItemId;
752
	}
21629 kshitij.so 753
	public Integer getSource() {
21545 ashik.ali 754
		return source;
755
	}
21629 kshitij.so 756
	public void setSource(Integer source) {
21545 ashik.ali 757
		this.source = source;
758
	}
21629 kshitij.so 759
	public Float getAdvanceAmount() {
21545 ashik.ali 760
		return advanceAmount;
761
	}
21629 kshitij.so 762
	public void setAdvanceAmount(Float advanceAmount) {
21545 ashik.ali 763
		this.advanceAmount = advanceAmount;
764
	}
21629 kshitij.so 765
	public Integer getStoreId() {
21545 ashik.ali 766
		return storeId;
767
	}
21629 kshitij.so 768
	public void setStoreId(Integer storeId) {
21545 ashik.ali 769
		this.storeId = storeId;
770
	}
21629 kshitij.so 771
	public Integer getProductCondition() {
21545 ashik.ali 772
		return productCondition;
773
	}
21629 kshitij.so 774
	public void setProductCondition(Integer productCondition) {
21545 ashik.ali 775
		this.productCondition = productCondition;
776
	}
21629 kshitij.so 777
	public Integer getDataProtectionInsurer() {
21545 ashik.ali 778
		return dataProtectionInsurer;
779
	}
21629 kshitij.so 780
	public void setDataProtectionInsurer(Integer dataProtectionInsurer) {
21545 ashik.ali 781
		this.dataProtectionInsurer = dataProtectionInsurer;
782
	}
21629 kshitij.so 783
	public Integer getDataProtectionAmount() {
21545 ashik.ali 784
		return dataProtectionAmount;
785
	}
21629 kshitij.so 786
	public void setDataProtectionAmount(Integer dataProtectionAmount) {
21545 ashik.ali 787
		this.dataProtectionAmount = dataProtectionAmount;
788
	}
789
	public TaxType getTaxType() {
790
		return taxType;
791
	}
792
	public void setTaxType(TaxType taxType) {
793
		this.taxType = taxType;
794
	}
795
	public String getLogisticsTransactionId() {
796
		return logisticsTransactionId;
797
	}
798
	public void setLogisticsTransactionId(String logisticsTransactionId) {
799
		this.logisticsTransactionId = logisticsTransactionId;
800
	}
21629 kshitij.so 801
	public Float getShippingCost() {
21545 ashik.ali 802
		return shippingCost;
803
	}
21629 kshitij.so 804
	public void setShippingCost(Float shippingCost) {
21545 ashik.ali 805
		this.shippingCost = shippingCost;
806
	}
21629 kshitij.so 807
	public Float getCodCharges() {
21545 ashik.ali 808
		return codCharges;
809
	}
21629 kshitij.so 810
	public void setCodCharges(Float codCharges) {
21545 ashik.ali 811
		this.codCharges = codCharges;
812
	}
21629 kshitij.so 813
	public Float getWalletAmount() {
21545 ashik.ali 814
		return walletAmount;
815
	}
21629 kshitij.so 816
	public void setWalletAmount(Float walletAmount) {
21545 ashik.ali 817
		this.walletAmount = walletAmount;
818
	}
21629 kshitij.so 819
	public Float getNetPayableAmount() {
21545 ashik.ali 820
		return netPayableAmount;
821
	}
21629 kshitij.so 822
	public void setNetPayableAmount(Float netPayableAmount) {
21545 ashik.ali 823
		this.netPayableAmount = netPayableAmount;
824
	}
21629 kshitij.so 825
	public Float getShippingRefund() {
21545 ashik.ali 826
		return shippingRefund;
827
	}
21629 kshitij.so 828
	public void setShippingRefund(Float shippingRefund) {
21545 ashik.ali 829
		this.shippingRefund = shippingRefund;
830
	}
21653 ashik.ali 831
 
832
	public LineItem getLineItem() {
833
		return lineItem;
834
	}
835
	public void setLineItem(LineItem lineItem) {
836
		this.lineItem = lineItem;
837
	}
21924 ashik.ali 838
 
839
 
21545 ashik.ali 840
	@Override
21924 ashik.ali 841
	public int hashCode() {
842
		final int prime = 31;
843
		int result = 1;
844
		result = prime * result + ((acceptedTimestamp == null) ? 0 : acceptedTimestamp.hashCode());
845
		result = prime * result + ((advanceAmount == null) ? 0 : advanceAmount.hashCode());
846
		result = prime * result + ((airwayBillNumber == null) ? 0 : airwayBillNumber.hashCode());
847
		result = prime * result + ((batchNumber == null) ? 0 : batchNumber.hashCode());
848
		result = prime * result + ((billedBy == null) ? 0 : billedBy.hashCode());
849
		result = prime * result + ((billingTimestamp == null) ? 0 : billingTimestamp.hashCode());
850
		result = prime * result + ((cod == null) ? 0 : cod.hashCode());
851
		result = prime * result + ((codCharges == null) ? 0 : codCharges.hashCode());
852
		result = prime * result + ((codReconciliationTimestamp == null) ? 0 : codReconciliationTimestamp.hashCode());
853
		result = prime * result + ((courierDeliveryTimestamp == null) ? 0 : courierDeliveryTimestamp.hashCode());
854
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
855
		result = prime * result + ((dataProtectionAmount == null) ? 0 : dataProtectionAmount.hashCode());
856
		result = prime * result + ((dataProtectionInsurer == null) ? 0 : dataProtectionInsurer.hashCode());
857
		result = prime * result + ((delayReason == null) ? 0 : delayReason.hashCode());
858
		result = prime * result + ((delayReasonText == null) ? 0 : delayReasonText.hashCode());
859
		result = prime * result + ((deliveryTimestamp == null) ? 0 : deliveryTimestamp.hashCode());
860
		result = prime * result + ((doaAuthTimestamp == null) ? 0 : doaAuthTimestamp.hashCode());
861
		result = prime * result + ((doaFlag == null) ? 0 : doaFlag.hashCode());
862
		result = prime * result + ((doaLogisticsProviderId == null) ? 0 : doaLogisticsProviderId.hashCode());
863
		result = prime * result + ((doaPickupTimestamp == null) ? 0 : doaPickupTimestamp.hashCode());
864
		result = prime * result + ((expectedDeliveryTime == null) ? 0 : expectedDeliveryTime.hashCode());
865
		result = prime * result + ((expectedShippingTime == null) ? 0 : expectedShippingTime.hashCode());
866
		result = prime * result + ((firstDlvyatmpTimestamp == null) ? 0 : firstDlvyatmpTimestamp.hashCode());
867
		result = prime * result + ((freebieItemId == null) ? 0 : freebieItemId.hashCode());
868
		result = prime * result + ((fulfilmentWarehouseId == null) ? 0 : fulfilmentWarehouseId.hashCode());
869
		result = prime * result + ((gvAmount == null) ? 0 : gvAmount.hashCode());
870
		result = prime * result + ((id == null) ? 0 : id.hashCode());
871
		result = prime * result + ((insuranceAmount == null) ? 0 : insuranceAmount.hashCode());
872
		result = prime * result + ((insurer == null) ? 0 : insurer.hashCode());
873
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
874
		result = prime * result + ((jacketNumber == null) ? 0 : jacketNumber.hashCode());
875
		result = prime * result + ((lineItem == null) ? 0 : lineItem.hashCode());
876
		result = prime * result + ((localConnectedTimestamp == null) ? 0 : localConnectedTimestamp.hashCode());
877
		result = prime * result + ((logisticsProviderId == null) ? 0 : logisticsProviderId.hashCode());
878
		result = prime * result + ((logisticsTransactionId == null) ? 0 : logisticsTransactionId.hashCode());
879
		result = prime * result + ((netPayableAmount == null) ? 0 : netPayableAmount.hashCode());
880
		result = prime * result + ((newOrderId == null) ? 0 : newOrderId.hashCode());
881
		result = prime * result + ((orderType == null) ? 0 : orderType.hashCode());
882
		result = prime * result + ((originalOrderId == null) ? 0 : originalOrderId.hashCode());
883
		result = prime * result + ((otg == null) ? 0 : otg.hashCode());
884
		result = prime * result + ((outOfStockTimestamp == null) ? 0 : outOfStockTimestamp.hashCode());
885
		result = prime * result + ((pickupRequestNumber == null) ? 0 : pickupRequestNumber.hashCode());
886
		result = prime * result + ((pickupStoreId == null) ? 0 : pickupStoreId.hashCode());
887
		result = prime * result + ((pickupTimestamp == null) ? 0 : pickupTimestamp.hashCode());
888
		result = prime * result + ((previousStatus == null) ? 0 : previousStatus.hashCode());
889
		result = prime * result + ((productCondition == null) ? 0 : productCondition.hashCode());
890
		result = prime * result + ((promisedDeliveryTime == null) ? 0 : promisedDeliveryTime.hashCode());
891
		result = prime * result + ((promisedShippingTime == null) ? 0 : promisedShippingTime.hashCode());
892
		result = prime * result + ((purchaseOrderId == null) ? 0 : purchaseOrderId.hashCode());
893
		result = prime * result + ((reShipTimestamp == null) ? 0 : reShipTimestamp.hashCode());
894
		result = prime * result + ((reachedDestinationTimestamp == null) ? 0 : reachedDestinationTimestamp.hashCode());
895
		result = prime * result + ((receiver == null) ? 0 : receiver.hashCode());
896
		result = prime * result + ((receiverReturnTimestamp == null) ? 0 : receiverReturnTimestamp.hashCode());
897
		result = prime * result + ((refundBy == null) ? 0 : refundBy.hashCode());
898
		result = prime * result + ((refundReason == null) ? 0 : refundReason.hashCode());
899
		result = prime * result + ((refundTimestamp == null) ? 0 : refundTimestamp.hashCode());
900
		result = prime * result + ((retailerAddress1 == null) ? 0 : retailerAddress1.hashCode());
901
		result = prime * result + ((retailerAddress2 == null) ? 0 : retailerAddress2.hashCode());
902
		result = prime * result + ((retailerCity == null) ? 0 : retailerCity.hashCode());
903
		result = prime * result + ((retailerEmailId == null) ? 0 : retailerEmailId.hashCode());
904
		result = prime * result + ((retailerId == null) ? 0 : retailerId.hashCode());
905
		result = prime * result + ((retailerMobileNumber == null) ? 0 : retailerMobileNumber.hashCode());
906
		result = prime * result + ((retailerName == null) ? 0 : retailerName.hashCode());
907
		result = prime * result + ((retailerPinCode == null) ? 0 : retailerPinCode.hashCode());
908
		result = prime * result + ((retailerState == null) ? 0 : retailerState.hashCode());
909
		result = prime * result + ((sellerId == null) ? 0 : sellerId.hashCode());
910
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
911
		result = prime * result + ((shippingCost == null) ? 0 : shippingCost.hashCode());
912
		result = prime * result + ((shippingRefund == null) ? 0 : shippingRefund.hashCode());
913
		result = prime * result + ((shippingTimestamp == null) ? 0 : shippingTimestamp.hashCode());
914
		result = prime * result + ((source == null) ? 0 : source.hashCode());
915
		result = prime * result + ((status == null) ? 0 : status.hashCode());
916
		result = prime * result + ((statusDescription == null) ? 0 : statusDescription.hashCode());
917
		result = prime * result + ((storeId == null) ? 0 : storeId.hashCode());
918
		result = prime * result + ((taxType == null) ? 0 : taxType.hashCode());
919
		result = prime * result + ((totalAmount == null) ? 0 : totalAmount.hashCode());
920
		result = prime * result + ((totalWeight == null) ? 0 : totalWeight.hashCode());
921
		result = prime * result + ((trackingId == null) ? 0 : trackingId.hashCode());
922
		result = prime * result + ((transactionId == null) ? 0 : transactionId.hashCode());
923
		result = prime * result + ((vendorId == null) ? 0 : vendorId.hashCode());
924
		result = prime * result + ((vendorPaid == null) ? 0 : vendorPaid.hashCode());
925
		result = prime * result + ((verificationTimestamp == null) ? 0 : verificationTimestamp.hashCode());
926
		result = prime * result + ((walletAmount == null) ? 0 : walletAmount.hashCode());
927
		result = prime * result + ((warehouseAddressId == null) ? 0 : warehouseAddressId.hashCode());
928
		result = prime * result + ((warehouseId == null) ? 0 : warehouseId.hashCode());
929
		return result;
930
	}
931
	@Override
932
	public boolean equals(Object obj) {
933
		if (this == obj)
934
			return true;
935
		if (obj == null)
936
			return false;
937
		if (getClass() != obj.getClass())
938
			return false;
939
		Order other = (Order) obj;
940
		if (acceptedTimestamp == null) {
941
			if (other.acceptedTimestamp != null)
942
				return false;
943
		} else if (!acceptedTimestamp.equals(other.acceptedTimestamp))
944
			return false;
945
		if (advanceAmount == null) {
946
			if (other.advanceAmount != null)
947
				return false;
948
		} else if (!advanceAmount.equals(other.advanceAmount))
949
			return false;
950
		if (airwayBillNumber == null) {
951
			if (other.airwayBillNumber != null)
952
				return false;
953
		} else if (!airwayBillNumber.equals(other.airwayBillNumber))
954
			return false;
955
		if (batchNumber == null) {
956
			if (other.batchNumber != null)
957
				return false;
958
		} else if (!batchNumber.equals(other.batchNumber))
959
			return false;
960
		if (billedBy == null) {
961
			if (other.billedBy != null)
962
				return false;
963
		} else if (!billedBy.equals(other.billedBy))
964
			return false;
965
		if (billingTimestamp == null) {
966
			if (other.billingTimestamp != null)
967
				return false;
968
		} else if (!billingTimestamp.equals(other.billingTimestamp))
969
			return false;
970
		if (cod == null) {
971
			if (other.cod != null)
972
				return false;
973
		} else if (!cod.equals(other.cod))
974
			return false;
975
		if (codCharges == null) {
976
			if (other.codCharges != null)
977
				return false;
978
		} else if (!codCharges.equals(other.codCharges))
979
			return false;
980
		if (codReconciliationTimestamp == null) {
981
			if (other.codReconciliationTimestamp != null)
982
				return false;
983
		} else if (!codReconciliationTimestamp.equals(other.codReconciliationTimestamp))
984
			return false;
985
		if (courierDeliveryTimestamp == null) {
986
			if (other.courierDeliveryTimestamp != null)
987
				return false;
988
		} else if (!courierDeliveryTimestamp.equals(other.courierDeliveryTimestamp))
989
			return false;
990
		if (createTimestamp == null) {
991
			if (other.createTimestamp != null)
992
				return false;
993
		} else if (!createTimestamp.equals(other.createTimestamp))
994
			return false;
995
		if (dataProtectionAmount == null) {
996
			if (other.dataProtectionAmount != null)
997
				return false;
998
		} else if (!dataProtectionAmount.equals(other.dataProtectionAmount))
999
			return false;
1000
		if (dataProtectionInsurer == null) {
1001
			if (other.dataProtectionInsurer != null)
1002
				return false;
1003
		} else if (!dataProtectionInsurer.equals(other.dataProtectionInsurer))
1004
			return false;
1005
		if (delayReason != other.delayReason)
1006
			return false;
1007
		if (delayReasonText == null) {
1008
			if (other.delayReasonText != null)
1009
				return false;
1010
		} else if (!delayReasonText.equals(other.delayReasonText))
1011
			return false;
1012
		if (deliveryTimestamp == null) {
1013
			if (other.deliveryTimestamp != null)
1014
				return false;
1015
		} else if (!deliveryTimestamp.equals(other.deliveryTimestamp))
1016
			return false;
1017
		if (doaAuthTimestamp == null) {
1018
			if (other.doaAuthTimestamp != null)
1019
				return false;
1020
		} else if (!doaAuthTimestamp.equals(other.doaAuthTimestamp))
1021
			return false;
1022
		if (doaFlag == null) {
1023
			if (other.doaFlag != null)
1024
				return false;
1025
		} else if (!doaFlag.equals(other.doaFlag))
1026
			return false;
1027
		if (doaLogisticsProviderId == null) {
1028
			if (other.doaLogisticsProviderId != null)
1029
				return false;
1030
		} else if (!doaLogisticsProviderId.equals(other.doaLogisticsProviderId))
1031
			return false;
1032
		if (doaPickupTimestamp == null) {
1033
			if (other.doaPickupTimestamp != null)
1034
				return false;
1035
		} else if (!doaPickupTimestamp.equals(other.doaPickupTimestamp))
1036
			return false;
1037
		if (expectedDeliveryTime == null) {
1038
			if (other.expectedDeliveryTime != null)
1039
				return false;
1040
		} else if (!expectedDeliveryTime.equals(other.expectedDeliveryTime))
1041
			return false;
1042
		if (expectedShippingTime == null) {
1043
			if (other.expectedShippingTime != null)
1044
				return false;
1045
		} else if (!expectedShippingTime.equals(other.expectedShippingTime))
1046
			return false;
1047
		if (firstDlvyatmpTimestamp == null) {
1048
			if (other.firstDlvyatmpTimestamp != null)
1049
				return false;
1050
		} else if (!firstDlvyatmpTimestamp.equals(other.firstDlvyatmpTimestamp))
1051
			return false;
1052
		if (freebieItemId == null) {
1053
			if (other.freebieItemId != null)
1054
				return false;
1055
		} else if (!freebieItemId.equals(other.freebieItemId))
1056
			return false;
1057
		if (fulfilmentWarehouseId == null) {
1058
			if (other.fulfilmentWarehouseId != null)
1059
				return false;
1060
		} else if (!fulfilmentWarehouseId.equals(other.fulfilmentWarehouseId))
1061
			return false;
1062
		if (gvAmount == null) {
1063
			if (other.gvAmount != null)
1064
				return false;
1065
		} else if (!gvAmount.equals(other.gvAmount))
1066
			return false;
1067
		if (id == null) {
1068
			if (other.id != null)
1069
				return false;
1070
		} else if (!id.equals(other.id))
1071
			return false;
1072
		if (insuranceAmount == null) {
1073
			if (other.insuranceAmount != null)
1074
				return false;
1075
		} else if (!insuranceAmount.equals(other.insuranceAmount))
1076
			return false;
1077
		if (insurer == null) {
1078
			if (other.insurer != null)
1079
				return false;
1080
		} else if (!insurer.equals(other.insurer))
1081
			return false;
1082
		if (invoiceNumber == null) {
1083
			if (other.invoiceNumber != null)
1084
				return false;
1085
		} else if (!invoiceNumber.equals(other.invoiceNumber))
1086
			return false;
1087
		if (jacketNumber == null) {
1088
			if (other.jacketNumber != null)
1089
				return false;
1090
		} else if (!jacketNumber.equals(other.jacketNumber))
1091
			return false;
1092
		if (lineItem == null) {
1093
			if (other.lineItem != null)
1094
				return false;
1095
		} else if (!lineItem.equals(other.lineItem))
1096
			return false;
1097
		if (localConnectedTimestamp == null) {
1098
			if (other.localConnectedTimestamp != null)
1099
				return false;
1100
		} else if (!localConnectedTimestamp.equals(other.localConnectedTimestamp))
1101
			return false;
1102
		if (logisticsProviderId == null) {
1103
			if (other.logisticsProviderId != null)
1104
				return false;
1105
		} else if (!logisticsProviderId.equals(other.logisticsProviderId))
1106
			return false;
1107
		if (logisticsTransactionId == null) {
1108
			if (other.logisticsTransactionId != null)
1109
				return false;
1110
		} else if (!logisticsTransactionId.equals(other.logisticsTransactionId))
1111
			return false;
1112
		if (netPayableAmount == null) {
1113
			if (other.netPayableAmount != null)
1114
				return false;
1115
		} else if (!netPayableAmount.equals(other.netPayableAmount))
1116
			return false;
1117
		if (newOrderId == null) {
1118
			if (other.newOrderId != null)
1119
				return false;
1120
		} else if (!newOrderId.equals(other.newOrderId))
1121
			return false;
1122
		if (orderType == null) {
1123
			if (other.orderType != null)
1124
				return false;
1125
		} else if (!orderType.equals(other.orderType))
1126
			return false;
1127
		if (originalOrderId == null) {
1128
			if (other.originalOrderId != null)
1129
				return false;
1130
		} else if (!originalOrderId.equals(other.originalOrderId))
1131
			return false;
1132
		if (otg == null) {
1133
			if (other.otg != null)
1134
				return false;
1135
		} else if (!otg.equals(other.otg))
1136
			return false;
1137
		if (outOfStockTimestamp == null) {
1138
			if (other.outOfStockTimestamp != null)
1139
				return false;
1140
		} else if (!outOfStockTimestamp.equals(other.outOfStockTimestamp))
1141
			return false;
1142
		if (pickupRequestNumber == null) {
1143
			if (other.pickupRequestNumber != null)
1144
				return false;
1145
		} else if (!pickupRequestNumber.equals(other.pickupRequestNumber))
1146
			return false;
1147
		if (pickupStoreId == null) {
1148
			if (other.pickupStoreId != null)
1149
				return false;
1150
		} else if (!pickupStoreId.equals(other.pickupStoreId))
1151
			return false;
1152
		if (pickupTimestamp == null) {
1153
			if (other.pickupTimestamp != null)
1154
				return false;
1155
		} else if (!pickupTimestamp.equals(other.pickupTimestamp))
1156
			return false;
1157
		if (previousStatus == null) {
1158
			if (other.previousStatus != null)
1159
				return false;
1160
		} else if (!previousStatus.equals(other.previousStatus))
1161
			return false;
1162
		if (productCondition == null) {
1163
			if (other.productCondition != null)
1164
				return false;
1165
		} else if (!productCondition.equals(other.productCondition))
1166
			return false;
1167
		if (promisedDeliveryTime == null) {
1168
			if (other.promisedDeliveryTime != null)
1169
				return false;
1170
		} else if (!promisedDeliveryTime.equals(other.promisedDeliveryTime))
1171
			return false;
1172
		if (promisedShippingTime == null) {
1173
			if (other.promisedShippingTime != null)
1174
				return false;
1175
		} else if (!promisedShippingTime.equals(other.promisedShippingTime))
1176
			return false;
1177
		if (purchaseOrderId == null) {
1178
			if (other.purchaseOrderId != null)
1179
				return false;
1180
		} else if (!purchaseOrderId.equals(other.purchaseOrderId))
1181
			return false;
1182
		if (reShipTimestamp == null) {
1183
			if (other.reShipTimestamp != null)
1184
				return false;
1185
		} else if (!reShipTimestamp.equals(other.reShipTimestamp))
1186
			return false;
1187
		if (reachedDestinationTimestamp == null) {
1188
			if (other.reachedDestinationTimestamp != null)
1189
				return false;
1190
		} else if (!reachedDestinationTimestamp.equals(other.reachedDestinationTimestamp))
1191
			return false;
1192
		if (receiver == null) {
1193
			if (other.receiver != null)
1194
				return false;
1195
		} else if (!receiver.equals(other.receiver))
1196
			return false;
1197
		if (receiverReturnTimestamp == null) {
1198
			if (other.receiverReturnTimestamp != null)
1199
				return false;
1200
		} else if (!receiverReturnTimestamp.equals(other.receiverReturnTimestamp))
1201
			return false;
1202
		if (refundBy == null) {
1203
			if (other.refundBy != null)
1204
				return false;
1205
		} else if (!refundBy.equals(other.refundBy))
1206
			return false;
1207
		if (refundReason == null) {
1208
			if (other.refundReason != null)
1209
				return false;
1210
		} else if (!refundReason.equals(other.refundReason))
1211
			return false;
1212
		if (refundTimestamp == null) {
1213
			if (other.refundTimestamp != null)
1214
				return false;
1215
		} else if (!refundTimestamp.equals(other.refundTimestamp))
1216
			return false;
1217
		if (retailerAddress1 == null) {
1218
			if (other.retailerAddress1 != null)
1219
				return false;
1220
		} else if (!retailerAddress1.equals(other.retailerAddress1))
1221
			return false;
1222
		if (retailerAddress2 == null) {
1223
			if (other.retailerAddress2 != null)
1224
				return false;
1225
		} else if (!retailerAddress2.equals(other.retailerAddress2))
1226
			return false;
1227
		if (retailerCity == null) {
1228
			if (other.retailerCity != null)
1229
				return false;
1230
		} else if (!retailerCity.equals(other.retailerCity))
1231
			return false;
1232
		if (retailerEmailId == null) {
1233
			if (other.retailerEmailId != null)
1234
				return false;
1235
		} else if (!retailerEmailId.equals(other.retailerEmailId))
1236
			return false;
1237
		if (retailerId == null) {
1238
			if (other.retailerId != null)
1239
				return false;
1240
		} else if (!retailerId.equals(other.retailerId))
1241
			return false;
1242
		if (retailerMobileNumber == null) {
1243
			if (other.retailerMobileNumber != null)
1244
				return false;
1245
		} else if (!retailerMobileNumber.equals(other.retailerMobileNumber))
1246
			return false;
1247
		if (retailerName == null) {
1248
			if (other.retailerName != null)
1249
				return false;
1250
		} else if (!retailerName.equals(other.retailerName))
1251
			return false;
1252
		if (retailerPinCode == null) {
1253
			if (other.retailerPinCode != null)
1254
				return false;
1255
		} else if (!retailerPinCode.equals(other.retailerPinCode))
1256
			return false;
1257
		if (retailerState == null) {
1258
			if (other.retailerState != null)
1259
				return false;
1260
		} else if (!retailerState.equals(other.retailerState))
1261
			return false;
1262
		if (sellerId == null) {
1263
			if (other.sellerId != null)
1264
				return false;
1265
		} else if (!sellerId.equals(other.sellerId))
1266
			return false;
1267
		if (serialNumber == null) {
1268
			if (other.serialNumber != null)
1269
				return false;
1270
		} else if (!serialNumber.equals(other.serialNumber))
1271
			return false;
1272
		if (shippingCost == null) {
1273
			if (other.shippingCost != null)
1274
				return false;
1275
		} else if (!shippingCost.equals(other.shippingCost))
1276
			return false;
1277
		if (shippingRefund == null) {
1278
			if (other.shippingRefund != null)
1279
				return false;
1280
		} else if (!shippingRefund.equals(other.shippingRefund))
1281
			return false;
1282
		if (shippingTimestamp == null) {
1283
			if (other.shippingTimestamp != null)
1284
				return false;
1285
		} else if (!shippingTimestamp.equals(other.shippingTimestamp))
1286
			return false;
1287
		if (source == null) {
1288
			if (other.source != null)
1289
				return false;
1290
		} else if (!source.equals(other.source))
1291
			return false;
1292
		if (status != other.status)
1293
			return false;
1294
		if (statusDescription == null) {
1295
			if (other.statusDescription != null)
1296
				return false;
1297
		} else if (!statusDescription.equals(other.statusDescription))
1298
			return false;
1299
		if (storeId == null) {
1300
			if (other.storeId != null)
1301
				return false;
1302
		} else if (!storeId.equals(other.storeId))
1303
			return false;
1304
		if (taxType != other.taxType)
1305
			return false;
1306
		if (totalAmount == null) {
1307
			if (other.totalAmount != null)
1308
				return false;
1309
		} else if (!totalAmount.equals(other.totalAmount))
1310
			return false;
1311
		if (totalWeight == null) {
1312
			if (other.totalWeight != null)
1313
				return false;
1314
		} else if (!totalWeight.equals(other.totalWeight))
1315
			return false;
1316
		if (trackingId == null) {
1317
			if (other.trackingId != null)
1318
				return false;
1319
		} else if (!trackingId.equals(other.trackingId))
1320
			return false;
1321
		if (transactionId == null) {
1322
			if (other.transactionId != null)
1323
				return false;
1324
		} else if (!transactionId.equals(other.transactionId))
1325
			return false;
1326
		if (vendorId == null) {
1327
			if (other.vendorId != null)
1328
				return false;
1329
		} else if (!vendorId.equals(other.vendorId))
1330
			return false;
1331
		if (vendorPaid == null) {
1332
			if (other.vendorPaid != null)
1333
				return false;
1334
		} else if (!vendorPaid.equals(other.vendorPaid))
1335
			return false;
1336
		if (verificationTimestamp == null) {
1337
			if (other.verificationTimestamp != null)
1338
				return false;
1339
		} else if (!verificationTimestamp.equals(other.verificationTimestamp))
1340
			return false;
1341
		if (walletAmount == null) {
1342
			if (other.walletAmount != null)
1343
				return false;
1344
		} else if (!walletAmount.equals(other.walletAmount))
1345
			return false;
1346
		if (warehouseAddressId == null) {
1347
			if (other.warehouseAddressId != null)
1348
				return false;
1349
		} else if (!warehouseAddressId.equals(other.warehouseAddressId))
1350
			return false;
1351
		if (warehouseId == null) {
1352
			if (other.warehouseId != null)
1353
				return false;
1354
		} else if (!warehouseId.equals(other.warehouseId))
1355
			return false;
1356
		return true;
1357
	}
1358
	@Override
21545 ashik.ali 1359
	public String toString() {
1360
		return "Order [id=" + id + ", warehouseId=" + warehouseId + ", sellerId=" + sellerId + ", warehouseAddressId="
1361
				+ warehouseAddressId + ", logisticsProviderId=" + logisticsProviderId + ", airwayBillNumber="
1362
				+ airwayBillNumber + ", trackingId=" + trackingId + ", expectedDeliveryTime=" + expectedDeliveryTime
1363
				+ ", promisedDeliveryTime=" + promisedDeliveryTime + ", expectedShippingTime=" + expectedShippingTime
1364
				+ ", promisedShippingTime=" + promisedShippingTime + ", retailerId=" + retailerId + ", retailerName="
1365
				+ retailerName + ", retailerMobileNumber=" + retailerMobileNumber + ", retailerPinCode="
1366
				+ retailerPinCode + ", retailerAddress1=" + retailerAddress1 + ", retailerAddress2=" + retailerAddress2
1367
				+ ", retailerCity=" + retailerCity + ", retailerState=" + retailerState + ", retailerEmailId="
1368
				+ retailerEmailId + ", status=" + status + ", statusDescription=" + statusDescription + ", totalAmount="
1369
				+ totalAmount + ", gvAmount=" + gvAmount + ", totalWeight=" + totalWeight + ", invoiceNumber="
1370
				+ invoiceNumber + ", billedBy=" + billedBy + ", createTimestamp=" + createTimestamp
1371
				+ ", acceptedTimestamp=" + acceptedTimestamp + ", billingTimestamp=" + billingTimestamp
1372
				+ ", shippingTimestamp=" + shippingTimestamp + ", pickupTimestamp=" + pickupTimestamp
1373
				+ ", deliveryTimestamp=" + deliveryTimestamp + ", outOfStockTimestamp=" + outOfStockTimestamp
1374
				+ ", jacketNumber=" + jacketNumber + ", receiver=" + receiver
1375
				+ ", batchNumber=" + batchNumber + ", serialNumber=" + serialNumber + ", doaFlag=" + doaFlag
1376
				+ ", pickupRequestNumber=" + pickupRequestNumber + ", newOrderId=" + newOrderId + ", doaAuthTimestamp="
1377
				+ doaAuthTimestamp + ", doaPickupTimestamp=" + doaPickupTimestamp + ", receiverReturnTimestamp="
1378
				+ receiverReturnTimestamp + ", reShipTimestamp=" + reShipTimestamp + ", refundTimestamp="
1379
				+ refundTimestamp + ", purchaseOrderId=" + purchaseOrderId + ", cod=" + cod + ", verificationTimestamp="
1380
				+ verificationTimestamp + ", refundBy=" + refundBy + ", refundReason=" + refundReason + ", delayReason="
1381
				+ delayReason + ", codReconciliationTimestamp=" + codReconciliationTimestamp + ", previousStatus="
1382
				+ previousStatus + ", vendorId=" + vendorId + ", delayReasonText=" + delayReasonText
1383
				+ ", doaLogisticsProviderId=" + doaLogisticsProviderId + ", vendorPaid=" + vendorPaid
1384
				+ ", localConnectedTimestamp=" + localConnectedTimestamp + ", reachedDestinationTimestamp="
1385
				+ reachedDestinationTimestamp + ", firstDlvyatmpTimestamp=" + firstDlvyatmpTimestamp
1386
				+ ", originalOrderId=" + originalOrderId + ", fulfilmentWarehouseId=" + fulfilmentWarehouseId
1387
				+ ", orderType=" + orderType + ", pickupStoreId=" + pickupStoreId + ", otg=" + otg
1388
				+ ", courierDeliveryTimestamp=" + courierDeliveryTimestamp + ", insurer=" + insurer
1389
				+ ", insuranceAmount=" + insuranceAmount + ", freebieItemId=" + freebieItemId + ", source=" + source
1390
				+ ", advanceAmount=" + advanceAmount + ", storeId=" + storeId + ", productCondition=" + productCondition
1391
				+ ", dataProtectionInsurer=" + dataProtectionInsurer + ", dataProtectionAmount=" + dataProtectionAmount
1392
				+ ", taxType=" + taxType + ", logisticsTransactionId=" + logisticsTransactionId + ", shippingCost="
1393
				+ shippingCost + ", codCharges=" + codCharges + ", walletAmount=" + walletAmount + ", netPayableAmount="
1394
				+ netPayableAmount + ", shippingRefund=" + shippingRefund + "]";
1395
	}
1396
 
1397
}