Subversion Repositories SmartDukaan

Rev

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

Rev 3956 Rev 4008
Line 113... Line 113...
113
exception PaymentException{
113
exception PaymentException{
114
	1:i64 error_code,
114
	1:i64 error_code,
115
	2:string message
115
	2:string message
116
}
116
}
117
 
117
 
-
 
118
enum ExtraPaymentProcessingType {
-
 
119
    FAILED_PAYMENTS
-
 
120
}
-
 
121
 
118
service PaymentService extends GenericService.GenericService{
122
service PaymentService extends GenericService.GenericService{
119
	/**
123
	/**
120
	*	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
121
	**/
125
	**/
122
	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),
Line 198... Line 202...
198
	and the corresponding transaction id.
202
	and the corresponding transaction id.
199
	
203
	
200
	Returns false if the payment couldn't be captured.
204
	Returns false if the payment couldn't be captured.
201
	Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
205
	Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
202
	*/
206
	*/
203
	bool partiallyCapturePayment(1:i64 merchantTxnId, 2:double amount, 3:string xferBy, 4:string xferTxnId, 5:i64 xferDate) throws (1:PaymentException pe)
207
	bool partiallyCapturePayment(1:i64 merchantTxnId, 2:double amount, 3:string xferBy, 4:string xferTxnId, 5:i64 xferDate) throws (1:PaymentException pe),
-
 
208
 
-
 
209
    /**
-
 
210
     * Returns the list of payments that require some extra processing and
-
 
211
     * which belong to a particular category. This is currently used by CRM
-
 
212
     * application.
-
 
213
     */
-
 
214
    list<i64> getPaymentsRequiringExtraProcessing(1:ExtraPaymentProcessingType category),
-
 
215
 
-
 
216
    /**
-
 
217
     * Marks a particular payment as processed for a particular cateogory.
-
 
218
     * It essentially deletes the payment if it is processed for a particular
-
 
219
     * category. This is currently used by CRM application.
-
 
220
     */
-
 
221
    void markPaymentAsProcessed(1:i64 paymentId, 2:ExtraPaymentProcessingType category)
204
}
222
}
205
223