Subversion Repositories SmartDukaan

Rev

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

Rev 4444 Rev 4452
Line 27... Line 27...
27
	COMPLETED,                  //Not Used
27
	COMPLETED,                  //Not Used
28
	CANCELED,
28
	CANCELED,
29
	FAILED,
29
	FAILED,
30
	SALES_RETURN_IN_TRANSIT,
30
	SALES_RETURN_IN_TRANSIT,
31
	SALES_RET_RECEIVED,
31
	SALES_RET_RECEIVED,
32
	DOA_PICKUP_REQUESTED,
32
	DOA_PICKUP_REQUEST_RAISED,
33
	DOA_RETURN_AUTHORIZED,
33
	DOA_PICKUP_CONFIRMED,
34
	DOA_RETURN_IN_TRANSIT,
34
	DOA_RETURN_IN_TRANSIT,
35
	DOA_RECEIVED,
35
	DOA_RECEIVED_PRESTINE,
36
	DOA_CERT_INVALID,
36
	DOA_CERT_INVALID,
37
	DOA_CERT_VALID,
37
	DOA_CERT_VALID,
38
	SALES_RET_RESHIPPED,
38
	SALES_RET_RESHIPPED,
39
	DOA_INVALID_RESHIPPED,
39
	DOA_INVALID_RESHIPPED,
40
	DOA_RESHIPPED,
40
	DOA_VALID_RESHIPPED,
41
	SALES_RET_REFUNDED,
41
	SALES_RET_REFUNDED,
42
	DOA_VALID_REFUNDED,
42
	DOA_VALID_REFUNDED,
43
	DOA_INVALID_REFUNDED,
43
	DOA_INVALID_REFUNDED,
44
	REFUNDED,
44
	REFUNDED,
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
	MANIFESTED,
51
	CAPTURE_IN_PROCESS
51
	CAPTURE_IN_PROCESS,
-
 
52
	DOA_REQUEST_RECEIVED,
-
 
53
	DOA_REQUEST_AUTHORIZED,
-
 
54
	DOA_PICKUP_DENIED,
-
 
55
	DOA_RECEIVED_DAMAGED,
-
 
56
	DOA_LOST_IN_TRANSIT,
52
}
57
}
53
 
58
 
54
 
59
 
55
enum TransactionStatus{
60
enum TransactionStatus{
56
	INIT,
61
	INIT,
Line 438... Line 443...
438
	*/
443
	*/
439
	bool toggleDOAFlag(1:i64 orderId) throws (1:TransactionServiceException ex),
444
	bool toggleDOAFlag(1:i64 orderId) throws (1:TransactionServiceException ex),
440
	
445
	
441
	/**
446
	/**
442
	Sends out an email to the account manager of the original courier provider used to ship the order.
447
	Sends out an email to the account manager of the original courier provider used to ship the order.
443
	If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
448
	If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
444
	If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
449
	If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
445
	For any other status, it returns false.
450
	For any other status, it returns false.
446
	Throws an exception if the order with the given id couldn't be found.
451
	Throws an exception if the order with the given id couldn't be found.
447
	*/
452
	*/
448
	bool requestPickupNumber(1:i64 orderId) throws (1:TransactionServiceException ex),
453
	bool requestPickupNumber(1:i64 orderId) throws (1:TransactionServiceException ex),
449
	
454
	
450
	/**
455
	/**
451
	If the order status is DOA_PICKUP_REQUESTED, it does the following
456
	If the order status is DOA_PICKUP_REQUEST_RAISED, it does the following
452
		1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
457
		1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
453
		2. Changes order status to be DOA_PICKUP_AUTHORIZED.
458
		2. Changes order status to be DOA_PICKUP_AUTHORIZED.
454
		3. Returns true
459
		3. Returns true
455
	If the order is in any other status, it returns false.
460
	If the order is in any other status, it returns false.
456
	Throws an exception if the order with the given id couldn't be found.
461
	Throws an exception if the order with the given id couldn't be found.
Line 462... Line 467...
462
	Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
467
	Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
463
	*/
468
	*/
464
	list<Order> markDoasAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
469
	list<Order> markDoasAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
465
	
470
	
466
	/**
471
	/**
467
	If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
472
	If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
468
	If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
473
	If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
469
	If the order is in any other state, it returns false.
474
	If the order is in any other state, it returns false.
470
	Throws an exception if the order with the given id couldn't be found.
475
	Throws an exception if the order with the given id couldn't be found.
471
	*/
476
	*/
472
	bool receiveReturn(1:i64 orderId) throws (1:TransactionServiceException ex),
477
	bool receiveReturn(1:i64 orderId) throws (1:TransactionServiceException ex),
473
	
478
	
474
	/**
479
	/**
475
	Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
480
	Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,
476
	the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
481
	the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
477
	If the order is in any other state, it returns false.
482
	If the order is in any other state, it returns false.
478
	Throws an exception if the order with the given id couldn't be found.
483
	Throws an exception if the order with the given id couldn't be found.
479
	*/
484
	*/
480
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),
485
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),
Line 485... Line 490...
485
		2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
490
		2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
486
		
491
		
487
	If the order is in DOA_CERT_VALID state, it does the following:
492
	If the order is in DOA_CERT_VALID state, it does the following:
488
		1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
493
		1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
489
		2. Creates a return order for the warehouse executive to return the DOA material.
494
		2. Creates a return order for the warehouse executive to return the DOA material.
490
		3. Marks the current order as the final DOA_RESHIPPED state.
495
		3. Marks the current order as the final DOA_VALID_RESHIPPED state.
491
	
496
	
492
	Returns the id of the newly created order.
497
	Returns the id of the newly created order.
493
	
498
	
494
	Throws an exception if the order with the given id couldn't be found.
499
	Throws an exception if the order with the given id couldn't be found.
495
	*/
500
	*/