Subversion Repositories SmartDukaan

Rev

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

Rev 2589 Rev 2600
Line 28... Line 28...
28
	SALES_RETURNED,
28
	SALES_RETURNED,
29
	SALES_RET_PENDING,
29
	SALES_RET_PENDING,
30
	DOA_PICKUP_REQUESTED,
30
	DOA_PICKUP_REQUESTED,
31
	DOA_RETURN_AUTHORIZED,
31
	DOA_RETURN_AUTHORIZED,
32
	DOA_RETURN_IN_TRANSIT,
32
	DOA_RETURN_IN_TRANSIT,
33
	DOA_RETURNED,
33
	DOA_RECEIVED,
34
	DOA_CERT_INVALID,
34
	DOA_CERT_INVALID,
35
	DOA_PENDING
35
	DOA_PENDING
36
}
36
}
37
 
37
 
38
enum TransactionStatus{
38
enum TransactionStatus{
Line 325... Line 325...
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
	
328
	
329
	/**
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.
330
	If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
331
	If the order is in any other state, it returns false.
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.
332
	Throws an exception if the order with the given id couldn't be found.
333
	*/
333
	*/
334
	bool acceptDoa(1:i64 orderId) throws (1:TransactionServiceException ex),
334
	bool acceptDoa(1:i64 orderId) throws (1:TransactionServiceException ex),
335
	
335
	
336
	/**
336
	/**
337
	Used to validate the DOA certificate for an order in the DOA_RETURNED state. If the certificate is valid,
337
	Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
338
	the order state is changed to DOA_PENDING.
338
	the order state is changed to DOA_PENDING.
339
	If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
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.
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.
341
	Throws an exception if the order with the given id couldn't be found.
342
	*/
342
	*/