Subversion Repositories SmartDukaan

Rev

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

Rev 3226 Rev 3374
Line 1... Line 1...
1
namespace java in.shop2020.model.v1.order
1
namespace java in.shop2020.model.v1.order
2
namespace py shop2020.thriftpy.model.v1.order
2
namespace py shop2020.thriftpy.model.v1.order
-
 
3
 
-
 
4
include "GenericService.thrift"
-
 
5
 
3
/***
6
/***
4
	Order objects.
7
	Order objects.
5
*/
8
*/
6
enum OrderStatus{
9
enum OrderStatus{
7
	PAYMENT_PENDING,
10
	PAYMENT_PENDING,
Line 173... Line 176...
173
exception TransactionServiceException{
176
exception TransactionServiceException{
174
	1:i32 errorCode,
177
	1:i32 errorCode,
175
	2:string message
178
	2:string message
176
}
179
}
177
 
180
 
178
service TransactionService{
181
service TransactionService extends GenericService.GenericService{
179
	
-
 
180
	/**
-
 
181
	* For closing the open session in sqlalchemy
-
 
182
	*/
-
 
183
	void closeSession(),
-
 
184
	
182
	
185
	i64 createTransaction(1:Transaction transaction) throws (1:TransactionServiceException ex),
183
	i64 createTransaction(1:Transaction transaction) throws (1:TransactionServiceException ex),
186
	
184
	
187
	//	Get transaction methods.
185
	//	Get transaction methods.
188
	Transaction getTransaction(1:i64 id) throws (1:TransactionServiceException ex),
186
	Transaction getTransaction(1:i64 id) throws (1:TransactionServiceException ex),