| 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 |
"""
|
| 696 |
rajveer |
54 |
get all payments for user. Gateway is mandatory.
|
|
|
55 |
|
|
|
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 |
|
|
|
116 |
|
|
|
117 |
class Client(Iface):
|
|
|
118 |
def __init__(self, iprot, oprot=None):
|
|
|
119 |
self._iprot = self._oprot = iprot
|
|
|
120 |
if oprot != None:
|
|
|
121 |
self._oprot = oprot
|
|
|
122 |
self._seqid = 0
|
|
|
123 |
|
| 765 |
rajveer |
124 |
def closeSession(self, ):
|
|
|
125 |
"""
|
|
|
126 |
For closing the open session in sqlalchemy
|
|
|
127 |
"""
|
|
|
128 |
self.send_closeSession()
|
|
|
129 |
self.recv_closeSession()
|
|
|
130 |
|
|
|
131 |
def send_closeSession(self, ):
|
|
|
132 |
self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)
|
|
|
133 |
args = closeSession_args()
|
|
|
134 |
args.write(self._oprot)
|
|
|
135 |
self._oprot.writeMessageEnd()
|
|
|
136 |
self._oprot.trans.flush()
|
|
|
137 |
|
|
|
138 |
def recv_closeSession(self, ):
|
|
|
139 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
140 |
if mtype == TMessageType.EXCEPTION:
|
|
|
141 |
x = TApplicationException()
|
|
|
142 |
x.read(self._iprot)
|
|
|
143 |
self._iprot.readMessageEnd()
|
|
|
144 |
raise x
|
|
|
145 |
result = closeSession_result()
|
|
|
146 |
result.read(self._iprot)
|
|
|
147 |
self._iprot.readMessageEnd()
|
|
|
148 |
return
|
|
|
149 |
|
| 696 |
rajveer |
150 |
def createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
151 |
"""
|
| 696 |
rajveer |
152 |
create a new payment and return payment id, throws an exception if gateway is not active
|
|
|
153 |
|
|
|
154 |
|
| 420 |
ashish |
155 |
Parameters:
|
| 696 |
rajveer |
156 |
- userId
|
| 420 |
ashish |
157 |
- amount
|
| 696 |
rajveer |
158 |
- gatewayId
|
|
|
159 |
- txnId
|
| 420 |
ashish |
160 |
"""
|
| 696 |
rajveer |
161 |
self.send_createPayment(userId, amount, gatewayId, txnId)
|
| 420 |
ashish |
162 |
return self.recv_createPayment()
|
|
|
163 |
|
| 696 |
rajveer |
164 |
def send_createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
165 |
self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
|
|
|
166 |
args = createPayment_args()
|
| 696 |
rajveer |
167 |
args.userId = userId
|
| 420 |
ashish |
168 |
args.amount = amount
|
| 696 |
rajveer |
169 |
args.gatewayId = gatewayId
|
|
|
170 |
args.txnId = txnId
|
| 420 |
ashish |
171 |
args.write(self._oprot)
|
|
|
172 |
self._oprot.writeMessageEnd()
|
|
|
173 |
self._oprot.trans.flush()
|
|
|
174 |
|
|
|
175 |
def recv_createPayment(self, ):
|
|
|
176 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
177 |
if mtype == TMessageType.EXCEPTION:
|
|
|
178 |
x = TApplicationException()
|
|
|
179 |
x.read(self._iprot)
|
|
|
180 |
self._iprot.readMessageEnd()
|
|
|
181 |
raise x
|
|
|
182 |
result = createPayment_result()
|
|
|
183 |
result.read(self._iprot)
|
|
|
184 |
self._iprot.readMessageEnd()
|
|
|
185 |
if result.success != None:
|
|
|
186 |
return result.success
|
|
|
187 |
if result.pe != None:
|
|
|
188 |
raise result.pe
|
|
|
189 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
|
|
190 |
|
| 696 |
rajveer |
191 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
192 |
"""
|
| 696 |
rajveer |
193 |
get payment for user. If status and gateway are null, it is ignored. Same for times as well.
|
|
|
194 |
|
|
|
195 |
|
| 420 |
ashish |
196 |
Parameters:
|
|
|
197 |
- userId
|
| 696 |
rajveer |
198 |
- fromTime
|
|
|
199 |
- toTime
|
| 420 |
ashish |
200 |
- status
|
| 696 |
rajveer |
201 |
- gatewayId
|
| 420 |
ashish |
202 |
"""
|
| 696 |
rajveer |
203 |
self.send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
204 |
return self.recv_getPaymentsForUser()
|
|
|
205 |
|
| 696 |
rajveer |
206 |
def send_getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
207 |
self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
|
|
|
208 |
args = getPaymentsForUser_args()
|
|
|
209 |
args.userId = userId
|
| 696 |
rajveer |
210 |
args.fromTime = fromTime
|
|
|
211 |
args.toTime = toTime
|
| 420 |
ashish |
212 |
args.status = status
|
| 696 |
rajveer |
213 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
214 |
args.write(self._oprot)
|
|
|
215 |
self._oprot.writeMessageEnd()
|
|
|
216 |
self._oprot.trans.flush()
|
|
|
217 |
|
|
|
218 |
def recv_getPaymentsForUser(self, ):
|
|
|
219 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
220 |
if mtype == TMessageType.EXCEPTION:
|
|
|
221 |
x = TApplicationException()
|
|
|
222 |
x.read(self._iprot)
|
|
|
223 |
self._iprot.readMessageEnd()
|
|
|
224 |
raise x
|
|
|
225 |
result = getPaymentsForUser_result()
|
|
|
226 |
result.read(self._iprot)
|
|
|
227 |
self._iprot.readMessageEnd()
|
|
|
228 |
if result.success != None:
|
|
|
229 |
return result.success
|
|
|
230 |
if result.pe != None:
|
|
|
231 |
raise result.pe
|
|
|
232 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
|
|
233 |
|
| 696 |
rajveer |
234 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
235 |
"""
|
| 696 |
rajveer |
236 |
get all payments for user. Gateway is mandatory.
|
|
|
237 |
|
|
|
238 |
|
| 420 |
ashish |
239 |
Parameters:
|
| 696 |
rajveer |
240 |
- fromTime
|
|
|
241 |
- toTime
|
| 420 |
ashish |
242 |
- status
|
| 696 |
rajveer |
243 |
- gatewayId
|
| 420 |
ashish |
244 |
"""
|
| 696 |
rajveer |
245 |
self.send_getPayments(fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
246 |
return self.recv_getPayments()
|
|
|
247 |
|
| 696 |
rajveer |
248 |
def send_getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
249 |
self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
|
|
|
250 |
args = getPayments_args()
|
| 696 |
rajveer |
251 |
args.fromTime = fromTime
|
|
|
252 |
args.toTime = toTime
|
| 420 |
ashish |
253 |
args.status = status
|
| 696 |
rajveer |
254 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
255 |
args.write(self._oprot)
|
|
|
256 |
self._oprot.writeMessageEnd()
|
|
|
257 |
self._oprot.trans.flush()
|
|
|
258 |
|
|
|
259 |
def recv_getPayments(self, ):
|
|
|
260 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
261 |
if mtype == TMessageType.EXCEPTION:
|
|
|
262 |
x = TApplicationException()
|
|
|
263 |
x.read(self._iprot)
|
|
|
264 |
self._iprot.readMessageEnd()
|
|
|
265 |
raise x
|
|
|
266 |
result = getPayments_result()
|
|
|
267 |
result.read(self._iprot)
|
|
|
268 |
self._iprot.readMessageEnd()
|
|
|
269 |
if result.success != None:
|
|
|
270 |
return result.success
|
|
|
271 |
if result.pe != None:
|
|
|
272 |
raise result.pe
|
|
|
273 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
|
|
274 |
|
|
|
275 |
def getPaymentGateway(self, id):
|
|
|
276 |
"""
|
| 696 |
rajveer |
277 |
Get a particular gateway
|
|
|
278 |
|
|
|
279 |
|
| 420 |
ashish |
280 |
Parameters:
|
|
|
281 |
- id
|
|
|
282 |
"""
|
|
|
283 |
self.send_getPaymentGateway(id)
|
|
|
284 |
return self.recv_getPaymentGateway()
|
|
|
285 |
|
|
|
286 |
def send_getPaymentGateway(self, id):
|
|
|
287 |
self._oprot.writeMessageBegin('getPaymentGateway', TMessageType.CALL, self._seqid)
|
|
|
288 |
args = getPaymentGateway_args()
|
|
|
289 |
args.id = id
|
|
|
290 |
args.write(self._oprot)
|
|
|
291 |
self._oprot.writeMessageEnd()
|
|
|
292 |
self._oprot.trans.flush()
|
|
|
293 |
|
|
|
294 |
def recv_getPaymentGateway(self, ):
|
|
|
295 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
296 |
if mtype == TMessageType.EXCEPTION:
|
|
|
297 |
x = TApplicationException()
|
|
|
298 |
x.read(self._iprot)
|
|
|
299 |
self._iprot.readMessageEnd()
|
|
|
300 |
raise x
|
|
|
301 |
result = getPaymentGateway_result()
|
|
|
302 |
result.read(self._iprot)
|
|
|
303 |
self._iprot.readMessageEnd()
|
|
|
304 |
if result.success != None:
|
|
|
305 |
return result.success
|
|
|
306 |
if result.pe != None:
|
|
|
307 |
raise result.pe
|
|
|
308 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
|
|
309 |
|
| 696 |
rajveer |
310 |
def getPayment(self, id):
|
| 420 |
ashish |
311 |
"""
|
| 696 |
rajveer |
312 |
Get a particular payment info
|
|
|
313 |
|
|
|
314 |
|
| 420 |
ashish |
315 |
Parameters:
|
|
|
316 |
- id
|
|
|
317 |
"""
|
| 696 |
rajveer |
318 |
self.send_getPayment(id)
|
|
|
319 |
return self.recv_getPayment()
|
| 420 |
ashish |
320 |
|
| 696 |
rajveer |
321 |
def send_getPayment(self, id):
|
|
|
322 |
self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
|
|
|
323 |
args = getPayment_args()
|
| 420 |
ashish |
324 |
args.id = id
|
|
|
325 |
args.write(self._oprot)
|
|
|
326 |
self._oprot.writeMessageEnd()
|
|
|
327 |
self._oprot.trans.flush()
|
|
|
328 |
|
| 696 |
rajveer |
329 |
def recv_getPayment(self, ):
|
| 420 |
ashish |
330 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
331 |
if mtype == TMessageType.EXCEPTION:
|
|
|
332 |
x = TApplicationException()
|
|
|
333 |
x.read(self._iprot)
|
|
|
334 |
self._iprot.readMessageEnd()
|
|
|
335 |
raise x
|
| 696 |
rajveer |
336 |
result = getPayment_result()
|
| 420 |
ashish |
337 |
result.read(self._iprot)
|
|
|
338 |
self._iprot.readMessageEnd()
|
| 696 |
rajveer |
339 |
if result.success != None:
|
|
|
340 |
return result.success
|
| 420 |
ashish |
341 |
if result.pe != None:
|
|
|
342 |
raise result.pe
|
| 696 |
rajveer |
343 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
344 |
|
| 696 |
rajveer |
345 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
346 |
"""
|
| 696 |
rajveer |
347 |
Get a particular payment for a transaction. Will raise exception.
|
|
|
348 |
|
|
|
349 |
|
| 420 |
ashish |
350 |
Parameters:
|
| 696 |
rajveer |
351 |
- txnId
|
| 420 |
ashish |
352 |
"""
|
| 696 |
rajveer |
353 |
self.send_getPaymentForTxnId(txnId)
|
|
|
354 |
return self.recv_getPaymentForTxnId()
|
| 420 |
ashish |
355 |
|
| 696 |
rajveer |
356 |
def send_getPaymentForTxnId(self, txnId):
|
|
|
357 |
self._oprot.writeMessageBegin('getPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
358 |
args = getPaymentForTxnId_args()
|
|
|
359 |
args.txnId = txnId
|
| 420 |
ashish |
360 |
args.write(self._oprot)
|
|
|
361 |
self._oprot.writeMessageEnd()
|
|
|
362 |
self._oprot.trans.flush()
|
|
|
363 |
|
| 696 |
rajveer |
364 |
def recv_getPaymentForTxnId(self, ):
|
| 420 |
ashish |
365 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
366 |
if mtype == TMessageType.EXCEPTION:
|
|
|
367 |
x = TApplicationException()
|
|
|
368 |
x.read(self._iprot)
|
|
|
369 |
self._iprot.readMessageEnd()
|
|
|
370 |
raise x
|
| 696 |
rajveer |
371 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
372 |
result.read(self._iprot)
|
|
|
373 |
self._iprot.readMessageEnd()
|
|
|
374 |
if result.success != None:
|
|
|
375 |
return result.success
|
|
|
376 |
if result.pe != None:
|
|
|
377 |
raise result.pe
|
| 696 |
rajveer |
378 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
379 |
|
| 1120 |
rajveer |
380 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
381 |
"""
|
| 696 |
rajveer |
382 |
mark payment successful and store parameters
|
|
|
383 |
|
|
|
384 |
|
| 420 |
ashish |
385 |
Parameters:
|
|
|
386 |
- id
|
| 696 |
rajveer |
387 |
- gatewayPaymentId
|
|
|
388 |
- sessionId
|
|
|
389 |
- gatewayTxnStatus
|
|
|
390 |
- description
|
|
|
391 |
- gatewayTxnId
|
|
|
392 |
- authCode
|
|
|
393 |
- referenceCode
|
|
|
394 |
- errorCode
|
|
|
395 |
- status
|
| 1120 |
rajveer |
396 |
- gatewayTxnDate
|
| 696 |
rajveer |
397 |
- attributes
|
| 420 |
ashish |
398 |
"""
|
| 1120 |
rajveer |
399 |
self.send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes)
|
| 696 |
rajveer |
400 |
return self.recv_updatePaymentDetails()
|
| 420 |
ashish |
401 |
|
| 1120 |
rajveer |
402 |
def send_updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 696 |
rajveer |
403 |
self._oprot.writeMessageBegin('updatePaymentDetails', TMessageType.CALL, self._seqid)
|
|
|
404 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
405 |
args.id = id
|
| 696 |
rajveer |
406 |
args.gatewayPaymentId = gatewayPaymentId
|
|
|
407 |
args.sessionId = sessionId
|
|
|
408 |
args.gatewayTxnStatus = gatewayTxnStatus
|
|
|
409 |
args.description = description
|
|
|
410 |
args.gatewayTxnId = gatewayTxnId
|
|
|
411 |
args.authCode = authCode
|
|
|
412 |
args.referenceCode = referenceCode
|
|
|
413 |
args.errorCode = errorCode
|
|
|
414 |
args.status = status
|
| 1120 |
rajveer |
415 |
args.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
416 |
args.attributes = attributes
|
| 420 |
ashish |
417 |
args.write(self._oprot)
|
|
|
418 |
self._oprot.writeMessageEnd()
|
|
|
419 |
self._oprot.trans.flush()
|
|
|
420 |
|
| 696 |
rajveer |
421 |
def recv_updatePaymentDetails(self, ):
|
| 420 |
ashish |
422 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
423 |
if mtype == TMessageType.EXCEPTION:
|
|
|
424 |
x = TApplicationException()
|
|
|
425 |
x.read(self._iprot)
|
|
|
426 |
self._iprot.readMessageEnd()
|
|
|
427 |
raise x
|
| 696 |
rajveer |
428 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
429 |
result.read(self._iprot)
|
|
|
430 |
self._iprot.readMessageEnd()
|
| 696 |
rajveer |
431 |
if result.success != None:
|
|
|
432 |
return result.success
|
| 420 |
ashish |
433 |
if result.pe != None:
|
|
|
434 |
raise result.pe
|
| 696 |
rajveer |
435 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
436 |
|
|
|
437 |
|
|
|
438 |
class Processor(Iface, TProcessor):
|
|
|
439 |
def __init__(self, handler):
|
|
|
440 |
self._handler = handler
|
|
|
441 |
self._processMap = {}
|
| 765 |
rajveer |
442 |
self._processMap["closeSession"] = Processor.process_closeSession
|
| 420 |
ashish |
443 |
self._processMap["createPayment"] = Processor.process_createPayment
|
|
|
444 |
self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
|
|
|
445 |
self._processMap["getPayments"] = Processor.process_getPayments
|
|
|
446 |
self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
|
|
|
447 |
self._processMap["getPayment"] = Processor.process_getPayment
|
| 696 |
rajveer |
448 |
self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
|
|
|
449 |
self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
|
| 420 |
ashish |
450 |
|
|
|
451 |
def process(self, iprot, oprot):
|
|
|
452 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
453 |
if name not in self._processMap:
|
|
|
454 |
iprot.skip(TType.STRUCT)
|
|
|
455 |
iprot.readMessageEnd()
|
|
|
456 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
457 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
458 |
x.write(oprot)
|
|
|
459 |
oprot.writeMessageEnd()
|
|
|
460 |
oprot.trans.flush()
|
|
|
461 |
return
|
|
|
462 |
else:
|
|
|
463 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
464 |
return True
|
|
|
465 |
|
| 765 |
rajveer |
466 |
def process_closeSession(self, seqid, iprot, oprot):
|
|
|
467 |
args = closeSession_args()
|
|
|
468 |
args.read(iprot)
|
|
|
469 |
iprot.readMessageEnd()
|
|
|
470 |
result = closeSession_result()
|
|
|
471 |
self._handler.closeSession()
|
|
|
472 |
oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)
|
|
|
473 |
result.write(oprot)
|
|
|
474 |
oprot.writeMessageEnd()
|
|
|
475 |
oprot.trans.flush()
|
|
|
476 |
|
| 420 |
ashish |
477 |
def process_createPayment(self, seqid, iprot, oprot):
|
|
|
478 |
args = createPayment_args()
|
|
|
479 |
args.read(iprot)
|
|
|
480 |
iprot.readMessageEnd()
|
|
|
481 |
result = createPayment_result()
|
|
|
482 |
try:
|
| 696 |
rajveer |
483 |
result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId)
|
| 420 |
ashish |
484 |
except PaymentException, pe:
|
|
|
485 |
result.pe = pe
|
|
|
486 |
oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
|
|
|
487 |
result.write(oprot)
|
|
|
488 |
oprot.writeMessageEnd()
|
|
|
489 |
oprot.trans.flush()
|
|
|
490 |
|
|
|
491 |
def process_getPaymentsForUser(self, seqid, iprot, oprot):
|
|
|
492 |
args = getPaymentsForUser_args()
|
|
|
493 |
args.read(iprot)
|
|
|
494 |
iprot.readMessageEnd()
|
|
|
495 |
result = getPaymentsForUser_result()
|
|
|
496 |
try:
|
| 696 |
rajveer |
497 |
result.success = self._handler.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
498 |
except PaymentException, pe:
|
|
|
499 |
result.pe = pe
|
|
|
500 |
oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
|
|
|
501 |
result.write(oprot)
|
|
|
502 |
oprot.writeMessageEnd()
|
|
|
503 |
oprot.trans.flush()
|
|
|
504 |
|
|
|
505 |
def process_getPayments(self, seqid, iprot, oprot):
|
|
|
506 |
args = getPayments_args()
|
|
|
507 |
args.read(iprot)
|
|
|
508 |
iprot.readMessageEnd()
|
|
|
509 |
result = getPayments_result()
|
|
|
510 |
try:
|
| 696 |
rajveer |
511 |
result.success = self._handler.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
512 |
except PaymentException, pe:
|
|
|
513 |
result.pe = pe
|
|
|
514 |
oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
|
|
|
515 |
result.write(oprot)
|
|
|
516 |
oprot.writeMessageEnd()
|
|
|
517 |
oprot.trans.flush()
|
|
|
518 |
|
|
|
519 |
def process_getPaymentGateway(self, seqid, iprot, oprot):
|
|
|
520 |
args = getPaymentGateway_args()
|
|
|
521 |
args.read(iprot)
|
|
|
522 |
iprot.readMessageEnd()
|
|
|
523 |
result = getPaymentGateway_result()
|
|
|
524 |
try:
|
|
|
525 |
result.success = self._handler.getPaymentGateway(args.id)
|
|
|
526 |
except PaymentException, pe:
|
|
|
527 |
result.pe = pe
|
|
|
528 |
oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
|
|
|
529 |
result.write(oprot)
|
|
|
530 |
oprot.writeMessageEnd()
|
|
|
531 |
oprot.trans.flush()
|
|
|
532 |
|
| 696 |
rajveer |
533 |
def process_getPayment(self, seqid, iprot, oprot):
|
|
|
534 |
args = getPayment_args()
|
| 420 |
ashish |
535 |
args.read(iprot)
|
|
|
536 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
537 |
result = getPayment_result()
|
| 420 |
ashish |
538 |
try:
|
| 696 |
rajveer |
539 |
result.success = self._handler.getPayment(args.id)
|
| 420 |
ashish |
540 |
except PaymentException, pe:
|
|
|
541 |
result.pe = pe
|
| 696 |
rajveer |
542 |
oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
543 |
result.write(oprot)
|
|
|
544 |
oprot.writeMessageEnd()
|
|
|
545 |
oprot.trans.flush()
|
|
|
546 |
|
| 696 |
rajveer |
547 |
def process_getPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
548 |
args = getPaymentForTxnId_args()
|
| 420 |
ashish |
549 |
args.read(iprot)
|
|
|
550 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
551 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
552 |
try:
|
| 696 |
rajveer |
553 |
result.success = self._handler.getPaymentForTxnId(args.txnId)
|
| 420 |
ashish |
554 |
except PaymentException, pe:
|
|
|
555 |
result.pe = pe
|
| 696 |
rajveer |
556 |
oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
557 |
result.write(oprot)
|
|
|
558 |
oprot.writeMessageEnd()
|
|
|
559 |
oprot.trans.flush()
|
|
|
560 |
|
| 696 |
rajveer |
561 |
def process_updatePaymentDetails(self, seqid, iprot, oprot):
|
|
|
562 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
563 |
args.read(iprot)
|
|
|
564 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
565 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
566 |
try:
|
| 1120 |
rajveer |
567 |
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 |
568 |
except PaymentException, pe:
|
|
|
569 |
result.pe = pe
|
| 696 |
rajveer |
570 |
oprot.writeMessageBegin("updatePaymentDetails", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
571 |
result.write(oprot)
|
|
|
572 |
oprot.writeMessageEnd()
|
|
|
573 |
oprot.trans.flush()
|
|
|
574 |
|
|
|
575 |
|
|
|
576 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
577 |
|
| 765 |
rajveer |
578 |
class closeSession_args:
|
|
|
579 |
|
|
|
580 |
thrift_spec = (
|
|
|
581 |
)
|
|
|
582 |
|
|
|
583 |
def read(self, iprot):
|
|
|
584 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
585 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
586 |
return
|
|
|
587 |
iprot.readStructBegin()
|
|
|
588 |
while True:
|
|
|
589 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
590 |
if ftype == TType.STOP:
|
|
|
591 |
break
|
|
|
592 |
else:
|
|
|
593 |
iprot.skip(ftype)
|
|
|
594 |
iprot.readFieldEnd()
|
|
|
595 |
iprot.readStructEnd()
|
|
|
596 |
|
|
|
597 |
def write(self, oprot):
|
|
|
598 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
599 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
600 |
return
|
|
|
601 |
oprot.writeStructBegin('closeSession_args')
|
|
|
602 |
oprot.writeFieldStop()
|
|
|
603 |
oprot.writeStructEnd()
|
|
|
604 |
|
|
|
605 |
def __repr__(self):
|
|
|
606 |
L = ['%s=%r' % (key, value)
|
|
|
607 |
for key, value in self.__dict__.iteritems()]
|
|
|
608 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
609 |
|
|
|
610 |
def __eq__(self, other):
|
|
|
611 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
612 |
|
|
|
613 |
def __ne__(self, other):
|
|
|
614 |
return not (self == other)
|
|
|
615 |
|
|
|
616 |
class closeSession_result:
|
|
|
617 |
|
|
|
618 |
thrift_spec = (
|
|
|
619 |
)
|
|
|
620 |
|
|
|
621 |
def read(self, iprot):
|
|
|
622 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
623 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
624 |
return
|
|
|
625 |
iprot.readStructBegin()
|
|
|
626 |
while True:
|
|
|
627 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
628 |
if ftype == TType.STOP:
|
|
|
629 |
break
|
|
|
630 |
else:
|
|
|
631 |
iprot.skip(ftype)
|
|
|
632 |
iprot.readFieldEnd()
|
|
|
633 |
iprot.readStructEnd()
|
|
|
634 |
|
|
|
635 |
def write(self, oprot):
|
|
|
636 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
637 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
638 |
return
|
|
|
639 |
oprot.writeStructBegin('closeSession_result')
|
|
|
640 |
oprot.writeFieldStop()
|
|
|
641 |
oprot.writeStructEnd()
|
|
|
642 |
|
|
|
643 |
def __repr__(self):
|
|
|
644 |
L = ['%s=%r' % (key, value)
|
|
|
645 |
for key, value in self.__dict__.iteritems()]
|
|
|
646 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
647 |
|
|
|
648 |
def __eq__(self, other):
|
|
|
649 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
650 |
|
|
|
651 |
def __ne__(self, other):
|
|
|
652 |
return not (self == other)
|
|
|
653 |
|
| 420 |
ashish |
654 |
class createPayment_args:
|
|
|
655 |
"""
|
|
|
656 |
Attributes:
|
| 696 |
rajveer |
657 |
- userId
|
| 420 |
ashish |
658 |
- amount
|
| 696 |
rajveer |
659 |
- gatewayId
|
|
|
660 |
- txnId
|
| 420 |
ashish |
661 |
"""
|
|
|
662 |
|
|
|
663 |
thrift_spec = (
|
|
|
664 |
None, # 0
|
| 696 |
rajveer |
665 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
666 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
667 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
668 |
(4, TType.I64, 'txnId', None, None, ), # 4
|
| 420 |
ashish |
669 |
)
|
|
|
670 |
|
| 696 |
rajveer |
671 |
def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None,):
|
|
|
672 |
self.userId = userId
|
| 420 |
ashish |
673 |
self.amount = amount
|
| 696 |
rajveer |
674 |
self.gatewayId = gatewayId
|
|
|
675 |
self.txnId = txnId
|
| 420 |
ashish |
676 |
|
|
|
677 |
def read(self, iprot):
|
|
|
678 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
679 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
680 |
return
|
|
|
681 |
iprot.readStructBegin()
|
|
|
682 |
while True:
|
|
|
683 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
684 |
if ftype == TType.STOP:
|
|
|
685 |
break
|
|
|
686 |
if fid == 1:
|
|
|
687 |
if ftype == TType.I64:
|
| 696 |
rajveer |
688 |
self.userId = iprot.readI64();
|
| 420 |
ashish |
689 |
else:
|
|
|
690 |
iprot.skip(ftype)
|
|
|
691 |
elif fid == 2:
|
| 696 |
rajveer |
692 |
if ftype == TType.DOUBLE:
|
|
|
693 |
self.amount = iprot.readDouble();
|
| 420 |
ashish |
694 |
else:
|
|
|
695 |
iprot.skip(ftype)
|
|
|
696 |
elif fid == 3:
|
| 696 |
rajveer |
697 |
if ftype == TType.I64:
|
|
|
698 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
699 |
else:
|
|
|
700 |
iprot.skip(ftype)
|
|
|
701 |
elif fid == 4:
|
|
|
702 |
if ftype == TType.I64:
|
| 696 |
rajveer |
703 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
704 |
else:
|
|
|
705 |
iprot.skip(ftype)
|
|
|
706 |
else:
|
|
|
707 |
iprot.skip(ftype)
|
|
|
708 |
iprot.readFieldEnd()
|
|
|
709 |
iprot.readStructEnd()
|
|
|
710 |
|
|
|
711 |
def write(self, oprot):
|
|
|
712 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
713 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
714 |
return
|
|
|
715 |
oprot.writeStructBegin('createPayment_args')
|
| 696 |
rajveer |
716 |
if self.userId != None:
|
|
|
717 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
718 |
oprot.writeI64(self.userId)
|
| 420 |
ashish |
719 |
oprot.writeFieldEnd()
|
|
|
720 |
if self.amount != None:
|
| 696 |
rajveer |
721 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
| 420 |
ashish |
722 |
oprot.writeDouble(self.amount)
|
|
|
723 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
724 |
if self.gatewayId != None:
|
|
|
725 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
726 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
727 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
728 |
if self.txnId != None:
|
|
|
729 |
oprot.writeFieldBegin('txnId', TType.I64, 4)
|
|
|
730 |
oprot.writeI64(self.txnId)
|
|
|
731 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
732 |
oprot.writeFieldStop()
|
|
|
733 |
oprot.writeStructEnd()
|
|
|
734 |
|
|
|
735 |
def __repr__(self):
|
|
|
736 |
L = ['%s=%r' % (key, value)
|
|
|
737 |
for key, value in self.__dict__.iteritems()]
|
|
|
738 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
739 |
|
|
|
740 |
def __eq__(self, other):
|
|
|
741 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
742 |
|
|
|
743 |
def __ne__(self, other):
|
|
|
744 |
return not (self == other)
|
|
|
745 |
|
|
|
746 |
class createPayment_result:
|
|
|
747 |
"""
|
|
|
748 |
Attributes:
|
|
|
749 |
- success
|
|
|
750 |
- pe
|
|
|
751 |
"""
|
|
|
752 |
|
|
|
753 |
thrift_spec = (
|
|
|
754 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
755 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
756 |
)
|
|
|
757 |
|
|
|
758 |
def __init__(self, success=None, pe=None,):
|
|
|
759 |
self.success = success
|
|
|
760 |
self.pe = pe
|
|
|
761 |
|
|
|
762 |
def read(self, iprot):
|
|
|
763 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
764 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
765 |
return
|
|
|
766 |
iprot.readStructBegin()
|
|
|
767 |
while True:
|
|
|
768 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
769 |
if ftype == TType.STOP:
|
|
|
770 |
break
|
|
|
771 |
if fid == 0:
|
|
|
772 |
if ftype == TType.I64:
|
|
|
773 |
self.success = iprot.readI64();
|
|
|
774 |
else:
|
|
|
775 |
iprot.skip(ftype)
|
|
|
776 |
elif fid == 1:
|
|
|
777 |
if ftype == TType.STRUCT:
|
|
|
778 |
self.pe = PaymentException()
|
|
|
779 |
self.pe.read(iprot)
|
|
|
780 |
else:
|
|
|
781 |
iprot.skip(ftype)
|
|
|
782 |
else:
|
|
|
783 |
iprot.skip(ftype)
|
|
|
784 |
iprot.readFieldEnd()
|
|
|
785 |
iprot.readStructEnd()
|
|
|
786 |
|
|
|
787 |
def write(self, oprot):
|
|
|
788 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
789 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
790 |
return
|
|
|
791 |
oprot.writeStructBegin('createPayment_result')
|
|
|
792 |
if self.success != None:
|
|
|
793 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
794 |
oprot.writeI64(self.success)
|
|
|
795 |
oprot.writeFieldEnd()
|
|
|
796 |
if self.pe != None:
|
|
|
797 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
798 |
self.pe.write(oprot)
|
|
|
799 |
oprot.writeFieldEnd()
|
|
|
800 |
oprot.writeFieldStop()
|
|
|
801 |
oprot.writeStructEnd()
|
|
|
802 |
|
|
|
803 |
def __repr__(self):
|
|
|
804 |
L = ['%s=%r' % (key, value)
|
|
|
805 |
for key, value in self.__dict__.iteritems()]
|
|
|
806 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
807 |
|
|
|
808 |
def __eq__(self, other):
|
|
|
809 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
810 |
|
|
|
811 |
def __ne__(self, other):
|
|
|
812 |
return not (self == other)
|
|
|
813 |
|
|
|
814 |
class getPaymentsForUser_args:
|
|
|
815 |
"""
|
|
|
816 |
Attributes:
|
|
|
817 |
- userId
|
| 696 |
rajveer |
818 |
- fromTime
|
|
|
819 |
- toTime
|
| 420 |
ashish |
820 |
- status
|
| 696 |
rajveer |
821 |
- gatewayId
|
| 420 |
ashish |
822 |
"""
|
|
|
823 |
|
|
|
824 |
thrift_spec = (
|
|
|
825 |
None, # 0
|
|
|
826 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 696 |
rajveer |
827 |
(2, TType.I64, 'fromTime', None, None, ), # 2
|
|
|
828 |
(3, TType.I64, 'toTime', None, None, ), # 3
|
| 420 |
ashish |
829 |
(4, TType.I32, 'status', None, None, ), # 4
|
| 696 |
rajveer |
830 |
(5, TType.I64, 'gatewayId', None, None, ), # 5
|
| 420 |
ashish |
831 |
)
|
|
|
832 |
|
| 696 |
rajveer |
833 |
def __init__(self, userId=None, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
| 420 |
ashish |
834 |
self.userId = userId
|
| 696 |
rajveer |
835 |
self.fromTime = fromTime
|
|
|
836 |
self.toTime = toTime
|
| 420 |
ashish |
837 |
self.status = status
|
| 696 |
rajveer |
838 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
839 |
|
|
|
840 |
def read(self, iprot):
|
|
|
841 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
842 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
843 |
return
|
|
|
844 |
iprot.readStructBegin()
|
|
|
845 |
while True:
|
|
|
846 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
847 |
if ftype == TType.STOP:
|
|
|
848 |
break
|
|
|
849 |
if fid == 1:
|
|
|
850 |
if ftype == TType.I64:
|
|
|
851 |
self.userId = iprot.readI64();
|
|
|
852 |
else:
|
|
|
853 |
iprot.skip(ftype)
|
|
|
854 |
elif fid == 2:
|
|
|
855 |
if ftype == TType.I64:
|
| 696 |
rajveer |
856 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
857 |
else:
|
|
|
858 |
iprot.skip(ftype)
|
|
|
859 |
elif fid == 3:
|
|
|
860 |
if ftype == TType.I64:
|
| 696 |
rajveer |
861 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
862 |
else:
|
|
|
863 |
iprot.skip(ftype)
|
|
|
864 |
elif fid == 4:
|
|
|
865 |
if ftype == TType.I32:
|
|
|
866 |
self.status = iprot.readI32();
|
|
|
867 |
else:
|
|
|
868 |
iprot.skip(ftype)
|
|
|
869 |
elif fid == 5:
|
|
|
870 |
if ftype == TType.I64:
|
| 696 |
rajveer |
871 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
872 |
else:
|
|
|
873 |
iprot.skip(ftype)
|
|
|
874 |
else:
|
|
|
875 |
iprot.skip(ftype)
|
|
|
876 |
iprot.readFieldEnd()
|
|
|
877 |
iprot.readStructEnd()
|
|
|
878 |
|
|
|
879 |
def write(self, oprot):
|
|
|
880 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
881 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
882 |
return
|
|
|
883 |
oprot.writeStructBegin('getPaymentsForUser_args')
|
|
|
884 |
if self.userId != None:
|
|
|
885 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
886 |
oprot.writeI64(self.userId)
|
|
|
887 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
888 |
if self.fromTime != None:
|
|
|
889 |
oprot.writeFieldBegin('fromTime', TType.I64, 2)
|
|
|
890 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
891 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
892 |
if self.toTime != None:
|
|
|
893 |
oprot.writeFieldBegin('toTime', TType.I64, 3)
|
|
|
894 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
895 |
oprot.writeFieldEnd()
|
|
|
896 |
if self.status != None:
|
|
|
897 |
oprot.writeFieldBegin('status', TType.I32, 4)
|
|
|
898 |
oprot.writeI32(self.status)
|
|
|
899 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
900 |
if self.gatewayId != None:
|
|
|
901 |
oprot.writeFieldBegin('gatewayId', TType.I64, 5)
|
|
|
902 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
903 |
oprot.writeFieldEnd()
|
|
|
904 |
oprot.writeFieldStop()
|
|
|
905 |
oprot.writeStructEnd()
|
|
|
906 |
|
|
|
907 |
def __repr__(self):
|
|
|
908 |
L = ['%s=%r' % (key, value)
|
|
|
909 |
for key, value in self.__dict__.iteritems()]
|
|
|
910 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
911 |
|
|
|
912 |
def __eq__(self, other):
|
|
|
913 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
914 |
|
|
|
915 |
def __ne__(self, other):
|
|
|
916 |
return not (self == other)
|
|
|
917 |
|
|
|
918 |
class getPaymentsForUser_result:
|
|
|
919 |
"""
|
|
|
920 |
Attributes:
|
|
|
921 |
- success
|
|
|
922 |
- pe
|
|
|
923 |
"""
|
|
|
924 |
|
|
|
925 |
thrift_spec = (
|
|
|
926 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
927 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
928 |
)
|
|
|
929 |
|
|
|
930 |
def __init__(self, success=None, pe=None,):
|
|
|
931 |
self.success = success
|
|
|
932 |
self.pe = pe
|
|
|
933 |
|
|
|
934 |
def read(self, iprot):
|
|
|
935 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
936 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
937 |
return
|
|
|
938 |
iprot.readStructBegin()
|
|
|
939 |
while True:
|
|
|
940 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
941 |
if ftype == TType.STOP:
|
|
|
942 |
break
|
|
|
943 |
if fid == 0:
|
|
|
944 |
if ftype == TType.LIST:
|
|
|
945 |
self.success = []
|
| 696 |
rajveer |
946 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
947 |
for _i18 in xrange(_size14):
|
|
|
948 |
_elem19 = Payment()
|
|
|
949 |
_elem19.read(iprot)
|
|
|
950 |
self.success.append(_elem19)
|
| 420 |
ashish |
951 |
iprot.readListEnd()
|
|
|
952 |
else:
|
|
|
953 |
iprot.skip(ftype)
|
|
|
954 |
elif fid == 1:
|
|
|
955 |
if ftype == TType.STRUCT:
|
|
|
956 |
self.pe = PaymentException()
|
|
|
957 |
self.pe.read(iprot)
|
|
|
958 |
else:
|
|
|
959 |
iprot.skip(ftype)
|
|
|
960 |
else:
|
|
|
961 |
iprot.skip(ftype)
|
|
|
962 |
iprot.readFieldEnd()
|
|
|
963 |
iprot.readStructEnd()
|
|
|
964 |
|
|
|
965 |
def write(self, oprot):
|
|
|
966 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
967 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
968 |
return
|
|
|
969 |
oprot.writeStructBegin('getPaymentsForUser_result')
|
|
|
970 |
if self.success != None:
|
|
|
971 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
972 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 696 |
rajveer |
973 |
for iter20 in self.success:
|
|
|
974 |
iter20.write(oprot)
|
| 420 |
ashish |
975 |
oprot.writeListEnd()
|
|
|
976 |
oprot.writeFieldEnd()
|
|
|
977 |
if self.pe != None:
|
|
|
978 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
979 |
self.pe.write(oprot)
|
|
|
980 |
oprot.writeFieldEnd()
|
|
|
981 |
oprot.writeFieldStop()
|
|
|
982 |
oprot.writeStructEnd()
|
|
|
983 |
|
|
|
984 |
def __repr__(self):
|
|
|
985 |
L = ['%s=%r' % (key, value)
|
|
|
986 |
for key, value in self.__dict__.iteritems()]
|
|
|
987 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
988 |
|
|
|
989 |
def __eq__(self, other):
|
|
|
990 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
991 |
|
|
|
992 |
def __ne__(self, other):
|
|
|
993 |
return not (self == other)
|
|
|
994 |
|
|
|
995 |
class getPayments_args:
|
|
|
996 |
"""
|
|
|
997 |
Attributes:
|
| 696 |
rajveer |
998 |
- fromTime
|
|
|
999 |
- toTime
|
| 420 |
ashish |
1000 |
- status
|
| 696 |
rajveer |
1001 |
- gatewayId
|
| 420 |
ashish |
1002 |
"""
|
|
|
1003 |
|
|
|
1004 |
thrift_spec = (
|
|
|
1005 |
None, # 0
|
| 696 |
rajveer |
1006 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
1007 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
| 420 |
ashish |
1008 |
(3, TType.I32, 'status', None, None, ), # 3
|
| 696 |
rajveer |
1009 |
(4, TType.I64, 'gatewayId', None, None, ), # 4
|
| 420 |
ashish |
1010 |
)
|
|
|
1011 |
|
| 696 |
rajveer |
1012 |
def __init__(self, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
|
|
1013 |
self.fromTime = fromTime
|
|
|
1014 |
self.toTime = toTime
|
| 420 |
ashish |
1015 |
self.status = status
|
| 696 |
rajveer |
1016 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1017 |
|
|
|
1018 |
def read(self, iprot):
|
|
|
1019 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1020 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1021 |
return
|
|
|
1022 |
iprot.readStructBegin()
|
|
|
1023 |
while True:
|
|
|
1024 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1025 |
if ftype == TType.STOP:
|
|
|
1026 |
break
|
|
|
1027 |
if fid == 1:
|
|
|
1028 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1029 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1030 |
else:
|
|
|
1031 |
iprot.skip(ftype)
|
|
|
1032 |
elif fid == 2:
|
|
|
1033 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1034 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1035 |
else:
|
|
|
1036 |
iprot.skip(ftype)
|
|
|
1037 |
elif fid == 3:
|
|
|
1038 |
if ftype == TType.I32:
|
|
|
1039 |
self.status = iprot.readI32();
|
|
|
1040 |
else:
|
|
|
1041 |
iprot.skip(ftype)
|
|
|
1042 |
elif fid == 4:
|
|
|
1043 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1044 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1045 |
else:
|
|
|
1046 |
iprot.skip(ftype)
|
|
|
1047 |
else:
|
|
|
1048 |
iprot.skip(ftype)
|
|
|
1049 |
iprot.readFieldEnd()
|
|
|
1050 |
iprot.readStructEnd()
|
|
|
1051 |
|
|
|
1052 |
def write(self, oprot):
|
|
|
1053 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1054 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1055 |
return
|
|
|
1056 |
oprot.writeStructBegin('getPayments_args')
|
| 696 |
rajveer |
1057 |
if self.fromTime != None:
|
|
|
1058 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
1059 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1060 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1061 |
if self.toTime != None:
|
|
|
1062 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
1063 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1064 |
oprot.writeFieldEnd()
|
|
|
1065 |
if self.status != None:
|
|
|
1066 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
1067 |
oprot.writeI32(self.status)
|
|
|
1068 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1069 |
if self.gatewayId != None:
|
|
|
1070 |
oprot.writeFieldBegin('gatewayId', TType.I64, 4)
|
|
|
1071 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1072 |
oprot.writeFieldEnd()
|
|
|
1073 |
oprot.writeFieldStop()
|
|
|
1074 |
oprot.writeStructEnd()
|
|
|
1075 |
|
|
|
1076 |
def __repr__(self):
|
|
|
1077 |
L = ['%s=%r' % (key, value)
|
|
|
1078 |
for key, value in self.__dict__.iteritems()]
|
|
|
1079 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1080 |
|
|
|
1081 |
def __eq__(self, other):
|
|
|
1082 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1083 |
|
|
|
1084 |
def __ne__(self, other):
|
|
|
1085 |
return not (self == other)
|
|
|
1086 |
|
|
|
1087 |
class getPayments_result:
|
|
|
1088 |
"""
|
|
|
1089 |
Attributes:
|
|
|
1090 |
- success
|
|
|
1091 |
- pe
|
|
|
1092 |
"""
|
|
|
1093 |
|
|
|
1094 |
thrift_spec = (
|
|
|
1095 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1096 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1097 |
)
|
|
|
1098 |
|
|
|
1099 |
def __init__(self, success=None, pe=None,):
|
|
|
1100 |
self.success = success
|
|
|
1101 |
self.pe = pe
|
|
|
1102 |
|
|
|
1103 |
def read(self, iprot):
|
|
|
1104 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1105 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1106 |
return
|
|
|
1107 |
iprot.readStructBegin()
|
|
|
1108 |
while True:
|
|
|
1109 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1110 |
if ftype == TType.STOP:
|
|
|
1111 |
break
|
|
|
1112 |
if fid == 0:
|
|
|
1113 |
if ftype == TType.LIST:
|
|
|
1114 |
self.success = []
|
| 696 |
rajveer |
1115 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
1116 |
for _i25 in xrange(_size21):
|
|
|
1117 |
_elem26 = Payment()
|
|
|
1118 |
_elem26.read(iprot)
|
|
|
1119 |
self.success.append(_elem26)
|
| 420 |
ashish |
1120 |
iprot.readListEnd()
|
|
|
1121 |
else:
|
|
|
1122 |
iprot.skip(ftype)
|
|
|
1123 |
elif fid == 1:
|
|
|
1124 |
if ftype == TType.STRUCT:
|
|
|
1125 |
self.pe = PaymentException()
|
|
|
1126 |
self.pe.read(iprot)
|
|
|
1127 |
else:
|
|
|
1128 |
iprot.skip(ftype)
|
|
|
1129 |
else:
|
|
|
1130 |
iprot.skip(ftype)
|
|
|
1131 |
iprot.readFieldEnd()
|
|
|
1132 |
iprot.readStructEnd()
|
|
|
1133 |
|
|
|
1134 |
def write(self, oprot):
|
|
|
1135 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1136 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1137 |
return
|
|
|
1138 |
oprot.writeStructBegin('getPayments_result')
|
|
|
1139 |
if self.success != None:
|
|
|
1140 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1141 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 696 |
rajveer |
1142 |
for iter27 in self.success:
|
|
|
1143 |
iter27.write(oprot)
|
| 420 |
ashish |
1144 |
oprot.writeListEnd()
|
|
|
1145 |
oprot.writeFieldEnd()
|
|
|
1146 |
if self.pe != None:
|
|
|
1147 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1148 |
self.pe.write(oprot)
|
|
|
1149 |
oprot.writeFieldEnd()
|
|
|
1150 |
oprot.writeFieldStop()
|
|
|
1151 |
oprot.writeStructEnd()
|
|
|
1152 |
|
|
|
1153 |
def __repr__(self):
|
|
|
1154 |
L = ['%s=%r' % (key, value)
|
|
|
1155 |
for key, value in self.__dict__.iteritems()]
|
|
|
1156 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1157 |
|
|
|
1158 |
def __eq__(self, other):
|
|
|
1159 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1160 |
|
|
|
1161 |
def __ne__(self, other):
|
|
|
1162 |
return not (self == other)
|
|
|
1163 |
|
| 696 |
rajveer |
1164 |
class getPaymentGateway_args:
|
| 420 |
ashish |
1165 |
"""
|
|
|
1166 |
Attributes:
|
|
|
1167 |
- id
|
|
|
1168 |
"""
|
|
|
1169 |
|
|
|
1170 |
thrift_spec = (
|
|
|
1171 |
None, # 0
|
|
|
1172 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1173 |
)
|
|
|
1174 |
|
| 696 |
rajveer |
1175 |
def __init__(self, id=None,):
|
| 420 |
ashish |
1176 |
self.id = id
|
|
|
1177 |
|
|
|
1178 |
def read(self, iprot):
|
|
|
1179 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1180 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1181 |
return
|
|
|
1182 |
iprot.readStructBegin()
|
|
|
1183 |
while True:
|
|
|
1184 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1185 |
if ftype == TType.STOP:
|
|
|
1186 |
break
|
|
|
1187 |
if fid == 1:
|
|
|
1188 |
if ftype == TType.I64:
|
|
|
1189 |
self.id = iprot.readI64();
|
|
|
1190 |
else:
|
|
|
1191 |
iprot.skip(ftype)
|
|
|
1192 |
else:
|
|
|
1193 |
iprot.skip(ftype)
|
|
|
1194 |
iprot.readFieldEnd()
|
|
|
1195 |
iprot.readStructEnd()
|
|
|
1196 |
|
|
|
1197 |
def write(self, oprot):
|
|
|
1198 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1199 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1200 |
return
|
| 696 |
rajveer |
1201 |
oprot.writeStructBegin('getPaymentGateway_args')
|
| 420 |
ashish |
1202 |
if self.id != None:
|
|
|
1203 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1204 |
oprot.writeI64(self.id)
|
|
|
1205 |
oprot.writeFieldEnd()
|
|
|
1206 |
oprot.writeFieldStop()
|
|
|
1207 |
oprot.writeStructEnd()
|
|
|
1208 |
|
|
|
1209 |
def __repr__(self):
|
|
|
1210 |
L = ['%s=%r' % (key, value)
|
|
|
1211 |
for key, value in self.__dict__.iteritems()]
|
|
|
1212 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1213 |
|
|
|
1214 |
def __eq__(self, other):
|
|
|
1215 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1216 |
|
|
|
1217 |
def __ne__(self, other):
|
|
|
1218 |
return not (self == other)
|
|
|
1219 |
|
| 696 |
rajveer |
1220 |
class getPaymentGateway_result:
|
| 420 |
ashish |
1221 |
"""
|
|
|
1222 |
Attributes:
|
|
|
1223 |
- success
|
|
|
1224 |
- pe
|
|
|
1225 |
"""
|
|
|
1226 |
|
|
|
1227 |
thrift_spec = (
|
| 696 |
rajveer |
1228 |
(0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
|
| 420 |
ashish |
1229 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1230 |
)
|
|
|
1231 |
|
|
|
1232 |
def __init__(self, success=None, pe=None,):
|
|
|
1233 |
self.success = success
|
|
|
1234 |
self.pe = pe
|
|
|
1235 |
|
|
|
1236 |
def read(self, iprot):
|
|
|
1237 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1238 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1239 |
return
|
|
|
1240 |
iprot.readStructBegin()
|
|
|
1241 |
while True:
|
|
|
1242 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1243 |
if ftype == TType.STOP:
|
|
|
1244 |
break
|
|
|
1245 |
if fid == 0:
|
| 696 |
rajveer |
1246 |
if ftype == TType.STRUCT:
|
|
|
1247 |
self.success = PaymentGateway()
|
|
|
1248 |
self.success.read(iprot)
|
| 420 |
ashish |
1249 |
else:
|
|
|
1250 |
iprot.skip(ftype)
|
|
|
1251 |
elif fid == 1:
|
|
|
1252 |
if ftype == TType.STRUCT:
|
|
|
1253 |
self.pe = PaymentException()
|
|
|
1254 |
self.pe.read(iprot)
|
|
|
1255 |
else:
|
|
|
1256 |
iprot.skip(ftype)
|
|
|
1257 |
else:
|
|
|
1258 |
iprot.skip(ftype)
|
|
|
1259 |
iprot.readFieldEnd()
|
|
|
1260 |
iprot.readStructEnd()
|
|
|
1261 |
|
|
|
1262 |
def write(self, oprot):
|
|
|
1263 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1264 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1265 |
return
|
| 696 |
rajveer |
1266 |
oprot.writeStructBegin('getPaymentGateway_result')
|
| 420 |
ashish |
1267 |
if self.success != None:
|
| 696 |
rajveer |
1268 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1269 |
self.success.write(oprot)
|
| 420 |
ashish |
1270 |
oprot.writeFieldEnd()
|
|
|
1271 |
if self.pe != None:
|
|
|
1272 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1273 |
self.pe.write(oprot)
|
|
|
1274 |
oprot.writeFieldEnd()
|
|
|
1275 |
oprot.writeFieldStop()
|
|
|
1276 |
oprot.writeStructEnd()
|
|
|
1277 |
|
|
|
1278 |
def __repr__(self):
|
|
|
1279 |
L = ['%s=%r' % (key, value)
|
|
|
1280 |
for key, value in self.__dict__.iteritems()]
|
|
|
1281 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1282 |
|
|
|
1283 |
def __eq__(self, other):
|
|
|
1284 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1285 |
|
|
|
1286 |
def __ne__(self, other):
|
|
|
1287 |
return not (self == other)
|
|
|
1288 |
|
| 696 |
rajveer |
1289 |
class getPayment_args:
|
| 420 |
ashish |
1290 |
"""
|
|
|
1291 |
Attributes:
|
|
|
1292 |
- id
|
|
|
1293 |
"""
|
|
|
1294 |
|
|
|
1295 |
thrift_spec = (
|
|
|
1296 |
None, # 0
|
|
|
1297 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1298 |
)
|
|
|
1299 |
|
|
|
1300 |
def __init__(self, id=None,):
|
|
|
1301 |
self.id = id
|
|
|
1302 |
|
|
|
1303 |
def read(self, iprot):
|
|
|
1304 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1305 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1306 |
return
|
|
|
1307 |
iprot.readStructBegin()
|
|
|
1308 |
while True:
|
|
|
1309 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1310 |
if ftype == TType.STOP:
|
|
|
1311 |
break
|
|
|
1312 |
if fid == 1:
|
|
|
1313 |
if ftype == TType.I64:
|
|
|
1314 |
self.id = iprot.readI64();
|
|
|
1315 |
else:
|
|
|
1316 |
iprot.skip(ftype)
|
|
|
1317 |
else:
|
|
|
1318 |
iprot.skip(ftype)
|
|
|
1319 |
iprot.readFieldEnd()
|
|
|
1320 |
iprot.readStructEnd()
|
|
|
1321 |
|
|
|
1322 |
def write(self, oprot):
|
|
|
1323 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1324 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1325 |
return
|
| 696 |
rajveer |
1326 |
oprot.writeStructBegin('getPayment_args')
|
| 420 |
ashish |
1327 |
if self.id != None:
|
|
|
1328 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1329 |
oprot.writeI64(self.id)
|
|
|
1330 |
oprot.writeFieldEnd()
|
|
|
1331 |
oprot.writeFieldStop()
|
|
|
1332 |
oprot.writeStructEnd()
|
|
|
1333 |
|
|
|
1334 |
def __repr__(self):
|
|
|
1335 |
L = ['%s=%r' % (key, value)
|
|
|
1336 |
for key, value in self.__dict__.iteritems()]
|
|
|
1337 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1338 |
|
|
|
1339 |
def __eq__(self, other):
|
|
|
1340 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1341 |
|
|
|
1342 |
def __ne__(self, other):
|
|
|
1343 |
return not (self == other)
|
|
|
1344 |
|
| 696 |
rajveer |
1345 |
class getPayment_result:
|
| 420 |
ashish |
1346 |
"""
|
|
|
1347 |
Attributes:
|
|
|
1348 |
- success
|
|
|
1349 |
- pe
|
|
|
1350 |
"""
|
|
|
1351 |
|
|
|
1352 |
thrift_spec = (
|
| 696 |
rajveer |
1353 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
| 420 |
ashish |
1354 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1355 |
)
|
|
|
1356 |
|
|
|
1357 |
def __init__(self, success=None, pe=None,):
|
|
|
1358 |
self.success = success
|
|
|
1359 |
self.pe = pe
|
|
|
1360 |
|
|
|
1361 |
def read(self, iprot):
|
|
|
1362 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1363 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1364 |
return
|
|
|
1365 |
iprot.readStructBegin()
|
|
|
1366 |
while True:
|
|
|
1367 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1368 |
if ftype == TType.STOP:
|
|
|
1369 |
break
|
|
|
1370 |
if fid == 0:
|
|
|
1371 |
if ftype == TType.STRUCT:
|
| 696 |
rajveer |
1372 |
self.success = Payment()
|
| 420 |
ashish |
1373 |
self.success.read(iprot)
|
|
|
1374 |
else:
|
|
|
1375 |
iprot.skip(ftype)
|
|
|
1376 |
elif fid == 1:
|
|
|
1377 |
if ftype == TType.STRUCT:
|
|
|
1378 |
self.pe = PaymentException()
|
|
|
1379 |
self.pe.read(iprot)
|
|
|
1380 |
else:
|
|
|
1381 |
iprot.skip(ftype)
|
|
|
1382 |
else:
|
|
|
1383 |
iprot.skip(ftype)
|
|
|
1384 |
iprot.readFieldEnd()
|
|
|
1385 |
iprot.readStructEnd()
|
|
|
1386 |
|
|
|
1387 |
def write(self, oprot):
|
|
|
1388 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1389 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1390 |
return
|
| 696 |
rajveer |
1391 |
oprot.writeStructBegin('getPayment_result')
|
| 420 |
ashish |
1392 |
if self.success != None:
|
|
|
1393 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1394 |
self.success.write(oprot)
|
|
|
1395 |
oprot.writeFieldEnd()
|
|
|
1396 |
if self.pe != None:
|
|
|
1397 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1398 |
self.pe.write(oprot)
|
|
|
1399 |
oprot.writeFieldEnd()
|
|
|
1400 |
oprot.writeFieldStop()
|
|
|
1401 |
oprot.writeStructEnd()
|
|
|
1402 |
|
|
|
1403 |
def __repr__(self):
|
|
|
1404 |
L = ['%s=%r' % (key, value)
|
|
|
1405 |
for key, value in self.__dict__.iteritems()]
|
|
|
1406 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1407 |
|
|
|
1408 |
def __eq__(self, other):
|
|
|
1409 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1410 |
|
|
|
1411 |
def __ne__(self, other):
|
|
|
1412 |
return not (self == other)
|
|
|
1413 |
|
| 696 |
rajveer |
1414 |
class getPaymentForTxnId_args:
|
| 420 |
ashish |
1415 |
"""
|
|
|
1416 |
Attributes:
|
| 696 |
rajveer |
1417 |
- txnId
|
| 420 |
ashish |
1418 |
"""
|
|
|
1419 |
|
|
|
1420 |
thrift_spec = (
|
|
|
1421 |
None, # 0
|
| 696 |
rajveer |
1422 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
| 420 |
ashish |
1423 |
)
|
|
|
1424 |
|
| 696 |
rajveer |
1425 |
def __init__(self, txnId=None,):
|
|
|
1426 |
self.txnId = txnId
|
| 420 |
ashish |
1427 |
|
|
|
1428 |
def read(self, iprot):
|
|
|
1429 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1430 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1431 |
return
|
|
|
1432 |
iprot.readStructBegin()
|
|
|
1433 |
while True:
|
|
|
1434 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1435 |
if ftype == TType.STOP:
|
|
|
1436 |
break
|
|
|
1437 |
if fid == 1:
|
|
|
1438 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1439 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
1440 |
else:
|
|
|
1441 |
iprot.skip(ftype)
|
|
|
1442 |
else:
|
|
|
1443 |
iprot.skip(ftype)
|
|
|
1444 |
iprot.readFieldEnd()
|
|
|
1445 |
iprot.readStructEnd()
|
|
|
1446 |
|
|
|
1447 |
def write(self, oprot):
|
|
|
1448 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1449 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1450 |
return
|
| 696 |
rajveer |
1451 |
oprot.writeStructBegin('getPaymentForTxnId_args')
|
|
|
1452 |
if self.txnId != None:
|
|
|
1453 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
1454 |
oprot.writeI64(self.txnId)
|
| 420 |
ashish |
1455 |
oprot.writeFieldEnd()
|
|
|
1456 |
oprot.writeFieldStop()
|
|
|
1457 |
oprot.writeStructEnd()
|
|
|
1458 |
|
|
|
1459 |
def __repr__(self):
|
|
|
1460 |
L = ['%s=%r' % (key, value)
|
|
|
1461 |
for key, value in self.__dict__.iteritems()]
|
|
|
1462 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1463 |
|
|
|
1464 |
def __eq__(self, other):
|
|
|
1465 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1466 |
|
|
|
1467 |
def __ne__(self, other):
|
|
|
1468 |
return not (self == other)
|
|
|
1469 |
|
| 696 |
rajveer |
1470 |
class getPaymentForTxnId_result:
|
| 420 |
ashish |
1471 |
"""
|
|
|
1472 |
Attributes:
|
|
|
1473 |
- success
|
|
|
1474 |
- pe
|
|
|
1475 |
"""
|
|
|
1476 |
|
|
|
1477 |
thrift_spec = (
|
| 696 |
rajveer |
1478 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
| 420 |
ashish |
1479 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1480 |
)
|
|
|
1481 |
|
|
|
1482 |
def __init__(self, success=None, pe=None,):
|
|
|
1483 |
self.success = success
|
|
|
1484 |
self.pe = pe
|
|
|
1485 |
|
|
|
1486 |
def read(self, iprot):
|
|
|
1487 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1488 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1489 |
return
|
|
|
1490 |
iprot.readStructBegin()
|
|
|
1491 |
while True:
|
|
|
1492 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1493 |
if ftype == TType.STOP:
|
|
|
1494 |
break
|
|
|
1495 |
if fid == 0:
|
| 696 |
rajveer |
1496 |
if ftype == TType.LIST:
|
|
|
1497 |
self.success = []
|
|
|
1498 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
1499 |
for _i32 in xrange(_size28):
|
|
|
1500 |
_elem33 = Payment()
|
|
|
1501 |
_elem33.read(iprot)
|
|
|
1502 |
self.success.append(_elem33)
|
|
|
1503 |
iprot.readListEnd()
|
| 420 |
ashish |
1504 |
else:
|
|
|
1505 |
iprot.skip(ftype)
|
|
|
1506 |
elif fid == 1:
|
|
|
1507 |
if ftype == TType.STRUCT:
|
|
|
1508 |
self.pe = PaymentException()
|
|
|
1509 |
self.pe.read(iprot)
|
|
|
1510 |
else:
|
|
|
1511 |
iprot.skip(ftype)
|
|
|
1512 |
else:
|
|
|
1513 |
iprot.skip(ftype)
|
|
|
1514 |
iprot.readFieldEnd()
|
|
|
1515 |
iprot.readStructEnd()
|
|
|
1516 |
|
|
|
1517 |
def write(self, oprot):
|
|
|
1518 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1519 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1520 |
return
|
| 696 |
rajveer |
1521 |
oprot.writeStructBegin('getPaymentForTxnId_result')
|
| 420 |
ashish |
1522 |
if self.success != None:
|
| 696 |
rajveer |
1523 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1524 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1525 |
for iter34 in self.success:
|
|
|
1526 |
iter34.write(oprot)
|
|
|
1527 |
oprot.writeListEnd()
|
| 420 |
ashish |
1528 |
oprot.writeFieldEnd()
|
|
|
1529 |
if self.pe != None:
|
|
|
1530 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1531 |
self.pe.write(oprot)
|
|
|
1532 |
oprot.writeFieldEnd()
|
|
|
1533 |
oprot.writeFieldStop()
|
|
|
1534 |
oprot.writeStructEnd()
|
|
|
1535 |
|
|
|
1536 |
def __repr__(self):
|
|
|
1537 |
L = ['%s=%r' % (key, value)
|
|
|
1538 |
for key, value in self.__dict__.iteritems()]
|
|
|
1539 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1540 |
|
|
|
1541 |
def __eq__(self, other):
|
|
|
1542 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1543 |
|
|
|
1544 |
def __ne__(self, other):
|
|
|
1545 |
return not (self == other)
|
|
|
1546 |
|
| 696 |
rajveer |
1547 |
class updatePaymentDetails_args:
|
| 420 |
ashish |
1548 |
"""
|
|
|
1549 |
Attributes:
|
|
|
1550 |
- id
|
| 696 |
rajveer |
1551 |
- gatewayPaymentId
|
|
|
1552 |
- sessionId
|
|
|
1553 |
- gatewayTxnStatus
|
|
|
1554 |
- description
|
|
|
1555 |
- gatewayTxnId
|
|
|
1556 |
- authCode
|
|
|
1557 |
- referenceCode
|
|
|
1558 |
- errorCode
|
|
|
1559 |
- status
|
| 1120 |
rajveer |
1560 |
- gatewayTxnDate
|
| 696 |
rajveer |
1561 |
- attributes
|
| 420 |
ashish |
1562 |
"""
|
|
|
1563 |
|
|
|
1564 |
thrift_spec = (
|
|
|
1565 |
None, # 0
|
|
|
1566 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 696 |
rajveer |
1567 |
(2, TType.STRING, 'gatewayPaymentId', None, None, ), # 2
|
|
|
1568 |
(3, TType.STRING, 'sessionId', None, None, ), # 3
|
|
|
1569 |
(4, TType.STRING, 'gatewayTxnStatus', None, None, ), # 4
|
|
|
1570 |
(5, TType.STRING, 'description', None, None, ), # 5
|
|
|
1571 |
(6, TType.STRING, 'gatewayTxnId', None, None, ), # 6
|
|
|
1572 |
(7, TType.STRING, 'authCode', None, None, ), # 7
|
|
|
1573 |
(8, TType.STRING, 'referenceCode', None, None, ), # 8
|
|
|
1574 |
(9, TType.STRING, 'errorCode', None, None, ), # 9
|
|
|
1575 |
(10, TType.I32, 'status', None, None, ), # 10
|
| 1120 |
rajveer |
1576 |
(11, TType.STRING, 'gatewayTxnDate', None, None, ), # 11
|
|
|
1577 |
(12, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 12
|
| 420 |
ashish |
1578 |
)
|
|
|
1579 |
|
| 1120 |
rajveer |
1580 |
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 |
1581 |
self.id = id
|
| 696 |
rajveer |
1582 |
self.gatewayPaymentId = gatewayPaymentId
|
|
|
1583 |
self.sessionId = sessionId
|
|
|
1584 |
self.gatewayTxnStatus = gatewayTxnStatus
|
|
|
1585 |
self.description = description
|
|
|
1586 |
self.gatewayTxnId = gatewayTxnId
|
|
|
1587 |
self.authCode = authCode
|
|
|
1588 |
self.referenceCode = referenceCode
|
|
|
1589 |
self.errorCode = errorCode
|
|
|
1590 |
self.status = status
|
| 1120 |
rajveer |
1591 |
self.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
1592 |
self.attributes = attributes
|
| 420 |
ashish |
1593 |
|
|
|
1594 |
def read(self, iprot):
|
|
|
1595 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1596 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1597 |
return
|
|
|
1598 |
iprot.readStructBegin()
|
|
|
1599 |
while True:
|
|
|
1600 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1601 |
if ftype == TType.STOP:
|
|
|
1602 |
break
|
|
|
1603 |
if fid == 1:
|
|
|
1604 |
if ftype == TType.I64:
|
|
|
1605 |
self.id = iprot.readI64();
|
|
|
1606 |
else:
|
|
|
1607 |
iprot.skip(ftype)
|
|
|
1608 |
elif fid == 2:
|
|
|
1609 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1610 |
self.gatewayPaymentId = iprot.readString();
|
| 420 |
ashish |
1611 |
else:
|
|
|
1612 |
iprot.skip(ftype)
|
|
|
1613 |
elif fid == 3:
|
|
|
1614 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1615 |
self.sessionId = iprot.readString();
|
| 420 |
ashish |
1616 |
else:
|
|
|
1617 |
iprot.skip(ftype)
|
|
|
1618 |
elif fid == 4:
|
|
|
1619 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1620 |
self.gatewayTxnStatus = iprot.readString();
|
| 420 |
ashish |
1621 |
else:
|
|
|
1622 |
iprot.skip(ftype)
|
|
|
1623 |
elif fid == 5:
|
|
|
1624 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1625 |
self.description = iprot.readString();
|
| 420 |
ashish |
1626 |
else:
|
|
|
1627 |
iprot.skip(ftype)
|
|
|
1628 |
elif fid == 6:
|
|
|
1629 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1630 |
self.gatewayTxnId = iprot.readString();
|
| 420 |
ashish |
1631 |
else:
|
|
|
1632 |
iprot.skip(ftype)
|
|
|
1633 |
elif fid == 7:
|
|
|
1634 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1635 |
self.authCode = iprot.readString();
|
| 420 |
ashish |
1636 |
else:
|
|
|
1637 |
iprot.skip(ftype)
|
|
|
1638 |
elif fid == 8:
|
|
|
1639 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
1640 |
self.referenceCode = iprot.readString();
|
| 420 |
ashish |
1641 |
else:
|
|
|
1642 |
iprot.skip(ftype)
|
| 696 |
rajveer |
1643 |
elif fid == 9:
|
|
|
1644 |
if ftype == TType.STRING:
|
|
|
1645 |
self.errorCode = iprot.readString();
|
|
|
1646 |
else:
|
|
|
1647 |
iprot.skip(ftype)
|
|
|
1648 |
elif fid == 10:
|
|
|
1649 |
if ftype == TType.I32:
|
|
|
1650 |
self.status = iprot.readI32();
|
|
|
1651 |
else:
|
|
|
1652 |
iprot.skip(ftype)
|
|
|
1653 |
elif fid == 11:
|
| 1120 |
rajveer |
1654 |
if ftype == TType.STRING:
|
|
|
1655 |
self.gatewayTxnDate = iprot.readString();
|
|
|
1656 |
else:
|
|
|
1657 |
iprot.skip(ftype)
|
|
|
1658 |
elif fid == 12:
|
| 696 |
rajveer |
1659 |
if ftype == TType.LIST:
|
|
|
1660 |
self.attributes = []
|
|
|
1661 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
1662 |
for _i39 in xrange(_size35):
|
|
|
1663 |
_elem40 = Attribute()
|
|
|
1664 |
_elem40.read(iprot)
|
|
|
1665 |
self.attributes.append(_elem40)
|
|
|
1666 |
iprot.readListEnd()
|
|
|
1667 |
else:
|
|
|
1668 |
iprot.skip(ftype)
|
| 420 |
ashish |
1669 |
else:
|
|
|
1670 |
iprot.skip(ftype)
|
|
|
1671 |
iprot.readFieldEnd()
|
|
|
1672 |
iprot.readStructEnd()
|
|
|
1673 |
|
|
|
1674 |
def write(self, oprot):
|
|
|
1675 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1676 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1677 |
return
|
| 696 |
rajveer |
1678 |
oprot.writeStructBegin('updatePaymentDetails_args')
|
| 420 |
ashish |
1679 |
if self.id != None:
|
|
|
1680 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1681 |
oprot.writeI64(self.id)
|
|
|
1682 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1683 |
if self.gatewayPaymentId != None:
|
|
|
1684 |
oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
|
|
|
1685 |
oprot.writeString(self.gatewayPaymentId)
|
| 420 |
ashish |
1686 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1687 |
if self.sessionId != None:
|
|
|
1688 |
oprot.writeFieldBegin('sessionId', TType.STRING, 3)
|
|
|
1689 |
oprot.writeString(self.sessionId)
|
| 420 |
ashish |
1690 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1691 |
if self.gatewayTxnStatus != None:
|
|
|
1692 |
oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
|
|
|
1693 |
oprot.writeString(self.gatewayTxnStatus)
|
| 420 |
ashish |
1694 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1695 |
if self.description != None:
|
|
|
1696 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
1697 |
oprot.writeString(self.description)
|
| 420 |
ashish |
1698 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1699 |
if self.gatewayTxnId != None:
|
|
|
1700 |
oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
|
|
|
1701 |
oprot.writeString(self.gatewayTxnId)
|
| 420 |
ashish |
1702 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1703 |
if self.authCode != None:
|
|
|
1704 |
oprot.writeFieldBegin('authCode', TType.STRING, 7)
|
|
|
1705 |
oprot.writeString(self.authCode)
|
| 420 |
ashish |
1706 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1707 |
if self.referenceCode != None:
|
|
|
1708 |
oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
|
|
|
1709 |
oprot.writeString(self.referenceCode)
|
| 420 |
ashish |
1710 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1711 |
if self.errorCode != None:
|
|
|
1712 |
oprot.writeFieldBegin('errorCode', TType.STRING, 9)
|
|
|
1713 |
oprot.writeString(self.errorCode)
|
|
|
1714 |
oprot.writeFieldEnd()
|
|
|
1715 |
if self.status != None:
|
|
|
1716 |
oprot.writeFieldBegin('status', TType.I32, 10)
|
|
|
1717 |
oprot.writeI32(self.status)
|
|
|
1718 |
oprot.writeFieldEnd()
|
| 1120 |
rajveer |
1719 |
if self.gatewayTxnDate != None:
|
|
|
1720 |
oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
|
|
|
1721 |
oprot.writeString(self.gatewayTxnDate)
|
|
|
1722 |
oprot.writeFieldEnd()
|
| 696 |
rajveer |
1723 |
if self.attributes != None:
|
| 1120 |
rajveer |
1724 |
oprot.writeFieldBegin('attributes', TType.LIST, 12)
|
| 696 |
rajveer |
1725 |
oprot.writeListBegin(TType.STRUCT, len(self.attributes))
|
|
|
1726 |
for iter41 in self.attributes:
|
|
|
1727 |
iter41.write(oprot)
|
|
|
1728 |
oprot.writeListEnd()
|
|
|
1729 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
1730 |
oprot.writeFieldStop()
|
|
|
1731 |
oprot.writeStructEnd()
|
|
|
1732 |
|
|
|
1733 |
def __repr__(self):
|
|
|
1734 |
L = ['%s=%r' % (key, value)
|
|
|
1735 |
for key, value in self.__dict__.iteritems()]
|
|
|
1736 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1737 |
|
|
|
1738 |
def __eq__(self, other):
|
|
|
1739 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1740 |
|
|
|
1741 |
def __ne__(self, other):
|
|
|
1742 |
return not (self == other)
|
|
|
1743 |
|
| 696 |
rajveer |
1744 |
class updatePaymentDetails_result:
|
| 420 |
ashish |
1745 |
"""
|
|
|
1746 |
Attributes:
|
| 696 |
rajveer |
1747 |
- success
|
| 420 |
ashish |
1748 |
- pe
|
|
|
1749 |
"""
|
|
|
1750 |
|
|
|
1751 |
thrift_spec = (
|
| 696 |
rajveer |
1752 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 420 |
ashish |
1753 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1754 |
)
|
|
|
1755 |
|
| 696 |
rajveer |
1756 |
def __init__(self, success=None, pe=None,):
|
|
|
1757 |
self.success = success
|
| 420 |
ashish |
1758 |
self.pe = pe
|
|
|
1759 |
|
|
|
1760 |
def read(self, iprot):
|
|
|
1761 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1762 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1763 |
return
|
|
|
1764 |
iprot.readStructBegin()
|
|
|
1765 |
while True:
|
|
|
1766 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1767 |
if ftype == TType.STOP:
|
|
|
1768 |
break
|
| 696 |
rajveer |
1769 |
if fid == 0:
|
|
|
1770 |
if ftype == TType.BOOL:
|
|
|
1771 |
self.success = iprot.readBool();
|
|
|
1772 |
else:
|
|
|
1773 |
iprot.skip(ftype)
|
|
|
1774 |
elif fid == 1:
|
| 420 |
ashish |
1775 |
if ftype == TType.STRUCT:
|
|
|
1776 |
self.pe = PaymentException()
|
|
|
1777 |
self.pe.read(iprot)
|
|
|
1778 |
else:
|
|
|
1779 |
iprot.skip(ftype)
|
|
|
1780 |
else:
|
|
|
1781 |
iprot.skip(ftype)
|
|
|
1782 |
iprot.readFieldEnd()
|
|
|
1783 |
iprot.readStructEnd()
|
|
|
1784 |
|
|
|
1785 |
def write(self, oprot):
|
|
|
1786 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1787 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1788 |
return
|
| 696 |
rajveer |
1789 |
oprot.writeStructBegin('updatePaymentDetails_result')
|
|
|
1790 |
if self.success != None:
|
|
|
1791 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
1792 |
oprot.writeBool(self.success)
|
|
|
1793 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
1794 |
if self.pe != None:
|
|
|
1795 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1796 |
self.pe.write(oprot)
|
|
|
1797 |
oprot.writeFieldEnd()
|
|
|
1798 |
oprot.writeFieldStop()
|
|
|
1799 |
oprot.writeStructEnd()
|
|
|
1800 |
|
|
|
1801 |
def __repr__(self):
|
|
|
1802 |
L = ['%s=%r' % (key, value)
|
|
|
1803 |
for key, value in self.__dict__.iteritems()]
|
|
|
1804 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1805 |
|
|
|
1806 |
def __eq__(self, other):
|
|
|
1807 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1808 |
|
|
|
1809 |
def __ne__(self, other):
|
|
|
1810 |
return not (self == other)
|
|
|
1811 |
|
|
|
1812 |
|