Subversion Repositories SmartDukaan

Rev

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