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