Subversion Repositories SmartDukaan

Rev

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

Rev 4008 Rev 4141
Line 119... Line 119...
119
    FAILED_PAYMENTS
119
    FAILED_PAYMENTS
120
}
120
}
121
 
121
 
122
service PaymentService extends GenericService.GenericService{
122
service PaymentService extends GenericService.GenericService{
123
	/**
123
	/**
124
	*	create a new payment and return payment id, throws an exception if gateway is not active
124
	create a new payment and return payment id, throws an exception if gateway is not active
125
	**/
125
	*/
126
	i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId) throws (1:PaymentException pe),
126
	i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId) throws (1:PaymentException pe),
127
	
127
	
128
	/**
128
	/**
129
	* get payment for user. If status and gateway are null, it is ignored. Same for times as well.
129
	Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
130
	**/ 
130
	*/ 
131
	list<Payment> getPaymentsForUser(1:i64 userId, 2:i64 fromTime, 3:i64 toTime, 4:PaymentStatus status, 5:i64 gatewayId) throws (1:PaymentException pe),
131
	list<Payment> getPaymentsForUser(1:i64 userId, 2:i64 fromTime, 3:i64 toTime, 4:PaymentStatus status, 5:i64 gatewayId) throws (1:PaymentException pe),
132
	
132
	
133
	/**
133
	/**
134
	* get all payments for user. If gatewayId is 0, then it is ignored while filtering.
134
	Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
135
	**/ 
135
	*/ 
136
	list<Payment> getPayments(1:i64 fromTime, 2:i64 toTime, 3:PaymentStatus status, 4:i64 gatewayId) throws (1:PaymentException pe),
136
	list<Payment> getPayments(1:i64 fromTime, 2:i64 toTime, 3:PaymentStatus status, 4:i64 gatewayId) throws (1:PaymentException pe),
137
	
137
	
-
 
138
	/**
-
 
139
	Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
-
 
140
	*/
-
 
141
	list<Payment> getPaymentsByCapturedDate(1:i64 fromTime, 2:i64 toTime, 3:i64 gatewayId) throws (1:PaymentException pe),	
138
	
142
	
139
	/** 
143
	/** 
140
	* Get a particular gateway
144
	Get the gateway for the given id. 
141
	**/
145
	*/
142
	PaymentGateway getPaymentGateway(1:i64 id) throws (1:PaymentException pe),
146
	PaymentGateway getPaymentGateway(1:i64 id) throws (1:PaymentException pe),
143
 
147
 
144
	/** 
148
	/** 
145
	* Get a particular payment info
149
	* Get a particular payment info
146
	**/
150
	**/