Subversion Repositories SmartDukaan

Rev

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

Rev 2600 Rev 2611
Line 23... Line 23...
23
	DELIVERY_FAILED_WORNG_ADDRESS
23
	DELIVERY_FAILED_WORNG_ADDRESS
24
	COMPLETED,
24
	COMPLETED,
25
	CANCELED,
25
	CANCELED,
26
	FAILED,
26
	FAILED,
27
	SALES_RETURN_IN_TRANSIT,
27
	SALES_RETURN_IN_TRANSIT,
28
	SALES_RETURNED,
28
	SALES_RET_RECEIVED,
29
	SALES_RET_PENDING,
29
	SALES_RET_RESHIPPED,
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_RECEIVED,
33
	DOA_RECEIVED,
34
	DOA_CERT_INVALID,
34
	DOA_CERT_INVALID,
35
	DOA_PENDING
35
	DOA_CERT_VALID
36
}
36
}
37
 
37
 
38
enum TransactionStatus{
38
enum TransactionStatus{
39
	INIT,
39
	INIT,
40
	IN_PROCESS,
40
	IN_PROCESS,
Line 333... Line 333...
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_RECEIVED 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_CERT_VALID.
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
	*/
343
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),
343
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),