Subversion Repositories SmartDukaan

Rev

Rev 4905 | Rev 4983 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4905 Rev 4910
Line 21... Line 21...
21
	PAYMENT_FLAGGED_DENIED,      
21
	PAYMENT_FLAGGED_DENIED,      
22
	DELIVERY_SUCCESS,
22
	DELIVERY_SUCCESS,
23
	CANCEL_REQUEST_RECEIVED,
23
	CANCEL_REQUEST_RECEIVED,
24
	CANCEL_REQUEST_CONFIRMED,
24
	CANCEL_REQUEST_CONFIRMED,
25
	CANCELLED_ON_CUSTOMER_REQUEST,
25
	CANCELLED_ON_CUSTOMER_REQUEST,
26
	NOT_USABLE,
26
	SHIPPED_TO_DESTINATION_CITY,
27
	COMPLETED,                  //Not Used
27
	REACHED_DESTINATION_CITY,
28
	COD_VERIFICATION_FAILED,
28
	COD_VERIFICATION_FAILED,
29
	FAILED,
29
	FAILED,
30
	RTO_IN_TRANSIT,
30
	RTO_IN_TRANSIT,
31
	RTO_RECEIVED_PRESTINE,
31
	RTO_RECEIVED_PRESTINE,
32
	DOA_PICKUP_REQUEST_RAISED,
32
	DOA_PICKUP_REQUEST_RAISED,
Line 45... Line 45...
45
	LOW_INV_PO_RAISED,
45
	LOW_INV_PO_RAISED,
46
	LOW_INV_REVERSAL_IN_PROCESS,
46
	LOW_INV_REVERSAL_IN_PROCESS,
47
	LOW_INV_NOT_AVAILABLE_AT_HOTSPOT,
47
	LOW_INV_NOT_AVAILABLE_AT_HOTSPOT,
48
	LOW_INV_PO_RAISED_TIMEOUT,
48
	LOW_INV_PO_RAISED_TIMEOUT,
49
	LOW_INV_REVERSAL_TIMEOUT,
49
	LOW_INV_REVERSAL_TIMEOUT,
50
	MANIFESTED,
50
	FIRST_DELIVERY_ATTEMPT_MADE,
51
	CAPTURE_IN_PROCESS,
51
	CAPTURE_IN_PROCESS,
52
	DOA_REQUEST_RECEIVED,
52
	DOA_REQUEST_RECEIVED,
53
	DOA_REQUEST_AUTHORIZED,
53
	DOA_REQUEST_AUTHORIZED,
54
	DOA_PICKUP_DENIED,
54
	DOA_PICKUP_DENIED,
55
	DOA_RECEIVED_DAMAGED,
55
	DOA_RECEIVED_DAMAGED,
Line 331... Line 331...
331
										OrderStatus.PAYMENT_PENDING,			OrderStatus.COD_VERIFICATION_PENDING,
331
										OrderStatus.PAYMENT_PENDING,			OrderStatus.COD_VERIFICATION_PENDING,
332
										OrderStatus.SUBMITTED_FOR_PROCESSING,	OrderStatus.ACCEPTED,
332
										OrderStatus.SUBMITTED_FOR_PROCESSING,	OrderStatus.ACCEPTED,
333
										OrderStatus.INVENTORY_LOW,				OrderStatus.BILLED,
333
										OrderStatus.INVENTORY_LOW,				OrderStatus.BILLED,
334
										OrderStatus.PAYMENT_FLAGGED,			OrderStatus.SHIPPED_FROM_WH,
334
										OrderStatus.PAYMENT_FLAGGED,			OrderStatus.SHIPPED_FROM_WH,
335
										OrderStatus.SHIPPED_TO_LOGST,			OrderStatus.PAYMENT_FLAGGED_DENIED,
335
										OrderStatus.SHIPPED_TO_LOGST,			OrderStatus.PAYMENT_FLAGGED_DENIED,
-
 
336
										OrderStatus.SHIPPED_TO_DESTINATION_CITY,	OrderStatus.REACHED_DESTINATION_CITY,
336
										OrderStatus.CANCEL_REQUEST_RECEIVED,	OrderStatus.CANCEL_REQUEST_CONFIRMED,
337
										OrderStatus.CANCEL_REQUEST_RECEIVED,	OrderStatus.CANCEL_REQUEST_CONFIRMED,
337
										OrderStatus.RTO_IN_TRANSIT,				OrderStatus.RTO_RECEIVED_PRESTINE,
338
										OrderStatus.RTO_IN_TRANSIT,				OrderStatus.RTO_RECEIVED_PRESTINE,
338
										OrderStatus.DOA_PICKUP_REQUEST_RAISED,	OrderStatus.DOA_PICKUP_CONFIRMED,
339
										OrderStatus.DOA_PICKUP_REQUEST_RAISED,	OrderStatus.DOA_PICKUP_CONFIRMED,
339
										OrderStatus.DOA_RETURN_IN_TRANSIT,		OrderStatus.DOA_RECEIVED_PRESTINE,
340
										OrderStatus.DOA_RETURN_IN_TRANSIT,		OrderStatus.DOA_RECEIVED_PRESTINE,
340
										OrderStatus.DOA_CERT_INVALID,			OrderStatus.DOA_CERT_VALID,
341
										OrderStatus.DOA_CERT_INVALID,			OrderStatus.DOA_CERT_VALID,
341
										OrderStatus.LOW_INV_PO_RAISED,			OrderStatus.LOW_INV_REVERSAL_IN_PROCESS,
342
										OrderStatus.LOW_INV_PO_RAISED,			OrderStatus.LOW_INV_REVERSAL_IN_PROCESS,
342
										OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT,	OrderStatus.LOW_INV_PO_RAISED_TIMEOUT,
343
										OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT,	OrderStatus.LOW_INV_PO_RAISED_TIMEOUT,
343
										OrderStatus.LOW_INV_REVERSAL_TIMEOUT,	OrderStatus.MANIFESTED,
344
										OrderStatus.LOW_INV_REVERSAL_TIMEOUT,	OrderStatus.FIRST_DELIVERY_ATTEMPT_MADE,
344
										OrderStatus.CAPTURE_IN_PROCESS,			OrderStatus.DOA_REQUEST_RECEIVED,
345
										OrderStatus.CAPTURE_IN_PROCESS,			OrderStatus.DOA_REQUEST_RECEIVED,
345
										OrderStatus.DOA_REQUEST_AUTHORIZED,		OrderStatus.DOA_RECEIVED_DAMAGED,
346
										OrderStatus.DOA_REQUEST_AUTHORIZED,		OrderStatus.DOA_RECEIVED_DAMAGED,
346
										OrderStatus.DOA_LOST_IN_TRANSIT,		OrderStatus.RTO_RECEIVED_DAMAGED,
347
										OrderStatus.DOA_LOST_IN_TRANSIT,		OrderStatus.RTO_RECEIVED_DAMAGED,
347
										OrderStatus.RTO_LOST_IN_TRANSIT,		OrderStatus.RTO_INVENTORY_REVERSED,
348
										OrderStatus.RTO_LOST_IN_TRANSIT,		OrderStatus.RTO_INVENTORY_REVERSED,
348
										OrderStatus.RET_REQUEST_RECEIVED,		OrderStatus.RET_REQUEST_AUTHORIZED,
349
										OrderStatus.RET_REQUEST_RECEIVED,		OrderStatus.RET_REQUEST_AUTHORIZED,
Line 494... Line 495...
494
 
495
 
495
	/**
496
	/**
496
	Add the invoice number to the order.
497
	Add the invoice number to the order.
497
	*/	
498
	*/	
498
	void addInvoiceNumber(1:i64 orderId, 2:string invoiceNumber, 3:string color) throws (1:TransactionServiceException ex),
499
	void addInvoiceNumber(1:i64 orderId, 2:string invoiceNumber, 3:string color) throws (1:TransactionServiceException ex),
499
		
500
	
500
	/**
501
	/**
501
	Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
502
	Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
502
	given warehouse and were picked up by the given provider as MANIFESTED.
-
 
503
	*/
-
 
504
	bool markOrdersAsManifested(1:i64 warehouseId, 2:i64 providerId, 3:bool cod) throws (1:TransactionServiceException ex),
-
 
505
 
-
 
506
	/**
-
 
507
	Depending on the third parameter, marks either all prepaid or all cod orders BILLED and marked as MANIFESTED by the
-
 
508
	given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
503
	given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
509
	*/
504
	*/
510
	bool markOrdersAsShippedFromWarehouse(1:i64 warehouseId, 2:i64 providerId, 3:bool cod, 4:list<i64> orderIds) throws (1:TransactionServiceException ex),
505
	bool markOrdersAsShippedFromWarehouse(1:i64 warehouseId, 2:i64 providerId, 3:bool cod, 4:list<i64> orderIds) throws (1:TransactionServiceException ex),
511
		
506
		
512
	/**
507
	/**
513
	Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
508
	Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
-
 
509
	Raises an exception if we encounter report for an AWB number that we did not ship.	
-
 
510
	*/
-
 
511
	void markOrdersAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails) throws (1:TransactionServiceException ex),
-
 
512
	
-
 
513
	/**
514
	Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
514
	Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
515
	Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
516
	*/
515
	*/
517
	list<Order> markOrdersAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails) throws (1:TransactionServiceException ex),
516
	list<Order> getOrdersNotPickedUp(1:i64 providerId),
518
	
517
	
519
	/**
518
	/**
520
	Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
519
	Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
521
	the name of the receiver.
520
	the name of the receiver.
522
	Raises an exception if we encounter report for an AWB number that we did not ship.
521
	Raises an exception if we encounter report for an AWB number that we did not ship.
523
	*/
522
	*/
524
	void markOrdersAsDelivered(1:i64 providerId, 2:map<string, string> deliveredOrders) throws (1:TransactionServiceException ex),
523
	void markOrdersAsDelivered(1:i64 providerId, 2:map<string, string> deliveredOrders) throws (1:TransactionServiceException ex),
525
	
524
	
526
	/**
525
	/**
527
	Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
526
	Mark all orders with AWBs in the given map as RTO. Also sets the delivery timestamp.
528
	Raises an exception if we encounter report for an AWB number that we did not ship.
527
	Raises an exception if we encounter report for an AWB number that we did not ship.
529
	*/
528
	*/
530
	void markOrdersAsFailed(1:i64 providerId, 2:map<string, string> returnedOrders) throws (1:TransactionServiceException ex),
529
	void markAsRTOrders(1:i64 providerId, 2:map<string, string> returnedOrders) throws (1:TransactionServiceException ex),
-
 
530
	
-
 
531
	/**
-
 
532
	Returns a list of orders that were returned by courier.
-
 
533
	*/
-
 
534
	list<Order> getRTOrders(1:i64 providerId),
531
	
535
	
532
	/**
536
	/**
533
	Update the status description of orders whose AWB numbers are keys of the Map.
537
	Update the status description of orders whose AWB numbers are keys of the Map.
-
 
538
	*/
-
 
539
	void updateNonDeliveryReason(1:i64 providerId, 2:map<string, string> undeliveredOrders) throws (1:TransactionServiceException ex),
-
 
540
	
-
 
541
	/**
534
	Returns a list of orders that were picked up or shipped four days ago but did not get delivered.
542
	Returns a list of orders that were picked up or shipped four days ago but did not get delivered.
535
	*/
543
	*/
-
 
544
	list<Order> getNonDeliveredOrdersbyCourier(1:i64 providerId),
-
 
545
	
-
 
546
	/**
-
 
547
	Mark all orders with AWBs in the given map as local connected. Also sets the local connected timestamp.
-
 
548
	*/
-
 
549
	void markOrdersAsLocalConnected(1:i64 providerId, 2:map<string, string> local_connected_orders) throws (1:TransactionServiceException ex),
-
 
550
	
-
 
551
	/**
-
 
552
	Returns a list of orders that were picked up or shipped but pending local connection.
-
 
553
	*/
-
 
554
	list<Order> getOrdersNotLocalConnected(1:i64 providerId),
-
 
555
	
-
 
556
	/**
-
 
557
	Mark all orders with AWBs in the given map as reached destination city. Also sets the reached destination timestamp.
-
 
558
	*/
-
 
559
	void markOrdersAsDestinationCityReached(1:i64 providerId, 2:map<string, string> destination_city_reached_orders) throws (1:TransactionServiceException ex),
-
 
560
	
-
 
561
	/**
-
 
562
	Mark all orders with AWBs in the given map as first delivery attempt made. Also sets the first delivery attempted timestamp.
-
 
563
	*/
536
	list<Order> updateNonDeliveryReason(1:i64 providerId, 2:map<string, string> undeliveredOrders) throws (1:TransactionServiceException ex),
564
	void markOrdersAsFirstDeliveryAttempted(1:i64 providerId, 2:map<string, string> first_atdl_orders) throws (1:TransactionServiceException ex),
537
	
565
	
538
	/**
566
	/**
539
	Returns the list of orders whose delivery time has passed but have not been
567
	Returns the list of orders whose delivery time has passed but have not been
540
	delivered yet for the given provider and warehouse. To get a complete list of
568
	delivered yet for the given provider and warehouse. To get a complete list of
541
	undelivered orders, pass them as -1. 
569
	undelivered orders, pass them as -1. 
Line 600... Line 628...
600
	*/
628
	*/
601
	bool authorizePickup(1:i64 orderId, 2:string pickupNumber, 3:i64 providerId) throws (1:TransactionServiceException ex),
629
	bool authorizePickup(1:i64 orderId, 2:string pickupNumber, 3:i64 providerId) throws (1:TransactionServiceException ex),
602
	
630
	
603
	/**
631
	/**
604
	Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
632
	Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
-
 
633
	*/
-
 
634
	void markDoasAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
-
 
635
	
-
 
636
	/**
605
	Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
637
	Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
606
	*/
638
	*/
607
	list<Order> markDoasAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
639
	list<Order> getDoasNotPickedUp(1:i64 providerId),
608
	
640
	
609
	/**
641
	/**
610
	Marks all RET_PICKUP_CONFIRMED orders of the previous day for a provider as RET_RETURN_IN_TRANSIT.
642
	Marks all RET_PICKUP_CONFIRMED orders of the previous day for a provider as RET_RETURN_IN_TRANSIT.
-
 
643
	*/
-
 
644
	void markReturnOrdersAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
-
 
645
	
-
 
646
	/**
611
	Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
647
	Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
612
	*/
648
	*/
613
	list<Order> markReturnOrdersAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
649
	list<Order> getReturnOrdersNotPickedUp(1:i64 providerId),
614
	
650
	
615
	/**
651
	/**
616
	If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
652
	If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
617
	If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.
653
	If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.
618
	If the order is in any other state, it returns false.
654
	If the order is in any other state, it returns false.
Line 808... Line 844...
808
	Returns the order corresponding to an AWB number
844
	Returns the order corresponding to an AWB number
809
	*/
845
	*/
810
	Order getOrderForAwb(1:string awb) throws (1:TransactionServiceException ex),
846
	Order getOrderForAwb(1:string awb) throws (1:TransactionServiceException ex),
811
	
847
	
812
	/**
848
	/**
813
	Returns the order corresponding to a logistics provider id for a given order status
849
	Returns the order corresponding to a logistics provider id for a given list of order status
814
	*/
850
	*/
815
	list<Order> getOrdersForProviderForStatus(1:i64 logistics_provider_id, 2:OrderStatus order_status) throws (1:TransactionServiceException ex)
851
	list<Order> getOrdersForProviderForStatus(1:i64 logistics_provider_id, 2:list<OrderStatus> order_status_list) throws (1:TransactionServiceException ex)
816
	
852
	
817
	/**
853
	/**
818
	Returns list of orders fullfiled from a certain vendor and billed in a given date range
854
	Returns list of orders fullfiled from a certain vendor and billed in a given date range
819
	*/
855
	*/
820
	list<Order> getBilledOrdersForVendor(1:i64 vendorId, 2:i64 billingDateFrom, 3:i64 billingDateTo) throws (1:TransactionServiceException ex),
856
	list<Order> getBilledOrdersForVendor(1:i64 vendorId, 2:i64 billingDateFrom, 3:i64 billingDateTo) throws (1:TransactionServiceException ex),