Subversion Repositories SmartDukaan

Rev

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

Rev 3274 Rev 3374
Line 1... Line 1...
1
namespace java in.shop2020.payments
1
namespace java in.shop2020.payments
2
namespace py shop2020.thriftpy.payments
2
namespace py shop2020.thriftpy.payments
3
 
3
 
-
 
4
include "GenericService.thrift"
-
 
5
 
4
/**
6
/**
5
Various structures
7
Various structures
6
**/
8
**/
7
enum PaymentGatewayStatus{
9
enum PaymentGatewayStatus{
8
	AVAILABLE,
10
	AVAILABLE,
Line 108... Line 110...
108
exception PaymentException{
110
exception PaymentException{
109
	1:i64 error_code,
111
	1:i64 error_code,
110
	2:string message
112
	2:string message
111
}
113
}
112
 
114
 
113
service PaymentService{
115
service PaymentService extends GenericService.GenericService{
114
	/**
-
 
115
	* For closing the open session in sqlalchemy
-
 
116
	*/
-
 
117
	void closeSession(),
-
 
118
 
-
 
119
	/**
116
	/**
120
	*	create a new payment and return payment id, throws an exception if gateway is not active
117
	*	create a new payment and return payment id, throws an exception if gateway is not active
121
	**/
118
	**/
122
	i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId) throws (1:PaymentException pe),
119
	i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId) throws (1:PaymentException pe),
123
	
120