| 420 |
ashish |
1 |
#
|
|
|
2 |
# Autogenerated by Thrift
|
|
|
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
|
|
8 |
from ttypes import *
|
|
|
9 |
from thrift.Thrift import TProcessor
|
|
|
10 |
from thrift.transport import TTransport
|
|
|
11 |
from thrift.protocol import TBinaryProtocol
|
|
|
12 |
try:
|
|
|
13 |
from thrift.protocol import fastbinary
|
|
|
14 |
except:
|
|
|
15 |
fastbinary = None
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class Iface:
|
| 765 |
rajveer |
19 |
def closeSession(self, ):
|
|
|
20 |
"""
|
|
|
21 |
For closing the open session in sqlalchemy
|
|
|
22 |
"""
|
|
|
23 |
pass
|
|
|
24 |
|
| 696 |
rajveer |
25 |
def createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
26 |
"""
|
| 696 |
rajveer |
27 |
create a new payment and return payment id, throws an exception if gateway is not active
|
|
|
28 |
|
|
|
29 |
|
| 420 |
ashish |
30 |
Parameters:
|
| 696 |
rajveer |
31 |
- userId
|
| 420 |
ashish |
32 |
- amount
|
| 696 |
rajveer |
33 |
- gatewayId
|
|
|
34 |
- txnId
|
| 420 |
ashish |
35 |
"""
|
|
|
36 |
pass
|
|
|
37 |
|
| 696 |
rajveer |
38 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
39 |
"""
|
| 696 |
rajveer |
40 |
get payment for user. If status and gateway are null, it is ignored. Same for times as well.
|
|
|
41 |
|
|
|
42 |
|
| 420 |
ashish |
43 |
Parameters:
|
|
|
44 |
- userId
|
| 696 |
rajveer |
45 |
- fromTime
|
|
|
46 |
- toTime
|
| 420 |
ashish |
47 |
- status
|
| 696 |
rajveer |
48 |
- gatewayId
|
| 420 |
ashish |
49 |
"""
|
|
|
50 |
pass
|
|
|
51 |
|
| 696 |
rajveer |
52 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
53 |
"""
|
| 2062 |
ankur.sing |
54 |
get all payments for user. If gatewayId is 0, then it is ignored while filtering.
|
| 696 |
rajveer |
55 |
|
| 1856 |
chandransh |
56 |
|
| 420 |
ashish |
57 |
Parameters:
|
| 696 |
rajveer |
58 |
- fromTime
|
|
|
59 |
- toTime
|
| 420 |
ashish |
60 |
- status
|
| 696 |
rajveer |
61 |
- gatewayId
|
| 420 |
ashish |
62 |
"""
|
|
|
63 |
pass
|
|
|
64 |
|
|
|
65 |
def getPaymentGateway(self, id):
|
|
|
66 |
"""
|
| 696 |
rajveer |
67 |
Get a particular gateway
|
|
|
68 |
|
|
|
69 |
|
| 420 |
ashish |
70 |
Parameters:
|
|
|
71 |
- id
|
|
|
72 |
"""
|
|
|
73 |
pass
|
|
|
74 |
|
| 696 |
rajveer |
75 |
def getPayment(self, id):
|
| 420 |
ashish |
76 |
"""
|
| 696 |
rajveer |
77 |
Get a particular payment info
|
|
|
78 |
|
|
|
79 |
|
| 420 |
ashish |
80 |
Parameters:
|
|
|
81 |
- id
|
|
|
82 |
"""
|
|
|
83 |
pass
|
|
|
84 |
|
| 696 |
rajveer |
85 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
86 |
"""
|
| 696 |
rajveer |
87 |
Get a particular payment for a transaction. Will raise exception.
|
|
|
88 |
|
|
|
89 |
|
| 420 |
ashish |
90 |
Parameters:
|
| 696 |
rajveer |
91 |
- txnId
|
| 420 |
ashish |
92 |
"""
|
|
|
93 |
pass
|
|
|
94 |
|
| 1120 |
rajveer |
95 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
96 |
"""
|
| 696 |
rajveer |
97 |
mark payment successful and store parameters
|
|
|
98 |
|
|
|
99 |
|
| 420 |
ashish |
100 |
Parameters:
|
|
|
101 |
- id
|
| 696 |
rajveer |
102 |
- gatewayPaymentId
|
|
|
103 |
- sessionId
|
|
|
104 |
- gatewayTxnStatus
|
|
|
105 |
- description
|
|
|
106 |
- gatewayTxnId
|
|
|
107 |
- authCode
|
|
|
108 |
- referenceCode
|
|
|
109 |
- errorCode
|
|
|
110 |
- status
|
| 1120 |
rajveer |
111 |
- gatewayTxnDate
|
| 696 |
rajveer |
112 |
- attributes
|
| 420 |
ashish |
113 |
"""
|
|
|
114 |
pass
|
|
|
115 |
|
| 1731 |
ankur.sing |
116 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
117 |
"""
|
| 1731 |
ankur.sing |
118 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
119 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
120 |
"""
|
|
|
121 |
pass
|
| 420 |
ashish |
122 |
|
| 2559 |
chandransh |
123 |
def updateAndCaptureEbsPayment(self, paymentParams):
|
|
|
124 |
"""
|
|
|
125 |
Update the authorization attributes of the payment and attempt to capture it in case it was authorized.
|
|
|
126 |
If either the authorization failed or the capture attempt failed, the payment is marked as failed.
|
|
|
127 |
|
|
|
128 |
Parameters:
|
|
|
129 |
- paymentParams
|
|
|
130 |
"""
|
|
|
131 |
pass
|
| 1627 |
ankur.sing |
132 |
|
| 2559 |
chandransh |
133 |
def captureHdfcPayment(self, merchantPaymentId):
|
|
|
134 |
"""
|
|
|
135 |
Captures an already authorized Hdfc Payment and returns a map containing the details of the capture transaction
|
|
|
136 |
|
|
|
137 |
Parameters:
|
|
|
138 |
- merchantPaymentId
|
|
|
139 |
"""
|
|
|
140 |
pass
|
|
|
141 |
|
|
|
142 |
def initializeHdfcPayment(self, merchantPaymentId):
|
|
|
143 |
"""
|
|
|
144 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
145 |
In case of any processing error, an exception is raised.
|
|
|
146 |
|
|
|
147 |
Parameters:
|
|
|
148 |
- merchantPaymentId
|
|
|
149 |
"""
|
|
|
150 |
pass
|
|
|
151 |
|
| 2685 |
chandransh |
152 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
153 |
"""
|
|
|
154 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
155 |
payment gateway which processed the payment for the corresponding transaction.
|
|
|
156 |
|
|
|
157 |
Parameters:
|
|
|
158 |
- orderId
|
|
|
159 |
- merchantTxnId
|
|
|
160 |
- amount
|
|
|
161 |
"""
|
|
|
162 |
pass
|
| 2559 |
chandransh |
163 |
|
| 2685 |
chandransh |
164 |
|
| 420 |
ashish |
165 |
class Client(Iface):
|
|
|
166 |
def __init__(self, iprot, oprot=None):
|
|
|
167 |
self._iprot = self._oprot = iprot
|
|
|
168 |
if oprot != None:
|
|
|
169 |
self._oprot = oprot
|
|
|
170 |
self._seqid = 0
|
|
|
171 |
|
| 765 |
rajveer |
172 |
def closeSession(self, ):
|
|
|
173 |
"""
|
|
|
174 |
For closing the open session in sqlalchemy
|
|
|
175 |
"""
|
|
|
176 |
self.send_closeSession()
|
|
|
177 |
self.recv_closeSession()
|
|
|
178 |
|
|
|
179 |
def send_closeSession(self, ):
|
|
|
180 |
self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)
|
|
|
181 |
args = closeSession_args()
|
|
|
182 |
args.write(self._oprot)
|
|
|
183 |
self._oprot.writeMessageEnd()
|
|
|
184 |
self._oprot.trans.flush()
|
|
|
185 |
|
|
|
186 |
def recv_closeSession(self, ):
|
|
|
187 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
188 |
if mtype == TMessageType.EXCEPTION:
|
|
|
189 |
x = TApplicationException()
|
|
|
190 |
x.read(self._iprot)
|
|
|
191 |
self._iprot.readMessageEnd()
|
|
|
192 |
raise x
|
|
|
193 |
result = closeSession_result()
|
|
|
194 |
result.read(self._iprot)
|
|
|
195 |
self._iprot.readMessageEnd()
|
|
|
196 |
return
|
|
|
197 |
|
| 696 |
rajveer |
198 |
def createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
199 |
"""
|
| 696 |
rajveer |
200 |
create a new payment and return payment id, throws an exception if gateway is not active
|
|
|
201 |
|
|
|
202 |
|
| 420 |
ashish |
203 |
Parameters:
|
| 696 |
rajveer |
204 |
- userId
|
| 420 |
ashish |
205 |
- amount
|
| 696 |
rajveer |
206 |
- gatewayId
|
|
|
207 |
- txnId
|
| 420 |
ashish |
208 |
"""
|
| 696 |
rajveer |
209 |
self.send_createPayment(userId, amount, gatewayId, txnId)
|
| 420 |
ashish |
210 |
return self.recv_createPayment()
|
|
|
211 |
|
| 696 |
rajveer |
212 |
def send_createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
213 |
self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
|
|
|
214 |
args = createPayment_args()
|
| 696 |
rajveer |
215 |
args.userId = userId
|
| 420 |
ashish |
216 |
args.amount = amount
|
| 696 |
rajveer |
217 |
args.gatewayId = gatewayId
|
|
|
218 |
args.txnId = txnId
|
| 420 |
ashish |
219 |
args.write(self._oprot)
|
|
|
220 |
self._oprot.writeMessageEnd()
|
|
|
221 |
self._oprot.trans.flush()
|
|
|
222 |
|
|
|
223 |
def recv_createPayment(self, ):
|
|
|
224 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
225 |
if mtype == TMessageType.EXCEPTION:
|
|
|
226 |
x = TApplicationException()
|
|
|
227 |
x.read(self._iprot)
|
|
|
228 |
self._iprot.readMessageEnd()
|
|
|
229 |
raise x
|
|
|
230 |
result = createPayment_result()
|
|
|
231 |
result.read(self._iprot)
|
|
|
232 |
self._iprot.readMessageEnd()
|
|
|
233 |
if result.success != None:
|
|
|
234 |
return result.success
|
|
|
235 |
if result.pe != None:
|
|
|
236 |
raise result.pe
|
|
|
237 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
|
|
238 |
|
| 696 |
rajveer |
239 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
240 |
"""
|
| 696 |
rajveer |
241 |
get payment for user. If status and gateway are null, it is ignored. Same for times as well.
|
|
|
242 |
|
|
|
243 |
|
| 420 |
ashish |
244 |
Parameters:
|
|
|
245 |
- userId
|
| 696 |
rajveer |
246 |
- fromTime
|
|
|
247 |
- toTime
|
| 420 |
ashish |
248 |
- status
|
| 696 |
rajveer |
249 |
- gatewayId
|
| 420 |
ashish |
250 |
"""
|
| 696 |
rajveer |
251 |
self.send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
252 |
return self.recv_getPaymentsForUser()
|
|
|
253 |
|
| 696 |
rajveer |
254 |
def send_getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
255 |
self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
|
|
|
256 |
args = getPaymentsForUser_args()
|
|
|
257 |
args.userId = userId
|
| 696 |
rajveer |
258 |
args.fromTime = fromTime
|
|
|
259 |
args.toTime = toTime
|
| 420 |
ashish |
260 |
args.status = status
|
| 696 |
rajveer |
261 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
262 |
args.write(self._oprot)
|
|
|
263 |
self._oprot.writeMessageEnd()
|
|
|
264 |
self._oprot.trans.flush()
|
|
|
265 |
|
|
|
266 |
def recv_getPaymentsForUser(self, ):
|
|
|
267 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
268 |
if mtype == TMessageType.EXCEPTION:
|
|
|
269 |
x = TApplicationException()
|
|
|
270 |
x.read(self._iprot)
|
|
|
271 |
self._iprot.readMessageEnd()
|
|
|
272 |
raise x
|
|
|
273 |
result = getPaymentsForUser_result()
|
|
|
274 |
result.read(self._iprot)
|
|
|
275 |
self._iprot.readMessageEnd()
|
|
|
276 |
if result.success != None:
|
|
|
277 |
return result.success
|
|
|
278 |
if result.pe != None:
|
|
|
279 |
raise result.pe
|
|
|
280 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
|
|
281 |
|
| 696 |
rajveer |
282 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
283 |
"""
|
| 2062 |
ankur.sing |
284 |
get all payments for user. If gatewayId is 0, then it is ignored while filtering.
|
| 696 |
rajveer |
285 |
|
| 1856 |
chandransh |
286 |
|
| 420 |
ashish |
287 |
Parameters:
|
| 696 |
rajveer |
288 |
- fromTime
|
|
|
289 |
- toTime
|
| 420 |
ashish |
290 |
- status
|
| 696 |
rajveer |
291 |
- gatewayId
|
| 420 |
ashish |
292 |
"""
|
| 696 |
rajveer |
293 |
self.send_getPayments(fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
294 |
return self.recv_getPayments()
|
|
|
295 |
|
| 696 |
rajveer |
296 |
def send_getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
297 |
self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
|
|
|
298 |
args = getPayments_args()
|
| 696 |
rajveer |
299 |
args.fromTime = fromTime
|
|
|
300 |
args.toTime = toTime
|
| 420 |
ashish |
301 |
args.status = status
|
| 696 |
rajveer |
302 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
303 |
args.write(self._oprot)
|
|
|
304 |
self._oprot.writeMessageEnd()
|
|
|
305 |
self._oprot.trans.flush()
|
|
|
306 |
|
|
|
307 |
def recv_getPayments(self, ):
|
|
|
308 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
309 |
if mtype == TMessageType.EXCEPTION:
|
|
|
310 |
x = TApplicationException()
|
|
|
311 |
x.read(self._iprot)
|
|
|
312 |
self._iprot.readMessageEnd()
|
|
|
313 |
raise x
|
|
|
314 |
result = getPayments_result()
|
|
|
315 |
result.read(self._iprot)
|
|
|
316 |
self._iprot.readMessageEnd()
|
|
|
317 |
if result.success != None:
|
|
|
318 |
return result.success
|
|
|
319 |
if result.pe != None:
|
|
|
320 |
raise result.pe
|
|
|
321 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
|
|
322 |
|
|
|
323 |
def getPaymentGateway(self, id):
|
|
|
324 |
"""
|
| 696 |
rajveer |
325 |
Get a particular gateway
|
|
|
326 |
|
|
|
327 |
|
| 420 |
ashish |
328 |
Parameters:
|
|
|
329 |
- id
|
|
|
330 |
"""
|
|
|
331 |
self.send_getPaymentGateway(id)
|
|
|
332 |
return self.recv_getPaymentGateway()
|
|
|
333 |
|
|
|
334 |
def send_getPaymentGateway(self, id):
|
|
|
335 |
self._oprot.writeMessageBegin('getPaymentGateway', TMessageType.CALL, self._seqid)
|
|
|
336 |
args = getPaymentGateway_args()
|
|
|
337 |
args.id = id
|
|
|
338 |
args.write(self._oprot)
|
|
|
339 |
self._oprot.writeMessageEnd()
|
|
|
340 |
self._oprot.trans.flush()
|
|
|
341 |
|
|
|
342 |
def recv_getPaymentGateway(self, ):
|
|
|
343 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
344 |
if mtype == TMessageType.EXCEPTION:
|
|
|
345 |
x = TApplicationException()
|
|
|
346 |
x.read(self._iprot)
|
|
|
347 |
self._iprot.readMessageEnd()
|
|
|
348 |
raise x
|
|
|
349 |
result = getPaymentGateway_result()
|
|
|
350 |
result.read(self._iprot)
|
|
|
351 |
self._iprot.readMessageEnd()
|
|
|
352 |
if result.success != None:
|
|
|
353 |
return result.success
|
|
|
354 |
if result.pe != None:
|
|
|
355 |
raise result.pe
|
|
|
356 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
|
|
357 |
|
| 696 |
rajveer |
358 |
def getPayment(self, id):
|
| 420 |
ashish |
359 |
"""
|
| 696 |
rajveer |
360 |
Get a particular payment info
|
|
|
361 |
|
|
|
362 |
|
| 420 |
ashish |
363 |
Parameters:
|
|
|
364 |
- id
|
|
|
365 |
"""
|
| 696 |
rajveer |
366 |
self.send_getPayment(id)
|
|
|
367 |
return self.recv_getPayment()
|
| 420 |
ashish |
368 |
|
| 696 |
rajveer |
369 |
def send_getPayment(self, id):
|
|
|
370 |
self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
|
|
|
371 |
args = getPayment_args()
|
| 420 |
ashish |
372 |
args.id = id
|
|
|
373 |
args.write(self._oprot)
|
|
|
374 |
self._oprot.writeMessageEnd()
|
|
|
375 |
self._oprot.trans.flush()
|
|
|
376 |
|
| 696 |
rajveer |
377 |
def recv_getPayment(self, ):
|
| 420 |
ashish |
378 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
379 |
if mtype == TMessageType.EXCEPTION:
|
|
|
380 |
x = TApplicationException()
|
|
|
381 |
x.read(self._iprot)
|
|
|
382 |
self._iprot.readMessageEnd()
|
|
|
383 |
raise x
|
| 696 |
rajveer |
384 |
result = getPayment_result()
|
| 420 |
ashish |
385 |
result.read(self._iprot)
|
|
|
386 |
self._iprot.readMessageEnd()
|
| 696 |
rajveer |
387 |
if result.success != None:
|
|
|
388 |
return result.success
|
| 420 |
ashish |
389 |
if result.pe != None:
|
|
|
390 |
raise result.pe
|
| 696 |
rajveer |
391 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
392 |
|
| 696 |
rajveer |
393 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
394 |
"""
|
| 696 |
rajveer |
395 |
Get a particular payment for a transaction. Will raise exception.
|
|
|
396 |
|
|
|
397 |
|
| 420 |
ashish |
398 |
Parameters:
|
| 696 |
rajveer |
399 |
- txnId
|
| 420 |
ashish |
400 |
"""
|
| 696 |
rajveer |
401 |
self.send_getPaymentForTxnId(txnId)
|
|
|
402 |
return self.recv_getPaymentForTxnId()
|
| 420 |
ashish |
403 |
|
| 696 |
rajveer |
404 |
def send_getPaymentForTxnId(self, txnId):
|
|
|
405 |
self._oprot.writeMessageBegin('getPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
406 |
args = getPaymentForTxnId_args()
|
|
|
407 |
args.txnId = txnId
|
| 420 |
ashish |
408 |
args.write(self._oprot)
|
|
|
409 |
self._oprot.writeMessageEnd()
|
|
|
410 |
self._oprot.trans.flush()
|
|
|
411 |
|
| 696 |
rajveer |
412 |
def recv_getPaymentForTxnId(self, ):
|
| 420 |
ashish |
413 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
414 |
if mtype == TMessageType.EXCEPTION:
|
|
|
415 |
x = TApplicationException()
|
|
|
416 |
x.read(self._iprot)
|
|
|
417 |
self._iprot.readMessageEnd()
|
|
|
418 |
raise x
|
| 696 |
rajveer |
419 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
420 |
result.read(self._iprot)
|
|
|
421 |
self._iprot.readMessageEnd()
|
|
|
422 |
if result.success != None:
|
|
|
423 |
return result.success
|
|
|
424 |
if result.pe != None:
|
|
|
425 |
raise result.pe
|
| 696 |
rajveer |
426 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
427 |
|
| 1120 |
rajveer |
428 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
429 |
"""
|
| 696 |
rajveer |
430 |
mark payment successful and store parameters
|
|
|
431 |
|
|
|
432 |
|
| 420 |
ashish |
433 |
Parameters:
|
|
|
434 |
- id
|
| 696 |
rajveer |
435 |
- gatewayPaymentId
|
|
|
436 |
- sessionId
|
|
|
437 |
- gatewayTxnStatus
|
|
|
438 |
- description
|
|
|
439 |
- gatewayTxnId
|
|
|
440 |
- authCode
|
|
|
441 |
- referenceCode
|
|
|
442 |
- errorCode
|
|
|
443 |
- status
|
| 1120 |
rajveer |
444 |
- gatewayTxnDate
|
| 696 |
rajveer |
445 |
- attributes
|
| 420 |
ashish |
446 |
"""
|
| 1120 |
rajveer |
447 |
self.send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes)
|
| 696 |
rajveer |
448 |
return self.recv_updatePaymentDetails()
|
| 420 |
ashish |
449 |
|
| 1120 |
rajveer |
450 |
def send_updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 696 |
rajveer |
451 |
self._oprot.writeMessageBegin('updatePaymentDetails', TMessageType.CALL, self._seqid)
|
|
|
452 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
453 |
args.id = id
|
| 696 |
rajveer |
454 |
args.gatewayPaymentId = gatewayPaymentId
|
|
|
455 |
args.sessionId = sessionId
|
|
|
456 |
args.gatewayTxnStatus = gatewayTxnStatus
|
|
|
457 |
args.description = description
|
|
|
458 |
args.gatewayTxnId = gatewayTxnId
|
|
|
459 |
args.authCode = authCode
|
|
|
460 |
args.referenceCode = referenceCode
|
|
|
461 |
args.errorCode = errorCode
|
|
|
462 |
args.status = status
|
| 1120 |
rajveer |
463 |
args.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
464 |
args.attributes = attributes
|
| 420 |
ashish |
465 |
args.write(self._oprot)
|
|
|
466 |
self._oprot.writeMessageEnd()
|
|
|
467 |
self._oprot.trans.flush()
|
|
|
468 |
|
| 696 |
rajveer |
469 |
def recv_updatePaymentDetails(self, ):
|
| 420 |
ashish |
470 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
471 |
if mtype == TMessageType.EXCEPTION:
|
|
|
472 |
x = TApplicationException()
|
|
|
473 |
x.read(self._iprot)
|
|
|
474 |
self._iprot.readMessageEnd()
|
|
|
475 |
raise x
|
| 696 |
rajveer |
476 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
477 |
result.read(self._iprot)
|
|
|
478 |
self._iprot.readMessageEnd()
|
| 696 |
rajveer |
479 |
if result.success != None:
|
|
|
480 |
return result.success
|
| 420 |
ashish |
481 |
if result.pe != None:
|
|
|
482 |
raise result.pe
|
| 696 |
rajveer |
483 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
484 |
|
| 1731 |
ankur.sing |
485 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
486 |
"""
|
| 1731 |
ankur.sing |
487 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
488 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
489 |
"""
|
| 1731 |
ankur.sing |
490 |
self.send_getSuccessfulPaymentsAmountRange()
|
|
|
491 |
return self.recv_getSuccessfulPaymentsAmountRange()
|
| 420 |
ashish |
492 |
|
| 1731 |
ankur.sing |
493 |
def send_getSuccessfulPaymentsAmountRange(self, ):
|
|
|
494 |
self._oprot.writeMessageBegin('getSuccessfulPaymentsAmountRange', TMessageType.CALL, self._seqid)
|
|
|
495 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
496 |
args.write(self._oprot)
|
|
|
497 |
self._oprot.writeMessageEnd()
|
|
|
498 |
self._oprot.trans.flush()
|
|
|
499 |
|
| 1731 |
ankur.sing |
500 |
def recv_getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
501 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
502 |
if mtype == TMessageType.EXCEPTION:
|
|
|
503 |
x = TApplicationException()
|
|
|
504 |
x.read(self._iprot)
|
|
|
505 |
self._iprot.readMessageEnd()
|
|
|
506 |
raise x
|
| 1731 |
ankur.sing |
507 |
result = getSuccessfulPaymentsAmountRange_result()
|
| 1627 |
ankur.sing |
508 |
result.read(self._iprot)
|
|
|
509 |
self._iprot.readMessageEnd()
|
|
|
510 |
if result.success != None:
|
|
|
511 |
return result.success
|
| 1731 |
ankur.sing |
512 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1627 |
ankur.sing |
513 |
|
| 2559 |
chandransh |
514 |
def updateAndCaptureEbsPayment(self, paymentParams):
|
|
|
515 |
"""
|
|
|
516 |
Update the authorization attributes of the payment and attempt to capture it in case it was authorized.
|
|
|
517 |
If either the authorization failed or the capture attempt failed, the payment is marked as failed.
|
|
|
518 |
|
|
|
519 |
Parameters:
|
|
|
520 |
- paymentParams
|
|
|
521 |
"""
|
|
|
522 |
self.send_updateAndCaptureEbsPayment(paymentParams)
|
|
|
523 |
return self.recv_updateAndCaptureEbsPayment()
|
| 1627 |
ankur.sing |
524 |
|
| 2559 |
chandransh |
525 |
def send_updateAndCaptureEbsPayment(self, paymentParams):
|
|
|
526 |
self._oprot.writeMessageBegin('updateAndCaptureEbsPayment', TMessageType.CALL, self._seqid)
|
|
|
527 |
args = updateAndCaptureEbsPayment_args()
|
|
|
528 |
args.paymentParams = paymentParams
|
|
|
529 |
args.write(self._oprot)
|
|
|
530 |
self._oprot.writeMessageEnd()
|
|
|
531 |
self._oprot.trans.flush()
|
|
|
532 |
|
|
|
533 |
def recv_updateAndCaptureEbsPayment(self, ):
|
|
|
534 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
535 |
if mtype == TMessageType.EXCEPTION:
|
|
|
536 |
x = TApplicationException()
|
|
|
537 |
x.read(self._iprot)
|
|
|
538 |
self._iprot.readMessageEnd()
|
|
|
539 |
raise x
|
|
|
540 |
result = updateAndCaptureEbsPayment_result()
|
|
|
541 |
result.read(self._iprot)
|
|
|
542 |
self._iprot.readMessageEnd()
|
|
|
543 |
if result.success != None:
|
|
|
544 |
return result.success
|
|
|
545 |
if result.pe != None:
|
|
|
546 |
raise result.pe
|
|
|
547 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAndCaptureEbsPayment failed: unknown result");
|
|
|
548 |
|
|
|
549 |
def captureHdfcPayment(self, merchantPaymentId):
|
|
|
550 |
"""
|
|
|
551 |
Captures an already authorized Hdfc Payment and returns a map containing the details of the capture transaction
|
|
|
552 |
|
|
|
553 |
Parameters:
|
|
|
554 |
- merchantPaymentId
|
|
|
555 |
"""
|
|
|
556 |
self.send_captureHdfcPayment(merchantPaymentId)
|
|
|
557 |
return self.recv_captureHdfcPayment()
|
|
|
558 |
|
|
|
559 |
def send_captureHdfcPayment(self, merchantPaymentId):
|
|
|
560 |
self._oprot.writeMessageBegin('captureHdfcPayment', TMessageType.CALL, self._seqid)
|
|
|
561 |
args = captureHdfcPayment_args()
|
|
|
562 |
args.merchantPaymentId = merchantPaymentId
|
|
|
563 |
args.write(self._oprot)
|
|
|
564 |
self._oprot.writeMessageEnd()
|
|
|
565 |
self._oprot.trans.flush()
|
|
|
566 |
|
|
|
567 |
def recv_captureHdfcPayment(self, ):
|
|
|
568 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
569 |
if mtype == TMessageType.EXCEPTION:
|
|
|
570 |
x = TApplicationException()
|
|
|
571 |
x.read(self._iprot)
|
|
|
572 |
self._iprot.readMessageEnd()
|
|
|
573 |
raise x
|
|
|
574 |
result = captureHdfcPayment_result()
|
|
|
575 |
result.read(self._iprot)
|
|
|
576 |
self._iprot.readMessageEnd()
|
|
|
577 |
if result.success != None:
|
|
|
578 |
return result.success
|
|
|
579 |
if result.pe != None:
|
|
|
580 |
raise result.pe
|
|
|
581 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
|
|
|
582 |
|
|
|
583 |
def initializeHdfcPayment(self, merchantPaymentId):
|
|
|
584 |
"""
|
|
|
585 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
586 |
In case of any processing error, an exception is raised.
|
|
|
587 |
|
|
|
588 |
Parameters:
|
|
|
589 |
- merchantPaymentId
|
|
|
590 |
"""
|
|
|
591 |
self.send_initializeHdfcPayment(merchantPaymentId)
|
|
|
592 |
return self.recv_initializeHdfcPayment()
|
|
|
593 |
|
|
|
594 |
def send_initializeHdfcPayment(self, merchantPaymentId):
|
|
|
595 |
self._oprot.writeMessageBegin('initializeHdfcPayment', TMessageType.CALL, self._seqid)
|
|
|
596 |
args = initializeHdfcPayment_args()
|
|
|
597 |
args.merchantPaymentId = merchantPaymentId
|
|
|
598 |
args.write(self._oprot)
|
|
|
599 |
self._oprot.writeMessageEnd()
|
|
|
600 |
self._oprot.trans.flush()
|
|
|
601 |
|
|
|
602 |
def recv_initializeHdfcPayment(self, ):
|
|
|
603 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
604 |
if mtype == TMessageType.EXCEPTION:
|
|
|
605 |
x = TApplicationException()
|
|
|
606 |
x.read(self._iprot)
|
|
|
607 |
self._iprot.readMessageEnd()
|
|
|
608 |
raise x
|
|
|
609 |
result = initializeHdfcPayment_result()
|
|
|
610 |
result.read(self._iprot)
|
|
|
611 |
self._iprot.readMessageEnd()
|
|
|
612 |
if result.success != None:
|
|
|
613 |
return result.success
|
|
|
614 |
if result.pe != None:
|
|
|
615 |
raise result.pe
|
|
|
616 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
|
|
617 |
|
| 2685 |
chandransh |
618 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
619 |
"""
|
|
|
620 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
621 |
payment gateway which processed the payment for the corresponding transaction.
|
|
|
622 |
|
|
|
623 |
Parameters:
|
|
|
624 |
- orderId
|
|
|
625 |
- merchantTxnId
|
|
|
626 |
- amount
|
|
|
627 |
"""
|
|
|
628 |
self.send_createRefund(orderId, merchantTxnId, amount)
|
|
|
629 |
return self.recv_createRefund()
|
| 2559 |
chandransh |
630 |
|
| 2685 |
chandransh |
631 |
def send_createRefund(self, orderId, merchantTxnId, amount):
|
|
|
632 |
self._oprot.writeMessageBegin('createRefund', TMessageType.CALL, self._seqid)
|
|
|
633 |
args = createRefund_args()
|
|
|
634 |
args.orderId = orderId
|
|
|
635 |
args.merchantTxnId = merchantTxnId
|
|
|
636 |
args.amount = amount
|
|
|
637 |
args.write(self._oprot)
|
|
|
638 |
self._oprot.writeMessageEnd()
|
|
|
639 |
self._oprot.trans.flush()
|
|
|
640 |
|
|
|
641 |
def recv_createRefund(self, ):
|
|
|
642 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
643 |
if mtype == TMessageType.EXCEPTION:
|
|
|
644 |
x = TApplicationException()
|
|
|
645 |
x.read(self._iprot)
|
|
|
646 |
self._iprot.readMessageEnd()
|
|
|
647 |
raise x
|
|
|
648 |
result = createRefund_result()
|
|
|
649 |
result.read(self._iprot)
|
|
|
650 |
self._iprot.readMessageEnd()
|
|
|
651 |
if result.success != None:
|
|
|
652 |
return result.success
|
|
|
653 |
if result.pe != None:
|
|
|
654 |
raise result.pe
|
|
|
655 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
|
|
656 |
|
|
|
657 |
|
| 420 |
ashish |
658 |
class Processor(Iface, TProcessor):
|
|
|
659 |
def __init__(self, handler):
|
|
|
660 |
self._handler = handler
|
|
|
661 |
self._processMap = {}
|
| 765 |
rajveer |
662 |
self._processMap["closeSession"] = Processor.process_closeSession
|
| 420 |
ashish |
663 |
self._processMap["createPayment"] = Processor.process_createPayment
|
|
|
664 |
self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
|
|
|
665 |
self._processMap["getPayments"] = Processor.process_getPayments
|
|
|
666 |
self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
|
|
|
667 |
self._processMap["getPayment"] = Processor.process_getPayment
|
| 696 |
rajveer |
668 |
self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
|
|
|
669 |
self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
|
| 1731 |
ankur.sing |
670 |
self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
|
| 2559 |
chandransh |
671 |
self._processMap["updateAndCaptureEbsPayment"] = Processor.process_updateAndCaptureEbsPayment
|
|
|
672 |
self._processMap["captureHdfcPayment"] = Processor.process_captureHdfcPayment
|
|
|
673 |
self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
|
| 2685 |
chandransh |
674 |
self._processMap["createRefund"] = Processor.process_createRefund
|
| 420 |
ashish |
675 |
|
|
|
676 |
def process(self, iprot, oprot):
|
|
|
677 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
678 |
if name not in self._processMap:
|
|
|
679 |
iprot.skip(TType.STRUCT)
|
|
|
680 |
iprot.readMessageEnd()
|
|
|
681 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
682 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
683 |
x.write(oprot)
|
|
|
684 |
oprot.writeMessageEnd()
|
|
|
685 |
oprot.trans.flush()
|
|
|
686 |
return
|
|
|
687 |
else:
|
|
|
688 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
689 |
return True
|
|
|
690 |
|
| 765 |
rajveer |
691 |
def process_closeSession(self, seqid, iprot, oprot):
|
|
|
692 |
args = closeSession_args()
|
|
|
693 |
args.read(iprot)
|
|
|
694 |
iprot.readMessageEnd()
|
|
|
695 |
result = closeSession_result()
|
|
|
696 |
self._handler.closeSession()
|
|
|
697 |
oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)
|
|
|
698 |
result.write(oprot)
|
|
|
699 |
oprot.writeMessageEnd()
|
|
|
700 |
oprot.trans.flush()
|
|
|
701 |
|
| 420 |
ashish |
702 |
def process_createPayment(self, seqid, iprot, oprot):
|
|
|
703 |
args = createPayment_args()
|
|
|
704 |
args.read(iprot)
|
|
|
705 |
iprot.readMessageEnd()
|
|
|
706 |
result = createPayment_result()
|
|
|
707 |
try:
|
| 696 |
rajveer |
708 |
result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId)
|
| 420 |
ashish |
709 |
except PaymentException, pe:
|
|
|
710 |
result.pe = pe
|
|
|
711 |
oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
|
|
|
712 |
result.write(oprot)
|
|
|
713 |
oprot.writeMessageEnd()
|
|
|
714 |
oprot.trans.flush()
|
|
|
715 |
|
|
|
716 |
def process_getPaymentsForUser(self, seqid, iprot, oprot):
|
|
|
717 |
args = getPaymentsForUser_args()
|
|
|
718 |
args.read(iprot)
|
|
|
719 |
iprot.readMessageEnd()
|
|
|
720 |
result = getPaymentsForUser_result()
|
|
|
721 |
try:
|
| 696 |
rajveer |
722 |
result.success = self._handler.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
723 |
except PaymentException, pe:
|
|
|
724 |
result.pe = pe
|
|
|
725 |
oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
|
|
|
726 |
result.write(oprot)
|
|
|
727 |
oprot.writeMessageEnd()
|
|
|
728 |
oprot.trans.flush()
|
|
|
729 |
|
|
|
730 |
def process_getPayments(self, seqid, iprot, oprot):
|
|
|
731 |
args = getPayments_args()
|
|
|
732 |
args.read(iprot)
|
|
|
733 |
iprot.readMessageEnd()
|
|
|
734 |
result = getPayments_result()
|
|
|
735 |
try:
|
| 696 |
rajveer |
736 |
result.success = self._handler.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
737 |
except PaymentException, pe:
|
|
|
738 |
result.pe = pe
|
|
|
739 |
oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
|
|
|
740 |
result.write(oprot)
|
|
|
741 |
oprot.writeMessageEnd()
|
|
|
742 |
oprot.trans.flush()
|
|
|
743 |
|
|
|
744 |
def process_getPaymentGateway(self, seqid, iprot, oprot):
|
|
|
745 |
args = getPaymentGateway_args()
|
|
|
746 |
args.read(iprot)
|
|
|
747 |
iprot.readMessageEnd()
|
|
|
748 |
result = getPaymentGateway_result()
|
|
|
749 |
try:
|
|
|
750 |
result.success = self._handler.getPaymentGateway(args.id)
|
|
|
751 |
except PaymentException, pe:
|
|
|
752 |
result.pe = pe
|
|
|
753 |
oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
|
|
|
754 |
result.write(oprot)
|
|
|
755 |
oprot.writeMessageEnd()
|
|
|
756 |
oprot.trans.flush()
|
|
|
757 |
|
| 696 |
rajveer |
758 |
def process_getPayment(self, seqid, iprot, oprot):
|
|
|
759 |
args = getPayment_args()
|
| 420 |
ashish |
760 |
args.read(iprot)
|
|
|
761 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
762 |
result = getPayment_result()
|
| 420 |
ashish |
763 |
try:
|
| 696 |
rajveer |
764 |
result.success = self._handler.getPayment(args.id)
|
| 420 |
ashish |
765 |
except PaymentException, pe:
|
|
|
766 |
result.pe = pe
|
| 696 |
rajveer |
767 |
oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
768 |
result.write(oprot)
|
|
|
769 |
oprot.writeMessageEnd()
|
|
|
770 |
oprot.trans.flush()
|
|
|
771 |
|
| 696 |
rajveer |
772 |
def process_getPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
773 |
args = getPaymentForTxnId_args()
|
| 420 |
ashish |
774 |
args.read(iprot)
|
|
|
775 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
776 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
777 |
try:
|
| 696 |
rajveer |
778 |
result.success = self._handler.getPaymentForTxnId(args.txnId)
|
| 420 |
ashish |
779 |
except PaymentException, pe:
|
|
|
780 |
result.pe = pe
|
| 696 |
rajveer |
781 |
oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
782 |
result.write(oprot)
|
|
|
783 |
oprot.writeMessageEnd()
|
|
|
784 |
oprot.trans.flush()
|
|
|
785 |
|
| 696 |
rajveer |
786 |
def process_updatePaymentDetails(self, seqid, iprot, oprot):
|
|
|
787 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
788 |
args.read(iprot)
|
|
|
789 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
790 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
791 |
try:
|
| 1120 |
rajveer |
792 |
result.success = self._handler.updatePaymentDetails(args.id, args.gatewayPaymentId, args.sessionId, args.gatewayTxnStatus, args.description, args.gatewayTxnId, args.authCode, args.referenceCode, args.errorCode, args.status, args.gatewayTxnDate, args.attributes)
|
| 420 |
ashish |
793 |
except PaymentException, pe:
|
|
|
794 |
result.pe = pe
|
| 696 |
rajveer |
795 |
oprot.writeMessageBegin("updatePaymentDetails", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
796 |
result.write(oprot)
|
|
|
797 |
oprot.writeMessageEnd()
|
|
|
798 |
oprot.trans.flush()
|
|
|
799 |
|
| 1731 |
ankur.sing |
800 |
def process_getSuccessfulPaymentsAmountRange(self, seqid, iprot, oprot):
|
|
|
801 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
802 |
args.read(iprot)
|
|
|
803 |
iprot.readMessageEnd()
|
| 1731 |
ankur.sing |
804 |
result = getSuccessfulPaymentsAmountRange_result()
|
|
|
805 |
result.success = self._handler.getSuccessfulPaymentsAmountRange()
|
|
|
806 |
oprot.writeMessageBegin("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid)
|
| 1627 |
ankur.sing |
807 |
result.write(oprot)
|
|
|
808 |
oprot.writeMessageEnd()
|
|
|
809 |
oprot.trans.flush()
|
| 420 |
ashish |
810 |
|
| 2559 |
chandransh |
811 |
def process_updateAndCaptureEbsPayment(self, seqid, iprot, oprot):
|
|
|
812 |
args = updateAndCaptureEbsPayment_args()
|
|
|
813 |
args.read(iprot)
|
|
|
814 |
iprot.readMessageEnd()
|
|
|
815 |
result = updateAndCaptureEbsPayment_result()
|
|
|
816 |
try:
|
|
|
817 |
result.success = self._handler.updateAndCaptureEbsPayment(args.paymentParams)
|
|
|
818 |
except PaymentException, pe:
|
|
|
819 |
result.pe = pe
|
|
|
820 |
oprot.writeMessageBegin("updateAndCaptureEbsPayment", TMessageType.REPLY, seqid)
|
|
|
821 |
result.write(oprot)
|
|
|
822 |
oprot.writeMessageEnd()
|
|
|
823 |
oprot.trans.flush()
|
| 1627 |
ankur.sing |
824 |
|
| 2559 |
chandransh |
825 |
def process_captureHdfcPayment(self, seqid, iprot, oprot):
|
|
|
826 |
args = captureHdfcPayment_args()
|
|
|
827 |
args.read(iprot)
|
|
|
828 |
iprot.readMessageEnd()
|
|
|
829 |
result = captureHdfcPayment_result()
|
|
|
830 |
try:
|
|
|
831 |
result.success = self._handler.captureHdfcPayment(args.merchantPaymentId)
|
|
|
832 |
except PaymentException, pe:
|
|
|
833 |
result.pe = pe
|
|
|
834 |
oprot.writeMessageBegin("captureHdfcPayment", TMessageType.REPLY, seqid)
|
|
|
835 |
result.write(oprot)
|
|
|
836 |
oprot.writeMessageEnd()
|
|
|
837 |
oprot.trans.flush()
|
|
|
838 |
|
|
|
839 |
def process_initializeHdfcPayment(self, seqid, iprot, oprot):
|
|
|
840 |
args = initializeHdfcPayment_args()
|
|
|
841 |
args.read(iprot)
|
|
|
842 |
iprot.readMessageEnd()
|
|
|
843 |
result = initializeHdfcPayment_result()
|
|
|
844 |
try:
|
|
|
845 |
result.success = self._handler.initializeHdfcPayment(args.merchantPaymentId)
|
|
|
846 |
except PaymentException, pe:
|
|
|
847 |
result.pe = pe
|
|
|
848 |
oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
|
|
|
849 |
result.write(oprot)
|
|
|
850 |
oprot.writeMessageEnd()
|
|
|
851 |
oprot.trans.flush()
|
|
|
852 |
|
| 2685 |
chandransh |
853 |
def process_createRefund(self, seqid, iprot, oprot):
|
|
|
854 |
args = createRefund_args()
|
|
|
855 |
args.read(iprot)
|
|
|
856 |
iprot.readMessageEnd()
|
|
|
857 |
result = createRefund_result()
|
|
|
858 |
try:
|
|
|
859 |
result.success = self._handler.createRefund(args.orderId, args.merchantTxnId, args.amount)
|
|
|
860 |
except PaymentException, pe:
|
|
|
861 |
result.pe = pe
|
|
|
862 |
oprot.writeMessageBegin("createRefund", TMessageType.REPLY, seqid)
|
|
|
863 |
result.write(oprot)
|
|
|
864 |
oprot.writeMessageEnd()
|
|
|
865 |
oprot.trans.flush()
|
| 2559 |
chandransh |
866 |
|
| 2685 |
chandransh |
867 |
|
| 420 |
ashish |
868 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
869 |
|
| 765 |
rajveer |
870 |
class closeSession_args:
|
|
|
871 |
|
|
|
872 |
thrift_spec = (
|
|
|
873 |
)
|
|
|
874 |
|
|
|
875 |
def read(self, iprot):
|
|
|
876 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
877 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
878 |
return
|
|
|
879 |
iprot.readStructBegin()
|
|
|
880 |
while True:
|
|
|
881 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
882 |
if ftype == TType.STOP:
|
|
|
883 |
break
|
|
|
884 |
else:
|
|
|
885 |
iprot.skip(ftype)
|
|
|
886 |
iprot.readFieldEnd()
|
|
|
887 |
iprot.readStructEnd()
|
|
|
888 |
|
|
|
889 |
def write(self, oprot):
|
|
|
890 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
891 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
892 |
return
|
|
|
893 |
oprot.writeStructBegin('closeSession_args')
|
|
|
894 |
oprot.writeFieldStop()
|
|
|
895 |
oprot.writeStructEnd()
|
|
|
896 |
|
|
|
897 |
def __repr__(self):
|
|
|
898 |
L = ['%s=%r' % (key, value)
|
|
|
899 |
for key, value in self.__dict__.iteritems()]
|
|
|
900 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
901 |
|
|
|
902 |
def __eq__(self, other):
|
|
|
903 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
904 |
|
|
|
905 |
def __ne__(self, other):
|
|
|
906 |
return not (self == other)
|
|
|
907 |
|
|
|
908 |
class closeSession_result:
|
|
|
909 |
|
|
|
910 |
thrift_spec = (
|
|
|
911 |
)
|
|
|
912 |
|
|
|
913 |
def read(self, iprot):
|
|
|
914 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
915 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
916 |
return
|
|
|
917 |
iprot.readStructBegin()
|
|
|
918 |
while True:
|
|
|
919 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
920 |
if ftype == TType.STOP:
|
|
|
921 |
break
|
|
|
922 |
else:
|
|
|
923 |
iprot.skip(ftype)
|
|
|
924 |
iprot.readFieldEnd()
|
|
|
925 |
iprot.readStructEnd()
|
|
|
926 |
|
|
|
927 |
def write(self, oprot):
|
|
|
928 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
929 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
930 |
return
|
|
|
931 |
oprot.writeStructBegin('closeSession_result')
|
|
|
932 |
oprot.writeFieldStop()
|
|
|
933 |
oprot.writeStructEnd()
|
|
|
934 |
|
|
|
935 |
def __repr__(self):
|
|
|
936 |
L = ['%s=%r' % (key, value)
|
|
|
937 |
for key, value in self.__dict__.iteritems()]
|
|
|
938 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
939 |
|
|
|
940 |
def __eq__(self, other):
|
|
|
941 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
942 |
|
|
|
943 |
def __ne__(self, other):
|
|
|
944 |
return not (self == other)
|
|
|
945 |
|
| 420 |
ashish |
946 |
class createPayment_args:
|
|
|
947 |
"""
|
|
|
948 |
Attributes:
|
| 696 |
rajveer |
949 |
- userId
|
| 420 |
ashish |
950 |
- amount
|
| 696 |
rajveer |
951 |
- gatewayId
|
|
|
952 |
- txnId
|
| 420 |
ashish |
953 |
"""
|
|
|
954 |
|
|
|
955 |
thrift_spec = (
|
|
|
956 |
None, # 0
|
| 696 |
rajveer |
957 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
958 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
959 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
960 |
(4, TType.I64, 'txnId', None, None, ), # 4
|
| 420 |
ashish |
961 |
)
|
|
|
962 |
|
| 696 |
rajveer |
963 |
def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None,):
|
|
|
964 |
self.userId = userId
|
| 420 |
ashish |
965 |
self.amount = amount
|
| 696 |
rajveer |
966 |
self.gatewayId = gatewayId
|
|
|
967 |
self.txnId = txnId
|
| 420 |
ashish |
968 |
|
|
|
969 |
def read(self, iprot):
|
|
|
970 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
971 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
972 |
return
|
|
|
973 |
iprot.readStructBegin()
|
|
|
974 |
while True:
|
|
|
975 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
976 |
if ftype == TType.STOP:
|
|
|
977 |
break
|
|
|
978 |
if fid == 1:
|
|
|
979 |
if ftype == TType.I64:
|
| 696 |
rajveer |
980 |
self.userId = iprot.readI64();
|
| 420 |
ashish |
981 |
else:
|
|
|
982 |
iprot.skip(ftype)
|
|
|
983 |
elif fid == 2:
|
| 696 |
rajveer |
984 |
if ftype == TType.DOUBLE:
|
|
|
985 |
self.amount = iprot.readDouble();
|
| 420 |
ashish |
986 |
else:
|
|
|
987 |
iprot.skip(ftype)
|
|
|
988 |
elif fid == 3:
|
| 696 |
rajveer |
989 |
if ftype == TType.I64:
|
|
|
990 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
991 |
else:
|
|
|
992 |
iprot.skip(ftype)
|
|
|
993 |
elif fid == 4:
|
|
|
994 |
if ftype == TType.I64:
|
| 696 |
rajveer |
995 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
996 |
else:
|
|
|
997 |
iprot.skip(ftype)
|
|
|
998 |
else:
|
|
|
999 |
iprot.skip(ftype)
|
|
|
1000 |
iprot.readFieldEnd()
|
|
|
1001 |
iprot.readStructEnd()
|
|
|
1002 |
|
|
|
1003 |
def write(self, oprot):
|
|
|
1004 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1005 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1006 |
return
|
|
|
1007 |
oprot.writeStructBegin('createPayment_args')
|
| 696 |
rajveer |
1008 |
if self.userId != None:
|
|
|
1009 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1010 |
oprot.writeI64(self.userId)
|
| 420 |
ashish |
1011 |
oprot.writeFieldEnd()
|
|
|
1012 |
if self.amount != None:
|
| 696 |
rajveer |
1013 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
| 420 |
ashish |
1014 |
oprot.writeDouble(self.amount)
|
|
|
1015 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1016 |
if self.gatewayId != None:
|
|
|
1017 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
1018 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1019 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1020 |
if self.txnId != None:
|
|
|
1021 |
oprot.writeFieldBegin('txnId', TType.I64, 4)
|
|
|
1022 |
oprot.writeI64(self.txnId)
|
|
|
1023 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
1024 |
oprot.writeFieldStop()
|
|
|
1025 |
oprot.writeStructEnd()
|
|
|
1026 |
|
|
|
1027 |
def __repr__(self):
|
|
|
1028 |
L = ['%s=%r' % (key, value)
|
|
|
1029 |
for key, value in self.__dict__.iteritems()]
|
|
|
1030 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1031 |
|
|
|
1032 |
def __eq__(self, other):
|
|
|
1033 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1034 |
|
|
|
1035 |
def __ne__(self, other):
|
|
|
1036 |
return not (self == other)
|
|
|
1037 |
|
|
|
1038 |
class createPayment_result:
|
|
|
1039 |
"""
|
|
|
1040 |
Attributes:
|
|
|
1041 |
- success
|
|
|
1042 |
- pe
|
|
|
1043 |
"""
|
|
|
1044 |
|
|
|
1045 |
thrift_spec = (
|
|
|
1046 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1047 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1048 |
)
|
|
|
1049 |
|
|
|
1050 |
def __init__(self, success=None, pe=None,):
|
|
|
1051 |
self.success = success
|
|
|
1052 |
self.pe = pe
|
|
|
1053 |
|
|
|
1054 |
def read(self, iprot):
|
|
|
1055 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1056 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1057 |
return
|
|
|
1058 |
iprot.readStructBegin()
|
|
|
1059 |
while True:
|
|
|
1060 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1061 |
if ftype == TType.STOP:
|
|
|
1062 |
break
|
|
|
1063 |
if fid == 0:
|
|
|
1064 |
if ftype == TType.I64:
|
|
|
1065 |
self.success = iprot.readI64();
|
|
|
1066 |
else:
|
|
|
1067 |
iprot.skip(ftype)
|
|
|
1068 |
elif fid == 1:
|
|
|
1069 |
if ftype == TType.STRUCT:
|
|
|
1070 |
self.pe = PaymentException()
|
|
|
1071 |
self.pe.read(iprot)
|
|
|
1072 |
else:
|
|
|
1073 |
iprot.skip(ftype)
|
|
|
1074 |
else:
|
|
|
1075 |
iprot.skip(ftype)
|
|
|
1076 |
iprot.readFieldEnd()
|
|
|
1077 |
iprot.readStructEnd()
|
|
|
1078 |
|
|
|
1079 |
def write(self, oprot):
|
|
|
1080 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1081 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1082 |
return
|
|
|
1083 |
oprot.writeStructBegin('createPayment_result')
|
|
|
1084 |
if self.success != None:
|
|
|
1085 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1086 |
oprot.writeI64(self.success)
|
|
|
1087 |
oprot.writeFieldEnd()
|
|
|
1088 |
if self.pe != None:
|
|
|
1089 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1090 |
self.pe.write(oprot)
|
|
|
1091 |
oprot.writeFieldEnd()
|
|
|
1092 |
oprot.writeFieldStop()
|
|
|
1093 |
oprot.writeStructEnd()
|
|
|
1094 |
|
|
|
1095 |
def __repr__(self):
|
|
|
1096 |
L = ['%s=%r' % (key, value)
|
|
|
1097 |
for key, value in self.__dict__.iteritems()]
|
|
|
1098 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1099 |
|
|
|
1100 |
def __eq__(self, other):
|
|
|
1101 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1102 |
|
|
|
1103 |
def __ne__(self, other):
|
|
|
1104 |
return not (self == other)
|
|
|
1105 |
|
|
|
1106 |
class getPaymentsForUser_args:
|
|
|
1107 |
"""
|
|
|
1108 |
Attributes:
|
|
|
1109 |
- userId
|
| 696 |
rajveer |
1110 |
- fromTime
|
|
|
1111 |
- toTime
|
| 420 |
ashish |
1112 |
- status
|
| 696 |
rajveer |
1113 |
- gatewayId
|
| 420 |
ashish |
1114 |
"""
|
|
|
1115 |
|
|
|
1116 |
thrift_spec = (
|
|
|
1117 |
None, # 0
|
|
|
1118 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 696 |
rajveer |
1119 |
(2, TType.I64, 'fromTime', None, None, ), # 2
|
|
|
1120 |
(3, TType.I64, 'toTime', None, None, ), # 3
|
| 420 |
ashish |
1121 |
(4, TType.I32, 'status', None, None, ), # 4
|
| 696 |
rajveer |
1122 |
(5, TType.I64, 'gatewayId', None, None, ), # 5
|
| 420 |
ashish |
1123 |
)
|
|
|
1124 |
|
| 696 |
rajveer |
1125 |
def __init__(self, userId=None, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
| 420 |
ashish |
1126 |
self.userId = userId
|
| 696 |
rajveer |
1127 |
self.fromTime = fromTime
|
|
|
1128 |
self.toTime = toTime
|
| 420 |
ashish |
1129 |
self.status = status
|
| 696 |
rajveer |
1130 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1131 |
|
|
|
1132 |
def read(self, iprot):
|
|
|
1133 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1134 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1135 |
return
|
|
|
1136 |
iprot.readStructBegin()
|
|
|
1137 |
while True:
|
|
|
1138 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1139 |
if ftype == TType.STOP:
|
|
|
1140 |
break
|
|
|
1141 |
if fid == 1:
|
|
|
1142 |
if ftype == TType.I64:
|
|
|
1143 |
self.userId = iprot.readI64();
|
|
|
1144 |
else:
|
|
|
1145 |
iprot.skip(ftype)
|
|
|
1146 |
elif fid == 2:
|
|
|
1147 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1148 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1149 |
else:
|
|
|
1150 |
iprot.skip(ftype)
|
|
|
1151 |
elif fid == 3:
|
|
|
1152 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1153 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1154 |
else:
|
|
|
1155 |
iprot.skip(ftype)
|
|
|
1156 |
elif fid == 4:
|
|
|
1157 |
if ftype == TType.I32:
|
|
|
1158 |
self.status = iprot.readI32();
|
|
|
1159 |
else:
|
|
|
1160 |
iprot.skip(ftype)
|
|
|
1161 |
elif fid == 5:
|
|
|
1162 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1163 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1164 |
else:
|
|
|
1165 |
iprot.skip(ftype)
|
|
|
1166 |
else:
|
|
|
1167 |
iprot.skip(ftype)
|
|
|
1168 |
iprot.readFieldEnd()
|
|
|
1169 |
iprot.readStructEnd()
|
|
|
1170 |
|
|
|
1171 |
def write(self, oprot):
|
|
|
1172 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1173 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1174 |
return
|
|
|
1175 |
oprot.writeStructBegin('getPaymentsForUser_args')
|
|
|
1176 |
if self.userId != None:
|
|
|
1177 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1178 |
oprot.writeI64(self.userId)
|
|
|
1179 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1180 |
if self.fromTime != None:
|
|
|
1181 |
oprot.writeFieldBegin('fromTime', TType.I64, 2)
|
|
|
1182 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1183 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1184 |
if self.toTime != None:
|
|
|
1185 |
oprot.writeFieldBegin('toTime', TType.I64, 3)
|
|
|
1186 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1187 |
oprot.writeFieldEnd()
|
|
|
1188 |
if self.status != None:
|
|
|
1189 |
oprot.writeFieldBegin('status', TType.I32, 4)
|
|
|
1190 |
oprot.writeI32(self.status)
|
|
|
1191 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1192 |
if self.gatewayId != None:
|
|
|
1193 |
oprot.writeFieldBegin('gatewayId', TType.I64, 5)
|
|
|
1194 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1195 |
oprot.writeFieldEnd()
|
|
|
1196 |
oprot.writeFieldStop()
|
|
|
1197 |
oprot.writeStructEnd()
|
|
|
1198 |
|
|
|
1199 |
def __repr__(self):
|
|
|
1200 |
L = ['%s=%r' % (key, value)
|
|
|
1201 |
for key, value in self.__dict__.iteritems()]
|
|
|
1202 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1203 |
|
|
|
1204 |
def __eq__(self, other):
|
|
|
1205 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1206 |
|
|
|
1207 |
def __ne__(self, other):
|
|
|
1208 |
return not (self == other)
|
|
|
1209 |
|
|
|
1210 |
class getPaymentsForUser_result:
|
|
|
1211 |
"""
|
|
|
1212 |
Attributes:
|
|
|
1213 |
- success
|
|
|
1214 |
- pe
|
|
|
1215 |
"""
|
|
|
1216 |
|
|
|
1217 |
thrift_spec = (
|
|
|
1218 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1219 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1220 |
)
|
|
|
1221 |
|
|
|
1222 |
def __init__(self, success=None, pe=None,):
|
|
|
1223 |
self.success = success
|
|
|
1224 |
self.pe = pe
|
|
|
1225 |
|
|
|
1226 |
def read(self, iprot):
|
|
|
1227 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1228 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1229 |
return
|
|
|
1230 |
iprot.readStructBegin()
|
|
|
1231 |
while True:
|
|
|
1232 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1233 |
if ftype == TType.STOP:
|
|
|
1234 |
break
|
|
|
1235 |
if fid == 0:
|
|
|
1236 |
if ftype == TType.LIST:
|
|
|
1237 |
self.success = []
|
| 696 |
rajveer |
1238 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
1239 |
for _i18 in xrange(_size14):
|
|
|
1240 |
_elem19 = Payment()
|
|
|
1241 |
_elem19.read(iprot)
|
|
|
1242 |
self.success.append(_elem19)
|
| 420 |
ashish |
1243 |
iprot.readListEnd()
|
|
|
1244 |
else:
|
|
|
1245 |
iprot.skip(ftype)
|
|
|
1246 |
elif fid == 1:
|
|
|
1247 |
if ftype == TType.STRUCT:
|
|
|
1248 |
self.pe = PaymentException()
|
|
|
1249 |
self.pe.read(iprot)
|
|
|
1250 |
else:
|
|
|
1251 |
iprot.skip(ftype)
|
|
|
1252 |
else:
|
|
|
1253 |
iprot.skip(ftype)
|
|
|
1254 |
iprot.readFieldEnd()
|
|
|
1255 |
iprot.readStructEnd()
|
|
|
1256 |
|
|
|
1257 |
def write(self, oprot):
|
|
|
1258 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1259 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1260 |
return
|
|
|
1261 |
oprot.writeStructBegin('getPaymentsForUser_result')
|
|
|
1262 |
if self.success != None:
|
|
|
1263 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1264 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 696 |
rajveer |
1265 |
for iter20 in self.success:
|
|
|
1266 |
iter20.write(oprot)
|
| 420 |
ashish |
1267 |
oprot.writeListEnd()
|
|
|
1268 |
oprot.writeFieldEnd()
|
|
|
1269 |
if self.pe != None:
|
|
|
1270 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1271 |
self.pe.write(oprot)
|
|
|
1272 |
oprot.writeFieldEnd()
|
|
|
1273 |
oprot.writeFieldStop()
|
|
|
1274 |
oprot.writeStructEnd()
|
|
|
1275 |
|
|
|
1276 |
def __repr__(self):
|
|
|
1277 |
L = ['%s=%r' % (key, value)
|
|
|
1278 |
for key, value in self.__dict__.iteritems()]
|
|
|
1279 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1280 |
|
|
|
1281 |
def __eq__(self, other):
|
|
|
1282 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1283 |
|
|
|
1284 |
def __ne__(self, other):
|
|
|
1285 |
return not (self == other)
|
|
|
1286 |
|
|
|
1287 |
class getPayments_args:
|
|
|
1288 |
"""
|
|
|
1289 |
Attributes:
|
| 696 |
rajveer |
1290 |
- fromTime
|
|
|
1291 |
- toTime
|
| 420 |
ashish |
1292 |
- status
|
| 696 |
rajveer |
1293 |
- gatewayId
|
| 420 |
ashish |
1294 |
"""
|
|
|
1295 |
|
|
|
1296 |
thrift_spec = (
|
|
|
1297 |
None, # 0
|
| 696 |
rajveer |
1298 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
1299 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
| 420 |
ashish |
1300 |
(3, TType.I32, 'status', None, None, ), # 3
|
| 696 |
rajveer |
1301 |
(4, TType.I64, 'gatewayId', None, None, ), # 4
|
| 420 |
ashish |
1302 |
)
|
|
|
1303 |
|
| 696 |
rajveer |
1304 |
def __init__(self, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
|
|
1305 |
self.fromTime = fromTime
|
|
|
1306 |
self.toTime = toTime
|
| 420 |
ashish |
1307 |
self.status = status
|
| 696 |
rajveer |
1308 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1309 |
|
|
|
1310 |
def read(self, iprot):
|
|
|
1311 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1312 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1313 |
return
|
|
|
1314 |
iprot.readStructBegin()
|
|
|
1315 |
while True:
|
|
|
1316 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1317 |
if ftype == TType.STOP:
|
|
|
1318 |
break
|
|
|
1319 |
if fid == 1:
|
|
|
1320 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1321 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1322 |
else:
|
|
|
1323 |
iprot.skip(ftype)
|
|
|
1324 |
elif fid == 2:
|
|
|
1325 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1326 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1327 |
else:
|
|
|
1328 |
iprot.skip(ftype)
|
|
|
1329 |
elif fid == 3:
|
|
|
1330 |
if ftype == TType.I32:
|
|
|
1331 |
self.status = iprot.readI32();
|
|
|
1332 |
else:
|
|
|
1333 |
iprot.skip(ftype)
|
|
|
1334 |
elif fid == 4:
|
|
|
1335 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1336 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1337 |
else:
|
|
|
1338 |
iprot.skip(ftype)
|
|
|
1339 |
else:
|
|
|
1340 |
iprot.skip(ftype)
|
|
|
1341 |
iprot.readFieldEnd()
|
|
|
1342 |
iprot.readStructEnd()
|
|
|
1343 |
|
|
|
1344 |
def write(self, oprot):
|
|
|
1345 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1346 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1347 |
return
|
|
|
1348 |
oprot.writeStructBegin('getPayments_args')
|
| 696 |
rajveer |
1349 |
if self.fromTime != None:
|
|
|
1350 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
1351 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1352 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1353 |
if self.toTime != None:
|
|
|
1354 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
1355 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1356 |
oprot.writeFieldEnd()
|
|
|
1357 |
if self.status != None:
|
|
|
1358 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
1359 |
oprot.writeI32(self.status)
|
|
|
1360 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1361 |
if self.gatewayId != None:
|
|
|
1362 |
oprot.writeFieldBegin('gatewayId', TType.I64, 4)
|
|
|
1363 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1364 |
oprot.writeFieldEnd()
|
|
|
1365 |
oprot.writeFieldStop()
|
|
|
1366 |
oprot.writeStructEnd()
|
|
|
1367 |
|
|
|
1368 |
def __repr__(self):
|
|
|
1369 |
L = ['%s=%r' % (key, value)
|
|
|
1370 |
for key, value in self.__dict__.iteritems()]
|
|
|
1371 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1372 |
|
|
|
1373 |
def __eq__(self, other):
|
|
|
1374 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1375 |
|
|
|
1376 |
def __ne__(self, other):
|
|
|
1377 |
return not (self == other)
|
|
|
1378 |
|
|
|
1379 |
class getPayments_result:
|
|
|
1380 |
"""
|
|
|
1381 |
Attributes:
|
|
|
1382 |
- success
|
|
|
1383 |
- pe
|
|
|
1384 |
"""
|
|
|
1385 |
|
|
|
1386 |
thrift_spec = (
|
|
|
1387 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1388 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1389 |
)
|
|
|
1390 |
|
|
|
1391 |
def __init__(self, success=None, pe=None,):
|
|
|
1392 |
self.success = success
|
|
|
1393 |
self.pe = pe
|
|
|
1394 |
|
|
|
1395 |
def read(self, iprot):
|
|
|
1396 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1397 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1398 |
return
|
|
|
1399 |
iprot.readStructBegin()
|
|
|
1400 |
while True:
|
|
|
1401 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1402 |
if ftype == TType.STOP:
|
|
|
1403 |
break
|
|
|
1404 |
if fid == 0:
|
|
|
1405 |
if ftype == TType.LIST:
|
|
|
1406 |
self.success = []
|
| 696 |
rajveer |
1407 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
1408 |
for _i25 in xrange(_size21):
|
|
|
1409 |
_elem26 = Payment()
|
|
|
1410 |
_elem26.read(iprot)
|
|
|
1411 |
self.success.append(_elem26)
|
| 420 |
ashish |
1412 |
iprot.readListEnd()
|
|
|
1413 |
else:
|
|
|
1414 |
iprot.skip(ftype)
|
|
|
1415 |
elif fid == 1:
|
|
|
1416 |
if ftype == TType.STRUCT:
|
|
|
1417 |
self.pe = PaymentException()
|
|
|
1418 |
self.pe.read(iprot)
|
|
|
1419 |
else:
|
|
|
1420 |
iprot.skip(ftype)
|
|
|
1421 |
else:
|
|
|
1422 |
iprot.skip(ftype)
|
|
|
1423 |
iprot.readFieldEnd()
|
|
|
1424 |
iprot.readStructEnd()
|
|
|
1425 |
|
|
|
1426 |
def write(self, oprot):
|
|
|
1427 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1428 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1429 |
return
|
|
|
1430 |
oprot.writeStructBegin('getPayments_result')
|
|
|
1431 |
if self.success != None:
|
|
|
1432 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1433 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 696 |
rajveer |
1434 |
for iter27 in self.success:
|
|
|
1435 |
iter27.write(oprot)
|
| 420 |
ashish |
1436 |
oprot.writeListEnd()
|
|
|
1437 |
oprot.writeFieldEnd()
|
|
|
1438 |
if self.pe != None:
|
|
|
1439 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1440 |
self.pe.write(oprot)
|
|
|
1441 |
oprot.writeFieldEnd()
|
|
|
1442 |
oprot.writeFieldStop()
|
|
|
1443 |
oprot.writeStructEnd()
|
|
|
1444 |
|
|
|
1445 |
def __repr__(self):
|
|
|
1446 |
L = ['%s=%r' % (key, value)
|
|
|
1447 |
for key, value in self.__dict__.iteritems()]
|
|
|
1448 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1449 |
|
|
|
1450 |
def __eq__(self, other):
|
|
|
1451 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1452 |
|
|
|
1453 |
def __ne__(self, other):
|
|
|
1454 |
return not (self == other)
|
|
|
1455 |
|
| 696 |
rajveer |
1456 |
class getPaymentGateway_args:
|
| 420 |
ashish |
1457 |
"""
|
|
|
1458 |
Attributes:
|
|
|
1459 |
- id
|
|
|
1460 |
"""
|
|
|
1461 |
|
|
|
1462 |
thrift_spec = (
|
|
|
1463 |
None, # 0
|
|
|
1464 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1465 |
)
|
|
|
1466 |
|
| 696 |
rajveer |
1467 |
def __init__(self, id=None,):
|
| 420 |
ashish |
1468 |
self.id = id
|
|
|
1469 |
|
|
|
1470 |
def read(self, iprot):
|
|
|
1471 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1472 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1473 |
return
|
|
|
1474 |
iprot.readStructBegin()
|
|
|
1475 |
while True:
|
|
|
1476 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1477 |
if ftype == TType.STOP:
|
|
|
1478 |
break
|
|
|
1479 |
if fid == 1:
|
|
|
1480 |
if ftype == TType.I64:
|
|
|
1481 |
self.id = iprot.readI64();
|
|
|
1482 |
else:
|
|
|
1483 |
iprot.skip(ftype)
|
|
|
1484 |
else:
|
|
|
1485 |
iprot.skip(ftype)
|
|
|
1486 |
iprot.readFieldEnd()
|
|
|
1487 |
iprot.readStructEnd()
|
|
|
1488 |
|
|
|
1489 |
def write(self, oprot):
|
|
|
1490 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1491 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1492 |
return
|
| 696 |
rajveer |
1493 |
oprot.writeStructBegin('getPaymentGateway_args')
|
| 420 |
ashish |
1494 |
if self.id != None:
|
|
|
1495 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1496 |
oprot.writeI64(self.id)
|
|
|
1497 |
oprot.writeFieldEnd()
|
|
|
1498 |
oprot.writeFieldStop()
|
|
|
1499 |
oprot.writeStructEnd()
|
|
|
1500 |
|
|
|
1501 |
def __repr__(self):
|
|
|
1502 |
L = ['%s=%r' % (key, value)
|
|
|
1503 |
for key, value in self.__dict__.iteritems()]
|
|
|
1504 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1505 |
|
|
|
1506 |
def __eq__(self, other):
|
|
|
1507 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1508 |
|
|
|
1509 |
def __ne__(self, other):
|
|
|
1510 |
return not (self == other)
|
|
|
1511 |
|
| 696 |
rajveer |
1512 |
class getPaymentGateway_result:
|
| 420 |
ashish |
1513 |
"""
|
|
|
1514 |
Attributes:
|
|
|
1515 |
- success
|
|
|
1516 |
- pe
|
|
|
1517 |
"""
|
|
|
1518 |
|
|
|
1519 |
thrift_spec = (
|
| 696 |
rajveer |
1520 |
(0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
|
| 420 |
ashish |
1521 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1522 |
)
|
|
|
1523 |
|
|
|
1524 |
def __init__(self, success=None, pe=None,):
|
|
|
1525 |
self.success = success
|
|
|
1526 |
self.pe = pe
|
|
|
1527 |
|
|
|
1528 |
def read(self, iprot):
|
|
|
1529 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1530 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1531 |
return
|
|
|
1532 |
iprot.readStructBegin()
|
|
|
1533 |
while True:
|
|
|
1534 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1535 |
if ftype == TType.STOP:
|
|
|
1536 |
break
|
|
|
1537 |
if fid == 0:
|
| 696 |
rajveer |
1538 |
if ftype == TType.STRUCT:
|
|
|
1539 |
self.success = PaymentGateway()
|
|
|
1540 |
self.success.read(iprot)
|
| 420 |
ashish |
1541 |
else:
|
|
|
1542 |
iprot.skip(ftype)
|
|
|
1543 |
elif fid == 1:
|
|
|
1544 |
if ftype == TType.STRUCT:
|
|
|
1545 |
self.pe = PaymentException()
|
|
|
1546 |
self.pe.read(iprot)
|
|
|
1547 |
else:
|
|
|
1548 |
iprot.skip(ftype)
|
|
|
1549 |
else:
|
|
|
1550 |
iprot.skip(ftype)
|
|
|
1551 |
iprot.readFieldEnd()
|
|
|
1552 |
iprot.readStructEnd()
|
|
|
1553 |
|
|
|
1554 |
def write(self, oprot):
|
|
|
1555 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1556 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1557 |
return
|
| 696 |
rajveer |
1558 |
oprot.writeStructBegin('getPaymentGateway_result')
|
| 420 |
ashish |
1559 |
if self.success != None:
|
| 696 |
rajveer |
1560 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1561 |
self.success.write(oprot)
|
| 420 |
ashish |
1562 |
oprot.writeFieldEnd()
|
|
|
1563 |
if self.pe != None:
|
|
|
1564 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1565 |
self.pe.write(oprot)
|
|
|
1566 |
oprot.writeFieldEnd()
|
|
|
1567 |
oprot.writeFieldStop()
|
|
|
1568 |
oprot.writeStructEnd()
|
|
|
1569 |
|
|
|
1570 |
def __repr__(self):
|
|
|
1571 |
L = ['%s=%r' % (key, value)
|
|
|
1572 |
for key, value in self.__dict__.iteritems()]
|
|
|
1573 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1574 |
|
|
|
1575 |
def __eq__(self, other):
|
|
|
1576 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1577 |
|
|
|
1578 |
def __ne__(self, other):
|
|
|
1579 |
return not (self == other)
|
|
|
1580 |
|
| 696 |
rajveer |
1581 |
class getPayment_args:
|
| 420 |
ashish |
1582 |
"""
|
|
|
1583 |
Attributes:
|
|
|
1584 |
- id
|
|
|
1585 |
"""
|
|
|
1586 |
|
|
|
1587 |
thrift_spec = (
|
|
|
1588 |
None, # 0
|
|
|
1589 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1590 |
)
|
|
|
1591 |
|
|
|
1592 |
def __init__(self, id=None,):
|
|
|
1593 |
self.id = id
|
|
|
1594 |
|
|
|
1595 |
def read(self, iprot):
|
|
|
1596 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1597 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1598 |
return
|
|
|
1599 |
iprot.readStructBegin()
|
|
|
1600 |
while True:
|
|
|
1601 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1602 |
if ftype == TType.STOP:
|
|
|
1603 |
break
|
|
|
1604 |
if fid == 1:
|
|
|
1605 |
if ftype == TType.I64:
|
|
|
1606 |
self.id = iprot.readI64();
|
|
|
1607 |
else:
|
|
|
1608 |
iprot.skip(ftype)
|
|
|
1609 |
else:
|
|
|
1610 |
iprot.skip(ftype)
|
|
|
1611 |
iprot.readFieldEnd()
|
|
|
1612 |
iprot.readStructEnd()
|
|
|
1613 |
|
|
|
1614 |
def write(self, oprot):
|
|
|
1615 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1616 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1617 |
return
|
| 696 |
rajveer |
1618 |
oprot.writeStructBegin('getPayment_args')
|
| 420 |
ashish |
1619 |
if self.id != None:
|
|
|
1620 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1621 |
oprot.writeI64(self.id)
|
|
|
1622 |
oprot.writeFieldEnd()
|
|
|
1623 |
oprot.writeFieldStop()
|
|
|
1624 |
oprot.writeStructEnd()
|
|
|
1625 |
|
|
|
1626 |
def __repr__(self):
|
|
|
1627 |
L = ['%s=%r' % (key, value)
|
|
|
1628 |
for key, value in self.__dict__.iteritems()]
|
|
|
1629 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1630 |
|
|
|
1631 |
def __eq__(self, other):
|
|
|
1632 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1633 |
|
|
|
1634 |
def __ne__(self, other):
|
|
|
1635 |
return not (self == other)
|
|
|
1636 |
|
| 696 |
rajveer |
1637 |
class getPayment_result:
|
| 420 |
ashish |
1638 |
"""
|
|
|
1639 |
Attributes:
|
|
|
1640 |
- success
|
|
|
1641 |
- pe
|
|
|
1642 |
"""
|
|
|
1643 |
|
|
|
1644 |
thrift_spec = (
|
| 696 |
rajveer |
1645 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
| 420 |
ashish |
1646 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1647 |
)
|
|
|
1648 |
|
|
|
1649 |
def __init__(self, success=None, pe=None,):
|
|
|
1650 |
self.success = success
|
|
|
1651 |
self.pe = pe
|
|
|
1652 |
|
|
|
1653 |
def read(self, iprot):
|
|
|
1654 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1655 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1656 |
return
|
|
|
1657 |
iprot.readStructBegin()
|
|
|
1658 |
while True:
|
|
|
1659 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1660 |
if ftype == TType.STOP:
|
|
|
1661 |
break
|
|
|
1662 |
if fid == 0:
|
|
|
1663 |
if ftype == TType.STRUCT:
|
| 696 |
rajveer |
1664 |
self.success = Payment()
|
| 420 |
ashish |
1665 |
self.success.read(iprot)
|
|
|
1666 |
else:
|
|
|
1667 |
iprot.skip(ftype)
|
|
|
1668 |
elif fid == 1:
|
|
|
1669 |
if ftype == TType.STRUCT:
|
|
|
1670 |
self.pe = PaymentException()
|
|
|
1671 |
self.pe.read(iprot)
|
|
|
1672 |
else:
|
|
|
1673 |
iprot.skip(ftype)
|
|
|
1674 |
else:
|
|
|
1675 |
iprot.skip(ftype)
|
|
|
1676 |
iprot.readFieldEnd()
|
|
|
1677 |
iprot.readStructEnd()
|
|
|
1678 |
|
|
|
1679 |
def write(self, oprot):
|
|
|
1680 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1681 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1682 |
return
|
| 696 |
rajveer |
1683 |
oprot.writeStructBegin('getPayment_result')
|
| 420 |
ashish |
1684 |
if self.success != None:
|
|
|
1685 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1686 |
self.success.write(oprot)
|
|
|
1687 |
oprot.writeFieldEnd()
|
|
|
1688 |
if self.pe != None:
|
|
|
1689 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1690 |
self.pe.write(oprot)
|
|
|
1691 |
oprot.writeFieldEnd()
|
|
|
1692 |
oprot.writeFieldStop()
|
|
|
1693 |
oprot.writeStructEnd()
|
|
|
1694 |
|
|
|
1695 |
def __repr__(self):
|
|
|
1696 |
L = ['%s=%r' % (key, value)
|
|
|
1697 |
for key, value in self.__dict__.iteritems()]
|
|
|
1698 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1699 |
|
|
|
1700 |
def __eq__(self, other):
|
|
|
1701 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1702 |
|
|
|
1703 |
def __ne__(self, other):
|
|
|
1704 |
return not (self == other)
|
|
|
1705 |
|
| 696 |
rajveer |
1706 |
class getPaymentForTxnId_args:
|
| 420 |
ashish |
1707 |
"""
|
|
|
1708 |
Attributes:
|
| 696 |
rajveer |
1709 |
- txnId
|
| 420 |
ashish |
1710 |
"""
|
|
|
1711 |
|
|
|
1712 |
thrift_spec = (
|
|
|
1713 |
None, # 0
|
| 696 |
rajveer |
1714 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
| 420 |
ashish |
1715 |
)
|
|
|
1716 |
|
| 696 |
rajveer |
1717 |
def __init__(self, txnId=None,):
|
|
|
1718 |
self.txnId = txnId
|
| 420 |
ashish |
1719 |
|
|
|
1720 |
def read(self, iprot):
|
|
|
1721 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1722 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1723 |
return
|
|
|
1724 |
iprot.readStructBegin()
|
|
|
1725 |
while True:
|
|
|
1726 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1727 |
if ftype == TType.STOP:
|
|
|
1728 |
break
|
|
|
1729 |
if fid == 1:
|
|
|
1730 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1731 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
1732 |
else:
|
|
|
1733 |
iprot.skip(ftype)
|
|
|
1734 |
else:
|
|
|
1735 |
iprot.skip(ftype)
|
|
|
1736 |
iprot.readFieldEnd()
|
|
|
1737 |
iprot.readStructEnd()
|
|
|
1738 |
|
|
|
1739 |
def write(self, oprot):
|
|
|
1740 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1741 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1742 |
return
|
| 696 |
rajveer |
1743 |
oprot.writeStructBegin('getPaymentForTxnId_args')
|
|
|
1744 |
if self.txnId != None:
|
|
|
1745 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
1746 |
oprot.writeI64(self.txnId)
|
| 420 |
ashish |
1747 |
oprot.writeFieldEnd()
|
|
|
1748 |
oprot.writeFieldStop()
|
|
|
1749 |
oprot.writeStructEnd()
|
|
|
1750 |
|
|
|
1751 |
def __repr__(self):
|
|
|
1752 |
L = ['%s=%r' % (key, value)
|
|
|
1753 |
for key, value in self.__dict__.iteritems()]
|
|
|
1754 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1755 |
|
|
|
1756 |
def __eq__(self, other):
|
|
|
1757 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1758 |
|
|
|
1759 |
def __ne__(self, other):
|
|
|
1760 |
return not (self == other)
|
|
|
1761 |
|
| 696 |
rajveer |
1762 |
class getPaymentForTxnId_result:
|
| 420 |
ashish |
1763 |
"""
|
|
|
1764 |
Attributes:
|
|
|
1765 |
- success
|
|
|
1766 |
- pe
|
|
|
1767 |
"""
|
|
|
1768 |
|
|
|
1769 |
thrift_spec = (
|
| 696 |
rajveer |
1770 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
| 420 |
ashish |
1771 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1772 |
)
|
|
|
1773 |
|
|
|
1774 |
def __init__(self, success=None, pe=None,):
|
|
|
1775 |
self.success = success
|
|
|
1776 |
self.pe = pe
|
|
|
1777 |
|
|
|
1778 |
def read(self, iprot):
|
|
|
1779 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1780 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1781 |
return
|
|
|
1782 |
iprot.readStructBegin()
|
|
|
1783 |
while True:
|
|
|
1784 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1785 |
if ftype == TType.STOP:
|
|
|
1786 |
break
|
|
|
1787 |
if fid == 0:
|
| 696 |
rajveer |
1788 |
if ftype == TType.LIST:
|
|
|
1789 |
self.success = []
|
|
|
1790 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
1791 |
for _i32 in xrange(_size28):
|
|
|
1792 |
_elem33 = Payment()
|
|
|
1793 |
_elem33.read(iprot)
|
|
|
1794 |
self.success.append(_elem33)
|
|
|
1795 |
iprot.readListEnd()
|
| 420 |
ashish |
1796 |
else:
|
|
|
1797 |
iprot.skip(ftype)
|
|
|
1798 |
elif fid == 1:
|
|
|
1799 |
if ftype == TType.STRUCT:
|
|
|
1800 |
self.pe = PaymentException()
|
|
|
1801 |
self.pe.read(iprot)
|
|
|
1802 |
else:
|
|
|
1803 |
iprot.skip(ftype)
|
|
|
1804 |
else:
|
|
|
1805 |
iprot.skip(ftype)
|
|
|
1806 |
iprot.readFieldEnd()
|
|
|
1807 |
iprot.readStructEnd()
|
|
|
1808 |
|
|
|
1809 |
def write(self, oprot):
|
|
|
1810 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1811 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1812 |
return
|
| 696 |
rajveer |
1813 |
oprot.writeStructBegin('getPaymentForTxnId_result')
|
| 420 |
ashish |
1814 |
if self.success != None:
|
| 696 |
rajveer |
1815 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1816 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1817 |
for iter34 in self.success:
|
|
|
1818 |
iter34.write(oprot)
|
|
|
1819 |
oprot.writeListEnd()
|
| 420 |
ashish |
1820 |
oprot.writeFieldEnd()
|
|
|
1821 |
if self.pe != None:
|
|
|
1822 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1823 |
self.pe.write(oprot)
|
|
|
1824 |
oprot.writeFieldEnd()
|
|
|
1825 |
oprot.writeFieldStop()
|
|
|
1826 |
oprot.writeStructEnd()
|
|
|
1827 |
|
|
|
1828 |
def __repr__(self):
|
|
|
1829 |
L = ['%s=%r' % (key, value)
|
|
|
1830 |
for key, value in self.__dict__.iteritems()]
|
|
|
1831 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1832 |
|
|
|
1833 |
def __eq__(self, other):
|
|
|
1834 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1835 |
|
|
|
1836 |
def __ne__(self, other):
|
|
|
1837 |
return not (self == other)
|
|
|
1838 |
|
| 696 |
rajveer |
1839 |
class updatePaymentDetails_args:
|
| 420 |
ashish |
1840 |
"""
|
|
|
1841 |
Attributes:
|
|
|
1842 |
- id
|
| 696 |
rajveer |
1843 |
- gatewayPaymentId
|
|
|
1844 |
- sessionId
|
|
|
1845 |
- gatewayTxnStatus
|
|
|
1846 |
- description
|
|
|
1847 |
- gatewayTxnId
|
|
|
1848 |
- authCode
|
|
|
1849 |
- referenceCode
|
|
|
1850 |
- errorCode
|
|
|
1851 |
- status
|
| 1120 |
rajveer |
1852 |
- gatewayTxnDate
|
| 696 |
rajveer |
1853 |
- attributes
|
| 420 |
ashish |
1854 |
"""
|
|
|
1855 |
|
|
|
1856 |
thrift_spec = (
|
|
|
1857 |
None, # 0
|
|
|
1858 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 696 |
rajveer |
1859 |
(2, TType.STRING, 'gatewayPaymentId', None, None, ), # 2
|
|
|
1860 |
(3, TType.STRING, 'sessionId', None, None, ), # 3
|
|
|
1861 |
(4, TType.STRING, 'gatewayTxnStatus', None, None, ), # 4
|
|
|
1862 |
(5, TType.STRING, 'description', None, None, ), # 5
|
|
|
1863 |
(6, TType.STRING, 'gatewayTxnId', None, None, ), # 6
|
|
|
1864 |
(7, TType.STRING, 'authCode', None, None, ), # 7
|
|
|
1865 |
(8, TType.STRING, 'referenceCode', None, None, ), # 8
|
|
|
1866 |
(9, TType.STRING, 'errorCode', None, None, ), # 9
|
|
|
1867 |
(10, TType.I32, 'status', None, None, ), # 10
|
| 1120 |
rajveer |
1868 |
(11, TType.STRING, 'gatewayTxnDate', None, None, ), # 11
|
|
|
1869 |
(12, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 12
|
| 420 |
ashish |
1870 |
)
|
|
|
1871 |
|
| 1120 |
rajveer |
1872 |
def __init__(self, id=None, gatewayPaymentId=None, sessionId=None, gatewayTxnStatus=None, description=None, gatewayTxnId=None, authCode=None, referenceCode=None, errorCode=None, status=None, gatewayTxnDate=None, attributes=None,):
|
| 420 |
ashish |
1873 |
self.id = id
|
| 696 |
rajveer |
1874 |
self.gatewayPaymentId = gatewayPaymentId
|
|
|
1875 |
self.sessionId = sessionId
|
|
|
1876 |
self.gatewayTxnStatus = gatewayTxnStatus
|
|
|
1877 |
self.description = description
|
|
|
1878 |
self.gatewayTxnId = gatewayTxnId
|
|
|
1879 |
self.authCode = authCode
|
|
|
1880 |
self.referenceCode = referenceCode
|
|
|
1881 |
self.errorCode = errorCode
|
|
|
1882 |
self.status = status
|
| 1120 |
rajveer |
1883 |
self.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
1884 |
self.attributes = attributes
|
| 420 |
ashish |
1885 |
|
|
|
1886 |
def read(self, iprot):
|
|
|
1887 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1888 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1889 |
return
|
|
|
1890 |
iprot.readStructBegin()
|
|
|
1891 |
while True:
|
|
|
1892 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1893 |
if ftype == TType.STOP:
|
|
|
1894 |
break
|
|
|
1895 |
if fid == 1:
|
|
|
1896 |
if ftype == TType.I64:
|
|
|
1897 |
self.id = iprot.readI64();
|
|
|
1898 |
else:
|
|
|
1899 |
iprot.skip(ftype)
|
|
|
1900 |
elif fid == 2:
|
|
|
1901 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1902 |
self.gatewayPaymentId = iprot.readString();
|
| 420 |
ashish |
1903 |
else:
|
|
|
1904 |
iprot.skip(ftype)
|
|
|
1905 |
elif fid == 3:
|
|
|
1906 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1907 |
self.sessionId = iprot.readString();
|
| 420 |
ashish |
1908 |
else:
|
|
|
1909 |
iprot.skip(ftype)
|
|
|
1910 |
elif fid == 4:
|
|
|
1911 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1912 |
self.gatewayTxnStatus = iprot.readString();
|
| 420 |
ashish |
1913 |
else:
|
|
|
1914 |
iprot.skip(ftype)
|
|
|
1915 |
elif fid == 5:
|
|
|
1916 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1917 |
self.description = iprot.readString();
|
| 420 |
ashish |
1918 |
else:
|
|
|
1919 |
iprot.skip(ftype)
|
|
|
1920 |
elif fid == 6:
|
|
|
1921 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1922 |
self.gatewayTxnId = iprot.readString();
|
| 420 |
ashish |
1923 |
else:
|
|
|
1924 |
iprot.skip(ftype)
|
|
|
1925 |
elif fid == 7:
|
|
|
1926 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1927 |
self.authCode = iprot.readString();
|
| 420 |
ashish |
1928 |
else:
|
|
|
1929 |
iprot.skip(ftype)
|
|
|
1930 |
elif fid == 8:
|
|
|
1931 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1932 |
self.referenceCode = iprot.readString();
|
| 420 |
ashish |
1933 |
else:
|
|
|
1934 |
iprot.skip(ftype)
|
| 696 |
rajveer |
1935 |
elif fid == 9:
|
|
|
1936 |
if ftype == TType.STRING:
|
|
|
1937 |
self.errorCode = iprot.readString();
|
|
|
1938 |
else:
|
|
|
1939 |
iprot.skip(ftype)
|
|
|
1940 |
elif fid == 10:
|
|
|
1941 |
if ftype == TType.I32:
|
|
|
1942 |
self.status = iprot.readI32();
|
|
|
1943 |
else:
|
|
|
1944 |
iprot.skip(ftype)
|
|
|
1945 |
elif fid == 11:
|
| 1120 |
rajveer |
1946 |
if ftype == TType.STRING:
|
|
|
1947 |
self.gatewayTxnDate = iprot.readString();
|
|
|
1948 |
else:
|
|
|
1949 |
iprot.skip(ftype)
|
|
|
1950 |
elif fid == 12:
|
| 696 |
rajveer |
1951 |
if ftype == TType.LIST:
|
|
|
1952 |
self.attributes = []
|
|
|
1953 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
1954 |
for _i39 in xrange(_size35):
|
|
|
1955 |
_elem40 = Attribute()
|
|
|
1956 |
_elem40.read(iprot)
|
|
|
1957 |
self.attributes.append(_elem40)
|
|
|
1958 |
iprot.readListEnd()
|
|
|
1959 |
else:
|
|
|
1960 |
iprot.skip(ftype)
|
| 420 |
ashish |
1961 |
else:
|
|
|
1962 |
iprot.skip(ftype)
|
|
|
1963 |
iprot.readFieldEnd()
|
|
|
1964 |
iprot.readStructEnd()
|
|
|
1965 |
|
|
|
1966 |
def write(self, oprot):
|
|
|
1967 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1968 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1969 |
return
|
| 696 |
rajveer |
1970 |
oprot.writeStructBegin('updatePaymentDetails_args')
|
| 420 |
ashish |
1971 |
if self.id != None:
|
|
|
1972 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1973 |
oprot.writeI64(self.id)
|
|
|
1974 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1975 |
if self.gatewayPaymentId != None:
|
|
|
1976 |
oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
|
|
|
1977 |
oprot.writeString(self.gatewayPaymentId)
|
| 420 |
ashish |
1978 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1979 |
if self.sessionId != None:
|
|
|
1980 |
oprot.writeFieldBegin('sessionId', TType.STRING, 3)
|
|
|
1981 |
oprot.writeString(self.sessionId)
|
| 420 |
ashish |
1982 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1983 |
if self.gatewayTxnStatus != None:
|
|
|
1984 |
oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
|
|
|
1985 |
oprot.writeString(self.gatewayTxnStatus)
|
| 420 |
ashish |
1986 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1987 |
if self.description != None:
|
|
|
1988 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
1989 |
oprot.writeString(self.description)
|
| 420 |
ashish |
1990 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1991 |
if self.gatewayTxnId != None:
|
|
|
1992 |
oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
|
|
|
1993 |
oprot.writeString(self.gatewayTxnId)
|
| 420 |
ashish |
1994 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1995 |
if self.authCode != None:
|
|
|
1996 |
oprot.writeFieldBegin('authCode', TType.STRING, 7)
|
|
|
1997 |
oprot.writeString(self.authCode)
|
| 420 |
ashish |
1998 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1999 |
if self.referenceCode != None:
|
|
|
2000 |
oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
|
|
|
2001 |
oprot.writeString(self.referenceCode)
|
| 420 |
ashish |
2002 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
2003 |
if self.errorCode != None:
|
|
|
2004 |
oprot.writeFieldBegin('errorCode', TType.STRING, 9)
|
|
|
2005 |
oprot.writeString(self.errorCode)
|
|
|
2006 |
oprot.writeFieldEnd()
|
|
|
2007 |
if self.status != None:
|
|
|
2008 |
oprot.writeFieldBegin('status', TType.I32, 10)
|
|
|
2009 |
oprot.writeI32(self.status)
|
|
|
2010 |
oprot.writeFieldEnd()
|
| 1120 |
rajveer |
2011 |
if self.gatewayTxnDate != None:
|
|
|
2012 |
oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
|
|
|
2013 |
oprot.writeString(self.gatewayTxnDate)
|
|
|
2014 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
2015 |
if self.attributes != None:
|
| 1120 |
rajveer |
2016 |
oprot.writeFieldBegin('attributes', TType.LIST, 12)
|
| 696 |
rajveer |
2017 |
oprot.writeListBegin(TType.STRUCT, len(self.attributes))
|
|
|
2018 |
for iter41 in self.attributes:
|
|
|
2019 |
iter41.write(oprot)
|
|
|
2020 |
oprot.writeListEnd()
|
|
|
2021 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
2022 |
oprot.writeFieldStop()
|
|
|
2023 |
oprot.writeStructEnd()
|
|
|
2024 |
|
|
|
2025 |
def __repr__(self):
|
|
|
2026 |
L = ['%s=%r' % (key, value)
|
|
|
2027 |
for key, value in self.__dict__.iteritems()]
|
|
|
2028 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2029 |
|
|
|
2030 |
def __eq__(self, other):
|
|
|
2031 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2032 |
|
|
|
2033 |
def __ne__(self, other):
|
|
|
2034 |
return not (self == other)
|
|
|
2035 |
|
| 696 |
rajveer |
2036 |
class updatePaymentDetails_result:
|
| 420 |
ashish |
2037 |
"""
|
|
|
2038 |
Attributes:
|
| 696 |
rajveer |
2039 |
- success
|
| 420 |
ashish |
2040 |
- pe
|
|
|
2041 |
"""
|
|
|
2042 |
|
|
|
2043 |
thrift_spec = (
|
| 696 |
rajveer |
2044 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 420 |
ashish |
2045 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2046 |
)
|
|
|
2047 |
|
| 696 |
rajveer |
2048 |
def __init__(self, success=None, pe=None,):
|
|
|
2049 |
self.success = success
|
| 420 |
ashish |
2050 |
self.pe = pe
|
|
|
2051 |
|
|
|
2052 |
def read(self, iprot):
|
|
|
2053 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2054 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2055 |
return
|
|
|
2056 |
iprot.readStructBegin()
|
|
|
2057 |
while True:
|
|
|
2058 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2059 |
if ftype == TType.STOP:
|
|
|
2060 |
break
|
| 696 |
rajveer |
2061 |
if fid == 0:
|
|
|
2062 |
if ftype == TType.BOOL:
|
|
|
2063 |
self.success = iprot.readBool();
|
|
|
2064 |
else:
|
|
|
2065 |
iprot.skip(ftype)
|
|
|
2066 |
elif fid == 1:
|
| 420 |
ashish |
2067 |
if ftype == TType.STRUCT:
|
|
|
2068 |
self.pe = PaymentException()
|
|
|
2069 |
self.pe.read(iprot)
|
|
|
2070 |
else:
|
|
|
2071 |
iprot.skip(ftype)
|
|
|
2072 |
else:
|
|
|
2073 |
iprot.skip(ftype)
|
|
|
2074 |
iprot.readFieldEnd()
|
|
|
2075 |
iprot.readStructEnd()
|
|
|
2076 |
|
|
|
2077 |
def write(self, oprot):
|
|
|
2078 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2079 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2080 |
return
|
| 696 |
rajveer |
2081 |
oprot.writeStructBegin('updatePaymentDetails_result')
|
|
|
2082 |
if self.success != None:
|
|
|
2083 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
2084 |
oprot.writeBool(self.success)
|
|
|
2085 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
2086 |
if self.pe != None:
|
|
|
2087 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2088 |
self.pe.write(oprot)
|
|
|
2089 |
oprot.writeFieldEnd()
|
|
|
2090 |
oprot.writeFieldStop()
|
|
|
2091 |
oprot.writeStructEnd()
|
|
|
2092 |
|
|
|
2093 |
def __repr__(self):
|
|
|
2094 |
L = ['%s=%r' % (key, value)
|
|
|
2095 |
for key, value in self.__dict__.iteritems()]
|
|
|
2096 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2097 |
|
|
|
2098 |
def __eq__(self, other):
|
|
|
2099 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2100 |
|
|
|
2101 |
def __ne__(self, other):
|
|
|
2102 |
return not (self == other)
|
|
|
2103 |
|
| 1731 |
ankur.sing |
2104 |
class getSuccessfulPaymentsAmountRange_args:
|
| 420 |
ashish |
2105 |
|
| 1627 |
ankur.sing |
2106 |
thrift_spec = (
|
|
|
2107 |
)
|
|
|
2108 |
|
|
|
2109 |
def read(self, iprot):
|
|
|
2110 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2111 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2112 |
return
|
|
|
2113 |
iprot.readStructBegin()
|
|
|
2114 |
while True:
|
|
|
2115 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2116 |
if ftype == TType.STOP:
|
|
|
2117 |
break
|
|
|
2118 |
else:
|
|
|
2119 |
iprot.skip(ftype)
|
|
|
2120 |
iprot.readFieldEnd()
|
|
|
2121 |
iprot.readStructEnd()
|
|
|
2122 |
|
|
|
2123 |
def write(self, oprot):
|
|
|
2124 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2125 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2126 |
return
|
| 1731 |
ankur.sing |
2127 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_args')
|
| 1627 |
ankur.sing |
2128 |
oprot.writeFieldStop()
|
|
|
2129 |
oprot.writeStructEnd()
|
|
|
2130 |
|
|
|
2131 |
def __repr__(self):
|
|
|
2132 |
L = ['%s=%r' % (key, value)
|
|
|
2133 |
for key, value in self.__dict__.iteritems()]
|
|
|
2134 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2135 |
|
|
|
2136 |
def __eq__(self, other):
|
|
|
2137 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2138 |
|
|
|
2139 |
def __ne__(self, other):
|
|
|
2140 |
return not (self == other)
|
|
|
2141 |
|
| 1731 |
ankur.sing |
2142 |
class getSuccessfulPaymentsAmountRange_result:
|
| 1627 |
ankur.sing |
2143 |
"""
|
|
|
2144 |
Attributes:
|
|
|
2145 |
- success
|
|
|
2146 |
"""
|
|
|
2147 |
|
|
|
2148 |
thrift_spec = (
|
| 1731 |
ankur.sing |
2149 |
(0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
|
| 1627 |
ankur.sing |
2150 |
)
|
|
|
2151 |
|
|
|
2152 |
def __init__(self, success=None,):
|
|
|
2153 |
self.success = success
|
|
|
2154 |
|
|
|
2155 |
def read(self, iprot):
|
|
|
2156 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2157 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2158 |
return
|
|
|
2159 |
iprot.readStructBegin()
|
|
|
2160 |
while True:
|
|
|
2161 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2162 |
if ftype == TType.STOP:
|
|
|
2163 |
break
|
|
|
2164 |
if fid == 0:
|
| 1731 |
ankur.sing |
2165 |
if ftype == TType.LIST:
|
|
|
2166 |
self.success = []
|
|
|
2167 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
2168 |
for _i46 in xrange(_size42):
|
|
|
2169 |
_elem47 = iprot.readDouble();
|
|
|
2170 |
self.success.append(_elem47)
|
|
|
2171 |
iprot.readListEnd()
|
| 1627 |
ankur.sing |
2172 |
else:
|
|
|
2173 |
iprot.skip(ftype)
|
|
|
2174 |
else:
|
|
|
2175 |
iprot.skip(ftype)
|
|
|
2176 |
iprot.readFieldEnd()
|
|
|
2177 |
iprot.readStructEnd()
|
|
|
2178 |
|
|
|
2179 |
def write(self, oprot):
|
|
|
2180 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2181 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2182 |
return
|
| 1731 |
ankur.sing |
2183 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
|
| 1627 |
ankur.sing |
2184 |
if self.success != None:
|
| 1731 |
ankur.sing |
2185 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2186 |
oprot.writeListBegin(TType.DOUBLE, len(self.success))
|
|
|
2187 |
for iter48 in self.success:
|
|
|
2188 |
oprot.writeDouble(iter48)
|
|
|
2189 |
oprot.writeListEnd()
|
| 1627 |
ankur.sing |
2190 |
oprot.writeFieldEnd()
|
|
|
2191 |
oprot.writeFieldStop()
|
|
|
2192 |
oprot.writeStructEnd()
|
|
|
2193 |
|
|
|
2194 |
def __repr__(self):
|
|
|
2195 |
L = ['%s=%r' % (key, value)
|
|
|
2196 |
for key, value in self.__dict__.iteritems()]
|
|
|
2197 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2198 |
|
|
|
2199 |
def __eq__(self, other):
|
|
|
2200 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2201 |
|
|
|
2202 |
def __ne__(self, other):
|
|
|
2203 |
return not (self == other)
|
|
|
2204 |
|
| 2559 |
chandransh |
2205 |
class updateAndCaptureEbsPayment_args:
|
|
|
2206 |
"""
|
|
|
2207 |
Attributes:
|
|
|
2208 |
- paymentParams
|
|
|
2209 |
"""
|
| 1627 |
ankur.sing |
2210 |
|
| 2559 |
chandransh |
2211 |
thrift_spec = (
|
|
|
2212 |
None, # 0
|
|
|
2213 |
(1, TType.MAP, 'paymentParams', (TType.STRING,None,TType.STRING,None), None, ), # 1
|
|
|
2214 |
)
|
|
|
2215 |
|
|
|
2216 |
def __init__(self, paymentParams=None,):
|
|
|
2217 |
self.paymentParams = paymentParams
|
|
|
2218 |
|
|
|
2219 |
def read(self, iprot):
|
|
|
2220 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2221 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2222 |
return
|
|
|
2223 |
iprot.readStructBegin()
|
|
|
2224 |
while True:
|
|
|
2225 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2226 |
if ftype == TType.STOP:
|
|
|
2227 |
break
|
|
|
2228 |
if fid == 1:
|
|
|
2229 |
if ftype == TType.MAP:
|
|
|
2230 |
self.paymentParams = {}
|
|
|
2231 |
(_ktype50, _vtype51, _size49 ) = iprot.readMapBegin()
|
|
|
2232 |
for _i53 in xrange(_size49):
|
|
|
2233 |
_key54 = iprot.readString();
|
|
|
2234 |
_val55 = iprot.readString();
|
|
|
2235 |
self.paymentParams[_key54] = _val55
|
|
|
2236 |
iprot.readMapEnd()
|
|
|
2237 |
else:
|
|
|
2238 |
iprot.skip(ftype)
|
|
|
2239 |
else:
|
|
|
2240 |
iprot.skip(ftype)
|
|
|
2241 |
iprot.readFieldEnd()
|
|
|
2242 |
iprot.readStructEnd()
|
|
|
2243 |
|
|
|
2244 |
def write(self, oprot):
|
|
|
2245 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2246 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2247 |
return
|
|
|
2248 |
oprot.writeStructBegin('updateAndCaptureEbsPayment_args')
|
|
|
2249 |
if self.paymentParams != None:
|
|
|
2250 |
oprot.writeFieldBegin('paymentParams', TType.MAP, 1)
|
|
|
2251 |
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paymentParams))
|
|
|
2252 |
for kiter56,viter57 in self.paymentParams.items():
|
|
|
2253 |
oprot.writeString(kiter56)
|
|
|
2254 |
oprot.writeString(viter57)
|
|
|
2255 |
oprot.writeMapEnd()
|
|
|
2256 |
oprot.writeFieldEnd()
|
|
|
2257 |
oprot.writeFieldStop()
|
|
|
2258 |
oprot.writeStructEnd()
|
|
|
2259 |
|
|
|
2260 |
def __repr__(self):
|
|
|
2261 |
L = ['%s=%r' % (key, value)
|
|
|
2262 |
for key, value in self.__dict__.iteritems()]
|
|
|
2263 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2264 |
|
|
|
2265 |
def __eq__(self, other):
|
|
|
2266 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2267 |
|
|
|
2268 |
def __ne__(self, other):
|
|
|
2269 |
return not (self == other)
|
|
|
2270 |
|
|
|
2271 |
class updateAndCaptureEbsPayment_result:
|
|
|
2272 |
"""
|
|
|
2273 |
Attributes:
|
|
|
2274 |
- success
|
|
|
2275 |
- pe
|
|
|
2276 |
"""
|
|
|
2277 |
|
|
|
2278 |
thrift_spec = (
|
|
|
2279 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
|
|
2280 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2281 |
)
|
|
|
2282 |
|
|
|
2283 |
def __init__(self, success=None, pe=None,):
|
|
|
2284 |
self.success = success
|
|
|
2285 |
self.pe = pe
|
|
|
2286 |
|
|
|
2287 |
def read(self, iprot):
|
|
|
2288 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2289 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2290 |
return
|
|
|
2291 |
iprot.readStructBegin()
|
|
|
2292 |
while True:
|
|
|
2293 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2294 |
if ftype == TType.STOP:
|
|
|
2295 |
break
|
|
|
2296 |
if fid == 0:
|
|
|
2297 |
if ftype == TType.STRUCT:
|
|
|
2298 |
self.success = Payment()
|
|
|
2299 |
self.success.read(iprot)
|
|
|
2300 |
else:
|
|
|
2301 |
iprot.skip(ftype)
|
|
|
2302 |
elif fid == 1:
|
|
|
2303 |
if ftype == TType.STRUCT:
|
|
|
2304 |
self.pe = PaymentException()
|
|
|
2305 |
self.pe.read(iprot)
|
|
|
2306 |
else:
|
|
|
2307 |
iprot.skip(ftype)
|
|
|
2308 |
else:
|
|
|
2309 |
iprot.skip(ftype)
|
|
|
2310 |
iprot.readFieldEnd()
|
|
|
2311 |
iprot.readStructEnd()
|
|
|
2312 |
|
|
|
2313 |
def write(self, oprot):
|
|
|
2314 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2315 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2316 |
return
|
|
|
2317 |
oprot.writeStructBegin('updateAndCaptureEbsPayment_result')
|
|
|
2318 |
if self.success != None:
|
|
|
2319 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2320 |
self.success.write(oprot)
|
|
|
2321 |
oprot.writeFieldEnd()
|
|
|
2322 |
if self.pe != None:
|
|
|
2323 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2324 |
self.pe.write(oprot)
|
|
|
2325 |
oprot.writeFieldEnd()
|
|
|
2326 |
oprot.writeFieldStop()
|
|
|
2327 |
oprot.writeStructEnd()
|
|
|
2328 |
|
|
|
2329 |
def __repr__(self):
|
|
|
2330 |
L = ['%s=%r' % (key, value)
|
|
|
2331 |
for key, value in self.__dict__.iteritems()]
|
|
|
2332 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2333 |
|
|
|
2334 |
def __eq__(self, other):
|
|
|
2335 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2336 |
|
|
|
2337 |
def __ne__(self, other):
|
|
|
2338 |
return not (self == other)
|
|
|
2339 |
|
|
|
2340 |
class captureHdfcPayment_args:
|
|
|
2341 |
"""
|
|
|
2342 |
Attributes:
|
|
|
2343 |
- merchantPaymentId
|
|
|
2344 |
"""
|
|
|
2345 |
|
|
|
2346 |
thrift_spec = (
|
|
|
2347 |
None, # 0
|
|
|
2348 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
2349 |
)
|
|
|
2350 |
|
|
|
2351 |
def __init__(self, merchantPaymentId=None,):
|
|
|
2352 |
self.merchantPaymentId = merchantPaymentId
|
|
|
2353 |
|
|
|
2354 |
def read(self, iprot):
|
|
|
2355 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2356 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2357 |
return
|
|
|
2358 |
iprot.readStructBegin()
|
|
|
2359 |
while True:
|
|
|
2360 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2361 |
if ftype == TType.STOP:
|
|
|
2362 |
break
|
|
|
2363 |
if fid == 1:
|
|
|
2364 |
if ftype == TType.I64:
|
|
|
2365 |
self.merchantPaymentId = iprot.readI64();
|
|
|
2366 |
else:
|
|
|
2367 |
iprot.skip(ftype)
|
|
|
2368 |
else:
|
|
|
2369 |
iprot.skip(ftype)
|
|
|
2370 |
iprot.readFieldEnd()
|
|
|
2371 |
iprot.readStructEnd()
|
|
|
2372 |
|
|
|
2373 |
def write(self, oprot):
|
|
|
2374 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2375 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2376 |
return
|
|
|
2377 |
oprot.writeStructBegin('captureHdfcPayment_args')
|
|
|
2378 |
if self.merchantPaymentId != None:
|
|
|
2379 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
2380 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
2381 |
oprot.writeFieldEnd()
|
|
|
2382 |
oprot.writeFieldStop()
|
|
|
2383 |
oprot.writeStructEnd()
|
|
|
2384 |
|
|
|
2385 |
def __repr__(self):
|
|
|
2386 |
L = ['%s=%r' % (key, value)
|
|
|
2387 |
for key, value in self.__dict__.iteritems()]
|
|
|
2388 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2389 |
|
|
|
2390 |
def __eq__(self, other):
|
|
|
2391 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2392 |
|
|
|
2393 |
def __ne__(self, other):
|
|
|
2394 |
return not (self == other)
|
|
|
2395 |
|
|
|
2396 |
class captureHdfcPayment_result:
|
|
|
2397 |
"""
|
|
|
2398 |
Attributes:
|
|
|
2399 |
- success
|
|
|
2400 |
- pe
|
|
|
2401 |
"""
|
|
|
2402 |
|
|
|
2403 |
thrift_spec = (
|
|
|
2404 |
(0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
|
|
|
2405 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2406 |
)
|
|
|
2407 |
|
|
|
2408 |
def __init__(self, success=None, pe=None,):
|
|
|
2409 |
self.success = success
|
|
|
2410 |
self.pe = pe
|
|
|
2411 |
|
|
|
2412 |
def read(self, iprot):
|
|
|
2413 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2414 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2415 |
return
|
|
|
2416 |
iprot.readStructBegin()
|
|
|
2417 |
while True:
|
|
|
2418 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2419 |
if ftype == TType.STOP:
|
|
|
2420 |
break
|
|
|
2421 |
if fid == 0:
|
|
|
2422 |
if ftype == TType.MAP:
|
|
|
2423 |
self.success = {}
|
|
|
2424 |
(_ktype59, _vtype60, _size58 ) = iprot.readMapBegin()
|
|
|
2425 |
for _i62 in xrange(_size58):
|
|
|
2426 |
_key63 = iprot.readString();
|
|
|
2427 |
_val64 = iprot.readString();
|
|
|
2428 |
self.success[_key63] = _val64
|
|
|
2429 |
iprot.readMapEnd()
|
|
|
2430 |
else:
|
|
|
2431 |
iprot.skip(ftype)
|
|
|
2432 |
elif fid == 1:
|
|
|
2433 |
if ftype == TType.STRUCT:
|
|
|
2434 |
self.pe = PaymentException()
|
|
|
2435 |
self.pe.read(iprot)
|
|
|
2436 |
else:
|
|
|
2437 |
iprot.skip(ftype)
|
|
|
2438 |
else:
|
|
|
2439 |
iprot.skip(ftype)
|
|
|
2440 |
iprot.readFieldEnd()
|
|
|
2441 |
iprot.readStructEnd()
|
|
|
2442 |
|
|
|
2443 |
def write(self, oprot):
|
|
|
2444 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2445 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2446 |
return
|
|
|
2447 |
oprot.writeStructBegin('captureHdfcPayment_result')
|
|
|
2448 |
if self.success != None:
|
|
|
2449 |
oprot.writeFieldBegin('success', TType.MAP, 0)
|
|
|
2450 |
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
|
|
|
2451 |
for kiter65,viter66 in self.success.items():
|
|
|
2452 |
oprot.writeString(kiter65)
|
|
|
2453 |
oprot.writeString(viter66)
|
|
|
2454 |
oprot.writeMapEnd()
|
|
|
2455 |
oprot.writeFieldEnd()
|
|
|
2456 |
if self.pe != None:
|
|
|
2457 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2458 |
self.pe.write(oprot)
|
|
|
2459 |
oprot.writeFieldEnd()
|
|
|
2460 |
oprot.writeFieldStop()
|
|
|
2461 |
oprot.writeStructEnd()
|
|
|
2462 |
|
|
|
2463 |
def __repr__(self):
|
|
|
2464 |
L = ['%s=%r' % (key, value)
|
|
|
2465 |
for key, value in self.__dict__.iteritems()]
|
|
|
2466 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2467 |
|
|
|
2468 |
def __eq__(self, other):
|
|
|
2469 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2470 |
|
|
|
2471 |
def __ne__(self, other):
|
|
|
2472 |
return not (self == other)
|
|
|
2473 |
|
|
|
2474 |
class initializeHdfcPayment_args:
|
|
|
2475 |
"""
|
|
|
2476 |
Attributes:
|
|
|
2477 |
- merchantPaymentId
|
|
|
2478 |
"""
|
|
|
2479 |
|
|
|
2480 |
thrift_spec = (
|
|
|
2481 |
None, # 0
|
|
|
2482 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
2483 |
)
|
|
|
2484 |
|
|
|
2485 |
def __init__(self, merchantPaymentId=None,):
|
|
|
2486 |
self.merchantPaymentId = merchantPaymentId
|
|
|
2487 |
|
|
|
2488 |
def read(self, iprot):
|
|
|
2489 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2490 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2491 |
return
|
|
|
2492 |
iprot.readStructBegin()
|
|
|
2493 |
while True:
|
|
|
2494 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2495 |
if ftype == TType.STOP:
|
|
|
2496 |
break
|
|
|
2497 |
if fid == 1:
|
|
|
2498 |
if ftype == TType.I64:
|
|
|
2499 |
self.merchantPaymentId = iprot.readI64();
|
|
|
2500 |
else:
|
|
|
2501 |
iprot.skip(ftype)
|
|
|
2502 |
else:
|
|
|
2503 |
iprot.skip(ftype)
|
|
|
2504 |
iprot.readFieldEnd()
|
|
|
2505 |
iprot.readStructEnd()
|
|
|
2506 |
|
|
|
2507 |
def write(self, oprot):
|
|
|
2508 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2509 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2510 |
return
|
|
|
2511 |
oprot.writeStructBegin('initializeHdfcPayment_args')
|
|
|
2512 |
if self.merchantPaymentId != None:
|
|
|
2513 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
2514 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
2515 |
oprot.writeFieldEnd()
|
|
|
2516 |
oprot.writeFieldStop()
|
|
|
2517 |
oprot.writeStructEnd()
|
|
|
2518 |
|
|
|
2519 |
def __repr__(self):
|
|
|
2520 |
L = ['%s=%r' % (key, value)
|
|
|
2521 |
for key, value in self.__dict__.iteritems()]
|
|
|
2522 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2523 |
|
|
|
2524 |
def __eq__(self, other):
|
|
|
2525 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2526 |
|
|
|
2527 |
def __ne__(self, other):
|
|
|
2528 |
return not (self == other)
|
|
|
2529 |
|
|
|
2530 |
class initializeHdfcPayment_result:
|
|
|
2531 |
"""
|
|
|
2532 |
Attributes:
|
|
|
2533 |
- success
|
|
|
2534 |
- pe
|
|
|
2535 |
"""
|
|
|
2536 |
|
|
|
2537 |
thrift_spec = (
|
|
|
2538 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
2539 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2540 |
)
|
|
|
2541 |
|
|
|
2542 |
def __init__(self, success=None, pe=None,):
|
|
|
2543 |
self.success = success
|
|
|
2544 |
self.pe = pe
|
|
|
2545 |
|
|
|
2546 |
def read(self, iprot):
|
|
|
2547 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2548 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2549 |
return
|
|
|
2550 |
iprot.readStructBegin()
|
|
|
2551 |
while True:
|
|
|
2552 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2553 |
if ftype == TType.STOP:
|
|
|
2554 |
break
|
|
|
2555 |
if fid == 0:
|
|
|
2556 |
if ftype == TType.STRING:
|
|
|
2557 |
self.success = iprot.readString();
|
|
|
2558 |
else:
|
|
|
2559 |
iprot.skip(ftype)
|
|
|
2560 |
elif fid == 1:
|
|
|
2561 |
if ftype == TType.STRUCT:
|
|
|
2562 |
self.pe = PaymentException()
|
|
|
2563 |
self.pe.read(iprot)
|
|
|
2564 |
else:
|
|
|
2565 |
iprot.skip(ftype)
|
|
|
2566 |
else:
|
|
|
2567 |
iprot.skip(ftype)
|
|
|
2568 |
iprot.readFieldEnd()
|
|
|
2569 |
iprot.readStructEnd()
|
|
|
2570 |
|
|
|
2571 |
def write(self, oprot):
|
|
|
2572 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2573 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2574 |
return
|
|
|
2575 |
oprot.writeStructBegin('initializeHdfcPayment_result')
|
|
|
2576 |
if self.success != None:
|
|
|
2577 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
2578 |
oprot.writeString(self.success)
|
|
|
2579 |
oprot.writeFieldEnd()
|
|
|
2580 |
if self.pe != None:
|
|
|
2581 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2582 |
self.pe.write(oprot)
|
|
|
2583 |
oprot.writeFieldEnd()
|
|
|
2584 |
oprot.writeFieldStop()
|
|
|
2585 |
oprot.writeStructEnd()
|
|
|
2586 |
|
|
|
2587 |
def __repr__(self):
|
|
|
2588 |
L = ['%s=%r' % (key, value)
|
|
|
2589 |
for key, value in self.__dict__.iteritems()]
|
|
|
2590 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2591 |
|
|
|
2592 |
def __eq__(self, other):
|
|
|
2593 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2594 |
|
|
|
2595 |
def __ne__(self, other):
|
|
|
2596 |
return not (self == other)
|
|
|
2597 |
|
| 2685 |
chandransh |
2598 |
class createRefund_args:
|
|
|
2599 |
"""
|
|
|
2600 |
Attributes:
|
|
|
2601 |
- orderId
|
|
|
2602 |
- merchantTxnId
|
|
|
2603 |
- amount
|
|
|
2604 |
"""
|
| 2559 |
chandransh |
2605 |
|
| 2685 |
chandransh |
2606 |
thrift_spec = (
|
|
|
2607 |
None, # 0
|
|
|
2608 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
2609 |
(2, TType.I64, 'merchantTxnId', None, None, ), # 2
|
|
|
2610 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
|
|
2611 |
)
|
|
|
2612 |
|
|
|
2613 |
def __init__(self, orderId=None, merchantTxnId=None, amount=None,):
|
|
|
2614 |
self.orderId = orderId
|
|
|
2615 |
self.merchantTxnId = merchantTxnId
|
|
|
2616 |
self.amount = amount
|
|
|
2617 |
|
|
|
2618 |
def read(self, iprot):
|
|
|
2619 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2620 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2621 |
return
|
|
|
2622 |
iprot.readStructBegin()
|
|
|
2623 |
while True:
|
|
|
2624 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2625 |
if ftype == TType.STOP:
|
|
|
2626 |
break
|
|
|
2627 |
if fid == 1:
|
|
|
2628 |
if ftype == TType.I64:
|
|
|
2629 |
self.orderId = iprot.readI64();
|
|
|
2630 |
else:
|
|
|
2631 |
iprot.skip(ftype)
|
|
|
2632 |
elif fid == 2:
|
|
|
2633 |
if ftype == TType.I64:
|
|
|
2634 |
self.merchantTxnId = iprot.readI64();
|
|
|
2635 |
else:
|
|
|
2636 |
iprot.skip(ftype)
|
|
|
2637 |
elif fid == 3:
|
|
|
2638 |
if ftype == TType.DOUBLE:
|
|
|
2639 |
self.amount = iprot.readDouble();
|
|
|
2640 |
else:
|
|
|
2641 |
iprot.skip(ftype)
|
|
|
2642 |
else:
|
|
|
2643 |
iprot.skip(ftype)
|
|
|
2644 |
iprot.readFieldEnd()
|
|
|
2645 |
iprot.readStructEnd()
|
|
|
2646 |
|
|
|
2647 |
def write(self, oprot):
|
|
|
2648 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2649 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2650 |
return
|
|
|
2651 |
oprot.writeStructBegin('createRefund_args')
|
|
|
2652 |
if self.orderId != None:
|
|
|
2653 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
2654 |
oprot.writeI64(self.orderId)
|
|
|
2655 |
oprot.writeFieldEnd()
|
|
|
2656 |
if self.merchantTxnId != None:
|
|
|
2657 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
|
|
|
2658 |
oprot.writeI64(self.merchantTxnId)
|
|
|
2659 |
oprot.writeFieldEnd()
|
|
|
2660 |
if self.amount != None:
|
|
|
2661 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
2662 |
oprot.writeDouble(self.amount)
|
|
|
2663 |
oprot.writeFieldEnd()
|
|
|
2664 |
oprot.writeFieldStop()
|
|
|
2665 |
oprot.writeStructEnd()
|
|
|
2666 |
|
|
|
2667 |
def __repr__(self):
|
|
|
2668 |
L = ['%s=%r' % (key, value)
|
|
|
2669 |
for key, value in self.__dict__.iteritems()]
|
|
|
2670 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2671 |
|
|
|
2672 |
def __eq__(self, other):
|
|
|
2673 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2674 |
|
|
|
2675 |
def __ne__(self, other):
|
|
|
2676 |
return not (self == other)
|
|
|
2677 |
|
|
|
2678 |
class createRefund_result:
|
|
|
2679 |
"""
|
|
|
2680 |
Attributes:
|
|
|
2681 |
- success
|
|
|
2682 |
- pe
|
|
|
2683 |
"""
|
|
|
2684 |
|
|
|
2685 |
thrift_spec = (
|
|
|
2686 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
2687 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2688 |
)
|
|
|
2689 |
|
|
|
2690 |
def __init__(self, success=None, pe=None,):
|
|
|
2691 |
self.success = success
|
|
|
2692 |
self.pe = pe
|
|
|
2693 |
|
|
|
2694 |
def read(self, iprot):
|
|
|
2695 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2696 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2697 |
return
|
|
|
2698 |
iprot.readStructBegin()
|
|
|
2699 |
while True:
|
|
|
2700 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2701 |
if ftype == TType.STOP:
|
|
|
2702 |
break
|
|
|
2703 |
if fid == 0:
|
|
|
2704 |
if ftype == TType.I64:
|
|
|
2705 |
self.success = iprot.readI64();
|
|
|
2706 |
else:
|
|
|
2707 |
iprot.skip(ftype)
|
|
|
2708 |
elif fid == 1:
|
|
|
2709 |
if ftype == TType.STRUCT:
|
|
|
2710 |
self.pe = PaymentException()
|
|
|
2711 |
self.pe.read(iprot)
|
|
|
2712 |
else:
|
|
|
2713 |
iprot.skip(ftype)
|
|
|
2714 |
else:
|
|
|
2715 |
iprot.skip(ftype)
|
|
|
2716 |
iprot.readFieldEnd()
|
|
|
2717 |
iprot.readStructEnd()
|
|
|
2718 |
|
|
|
2719 |
def write(self, oprot):
|
|
|
2720 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2721 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2722 |
return
|
|
|
2723 |
oprot.writeStructBegin('createRefund_result')
|
|
|
2724 |
if self.success != None:
|
|
|
2725 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
2726 |
oprot.writeI64(self.success)
|
|
|
2727 |
oprot.writeFieldEnd()
|
|
|
2728 |
if self.pe != None:
|
|
|
2729 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2730 |
self.pe.write(oprot)
|
|
|
2731 |
oprot.writeFieldEnd()
|
|
|
2732 |
oprot.writeFieldStop()
|
|
|
2733 |
oprot.writeStructEnd()
|
|
|
2734 |
|
|
|
2735 |
def __repr__(self):
|
|
|
2736 |
L = ['%s=%r' % (key, value)
|
|
|
2737 |
for key, value in self.__dict__.iteritems()]
|
|
|
2738 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2739 |
|
|
|
2740 |
def __eq__(self, other):
|
|
|
2741 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2742 |
|
|
|
2743 |
def __ne__(self, other):
|
|
|
2744 |
return not (self == other)
|
|
|
2745 |
|
|
|
2746 |
|