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