Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21545 ashik.ali 1
package com.spice.profitmandi.dao.entity;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.NamedQueries;
14
import javax.persistence.NamedQuery;
15
import javax.persistence.Table;
16
 
17
import com.spice.profitmandi.dao.enumuration.DelayReason;
18
import com.spice.profitmandi.dao.enumuration.OrderStatus;
19
import com.spice.profitmandi.dao.enumuration.TaxType;
20
 
21
/**
22
 * This class basically contains order details
23
 * 
24
 * @author ashikali
25
 *
26
 */
27
@Entity
28
@Table(name="transaction.`order`", schema = "transaction")
29
@NamedQueries({
30
	@NamedQuery(name="Order.selectAll",query="select o from Order o"),
31
	@NamedQuery(name="Order.selectById",query="select o from Order o where o.id= :id"),
32
	@NamedQuery(name = "Order.selectCountByTransactionId", query = "select count(o) from Order o where o.transactionId = :transactionId"),
33
	@NamedQuery(
21573 ashik.ali 34
		name = "Order.selectByTransactionId", 
35
		query = "select t.id, t.createTimestamp, o.retailerAddress1, o.retailerAddress2, o.retailerCity, "
36
			+ "o.retailerPinCode, o.retailerState, o.shippingCost, o.statusDescription, o.invoiceNumber, o.airwayBillNumber, o.totalAmount, li.brand, li.modelName, "
37
			+ "li.modelNumber, li.color, li.quantity, li.unitPrice, p.id, p.name, o.shippingTimestamp, o.status from Transaction t join Order o on o.transactionId = t.id "
38
			+ "join LineItem li on li.orderId = o.id left join Provider p on p.id = o.logisticsProviderId where o.transactionId = :transactionId"),
39
	@NamedQuery(
21580 ashik.ali 40
		name = "Order.selectByAirwayBillOrInvoiceNumber",
21585 ashik.ali 41
		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"),
21545 ashik.ali 42
})
43
public class Order implements Serializable{
44
 
45
	private static final long serialVersionUID = 1L;
46
 
47
	public Order() {
48
	}
49
 
50
	@Id
51
	@Column(name="id", unique=true, updatable=false)
52
	@GeneratedValue(strategy = GenerationType.IDENTITY)
53
	private int id;
54
 
55
	@Column(name = "warehouse_id")
56
	private int warehouseId;
57
 
58
	@Column(name = "seller_id")
59
	private int sellerId;
60
 
61
	@Column(name = "warehouse_address_id")
62
	private int warehouseAddressId;
63
 
64
	@Column(name = "logistics_provider_id")
65
	private int logisticsProviderId;
66
 
21580 ashik.ali 67
	//@Column(name = "airwaybill_no", length = 50)
21545 ashik.ali 68
	private String airwayBillNumber;
69
 
70
	@Column(name = "tracking_id", length = 50)
71
	private String trackingId;
72
 
73
	@Column(name = "expected_delivery_time")
74
	private LocalDateTime expectedDeliveryTime;
75
 
76
	@Column(name = "promised_delivery_time")
77
	private LocalDateTime promisedDeliveryTime;
78
 
79
	@Column(name = "expected_shipping_time")
80
	private LocalDateTime expectedShippingTime;
81
 
82
	@Column(name = "promised_shipping_time")
83
	private LocalDateTime promisedShippingTime;
84
 
85
	@Column(name = "customer_id")
86
	private int retailerId;
87
 
88
	@Column(name = "customer_name", length = 50)
89
	private String retailerName;
90
 
91
	@Column(name = "customer_mobilenumber", length = 20)
92
	private String retailerMobileNumber;
93
 
94
	@Column(name = "customer_pincode", length = 10)
95
	private String retailerPinCode;
96
 
97
	@Column(name = "customer_address1", length = 100)
98
	private String retailerAddress1;
99
 
100
	@Column(name = "customer_address2", length = 100)
101
	private String retailerAddress2;
102
 
103
	@Column(name = "customer_city", length = 100)
104
	private String retailerCity;
105
 
106
	@Column(name = "customer_state", length = 100)
107
	private String retailerState;
108
 
109
	@Column(name = "customer_email", length = 50)
110
	private String retailerEmailId;
111
 
112
	@Column(name = "status")
113
	@Enumerated(EnumType.ORDINAL)
114
	private OrderStatus status;
115
 
116
	@Column(name = "statusDescription", length = 50)
117
	private String statusDescription;
118
 
119
	@Column(name = "total_amount")
120
	private float totalAmount;
121
 
122
	@Column(name = "gvAmount")
123
	private float gvAmount;
124
 
125
	@Column(name = "total_weight")
126
	private float totalWeight;
127
 
128
	@Column(name = "invoice_number", length = 30)
129
	private String invoiceNumber;
130
 
131
	@Column(name = "billed_by", length = 30)
132
	private String billedBy;
133
 
134
	@Column(name = "created_timestamp")
135
	private LocalDateTime createTimestamp;
136
 
137
	@Column(name = "accepted_timestamp")
138
	private LocalDateTime acceptedTimestamp;
139
 
140
	@Column(name = "billing_timestamp")
141
	private LocalDateTime billingTimestamp;
142
 
143
	@Column(name = "shipping_timestamp")
144
	private LocalDateTime shippingTimestamp;
145
 
146
	@Column(name = "pickup_timestamp")
147
	private LocalDateTime pickupTimestamp;
148
 
149
	@Column(name = "delivery_timestamp")
150
	private LocalDateTime deliveryTimestamp;
151
 
152
	@Column(name = "outofstock_timestamp")
153
	private LocalDateTime outOfStockTimestamp;
154
 
155
	@Column(name = "transaction_id")
156
    private int transactionId;
157
 
158
	@Column(name = "jacket_number", length = 10)
159
	private int jacketNumber;
160
 
161
	@Column(name = "receiver", length = 50)
162
	private String receiver;
163
 
164
	@Column(name = "batchNo")
165
	private int batchNumber;
166
 
167
	@Column(name = "serialNo")
168
	private int serialNumber;
169
 
170
	@Column(name = "doaFlag", columnDefinition="tinyint(1) default 0")
171
	private boolean doaFlag;
172
 
173
	@Column(name = "pickupRequestNo")
174
	private int pickupRequestNumber;
175
 
176
	@Column(name = "new_order_id")
177
	private int newOrderId;
178
 
179
	@Column(name = "doa_auth_timestamp")
180
	private LocalDateTime doaAuthTimestamp;
181
 
182
	@Column(name = "doa_pickup_timestamp")
183
	private LocalDateTime doaPickupTimestamp;
184
 
185
	@Column(name = "received_return_timestamp")
186
	private LocalDateTime receiverReturnTimestamp;
187
 
188
	@Column(name = "reship_timestamp")
189
	private LocalDateTime reShipTimestamp;
190
 
191
	@Column(name = "refund_timestamp")
192
	private LocalDateTime refundTimestamp;
193
 
194
	@Column(name = "purchase_order_id")
195
	private int purchaseOrderId;
196
 
197
	@Column(name = "cod", columnDefinition="tinyint(1) default 0")
198
	private boolean cod;
199
 
200
	@Column(name = "verification_timestamp")
201
	private LocalDateTime verificationTimestamp;
202
 
203
	@Column(name = "refund_by", length = 30)
204
	private String refundBy;
205
 
206
	@Column(name = "refund_reason", length = 256)
207
	private String refundReason;
208
 
209
	@Column(name = "delay_reason")
210
	private DelayReason delayReason;
211
 
212
	@Column(name = "cod_reconciliation_timestamp")
213
	private LocalDateTime codReconciliationTimestamp;
214
 
215
	@Column(name = "previous_status")
216
	private int previousStatus;
217
 
218
 
219
	@Column(name = "vendorId")
220
	private int vendorId;
221
 
222
	@Column(name = "delayReasonText", length = 250)
223
	private String delayReasonText;
224
 
225
	@Column(name = "doa_logistics_provider_id")
226
	private int doaLogisticsProviderId;
227
 
228
	@Column(name = "vendor_paid", columnDefinition="tinyint(1) default 0")
229
	private boolean vendorPaid;
230
 
231
	@Column(name = "local_connected_timestamp")
232
	private LocalDateTime localConnectedTimestamp;
233
 
234
	@Column(name = "reached_destination_timestamp")
235
	private LocalDateTime reachedDestinationTimestamp;
236
 
237
	@Column(name = "first_dlvyatmp_timestamp")
238
	private LocalDateTime firstDlvyatmpTimestamp;
239
 
240
	@Column(name = "originalOrderId")
241
	private int originalOrderId;
242
 
243
	@Column(name = "fulfilmentWarehouseId")
244
	private int fulfilmentWarehouseId;
245
 
246
	@Column(name = "orderType")
247
	private int orderType;
248
 
249
	@Column(name = "pickupStoreId")
250
	private int pickupStoreId;
251
 
252
	@Column(name = "otg", columnDefinition="tinyint(1) default 0")
253
	private boolean otg;
254
 
255
	@Column(name = "courier_delivery_time")
256
	private LocalDateTime courierDeliveryTimestamp;
257
 
258
 
259
	@Column(name = "insurer")
260
	private int insurer;
261
 
262
	@Column(name = "insuranceAmount")
263
	private float insuranceAmount;
264
 
265
	@Column(name = "freebieItemId")
266
	private int freebieItemId;
267
 
268
	@Column(name = "source")
269
	private int source;
270
 
271
	@Column(name = "advanceAmount")
272
	private float advanceAmount;
273
 
274
	@Column(name = "storeId")
275
	private int storeId;
276
 
277
	@Column(name = "productCondition")
278
	private int productCondition;
279
 
280
 
281
	@Column(name = "dataProtectionInsurer")
282
	private int dataProtectionInsurer;
283
 
284
	@Column(name = "dataProtectionAmount")
285
	private int dataProtectionAmount;
286
 
287
	@Column(name = "taxType")
288
	@Enumerated(EnumType.STRING)
289
	private TaxType taxType;
290
 
291
	@Column(name = "logisticsTransactionId", length = 100)
292
	private String logisticsTransactionId;
293
 
294
	@Column(name = "shippingCost")
295
	private float shippingCost;
296
 
297
	@Column(name = "codCharges")
298
	private float codCharges;
299
 
300
	@Column(name = "wallet_amount")
301
	private float walletAmount;
302
 
303
	@Column(name = "net_payable_amount")
304
	private float netPayableAmount;
305
 
306
	@Column(name = "shippingRefund")
307
	private float shippingRefund;
308
 
309
	public int getId() {
310
		return id;
311
	}
312
	public void setId(int id) {
313
		this.id = id;
314
	}
315
	public int getWarehouseId() {
316
		return warehouseId;
317
	}
318
	public void setWarehouseId(int warehouseId) {
319
		this.warehouseId = warehouseId;
320
	}
321
	public int getSellerId() {
322
		return sellerId;
323
	}
324
	public void setSellerId(int sellerId) {
325
		this.sellerId = sellerId;
326
	}
327
	public int getWarehouseAddressId() {
328
		return warehouseAddressId;
329
	}
330
	public void setWarehouseAddressId(int warehouseAddressId) {
331
		this.warehouseAddressId = warehouseAddressId;
332
	}
333
	public int getLogisticsProviderId() {
334
		return logisticsProviderId;
335
	}
336
	public void setLogisticsProviderId(int logisticsProviderId) {
337
		this.logisticsProviderId = logisticsProviderId;
338
	}
339
	public String getAirwayBillNumber() {
340
		return airwayBillNumber;
341
	}
342
	public void setAirwayBillNumber(String airwayBillNumber) {
343
		this.airwayBillNumber = airwayBillNumber;
344
	}
345
	public String getTrackingId() {
346
		return trackingId;
347
	}
348
	public void setTrackingId(String trackingId) {
349
		this.trackingId = trackingId;
350
	}
351
	public LocalDateTime getExpectedDeliveryTime() {
352
		return expectedDeliveryTime;
353
	}
354
	public void setExpectedDeliveryTime(LocalDateTime expectedDeliveryTime) {
355
		this.expectedDeliveryTime = expectedDeliveryTime;
356
	}
357
	public LocalDateTime getPromisedDeliveryTime() {
358
		return promisedDeliveryTime;
359
	}
360
	public void setPromisedDeliveryTime(LocalDateTime promisedDeliveryTime) {
361
		this.promisedDeliveryTime = promisedDeliveryTime;
362
	}
363
	public LocalDateTime getExpectedShippingTime() {
364
		return expectedShippingTime;
365
	}
366
	public void setExpectedShippingTime(LocalDateTime expectedShippingTime) {
367
		this.expectedShippingTime = expectedShippingTime;
368
	}
369
	public LocalDateTime getPromisedShippingTime() {
370
		return promisedShippingTime;
371
	}
372
	public void setPromisedShippingTime(LocalDateTime promisedShippingTime) {
373
		this.promisedShippingTime = promisedShippingTime;
374
	}
375
	public int getRetailerId() {
376
		return retailerId;
377
	}
378
	public void setRetailerId(int retailerId) {
379
		this.retailerId = retailerId;
380
	}
381
	public String getRetailerName() {
382
		return retailerName;
383
	}
384
	public void setRetailerName(String retailerName) {
385
		this.retailerName = retailerName;
386
	}
387
	public String getRetailerMobileNumber() {
388
		return retailerMobileNumber;
389
	}
390
	public void setRetailerMobileNumber(String retailerMobileNumber) {
391
		this.retailerMobileNumber = retailerMobileNumber;
392
	}
393
	public String getRetailerPinCode() {
394
		return retailerPinCode;
395
	}
396
	public void setRetailerPinCode(String retailerPinCode) {
397
		this.retailerPinCode = retailerPinCode;
398
	}
399
	public String getRetailerAddress1() {
400
		return retailerAddress1;
401
	}
402
	public void setRetailerAddress1(String retailerAddress1) {
403
		this.retailerAddress1 = retailerAddress1;
404
	}
405
	public String getRetailerAddress2() {
406
		return retailerAddress2;
407
	}
408
	public void setRetailerAddress2(String retailerAddress2) {
409
		this.retailerAddress2 = retailerAddress2;
410
	}
411
	public String getRetailerCity() {
412
		return retailerCity;
413
	}
414
	public void setRetailerCity(String retailerCity) {
415
		this.retailerCity = retailerCity;
416
	}
417
	public String getRetailerState() {
418
		return retailerState;
419
	}
420
	public void setRetailerState(String retailerState) {
421
		this.retailerState = retailerState;
422
	}
423
	public String getRetailerEmailId() {
424
		return retailerEmailId;
425
	}
426
	public void setRetailerEmailId(String retailerEmailId) {
427
		this.retailerEmailId = retailerEmailId;
428
	}
429
	public OrderStatus getStatus() {
430
		return status;
431
	}
432
	public void setStatus(OrderStatus status) {
433
		this.status = status;
434
	}
435
	public String getStatusDescription() {
436
		return statusDescription;
437
	}
438
	public void setStatusDescription(String statusDescription) {
439
		this.statusDescription = statusDescription;
440
	}
441
	public float getTotalAmount() {
442
		return totalAmount;
443
	}
444
	public void setTotalAmount(float totalAmount) {
445
		this.totalAmount = totalAmount;
446
	}
447
	public float getGvAmount() {
448
		return gvAmount;
449
	}
450
	public void setGvAmount(float gvAmount) {
451
		this.gvAmount = gvAmount;
452
	}
453
	public float getTotalWeight() {
454
		return totalWeight;
455
	}
456
	public void setTotalWeight(float totalWeight) {
457
		this.totalWeight = totalWeight;
458
	}
459
	public String getInvoiceNumber() {
460
		return invoiceNumber;
461
	}
462
	public void setInvoiceNumber(String invoiceNumber) {
463
		this.invoiceNumber = invoiceNumber;
464
	}
465
	public String getBilledBy() {
466
		return billedBy;
467
	}
468
	public void setBilledBy(String billedBy) {
469
		this.billedBy = billedBy;
470
	}
471
	public LocalDateTime getCreateTimestamp() {
472
		return createTimestamp;
473
	}
474
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
475
		this.createTimestamp = createTimestamp;
476
	}
477
	public LocalDateTime getAcceptedTimestamp() {
478
		return acceptedTimestamp;
479
	}
480
	public void setAcceptedTimestamp(LocalDateTime acceptedTimestamp) {
481
		this.acceptedTimestamp = acceptedTimestamp;
482
	}
483
	public LocalDateTime getBillingTimestamp() {
484
		return billingTimestamp;
485
	}
486
	public void setBillingTimestamp(LocalDateTime billingTimestamp) {
487
		this.billingTimestamp = billingTimestamp;
488
	}
489
	public LocalDateTime getShippingTimestamp() {
490
		return shippingTimestamp;
491
	}
492
	public void setShippingTimestamp(LocalDateTime shippingTimestamp) {
493
		this.shippingTimestamp = shippingTimestamp;
494
	}
495
	public LocalDateTime getPickupTimestamp() {
496
		return pickupTimestamp;
497
	}
498
	public void setPickupTimestamp(LocalDateTime pickupTimestamp) {
499
		this.pickupTimestamp = pickupTimestamp;
500
	}
501
	public LocalDateTime getDeliveryTimestamp() {
502
		return deliveryTimestamp;
503
	}
504
	public void setDeliveryTimestamp(LocalDateTime deliveryTimestamp) {
505
		this.deliveryTimestamp = deliveryTimestamp;
506
	}
507
	public LocalDateTime getOutOfStockTimestamp() {
508
		return outOfStockTimestamp;
509
	}
510
	public void setOutOfStockTimestamp(LocalDateTime outOfStockTimestamp) {
511
		this.outOfStockTimestamp = outOfStockTimestamp;
512
	}
513
	public int getTransactionId() {
514
		return transactionId;
515
	}
516
	public void setTransactionId(int transactionId) {
517
		this.transactionId = transactionId;
518
	}
519
 
520
 
521
	public int getJacketNumber() {
522
		return jacketNumber;
523
	}
524
	public void setJacketNumber(int jacketNumber) {
525
		this.jacketNumber = jacketNumber;
526
	}
527
	public String getReceiver() {
528
		return receiver;
529
	}
530
	public void setReceiver(String receiver) {
531
		this.receiver = receiver;
532
	}
533
	public int getBatchNumber() {
534
		return batchNumber;
535
	}
536
	public void setBatchNumber(int batchNumber) {
537
		this.batchNumber = batchNumber;
538
	}
539
	public int getSerialNumber() {
540
		return serialNumber;
541
	}
542
	public void setSerialNumber(int serialNumber) {
543
		this.serialNumber = serialNumber;
544
	}
545
	public boolean isDoaFlag() {
546
		return doaFlag;
547
	}
548
	public void setDoaFlag(boolean doaFlag) {
549
		this.doaFlag = doaFlag;
550
	}
551
	public int getPickupRequestNumber() {
552
		return pickupRequestNumber;
553
	}
554
	public void setPickupRequestNumber(int pickupRequestNumber) {
555
		this.pickupRequestNumber = pickupRequestNumber;
556
	}
557
	public int getNewOrderId() {
558
		return newOrderId;
559
	}
560
	public void setNewOrderId(int newOrderId) {
561
		this.newOrderId = newOrderId;
562
	}
563
	public LocalDateTime getDoaAuthTimestamp() {
564
		return doaAuthTimestamp;
565
	}
566
	public void setDoaAuthTimestamp(LocalDateTime doaAuthTimestamp) {
567
		this.doaAuthTimestamp = doaAuthTimestamp;
568
	}
569
	public LocalDateTime getDoaPickupTimestamp() {
570
		return doaPickupTimestamp;
571
	}
572
	public void setDoaPickupTimestamp(LocalDateTime doaPickupTimestamp) {
573
		this.doaPickupTimestamp = doaPickupTimestamp;
574
	}
575
	public LocalDateTime getReceiverReturnTimestamp() {
576
		return receiverReturnTimestamp;
577
	}
578
	public void setReceiverReturnTimestamp(LocalDateTime receiverReturnTimestamp) {
579
		this.receiverReturnTimestamp = receiverReturnTimestamp;
580
	}
581
	public LocalDateTime getReShipTimestamp() {
582
		return reShipTimestamp;
583
	}
584
	public void setReShipTimestamp(LocalDateTime reShipTimestamp) {
585
		this.reShipTimestamp = reShipTimestamp;
586
	}
587
	public LocalDateTime getRefundTimestamp() {
588
		return refundTimestamp;
589
	}
590
	public void setRefundTimestamp(LocalDateTime refundTimestamp) {
591
		this.refundTimestamp = refundTimestamp;
592
	}
593
	public int getPurchaseOrderId() {
594
		return purchaseOrderId;
595
	}
596
	public void setPurchaseOrderId(int purchaseOrderId) {
597
		this.purchaseOrderId = purchaseOrderId;
598
	}
599
	public boolean isCod() {
600
		return cod;
601
	}
602
	public void setCod(boolean cod) {
603
		this.cod = cod;
604
	}
605
	public LocalDateTime getVerificationTimestamp() {
606
		return verificationTimestamp;
607
	}
608
	public void setVerificationTimestamp(LocalDateTime verificationTimestamp) {
609
		this.verificationTimestamp = verificationTimestamp;
610
	}
611
	public String getRefundBy() {
612
		return refundBy;
613
	}
614
	public void setRefundBy(String refundBy) {
615
		this.refundBy = refundBy;
616
	}
617
	public String getRefundReason() {
618
		return refundReason;
619
	}
620
	public void setRefundReason(String refundReason) {
621
		this.refundReason = refundReason;
622
	}
623
	public DelayReason getDelayReason() {
624
		return delayReason;
625
	}
626
	public void setDelayReason(DelayReason delayReason) {
627
		this.delayReason = delayReason;
628
	}
629
	public LocalDateTime getCodReconciliationTimestamp() {
630
		return codReconciliationTimestamp;
631
	}
632
	public void setCodReconciliationTimestamp(LocalDateTime codReconciliationTimestamp) {
633
		this.codReconciliationTimestamp = codReconciliationTimestamp;
634
	}
635
	public int getPreviousStatus() {
636
		return previousStatus;
637
	}
638
	public void setPreviousStatus(int previousStatus) {
639
		this.previousStatus = previousStatus;
640
	}
641
	public int getVendorId() {
642
		return vendorId;
643
	}
644
	public void setVendorId(int vendorId) {
645
		this.vendorId = vendorId;
646
	}
647
	public String getDelayReasonText() {
648
		return delayReasonText;
649
	}
650
	public void setDelayReasonText(String delayReasonText) {
651
		this.delayReasonText = delayReasonText;
652
	}
653
	public int getDoaLogisticsProviderId() {
654
		return doaLogisticsProviderId;
655
	}
656
	public void setDoaLogisticsProviderId(int doaLogisticsProviderId) {
657
		this.doaLogisticsProviderId = doaLogisticsProviderId;
658
	}
659
	public boolean isVendorPaid() {
660
		return vendorPaid;
661
	}
662
	public void setVendorPaid(boolean vendorPaid) {
663
		this.vendorPaid = vendorPaid;
664
	}
665
	public LocalDateTime getLocalConnectedTimestamp() {
666
		return localConnectedTimestamp;
667
	}
668
	public void setLocalConnectedTimestamp(LocalDateTime localConnectedTimestamp) {
669
		this.localConnectedTimestamp = localConnectedTimestamp;
670
	}
671
	public LocalDateTime getReachedDestinationTimestamp() {
672
		return reachedDestinationTimestamp;
673
	}
674
	public void setReachedDestinationTimestamp(LocalDateTime reachedDestinationTimestamp) {
675
		this.reachedDestinationTimestamp = reachedDestinationTimestamp;
676
	}
677
	public LocalDateTime getFirstDlvyatmpTimestamp() {
678
		return firstDlvyatmpTimestamp;
679
	}
680
	public void setFirstDlvyatmpTimestamp(LocalDateTime firstDlvyatmpTimestamp) {
681
		this.firstDlvyatmpTimestamp = firstDlvyatmpTimestamp;
682
	}
683
	public int getOriginalOrderId() {
684
		return originalOrderId;
685
	}
686
	public void setOriginalOrderId(int originalOrderId) {
687
		this.originalOrderId = originalOrderId;
688
	}
689
	public int getFulfilmentWarehouseId() {
690
		return fulfilmentWarehouseId;
691
	}
692
	public void setFulfilmentWarehouseId(int fulfilmentWarehouseId) {
693
		this.fulfilmentWarehouseId = fulfilmentWarehouseId;
694
	}
695
	public int getOrderType() {
696
		return orderType;
697
	}
698
	public void setOrderType(int orderType) {
699
		this.orderType = orderType;
700
	}
701
	public int getPickupStoreId() {
702
		return pickupStoreId;
703
	}
704
	public void setPickupStoreId(int pickupStoreId) {
705
		this.pickupStoreId = pickupStoreId;
706
	}
707
	public boolean isOtg() {
708
		return otg;
709
	}
710
	public void setOtg(boolean otg) {
711
		this.otg = otg;
712
	}
713
	public LocalDateTime getCourierDeliveryTimestamp() {
714
		return courierDeliveryTimestamp;
715
	}
716
	public void setCourierDeliveryTimestamp(LocalDateTime courierDeliveryTimestamp) {
717
		this.courierDeliveryTimestamp = courierDeliveryTimestamp;
718
	}
719
	public int getInsurer() {
720
		return insurer;
721
	}
722
	public void setInsurer(int insurer) {
723
		this.insurer = insurer;
724
	}
725
	public float getInsuranceAmount() {
726
		return insuranceAmount;
727
	}
728
	public void setInsuranceAmount(float insuranceAmount) {
729
		this.insuranceAmount = insuranceAmount;
730
	}
731
	public int getFreebieItemId() {
732
		return freebieItemId;
733
	}
734
	public void setFreebieItemId(int freebieItemId) {
735
		this.freebieItemId = freebieItemId;
736
	}
737
	public int getSource() {
738
		return source;
739
	}
740
	public void setSource(int source) {
741
		this.source = source;
742
	}
743
	public float getAdvanceAmount() {
744
		return advanceAmount;
745
	}
746
	public void setAdvanceAmount(float advanceAmount) {
747
		this.advanceAmount = advanceAmount;
748
	}
749
	public int getStoreId() {
750
		return storeId;
751
	}
752
	public void setStoreId(int storeId) {
753
		this.storeId = storeId;
754
	}
755
	public int getProductCondition() {
756
		return productCondition;
757
	}
758
	public void setProductCondition(int productCondition) {
759
		this.productCondition = productCondition;
760
	}
761
	public int getDataProtectionInsurer() {
762
		return dataProtectionInsurer;
763
	}
764
	public void setDataProtectionInsurer(int dataProtectionInsurer) {
765
		this.dataProtectionInsurer = dataProtectionInsurer;
766
	}
767
	public int getDataProtectionAmount() {
768
		return dataProtectionAmount;
769
	}
770
	public void setDataProtectionAmount(int dataProtectionAmount) {
771
		this.dataProtectionAmount = dataProtectionAmount;
772
	}
773
	public TaxType getTaxType() {
774
		return taxType;
775
	}
776
	public void setTaxType(TaxType taxType) {
777
		this.taxType = taxType;
778
	}
779
	public String getLogisticsTransactionId() {
780
		return logisticsTransactionId;
781
	}
782
	public void setLogisticsTransactionId(String logisticsTransactionId) {
783
		this.logisticsTransactionId = logisticsTransactionId;
784
	}
785
	public float getShippingCost() {
786
		return shippingCost;
787
	}
788
	public void setShippingCost(float shippingCost) {
789
		this.shippingCost = shippingCost;
790
	}
791
	public float getCodCharges() {
792
		return codCharges;
793
	}
794
	public void setCodCharges(float codCharges) {
795
		this.codCharges = codCharges;
796
	}
797
	public float getWalletAmount() {
798
		return walletAmount;
799
	}
800
	public void setWalletAmount(float walletAmount) {
801
		this.walletAmount = walletAmount;
802
	}
803
	public float getNetPayableAmount() {
804
		return netPayableAmount;
805
	}
806
	public void setNetPayableAmount(float netPayableAmount) {
807
		this.netPayableAmount = netPayableAmount;
808
	}
809
	public float getShippingRefund() {
810
		return shippingRefund;
811
	}
812
	public void setShippingRefund(float shippingRefund) {
813
		this.shippingRefund = shippingRefund;
814
	}
815
	@Override
816
	public String toString() {
817
		return "Order [id=" + id + ", warehouseId=" + warehouseId + ", sellerId=" + sellerId + ", warehouseAddressId="
818
				+ warehouseAddressId + ", logisticsProviderId=" + logisticsProviderId + ", airwayBillNumber="
819
				+ airwayBillNumber + ", trackingId=" + trackingId + ", expectedDeliveryTime=" + expectedDeliveryTime
820
				+ ", promisedDeliveryTime=" + promisedDeliveryTime + ", expectedShippingTime=" + expectedShippingTime
821
				+ ", promisedShippingTime=" + promisedShippingTime + ", retailerId=" + retailerId + ", retailerName="
822
				+ retailerName + ", retailerMobileNumber=" + retailerMobileNumber + ", retailerPinCode="
823
				+ retailerPinCode + ", retailerAddress1=" + retailerAddress1 + ", retailerAddress2=" + retailerAddress2
824
				+ ", retailerCity=" + retailerCity + ", retailerState=" + retailerState + ", retailerEmailId="
825
				+ retailerEmailId + ", status=" + status + ", statusDescription=" + statusDescription + ", totalAmount="
826
				+ totalAmount + ", gvAmount=" + gvAmount + ", totalWeight=" + totalWeight + ", invoiceNumber="
827
				+ invoiceNumber + ", billedBy=" + billedBy + ", createTimestamp=" + createTimestamp
828
				+ ", acceptedTimestamp=" + acceptedTimestamp + ", billingTimestamp=" + billingTimestamp
829
				+ ", shippingTimestamp=" + shippingTimestamp + ", pickupTimestamp=" + pickupTimestamp
830
				+ ", deliveryTimestamp=" + deliveryTimestamp + ", outOfStockTimestamp=" + outOfStockTimestamp
831
				+ ", jacketNumber=" + jacketNumber + ", receiver=" + receiver
832
				+ ", batchNumber=" + batchNumber + ", serialNumber=" + serialNumber + ", doaFlag=" + doaFlag
833
				+ ", pickupRequestNumber=" + pickupRequestNumber + ", newOrderId=" + newOrderId + ", doaAuthTimestamp="
834
				+ doaAuthTimestamp + ", doaPickupTimestamp=" + doaPickupTimestamp + ", receiverReturnTimestamp="
835
				+ receiverReturnTimestamp + ", reShipTimestamp=" + reShipTimestamp + ", refundTimestamp="
836
				+ refundTimestamp + ", purchaseOrderId=" + purchaseOrderId + ", cod=" + cod + ", verificationTimestamp="
837
				+ verificationTimestamp + ", refundBy=" + refundBy + ", refundReason=" + refundReason + ", delayReason="
838
				+ delayReason + ", codReconciliationTimestamp=" + codReconciliationTimestamp + ", previousStatus="
839
				+ previousStatus + ", vendorId=" + vendorId + ", delayReasonText=" + delayReasonText
840
				+ ", doaLogisticsProviderId=" + doaLogisticsProviderId + ", vendorPaid=" + vendorPaid
841
				+ ", localConnectedTimestamp=" + localConnectedTimestamp + ", reachedDestinationTimestamp="
842
				+ reachedDestinationTimestamp + ", firstDlvyatmpTimestamp=" + firstDlvyatmpTimestamp
843
				+ ", originalOrderId=" + originalOrderId + ", fulfilmentWarehouseId=" + fulfilmentWarehouseId
844
				+ ", orderType=" + orderType + ", pickupStoreId=" + pickupStoreId + ", otg=" + otg
845
				+ ", courierDeliveryTimestamp=" + courierDeliveryTimestamp + ", insurer=" + insurer
846
				+ ", insuranceAmount=" + insuranceAmount + ", freebieItemId=" + freebieItemId + ", source=" + source
847
				+ ", advanceAmount=" + advanceAmount + ", storeId=" + storeId + ", productCondition=" + productCondition
848
				+ ", dataProtectionInsurer=" + dataProtectionInsurer + ", dataProtectionAmount=" + dataProtectionAmount
849
				+ ", taxType=" + taxType + ", logisticsTransactionId=" + logisticsTransactionId + ", shippingCost="
850
				+ shippingCost + ", codCharges=" + codCharges + ", walletAmount=" + walletAmount + ", netPayableAmount="
851
				+ netPayableAmount + ", shippingRefund=" + shippingRefund + "]";
852
	}
853
 
854
 
855
 
856
 
857
}