Subversion Repositories SmartDukaan

Rev

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

Rev 2537 Rev 2589
Line 319... Line 319...
319
	/**
319
	/**
320
	If the order status is DOA_PICKUP_REQUESTED, it does the following
320
	If the order status is DOA_PICKUP_REQUESTED, it does the following
321
		1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
321
		1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
322
		2. Changes order status to be DOA_PICKUP_AUTHORIZED.
322
		2. Changes order status to be DOA_PICKUP_AUTHORIZED.
323
		3. Returns true
323
		3. Returns true
324
	If the order is any other status, it returns false.
324
	If the order is in any other status, it returns false.
325
	Throws an exception if the order with the given id couldn't be found.
325
	Throws an exception if the order with the given id couldn't be found.
326
	*/
326
	*/
327
	bool authorizePickup(1:i64 orderId, 2:string pickupNumber) throws (1:TransactionServiceException ex),
327
	bool authorizePickup(1:i64 orderId, 2:string pickupNumber) throws (1:TransactionServiceException ex),
-
 
328
	
-
 
329
	/**
-
 
330
	If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RETURNED and returns true.
-
 
331
	If the order is in any other state, it returns false.
-
 
332
	Throws an exception if the order with the given id couldn't be found.
-
 
333
	*/
-
 
334
	bool acceptDoa(1:i64 orderId) throws (1:TransactionServiceException ex),
-
 
335
	
-
 
336
	/**
-
 
337
	Used to validate the DOA certificate for an order in the DOA_RETURNED state. If the certificate is valid,
-
 
338
	the order state is changed to DOA_PENDING.
-
 
339
	If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
-
 
340
	If the order is in any other state, it returns false.
-
 
341
	Throws an exception if the order with the given id couldn't be found.
-
 
342
	*/
-
 
343
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),
328
}
344
}
329
345