| 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):
|
| 6050 |
anupam.sin |
20 |
def createPayment(self, userId, amount, gatewayId, txnId, isDigital):
|
| 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 |
|
| 420 |
ashish |
24 |
Parameters:
|
| 696 |
rajveer |
25 |
- userId
|
| 420 |
ashish |
26 |
- amount
|
| 696 |
rajveer |
27 |
- gatewayId
|
|
|
28 |
- txnId
|
| 6050 |
anupam.sin |
29 |
- isDigital
|
| 420 |
ashish |
30 |
"""
|
|
|
31 |
pass
|
|
|
32 |
|
| 696 |
rajveer |
33 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
34 |
"""
|
| 4141 |
chandransh |
35 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 3431 |
rajveer |
36 |
|
| 420 |
ashish |
37 |
Parameters:
|
|
|
38 |
- userId
|
| 696 |
rajveer |
39 |
- fromTime
|
|
|
40 |
- toTime
|
| 420 |
ashish |
41 |
- status
|
| 696 |
rajveer |
42 |
- gatewayId
|
| 420 |
ashish |
43 |
"""
|
|
|
44 |
pass
|
|
|
45 |
|
| 696 |
rajveer |
46 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
47 |
"""
|
| 4141 |
chandransh |
48 |
Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
|
| 3431 |
rajveer |
49 |
|
| 420 |
ashish |
50 |
Parameters:
|
| 696 |
rajveer |
51 |
- fromTime
|
|
|
52 |
- toTime
|
| 420 |
ashish |
53 |
- status
|
| 696 |
rajveer |
54 |
- gatewayId
|
| 420 |
ashish |
55 |
"""
|
|
|
56 |
pass
|
|
|
57 |
|
| 4141 |
chandransh |
58 |
def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
59 |
"""
|
|
|
60 |
Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
|
|
|
61 |
|
|
|
62 |
Parameters:
|
|
|
63 |
- fromTime
|
|
|
64 |
- toTime
|
|
|
65 |
- gatewayId
|
|
|
66 |
"""
|
|
|
67 |
pass
|
|
|
68 |
|
| 420 |
ashish |
69 |
def getPaymentGateway(self, id):
|
|
|
70 |
"""
|
| 4141 |
chandransh |
71 |
Get the gateway for the given id.
|
| 3431 |
rajveer |
72 |
|
| 420 |
ashish |
73 |
Parameters:
|
|
|
74 |
- id
|
|
|
75 |
"""
|
|
|
76 |
pass
|
|
|
77 |
|
| 4600 |
varun.gupt |
78 |
def getActivePaymentGateways(self, ):
|
|
|
79 |
"""
|
|
|
80 |
Get all active Payment Gateways
|
|
|
81 |
|
|
|
82 |
"""
|
|
|
83 |
pass
|
|
|
84 |
|
| 696 |
rajveer |
85 |
def getPayment(self, id):
|
| 420 |
ashish |
86 |
"""
|
| 696 |
rajveer |
87 |
Get a particular payment info
|
| 3431 |
rajveer |
88 |
|
|
|
89 |
|
| 420 |
ashish |
90 |
Parameters:
|
|
|
91 |
- id
|
|
|
92 |
"""
|
|
|
93 |
pass
|
|
|
94 |
|
| 696 |
rajveer |
95 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
96 |
"""
|
| 4600 |
varun.gupt |
97 |
Get payments for a transaction. Will raise exception.
|
| 3431 |
rajveer |
98 |
|
|
|
99 |
|
| 420 |
ashish |
100 |
Parameters:
|
| 696 |
rajveer |
101 |
- txnId
|
| 420 |
ashish |
102 |
"""
|
|
|
103 |
pass
|
|
|
104 |
|
| 7049 |
anupam.sin |
105 |
def getPaymentForRechargeTxnId(self, txnId):
|
|
|
106 |
"""
|
|
|
107 |
Get payments for a recharge transaction id. Will raise exception.
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
Parameters:
|
|
|
111 |
- txnId
|
|
|
112 |
"""
|
|
|
113 |
pass
|
|
|
114 |
|
| 4600 |
varun.gupt |
115 |
def getSuccessfulPaymentForTxnId(self, txnId):
|
|
|
116 |
"""
|
|
|
117 |
Get successful payment for a transaction. Will raise exception.
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
Parameters:
|
|
|
121 |
- txnId
|
|
|
122 |
"""
|
|
|
123 |
pass
|
|
|
124 |
|
| 1120 |
rajveer |
125 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
126 |
"""
|
| 696 |
rajveer |
127 |
mark payment successful and store parameters
|
| 3431 |
rajveer |
128 |
|
|
|
129 |
|
| 420 |
ashish |
130 |
Parameters:
|
|
|
131 |
- id
|
| 696 |
rajveer |
132 |
- gatewayPaymentId
|
|
|
133 |
- sessionId
|
|
|
134 |
- gatewayTxnStatus
|
|
|
135 |
- description
|
|
|
136 |
- gatewayTxnId
|
|
|
137 |
- authCode
|
|
|
138 |
- referenceCode
|
|
|
139 |
- errorCode
|
|
|
140 |
- status
|
| 1120 |
rajveer |
141 |
- gatewayTxnDate
|
| 696 |
rajveer |
142 |
- attributes
|
| 420 |
ashish |
143 |
"""
|
|
|
144 |
pass
|
|
|
145 |
|
| 1731 |
ankur.sing |
146 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
147 |
"""
|
| 1731 |
ankur.sing |
148 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
149 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
150 |
"""
|
|
|
151 |
pass
|
| 420 |
ashish |
152 |
|
| 2559 |
chandransh |
153 |
def initializeHdfcPayment(self, merchantPaymentId):
|
|
|
154 |
"""
|
|
|
155 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
156 |
In case of any processing error, an exception is raised.
|
| 3431 |
rajveer |
157 |
|
| 2559 |
chandransh |
158 |
Parameters:
|
|
|
159 |
- merchantPaymentId
|
|
|
160 |
"""
|
|
|
161 |
pass
|
|
|
162 |
|
| 6228 |
anupam.sin |
163 |
def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone):
|
| 6050 |
anupam.sin |
164 |
"""
|
|
|
165 |
Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
|
| 6228 |
anupam.sin |
166 |
In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
|
| 6050 |
anupam.sin |
167 |
|
|
|
168 |
Parameters:
|
|
|
169 |
- merchantPaymentId
|
|
|
170 |
- rechargeOrderId
|
| 6228 |
anupam.sin |
171 |
- phone
|
| 6050 |
anupam.sin |
172 |
"""
|
|
|
173 |
pass
|
|
|
174 |
|
| 3616 |
chandransh |
175 |
def initializeHdfcEmiPayment(self, merchantPaymentId):
|
|
|
176 |
"""
|
|
|
177 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
178 |
In case of any processing error, an exception is raised.
|
|
|
179 |
|
|
|
180 |
Parameters:
|
|
|
181 |
- merchantPaymentId
|
|
|
182 |
"""
|
|
|
183 |
pass
|
|
|
184 |
|
| 2685 |
chandransh |
185 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
186 |
"""
|
|
|
187 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
188 |
payment gateway which processed the payment for the corresponding transaction.
|
| 2687 |
chandransh |
189 |
Returns the id of the newly created Refund.
|
| 3431 |
rajveer |
190 |
|
| 2685 |
chandransh |
191 |
Parameters:
|
|
|
192 |
- orderId
|
|
|
193 |
- merchantTxnId
|
|
|
194 |
- amount
|
|
|
195 |
"""
|
|
|
196 |
pass
|
| 2559 |
chandransh |
197 |
|
| 8618 |
rajveer |
198 |
def capturePayment(self, merchantTxnId, isDigital):
|
| 3010 |
chandransh |
199 |
"""
|
|
|
200 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 6503 |
rajveer |
201 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
|
|
202 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
|
|
203 |
thrown with error code 106 in case capture was not possible due to connection
|
|
|
204 |
issue.
|
| 3431 |
rajveer |
205 |
|
| 3010 |
chandransh |
206 |
Parameters:
|
|
|
207 |
- merchantTxnId
|
| 8618 |
rajveer |
208 |
- isDigital
|
| 3010 |
chandransh |
209 |
"""
|
|
|
210 |
pass
|
| 2685 |
chandransh |
211 |
|
| 6486 |
rajveer |
212 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
|
|
213 |
"""
|
| 6503 |
rajveer |
214 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
215 |
transaction. If refund will be failed nothing will be updated in database.
|
| 6486 |
rajveer |
216 |
|
|
|
217 |
Parameters:
|
|
|
218 |
- merchantTxnId
|
|
|
219 |
- amount
|
|
|
220 |
- isDigital
|
|
|
221 |
"""
|
|
|
222 |
pass
|
|
|
223 |
|
| 3956 |
chandransh |
224 |
def partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
225 |
"""
|
|
|
226 |
Adds the given amount to the captured amount of a COD payment.
|
|
|
227 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
228 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
229 |
Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
230 |
and the corresponding transaction id.
|
| 3010 |
chandransh |
231 |
|
| 3956 |
chandransh |
232 |
Returns false if the payment couldn't be captured.
|
|
|
233 |
Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
234 |
|
|
|
235 |
Parameters:
|
|
|
236 |
- merchantTxnId
|
|
|
237 |
- amount
|
|
|
238 |
- xferBy
|
|
|
239 |
- xferTxnId
|
|
|
240 |
- xferDate
|
|
|
241 |
"""
|
|
|
242 |
pass
|
|
|
243 |
|
| 4008 |
mandeep.dh |
244 |
def getPaymentsRequiringExtraProcessing(self, category):
|
|
|
245 |
"""
|
|
|
246 |
Returns the list of payments that require some extra processing and
|
|
|
247 |
which belong to a particular category. This is currently used by CRM
|
|
|
248 |
application.
|
| 3956 |
chandransh |
249 |
|
| 4008 |
mandeep.dh |
250 |
Parameters:
|
|
|
251 |
- category
|
|
|
252 |
"""
|
|
|
253 |
pass
|
|
|
254 |
|
|
|
255 |
def markPaymentAsProcessed(self, paymentId, category):
|
|
|
256 |
"""
|
|
|
257 |
Marks a particular payment as processed for a particular cateogory.
|
|
|
258 |
It essentially deletes the payment if it is processed for a particular
|
|
|
259 |
category. This is currently used by CRM application.
|
|
|
260 |
|
|
|
261 |
Parameters:
|
|
|
262 |
- paymentId
|
|
|
263 |
- category
|
|
|
264 |
"""
|
|
|
265 |
pass
|
|
|
266 |
|
| 8908 |
rajveer |
267 |
def validatePaymentAtGateway(self, merchantTxnId, amount, isDigital):
|
|
|
268 |
"""
|
|
|
269 |
Parameters:
|
|
|
270 |
- merchantTxnId
|
|
|
271 |
- amount
|
|
|
272 |
- isDigital
|
|
|
273 |
"""
|
|
|
274 |
pass
|
| 4008 |
mandeep.dh |
275 |
|
| 8908 |
rajveer |
276 |
|
| 3376 |
rajveer |
277 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 420 |
ashish |
278 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
279 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 420 |
ashish |
280 |
|
| 6050 |
anupam.sin |
281 |
def createPayment(self, userId, amount, gatewayId, txnId, isDigital):
|
| 420 |
ashish |
282 |
"""
|
| 696 |
rajveer |
283 |
create a new payment and return payment id, throws an exception if gateway is not active
|
| 3431 |
rajveer |
284 |
|
| 420 |
ashish |
285 |
Parameters:
|
| 696 |
rajveer |
286 |
- userId
|
| 420 |
ashish |
287 |
- amount
|
| 696 |
rajveer |
288 |
- gatewayId
|
|
|
289 |
- txnId
|
| 6050 |
anupam.sin |
290 |
- isDigital
|
| 420 |
ashish |
291 |
"""
|
| 6050 |
anupam.sin |
292 |
self.send_createPayment(userId, amount, gatewayId, txnId, isDigital)
|
| 420 |
ashish |
293 |
return self.recv_createPayment()
|
|
|
294 |
|
| 6050 |
anupam.sin |
295 |
def send_createPayment(self, userId, amount, gatewayId, txnId, isDigital):
|
| 420 |
ashish |
296 |
self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
|
|
|
297 |
args = createPayment_args()
|
| 696 |
rajveer |
298 |
args.userId = userId
|
| 420 |
ashish |
299 |
args.amount = amount
|
| 696 |
rajveer |
300 |
args.gatewayId = gatewayId
|
|
|
301 |
args.txnId = txnId
|
| 6050 |
anupam.sin |
302 |
args.isDigital = isDigital
|
| 420 |
ashish |
303 |
args.write(self._oprot)
|
|
|
304 |
self._oprot.writeMessageEnd()
|
|
|
305 |
self._oprot.trans.flush()
|
|
|
306 |
|
|
|
307 |
def recv_createPayment(self, ):
|
|
|
308 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
309 |
if mtype == TMessageType.EXCEPTION:
|
|
|
310 |
x = TApplicationException()
|
|
|
311 |
x.read(self._iprot)
|
|
|
312 |
self._iprot.readMessageEnd()
|
|
|
313 |
raise x
|
|
|
314 |
result = createPayment_result()
|
|
|
315 |
result.read(self._iprot)
|
|
|
316 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
317 |
if result.success is not None:
|
| 420 |
ashish |
318 |
return result.success
|
| 3431 |
rajveer |
319 |
if result.pe is not None:
|
| 420 |
ashish |
320 |
raise result.pe
|
|
|
321 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
|
|
322 |
|
| 696 |
rajveer |
323 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
324 |
"""
|
| 4141 |
chandransh |
325 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 3431 |
rajveer |
326 |
|
| 420 |
ashish |
327 |
Parameters:
|
|
|
328 |
- userId
|
| 696 |
rajveer |
329 |
- fromTime
|
|
|
330 |
- toTime
|
| 420 |
ashish |
331 |
- status
|
| 696 |
rajveer |
332 |
- gatewayId
|
| 420 |
ashish |
333 |
"""
|
| 696 |
rajveer |
334 |
self.send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
335 |
return self.recv_getPaymentsForUser()
|
|
|
336 |
|
| 696 |
rajveer |
337 |
def send_getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
338 |
self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
|
|
|
339 |
args = getPaymentsForUser_args()
|
|
|
340 |
args.userId = userId
|
| 696 |
rajveer |
341 |
args.fromTime = fromTime
|
|
|
342 |
args.toTime = toTime
|
| 420 |
ashish |
343 |
args.status = status
|
| 696 |
rajveer |
344 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
345 |
args.write(self._oprot)
|
|
|
346 |
self._oprot.writeMessageEnd()
|
|
|
347 |
self._oprot.trans.flush()
|
|
|
348 |
|
|
|
349 |
def recv_getPaymentsForUser(self, ):
|
|
|
350 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
351 |
if mtype == TMessageType.EXCEPTION:
|
|
|
352 |
x = TApplicationException()
|
|
|
353 |
x.read(self._iprot)
|
|
|
354 |
self._iprot.readMessageEnd()
|
|
|
355 |
raise x
|
|
|
356 |
result = getPaymentsForUser_result()
|
|
|
357 |
result.read(self._iprot)
|
|
|
358 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
359 |
if result.success is not None:
|
| 420 |
ashish |
360 |
return result.success
|
| 3431 |
rajveer |
361 |
if result.pe is not None:
|
| 420 |
ashish |
362 |
raise result.pe
|
|
|
363 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
|
|
364 |
|
| 696 |
rajveer |
365 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
366 |
"""
|
| 4141 |
chandransh |
367 |
Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
|
| 3431 |
rajveer |
368 |
|
| 420 |
ashish |
369 |
Parameters:
|
| 696 |
rajveer |
370 |
- fromTime
|
|
|
371 |
- toTime
|
| 420 |
ashish |
372 |
- status
|
| 696 |
rajveer |
373 |
- gatewayId
|
| 420 |
ashish |
374 |
"""
|
| 696 |
rajveer |
375 |
self.send_getPayments(fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
376 |
return self.recv_getPayments()
|
|
|
377 |
|
| 696 |
rajveer |
378 |
def send_getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
379 |
self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
|
|
|
380 |
args = getPayments_args()
|
| 696 |
rajveer |
381 |
args.fromTime = fromTime
|
|
|
382 |
args.toTime = toTime
|
| 420 |
ashish |
383 |
args.status = status
|
| 696 |
rajveer |
384 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
385 |
args.write(self._oprot)
|
|
|
386 |
self._oprot.writeMessageEnd()
|
|
|
387 |
self._oprot.trans.flush()
|
|
|
388 |
|
|
|
389 |
def recv_getPayments(self, ):
|
|
|
390 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
391 |
if mtype == TMessageType.EXCEPTION:
|
|
|
392 |
x = TApplicationException()
|
|
|
393 |
x.read(self._iprot)
|
|
|
394 |
self._iprot.readMessageEnd()
|
|
|
395 |
raise x
|
|
|
396 |
result = getPayments_result()
|
|
|
397 |
result.read(self._iprot)
|
|
|
398 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
399 |
if result.success is not None:
|
| 420 |
ashish |
400 |
return result.success
|
| 3431 |
rajveer |
401 |
if result.pe is not None:
|
| 420 |
ashish |
402 |
raise result.pe
|
|
|
403 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
|
|
404 |
|
| 4141 |
chandransh |
405 |
def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
406 |
"""
|
|
|
407 |
Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
|
|
|
408 |
|
|
|
409 |
Parameters:
|
|
|
410 |
- fromTime
|
|
|
411 |
- toTime
|
|
|
412 |
- gatewayId
|
|
|
413 |
"""
|
|
|
414 |
self.send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId)
|
|
|
415 |
return self.recv_getPaymentsByCapturedDate()
|
|
|
416 |
|
|
|
417 |
def send_getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
418 |
self._oprot.writeMessageBegin('getPaymentsByCapturedDate', TMessageType.CALL, self._seqid)
|
|
|
419 |
args = getPaymentsByCapturedDate_args()
|
|
|
420 |
args.fromTime = fromTime
|
|
|
421 |
args.toTime = toTime
|
|
|
422 |
args.gatewayId = gatewayId
|
|
|
423 |
args.write(self._oprot)
|
|
|
424 |
self._oprot.writeMessageEnd()
|
|
|
425 |
self._oprot.trans.flush()
|
|
|
426 |
|
|
|
427 |
def recv_getPaymentsByCapturedDate(self, ):
|
|
|
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
|
|
|
434 |
result = getPaymentsByCapturedDate_result()
|
|
|
435 |
result.read(self._iprot)
|
|
|
436 |
self._iprot.readMessageEnd()
|
|
|
437 |
if result.success is not None:
|
|
|
438 |
return result.success
|
|
|
439 |
if result.pe is not None:
|
|
|
440 |
raise result.pe
|
|
|
441 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
|
|
|
442 |
|
| 420 |
ashish |
443 |
def getPaymentGateway(self, id):
|
|
|
444 |
"""
|
| 4141 |
chandransh |
445 |
Get the gateway for the given id.
|
| 3431 |
rajveer |
446 |
|
| 420 |
ashish |
447 |
Parameters:
|
|
|
448 |
- id
|
|
|
449 |
"""
|
|
|
450 |
self.send_getPaymentGateway(id)
|
|
|
451 |
return self.recv_getPaymentGateway()
|
|
|
452 |
|
|
|
453 |
def send_getPaymentGateway(self, id):
|
|
|
454 |
self._oprot.writeMessageBegin('getPaymentGateway', TMessageType.CALL, self._seqid)
|
|
|
455 |
args = getPaymentGateway_args()
|
|
|
456 |
args.id = id
|
|
|
457 |
args.write(self._oprot)
|
|
|
458 |
self._oprot.writeMessageEnd()
|
|
|
459 |
self._oprot.trans.flush()
|
|
|
460 |
|
|
|
461 |
def recv_getPaymentGateway(self, ):
|
|
|
462 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
463 |
if mtype == TMessageType.EXCEPTION:
|
|
|
464 |
x = TApplicationException()
|
|
|
465 |
x.read(self._iprot)
|
|
|
466 |
self._iprot.readMessageEnd()
|
|
|
467 |
raise x
|
|
|
468 |
result = getPaymentGateway_result()
|
|
|
469 |
result.read(self._iprot)
|
|
|
470 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
471 |
if result.success is not None:
|
| 420 |
ashish |
472 |
return result.success
|
| 3431 |
rajveer |
473 |
if result.pe is not None:
|
| 420 |
ashish |
474 |
raise result.pe
|
|
|
475 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
|
|
476 |
|
| 4600 |
varun.gupt |
477 |
def getActivePaymentGateways(self, ):
|
|
|
478 |
"""
|
|
|
479 |
Get all active Payment Gateways
|
|
|
480 |
|
|
|
481 |
"""
|
|
|
482 |
self.send_getActivePaymentGateways()
|
|
|
483 |
return self.recv_getActivePaymentGateways()
|
|
|
484 |
|
|
|
485 |
def send_getActivePaymentGateways(self, ):
|
|
|
486 |
self._oprot.writeMessageBegin('getActivePaymentGateways', TMessageType.CALL, self._seqid)
|
|
|
487 |
args = getActivePaymentGateways_args()
|
|
|
488 |
args.write(self._oprot)
|
|
|
489 |
self._oprot.writeMessageEnd()
|
|
|
490 |
self._oprot.trans.flush()
|
|
|
491 |
|
|
|
492 |
def recv_getActivePaymentGateways(self, ):
|
|
|
493 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
494 |
if mtype == TMessageType.EXCEPTION:
|
|
|
495 |
x = TApplicationException()
|
|
|
496 |
x.read(self._iprot)
|
|
|
497 |
self._iprot.readMessageEnd()
|
|
|
498 |
raise x
|
|
|
499 |
result = getActivePaymentGateways_result()
|
|
|
500 |
result.read(self._iprot)
|
|
|
501 |
self._iprot.readMessageEnd()
|
|
|
502 |
if result.success is not None:
|
|
|
503 |
return result.success
|
|
|
504 |
if result.pe is not None:
|
|
|
505 |
raise result.pe
|
|
|
506 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
|
|
|
507 |
|
| 696 |
rajveer |
508 |
def getPayment(self, id):
|
| 420 |
ashish |
509 |
"""
|
| 696 |
rajveer |
510 |
Get a particular payment info
|
| 3431 |
rajveer |
511 |
|
|
|
512 |
|
| 420 |
ashish |
513 |
Parameters:
|
|
|
514 |
- id
|
|
|
515 |
"""
|
| 696 |
rajveer |
516 |
self.send_getPayment(id)
|
|
|
517 |
return self.recv_getPayment()
|
| 420 |
ashish |
518 |
|
| 696 |
rajveer |
519 |
def send_getPayment(self, id):
|
|
|
520 |
self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
|
|
|
521 |
args = getPayment_args()
|
| 420 |
ashish |
522 |
args.id = id
|
|
|
523 |
args.write(self._oprot)
|
|
|
524 |
self._oprot.writeMessageEnd()
|
|
|
525 |
self._oprot.trans.flush()
|
|
|
526 |
|
| 696 |
rajveer |
527 |
def recv_getPayment(self, ):
|
| 420 |
ashish |
528 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
529 |
if mtype == TMessageType.EXCEPTION:
|
|
|
530 |
x = TApplicationException()
|
|
|
531 |
x.read(self._iprot)
|
|
|
532 |
self._iprot.readMessageEnd()
|
|
|
533 |
raise x
|
| 696 |
rajveer |
534 |
result = getPayment_result()
|
| 420 |
ashish |
535 |
result.read(self._iprot)
|
|
|
536 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
537 |
if result.success is not None:
|
| 696 |
rajveer |
538 |
return result.success
|
| 3431 |
rajveer |
539 |
if result.pe is not None:
|
| 420 |
ashish |
540 |
raise result.pe
|
| 696 |
rajveer |
541 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
542 |
|
| 696 |
rajveer |
543 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
544 |
"""
|
| 4600 |
varun.gupt |
545 |
Get payments for a transaction. Will raise exception.
|
| 3431 |
rajveer |
546 |
|
|
|
547 |
|
| 420 |
ashish |
548 |
Parameters:
|
| 696 |
rajveer |
549 |
- txnId
|
| 420 |
ashish |
550 |
"""
|
| 696 |
rajveer |
551 |
self.send_getPaymentForTxnId(txnId)
|
|
|
552 |
return self.recv_getPaymentForTxnId()
|
| 420 |
ashish |
553 |
|
| 696 |
rajveer |
554 |
def send_getPaymentForTxnId(self, txnId):
|
|
|
555 |
self._oprot.writeMessageBegin('getPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
556 |
args = getPaymentForTxnId_args()
|
|
|
557 |
args.txnId = txnId
|
| 420 |
ashish |
558 |
args.write(self._oprot)
|
|
|
559 |
self._oprot.writeMessageEnd()
|
|
|
560 |
self._oprot.trans.flush()
|
|
|
561 |
|
| 696 |
rajveer |
562 |
def recv_getPaymentForTxnId(self, ):
|
| 420 |
ashish |
563 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
564 |
if mtype == TMessageType.EXCEPTION:
|
|
|
565 |
x = TApplicationException()
|
|
|
566 |
x.read(self._iprot)
|
|
|
567 |
self._iprot.readMessageEnd()
|
|
|
568 |
raise x
|
| 696 |
rajveer |
569 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
570 |
result.read(self._iprot)
|
|
|
571 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
572 |
if result.success is not None:
|
| 420 |
ashish |
573 |
return result.success
|
| 3431 |
rajveer |
574 |
if result.pe is not None:
|
| 420 |
ashish |
575 |
raise result.pe
|
| 696 |
rajveer |
576 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
577 |
|
| 7049 |
anupam.sin |
578 |
def getPaymentForRechargeTxnId(self, txnId):
|
|
|
579 |
"""
|
|
|
580 |
Get payments for a recharge transaction id. Will raise exception.
|
|
|
581 |
|
|
|
582 |
|
|
|
583 |
Parameters:
|
|
|
584 |
- txnId
|
|
|
585 |
"""
|
|
|
586 |
self.send_getPaymentForRechargeTxnId(txnId)
|
|
|
587 |
return self.recv_getPaymentForRechargeTxnId()
|
|
|
588 |
|
|
|
589 |
def send_getPaymentForRechargeTxnId(self, txnId):
|
|
|
590 |
self._oprot.writeMessageBegin('getPaymentForRechargeTxnId', TMessageType.CALL, self._seqid)
|
|
|
591 |
args = getPaymentForRechargeTxnId_args()
|
|
|
592 |
args.txnId = txnId
|
|
|
593 |
args.write(self._oprot)
|
|
|
594 |
self._oprot.writeMessageEnd()
|
|
|
595 |
self._oprot.trans.flush()
|
|
|
596 |
|
|
|
597 |
def recv_getPaymentForRechargeTxnId(self, ):
|
|
|
598 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
599 |
if mtype == TMessageType.EXCEPTION:
|
|
|
600 |
x = TApplicationException()
|
|
|
601 |
x.read(self._iprot)
|
|
|
602 |
self._iprot.readMessageEnd()
|
|
|
603 |
raise x
|
|
|
604 |
result = getPaymentForRechargeTxnId_result()
|
|
|
605 |
result.read(self._iprot)
|
|
|
606 |
self._iprot.readMessageEnd()
|
|
|
607 |
if result.success is not None:
|
|
|
608 |
return result.success
|
|
|
609 |
if result.pe is not None:
|
|
|
610 |
raise result.pe
|
|
|
611 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForRechargeTxnId failed: unknown result");
|
|
|
612 |
|
| 4600 |
varun.gupt |
613 |
def getSuccessfulPaymentForTxnId(self, txnId):
|
|
|
614 |
"""
|
|
|
615 |
Get successful payment for a transaction. Will raise exception.
|
|
|
616 |
|
|
|
617 |
|
|
|
618 |
Parameters:
|
|
|
619 |
- txnId
|
|
|
620 |
"""
|
|
|
621 |
self.send_getSuccessfulPaymentForTxnId(txnId)
|
|
|
622 |
return self.recv_getSuccessfulPaymentForTxnId()
|
|
|
623 |
|
|
|
624 |
def send_getSuccessfulPaymentForTxnId(self, txnId):
|
|
|
625 |
self._oprot.writeMessageBegin('getSuccessfulPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
626 |
args = getSuccessfulPaymentForTxnId_args()
|
|
|
627 |
args.txnId = txnId
|
|
|
628 |
args.write(self._oprot)
|
|
|
629 |
self._oprot.writeMessageEnd()
|
|
|
630 |
self._oprot.trans.flush()
|
|
|
631 |
|
|
|
632 |
def recv_getSuccessfulPaymentForTxnId(self, ):
|
|
|
633 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
634 |
if mtype == TMessageType.EXCEPTION:
|
|
|
635 |
x = TApplicationException()
|
|
|
636 |
x.read(self._iprot)
|
|
|
637 |
self._iprot.readMessageEnd()
|
|
|
638 |
raise x
|
|
|
639 |
result = getSuccessfulPaymentForTxnId_result()
|
|
|
640 |
result.read(self._iprot)
|
|
|
641 |
self._iprot.readMessageEnd()
|
|
|
642 |
if result.success is not None:
|
|
|
643 |
return result.success
|
|
|
644 |
if result.pe is not None:
|
|
|
645 |
raise result.pe
|
|
|
646 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
|
|
|
647 |
|
| 1120 |
rajveer |
648 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
649 |
"""
|
| 696 |
rajveer |
650 |
mark payment successful and store parameters
|
| 3431 |
rajveer |
651 |
|
|
|
652 |
|
| 420 |
ashish |
653 |
Parameters:
|
|
|
654 |
- id
|
| 696 |
rajveer |
655 |
- gatewayPaymentId
|
|
|
656 |
- sessionId
|
|
|
657 |
- gatewayTxnStatus
|
|
|
658 |
- description
|
|
|
659 |
- gatewayTxnId
|
|
|
660 |
- authCode
|
|
|
661 |
- referenceCode
|
|
|
662 |
- errorCode
|
|
|
663 |
- status
|
| 1120 |
rajveer |
664 |
- gatewayTxnDate
|
| 696 |
rajveer |
665 |
- attributes
|
| 420 |
ashish |
666 |
"""
|
| 1120 |
rajveer |
667 |
self.send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes)
|
| 696 |
rajveer |
668 |
return self.recv_updatePaymentDetails()
|
| 420 |
ashish |
669 |
|
| 1120 |
rajveer |
670 |
def send_updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 696 |
rajveer |
671 |
self._oprot.writeMessageBegin('updatePaymentDetails', TMessageType.CALL, self._seqid)
|
|
|
672 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
673 |
args.id = id
|
| 696 |
rajveer |
674 |
args.gatewayPaymentId = gatewayPaymentId
|
|
|
675 |
args.sessionId = sessionId
|
|
|
676 |
args.gatewayTxnStatus = gatewayTxnStatus
|
|
|
677 |
args.description = description
|
|
|
678 |
args.gatewayTxnId = gatewayTxnId
|
|
|
679 |
args.authCode = authCode
|
|
|
680 |
args.referenceCode = referenceCode
|
|
|
681 |
args.errorCode = errorCode
|
|
|
682 |
args.status = status
|
| 1120 |
rajveer |
683 |
args.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
684 |
args.attributes = attributes
|
| 420 |
ashish |
685 |
args.write(self._oprot)
|
|
|
686 |
self._oprot.writeMessageEnd()
|
|
|
687 |
self._oprot.trans.flush()
|
|
|
688 |
|
| 696 |
rajveer |
689 |
def recv_updatePaymentDetails(self, ):
|
| 420 |
ashish |
690 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
691 |
if mtype == TMessageType.EXCEPTION:
|
|
|
692 |
x = TApplicationException()
|
|
|
693 |
x.read(self._iprot)
|
|
|
694 |
self._iprot.readMessageEnd()
|
|
|
695 |
raise x
|
| 696 |
rajveer |
696 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
697 |
result.read(self._iprot)
|
|
|
698 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
699 |
if result.success is not None:
|
| 696 |
rajveer |
700 |
return result.success
|
| 3431 |
rajveer |
701 |
if result.pe is not None:
|
| 420 |
ashish |
702 |
raise result.pe
|
| 696 |
rajveer |
703 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
704 |
|
| 1731 |
ankur.sing |
705 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
706 |
"""
|
| 1731 |
ankur.sing |
707 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
708 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
709 |
"""
|
| 1731 |
ankur.sing |
710 |
self.send_getSuccessfulPaymentsAmountRange()
|
|
|
711 |
return self.recv_getSuccessfulPaymentsAmountRange()
|
| 420 |
ashish |
712 |
|
| 1731 |
ankur.sing |
713 |
def send_getSuccessfulPaymentsAmountRange(self, ):
|
|
|
714 |
self._oprot.writeMessageBegin('getSuccessfulPaymentsAmountRange', TMessageType.CALL, self._seqid)
|
|
|
715 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
716 |
args.write(self._oprot)
|
|
|
717 |
self._oprot.writeMessageEnd()
|
|
|
718 |
self._oprot.trans.flush()
|
|
|
719 |
|
| 1731 |
ankur.sing |
720 |
def recv_getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
721 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
722 |
if mtype == TMessageType.EXCEPTION:
|
|
|
723 |
x = TApplicationException()
|
|
|
724 |
x.read(self._iprot)
|
|
|
725 |
self._iprot.readMessageEnd()
|
|
|
726 |
raise x
|
| 1731 |
ankur.sing |
727 |
result = getSuccessfulPaymentsAmountRange_result()
|
| 1627 |
ankur.sing |
728 |
result.read(self._iprot)
|
|
|
729 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
730 |
if result.success is not None:
|
| 1627 |
ankur.sing |
731 |
return result.success
|
| 1731 |
ankur.sing |
732 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1627 |
ankur.sing |
733 |
|
| 2559 |
chandransh |
734 |
def initializeHdfcPayment(self, merchantPaymentId):
|
|
|
735 |
"""
|
|
|
736 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
737 |
In case of any processing error, an exception is raised.
|
| 3431 |
rajveer |
738 |
|
| 2559 |
chandransh |
739 |
Parameters:
|
|
|
740 |
- merchantPaymentId
|
|
|
741 |
"""
|
|
|
742 |
self.send_initializeHdfcPayment(merchantPaymentId)
|
|
|
743 |
return self.recv_initializeHdfcPayment()
|
|
|
744 |
|
|
|
745 |
def send_initializeHdfcPayment(self, merchantPaymentId):
|
|
|
746 |
self._oprot.writeMessageBegin('initializeHdfcPayment', TMessageType.CALL, self._seqid)
|
|
|
747 |
args = initializeHdfcPayment_args()
|
|
|
748 |
args.merchantPaymentId = merchantPaymentId
|
|
|
749 |
args.write(self._oprot)
|
|
|
750 |
self._oprot.writeMessageEnd()
|
|
|
751 |
self._oprot.trans.flush()
|
|
|
752 |
|
|
|
753 |
def recv_initializeHdfcPayment(self, ):
|
|
|
754 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
755 |
if mtype == TMessageType.EXCEPTION:
|
|
|
756 |
x = TApplicationException()
|
|
|
757 |
x.read(self._iprot)
|
|
|
758 |
self._iprot.readMessageEnd()
|
|
|
759 |
raise x
|
|
|
760 |
result = initializeHdfcPayment_result()
|
|
|
761 |
result.read(self._iprot)
|
|
|
762 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
763 |
if result.success is not None:
|
| 2559 |
chandransh |
764 |
return result.success
|
| 3431 |
rajveer |
765 |
if result.pe is not None:
|
| 2559 |
chandransh |
766 |
raise result.pe
|
|
|
767 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
|
|
768 |
|
| 6228 |
anupam.sin |
769 |
def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone):
|
| 6050 |
anupam.sin |
770 |
"""
|
|
|
771 |
Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
|
| 6228 |
anupam.sin |
772 |
In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
|
| 6050 |
anupam.sin |
773 |
|
|
|
774 |
Parameters:
|
|
|
775 |
- merchantPaymentId
|
|
|
776 |
- rechargeOrderId
|
| 6228 |
anupam.sin |
777 |
- phone
|
| 6050 |
anupam.sin |
778 |
"""
|
| 6228 |
anupam.sin |
779 |
self.send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone)
|
| 6050 |
anupam.sin |
780 |
return self.recv_doHdfcPaymentForDigitalOrder()
|
|
|
781 |
|
| 6228 |
anupam.sin |
782 |
def send_doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone):
|
| 6050 |
anupam.sin |
783 |
self._oprot.writeMessageBegin('doHdfcPaymentForDigitalOrder', TMessageType.CALL, self._seqid)
|
|
|
784 |
args = doHdfcPaymentForDigitalOrder_args()
|
|
|
785 |
args.merchantPaymentId = merchantPaymentId
|
|
|
786 |
args.rechargeOrderId = rechargeOrderId
|
| 6228 |
anupam.sin |
787 |
args.phone = phone
|
| 6050 |
anupam.sin |
788 |
args.write(self._oprot)
|
|
|
789 |
self._oprot.writeMessageEnd()
|
|
|
790 |
self._oprot.trans.flush()
|
|
|
791 |
|
|
|
792 |
def recv_doHdfcPaymentForDigitalOrder(self, ):
|
|
|
793 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
794 |
if mtype == TMessageType.EXCEPTION:
|
|
|
795 |
x = TApplicationException()
|
|
|
796 |
x.read(self._iprot)
|
|
|
797 |
self._iprot.readMessageEnd()
|
|
|
798 |
raise x
|
|
|
799 |
result = doHdfcPaymentForDigitalOrder_result()
|
|
|
800 |
result.read(self._iprot)
|
|
|
801 |
self._iprot.readMessageEnd()
|
|
|
802 |
if result.success is not None:
|
|
|
803 |
return result.success
|
|
|
804 |
if result.pe is not None:
|
|
|
805 |
raise result.pe
|
|
|
806 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
|
|
|
807 |
|
| 3616 |
chandransh |
808 |
def initializeHdfcEmiPayment(self, merchantPaymentId):
|
|
|
809 |
"""
|
|
|
810 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
811 |
In case of any processing error, an exception is raised.
|
|
|
812 |
|
|
|
813 |
Parameters:
|
|
|
814 |
- merchantPaymentId
|
|
|
815 |
"""
|
|
|
816 |
self.send_initializeHdfcEmiPayment(merchantPaymentId)
|
|
|
817 |
return self.recv_initializeHdfcEmiPayment()
|
|
|
818 |
|
|
|
819 |
def send_initializeHdfcEmiPayment(self, merchantPaymentId):
|
|
|
820 |
self._oprot.writeMessageBegin('initializeHdfcEmiPayment', TMessageType.CALL, self._seqid)
|
|
|
821 |
args = initializeHdfcEmiPayment_args()
|
|
|
822 |
args.merchantPaymentId = merchantPaymentId
|
|
|
823 |
args.write(self._oprot)
|
|
|
824 |
self._oprot.writeMessageEnd()
|
|
|
825 |
self._oprot.trans.flush()
|
|
|
826 |
|
|
|
827 |
def recv_initializeHdfcEmiPayment(self, ):
|
|
|
828 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
829 |
if mtype == TMessageType.EXCEPTION:
|
|
|
830 |
x = TApplicationException()
|
|
|
831 |
x.read(self._iprot)
|
|
|
832 |
self._iprot.readMessageEnd()
|
|
|
833 |
raise x
|
|
|
834 |
result = initializeHdfcEmiPayment_result()
|
|
|
835 |
result.read(self._iprot)
|
|
|
836 |
self._iprot.readMessageEnd()
|
|
|
837 |
if result.success is not None:
|
|
|
838 |
return result.success
|
|
|
839 |
if result.pe is not None:
|
|
|
840 |
raise result.pe
|
|
|
841 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
|
|
|
842 |
|
| 2685 |
chandransh |
843 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
844 |
"""
|
|
|
845 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
846 |
payment gateway which processed the payment for the corresponding transaction.
|
| 2687 |
chandransh |
847 |
Returns the id of the newly created Refund.
|
| 3431 |
rajveer |
848 |
|
| 2685 |
chandransh |
849 |
Parameters:
|
|
|
850 |
- orderId
|
|
|
851 |
- merchantTxnId
|
|
|
852 |
- amount
|
|
|
853 |
"""
|
|
|
854 |
self.send_createRefund(orderId, merchantTxnId, amount)
|
|
|
855 |
return self.recv_createRefund()
|
| 2559 |
chandransh |
856 |
|
| 2685 |
chandransh |
857 |
def send_createRefund(self, orderId, merchantTxnId, amount):
|
|
|
858 |
self._oprot.writeMessageBegin('createRefund', TMessageType.CALL, self._seqid)
|
|
|
859 |
args = createRefund_args()
|
|
|
860 |
args.orderId = orderId
|
|
|
861 |
args.merchantTxnId = merchantTxnId
|
|
|
862 |
args.amount = amount
|
|
|
863 |
args.write(self._oprot)
|
|
|
864 |
self._oprot.writeMessageEnd()
|
|
|
865 |
self._oprot.trans.flush()
|
|
|
866 |
|
|
|
867 |
def recv_createRefund(self, ):
|
|
|
868 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
869 |
if mtype == TMessageType.EXCEPTION:
|
|
|
870 |
x = TApplicationException()
|
|
|
871 |
x.read(self._iprot)
|
|
|
872 |
self._iprot.readMessageEnd()
|
|
|
873 |
raise x
|
|
|
874 |
result = createRefund_result()
|
|
|
875 |
result.read(self._iprot)
|
|
|
876 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
877 |
if result.success is not None:
|
| 2685 |
chandransh |
878 |
return result.success
|
| 3431 |
rajveer |
879 |
if result.pe is not None:
|
| 2685 |
chandransh |
880 |
raise result.pe
|
|
|
881 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
|
|
882 |
|
| 8618 |
rajveer |
883 |
def capturePayment(self, merchantTxnId, isDigital):
|
| 3010 |
chandransh |
884 |
"""
|
|
|
885 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 6503 |
rajveer |
886 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
|
|
887 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
|
|
888 |
thrown with error code 106 in case capture was not possible due to connection
|
|
|
889 |
issue.
|
| 3431 |
rajveer |
890 |
|
| 3010 |
chandransh |
891 |
Parameters:
|
|
|
892 |
- merchantTxnId
|
| 8618 |
rajveer |
893 |
- isDigital
|
| 3010 |
chandransh |
894 |
"""
|
| 8618 |
rajveer |
895 |
self.send_capturePayment(merchantTxnId, isDigital)
|
| 3010 |
chandransh |
896 |
return self.recv_capturePayment()
|
| 2685 |
chandransh |
897 |
|
| 8618 |
rajveer |
898 |
def send_capturePayment(self, merchantTxnId, isDigital):
|
| 3010 |
chandransh |
899 |
self._oprot.writeMessageBegin('capturePayment', TMessageType.CALL, self._seqid)
|
|
|
900 |
args = capturePayment_args()
|
|
|
901 |
args.merchantTxnId = merchantTxnId
|
| 8618 |
rajveer |
902 |
args.isDigital = isDigital
|
| 3010 |
chandransh |
903 |
args.write(self._oprot)
|
|
|
904 |
self._oprot.writeMessageEnd()
|
|
|
905 |
self._oprot.trans.flush()
|
|
|
906 |
|
|
|
907 |
def recv_capturePayment(self, ):
|
|
|
908 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
909 |
if mtype == TMessageType.EXCEPTION:
|
|
|
910 |
x = TApplicationException()
|
|
|
911 |
x.read(self._iprot)
|
|
|
912 |
self._iprot.readMessageEnd()
|
|
|
913 |
raise x
|
|
|
914 |
result = capturePayment_result()
|
|
|
915 |
result.read(self._iprot)
|
|
|
916 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
917 |
if result.success is not None:
|
| 3010 |
chandransh |
918 |
return result.success
|
| 3431 |
rajveer |
919 |
if result.pe is not None:
|
| 3010 |
chandransh |
920 |
raise result.pe
|
|
|
921 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
|
|
922 |
|
| 6486 |
rajveer |
923 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
|
|
924 |
"""
|
| 6503 |
rajveer |
925 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
926 |
transaction. If refund will be failed nothing will be updated in database.
|
| 6486 |
rajveer |
927 |
|
|
|
928 |
Parameters:
|
|
|
929 |
- merchantTxnId
|
|
|
930 |
- amount
|
|
|
931 |
- isDigital
|
|
|
932 |
"""
|
|
|
933 |
self.send_refundPayment(merchantTxnId, amount, isDigital)
|
|
|
934 |
return self.recv_refundPayment()
|
|
|
935 |
|
|
|
936 |
def send_refundPayment(self, merchantTxnId, amount, isDigital):
|
|
|
937 |
self._oprot.writeMessageBegin('refundPayment', TMessageType.CALL, self._seqid)
|
|
|
938 |
args = refundPayment_args()
|
|
|
939 |
args.merchantTxnId = merchantTxnId
|
|
|
940 |
args.amount = amount
|
|
|
941 |
args.isDigital = isDigital
|
|
|
942 |
args.write(self._oprot)
|
|
|
943 |
self._oprot.writeMessageEnd()
|
|
|
944 |
self._oprot.trans.flush()
|
|
|
945 |
|
|
|
946 |
def recv_refundPayment(self, ):
|
|
|
947 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
948 |
if mtype == TMessageType.EXCEPTION:
|
|
|
949 |
x = TApplicationException()
|
|
|
950 |
x.read(self._iprot)
|
|
|
951 |
self._iprot.readMessageEnd()
|
|
|
952 |
raise x
|
|
|
953 |
result = refundPayment_result()
|
|
|
954 |
result.read(self._iprot)
|
|
|
955 |
self._iprot.readMessageEnd()
|
|
|
956 |
if result.success is not None:
|
|
|
957 |
return result.success
|
|
|
958 |
if result.pe is not None:
|
|
|
959 |
raise result.pe
|
|
|
960 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "refundPayment failed: unknown result");
|
|
|
961 |
|
| 3956 |
chandransh |
962 |
def partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
963 |
"""
|
|
|
964 |
Adds the given amount to the captured amount of a COD payment.
|
|
|
965 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
966 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
967 |
Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
968 |
and the corresponding transaction id.
|
| 3010 |
chandransh |
969 |
|
| 3956 |
chandransh |
970 |
Returns false if the payment couldn't be captured.
|
|
|
971 |
Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
972 |
|
|
|
973 |
Parameters:
|
|
|
974 |
- merchantTxnId
|
|
|
975 |
- amount
|
|
|
976 |
- xferBy
|
|
|
977 |
- xferTxnId
|
|
|
978 |
- xferDate
|
|
|
979 |
"""
|
|
|
980 |
self.send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate)
|
|
|
981 |
return self.recv_partiallyCapturePayment()
|
|
|
982 |
|
|
|
983 |
def send_partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
984 |
self._oprot.writeMessageBegin('partiallyCapturePayment', TMessageType.CALL, self._seqid)
|
|
|
985 |
args = partiallyCapturePayment_args()
|
|
|
986 |
args.merchantTxnId = merchantTxnId
|
|
|
987 |
args.amount = amount
|
|
|
988 |
args.xferBy = xferBy
|
|
|
989 |
args.xferTxnId = xferTxnId
|
|
|
990 |
args.xferDate = xferDate
|
|
|
991 |
args.write(self._oprot)
|
|
|
992 |
self._oprot.writeMessageEnd()
|
|
|
993 |
self._oprot.trans.flush()
|
|
|
994 |
|
|
|
995 |
def recv_partiallyCapturePayment(self, ):
|
|
|
996 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
997 |
if mtype == TMessageType.EXCEPTION:
|
|
|
998 |
x = TApplicationException()
|
|
|
999 |
x.read(self._iprot)
|
|
|
1000 |
self._iprot.readMessageEnd()
|
|
|
1001 |
raise x
|
|
|
1002 |
result = partiallyCapturePayment_result()
|
|
|
1003 |
result.read(self._iprot)
|
|
|
1004 |
self._iprot.readMessageEnd()
|
|
|
1005 |
if result.success is not None:
|
|
|
1006 |
return result.success
|
|
|
1007 |
if result.pe is not None:
|
|
|
1008 |
raise result.pe
|
|
|
1009 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
|
|
|
1010 |
|
| 4008 |
mandeep.dh |
1011 |
def getPaymentsRequiringExtraProcessing(self, category):
|
|
|
1012 |
"""
|
|
|
1013 |
Returns the list of payments that require some extra processing and
|
|
|
1014 |
which belong to a particular category. This is currently used by CRM
|
|
|
1015 |
application.
|
| 3956 |
chandransh |
1016 |
|
| 4008 |
mandeep.dh |
1017 |
Parameters:
|
|
|
1018 |
- category
|
|
|
1019 |
"""
|
|
|
1020 |
self.send_getPaymentsRequiringExtraProcessing(category)
|
|
|
1021 |
return self.recv_getPaymentsRequiringExtraProcessing()
|
|
|
1022 |
|
|
|
1023 |
def send_getPaymentsRequiringExtraProcessing(self, category):
|
|
|
1024 |
self._oprot.writeMessageBegin('getPaymentsRequiringExtraProcessing', TMessageType.CALL, self._seqid)
|
|
|
1025 |
args = getPaymentsRequiringExtraProcessing_args()
|
|
|
1026 |
args.category = category
|
|
|
1027 |
args.write(self._oprot)
|
|
|
1028 |
self._oprot.writeMessageEnd()
|
|
|
1029 |
self._oprot.trans.flush()
|
|
|
1030 |
|
|
|
1031 |
def recv_getPaymentsRequiringExtraProcessing(self, ):
|
|
|
1032 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1033 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1034 |
x = TApplicationException()
|
|
|
1035 |
x.read(self._iprot)
|
|
|
1036 |
self._iprot.readMessageEnd()
|
|
|
1037 |
raise x
|
|
|
1038 |
result = getPaymentsRequiringExtraProcessing_result()
|
|
|
1039 |
result.read(self._iprot)
|
|
|
1040 |
self._iprot.readMessageEnd()
|
|
|
1041 |
if result.success is not None:
|
|
|
1042 |
return result.success
|
|
|
1043 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
|
|
|
1044 |
|
|
|
1045 |
def markPaymentAsProcessed(self, paymentId, category):
|
|
|
1046 |
"""
|
|
|
1047 |
Marks a particular payment as processed for a particular cateogory.
|
|
|
1048 |
It essentially deletes the payment if it is processed for a particular
|
|
|
1049 |
category. This is currently used by CRM application.
|
|
|
1050 |
|
|
|
1051 |
Parameters:
|
|
|
1052 |
- paymentId
|
|
|
1053 |
- category
|
|
|
1054 |
"""
|
|
|
1055 |
self.send_markPaymentAsProcessed(paymentId, category)
|
|
|
1056 |
self.recv_markPaymentAsProcessed()
|
|
|
1057 |
|
|
|
1058 |
def send_markPaymentAsProcessed(self, paymentId, category):
|
|
|
1059 |
self._oprot.writeMessageBegin('markPaymentAsProcessed', TMessageType.CALL, self._seqid)
|
|
|
1060 |
args = markPaymentAsProcessed_args()
|
|
|
1061 |
args.paymentId = paymentId
|
|
|
1062 |
args.category = category
|
|
|
1063 |
args.write(self._oprot)
|
|
|
1064 |
self._oprot.writeMessageEnd()
|
|
|
1065 |
self._oprot.trans.flush()
|
|
|
1066 |
|
|
|
1067 |
def recv_markPaymentAsProcessed(self, ):
|
|
|
1068 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1069 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1070 |
x = TApplicationException()
|
|
|
1071 |
x.read(self._iprot)
|
|
|
1072 |
self._iprot.readMessageEnd()
|
|
|
1073 |
raise x
|
|
|
1074 |
result = markPaymentAsProcessed_result()
|
|
|
1075 |
result.read(self._iprot)
|
|
|
1076 |
self._iprot.readMessageEnd()
|
|
|
1077 |
return
|
|
|
1078 |
|
| 8908 |
rajveer |
1079 |
def validatePaymentAtGateway(self, merchantTxnId, amount, isDigital):
|
|
|
1080 |
"""
|
|
|
1081 |
Parameters:
|
|
|
1082 |
- merchantTxnId
|
|
|
1083 |
- amount
|
|
|
1084 |
- isDigital
|
|
|
1085 |
"""
|
|
|
1086 |
self.send_validatePaymentAtGateway(merchantTxnId, amount, isDigital)
|
|
|
1087 |
return self.recv_validatePaymentAtGateway()
|
| 4008 |
mandeep.dh |
1088 |
|
| 8908 |
rajveer |
1089 |
def send_validatePaymentAtGateway(self, merchantTxnId, amount, isDigital):
|
|
|
1090 |
self._oprot.writeMessageBegin('validatePaymentAtGateway', TMessageType.CALL, self._seqid)
|
|
|
1091 |
args = validatePaymentAtGateway_args()
|
|
|
1092 |
args.merchantTxnId = merchantTxnId
|
|
|
1093 |
args.amount = amount
|
|
|
1094 |
args.isDigital = isDigital
|
|
|
1095 |
args.write(self._oprot)
|
|
|
1096 |
self._oprot.writeMessageEnd()
|
|
|
1097 |
self._oprot.trans.flush()
|
|
|
1098 |
|
|
|
1099 |
def recv_validatePaymentAtGateway(self, ):
|
|
|
1100 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1101 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1102 |
x = TApplicationException()
|
|
|
1103 |
x.read(self._iprot)
|
|
|
1104 |
self._iprot.readMessageEnd()
|
|
|
1105 |
raise x
|
|
|
1106 |
result = validatePaymentAtGateway_result()
|
|
|
1107 |
result.read(self._iprot)
|
|
|
1108 |
self._iprot.readMessageEnd()
|
|
|
1109 |
if result.success is not None:
|
|
|
1110 |
return result.success
|
|
|
1111 |
if result.pe is not None:
|
|
|
1112 |
raise result.pe
|
|
|
1113 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "validatePaymentAtGateway failed: unknown result");
|
|
|
1114 |
|
|
|
1115 |
|
| 3376 |
rajveer |
1116 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 420 |
ashish |
1117 |
def __init__(self, handler):
|
| 3376 |
rajveer |
1118 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 420 |
ashish |
1119 |
self._processMap["createPayment"] = Processor.process_createPayment
|
|
|
1120 |
self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
|
|
|
1121 |
self._processMap["getPayments"] = Processor.process_getPayments
|
| 4141 |
chandransh |
1122 |
self._processMap["getPaymentsByCapturedDate"] = Processor.process_getPaymentsByCapturedDate
|
| 420 |
ashish |
1123 |
self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
|
| 4600 |
varun.gupt |
1124 |
self._processMap["getActivePaymentGateways"] = Processor.process_getActivePaymentGateways
|
| 420 |
ashish |
1125 |
self._processMap["getPayment"] = Processor.process_getPayment
|
| 696 |
rajveer |
1126 |
self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
|
| 7049 |
anupam.sin |
1127 |
self._processMap["getPaymentForRechargeTxnId"] = Processor.process_getPaymentForRechargeTxnId
|
| 4600 |
varun.gupt |
1128 |
self._processMap["getSuccessfulPaymentForTxnId"] = Processor.process_getSuccessfulPaymentForTxnId
|
| 696 |
rajveer |
1129 |
self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
|
| 1731 |
ankur.sing |
1130 |
self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
|
| 2559 |
chandransh |
1131 |
self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
|
| 6050 |
anupam.sin |
1132 |
self._processMap["doHdfcPaymentForDigitalOrder"] = Processor.process_doHdfcPaymentForDigitalOrder
|
| 3616 |
chandransh |
1133 |
self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
|
| 2685 |
chandransh |
1134 |
self._processMap["createRefund"] = Processor.process_createRefund
|
| 3010 |
chandransh |
1135 |
self._processMap["capturePayment"] = Processor.process_capturePayment
|
| 6486 |
rajveer |
1136 |
self._processMap["refundPayment"] = Processor.process_refundPayment
|
| 3956 |
chandransh |
1137 |
self._processMap["partiallyCapturePayment"] = Processor.process_partiallyCapturePayment
|
| 4008 |
mandeep.dh |
1138 |
self._processMap["getPaymentsRequiringExtraProcessing"] = Processor.process_getPaymentsRequiringExtraProcessing
|
|
|
1139 |
self._processMap["markPaymentAsProcessed"] = Processor.process_markPaymentAsProcessed
|
| 8908 |
rajveer |
1140 |
self._processMap["validatePaymentAtGateway"] = Processor.process_validatePaymentAtGateway
|
| 420 |
ashish |
1141 |
|
|
|
1142 |
def process(self, iprot, oprot):
|
|
|
1143 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
1144 |
if name not in self._processMap:
|
|
|
1145 |
iprot.skip(TType.STRUCT)
|
|
|
1146 |
iprot.readMessageEnd()
|
|
|
1147 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
1148 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
1149 |
x.write(oprot)
|
|
|
1150 |
oprot.writeMessageEnd()
|
|
|
1151 |
oprot.trans.flush()
|
|
|
1152 |
return
|
|
|
1153 |
else:
|
|
|
1154 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
1155 |
return True
|
|
|
1156 |
|
|
|
1157 |
def process_createPayment(self, seqid, iprot, oprot):
|
|
|
1158 |
args = createPayment_args()
|
|
|
1159 |
args.read(iprot)
|
|
|
1160 |
iprot.readMessageEnd()
|
|
|
1161 |
result = createPayment_result()
|
|
|
1162 |
try:
|
| 6050 |
anupam.sin |
1163 |
result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital)
|
| 420 |
ashish |
1164 |
except PaymentException, pe:
|
|
|
1165 |
result.pe = pe
|
|
|
1166 |
oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
|
|
|
1167 |
result.write(oprot)
|
|
|
1168 |
oprot.writeMessageEnd()
|
|
|
1169 |
oprot.trans.flush()
|
|
|
1170 |
|
|
|
1171 |
def process_getPaymentsForUser(self, seqid, iprot, oprot):
|
|
|
1172 |
args = getPaymentsForUser_args()
|
|
|
1173 |
args.read(iprot)
|
|
|
1174 |
iprot.readMessageEnd()
|
|
|
1175 |
result = getPaymentsForUser_result()
|
|
|
1176 |
try:
|
| 696 |
rajveer |
1177 |
result.success = self._handler.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
1178 |
except PaymentException, pe:
|
|
|
1179 |
result.pe = pe
|
|
|
1180 |
oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
|
|
|
1181 |
result.write(oprot)
|
|
|
1182 |
oprot.writeMessageEnd()
|
|
|
1183 |
oprot.trans.flush()
|
|
|
1184 |
|
|
|
1185 |
def process_getPayments(self, seqid, iprot, oprot):
|
|
|
1186 |
args = getPayments_args()
|
|
|
1187 |
args.read(iprot)
|
|
|
1188 |
iprot.readMessageEnd()
|
|
|
1189 |
result = getPayments_result()
|
|
|
1190 |
try:
|
| 696 |
rajveer |
1191 |
result.success = self._handler.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
1192 |
except PaymentException, pe:
|
|
|
1193 |
result.pe = pe
|
|
|
1194 |
oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
|
|
|
1195 |
result.write(oprot)
|
|
|
1196 |
oprot.writeMessageEnd()
|
|
|
1197 |
oprot.trans.flush()
|
|
|
1198 |
|
| 4141 |
chandransh |
1199 |
def process_getPaymentsByCapturedDate(self, seqid, iprot, oprot):
|
|
|
1200 |
args = getPaymentsByCapturedDate_args()
|
|
|
1201 |
args.read(iprot)
|
|
|
1202 |
iprot.readMessageEnd()
|
|
|
1203 |
result = getPaymentsByCapturedDate_result()
|
|
|
1204 |
try:
|
|
|
1205 |
result.success = self._handler.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId)
|
|
|
1206 |
except PaymentException, pe:
|
|
|
1207 |
result.pe = pe
|
|
|
1208 |
oprot.writeMessageBegin("getPaymentsByCapturedDate", TMessageType.REPLY, seqid)
|
|
|
1209 |
result.write(oprot)
|
|
|
1210 |
oprot.writeMessageEnd()
|
|
|
1211 |
oprot.trans.flush()
|
|
|
1212 |
|
| 420 |
ashish |
1213 |
def process_getPaymentGateway(self, seqid, iprot, oprot):
|
|
|
1214 |
args = getPaymentGateway_args()
|
|
|
1215 |
args.read(iprot)
|
|
|
1216 |
iprot.readMessageEnd()
|
|
|
1217 |
result = getPaymentGateway_result()
|
|
|
1218 |
try:
|
|
|
1219 |
result.success = self._handler.getPaymentGateway(args.id)
|
|
|
1220 |
except PaymentException, pe:
|
|
|
1221 |
result.pe = pe
|
|
|
1222 |
oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
|
|
|
1223 |
result.write(oprot)
|
|
|
1224 |
oprot.writeMessageEnd()
|
|
|
1225 |
oprot.trans.flush()
|
|
|
1226 |
|
| 4600 |
varun.gupt |
1227 |
def process_getActivePaymentGateways(self, seqid, iprot, oprot):
|
|
|
1228 |
args = getActivePaymentGateways_args()
|
|
|
1229 |
args.read(iprot)
|
|
|
1230 |
iprot.readMessageEnd()
|
|
|
1231 |
result = getActivePaymentGateways_result()
|
|
|
1232 |
try:
|
|
|
1233 |
result.success = self._handler.getActivePaymentGateways()
|
|
|
1234 |
except PaymentException, pe:
|
|
|
1235 |
result.pe = pe
|
|
|
1236 |
oprot.writeMessageBegin("getActivePaymentGateways", TMessageType.REPLY, seqid)
|
|
|
1237 |
result.write(oprot)
|
|
|
1238 |
oprot.writeMessageEnd()
|
|
|
1239 |
oprot.trans.flush()
|
|
|
1240 |
|
| 696 |
rajveer |
1241 |
def process_getPayment(self, seqid, iprot, oprot):
|
|
|
1242 |
args = getPayment_args()
|
| 420 |
ashish |
1243 |
args.read(iprot)
|
|
|
1244 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
1245 |
result = getPayment_result()
|
| 420 |
ashish |
1246 |
try:
|
| 696 |
rajveer |
1247 |
result.success = self._handler.getPayment(args.id)
|
| 420 |
ashish |
1248 |
except PaymentException, pe:
|
|
|
1249 |
result.pe = pe
|
| 696 |
rajveer |
1250 |
oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
1251 |
result.write(oprot)
|
|
|
1252 |
oprot.writeMessageEnd()
|
|
|
1253 |
oprot.trans.flush()
|
|
|
1254 |
|
| 696 |
rajveer |
1255 |
def process_getPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
1256 |
args = getPaymentForTxnId_args()
|
| 420 |
ashish |
1257 |
args.read(iprot)
|
|
|
1258 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
1259 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
1260 |
try:
|
| 696 |
rajveer |
1261 |
result.success = self._handler.getPaymentForTxnId(args.txnId)
|
| 420 |
ashish |
1262 |
except PaymentException, pe:
|
|
|
1263 |
result.pe = pe
|
| 696 |
rajveer |
1264 |
oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
1265 |
result.write(oprot)
|
|
|
1266 |
oprot.writeMessageEnd()
|
|
|
1267 |
oprot.trans.flush()
|
|
|
1268 |
|
| 7049 |
anupam.sin |
1269 |
def process_getPaymentForRechargeTxnId(self, seqid, iprot, oprot):
|
|
|
1270 |
args = getPaymentForRechargeTxnId_args()
|
|
|
1271 |
args.read(iprot)
|
|
|
1272 |
iprot.readMessageEnd()
|
|
|
1273 |
result = getPaymentForRechargeTxnId_result()
|
|
|
1274 |
try:
|
|
|
1275 |
result.success = self._handler.getPaymentForRechargeTxnId(args.txnId)
|
|
|
1276 |
except PaymentException, pe:
|
|
|
1277 |
result.pe = pe
|
|
|
1278 |
oprot.writeMessageBegin("getPaymentForRechargeTxnId", TMessageType.REPLY, seqid)
|
|
|
1279 |
result.write(oprot)
|
|
|
1280 |
oprot.writeMessageEnd()
|
|
|
1281 |
oprot.trans.flush()
|
|
|
1282 |
|
| 4600 |
varun.gupt |
1283 |
def process_getSuccessfulPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
1284 |
args = getSuccessfulPaymentForTxnId_args()
|
|
|
1285 |
args.read(iprot)
|
|
|
1286 |
iprot.readMessageEnd()
|
|
|
1287 |
result = getSuccessfulPaymentForTxnId_result()
|
|
|
1288 |
try:
|
|
|
1289 |
result.success = self._handler.getSuccessfulPaymentForTxnId(args.txnId)
|
|
|
1290 |
except PaymentException, pe:
|
|
|
1291 |
result.pe = pe
|
|
|
1292 |
oprot.writeMessageBegin("getSuccessfulPaymentForTxnId", TMessageType.REPLY, seqid)
|
|
|
1293 |
result.write(oprot)
|
|
|
1294 |
oprot.writeMessageEnd()
|
|
|
1295 |
oprot.trans.flush()
|
|
|
1296 |
|
| 696 |
rajveer |
1297 |
def process_updatePaymentDetails(self, seqid, iprot, oprot):
|
|
|
1298 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
1299 |
args.read(iprot)
|
|
|
1300 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
1301 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
1302 |
try:
|
| 1120 |
rajveer |
1303 |
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 |
1304 |
except PaymentException, pe:
|
|
|
1305 |
result.pe = pe
|
| 696 |
rajveer |
1306 |
oprot.writeMessageBegin("updatePaymentDetails", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
1307 |
result.write(oprot)
|
|
|
1308 |
oprot.writeMessageEnd()
|
|
|
1309 |
oprot.trans.flush()
|
|
|
1310 |
|
| 1731 |
ankur.sing |
1311 |
def process_getSuccessfulPaymentsAmountRange(self, seqid, iprot, oprot):
|
|
|
1312 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
1313 |
args.read(iprot)
|
|
|
1314 |
iprot.readMessageEnd()
|
| 1731 |
ankur.sing |
1315 |
result = getSuccessfulPaymentsAmountRange_result()
|
|
|
1316 |
result.success = self._handler.getSuccessfulPaymentsAmountRange()
|
|
|
1317 |
oprot.writeMessageBegin("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid)
|
| 1627 |
ankur.sing |
1318 |
result.write(oprot)
|
|
|
1319 |
oprot.writeMessageEnd()
|
|
|
1320 |
oprot.trans.flush()
|
| 420 |
ashish |
1321 |
|
| 2559 |
chandransh |
1322 |
def process_initializeHdfcPayment(self, seqid, iprot, oprot):
|
|
|
1323 |
args = initializeHdfcPayment_args()
|
|
|
1324 |
args.read(iprot)
|
|
|
1325 |
iprot.readMessageEnd()
|
|
|
1326 |
result = initializeHdfcPayment_result()
|
|
|
1327 |
try:
|
|
|
1328 |
result.success = self._handler.initializeHdfcPayment(args.merchantPaymentId)
|
|
|
1329 |
except PaymentException, pe:
|
|
|
1330 |
result.pe = pe
|
|
|
1331 |
oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
|
|
|
1332 |
result.write(oprot)
|
|
|
1333 |
oprot.writeMessageEnd()
|
|
|
1334 |
oprot.trans.flush()
|
|
|
1335 |
|
| 6050 |
anupam.sin |
1336 |
def process_doHdfcPaymentForDigitalOrder(self, seqid, iprot, oprot):
|
|
|
1337 |
args = doHdfcPaymentForDigitalOrder_args()
|
|
|
1338 |
args.read(iprot)
|
|
|
1339 |
iprot.readMessageEnd()
|
|
|
1340 |
result = doHdfcPaymentForDigitalOrder_result()
|
|
|
1341 |
try:
|
| 6228 |
anupam.sin |
1342 |
result.success = self._handler.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone)
|
| 6050 |
anupam.sin |
1343 |
except PaymentException, pe:
|
|
|
1344 |
result.pe = pe
|
|
|
1345 |
oprot.writeMessageBegin("doHdfcPaymentForDigitalOrder", TMessageType.REPLY, seqid)
|
|
|
1346 |
result.write(oprot)
|
|
|
1347 |
oprot.writeMessageEnd()
|
|
|
1348 |
oprot.trans.flush()
|
|
|
1349 |
|
| 3616 |
chandransh |
1350 |
def process_initializeHdfcEmiPayment(self, seqid, iprot, oprot):
|
|
|
1351 |
args = initializeHdfcEmiPayment_args()
|
|
|
1352 |
args.read(iprot)
|
|
|
1353 |
iprot.readMessageEnd()
|
|
|
1354 |
result = initializeHdfcEmiPayment_result()
|
|
|
1355 |
try:
|
|
|
1356 |
result.success = self._handler.initializeHdfcEmiPayment(args.merchantPaymentId)
|
|
|
1357 |
except PaymentException, pe:
|
|
|
1358 |
result.pe = pe
|
|
|
1359 |
oprot.writeMessageBegin("initializeHdfcEmiPayment", TMessageType.REPLY, seqid)
|
|
|
1360 |
result.write(oprot)
|
|
|
1361 |
oprot.writeMessageEnd()
|
|
|
1362 |
oprot.trans.flush()
|
|
|
1363 |
|
| 2685 |
chandransh |
1364 |
def process_createRefund(self, seqid, iprot, oprot):
|
|
|
1365 |
args = createRefund_args()
|
|
|
1366 |
args.read(iprot)
|
|
|
1367 |
iprot.readMessageEnd()
|
|
|
1368 |
result = createRefund_result()
|
|
|
1369 |
try:
|
|
|
1370 |
result.success = self._handler.createRefund(args.orderId, args.merchantTxnId, args.amount)
|
|
|
1371 |
except PaymentException, pe:
|
|
|
1372 |
result.pe = pe
|
|
|
1373 |
oprot.writeMessageBegin("createRefund", TMessageType.REPLY, seqid)
|
|
|
1374 |
result.write(oprot)
|
|
|
1375 |
oprot.writeMessageEnd()
|
|
|
1376 |
oprot.trans.flush()
|
| 2559 |
chandransh |
1377 |
|
| 3010 |
chandransh |
1378 |
def process_capturePayment(self, seqid, iprot, oprot):
|
|
|
1379 |
args = capturePayment_args()
|
|
|
1380 |
args.read(iprot)
|
|
|
1381 |
iprot.readMessageEnd()
|
|
|
1382 |
result = capturePayment_result()
|
|
|
1383 |
try:
|
| 8618 |
rajveer |
1384 |
result.success = self._handler.capturePayment(args.merchantTxnId, args.isDigital)
|
| 3010 |
chandransh |
1385 |
except PaymentException, pe:
|
|
|
1386 |
result.pe = pe
|
|
|
1387 |
oprot.writeMessageBegin("capturePayment", TMessageType.REPLY, seqid)
|
|
|
1388 |
result.write(oprot)
|
|
|
1389 |
oprot.writeMessageEnd()
|
|
|
1390 |
oprot.trans.flush()
|
| 2685 |
chandransh |
1391 |
|
| 6486 |
rajveer |
1392 |
def process_refundPayment(self, seqid, iprot, oprot):
|
|
|
1393 |
args = refundPayment_args()
|
|
|
1394 |
args.read(iprot)
|
|
|
1395 |
iprot.readMessageEnd()
|
|
|
1396 |
result = refundPayment_result()
|
|
|
1397 |
try:
|
|
|
1398 |
result.success = self._handler.refundPayment(args.merchantTxnId, args.amount, args.isDigital)
|
|
|
1399 |
except PaymentException, pe:
|
|
|
1400 |
result.pe = pe
|
|
|
1401 |
oprot.writeMessageBegin("refundPayment", TMessageType.REPLY, seqid)
|
|
|
1402 |
result.write(oprot)
|
|
|
1403 |
oprot.writeMessageEnd()
|
|
|
1404 |
oprot.trans.flush()
|
|
|
1405 |
|
| 3956 |
chandransh |
1406 |
def process_partiallyCapturePayment(self, seqid, iprot, oprot):
|
|
|
1407 |
args = partiallyCapturePayment_args()
|
|
|
1408 |
args.read(iprot)
|
|
|
1409 |
iprot.readMessageEnd()
|
|
|
1410 |
result = partiallyCapturePayment_result()
|
|
|
1411 |
try:
|
|
|
1412 |
result.success = self._handler.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate)
|
|
|
1413 |
except PaymentException, pe:
|
|
|
1414 |
result.pe = pe
|
|
|
1415 |
oprot.writeMessageBegin("partiallyCapturePayment", TMessageType.REPLY, seqid)
|
|
|
1416 |
result.write(oprot)
|
|
|
1417 |
oprot.writeMessageEnd()
|
|
|
1418 |
oprot.trans.flush()
|
| 3010 |
chandransh |
1419 |
|
| 4008 |
mandeep.dh |
1420 |
def process_getPaymentsRequiringExtraProcessing(self, seqid, iprot, oprot):
|
|
|
1421 |
args = getPaymentsRequiringExtraProcessing_args()
|
|
|
1422 |
args.read(iprot)
|
|
|
1423 |
iprot.readMessageEnd()
|
|
|
1424 |
result = getPaymentsRequiringExtraProcessing_result()
|
|
|
1425 |
result.success = self._handler.getPaymentsRequiringExtraProcessing(args.category)
|
|
|
1426 |
oprot.writeMessageBegin("getPaymentsRequiringExtraProcessing", TMessageType.REPLY, seqid)
|
|
|
1427 |
result.write(oprot)
|
|
|
1428 |
oprot.writeMessageEnd()
|
|
|
1429 |
oprot.trans.flush()
|
| 3956 |
chandransh |
1430 |
|
| 4008 |
mandeep.dh |
1431 |
def process_markPaymentAsProcessed(self, seqid, iprot, oprot):
|
|
|
1432 |
args = markPaymentAsProcessed_args()
|
|
|
1433 |
args.read(iprot)
|
|
|
1434 |
iprot.readMessageEnd()
|
|
|
1435 |
result = markPaymentAsProcessed_result()
|
|
|
1436 |
self._handler.markPaymentAsProcessed(args.paymentId, args.category)
|
|
|
1437 |
oprot.writeMessageBegin("markPaymentAsProcessed", TMessageType.REPLY, seqid)
|
|
|
1438 |
result.write(oprot)
|
|
|
1439 |
oprot.writeMessageEnd()
|
|
|
1440 |
oprot.trans.flush()
|
|
|
1441 |
|
| 8908 |
rajveer |
1442 |
def process_validatePaymentAtGateway(self, seqid, iprot, oprot):
|
|
|
1443 |
args = validatePaymentAtGateway_args()
|
|
|
1444 |
args.read(iprot)
|
|
|
1445 |
iprot.readMessageEnd()
|
|
|
1446 |
result = validatePaymentAtGateway_result()
|
|
|
1447 |
try:
|
|
|
1448 |
result.success = self._handler.validatePaymentAtGateway(args.merchantTxnId, args.amount, args.isDigital)
|
|
|
1449 |
except PaymentException, pe:
|
|
|
1450 |
result.pe = pe
|
|
|
1451 |
oprot.writeMessageBegin("validatePaymentAtGateway", TMessageType.REPLY, seqid)
|
|
|
1452 |
result.write(oprot)
|
|
|
1453 |
oprot.writeMessageEnd()
|
|
|
1454 |
oprot.trans.flush()
|
| 4008 |
mandeep.dh |
1455 |
|
| 8908 |
rajveer |
1456 |
|
| 420 |
ashish |
1457 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
1458 |
|
|
|
1459 |
class createPayment_args:
|
|
|
1460 |
"""
|
|
|
1461 |
Attributes:
|
| 696 |
rajveer |
1462 |
- userId
|
| 420 |
ashish |
1463 |
- amount
|
| 696 |
rajveer |
1464 |
- gatewayId
|
|
|
1465 |
- txnId
|
| 6050 |
anupam.sin |
1466 |
- isDigital
|
| 420 |
ashish |
1467 |
"""
|
|
|
1468 |
|
|
|
1469 |
thrift_spec = (
|
|
|
1470 |
None, # 0
|
| 696 |
rajveer |
1471 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
1472 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
1473 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
1474 |
(4, TType.I64, 'txnId', None, None, ), # 4
|
| 6050 |
anupam.sin |
1475 |
(5, TType.BOOL, 'isDigital', None, None, ), # 5
|
| 420 |
ashish |
1476 |
)
|
|
|
1477 |
|
| 6050 |
anupam.sin |
1478 |
def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None, isDigital=None,):
|
| 696 |
rajveer |
1479 |
self.userId = userId
|
| 420 |
ashish |
1480 |
self.amount = amount
|
| 696 |
rajveer |
1481 |
self.gatewayId = gatewayId
|
|
|
1482 |
self.txnId = txnId
|
| 6050 |
anupam.sin |
1483 |
self.isDigital = isDigital
|
| 420 |
ashish |
1484 |
|
|
|
1485 |
def read(self, iprot):
|
|
|
1486 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1487 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1488 |
return
|
|
|
1489 |
iprot.readStructBegin()
|
|
|
1490 |
while True:
|
|
|
1491 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1492 |
if ftype == TType.STOP:
|
|
|
1493 |
break
|
|
|
1494 |
if fid == 1:
|
|
|
1495 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1496 |
self.userId = iprot.readI64();
|
| 420 |
ashish |
1497 |
else:
|
|
|
1498 |
iprot.skip(ftype)
|
|
|
1499 |
elif fid == 2:
|
| 696 |
rajveer |
1500 |
if ftype == TType.DOUBLE:
|
|
|
1501 |
self.amount = iprot.readDouble();
|
| 420 |
ashish |
1502 |
else:
|
|
|
1503 |
iprot.skip(ftype)
|
|
|
1504 |
elif fid == 3:
|
| 696 |
rajveer |
1505 |
if ftype == TType.I64:
|
|
|
1506 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1507 |
else:
|
|
|
1508 |
iprot.skip(ftype)
|
|
|
1509 |
elif fid == 4:
|
|
|
1510 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1511 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
1512 |
else:
|
|
|
1513 |
iprot.skip(ftype)
|
| 6050 |
anupam.sin |
1514 |
elif fid == 5:
|
|
|
1515 |
if ftype == TType.BOOL:
|
|
|
1516 |
self.isDigital = iprot.readBool();
|
|
|
1517 |
else:
|
|
|
1518 |
iprot.skip(ftype)
|
| 420 |
ashish |
1519 |
else:
|
|
|
1520 |
iprot.skip(ftype)
|
|
|
1521 |
iprot.readFieldEnd()
|
|
|
1522 |
iprot.readStructEnd()
|
|
|
1523 |
|
|
|
1524 |
def write(self, oprot):
|
|
|
1525 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1526 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1527 |
return
|
|
|
1528 |
oprot.writeStructBegin('createPayment_args')
|
| 3431 |
rajveer |
1529 |
if self.userId is not None:
|
| 696 |
rajveer |
1530 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1531 |
oprot.writeI64(self.userId)
|
| 420 |
ashish |
1532 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1533 |
if self.amount is not None:
|
| 696 |
rajveer |
1534 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
| 420 |
ashish |
1535 |
oprot.writeDouble(self.amount)
|
|
|
1536 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1537 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
1538 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
1539 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1540 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1541 |
if self.txnId is not None:
|
| 696 |
rajveer |
1542 |
oprot.writeFieldBegin('txnId', TType.I64, 4)
|
|
|
1543 |
oprot.writeI64(self.txnId)
|
|
|
1544 |
oprot.writeFieldEnd()
|
| 6050 |
anupam.sin |
1545 |
if self.isDigital is not None:
|
|
|
1546 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 5)
|
|
|
1547 |
oprot.writeBool(self.isDigital)
|
|
|
1548 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
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 |
|
|
|
1567 |
class createPayment_result:
|
|
|
1568 |
"""
|
|
|
1569 |
Attributes:
|
|
|
1570 |
- success
|
|
|
1571 |
- pe
|
|
|
1572 |
"""
|
|
|
1573 |
|
|
|
1574 |
thrift_spec = (
|
|
|
1575 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1576 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1577 |
)
|
|
|
1578 |
|
|
|
1579 |
def __init__(self, success=None, pe=None,):
|
|
|
1580 |
self.success = success
|
|
|
1581 |
self.pe = pe
|
|
|
1582 |
|
|
|
1583 |
def read(self, iprot):
|
|
|
1584 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1585 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1586 |
return
|
|
|
1587 |
iprot.readStructBegin()
|
|
|
1588 |
while True:
|
|
|
1589 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1590 |
if ftype == TType.STOP:
|
|
|
1591 |
break
|
|
|
1592 |
if fid == 0:
|
|
|
1593 |
if ftype == TType.I64:
|
|
|
1594 |
self.success = iprot.readI64();
|
|
|
1595 |
else:
|
|
|
1596 |
iprot.skip(ftype)
|
|
|
1597 |
elif fid == 1:
|
|
|
1598 |
if ftype == TType.STRUCT:
|
|
|
1599 |
self.pe = PaymentException()
|
|
|
1600 |
self.pe.read(iprot)
|
|
|
1601 |
else:
|
|
|
1602 |
iprot.skip(ftype)
|
|
|
1603 |
else:
|
|
|
1604 |
iprot.skip(ftype)
|
|
|
1605 |
iprot.readFieldEnd()
|
|
|
1606 |
iprot.readStructEnd()
|
|
|
1607 |
|
|
|
1608 |
def write(self, oprot):
|
|
|
1609 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1610 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1611 |
return
|
|
|
1612 |
oprot.writeStructBegin('createPayment_result')
|
| 3431 |
rajveer |
1613 |
if self.success is not None:
|
| 420 |
ashish |
1614 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1615 |
oprot.writeI64(self.success)
|
|
|
1616 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1617 |
if self.pe is not None:
|
| 420 |
ashish |
1618 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1619 |
self.pe.write(oprot)
|
|
|
1620 |
oprot.writeFieldEnd()
|
|
|
1621 |
oprot.writeFieldStop()
|
|
|
1622 |
oprot.writeStructEnd()
|
|
|
1623 |
|
| 3431 |
rajveer |
1624 |
def validate(self):
|
|
|
1625 |
return
|
|
|
1626 |
|
|
|
1627 |
|
| 420 |
ashish |
1628 |
def __repr__(self):
|
|
|
1629 |
L = ['%s=%r' % (key, value)
|
|
|
1630 |
for key, value in self.__dict__.iteritems()]
|
|
|
1631 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1632 |
|
|
|
1633 |
def __eq__(self, other):
|
|
|
1634 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1635 |
|
|
|
1636 |
def __ne__(self, other):
|
|
|
1637 |
return not (self == other)
|
|
|
1638 |
|
|
|
1639 |
class getPaymentsForUser_args:
|
|
|
1640 |
"""
|
|
|
1641 |
Attributes:
|
|
|
1642 |
- userId
|
| 696 |
rajveer |
1643 |
- fromTime
|
|
|
1644 |
- toTime
|
| 420 |
ashish |
1645 |
- status
|
| 696 |
rajveer |
1646 |
- gatewayId
|
| 420 |
ashish |
1647 |
"""
|
|
|
1648 |
|
|
|
1649 |
thrift_spec = (
|
|
|
1650 |
None, # 0
|
|
|
1651 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 696 |
rajveer |
1652 |
(2, TType.I64, 'fromTime', None, None, ), # 2
|
|
|
1653 |
(3, TType.I64, 'toTime', None, None, ), # 3
|
| 420 |
ashish |
1654 |
(4, TType.I32, 'status', None, None, ), # 4
|
| 696 |
rajveer |
1655 |
(5, TType.I64, 'gatewayId', None, None, ), # 5
|
| 420 |
ashish |
1656 |
)
|
|
|
1657 |
|
| 696 |
rajveer |
1658 |
def __init__(self, userId=None, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
| 420 |
ashish |
1659 |
self.userId = userId
|
| 696 |
rajveer |
1660 |
self.fromTime = fromTime
|
|
|
1661 |
self.toTime = toTime
|
| 420 |
ashish |
1662 |
self.status = status
|
| 696 |
rajveer |
1663 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1664 |
|
|
|
1665 |
def read(self, iprot):
|
|
|
1666 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1667 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1668 |
return
|
|
|
1669 |
iprot.readStructBegin()
|
|
|
1670 |
while True:
|
|
|
1671 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1672 |
if ftype == TType.STOP:
|
|
|
1673 |
break
|
|
|
1674 |
if fid == 1:
|
|
|
1675 |
if ftype == TType.I64:
|
|
|
1676 |
self.userId = iprot.readI64();
|
|
|
1677 |
else:
|
|
|
1678 |
iprot.skip(ftype)
|
|
|
1679 |
elif fid == 2:
|
|
|
1680 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1681 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1682 |
else:
|
|
|
1683 |
iprot.skip(ftype)
|
|
|
1684 |
elif fid == 3:
|
|
|
1685 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1686 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1687 |
else:
|
|
|
1688 |
iprot.skip(ftype)
|
|
|
1689 |
elif fid == 4:
|
|
|
1690 |
if ftype == TType.I32:
|
|
|
1691 |
self.status = iprot.readI32();
|
|
|
1692 |
else:
|
|
|
1693 |
iprot.skip(ftype)
|
|
|
1694 |
elif fid == 5:
|
|
|
1695 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1696 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1697 |
else:
|
|
|
1698 |
iprot.skip(ftype)
|
|
|
1699 |
else:
|
|
|
1700 |
iprot.skip(ftype)
|
|
|
1701 |
iprot.readFieldEnd()
|
|
|
1702 |
iprot.readStructEnd()
|
|
|
1703 |
|
|
|
1704 |
def write(self, oprot):
|
|
|
1705 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1706 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1707 |
return
|
|
|
1708 |
oprot.writeStructBegin('getPaymentsForUser_args')
|
| 3431 |
rajveer |
1709 |
if self.userId is not None:
|
| 420 |
ashish |
1710 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1711 |
oprot.writeI64(self.userId)
|
|
|
1712 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1713 |
if self.fromTime is not None:
|
| 696 |
rajveer |
1714 |
oprot.writeFieldBegin('fromTime', TType.I64, 2)
|
|
|
1715 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1716 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1717 |
if self.toTime is not None:
|
| 696 |
rajveer |
1718 |
oprot.writeFieldBegin('toTime', TType.I64, 3)
|
|
|
1719 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1720 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1721 |
if self.status is not None:
|
| 420 |
ashish |
1722 |
oprot.writeFieldBegin('status', TType.I32, 4)
|
|
|
1723 |
oprot.writeI32(self.status)
|
|
|
1724 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1725 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
1726 |
oprot.writeFieldBegin('gatewayId', TType.I64, 5)
|
|
|
1727 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1728 |
oprot.writeFieldEnd()
|
|
|
1729 |
oprot.writeFieldStop()
|
|
|
1730 |
oprot.writeStructEnd()
|
|
|
1731 |
|
| 3431 |
rajveer |
1732 |
def validate(self):
|
|
|
1733 |
return
|
|
|
1734 |
|
|
|
1735 |
|
| 420 |
ashish |
1736 |
def __repr__(self):
|
|
|
1737 |
L = ['%s=%r' % (key, value)
|
|
|
1738 |
for key, value in self.__dict__.iteritems()]
|
|
|
1739 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1740 |
|
|
|
1741 |
def __eq__(self, other):
|
|
|
1742 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1743 |
|
|
|
1744 |
def __ne__(self, other):
|
|
|
1745 |
return not (self == other)
|
|
|
1746 |
|
|
|
1747 |
class getPaymentsForUser_result:
|
|
|
1748 |
"""
|
|
|
1749 |
Attributes:
|
|
|
1750 |
- success
|
|
|
1751 |
- pe
|
|
|
1752 |
"""
|
|
|
1753 |
|
|
|
1754 |
thrift_spec = (
|
|
|
1755 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1756 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1757 |
)
|
|
|
1758 |
|
|
|
1759 |
def __init__(self, success=None, pe=None,):
|
|
|
1760 |
self.success = success
|
|
|
1761 |
self.pe = pe
|
|
|
1762 |
|
|
|
1763 |
def read(self, iprot):
|
|
|
1764 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1765 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1766 |
return
|
|
|
1767 |
iprot.readStructBegin()
|
|
|
1768 |
while True:
|
|
|
1769 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1770 |
if ftype == TType.STOP:
|
|
|
1771 |
break
|
|
|
1772 |
if fid == 0:
|
|
|
1773 |
if ftype == TType.LIST:
|
|
|
1774 |
self.success = []
|
| 2747 |
chandransh |
1775 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
1776 |
for _i25 in xrange(_size21):
|
|
|
1777 |
_elem26 = Payment()
|
|
|
1778 |
_elem26.read(iprot)
|
|
|
1779 |
self.success.append(_elem26)
|
| 420 |
ashish |
1780 |
iprot.readListEnd()
|
|
|
1781 |
else:
|
|
|
1782 |
iprot.skip(ftype)
|
|
|
1783 |
elif fid == 1:
|
|
|
1784 |
if ftype == TType.STRUCT:
|
|
|
1785 |
self.pe = PaymentException()
|
|
|
1786 |
self.pe.read(iprot)
|
|
|
1787 |
else:
|
|
|
1788 |
iprot.skip(ftype)
|
|
|
1789 |
else:
|
|
|
1790 |
iprot.skip(ftype)
|
|
|
1791 |
iprot.readFieldEnd()
|
|
|
1792 |
iprot.readStructEnd()
|
|
|
1793 |
|
|
|
1794 |
def write(self, oprot):
|
|
|
1795 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1796 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1797 |
return
|
|
|
1798 |
oprot.writeStructBegin('getPaymentsForUser_result')
|
| 3431 |
rajveer |
1799 |
if self.success is not None:
|
| 420 |
ashish |
1800 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1801 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 2747 |
chandransh |
1802 |
for iter27 in self.success:
|
|
|
1803 |
iter27.write(oprot)
|
| 420 |
ashish |
1804 |
oprot.writeListEnd()
|
|
|
1805 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1806 |
if self.pe is not None:
|
| 420 |
ashish |
1807 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1808 |
self.pe.write(oprot)
|
|
|
1809 |
oprot.writeFieldEnd()
|
|
|
1810 |
oprot.writeFieldStop()
|
|
|
1811 |
oprot.writeStructEnd()
|
|
|
1812 |
|
| 3431 |
rajveer |
1813 |
def validate(self):
|
|
|
1814 |
return
|
|
|
1815 |
|
|
|
1816 |
|
| 420 |
ashish |
1817 |
def __repr__(self):
|
|
|
1818 |
L = ['%s=%r' % (key, value)
|
|
|
1819 |
for key, value in self.__dict__.iteritems()]
|
|
|
1820 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1821 |
|
|
|
1822 |
def __eq__(self, other):
|
|
|
1823 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1824 |
|
|
|
1825 |
def __ne__(self, other):
|
|
|
1826 |
return not (self == other)
|
|
|
1827 |
|
|
|
1828 |
class getPayments_args:
|
|
|
1829 |
"""
|
|
|
1830 |
Attributes:
|
| 696 |
rajveer |
1831 |
- fromTime
|
|
|
1832 |
- toTime
|
| 420 |
ashish |
1833 |
- status
|
| 696 |
rajveer |
1834 |
- gatewayId
|
| 420 |
ashish |
1835 |
"""
|
|
|
1836 |
|
|
|
1837 |
thrift_spec = (
|
|
|
1838 |
None, # 0
|
| 696 |
rajveer |
1839 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
1840 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
| 420 |
ashish |
1841 |
(3, TType.I32, 'status', None, None, ), # 3
|
| 696 |
rajveer |
1842 |
(4, TType.I64, 'gatewayId', None, None, ), # 4
|
| 420 |
ashish |
1843 |
)
|
|
|
1844 |
|
| 696 |
rajveer |
1845 |
def __init__(self, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
|
|
1846 |
self.fromTime = fromTime
|
|
|
1847 |
self.toTime = toTime
|
| 420 |
ashish |
1848 |
self.status = status
|
| 696 |
rajveer |
1849 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1850 |
|
|
|
1851 |
def read(self, iprot):
|
|
|
1852 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1853 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1854 |
return
|
|
|
1855 |
iprot.readStructBegin()
|
|
|
1856 |
while True:
|
|
|
1857 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1858 |
if ftype == TType.STOP:
|
|
|
1859 |
break
|
|
|
1860 |
if fid == 1:
|
|
|
1861 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1862 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1863 |
else:
|
|
|
1864 |
iprot.skip(ftype)
|
|
|
1865 |
elif fid == 2:
|
|
|
1866 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1867 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1868 |
else:
|
|
|
1869 |
iprot.skip(ftype)
|
|
|
1870 |
elif fid == 3:
|
|
|
1871 |
if ftype == TType.I32:
|
|
|
1872 |
self.status = iprot.readI32();
|
|
|
1873 |
else:
|
|
|
1874 |
iprot.skip(ftype)
|
|
|
1875 |
elif fid == 4:
|
|
|
1876 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1877 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1878 |
else:
|
|
|
1879 |
iprot.skip(ftype)
|
|
|
1880 |
else:
|
|
|
1881 |
iprot.skip(ftype)
|
|
|
1882 |
iprot.readFieldEnd()
|
|
|
1883 |
iprot.readStructEnd()
|
|
|
1884 |
|
|
|
1885 |
def write(self, oprot):
|
|
|
1886 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1887 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1888 |
return
|
|
|
1889 |
oprot.writeStructBegin('getPayments_args')
|
| 3431 |
rajveer |
1890 |
if self.fromTime is not None:
|
| 696 |
rajveer |
1891 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
1892 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1893 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1894 |
if self.toTime is not None:
|
| 696 |
rajveer |
1895 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
1896 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1897 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1898 |
if self.status is not None:
|
| 420 |
ashish |
1899 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
1900 |
oprot.writeI32(self.status)
|
|
|
1901 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1902 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
1903 |
oprot.writeFieldBegin('gatewayId', TType.I64, 4)
|
|
|
1904 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1905 |
oprot.writeFieldEnd()
|
|
|
1906 |
oprot.writeFieldStop()
|
|
|
1907 |
oprot.writeStructEnd()
|
|
|
1908 |
|
| 3431 |
rajveer |
1909 |
def validate(self):
|
|
|
1910 |
return
|
|
|
1911 |
|
|
|
1912 |
|
| 420 |
ashish |
1913 |
def __repr__(self):
|
|
|
1914 |
L = ['%s=%r' % (key, value)
|
|
|
1915 |
for key, value in self.__dict__.iteritems()]
|
|
|
1916 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1917 |
|
|
|
1918 |
def __eq__(self, other):
|
|
|
1919 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1920 |
|
|
|
1921 |
def __ne__(self, other):
|
|
|
1922 |
return not (self == other)
|
|
|
1923 |
|
|
|
1924 |
class getPayments_result:
|
|
|
1925 |
"""
|
|
|
1926 |
Attributes:
|
|
|
1927 |
- success
|
|
|
1928 |
- pe
|
|
|
1929 |
"""
|
|
|
1930 |
|
|
|
1931 |
thrift_spec = (
|
|
|
1932 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1933 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1934 |
)
|
|
|
1935 |
|
|
|
1936 |
def __init__(self, success=None, pe=None,):
|
|
|
1937 |
self.success = success
|
|
|
1938 |
self.pe = pe
|
|
|
1939 |
|
|
|
1940 |
def read(self, iprot):
|
|
|
1941 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1942 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1943 |
return
|
|
|
1944 |
iprot.readStructBegin()
|
|
|
1945 |
while True:
|
|
|
1946 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1947 |
if ftype == TType.STOP:
|
|
|
1948 |
break
|
|
|
1949 |
if fid == 0:
|
|
|
1950 |
if ftype == TType.LIST:
|
|
|
1951 |
self.success = []
|
| 2747 |
chandransh |
1952 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
1953 |
for _i32 in xrange(_size28):
|
|
|
1954 |
_elem33 = Payment()
|
|
|
1955 |
_elem33.read(iprot)
|
|
|
1956 |
self.success.append(_elem33)
|
| 420 |
ashish |
1957 |
iprot.readListEnd()
|
|
|
1958 |
else:
|
|
|
1959 |
iprot.skip(ftype)
|
|
|
1960 |
elif fid == 1:
|
|
|
1961 |
if ftype == TType.STRUCT:
|
|
|
1962 |
self.pe = PaymentException()
|
|
|
1963 |
self.pe.read(iprot)
|
|
|
1964 |
else:
|
|
|
1965 |
iprot.skip(ftype)
|
|
|
1966 |
else:
|
|
|
1967 |
iprot.skip(ftype)
|
|
|
1968 |
iprot.readFieldEnd()
|
|
|
1969 |
iprot.readStructEnd()
|
|
|
1970 |
|
|
|
1971 |
def write(self, oprot):
|
|
|
1972 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1973 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1974 |
return
|
|
|
1975 |
oprot.writeStructBegin('getPayments_result')
|
| 3431 |
rajveer |
1976 |
if self.success is not None:
|
| 420 |
ashish |
1977 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1978 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 2747 |
chandransh |
1979 |
for iter34 in self.success:
|
|
|
1980 |
iter34.write(oprot)
|
| 420 |
ashish |
1981 |
oprot.writeListEnd()
|
|
|
1982 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1983 |
if self.pe is not None:
|
| 420 |
ashish |
1984 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1985 |
self.pe.write(oprot)
|
|
|
1986 |
oprot.writeFieldEnd()
|
|
|
1987 |
oprot.writeFieldStop()
|
|
|
1988 |
oprot.writeStructEnd()
|
|
|
1989 |
|
| 3431 |
rajveer |
1990 |
def validate(self):
|
|
|
1991 |
return
|
|
|
1992 |
|
|
|
1993 |
|
| 420 |
ashish |
1994 |
def __repr__(self):
|
|
|
1995 |
L = ['%s=%r' % (key, value)
|
|
|
1996 |
for key, value in self.__dict__.iteritems()]
|
|
|
1997 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1998 |
|
|
|
1999 |
def __eq__(self, other):
|
|
|
2000 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2001 |
|
|
|
2002 |
def __ne__(self, other):
|
|
|
2003 |
return not (self == other)
|
|
|
2004 |
|
| 4141 |
chandransh |
2005 |
class getPaymentsByCapturedDate_args:
|
|
|
2006 |
"""
|
|
|
2007 |
Attributes:
|
|
|
2008 |
- fromTime
|
|
|
2009 |
- toTime
|
|
|
2010 |
- gatewayId
|
|
|
2011 |
"""
|
|
|
2012 |
|
|
|
2013 |
thrift_spec = (
|
|
|
2014 |
None, # 0
|
|
|
2015 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
2016 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
|
|
2017 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
2018 |
)
|
|
|
2019 |
|
|
|
2020 |
def __init__(self, fromTime=None, toTime=None, gatewayId=None,):
|
|
|
2021 |
self.fromTime = fromTime
|
|
|
2022 |
self.toTime = toTime
|
|
|
2023 |
self.gatewayId = gatewayId
|
|
|
2024 |
|
|
|
2025 |
def read(self, iprot):
|
|
|
2026 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2027 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2028 |
return
|
|
|
2029 |
iprot.readStructBegin()
|
|
|
2030 |
while True:
|
|
|
2031 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2032 |
if ftype == TType.STOP:
|
|
|
2033 |
break
|
|
|
2034 |
if fid == 1:
|
|
|
2035 |
if ftype == TType.I64:
|
|
|
2036 |
self.fromTime = iprot.readI64();
|
|
|
2037 |
else:
|
|
|
2038 |
iprot.skip(ftype)
|
|
|
2039 |
elif fid == 2:
|
|
|
2040 |
if ftype == TType.I64:
|
|
|
2041 |
self.toTime = iprot.readI64();
|
|
|
2042 |
else:
|
|
|
2043 |
iprot.skip(ftype)
|
|
|
2044 |
elif fid == 3:
|
|
|
2045 |
if ftype == TType.I64:
|
|
|
2046 |
self.gatewayId = iprot.readI64();
|
|
|
2047 |
else:
|
|
|
2048 |
iprot.skip(ftype)
|
|
|
2049 |
else:
|
|
|
2050 |
iprot.skip(ftype)
|
|
|
2051 |
iprot.readFieldEnd()
|
|
|
2052 |
iprot.readStructEnd()
|
|
|
2053 |
|
|
|
2054 |
def write(self, oprot):
|
|
|
2055 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2056 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2057 |
return
|
|
|
2058 |
oprot.writeStructBegin('getPaymentsByCapturedDate_args')
|
|
|
2059 |
if self.fromTime is not None:
|
|
|
2060 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
2061 |
oprot.writeI64(self.fromTime)
|
|
|
2062 |
oprot.writeFieldEnd()
|
|
|
2063 |
if self.toTime is not None:
|
|
|
2064 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
2065 |
oprot.writeI64(self.toTime)
|
|
|
2066 |
oprot.writeFieldEnd()
|
|
|
2067 |
if self.gatewayId is not None:
|
|
|
2068 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
2069 |
oprot.writeI64(self.gatewayId)
|
|
|
2070 |
oprot.writeFieldEnd()
|
|
|
2071 |
oprot.writeFieldStop()
|
|
|
2072 |
oprot.writeStructEnd()
|
|
|
2073 |
|
|
|
2074 |
def validate(self):
|
|
|
2075 |
return
|
|
|
2076 |
|
|
|
2077 |
|
|
|
2078 |
def __repr__(self):
|
|
|
2079 |
L = ['%s=%r' % (key, value)
|
|
|
2080 |
for key, value in self.__dict__.iteritems()]
|
|
|
2081 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2082 |
|
|
|
2083 |
def __eq__(self, other):
|
|
|
2084 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2085 |
|
|
|
2086 |
def __ne__(self, other):
|
|
|
2087 |
return not (self == other)
|
|
|
2088 |
|
|
|
2089 |
class getPaymentsByCapturedDate_result:
|
|
|
2090 |
"""
|
|
|
2091 |
Attributes:
|
|
|
2092 |
- success
|
|
|
2093 |
- pe
|
|
|
2094 |
"""
|
|
|
2095 |
|
|
|
2096 |
thrift_spec = (
|
|
|
2097 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
2098 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2099 |
)
|
|
|
2100 |
|
|
|
2101 |
def __init__(self, success=None, pe=None,):
|
|
|
2102 |
self.success = success
|
|
|
2103 |
self.pe = pe
|
|
|
2104 |
|
|
|
2105 |
def read(self, iprot):
|
|
|
2106 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2107 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2108 |
return
|
|
|
2109 |
iprot.readStructBegin()
|
|
|
2110 |
while True:
|
|
|
2111 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2112 |
if ftype == TType.STOP:
|
|
|
2113 |
break
|
|
|
2114 |
if fid == 0:
|
|
|
2115 |
if ftype == TType.LIST:
|
|
|
2116 |
self.success = []
|
|
|
2117 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
2118 |
for _i39 in xrange(_size35):
|
|
|
2119 |
_elem40 = Payment()
|
|
|
2120 |
_elem40.read(iprot)
|
|
|
2121 |
self.success.append(_elem40)
|
|
|
2122 |
iprot.readListEnd()
|
|
|
2123 |
else:
|
|
|
2124 |
iprot.skip(ftype)
|
|
|
2125 |
elif fid == 1:
|
|
|
2126 |
if ftype == TType.STRUCT:
|
|
|
2127 |
self.pe = PaymentException()
|
|
|
2128 |
self.pe.read(iprot)
|
|
|
2129 |
else:
|
|
|
2130 |
iprot.skip(ftype)
|
|
|
2131 |
else:
|
|
|
2132 |
iprot.skip(ftype)
|
|
|
2133 |
iprot.readFieldEnd()
|
|
|
2134 |
iprot.readStructEnd()
|
|
|
2135 |
|
|
|
2136 |
def write(self, oprot):
|
|
|
2137 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2138 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2139 |
return
|
|
|
2140 |
oprot.writeStructBegin('getPaymentsByCapturedDate_result')
|
|
|
2141 |
if self.success is not None:
|
|
|
2142 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2143 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2144 |
for iter41 in self.success:
|
|
|
2145 |
iter41.write(oprot)
|
|
|
2146 |
oprot.writeListEnd()
|
|
|
2147 |
oprot.writeFieldEnd()
|
|
|
2148 |
if self.pe is not None:
|
|
|
2149 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2150 |
self.pe.write(oprot)
|
|
|
2151 |
oprot.writeFieldEnd()
|
|
|
2152 |
oprot.writeFieldStop()
|
|
|
2153 |
oprot.writeStructEnd()
|
|
|
2154 |
|
|
|
2155 |
def validate(self):
|
|
|
2156 |
return
|
|
|
2157 |
|
|
|
2158 |
|
|
|
2159 |
def __repr__(self):
|
|
|
2160 |
L = ['%s=%r' % (key, value)
|
|
|
2161 |
for key, value in self.__dict__.iteritems()]
|
|
|
2162 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2163 |
|
|
|
2164 |
def __eq__(self, other):
|
|
|
2165 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2166 |
|
|
|
2167 |
def __ne__(self, other):
|
|
|
2168 |
return not (self == other)
|
|
|
2169 |
|
| 696 |
rajveer |
2170 |
class getPaymentGateway_args:
|
| 420 |
ashish |
2171 |
"""
|
|
|
2172 |
Attributes:
|
|
|
2173 |
- id
|
|
|
2174 |
"""
|
|
|
2175 |
|
|
|
2176 |
thrift_spec = (
|
|
|
2177 |
None, # 0
|
|
|
2178 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2179 |
)
|
|
|
2180 |
|
| 696 |
rajveer |
2181 |
def __init__(self, id=None,):
|
| 420 |
ashish |
2182 |
self.id = id
|
|
|
2183 |
|
|
|
2184 |
def read(self, iprot):
|
|
|
2185 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2186 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2187 |
return
|
|
|
2188 |
iprot.readStructBegin()
|
|
|
2189 |
while True:
|
|
|
2190 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2191 |
if ftype == TType.STOP:
|
|
|
2192 |
break
|
|
|
2193 |
if fid == 1:
|
|
|
2194 |
if ftype == TType.I64:
|
|
|
2195 |
self.id = iprot.readI64();
|
|
|
2196 |
else:
|
|
|
2197 |
iprot.skip(ftype)
|
|
|
2198 |
else:
|
|
|
2199 |
iprot.skip(ftype)
|
|
|
2200 |
iprot.readFieldEnd()
|
|
|
2201 |
iprot.readStructEnd()
|
|
|
2202 |
|
|
|
2203 |
def write(self, oprot):
|
|
|
2204 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2205 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2206 |
return
|
| 696 |
rajveer |
2207 |
oprot.writeStructBegin('getPaymentGateway_args')
|
| 3431 |
rajveer |
2208 |
if self.id is not None:
|
| 420 |
ashish |
2209 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2210 |
oprot.writeI64(self.id)
|
|
|
2211 |
oprot.writeFieldEnd()
|
|
|
2212 |
oprot.writeFieldStop()
|
|
|
2213 |
oprot.writeStructEnd()
|
|
|
2214 |
|
| 3431 |
rajveer |
2215 |
def validate(self):
|
|
|
2216 |
return
|
|
|
2217 |
|
|
|
2218 |
|
| 420 |
ashish |
2219 |
def __repr__(self):
|
|
|
2220 |
L = ['%s=%r' % (key, value)
|
|
|
2221 |
for key, value in self.__dict__.iteritems()]
|
|
|
2222 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2223 |
|
|
|
2224 |
def __eq__(self, other):
|
|
|
2225 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2226 |
|
|
|
2227 |
def __ne__(self, other):
|
|
|
2228 |
return not (self == other)
|
|
|
2229 |
|
| 696 |
rajveer |
2230 |
class getPaymentGateway_result:
|
| 420 |
ashish |
2231 |
"""
|
|
|
2232 |
Attributes:
|
|
|
2233 |
- success
|
|
|
2234 |
- pe
|
|
|
2235 |
"""
|
|
|
2236 |
|
|
|
2237 |
thrift_spec = (
|
| 696 |
rajveer |
2238 |
(0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
|
| 420 |
ashish |
2239 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2240 |
)
|
|
|
2241 |
|
|
|
2242 |
def __init__(self, success=None, pe=None,):
|
|
|
2243 |
self.success = success
|
|
|
2244 |
self.pe = pe
|
|
|
2245 |
|
|
|
2246 |
def read(self, iprot):
|
|
|
2247 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2248 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2249 |
return
|
|
|
2250 |
iprot.readStructBegin()
|
|
|
2251 |
while True:
|
|
|
2252 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2253 |
if ftype == TType.STOP:
|
|
|
2254 |
break
|
|
|
2255 |
if fid == 0:
|
| 696 |
rajveer |
2256 |
if ftype == TType.STRUCT:
|
|
|
2257 |
self.success = PaymentGateway()
|
|
|
2258 |
self.success.read(iprot)
|
| 420 |
ashish |
2259 |
else:
|
|
|
2260 |
iprot.skip(ftype)
|
|
|
2261 |
elif fid == 1:
|
|
|
2262 |
if ftype == TType.STRUCT:
|
|
|
2263 |
self.pe = PaymentException()
|
|
|
2264 |
self.pe.read(iprot)
|
|
|
2265 |
else:
|
|
|
2266 |
iprot.skip(ftype)
|
|
|
2267 |
else:
|
|
|
2268 |
iprot.skip(ftype)
|
|
|
2269 |
iprot.readFieldEnd()
|
|
|
2270 |
iprot.readStructEnd()
|
|
|
2271 |
|
|
|
2272 |
def write(self, oprot):
|
|
|
2273 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2274 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2275 |
return
|
| 696 |
rajveer |
2276 |
oprot.writeStructBegin('getPaymentGateway_result')
|
| 3431 |
rajveer |
2277 |
if self.success is not None:
|
| 696 |
rajveer |
2278 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2279 |
self.success.write(oprot)
|
| 420 |
ashish |
2280 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2281 |
if self.pe is not None:
|
| 420 |
ashish |
2282 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2283 |
self.pe.write(oprot)
|
|
|
2284 |
oprot.writeFieldEnd()
|
|
|
2285 |
oprot.writeFieldStop()
|
|
|
2286 |
oprot.writeStructEnd()
|
|
|
2287 |
|
| 3431 |
rajveer |
2288 |
def validate(self):
|
|
|
2289 |
return
|
|
|
2290 |
|
|
|
2291 |
|
| 420 |
ashish |
2292 |
def __repr__(self):
|
|
|
2293 |
L = ['%s=%r' % (key, value)
|
|
|
2294 |
for key, value in self.__dict__.iteritems()]
|
|
|
2295 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2296 |
|
|
|
2297 |
def __eq__(self, other):
|
|
|
2298 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2299 |
|
|
|
2300 |
def __ne__(self, other):
|
|
|
2301 |
return not (self == other)
|
|
|
2302 |
|
| 4600 |
varun.gupt |
2303 |
class getActivePaymentGateways_args:
|
|
|
2304 |
|
|
|
2305 |
thrift_spec = (
|
|
|
2306 |
)
|
|
|
2307 |
|
|
|
2308 |
def read(self, iprot):
|
|
|
2309 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2310 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2311 |
return
|
|
|
2312 |
iprot.readStructBegin()
|
|
|
2313 |
while True:
|
|
|
2314 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2315 |
if ftype == TType.STOP:
|
|
|
2316 |
break
|
|
|
2317 |
else:
|
|
|
2318 |
iprot.skip(ftype)
|
|
|
2319 |
iprot.readFieldEnd()
|
|
|
2320 |
iprot.readStructEnd()
|
|
|
2321 |
|
|
|
2322 |
def write(self, oprot):
|
|
|
2323 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2324 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2325 |
return
|
|
|
2326 |
oprot.writeStructBegin('getActivePaymentGateways_args')
|
|
|
2327 |
oprot.writeFieldStop()
|
|
|
2328 |
oprot.writeStructEnd()
|
|
|
2329 |
|
|
|
2330 |
def validate(self):
|
|
|
2331 |
return
|
|
|
2332 |
|
|
|
2333 |
|
|
|
2334 |
def __repr__(self):
|
|
|
2335 |
L = ['%s=%r' % (key, value)
|
|
|
2336 |
for key, value in self.__dict__.iteritems()]
|
|
|
2337 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2338 |
|
|
|
2339 |
def __eq__(self, other):
|
|
|
2340 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2341 |
|
|
|
2342 |
def __ne__(self, other):
|
|
|
2343 |
return not (self == other)
|
|
|
2344 |
|
|
|
2345 |
class getActivePaymentGateways_result:
|
|
|
2346 |
"""
|
|
|
2347 |
Attributes:
|
|
|
2348 |
- success
|
|
|
2349 |
- pe
|
|
|
2350 |
"""
|
|
|
2351 |
|
|
|
2352 |
thrift_spec = (
|
|
|
2353 |
(0, TType.LIST, 'success', (TType.STRUCT,(PaymentGateway, PaymentGateway.thrift_spec)), None, ), # 0
|
|
|
2354 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2355 |
)
|
|
|
2356 |
|
|
|
2357 |
def __init__(self, success=None, pe=None,):
|
|
|
2358 |
self.success = success
|
|
|
2359 |
self.pe = pe
|
|
|
2360 |
|
|
|
2361 |
def read(self, iprot):
|
|
|
2362 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2363 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2364 |
return
|
|
|
2365 |
iprot.readStructBegin()
|
|
|
2366 |
while True:
|
|
|
2367 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2368 |
if ftype == TType.STOP:
|
|
|
2369 |
break
|
|
|
2370 |
if fid == 0:
|
|
|
2371 |
if ftype == TType.LIST:
|
|
|
2372 |
self.success = []
|
|
|
2373 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
2374 |
for _i46 in xrange(_size42):
|
|
|
2375 |
_elem47 = PaymentGateway()
|
|
|
2376 |
_elem47.read(iprot)
|
|
|
2377 |
self.success.append(_elem47)
|
|
|
2378 |
iprot.readListEnd()
|
|
|
2379 |
else:
|
|
|
2380 |
iprot.skip(ftype)
|
|
|
2381 |
elif fid == 1:
|
|
|
2382 |
if ftype == TType.STRUCT:
|
|
|
2383 |
self.pe = PaymentException()
|
|
|
2384 |
self.pe.read(iprot)
|
|
|
2385 |
else:
|
|
|
2386 |
iprot.skip(ftype)
|
|
|
2387 |
else:
|
|
|
2388 |
iprot.skip(ftype)
|
|
|
2389 |
iprot.readFieldEnd()
|
|
|
2390 |
iprot.readStructEnd()
|
|
|
2391 |
|
|
|
2392 |
def write(self, oprot):
|
|
|
2393 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2394 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2395 |
return
|
|
|
2396 |
oprot.writeStructBegin('getActivePaymentGateways_result')
|
|
|
2397 |
if self.success is not None:
|
|
|
2398 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2399 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2400 |
for iter48 in self.success:
|
|
|
2401 |
iter48.write(oprot)
|
|
|
2402 |
oprot.writeListEnd()
|
|
|
2403 |
oprot.writeFieldEnd()
|
|
|
2404 |
if self.pe is not None:
|
|
|
2405 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2406 |
self.pe.write(oprot)
|
|
|
2407 |
oprot.writeFieldEnd()
|
|
|
2408 |
oprot.writeFieldStop()
|
|
|
2409 |
oprot.writeStructEnd()
|
|
|
2410 |
|
|
|
2411 |
def validate(self):
|
|
|
2412 |
return
|
|
|
2413 |
|
|
|
2414 |
|
|
|
2415 |
def __repr__(self):
|
|
|
2416 |
L = ['%s=%r' % (key, value)
|
|
|
2417 |
for key, value in self.__dict__.iteritems()]
|
|
|
2418 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2419 |
|
|
|
2420 |
def __eq__(self, other):
|
|
|
2421 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2422 |
|
|
|
2423 |
def __ne__(self, other):
|
|
|
2424 |
return not (self == other)
|
|
|
2425 |
|
| 696 |
rajveer |
2426 |
class getPayment_args:
|
| 420 |
ashish |
2427 |
"""
|
|
|
2428 |
Attributes:
|
|
|
2429 |
- id
|
|
|
2430 |
"""
|
|
|
2431 |
|
|
|
2432 |
thrift_spec = (
|
|
|
2433 |
None, # 0
|
|
|
2434 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2435 |
)
|
|
|
2436 |
|
|
|
2437 |
def __init__(self, id=None,):
|
|
|
2438 |
self.id = id
|
|
|
2439 |
|
|
|
2440 |
def read(self, iprot):
|
|
|
2441 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2442 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2443 |
return
|
|
|
2444 |
iprot.readStructBegin()
|
|
|
2445 |
while True:
|
|
|
2446 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2447 |
if ftype == TType.STOP:
|
|
|
2448 |
break
|
|
|
2449 |
if fid == 1:
|
|
|
2450 |
if ftype == TType.I64:
|
|
|
2451 |
self.id = iprot.readI64();
|
|
|
2452 |
else:
|
|
|
2453 |
iprot.skip(ftype)
|
|
|
2454 |
else:
|
|
|
2455 |
iprot.skip(ftype)
|
|
|
2456 |
iprot.readFieldEnd()
|
|
|
2457 |
iprot.readStructEnd()
|
|
|
2458 |
|
|
|
2459 |
def write(self, oprot):
|
|
|
2460 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2461 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2462 |
return
|
| 696 |
rajveer |
2463 |
oprot.writeStructBegin('getPayment_args')
|
| 3431 |
rajveer |
2464 |
if self.id is not None:
|
| 420 |
ashish |
2465 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2466 |
oprot.writeI64(self.id)
|
|
|
2467 |
oprot.writeFieldEnd()
|
|
|
2468 |
oprot.writeFieldStop()
|
|
|
2469 |
oprot.writeStructEnd()
|
|
|
2470 |
|
| 3431 |
rajveer |
2471 |
def validate(self):
|
|
|
2472 |
return
|
|
|
2473 |
|
|
|
2474 |
|
| 420 |
ashish |
2475 |
def __repr__(self):
|
|
|
2476 |
L = ['%s=%r' % (key, value)
|
|
|
2477 |
for key, value in self.__dict__.iteritems()]
|
|
|
2478 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2479 |
|
|
|
2480 |
def __eq__(self, other):
|
|
|
2481 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2482 |
|
|
|
2483 |
def __ne__(self, other):
|
|
|
2484 |
return not (self == other)
|
|
|
2485 |
|
| 696 |
rajveer |
2486 |
class getPayment_result:
|
| 420 |
ashish |
2487 |
"""
|
|
|
2488 |
Attributes:
|
|
|
2489 |
- success
|
|
|
2490 |
- pe
|
|
|
2491 |
"""
|
|
|
2492 |
|
|
|
2493 |
thrift_spec = (
|
| 696 |
rajveer |
2494 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
| 420 |
ashish |
2495 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2496 |
)
|
|
|
2497 |
|
|
|
2498 |
def __init__(self, success=None, pe=None,):
|
|
|
2499 |
self.success = success
|
|
|
2500 |
self.pe = pe
|
|
|
2501 |
|
|
|
2502 |
def read(self, iprot):
|
|
|
2503 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2504 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2505 |
return
|
|
|
2506 |
iprot.readStructBegin()
|
|
|
2507 |
while True:
|
|
|
2508 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2509 |
if ftype == TType.STOP:
|
|
|
2510 |
break
|
|
|
2511 |
if fid == 0:
|
|
|
2512 |
if ftype == TType.STRUCT:
|
| 696 |
rajveer |
2513 |
self.success = Payment()
|
| 420 |
ashish |
2514 |
self.success.read(iprot)
|
|
|
2515 |
else:
|
|
|
2516 |
iprot.skip(ftype)
|
|
|
2517 |
elif fid == 1:
|
|
|
2518 |
if ftype == TType.STRUCT:
|
|
|
2519 |
self.pe = PaymentException()
|
|
|
2520 |
self.pe.read(iprot)
|
|
|
2521 |
else:
|
|
|
2522 |
iprot.skip(ftype)
|
|
|
2523 |
else:
|
|
|
2524 |
iprot.skip(ftype)
|
|
|
2525 |
iprot.readFieldEnd()
|
|
|
2526 |
iprot.readStructEnd()
|
|
|
2527 |
|
|
|
2528 |
def write(self, oprot):
|
|
|
2529 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2530 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2531 |
return
|
| 696 |
rajveer |
2532 |
oprot.writeStructBegin('getPayment_result')
|
| 3431 |
rajveer |
2533 |
if self.success is not None:
|
| 420 |
ashish |
2534 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2535 |
self.success.write(oprot)
|
|
|
2536 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2537 |
if self.pe is not None:
|
| 420 |
ashish |
2538 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2539 |
self.pe.write(oprot)
|
|
|
2540 |
oprot.writeFieldEnd()
|
|
|
2541 |
oprot.writeFieldStop()
|
|
|
2542 |
oprot.writeStructEnd()
|
|
|
2543 |
|
| 3431 |
rajveer |
2544 |
def validate(self):
|
|
|
2545 |
return
|
|
|
2546 |
|
|
|
2547 |
|
| 420 |
ashish |
2548 |
def __repr__(self):
|
|
|
2549 |
L = ['%s=%r' % (key, value)
|
|
|
2550 |
for key, value in self.__dict__.iteritems()]
|
|
|
2551 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2552 |
|
|
|
2553 |
def __eq__(self, other):
|
|
|
2554 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2555 |
|
|
|
2556 |
def __ne__(self, other):
|
|
|
2557 |
return not (self == other)
|
|
|
2558 |
|
| 696 |
rajveer |
2559 |
class getPaymentForTxnId_args:
|
| 420 |
ashish |
2560 |
"""
|
|
|
2561 |
Attributes:
|
| 696 |
rajveer |
2562 |
- txnId
|
| 420 |
ashish |
2563 |
"""
|
|
|
2564 |
|
|
|
2565 |
thrift_spec = (
|
|
|
2566 |
None, # 0
|
| 696 |
rajveer |
2567 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
| 420 |
ashish |
2568 |
)
|
|
|
2569 |
|
| 696 |
rajveer |
2570 |
def __init__(self, txnId=None,):
|
|
|
2571 |
self.txnId = txnId
|
| 420 |
ashish |
2572 |
|
|
|
2573 |
def read(self, iprot):
|
|
|
2574 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2575 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2576 |
return
|
|
|
2577 |
iprot.readStructBegin()
|
|
|
2578 |
while True:
|
|
|
2579 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2580 |
if ftype == TType.STOP:
|
|
|
2581 |
break
|
|
|
2582 |
if fid == 1:
|
|
|
2583 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2584 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
2585 |
else:
|
|
|
2586 |
iprot.skip(ftype)
|
|
|
2587 |
else:
|
|
|
2588 |
iprot.skip(ftype)
|
|
|
2589 |
iprot.readFieldEnd()
|
|
|
2590 |
iprot.readStructEnd()
|
|
|
2591 |
|
|
|
2592 |
def write(self, oprot):
|
|
|
2593 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2594 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2595 |
return
|
| 696 |
rajveer |
2596 |
oprot.writeStructBegin('getPaymentForTxnId_args')
|
| 3431 |
rajveer |
2597 |
if self.txnId is not None:
|
| 696 |
rajveer |
2598 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
2599 |
oprot.writeI64(self.txnId)
|
| 420 |
ashish |
2600 |
oprot.writeFieldEnd()
|
|
|
2601 |
oprot.writeFieldStop()
|
|
|
2602 |
oprot.writeStructEnd()
|
|
|
2603 |
|
| 3431 |
rajveer |
2604 |
def validate(self):
|
|
|
2605 |
return
|
|
|
2606 |
|
|
|
2607 |
|
| 420 |
ashish |
2608 |
def __repr__(self):
|
|
|
2609 |
L = ['%s=%r' % (key, value)
|
|
|
2610 |
for key, value in self.__dict__.iteritems()]
|
|
|
2611 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2612 |
|
|
|
2613 |
def __eq__(self, other):
|
|
|
2614 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2615 |
|
|
|
2616 |
def __ne__(self, other):
|
|
|
2617 |
return not (self == other)
|
|
|
2618 |
|
| 696 |
rajveer |
2619 |
class getPaymentForTxnId_result:
|
| 420 |
ashish |
2620 |
"""
|
|
|
2621 |
Attributes:
|
|
|
2622 |
- success
|
|
|
2623 |
- pe
|
|
|
2624 |
"""
|
|
|
2625 |
|
|
|
2626 |
thrift_spec = (
|
| 696 |
rajveer |
2627 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
| 420 |
ashish |
2628 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2629 |
)
|
|
|
2630 |
|
|
|
2631 |
def __init__(self, success=None, pe=None,):
|
|
|
2632 |
self.success = success
|
|
|
2633 |
self.pe = pe
|
|
|
2634 |
|
|
|
2635 |
def read(self, iprot):
|
|
|
2636 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2637 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2638 |
return
|
|
|
2639 |
iprot.readStructBegin()
|
|
|
2640 |
while True:
|
|
|
2641 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2642 |
if ftype == TType.STOP:
|
|
|
2643 |
break
|
|
|
2644 |
if fid == 0:
|
| 696 |
rajveer |
2645 |
if ftype == TType.LIST:
|
|
|
2646 |
self.success = []
|
| 4600 |
varun.gupt |
2647 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
2648 |
for _i53 in xrange(_size49):
|
|
|
2649 |
_elem54 = Payment()
|
|
|
2650 |
_elem54.read(iprot)
|
|
|
2651 |
self.success.append(_elem54)
|
| 696 |
rajveer |
2652 |
iprot.readListEnd()
|
| 420 |
ashish |
2653 |
else:
|
|
|
2654 |
iprot.skip(ftype)
|
|
|
2655 |
elif fid == 1:
|
|
|
2656 |
if ftype == TType.STRUCT:
|
|
|
2657 |
self.pe = PaymentException()
|
|
|
2658 |
self.pe.read(iprot)
|
|
|
2659 |
else:
|
|
|
2660 |
iprot.skip(ftype)
|
|
|
2661 |
else:
|
|
|
2662 |
iprot.skip(ftype)
|
|
|
2663 |
iprot.readFieldEnd()
|
|
|
2664 |
iprot.readStructEnd()
|
|
|
2665 |
|
|
|
2666 |
def write(self, oprot):
|
|
|
2667 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2668 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2669 |
return
|
| 696 |
rajveer |
2670 |
oprot.writeStructBegin('getPaymentForTxnId_result')
|
| 3431 |
rajveer |
2671 |
if self.success is not None:
|
| 696 |
rajveer |
2672 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2673 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 4600 |
varun.gupt |
2674 |
for iter55 in self.success:
|
|
|
2675 |
iter55.write(oprot)
|
| 696 |
rajveer |
2676 |
oprot.writeListEnd()
|
| 420 |
ashish |
2677 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2678 |
if self.pe is not None:
|
| 420 |
ashish |
2679 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2680 |
self.pe.write(oprot)
|
|
|
2681 |
oprot.writeFieldEnd()
|
|
|
2682 |
oprot.writeFieldStop()
|
|
|
2683 |
oprot.writeStructEnd()
|
|
|
2684 |
|
| 3431 |
rajveer |
2685 |
def validate(self):
|
|
|
2686 |
return
|
|
|
2687 |
|
|
|
2688 |
|
| 420 |
ashish |
2689 |
def __repr__(self):
|
|
|
2690 |
L = ['%s=%r' % (key, value)
|
|
|
2691 |
for key, value in self.__dict__.iteritems()]
|
|
|
2692 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2693 |
|
|
|
2694 |
def __eq__(self, other):
|
|
|
2695 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2696 |
|
|
|
2697 |
def __ne__(self, other):
|
|
|
2698 |
return not (self == other)
|
|
|
2699 |
|
| 7049 |
anupam.sin |
2700 |
class getPaymentForRechargeTxnId_args:
|
|
|
2701 |
"""
|
|
|
2702 |
Attributes:
|
|
|
2703 |
- txnId
|
|
|
2704 |
"""
|
|
|
2705 |
|
|
|
2706 |
thrift_spec = (
|
|
|
2707 |
None, # 0
|
|
|
2708 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
|
|
2709 |
)
|
|
|
2710 |
|
|
|
2711 |
def __init__(self, txnId=None,):
|
|
|
2712 |
self.txnId = txnId
|
|
|
2713 |
|
|
|
2714 |
def read(self, iprot):
|
|
|
2715 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2716 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2717 |
return
|
|
|
2718 |
iprot.readStructBegin()
|
|
|
2719 |
while True:
|
|
|
2720 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2721 |
if ftype == TType.STOP:
|
|
|
2722 |
break
|
|
|
2723 |
if fid == 1:
|
|
|
2724 |
if ftype == TType.I64:
|
|
|
2725 |
self.txnId = iprot.readI64();
|
|
|
2726 |
else:
|
|
|
2727 |
iprot.skip(ftype)
|
|
|
2728 |
else:
|
|
|
2729 |
iprot.skip(ftype)
|
|
|
2730 |
iprot.readFieldEnd()
|
|
|
2731 |
iprot.readStructEnd()
|
|
|
2732 |
|
|
|
2733 |
def write(self, oprot):
|
|
|
2734 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2735 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2736 |
return
|
|
|
2737 |
oprot.writeStructBegin('getPaymentForRechargeTxnId_args')
|
|
|
2738 |
if self.txnId is not None:
|
|
|
2739 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
2740 |
oprot.writeI64(self.txnId)
|
|
|
2741 |
oprot.writeFieldEnd()
|
|
|
2742 |
oprot.writeFieldStop()
|
|
|
2743 |
oprot.writeStructEnd()
|
|
|
2744 |
|
|
|
2745 |
def validate(self):
|
|
|
2746 |
return
|
|
|
2747 |
|
|
|
2748 |
|
|
|
2749 |
def __repr__(self):
|
|
|
2750 |
L = ['%s=%r' % (key, value)
|
|
|
2751 |
for key, value in self.__dict__.iteritems()]
|
|
|
2752 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2753 |
|
|
|
2754 |
def __eq__(self, other):
|
|
|
2755 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2756 |
|
|
|
2757 |
def __ne__(self, other):
|
|
|
2758 |
return not (self == other)
|
|
|
2759 |
|
|
|
2760 |
class getPaymentForRechargeTxnId_result:
|
|
|
2761 |
"""
|
|
|
2762 |
Attributes:
|
|
|
2763 |
- success
|
|
|
2764 |
- pe
|
|
|
2765 |
"""
|
|
|
2766 |
|
|
|
2767 |
thrift_spec = (
|
|
|
2768 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
2769 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2770 |
)
|
|
|
2771 |
|
|
|
2772 |
def __init__(self, success=None, pe=None,):
|
|
|
2773 |
self.success = success
|
|
|
2774 |
self.pe = pe
|
|
|
2775 |
|
|
|
2776 |
def read(self, iprot):
|
|
|
2777 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2778 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2779 |
return
|
|
|
2780 |
iprot.readStructBegin()
|
|
|
2781 |
while True:
|
|
|
2782 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2783 |
if ftype == TType.STOP:
|
|
|
2784 |
break
|
|
|
2785 |
if fid == 0:
|
|
|
2786 |
if ftype == TType.LIST:
|
|
|
2787 |
self.success = []
|
|
|
2788 |
(_etype59, _size56) = iprot.readListBegin()
|
|
|
2789 |
for _i60 in xrange(_size56):
|
|
|
2790 |
_elem61 = Payment()
|
|
|
2791 |
_elem61.read(iprot)
|
|
|
2792 |
self.success.append(_elem61)
|
|
|
2793 |
iprot.readListEnd()
|
|
|
2794 |
else:
|
|
|
2795 |
iprot.skip(ftype)
|
|
|
2796 |
elif fid == 1:
|
|
|
2797 |
if ftype == TType.STRUCT:
|
|
|
2798 |
self.pe = PaymentException()
|
|
|
2799 |
self.pe.read(iprot)
|
|
|
2800 |
else:
|
|
|
2801 |
iprot.skip(ftype)
|
|
|
2802 |
else:
|
|
|
2803 |
iprot.skip(ftype)
|
|
|
2804 |
iprot.readFieldEnd()
|
|
|
2805 |
iprot.readStructEnd()
|
|
|
2806 |
|
|
|
2807 |
def write(self, oprot):
|
|
|
2808 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2809 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2810 |
return
|
|
|
2811 |
oprot.writeStructBegin('getPaymentForRechargeTxnId_result')
|
|
|
2812 |
if self.success is not None:
|
|
|
2813 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2814 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2815 |
for iter62 in self.success:
|
|
|
2816 |
iter62.write(oprot)
|
|
|
2817 |
oprot.writeListEnd()
|
|
|
2818 |
oprot.writeFieldEnd()
|
|
|
2819 |
if self.pe is not None:
|
|
|
2820 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2821 |
self.pe.write(oprot)
|
|
|
2822 |
oprot.writeFieldEnd()
|
|
|
2823 |
oprot.writeFieldStop()
|
|
|
2824 |
oprot.writeStructEnd()
|
|
|
2825 |
|
|
|
2826 |
def validate(self):
|
|
|
2827 |
return
|
|
|
2828 |
|
|
|
2829 |
|
|
|
2830 |
def __repr__(self):
|
|
|
2831 |
L = ['%s=%r' % (key, value)
|
|
|
2832 |
for key, value in self.__dict__.iteritems()]
|
|
|
2833 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2834 |
|
|
|
2835 |
def __eq__(self, other):
|
|
|
2836 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2837 |
|
|
|
2838 |
def __ne__(self, other):
|
|
|
2839 |
return not (self == other)
|
|
|
2840 |
|
| 4600 |
varun.gupt |
2841 |
class getSuccessfulPaymentForTxnId_args:
|
|
|
2842 |
"""
|
|
|
2843 |
Attributes:
|
|
|
2844 |
- txnId
|
|
|
2845 |
"""
|
|
|
2846 |
|
|
|
2847 |
thrift_spec = (
|
|
|
2848 |
None, # 0
|
|
|
2849 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
|
|
2850 |
)
|
|
|
2851 |
|
|
|
2852 |
def __init__(self, txnId=None,):
|
|
|
2853 |
self.txnId = txnId
|
|
|
2854 |
|
|
|
2855 |
def read(self, iprot):
|
|
|
2856 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2857 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2858 |
return
|
|
|
2859 |
iprot.readStructBegin()
|
|
|
2860 |
while True:
|
|
|
2861 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2862 |
if ftype == TType.STOP:
|
|
|
2863 |
break
|
|
|
2864 |
if fid == 1:
|
|
|
2865 |
if ftype == TType.I64:
|
|
|
2866 |
self.txnId = iprot.readI64();
|
|
|
2867 |
else:
|
|
|
2868 |
iprot.skip(ftype)
|
|
|
2869 |
else:
|
|
|
2870 |
iprot.skip(ftype)
|
|
|
2871 |
iprot.readFieldEnd()
|
|
|
2872 |
iprot.readStructEnd()
|
|
|
2873 |
|
|
|
2874 |
def write(self, oprot):
|
|
|
2875 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2876 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2877 |
return
|
|
|
2878 |
oprot.writeStructBegin('getSuccessfulPaymentForTxnId_args')
|
|
|
2879 |
if self.txnId is not None:
|
|
|
2880 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
2881 |
oprot.writeI64(self.txnId)
|
|
|
2882 |
oprot.writeFieldEnd()
|
|
|
2883 |
oprot.writeFieldStop()
|
|
|
2884 |
oprot.writeStructEnd()
|
|
|
2885 |
|
|
|
2886 |
def validate(self):
|
|
|
2887 |
return
|
|
|
2888 |
|
|
|
2889 |
|
|
|
2890 |
def __repr__(self):
|
|
|
2891 |
L = ['%s=%r' % (key, value)
|
|
|
2892 |
for key, value in self.__dict__.iteritems()]
|
|
|
2893 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2894 |
|
|
|
2895 |
def __eq__(self, other):
|
|
|
2896 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2897 |
|
|
|
2898 |
def __ne__(self, other):
|
|
|
2899 |
return not (self == other)
|
|
|
2900 |
|
|
|
2901 |
class getSuccessfulPaymentForTxnId_result:
|
|
|
2902 |
"""
|
|
|
2903 |
Attributes:
|
|
|
2904 |
- success
|
|
|
2905 |
- pe
|
|
|
2906 |
"""
|
|
|
2907 |
|
|
|
2908 |
thrift_spec = (
|
|
|
2909 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
|
|
2910 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2911 |
)
|
|
|
2912 |
|
|
|
2913 |
def __init__(self, success=None, pe=None,):
|
|
|
2914 |
self.success = success
|
|
|
2915 |
self.pe = pe
|
|
|
2916 |
|
|
|
2917 |
def read(self, iprot):
|
|
|
2918 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2919 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2920 |
return
|
|
|
2921 |
iprot.readStructBegin()
|
|
|
2922 |
while True:
|
|
|
2923 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2924 |
if ftype == TType.STOP:
|
|
|
2925 |
break
|
|
|
2926 |
if fid == 0:
|
|
|
2927 |
if ftype == TType.STRUCT:
|
|
|
2928 |
self.success = Payment()
|
|
|
2929 |
self.success.read(iprot)
|
|
|
2930 |
else:
|
|
|
2931 |
iprot.skip(ftype)
|
|
|
2932 |
elif fid == 1:
|
|
|
2933 |
if ftype == TType.STRUCT:
|
|
|
2934 |
self.pe = PaymentException()
|
|
|
2935 |
self.pe.read(iprot)
|
|
|
2936 |
else:
|
|
|
2937 |
iprot.skip(ftype)
|
|
|
2938 |
else:
|
|
|
2939 |
iprot.skip(ftype)
|
|
|
2940 |
iprot.readFieldEnd()
|
|
|
2941 |
iprot.readStructEnd()
|
|
|
2942 |
|
|
|
2943 |
def write(self, oprot):
|
|
|
2944 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2945 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2946 |
return
|
|
|
2947 |
oprot.writeStructBegin('getSuccessfulPaymentForTxnId_result')
|
|
|
2948 |
if self.success is not None:
|
|
|
2949 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2950 |
self.success.write(oprot)
|
|
|
2951 |
oprot.writeFieldEnd()
|
|
|
2952 |
if self.pe is not None:
|
|
|
2953 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2954 |
self.pe.write(oprot)
|
|
|
2955 |
oprot.writeFieldEnd()
|
|
|
2956 |
oprot.writeFieldStop()
|
|
|
2957 |
oprot.writeStructEnd()
|
|
|
2958 |
|
|
|
2959 |
def validate(self):
|
|
|
2960 |
return
|
|
|
2961 |
|
|
|
2962 |
|
|
|
2963 |
def __repr__(self):
|
|
|
2964 |
L = ['%s=%r' % (key, value)
|
|
|
2965 |
for key, value in self.__dict__.iteritems()]
|
|
|
2966 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2967 |
|
|
|
2968 |
def __eq__(self, other):
|
|
|
2969 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2970 |
|
|
|
2971 |
def __ne__(self, other):
|
|
|
2972 |
return not (self == other)
|
|
|
2973 |
|
| 696 |
rajveer |
2974 |
class updatePaymentDetails_args:
|
| 420 |
ashish |
2975 |
"""
|
|
|
2976 |
Attributes:
|
|
|
2977 |
- id
|
| 696 |
rajveer |
2978 |
- gatewayPaymentId
|
|
|
2979 |
- sessionId
|
|
|
2980 |
- gatewayTxnStatus
|
|
|
2981 |
- description
|
|
|
2982 |
- gatewayTxnId
|
|
|
2983 |
- authCode
|
|
|
2984 |
- referenceCode
|
|
|
2985 |
- errorCode
|
|
|
2986 |
- status
|
| 1120 |
rajveer |
2987 |
- gatewayTxnDate
|
| 696 |
rajveer |
2988 |
- attributes
|
| 420 |
ashish |
2989 |
"""
|
|
|
2990 |
|
|
|
2991 |
thrift_spec = (
|
|
|
2992 |
None, # 0
|
|
|
2993 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 696 |
rajveer |
2994 |
(2, TType.STRING, 'gatewayPaymentId', None, None, ), # 2
|
|
|
2995 |
(3, TType.STRING, 'sessionId', None, None, ), # 3
|
|
|
2996 |
(4, TType.STRING, 'gatewayTxnStatus', None, None, ), # 4
|
|
|
2997 |
(5, TType.STRING, 'description', None, None, ), # 5
|
|
|
2998 |
(6, TType.STRING, 'gatewayTxnId', None, None, ), # 6
|
|
|
2999 |
(7, TType.STRING, 'authCode', None, None, ), # 7
|
|
|
3000 |
(8, TType.STRING, 'referenceCode', None, None, ), # 8
|
|
|
3001 |
(9, TType.STRING, 'errorCode', None, None, ), # 9
|
|
|
3002 |
(10, TType.I32, 'status', None, None, ), # 10
|
| 1120 |
rajveer |
3003 |
(11, TType.STRING, 'gatewayTxnDate', None, None, ), # 11
|
|
|
3004 |
(12, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 12
|
| 420 |
ashish |
3005 |
)
|
|
|
3006 |
|
| 1120 |
rajveer |
3007 |
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 |
3008 |
self.id = id
|
| 696 |
rajveer |
3009 |
self.gatewayPaymentId = gatewayPaymentId
|
|
|
3010 |
self.sessionId = sessionId
|
|
|
3011 |
self.gatewayTxnStatus = gatewayTxnStatus
|
|
|
3012 |
self.description = description
|
|
|
3013 |
self.gatewayTxnId = gatewayTxnId
|
|
|
3014 |
self.authCode = authCode
|
|
|
3015 |
self.referenceCode = referenceCode
|
|
|
3016 |
self.errorCode = errorCode
|
|
|
3017 |
self.status = status
|
| 1120 |
rajveer |
3018 |
self.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
3019 |
self.attributes = attributes
|
| 420 |
ashish |
3020 |
|
|
|
3021 |
def read(self, iprot):
|
|
|
3022 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3023 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3024 |
return
|
|
|
3025 |
iprot.readStructBegin()
|
|
|
3026 |
while True:
|
|
|
3027 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3028 |
if ftype == TType.STOP:
|
|
|
3029 |
break
|
|
|
3030 |
if fid == 1:
|
|
|
3031 |
if ftype == TType.I64:
|
|
|
3032 |
self.id = iprot.readI64();
|
|
|
3033 |
else:
|
|
|
3034 |
iprot.skip(ftype)
|
|
|
3035 |
elif fid == 2:
|
|
|
3036 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3037 |
self.gatewayPaymentId = iprot.readString();
|
| 420 |
ashish |
3038 |
else:
|
|
|
3039 |
iprot.skip(ftype)
|
|
|
3040 |
elif fid == 3:
|
|
|
3041 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3042 |
self.sessionId = iprot.readString();
|
| 420 |
ashish |
3043 |
else:
|
|
|
3044 |
iprot.skip(ftype)
|
|
|
3045 |
elif fid == 4:
|
|
|
3046 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3047 |
self.gatewayTxnStatus = iprot.readString();
|
| 420 |
ashish |
3048 |
else:
|
|
|
3049 |
iprot.skip(ftype)
|
|
|
3050 |
elif fid == 5:
|
|
|
3051 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3052 |
self.description = iprot.readString();
|
| 420 |
ashish |
3053 |
else:
|
|
|
3054 |
iprot.skip(ftype)
|
|
|
3055 |
elif fid == 6:
|
|
|
3056 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3057 |
self.gatewayTxnId = iprot.readString();
|
| 420 |
ashish |
3058 |
else:
|
|
|
3059 |
iprot.skip(ftype)
|
|
|
3060 |
elif fid == 7:
|
|
|
3061 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3062 |
self.authCode = iprot.readString();
|
| 420 |
ashish |
3063 |
else:
|
|
|
3064 |
iprot.skip(ftype)
|
|
|
3065 |
elif fid == 8:
|
|
|
3066 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3067 |
self.referenceCode = iprot.readString();
|
| 420 |
ashish |
3068 |
else:
|
|
|
3069 |
iprot.skip(ftype)
|
| 696 |
rajveer |
3070 |
elif fid == 9:
|
|
|
3071 |
if ftype == TType.STRING:
|
|
|
3072 |
self.errorCode = iprot.readString();
|
|
|
3073 |
else:
|
|
|
3074 |
iprot.skip(ftype)
|
|
|
3075 |
elif fid == 10:
|
|
|
3076 |
if ftype == TType.I32:
|
|
|
3077 |
self.status = iprot.readI32();
|
|
|
3078 |
else:
|
|
|
3079 |
iprot.skip(ftype)
|
|
|
3080 |
elif fid == 11:
|
| 1120 |
rajveer |
3081 |
if ftype == TType.STRING:
|
|
|
3082 |
self.gatewayTxnDate = iprot.readString();
|
|
|
3083 |
else:
|
|
|
3084 |
iprot.skip(ftype)
|
|
|
3085 |
elif fid == 12:
|
| 696 |
rajveer |
3086 |
if ftype == TType.LIST:
|
|
|
3087 |
self.attributes = []
|
| 7049 |
anupam.sin |
3088 |
(_etype66, _size63) = iprot.readListBegin()
|
|
|
3089 |
for _i67 in xrange(_size63):
|
|
|
3090 |
_elem68 = Attribute()
|
|
|
3091 |
_elem68.read(iprot)
|
|
|
3092 |
self.attributes.append(_elem68)
|
| 696 |
rajveer |
3093 |
iprot.readListEnd()
|
|
|
3094 |
else:
|
|
|
3095 |
iprot.skip(ftype)
|
| 420 |
ashish |
3096 |
else:
|
|
|
3097 |
iprot.skip(ftype)
|
|
|
3098 |
iprot.readFieldEnd()
|
|
|
3099 |
iprot.readStructEnd()
|
|
|
3100 |
|
|
|
3101 |
def write(self, oprot):
|
|
|
3102 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3103 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3104 |
return
|
| 696 |
rajveer |
3105 |
oprot.writeStructBegin('updatePaymentDetails_args')
|
| 3431 |
rajveer |
3106 |
if self.id is not None:
|
| 420 |
ashish |
3107 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3108 |
oprot.writeI64(self.id)
|
|
|
3109 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3110 |
if self.gatewayPaymentId is not None:
|
| 696 |
rajveer |
3111 |
oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
|
|
|
3112 |
oprot.writeString(self.gatewayPaymentId)
|
| 420 |
ashish |
3113 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3114 |
if self.sessionId is not None:
|
| 696 |
rajveer |
3115 |
oprot.writeFieldBegin('sessionId', TType.STRING, 3)
|
|
|
3116 |
oprot.writeString(self.sessionId)
|
| 420 |
ashish |
3117 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3118 |
if self.gatewayTxnStatus is not None:
|
| 696 |
rajveer |
3119 |
oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
|
|
|
3120 |
oprot.writeString(self.gatewayTxnStatus)
|
| 420 |
ashish |
3121 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3122 |
if self.description is not None:
|
| 696 |
rajveer |
3123 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
3124 |
oprot.writeString(self.description)
|
| 420 |
ashish |
3125 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3126 |
if self.gatewayTxnId is not None:
|
| 696 |
rajveer |
3127 |
oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
|
|
|
3128 |
oprot.writeString(self.gatewayTxnId)
|
| 420 |
ashish |
3129 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3130 |
if self.authCode is not None:
|
| 696 |
rajveer |
3131 |
oprot.writeFieldBegin('authCode', TType.STRING, 7)
|
|
|
3132 |
oprot.writeString(self.authCode)
|
| 420 |
ashish |
3133 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3134 |
if self.referenceCode is not None:
|
| 696 |
rajveer |
3135 |
oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
|
|
|
3136 |
oprot.writeString(self.referenceCode)
|
| 420 |
ashish |
3137 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3138 |
if self.errorCode is not None:
|
| 696 |
rajveer |
3139 |
oprot.writeFieldBegin('errorCode', TType.STRING, 9)
|
|
|
3140 |
oprot.writeString(self.errorCode)
|
|
|
3141 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3142 |
if self.status is not None:
|
| 696 |
rajveer |
3143 |
oprot.writeFieldBegin('status', TType.I32, 10)
|
|
|
3144 |
oprot.writeI32(self.status)
|
|
|
3145 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3146 |
if self.gatewayTxnDate is not None:
|
| 1120 |
rajveer |
3147 |
oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
|
|
|
3148 |
oprot.writeString(self.gatewayTxnDate)
|
|
|
3149 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3150 |
if self.attributes is not None:
|
| 1120 |
rajveer |
3151 |
oprot.writeFieldBegin('attributes', TType.LIST, 12)
|
| 696 |
rajveer |
3152 |
oprot.writeListBegin(TType.STRUCT, len(self.attributes))
|
| 7049 |
anupam.sin |
3153 |
for iter69 in self.attributes:
|
|
|
3154 |
iter69.write(oprot)
|
| 696 |
rajveer |
3155 |
oprot.writeListEnd()
|
|
|
3156 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
3157 |
oprot.writeFieldStop()
|
|
|
3158 |
oprot.writeStructEnd()
|
|
|
3159 |
|
| 3431 |
rajveer |
3160 |
def validate(self):
|
|
|
3161 |
return
|
|
|
3162 |
|
|
|
3163 |
|
| 420 |
ashish |
3164 |
def __repr__(self):
|
|
|
3165 |
L = ['%s=%r' % (key, value)
|
|
|
3166 |
for key, value in self.__dict__.iteritems()]
|
|
|
3167 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3168 |
|
|
|
3169 |
def __eq__(self, other):
|
|
|
3170 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3171 |
|
|
|
3172 |
def __ne__(self, other):
|
|
|
3173 |
return not (self == other)
|
|
|
3174 |
|
| 696 |
rajveer |
3175 |
class updatePaymentDetails_result:
|
| 420 |
ashish |
3176 |
"""
|
|
|
3177 |
Attributes:
|
| 696 |
rajveer |
3178 |
- success
|
| 420 |
ashish |
3179 |
- pe
|
|
|
3180 |
"""
|
|
|
3181 |
|
|
|
3182 |
thrift_spec = (
|
| 696 |
rajveer |
3183 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 420 |
ashish |
3184 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3185 |
)
|
|
|
3186 |
|
| 696 |
rajveer |
3187 |
def __init__(self, success=None, pe=None,):
|
|
|
3188 |
self.success = success
|
| 420 |
ashish |
3189 |
self.pe = pe
|
|
|
3190 |
|
|
|
3191 |
def read(self, iprot):
|
|
|
3192 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3193 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3194 |
return
|
|
|
3195 |
iprot.readStructBegin()
|
|
|
3196 |
while True:
|
|
|
3197 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3198 |
if ftype == TType.STOP:
|
|
|
3199 |
break
|
| 696 |
rajveer |
3200 |
if fid == 0:
|
|
|
3201 |
if ftype == TType.BOOL:
|
|
|
3202 |
self.success = iprot.readBool();
|
|
|
3203 |
else:
|
|
|
3204 |
iprot.skip(ftype)
|
|
|
3205 |
elif fid == 1:
|
| 420 |
ashish |
3206 |
if ftype == TType.STRUCT:
|
|
|
3207 |
self.pe = PaymentException()
|
|
|
3208 |
self.pe.read(iprot)
|
|
|
3209 |
else:
|
|
|
3210 |
iprot.skip(ftype)
|
|
|
3211 |
else:
|
|
|
3212 |
iprot.skip(ftype)
|
|
|
3213 |
iprot.readFieldEnd()
|
|
|
3214 |
iprot.readStructEnd()
|
|
|
3215 |
|
|
|
3216 |
def write(self, oprot):
|
|
|
3217 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3218 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3219 |
return
|
| 696 |
rajveer |
3220 |
oprot.writeStructBegin('updatePaymentDetails_result')
|
| 3431 |
rajveer |
3221 |
if self.success is not None:
|
| 696 |
rajveer |
3222 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3223 |
oprot.writeBool(self.success)
|
|
|
3224 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3225 |
if self.pe is not None:
|
| 420 |
ashish |
3226 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3227 |
self.pe.write(oprot)
|
|
|
3228 |
oprot.writeFieldEnd()
|
|
|
3229 |
oprot.writeFieldStop()
|
|
|
3230 |
oprot.writeStructEnd()
|
|
|
3231 |
|
| 3431 |
rajveer |
3232 |
def validate(self):
|
|
|
3233 |
return
|
|
|
3234 |
|
|
|
3235 |
|
| 420 |
ashish |
3236 |
def __repr__(self):
|
|
|
3237 |
L = ['%s=%r' % (key, value)
|
|
|
3238 |
for key, value in self.__dict__.iteritems()]
|
|
|
3239 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3240 |
|
|
|
3241 |
def __eq__(self, other):
|
|
|
3242 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3243 |
|
|
|
3244 |
def __ne__(self, other):
|
|
|
3245 |
return not (self == other)
|
|
|
3246 |
|
| 1731 |
ankur.sing |
3247 |
class getSuccessfulPaymentsAmountRange_args:
|
| 420 |
ashish |
3248 |
|
| 1627 |
ankur.sing |
3249 |
thrift_spec = (
|
|
|
3250 |
)
|
|
|
3251 |
|
|
|
3252 |
def read(self, iprot):
|
|
|
3253 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3254 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3255 |
return
|
|
|
3256 |
iprot.readStructBegin()
|
|
|
3257 |
while True:
|
|
|
3258 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3259 |
if ftype == TType.STOP:
|
|
|
3260 |
break
|
|
|
3261 |
else:
|
|
|
3262 |
iprot.skip(ftype)
|
|
|
3263 |
iprot.readFieldEnd()
|
|
|
3264 |
iprot.readStructEnd()
|
|
|
3265 |
|
|
|
3266 |
def write(self, oprot):
|
|
|
3267 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3268 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3269 |
return
|
| 1731 |
ankur.sing |
3270 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_args')
|
| 1627 |
ankur.sing |
3271 |
oprot.writeFieldStop()
|
|
|
3272 |
oprot.writeStructEnd()
|
|
|
3273 |
|
| 3431 |
rajveer |
3274 |
def validate(self):
|
|
|
3275 |
return
|
|
|
3276 |
|
|
|
3277 |
|
| 1627 |
ankur.sing |
3278 |
def __repr__(self):
|
|
|
3279 |
L = ['%s=%r' % (key, value)
|
|
|
3280 |
for key, value in self.__dict__.iteritems()]
|
|
|
3281 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3282 |
|
|
|
3283 |
def __eq__(self, other):
|
|
|
3284 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3285 |
|
|
|
3286 |
def __ne__(self, other):
|
|
|
3287 |
return not (self == other)
|
|
|
3288 |
|
| 1731 |
ankur.sing |
3289 |
class getSuccessfulPaymentsAmountRange_result:
|
| 1627 |
ankur.sing |
3290 |
"""
|
|
|
3291 |
Attributes:
|
|
|
3292 |
- success
|
|
|
3293 |
"""
|
|
|
3294 |
|
|
|
3295 |
thrift_spec = (
|
| 1731 |
ankur.sing |
3296 |
(0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
|
| 1627 |
ankur.sing |
3297 |
)
|
|
|
3298 |
|
|
|
3299 |
def __init__(self, success=None,):
|
|
|
3300 |
self.success = success
|
|
|
3301 |
|
|
|
3302 |
def read(self, iprot):
|
|
|
3303 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3304 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3305 |
return
|
|
|
3306 |
iprot.readStructBegin()
|
|
|
3307 |
while True:
|
|
|
3308 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3309 |
if ftype == TType.STOP:
|
|
|
3310 |
break
|
|
|
3311 |
if fid == 0:
|
| 1731 |
ankur.sing |
3312 |
if ftype == TType.LIST:
|
|
|
3313 |
self.success = []
|
| 7049 |
anupam.sin |
3314 |
(_etype73, _size70) = iprot.readListBegin()
|
|
|
3315 |
for _i74 in xrange(_size70):
|
|
|
3316 |
_elem75 = iprot.readDouble();
|
|
|
3317 |
self.success.append(_elem75)
|
| 1731 |
ankur.sing |
3318 |
iprot.readListEnd()
|
| 1627 |
ankur.sing |
3319 |
else:
|
|
|
3320 |
iprot.skip(ftype)
|
|
|
3321 |
else:
|
|
|
3322 |
iprot.skip(ftype)
|
|
|
3323 |
iprot.readFieldEnd()
|
|
|
3324 |
iprot.readStructEnd()
|
|
|
3325 |
|
|
|
3326 |
def write(self, oprot):
|
|
|
3327 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3328 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3329 |
return
|
| 1731 |
ankur.sing |
3330 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
|
| 3431 |
rajveer |
3331 |
if self.success is not None:
|
| 1731 |
ankur.sing |
3332 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3333 |
oprot.writeListBegin(TType.DOUBLE, len(self.success))
|
| 7049 |
anupam.sin |
3334 |
for iter76 in self.success:
|
|
|
3335 |
oprot.writeDouble(iter76)
|
| 1731 |
ankur.sing |
3336 |
oprot.writeListEnd()
|
| 1627 |
ankur.sing |
3337 |
oprot.writeFieldEnd()
|
|
|
3338 |
oprot.writeFieldStop()
|
|
|
3339 |
oprot.writeStructEnd()
|
|
|
3340 |
|
| 3431 |
rajveer |
3341 |
def validate(self):
|
|
|
3342 |
return
|
|
|
3343 |
|
|
|
3344 |
|
| 1627 |
ankur.sing |
3345 |
def __repr__(self):
|
|
|
3346 |
L = ['%s=%r' % (key, value)
|
|
|
3347 |
for key, value in self.__dict__.iteritems()]
|
|
|
3348 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3349 |
|
|
|
3350 |
def __eq__(self, other):
|
|
|
3351 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3352 |
|
|
|
3353 |
def __ne__(self, other):
|
|
|
3354 |
return not (self == other)
|
|
|
3355 |
|
| 3010 |
chandransh |
3356 |
class initializeHdfcPayment_args:
|
| 2708 |
chandransh |
3357 |
"""
|
|
|
3358 |
Attributes:
|
|
|
3359 |
- merchantPaymentId
|
|
|
3360 |
"""
|
|
|
3361 |
|
|
|
3362 |
thrift_spec = (
|
|
|
3363 |
None, # 0
|
|
|
3364 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
3365 |
)
|
|
|
3366 |
|
|
|
3367 |
def __init__(self, merchantPaymentId=None,):
|
|
|
3368 |
self.merchantPaymentId = merchantPaymentId
|
|
|
3369 |
|
|
|
3370 |
def read(self, iprot):
|
|
|
3371 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3372 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3373 |
return
|
|
|
3374 |
iprot.readStructBegin()
|
|
|
3375 |
while True:
|
|
|
3376 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3377 |
if ftype == TType.STOP:
|
|
|
3378 |
break
|
|
|
3379 |
if fid == 1:
|
|
|
3380 |
if ftype == TType.I64:
|
|
|
3381 |
self.merchantPaymentId = iprot.readI64();
|
|
|
3382 |
else:
|
|
|
3383 |
iprot.skip(ftype)
|
|
|
3384 |
else:
|
|
|
3385 |
iprot.skip(ftype)
|
|
|
3386 |
iprot.readFieldEnd()
|
|
|
3387 |
iprot.readStructEnd()
|
|
|
3388 |
|
|
|
3389 |
def write(self, oprot):
|
|
|
3390 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3391 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3392 |
return
|
| 3010 |
chandransh |
3393 |
oprot.writeStructBegin('initializeHdfcPayment_args')
|
| 3431 |
rajveer |
3394 |
if self.merchantPaymentId is not None:
|
| 2708 |
chandransh |
3395 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
3396 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
3397 |
oprot.writeFieldEnd()
|
|
|
3398 |
oprot.writeFieldStop()
|
|
|
3399 |
oprot.writeStructEnd()
|
|
|
3400 |
|
| 3431 |
rajveer |
3401 |
def validate(self):
|
|
|
3402 |
return
|
|
|
3403 |
|
|
|
3404 |
|
| 2708 |
chandransh |
3405 |
def __repr__(self):
|
|
|
3406 |
L = ['%s=%r' % (key, value)
|
|
|
3407 |
for key, value in self.__dict__.iteritems()]
|
|
|
3408 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3409 |
|
|
|
3410 |
def __eq__(self, other):
|
|
|
3411 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3412 |
|
|
|
3413 |
def __ne__(self, other):
|
|
|
3414 |
return not (self == other)
|
|
|
3415 |
|
| 3010 |
chandransh |
3416 |
class initializeHdfcPayment_result:
|
| 2708 |
chandransh |
3417 |
"""
|
|
|
3418 |
Attributes:
|
|
|
3419 |
- success
|
|
|
3420 |
- pe
|
|
|
3421 |
"""
|
|
|
3422 |
|
|
|
3423 |
thrift_spec = (
|
| 3010 |
chandransh |
3424 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 2708 |
chandransh |
3425 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3426 |
)
|
|
|
3427 |
|
|
|
3428 |
def __init__(self, success=None, pe=None,):
|
|
|
3429 |
self.success = success
|
|
|
3430 |
self.pe = pe
|
|
|
3431 |
|
|
|
3432 |
def read(self, iprot):
|
|
|
3433 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3434 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3435 |
return
|
|
|
3436 |
iprot.readStructBegin()
|
|
|
3437 |
while True:
|
|
|
3438 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3439 |
if ftype == TType.STOP:
|
|
|
3440 |
break
|
|
|
3441 |
if fid == 0:
|
| 3010 |
chandransh |
3442 |
if ftype == TType.STRING:
|
|
|
3443 |
self.success = iprot.readString();
|
| 2708 |
chandransh |
3444 |
else:
|
|
|
3445 |
iprot.skip(ftype)
|
|
|
3446 |
elif fid == 1:
|
|
|
3447 |
if ftype == TType.STRUCT:
|
|
|
3448 |
self.pe = PaymentException()
|
|
|
3449 |
self.pe.read(iprot)
|
|
|
3450 |
else:
|
|
|
3451 |
iprot.skip(ftype)
|
|
|
3452 |
else:
|
|
|
3453 |
iprot.skip(ftype)
|
|
|
3454 |
iprot.readFieldEnd()
|
|
|
3455 |
iprot.readStructEnd()
|
|
|
3456 |
|
|
|
3457 |
def write(self, oprot):
|
|
|
3458 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3459 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3460 |
return
|
| 3010 |
chandransh |
3461 |
oprot.writeStructBegin('initializeHdfcPayment_result')
|
| 3431 |
rajveer |
3462 |
if self.success is not None:
|
| 3010 |
chandransh |
3463 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
3464 |
oprot.writeString(self.success)
|
| 2708 |
chandransh |
3465 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3466 |
if self.pe is not None:
|
| 2708 |
chandransh |
3467 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3468 |
self.pe.write(oprot)
|
|
|
3469 |
oprot.writeFieldEnd()
|
|
|
3470 |
oprot.writeFieldStop()
|
|
|
3471 |
oprot.writeStructEnd()
|
|
|
3472 |
|
| 3431 |
rajveer |
3473 |
def validate(self):
|
|
|
3474 |
return
|
|
|
3475 |
|
|
|
3476 |
|
| 2708 |
chandransh |
3477 |
def __repr__(self):
|
|
|
3478 |
L = ['%s=%r' % (key, value)
|
|
|
3479 |
for key, value in self.__dict__.iteritems()]
|
|
|
3480 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3481 |
|
|
|
3482 |
def __eq__(self, other):
|
|
|
3483 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3484 |
|
|
|
3485 |
def __ne__(self, other):
|
|
|
3486 |
return not (self == other)
|
|
|
3487 |
|
| 6050 |
anupam.sin |
3488 |
class doHdfcPaymentForDigitalOrder_args:
|
|
|
3489 |
"""
|
|
|
3490 |
Attributes:
|
|
|
3491 |
- merchantPaymentId
|
|
|
3492 |
- rechargeOrderId
|
| 6228 |
anupam.sin |
3493 |
- phone
|
| 6050 |
anupam.sin |
3494 |
"""
|
|
|
3495 |
|
| 6228 |
anupam.sin |
3496 |
thrift_spec = None
|
|
|
3497 |
def __init__(self, merchantPaymentId=None, rechargeOrderId=None, phone=None,):
|
| 6050 |
anupam.sin |
3498 |
self.merchantPaymentId = merchantPaymentId
|
|
|
3499 |
self.rechargeOrderId = rechargeOrderId
|
| 6228 |
anupam.sin |
3500 |
self.phone = phone
|
| 6050 |
anupam.sin |
3501 |
|
|
|
3502 |
def read(self, iprot):
|
|
|
3503 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3504 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3505 |
return
|
|
|
3506 |
iprot.readStructBegin()
|
|
|
3507 |
while True:
|
|
|
3508 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3509 |
if ftype == TType.STOP:
|
|
|
3510 |
break
|
|
|
3511 |
if fid == 1:
|
|
|
3512 |
if ftype == TType.I64:
|
|
|
3513 |
self.merchantPaymentId = iprot.readI64();
|
|
|
3514 |
else:
|
|
|
3515 |
iprot.skip(ftype)
|
|
|
3516 |
elif fid == 2:
|
|
|
3517 |
if ftype == TType.I64:
|
|
|
3518 |
self.rechargeOrderId = iprot.readI64();
|
|
|
3519 |
else:
|
|
|
3520 |
iprot.skip(ftype)
|
| 6228 |
anupam.sin |
3521 |
elif fid == -1:
|
|
|
3522 |
if ftype == TType.STRING:
|
|
|
3523 |
self.phone = iprot.readString();
|
|
|
3524 |
else:
|
|
|
3525 |
iprot.skip(ftype)
|
| 6050 |
anupam.sin |
3526 |
else:
|
|
|
3527 |
iprot.skip(ftype)
|
|
|
3528 |
iprot.readFieldEnd()
|
|
|
3529 |
iprot.readStructEnd()
|
|
|
3530 |
|
|
|
3531 |
def write(self, oprot):
|
|
|
3532 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3533 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3534 |
return
|
|
|
3535 |
oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_args')
|
| 6228 |
anupam.sin |
3536 |
if self.phone is not None:
|
|
|
3537 |
oprot.writeFieldBegin('phone', TType.STRING, -1)
|
|
|
3538 |
oprot.writeString(self.phone)
|
|
|
3539 |
oprot.writeFieldEnd()
|
| 6050 |
anupam.sin |
3540 |
if self.merchantPaymentId is not None:
|
|
|
3541 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
3542 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
3543 |
oprot.writeFieldEnd()
|
|
|
3544 |
if self.rechargeOrderId is not None:
|
|
|
3545 |
oprot.writeFieldBegin('rechargeOrderId', TType.I64, 2)
|
|
|
3546 |
oprot.writeI64(self.rechargeOrderId)
|
|
|
3547 |
oprot.writeFieldEnd()
|
|
|
3548 |
oprot.writeFieldStop()
|
|
|
3549 |
oprot.writeStructEnd()
|
|
|
3550 |
|
|
|
3551 |
def validate(self):
|
|
|
3552 |
return
|
|
|
3553 |
|
|
|
3554 |
|
|
|
3555 |
def __repr__(self):
|
|
|
3556 |
L = ['%s=%r' % (key, value)
|
|
|
3557 |
for key, value in self.__dict__.iteritems()]
|
|
|
3558 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3559 |
|
|
|
3560 |
def __eq__(self, other):
|
|
|
3561 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3562 |
|
|
|
3563 |
def __ne__(self, other):
|
|
|
3564 |
return not (self == other)
|
|
|
3565 |
|
|
|
3566 |
class doHdfcPaymentForDigitalOrder_result:
|
|
|
3567 |
"""
|
|
|
3568 |
Attributes:
|
|
|
3569 |
- success
|
|
|
3570 |
- pe
|
|
|
3571 |
"""
|
|
|
3572 |
|
|
|
3573 |
thrift_spec = (
|
|
|
3574 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
3575 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3576 |
)
|
|
|
3577 |
|
|
|
3578 |
def __init__(self, success=None, pe=None,):
|
|
|
3579 |
self.success = success
|
|
|
3580 |
self.pe = pe
|
|
|
3581 |
|
|
|
3582 |
def read(self, iprot):
|
|
|
3583 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3584 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3585 |
return
|
|
|
3586 |
iprot.readStructBegin()
|
|
|
3587 |
while True:
|
|
|
3588 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3589 |
if ftype == TType.STOP:
|
|
|
3590 |
break
|
|
|
3591 |
if fid == 0:
|
|
|
3592 |
if ftype == TType.STRING:
|
|
|
3593 |
self.success = iprot.readString();
|
|
|
3594 |
else:
|
|
|
3595 |
iprot.skip(ftype)
|
|
|
3596 |
elif fid == 1:
|
|
|
3597 |
if ftype == TType.STRUCT:
|
|
|
3598 |
self.pe = PaymentException()
|
|
|
3599 |
self.pe.read(iprot)
|
|
|
3600 |
else:
|
|
|
3601 |
iprot.skip(ftype)
|
|
|
3602 |
else:
|
|
|
3603 |
iprot.skip(ftype)
|
|
|
3604 |
iprot.readFieldEnd()
|
|
|
3605 |
iprot.readStructEnd()
|
|
|
3606 |
|
|
|
3607 |
def write(self, oprot):
|
|
|
3608 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3609 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3610 |
return
|
|
|
3611 |
oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_result')
|
|
|
3612 |
if self.success is not None:
|
|
|
3613 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
3614 |
oprot.writeString(self.success)
|
|
|
3615 |
oprot.writeFieldEnd()
|
|
|
3616 |
if self.pe is not None:
|
|
|
3617 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3618 |
self.pe.write(oprot)
|
|
|
3619 |
oprot.writeFieldEnd()
|
|
|
3620 |
oprot.writeFieldStop()
|
|
|
3621 |
oprot.writeStructEnd()
|
|
|
3622 |
|
|
|
3623 |
def validate(self):
|
|
|
3624 |
return
|
|
|
3625 |
|
|
|
3626 |
|
|
|
3627 |
def __repr__(self):
|
|
|
3628 |
L = ['%s=%r' % (key, value)
|
|
|
3629 |
for key, value in self.__dict__.iteritems()]
|
|
|
3630 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3631 |
|
|
|
3632 |
def __eq__(self, other):
|
|
|
3633 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3634 |
|
|
|
3635 |
def __ne__(self, other):
|
|
|
3636 |
return not (self == other)
|
|
|
3637 |
|
| 3616 |
chandransh |
3638 |
class initializeHdfcEmiPayment_args:
|
|
|
3639 |
"""
|
|
|
3640 |
Attributes:
|
|
|
3641 |
- merchantPaymentId
|
|
|
3642 |
"""
|
|
|
3643 |
|
|
|
3644 |
thrift_spec = (
|
|
|
3645 |
None, # 0
|
|
|
3646 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
3647 |
)
|
|
|
3648 |
|
|
|
3649 |
def __init__(self, merchantPaymentId=None,):
|
|
|
3650 |
self.merchantPaymentId = merchantPaymentId
|
|
|
3651 |
|
|
|
3652 |
def read(self, iprot):
|
|
|
3653 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3654 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3655 |
return
|
|
|
3656 |
iprot.readStructBegin()
|
|
|
3657 |
while True:
|
|
|
3658 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3659 |
if ftype == TType.STOP:
|
|
|
3660 |
break
|
|
|
3661 |
if fid == 1:
|
|
|
3662 |
if ftype == TType.I64:
|
|
|
3663 |
self.merchantPaymentId = iprot.readI64();
|
|
|
3664 |
else:
|
|
|
3665 |
iprot.skip(ftype)
|
|
|
3666 |
else:
|
|
|
3667 |
iprot.skip(ftype)
|
|
|
3668 |
iprot.readFieldEnd()
|
|
|
3669 |
iprot.readStructEnd()
|
|
|
3670 |
|
|
|
3671 |
def write(self, oprot):
|
|
|
3672 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3673 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3674 |
return
|
|
|
3675 |
oprot.writeStructBegin('initializeHdfcEmiPayment_args')
|
|
|
3676 |
if self.merchantPaymentId is not None:
|
|
|
3677 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
3678 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
3679 |
oprot.writeFieldEnd()
|
|
|
3680 |
oprot.writeFieldStop()
|
|
|
3681 |
oprot.writeStructEnd()
|
|
|
3682 |
|
|
|
3683 |
def validate(self):
|
|
|
3684 |
return
|
|
|
3685 |
|
|
|
3686 |
|
|
|
3687 |
def __repr__(self):
|
|
|
3688 |
L = ['%s=%r' % (key, value)
|
|
|
3689 |
for key, value in self.__dict__.iteritems()]
|
|
|
3690 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3691 |
|
|
|
3692 |
def __eq__(self, other):
|
|
|
3693 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3694 |
|
|
|
3695 |
def __ne__(self, other):
|
|
|
3696 |
return not (self == other)
|
|
|
3697 |
|
|
|
3698 |
class initializeHdfcEmiPayment_result:
|
|
|
3699 |
"""
|
|
|
3700 |
Attributes:
|
|
|
3701 |
- success
|
|
|
3702 |
- pe
|
|
|
3703 |
"""
|
|
|
3704 |
|
|
|
3705 |
thrift_spec = (
|
|
|
3706 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
3707 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3708 |
)
|
|
|
3709 |
|
|
|
3710 |
def __init__(self, success=None, pe=None,):
|
|
|
3711 |
self.success = success
|
|
|
3712 |
self.pe = pe
|
|
|
3713 |
|
|
|
3714 |
def read(self, iprot):
|
|
|
3715 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3716 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3717 |
return
|
|
|
3718 |
iprot.readStructBegin()
|
|
|
3719 |
while True:
|
|
|
3720 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3721 |
if ftype == TType.STOP:
|
|
|
3722 |
break
|
|
|
3723 |
if fid == 0:
|
|
|
3724 |
if ftype == TType.STRING:
|
|
|
3725 |
self.success = iprot.readString();
|
|
|
3726 |
else:
|
|
|
3727 |
iprot.skip(ftype)
|
|
|
3728 |
elif fid == 1:
|
|
|
3729 |
if ftype == TType.STRUCT:
|
|
|
3730 |
self.pe = PaymentException()
|
|
|
3731 |
self.pe.read(iprot)
|
|
|
3732 |
else:
|
|
|
3733 |
iprot.skip(ftype)
|
|
|
3734 |
else:
|
|
|
3735 |
iprot.skip(ftype)
|
|
|
3736 |
iprot.readFieldEnd()
|
|
|
3737 |
iprot.readStructEnd()
|
|
|
3738 |
|
|
|
3739 |
def write(self, oprot):
|
|
|
3740 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3741 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3742 |
return
|
|
|
3743 |
oprot.writeStructBegin('initializeHdfcEmiPayment_result')
|
|
|
3744 |
if self.success is not None:
|
|
|
3745 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
3746 |
oprot.writeString(self.success)
|
|
|
3747 |
oprot.writeFieldEnd()
|
|
|
3748 |
if self.pe is not None:
|
|
|
3749 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3750 |
self.pe.write(oprot)
|
|
|
3751 |
oprot.writeFieldEnd()
|
|
|
3752 |
oprot.writeFieldStop()
|
|
|
3753 |
oprot.writeStructEnd()
|
|
|
3754 |
|
|
|
3755 |
def validate(self):
|
|
|
3756 |
return
|
|
|
3757 |
|
|
|
3758 |
|
|
|
3759 |
def __repr__(self):
|
|
|
3760 |
L = ['%s=%r' % (key, value)
|
|
|
3761 |
for key, value in self.__dict__.iteritems()]
|
|
|
3762 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3763 |
|
|
|
3764 |
def __eq__(self, other):
|
|
|
3765 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3766 |
|
|
|
3767 |
def __ne__(self, other):
|
|
|
3768 |
return not (self == other)
|
|
|
3769 |
|
| 3010 |
chandransh |
3770 |
class createRefund_args:
|
| 2559 |
chandransh |
3771 |
"""
|
|
|
3772 |
Attributes:
|
| 3010 |
chandransh |
3773 |
- orderId
|
|
|
3774 |
- merchantTxnId
|
|
|
3775 |
- amount
|
| 2559 |
chandransh |
3776 |
"""
|
|
|
3777 |
|
|
|
3778 |
thrift_spec = (
|
|
|
3779 |
None, # 0
|
| 3010 |
chandransh |
3780 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
3781 |
(2, TType.I64, 'merchantTxnId', None, None, ), # 2
|
|
|
3782 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
| 2559 |
chandransh |
3783 |
)
|
|
|
3784 |
|
| 3010 |
chandransh |
3785 |
def __init__(self, orderId=None, merchantTxnId=None, amount=None,):
|
|
|
3786 |
self.orderId = orderId
|
|
|
3787 |
self.merchantTxnId = merchantTxnId
|
|
|
3788 |
self.amount = amount
|
| 2559 |
chandransh |
3789 |
|
|
|
3790 |
def read(self, iprot):
|
|
|
3791 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3792 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3793 |
return
|
|
|
3794 |
iprot.readStructBegin()
|
|
|
3795 |
while True:
|
|
|
3796 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3797 |
if ftype == TType.STOP:
|
|
|
3798 |
break
|
|
|
3799 |
if fid == 1:
|
|
|
3800 |
if ftype == TType.I64:
|
| 3010 |
chandransh |
3801 |
self.orderId = iprot.readI64();
|
| 2559 |
chandransh |
3802 |
else:
|
|
|
3803 |
iprot.skip(ftype)
|
| 3010 |
chandransh |
3804 |
elif fid == 2:
|
|
|
3805 |
if ftype == TType.I64:
|
|
|
3806 |
self.merchantTxnId = iprot.readI64();
|
|
|
3807 |
else:
|
|
|
3808 |
iprot.skip(ftype)
|
|
|
3809 |
elif fid == 3:
|
|
|
3810 |
if ftype == TType.DOUBLE:
|
|
|
3811 |
self.amount = iprot.readDouble();
|
|
|
3812 |
else:
|
|
|
3813 |
iprot.skip(ftype)
|
| 2559 |
chandransh |
3814 |
else:
|
|
|
3815 |
iprot.skip(ftype)
|
|
|
3816 |
iprot.readFieldEnd()
|
|
|
3817 |
iprot.readStructEnd()
|
|
|
3818 |
|
|
|
3819 |
def write(self, oprot):
|
|
|
3820 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3821 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3822 |
return
|
| 3010 |
chandransh |
3823 |
oprot.writeStructBegin('createRefund_args')
|
| 3431 |
rajveer |
3824 |
if self.orderId is not None:
|
| 3010 |
chandransh |
3825 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
3826 |
oprot.writeI64(self.orderId)
|
| 2559 |
chandransh |
3827 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3828 |
if self.merchantTxnId is not None:
|
| 3010 |
chandransh |
3829 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
|
|
|
3830 |
oprot.writeI64(self.merchantTxnId)
|
|
|
3831 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3832 |
if self.amount is not None:
|
| 3010 |
chandransh |
3833 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
3834 |
oprot.writeDouble(self.amount)
|
|
|
3835 |
oprot.writeFieldEnd()
|
| 2559 |
chandransh |
3836 |
oprot.writeFieldStop()
|
|
|
3837 |
oprot.writeStructEnd()
|
|
|
3838 |
|
| 3431 |
rajveer |
3839 |
def validate(self):
|
|
|
3840 |
return
|
|
|
3841 |
|
|
|
3842 |
|
| 2559 |
chandransh |
3843 |
def __repr__(self):
|
|
|
3844 |
L = ['%s=%r' % (key, value)
|
|
|
3845 |
for key, value in self.__dict__.iteritems()]
|
|
|
3846 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3847 |
|
|
|
3848 |
def __eq__(self, other):
|
|
|
3849 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3850 |
|
|
|
3851 |
def __ne__(self, other):
|
|
|
3852 |
return not (self == other)
|
|
|
3853 |
|
| 3010 |
chandransh |
3854 |
class createRefund_result:
|
| 2559 |
chandransh |
3855 |
"""
|
|
|
3856 |
Attributes:
|
|
|
3857 |
- success
|
|
|
3858 |
- pe
|
|
|
3859 |
"""
|
|
|
3860 |
|
|
|
3861 |
thrift_spec = (
|
| 3010 |
chandransh |
3862 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 2559 |
chandransh |
3863 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3864 |
)
|
|
|
3865 |
|
|
|
3866 |
def __init__(self, success=None, pe=None,):
|
|
|
3867 |
self.success = success
|
|
|
3868 |
self.pe = pe
|
|
|
3869 |
|
|
|
3870 |
def read(self, iprot):
|
|
|
3871 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3872 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3873 |
return
|
|
|
3874 |
iprot.readStructBegin()
|
|
|
3875 |
while True:
|
|
|
3876 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3877 |
if ftype == TType.STOP:
|
|
|
3878 |
break
|
|
|
3879 |
if fid == 0:
|
| 3010 |
chandransh |
3880 |
if ftype == TType.I64:
|
|
|
3881 |
self.success = iprot.readI64();
|
| 2559 |
chandransh |
3882 |
else:
|
|
|
3883 |
iprot.skip(ftype)
|
|
|
3884 |
elif fid == 1:
|
|
|
3885 |
if ftype == TType.STRUCT:
|
|
|
3886 |
self.pe = PaymentException()
|
|
|
3887 |
self.pe.read(iprot)
|
|
|
3888 |
else:
|
|
|
3889 |
iprot.skip(ftype)
|
|
|
3890 |
else:
|
|
|
3891 |
iprot.skip(ftype)
|
|
|
3892 |
iprot.readFieldEnd()
|
|
|
3893 |
iprot.readStructEnd()
|
|
|
3894 |
|
|
|
3895 |
def write(self, oprot):
|
|
|
3896 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3897 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3898 |
return
|
| 3010 |
chandransh |
3899 |
oprot.writeStructBegin('createRefund_result')
|
| 3431 |
rajveer |
3900 |
if self.success is not None:
|
| 3010 |
chandransh |
3901 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
3902 |
oprot.writeI64(self.success)
|
| 2559 |
chandransh |
3903 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3904 |
if self.pe is not None:
|
| 2559 |
chandransh |
3905 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3906 |
self.pe.write(oprot)
|
|
|
3907 |
oprot.writeFieldEnd()
|
|
|
3908 |
oprot.writeFieldStop()
|
|
|
3909 |
oprot.writeStructEnd()
|
|
|
3910 |
|
| 3431 |
rajveer |
3911 |
def validate(self):
|
|
|
3912 |
return
|
|
|
3913 |
|
|
|
3914 |
|
| 2559 |
chandransh |
3915 |
def __repr__(self):
|
|
|
3916 |
L = ['%s=%r' % (key, value)
|
|
|
3917 |
for key, value in self.__dict__.iteritems()]
|
|
|
3918 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3919 |
|
|
|
3920 |
def __eq__(self, other):
|
|
|
3921 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3922 |
|
|
|
3923 |
def __ne__(self, other):
|
|
|
3924 |
return not (self == other)
|
|
|
3925 |
|
| 3010 |
chandransh |
3926 |
class capturePayment_args:
|
| 2685 |
chandransh |
3927 |
"""
|
|
|
3928 |
Attributes:
|
|
|
3929 |
- merchantTxnId
|
| 8618 |
rajveer |
3930 |
- isDigital
|
| 2685 |
chandransh |
3931 |
"""
|
| 2559 |
chandransh |
3932 |
|
| 2685 |
chandransh |
3933 |
thrift_spec = (
|
|
|
3934 |
None, # 0
|
| 3010 |
chandransh |
3935 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
| 8618 |
rajveer |
3936 |
(2, TType.BOOL, 'isDigital', None, None, ), # 2
|
| 2685 |
chandransh |
3937 |
)
|
|
|
3938 |
|
| 8618 |
rajveer |
3939 |
def __init__(self, merchantTxnId=None, isDigital=None,):
|
| 2685 |
chandransh |
3940 |
self.merchantTxnId = merchantTxnId
|
| 8618 |
rajveer |
3941 |
self.isDigital = isDigital
|
| 2685 |
chandransh |
3942 |
|
|
|
3943 |
def read(self, iprot):
|
|
|
3944 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3945 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3946 |
return
|
|
|
3947 |
iprot.readStructBegin()
|
|
|
3948 |
while True:
|
|
|
3949 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3950 |
if ftype == TType.STOP:
|
|
|
3951 |
break
|
|
|
3952 |
if fid == 1:
|
|
|
3953 |
if ftype == TType.I64:
|
|
|
3954 |
self.merchantTxnId = iprot.readI64();
|
|
|
3955 |
else:
|
|
|
3956 |
iprot.skip(ftype)
|
| 8618 |
rajveer |
3957 |
elif fid == 2:
|
|
|
3958 |
if ftype == TType.BOOL:
|
|
|
3959 |
self.isDigital = iprot.readBool();
|
|
|
3960 |
else:
|
|
|
3961 |
iprot.skip(ftype)
|
| 2685 |
chandransh |
3962 |
else:
|
|
|
3963 |
iprot.skip(ftype)
|
|
|
3964 |
iprot.readFieldEnd()
|
|
|
3965 |
iprot.readStructEnd()
|
|
|
3966 |
|
|
|
3967 |
def write(self, oprot):
|
|
|
3968 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3969 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3970 |
return
|
| 3010 |
chandransh |
3971 |
oprot.writeStructBegin('capturePayment_args')
|
| 3431 |
rajveer |
3972 |
if self.merchantTxnId is not None:
|
| 3010 |
chandransh |
3973 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
| 2685 |
chandransh |
3974 |
oprot.writeI64(self.merchantTxnId)
|
|
|
3975 |
oprot.writeFieldEnd()
|
| 8618 |
rajveer |
3976 |
if self.isDigital is not None:
|
|
|
3977 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 2)
|
|
|
3978 |
oprot.writeBool(self.isDigital)
|
|
|
3979 |
oprot.writeFieldEnd()
|
| 2685 |
chandransh |
3980 |
oprot.writeFieldStop()
|
|
|
3981 |
oprot.writeStructEnd()
|
|
|
3982 |
|
| 3431 |
rajveer |
3983 |
def validate(self):
|
|
|
3984 |
return
|
|
|
3985 |
|
|
|
3986 |
|
| 2685 |
chandransh |
3987 |
def __repr__(self):
|
|
|
3988 |
L = ['%s=%r' % (key, value)
|
|
|
3989 |
for key, value in self.__dict__.iteritems()]
|
|
|
3990 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3991 |
|
|
|
3992 |
def __eq__(self, other):
|
|
|
3993 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3994 |
|
|
|
3995 |
def __ne__(self, other):
|
|
|
3996 |
return not (self == other)
|
|
|
3997 |
|
| 3010 |
chandransh |
3998 |
class capturePayment_result:
|
| 2685 |
chandransh |
3999 |
"""
|
|
|
4000 |
Attributes:
|
|
|
4001 |
- success
|
|
|
4002 |
- pe
|
|
|
4003 |
"""
|
|
|
4004 |
|
|
|
4005 |
thrift_spec = (
|
| 3010 |
chandransh |
4006 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 2685 |
chandransh |
4007 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4008 |
)
|
|
|
4009 |
|
|
|
4010 |
def __init__(self, success=None, pe=None,):
|
|
|
4011 |
self.success = success
|
|
|
4012 |
self.pe = pe
|
|
|
4013 |
|
|
|
4014 |
def read(self, iprot):
|
|
|
4015 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4016 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4017 |
return
|
|
|
4018 |
iprot.readStructBegin()
|
|
|
4019 |
while True:
|
|
|
4020 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4021 |
if ftype == TType.STOP:
|
|
|
4022 |
break
|
|
|
4023 |
if fid == 0:
|
| 3010 |
chandransh |
4024 |
if ftype == TType.BOOL:
|
|
|
4025 |
self.success = iprot.readBool();
|
| 2685 |
chandransh |
4026 |
else:
|
|
|
4027 |
iprot.skip(ftype)
|
|
|
4028 |
elif fid == 1:
|
|
|
4029 |
if ftype == TType.STRUCT:
|
|
|
4030 |
self.pe = PaymentException()
|
|
|
4031 |
self.pe.read(iprot)
|
|
|
4032 |
else:
|
|
|
4033 |
iprot.skip(ftype)
|
|
|
4034 |
else:
|
|
|
4035 |
iprot.skip(ftype)
|
|
|
4036 |
iprot.readFieldEnd()
|
|
|
4037 |
iprot.readStructEnd()
|
|
|
4038 |
|
|
|
4039 |
def write(self, oprot):
|
|
|
4040 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4041 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4042 |
return
|
| 3010 |
chandransh |
4043 |
oprot.writeStructBegin('capturePayment_result')
|
| 3431 |
rajveer |
4044 |
if self.success is not None:
|
| 3010 |
chandransh |
4045 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4046 |
oprot.writeBool(self.success)
|
| 2685 |
chandransh |
4047 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4048 |
if self.pe is not None:
|
| 2685 |
chandransh |
4049 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4050 |
self.pe.write(oprot)
|
|
|
4051 |
oprot.writeFieldEnd()
|
|
|
4052 |
oprot.writeFieldStop()
|
|
|
4053 |
oprot.writeStructEnd()
|
|
|
4054 |
|
| 3431 |
rajveer |
4055 |
def validate(self):
|
|
|
4056 |
return
|
|
|
4057 |
|
|
|
4058 |
|
| 2685 |
chandransh |
4059 |
def __repr__(self):
|
|
|
4060 |
L = ['%s=%r' % (key, value)
|
|
|
4061 |
for key, value in self.__dict__.iteritems()]
|
|
|
4062 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4063 |
|
|
|
4064 |
def __eq__(self, other):
|
|
|
4065 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4066 |
|
|
|
4067 |
def __ne__(self, other):
|
|
|
4068 |
return not (self == other)
|
| 3956 |
chandransh |
4069 |
|
| 6486 |
rajveer |
4070 |
class refundPayment_args:
|
|
|
4071 |
"""
|
|
|
4072 |
Attributes:
|
|
|
4073 |
- merchantTxnId
|
|
|
4074 |
- amount
|
|
|
4075 |
- isDigital
|
|
|
4076 |
"""
|
|
|
4077 |
|
|
|
4078 |
thrift_spec = (
|
|
|
4079 |
None, # 0
|
|
|
4080 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
4081 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
4082 |
(3, TType.BOOL, 'isDigital', None, None, ), # 3
|
|
|
4083 |
)
|
|
|
4084 |
|
|
|
4085 |
def __init__(self, merchantTxnId=None, amount=None, isDigital=None,):
|
|
|
4086 |
self.merchantTxnId = merchantTxnId
|
|
|
4087 |
self.amount = amount
|
|
|
4088 |
self.isDigital = isDigital
|
|
|
4089 |
|
|
|
4090 |
def read(self, iprot):
|
|
|
4091 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4092 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4093 |
return
|
|
|
4094 |
iprot.readStructBegin()
|
|
|
4095 |
while True:
|
|
|
4096 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4097 |
if ftype == TType.STOP:
|
|
|
4098 |
break
|
|
|
4099 |
if fid == 1:
|
|
|
4100 |
if ftype == TType.I64:
|
|
|
4101 |
self.merchantTxnId = iprot.readI64();
|
|
|
4102 |
else:
|
|
|
4103 |
iprot.skip(ftype)
|
|
|
4104 |
elif fid == 2:
|
|
|
4105 |
if ftype == TType.DOUBLE:
|
|
|
4106 |
self.amount = iprot.readDouble();
|
|
|
4107 |
else:
|
|
|
4108 |
iprot.skip(ftype)
|
|
|
4109 |
elif fid == 3:
|
|
|
4110 |
if ftype == TType.BOOL:
|
|
|
4111 |
self.isDigital = iprot.readBool();
|
|
|
4112 |
else:
|
|
|
4113 |
iprot.skip(ftype)
|
|
|
4114 |
else:
|
|
|
4115 |
iprot.skip(ftype)
|
|
|
4116 |
iprot.readFieldEnd()
|
|
|
4117 |
iprot.readStructEnd()
|
|
|
4118 |
|
|
|
4119 |
def write(self, oprot):
|
|
|
4120 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4121 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4122 |
return
|
|
|
4123 |
oprot.writeStructBegin('refundPayment_args')
|
|
|
4124 |
if self.merchantTxnId is not None:
|
|
|
4125 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
4126 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4127 |
oprot.writeFieldEnd()
|
|
|
4128 |
if self.amount is not None:
|
|
|
4129 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
4130 |
oprot.writeDouble(self.amount)
|
|
|
4131 |
oprot.writeFieldEnd()
|
|
|
4132 |
if self.isDigital is not None:
|
|
|
4133 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 3)
|
|
|
4134 |
oprot.writeBool(self.isDigital)
|
|
|
4135 |
oprot.writeFieldEnd()
|
|
|
4136 |
oprot.writeFieldStop()
|
|
|
4137 |
oprot.writeStructEnd()
|
|
|
4138 |
|
|
|
4139 |
def validate(self):
|
|
|
4140 |
return
|
|
|
4141 |
|
|
|
4142 |
|
|
|
4143 |
def __repr__(self):
|
|
|
4144 |
L = ['%s=%r' % (key, value)
|
|
|
4145 |
for key, value in self.__dict__.iteritems()]
|
|
|
4146 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4147 |
|
|
|
4148 |
def __eq__(self, other):
|
|
|
4149 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4150 |
|
|
|
4151 |
def __ne__(self, other):
|
|
|
4152 |
return not (self == other)
|
|
|
4153 |
|
|
|
4154 |
class refundPayment_result:
|
|
|
4155 |
"""
|
|
|
4156 |
Attributes:
|
|
|
4157 |
- success
|
|
|
4158 |
- pe
|
|
|
4159 |
"""
|
|
|
4160 |
|
|
|
4161 |
thrift_spec = (
|
|
|
4162 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4163 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4164 |
)
|
|
|
4165 |
|
|
|
4166 |
def __init__(self, success=None, pe=None,):
|
|
|
4167 |
self.success = success
|
|
|
4168 |
self.pe = pe
|
|
|
4169 |
|
|
|
4170 |
def read(self, iprot):
|
|
|
4171 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4172 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4173 |
return
|
|
|
4174 |
iprot.readStructBegin()
|
|
|
4175 |
while True:
|
|
|
4176 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4177 |
if ftype == TType.STOP:
|
|
|
4178 |
break
|
|
|
4179 |
if fid == 0:
|
|
|
4180 |
if ftype == TType.BOOL:
|
|
|
4181 |
self.success = iprot.readBool();
|
|
|
4182 |
else:
|
|
|
4183 |
iprot.skip(ftype)
|
|
|
4184 |
elif fid == 1:
|
|
|
4185 |
if ftype == TType.STRUCT:
|
|
|
4186 |
self.pe = PaymentException()
|
|
|
4187 |
self.pe.read(iprot)
|
|
|
4188 |
else:
|
|
|
4189 |
iprot.skip(ftype)
|
|
|
4190 |
else:
|
|
|
4191 |
iprot.skip(ftype)
|
|
|
4192 |
iprot.readFieldEnd()
|
|
|
4193 |
iprot.readStructEnd()
|
|
|
4194 |
|
|
|
4195 |
def write(self, oprot):
|
|
|
4196 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4197 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4198 |
return
|
|
|
4199 |
oprot.writeStructBegin('refundPayment_result')
|
|
|
4200 |
if self.success is not None:
|
|
|
4201 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4202 |
oprot.writeBool(self.success)
|
|
|
4203 |
oprot.writeFieldEnd()
|
|
|
4204 |
if self.pe is not None:
|
|
|
4205 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4206 |
self.pe.write(oprot)
|
|
|
4207 |
oprot.writeFieldEnd()
|
|
|
4208 |
oprot.writeFieldStop()
|
|
|
4209 |
oprot.writeStructEnd()
|
|
|
4210 |
|
|
|
4211 |
def validate(self):
|
|
|
4212 |
return
|
|
|
4213 |
|
|
|
4214 |
|
|
|
4215 |
def __repr__(self):
|
|
|
4216 |
L = ['%s=%r' % (key, value)
|
|
|
4217 |
for key, value in self.__dict__.iteritems()]
|
|
|
4218 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4219 |
|
|
|
4220 |
def __eq__(self, other):
|
|
|
4221 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4222 |
|
|
|
4223 |
def __ne__(self, other):
|
|
|
4224 |
return not (self == other)
|
|
|
4225 |
|
| 3956 |
chandransh |
4226 |
class partiallyCapturePayment_args:
|
|
|
4227 |
"""
|
|
|
4228 |
Attributes:
|
|
|
4229 |
- merchantTxnId
|
|
|
4230 |
- amount
|
|
|
4231 |
- xferBy
|
|
|
4232 |
- xferTxnId
|
|
|
4233 |
- xferDate
|
|
|
4234 |
"""
|
|
|
4235 |
|
|
|
4236 |
thrift_spec = (
|
|
|
4237 |
None, # 0
|
|
|
4238 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
4239 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
4240 |
(3, TType.STRING, 'xferBy', None, None, ), # 3
|
|
|
4241 |
(4, TType.STRING, 'xferTxnId', None, None, ), # 4
|
|
|
4242 |
(5, TType.I64, 'xferDate', None, None, ), # 5
|
|
|
4243 |
)
|
|
|
4244 |
|
|
|
4245 |
def __init__(self, merchantTxnId=None, amount=None, xferBy=None, xferTxnId=None, xferDate=None,):
|
|
|
4246 |
self.merchantTxnId = merchantTxnId
|
|
|
4247 |
self.amount = amount
|
|
|
4248 |
self.xferBy = xferBy
|
|
|
4249 |
self.xferTxnId = xferTxnId
|
|
|
4250 |
self.xferDate = xferDate
|
|
|
4251 |
|
|
|
4252 |
def read(self, iprot):
|
|
|
4253 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4254 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4255 |
return
|
|
|
4256 |
iprot.readStructBegin()
|
|
|
4257 |
while True:
|
|
|
4258 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4259 |
if ftype == TType.STOP:
|
|
|
4260 |
break
|
|
|
4261 |
if fid == 1:
|
|
|
4262 |
if ftype == TType.I64:
|
|
|
4263 |
self.merchantTxnId = iprot.readI64();
|
|
|
4264 |
else:
|
|
|
4265 |
iprot.skip(ftype)
|
|
|
4266 |
elif fid == 2:
|
|
|
4267 |
if ftype == TType.DOUBLE:
|
|
|
4268 |
self.amount = iprot.readDouble();
|
|
|
4269 |
else:
|
|
|
4270 |
iprot.skip(ftype)
|
|
|
4271 |
elif fid == 3:
|
|
|
4272 |
if ftype == TType.STRING:
|
|
|
4273 |
self.xferBy = iprot.readString();
|
|
|
4274 |
else:
|
|
|
4275 |
iprot.skip(ftype)
|
|
|
4276 |
elif fid == 4:
|
|
|
4277 |
if ftype == TType.STRING:
|
|
|
4278 |
self.xferTxnId = iprot.readString();
|
|
|
4279 |
else:
|
|
|
4280 |
iprot.skip(ftype)
|
|
|
4281 |
elif fid == 5:
|
|
|
4282 |
if ftype == TType.I64:
|
|
|
4283 |
self.xferDate = iprot.readI64();
|
|
|
4284 |
else:
|
|
|
4285 |
iprot.skip(ftype)
|
|
|
4286 |
else:
|
|
|
4287 |
iprot.skip(ftype)
|
|
|
4288 |
iprot.readFieldEnd()
|
|
|
4289 |
iprot.readStructEnd()
|
|
|
4290 |
|
|
|
4291 |
def write(self, oprot):
|
|
|
4292 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4293 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4294 |
return
|
|
|
4295 |
oprot.writeStructBegin('partiallyCapturePayment_args')
|
|
|
4296 |
if self.merchantTxnId is not None:
|
|
|
4297 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
4298 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4299 |
oprot.writeFieldEnd()
|
|
|
4300 |
if self.amount is not None:
|
|
|
4301 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
4302 |
oprot.writeDouble(self.amount)
|
|
|
4303 |
oprot.writeFieldEnd()
|
|
|
4304 |
if self.xferBy is not None:
|
|
|
4305 |
oprot.writeFieldBegin('xferBy', TType.STRING, 3)
|
|
|
4306 |
oprot.writeString(self.xferBy)
|
|
|
4307 |
oprot.writeFieldEnd()
|
|
|
4308 |
if self.xferTxnId is not None:
|
|
|
4309 |
oprot.writeFieldBegin('xferTxnId', TType.STRING, 4)
|
|
|
4310 |
oprot.writeString(self.xferTxnId)
|
|
|
4311 |
oprot.writeFieldEnd()
|
|
|
4312 |
if self.xferDate is not None:
|
|
|
4313 |
oprot.writeFieldBegin('xferDate', TType.I64, 5)
|
|
|
4314 |
oprot.writeI64(self.xferDate)
|
|
|
4315 |
oprot.writeFieldEnd()
|
|
|
4316 |
oprot.writeFieldStop()
|
|
|
4317 |
oprot.writeStructEnd()
|
|
|
4318 |
|
|
|
4319 |
def validate(self):
|
|
|
4320 |
return
|
|
|
4321 |
|
|
|
4322 |
|
|
|
4323 |
def __repr__(self):
|
|
|
4324 |
L = ['%s=%r' % (key, value)
|
|
|
4325 |
for key, value in self.__dict__.iteritems()]
|
|
|
4326 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4327 |
|
|
|
4328 |
def __eq__(self, other):
|
|
|
4329 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4330 |
|
|
|
4331 |
def __ne__(self, other):
|
|
|
4332 |
return not (self == other)
|
|
|
4333 |
|
|
|
4334 |
class partiallyCapturePayment_result:
|
|
|
4335 |
"""
|
|
|
4336 |
Attributes:
|
|
|
4337 |
- success
|
|
|
4338 |
- pe
|
|
|
4339 |
"""
|
|
|
4340 |
|
|
|
4341 |
thrift_spec = (
|
|
|
4342 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4343 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4344 |
)
|
|
|
4345 |
|
|
|
4346 |
def __init__(self, success=None, pe=None,):
|
|
|
4347 |
self.success = success
|
|
|
4348 |
self.pe = pe
|
|
|
4349 |
|
|
|
4350 |
def read(self, iprot):
|
|
|
4351 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4352 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4353 |
return
|
|
|
4354 |
iprot.readStructBegin()
|
|
|
4355 |
while True:
|
|
|
4356 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4357 |
if ftype == TType.STOP:
|
|
|
4358 |
break
|
|
|
4359 |
if fid == 0:
|
|
|
4360 |
if ftype == TType.BOOL:
|
|
|
4361 |
self.success = iprot.readBool();
|
|
|
4362 |
else:
|
|
|
4363 |
iprot.skip(ftype)
|
|
|
4364 |
elif fid == 1:
|
|
|
4365 |
if ftype == TType.STRUCT:
|
|
|
4366 |
self.pe = PaymentException()
|
|
|
4367 |
self.pe.read(iprot)
|
|
|
4368 |
else:
|
|
|
4369 |
iprot.skip(ftype)
|
|
|
4370 |
else:
|
|
|
4371 |
iprot.skip(ftype)
|
|
|
4372 |
iprot.readFieldEnd()
|
|
|
4373 |
iprot.readStructEnd()
|
|
|
4374 |
|
|
|
4375 |
def write(self, oprot):
|
|
|
4376 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4377 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4378 |
return
|
|
|
4379 |
oprot.writeStructBegin('partiallyCapturePayment_result')
|
|
|
4380 |
if self.success is not None:
|
|
|
4381 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4382 |
oprot.writeBool(self.success)
|
|
|
4383 |
oprot.writeFieldEnd()
|
|
|
4384 |
if self.pe is not None:
|
|
|
4385 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4386 |
self.pe.write(oprot)
|
|
|
4387 |
oprot.writeFieldEnd()
|
|
|
4388 |
oprot.writeFieldStop()
|
|
|
4389 |
oprot.writeStructEnd()
|
|
|
4390 |
|
|
|
4391 |
def validate(self):
|
|
|
4392 |
return
|
|
|
4393 |
|
|
|
4394 |
|
|
|
4395 |
def __repr__(self):
|
|
|
4396 |
L = ['%s=%r' % (key, value)
|
|
|
4397 |
for key, value in self.__dict__.iteritems()]
|
|
|
4398 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4399 |
|
|
|
4400 |
def __eq__(self, other):
|
|
|
4401 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4402 |
|
|
|
4403 |
def __ne__(self, other):
|
|
|
4404 |
return not (self == other)
|
| 4008 |
mandeep.dh |
4405 |
|
|
|
4406 |
class getPaymentsRequiringExtraProcessing_args:
|
|
|
4407 |
"""
|
|
|
4408 |
Attributes:
|
|
|
4409 |
- category
|
|
|
4410 |
"""
|
|
|
4411 |
|
|
|
4412 |
thrift_spec = (
|
|
|
4413 |
None, # 0
|
|
|
4414 |
(1, TType.I32, 'category', None, None, ), # 1
|
|
|
4415 |
)
|
|
|
4416 |
|
|
|
4417 |
def __init__(self, category=None,):
|
|
|
4418 |
self.category = category
|
|
|
4419 |
|
|
|
4420 |
def read(self, iprot):
|
|
|
4421 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4422 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4423 |
return
|
|
|
4424 |
iprot.readStructBegin()
|
|
|
4425 |
while True:
|
|
|
4426 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4427 |
if ftype == TType.STOP:
|
|
|
4428 |
break
|
|
|
4429 |
if fid == 1:
|
|
|
4430 |
if ftype == TType.I32:
|
|
|
4431 |
self.category = iprot.readI32();
|
|
|
4432 |
else:
|
|
|
4433 |
iprot.skip(ftype)
|
|
|
4434 |
else:
|
|
|
4435 |
iprot.skip(ftype)
|
|
|
4436 |
iprot.readFieldEnd()
|
|
|
4437 |
iprot.readStructEnd()
|
|
|
4438 |
|
|
|
4439 |
def write(self, oprot):
|
|
|
4440 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4441 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4442 |
return
|
|
|
4443 |
oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_args')
|
|
|
4444 |
if self.category is not None:
|
|
|
4445 |
oprot.writeFieldBegin('category', TType.I32, 1)
|
|
|
4446 |
oprot.writeI32(self.category)
|
|
|
4447 |
oprot.writeFieldEnd()
|
|
|
4448 |
oprot.writeFieldStop()
|
|
|
4449 |
oprot.writeStructEnd()
|
|
|
4450 |
|
|
|
4451 |
def validate(self):
|
|
|
4452 |
return
|
|
|
4453 |
|
|
|
4454 |
|
|
|
4455 |
def __repr__(self):
|
|
|
4456 |
L = ['%s=%r' % (key, value)
|
|
|
4457 |
for key, value in self.__dict__.iteritems()]
|
|
|
4458 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4459 |
|
|
|
4460 |
def __eq__(self, other):
|
|
|
4461 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4462 |
|
|
|
4463 |
def __ne__(self, other):
|
|
|
4464 |
return not (self == other)
|
|
|
4465 |
|
|
|
4466 |
class getPaymentsRequiringExtraProcessing_result:
|
|
|
4467 |
"""
|
|
|
4468 |
Attributes:
|
|
|
4469 |
- success
|
|
|
4470 |
"""
|
|
|
4471 |
|
|
|
4472 |
thrift_spec = (
|
|
|
4473 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
4474 |
)
|
|
|
4475 |
|
|
|
4476 |
def __init__(self, success=None,):
|
|
|
4477 |
self.success = success
|
|
|
4478 |
|
|
|
4479 |
def read(self, iprot):
|
|
|
4480 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4481 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4482 |
return
|
|
|
4483 |
iprot.readStructBegin()
|
|
|
4484 |
while True:
|
|
|
4485 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4486 |
if ftype == TType.STOP:
|
|
|
4487 |
break
|
|
|
4488 |
if fid == 0:
|
|
|
4489 |
if ftype == TType.LIST:
|
|
|
4490 |
self.success = []
|
| 7049 |
anupam.sin |
4491 |
(_etype80, _size77) = iprot.readListBegin()
|
|
|
4492 |
for _i81 in xrange(_size77):
|
|
|
4493 |
_elem82 = iprot.readI64();
|
|
|
4494 |
self.success.append(_elem82)
|
| 4008 |
mandeep.dh |
4495 |
iprot.readListEnd()
|
|
|
4496 |
else:
|
|
|
4497 |
iprot.skip(ftype)
|
|
|
4498 |
else:
|
|
|
4499 |
iprot.skip(ftype)
|
|
|
4500 |
iprot.readFieldEnd()
|
|
|
4501 |
iprot.readStructEnd()
|
|
|
4502 |
|
|
|
4503 |
def write(self, oprot):
|
|
|
4504 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4505 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4506 |
return
|
|
|
4507 |
oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
|
|
|
4508 |
if self.success is not None:
|
|
|
4509 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4510 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 7049 |
anupam.sin |
4511 |
for iter83 in self.success:
|
|
|
4512 |
oprot.writeI64(iter83)
|
| 4008 |
mandeep.dh |
4513 |
oprot.writeListEnd()
|
|
|
4514 |
oprot.writeFieldEnd()
|
|
|
4515 |
oprot.writeFieldStop()
|
|
|
4516 |
oprot.writeStructEnd()
|
|
|
4517 |
|
|
|
4518 |
def validate(self):
|
|
|
4519 |
return
|
|
|
4520 |
|
|
|
4521 |
|
|
|
4522 |
def __repr__(self):
|
|
|
4523 |
L = ['%s=%r' % (key, value)
|
|
|
4524 |
for key, value in self.__dict__.iteritems()]
|
|
|
4525 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4526 |
|
|
|
4527 |
def __eq__(self, other):
|
|
|
4528 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4529 |
|
|
|
4530 |
def __ne__(self, other):
|
|
|
4531 |
return not (self == other)
|
|
|
4532 |
|
|
|
4533 |
class markPaymentAsProcessed_args:
|
|
|
4534 |
"""
|
|
|
4535 |
Attributes:
|
|
|
4536 |
- paymentId
|
|
|
4537 |
- category
|
|
|
4538 |
"""
|
|
|
4539 |
|
|
|
4540 |
thrift_spec = (
|
|
|
4541 |
None, # 0
|
|
|
4542 |
(1, TType.I64, 'paymentId', None, None, ), # 1
|
|
|
4543 |
(2, TType.I32, 'category', None, None, ), # 2
|
|
|
4544 |
)
|
|
|
4545 |
|
|
|
4546 |
def __init__(self, paymentId=None, category=None,):
|
|
|
4547 |
self.paymentId = paymentId
|
|
|
4548 |
self.category = category
|
|
|
4549 |
|
|
|
4550 |
def read(self, iprot):
|
|
|
4551 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4552 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4553 |
return
|
|
|
4554 |
iprot.readStructBegin()
|
|
|
4555 |
while True:
|
|
|
4556 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4557 |
if ftype == TType.STOP:
|
|
|
4558 |
break
|
|
|
4559 |
if fid == 1:
|
|
|
4560 |
if ftype == TType.I64:
|
|
|
4561 |
self.paymentId = iprot.readI64();
|
|
|
4562 |
else:
|
|
|
4563 |
iprot.skip(ftype)
|
|
|
4564 |
elif fid == 2:
|
|
|
4565 |
if ftype == TType.I32:
|
|
|
4566 |
self.category = iprot.readI32();
|
|
|
4567 |
else:
|
|
|
4568 |
iprot.skip(ftype)
|
|
|
4569 |
else:
|
|
|
4570 |
iprot.skip(ftype)
|
|
|
4571 |
iprot.readFieldEnd()
|
|
|
4572 |
iprot.readStructEnd()
|
|
|
4573 |
|
|
|
4574 |
def write(self, oprot):
|
|
|
4575 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4576 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4577 |
return
|
|
|
4578 |
oprot.writeStructBegin('markPaymentAsProcessed_args')
|
|
|
4579 |
if self.paymentId is not None:
|
|
|
4580 |
oprot.writeFieldBegin('paymentId', TType.I64, 1)
|
|
|
4581 |
oprot.writeI64(self.paymentId)
|
|
|
4582 |
oprot.writeFieldEnd()
|
|
|
4583 |
if self.category is not None:
|
|
|
4584 |
oprot.writeFieldBegin('category', TType.I32, 2)
|
|
|
4585 |
oprot.writeI32(self.category)
|
|
|
4586 |
oprot.writeFieldEnd()
|
|
|
4587 |
oprot.writeFieldStop()
|
|
|
4588 |
oprot.writeStructEnd()
|
|
|
4589 |
|
|
|
4590 |
def validate(self):
|
|
|
4591 |
return
|
|
|
4592 |
|
|
|
4593 |
|
|
|
4594 |
def __repr__(self):
|
|
|
4595 |
L = ['%s=%r' % (key, value)
|
|
|
4596 |
for key, value in self.__dict__.iteritems()]
|
|
|
4597 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4598 |
|
|
|
4599 |
def __eq__(self, other):
|
|
|
4600 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4601 |
|
|
|
4602 |
def __ne__(self, other):
|
|
|
4603 |
return not (self == other)
|
|
|
4604 |
|
|
|
4605 |
class markPaymentAsProcessed_result:
|
|
|
4606 |
|
|
|
4607 |
thrift_spec = (
|
|
|
4608 |
)
|
|
|
4609 |
|
|
|
4610 |
def read(self, iprot):
|
|
|
4611 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4612 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4613 |
return
|
|
|
4614 |
iprot.readStructBegin()
|
|
|
4615 |
while True:
|
|
|
4616 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4617 |
if ftype == TType.STOP:
|
|
|
4618 |
break
|
|
|
4619 |
else:
|
|
|
4620 |
iprot.skip(ftype)
|
|
|
4621 |
iprot.readFieldEnd()
|
|
|
4622 |
iprot.readStructEnd()
|
|
|
4623 |
|
|
|
4624 |
def write(self, oprot):
|
|
|
4625 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4626 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4627 |
return
|
|
|
4628 |
oprot.writeStructBegin('markPaymentAsProcessed_result')
|
|
|
4629 |
oprot.writeFieldStop()
|
|
|
4630 |
oprot.writeStructEnd()
|
|
|
4631 |
|
|
|
4632 |
def validate(self):
|
|
|
4633 |
return
|
|
|
4634 |
|
|
|
4635 |
|
|
|
4636 |
def __repr__(self):
|
|
|
4637 |
L = ['%s=%r' % (key, value)
|
|
|
4638 |
for key, value in self.__dict__.iteritems()]
|
|
|
4639 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4640 |
|
|
|
4641 |
def __eq__(self, other):
|
|
|
4642 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4643 |
|
|
|
4644 |
def __ne__(self, other):
|
|
|
4645 |
return not (self == other)
|
| 8908 |
rajveer |
4646 |
|
|
|
4647 |
class validatePaymentAtGateway_args:
|
|
|
4648 |
"""
|
|
|
4649 |
Attributes:
|
|
|
4650 |
- merchantTxnId
|
|
|
4651 |
- amount
|
|
|
4652 |
- isDigital
|
|
|
4653 |
"""
|
|
|
4654 |
|
|
|
4655 |
thrift_spec = (
|
|
|
4656 |
None, # 0
|
|
|
4657 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
4658 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
4659 |
(3, TType.BOOL, 'isDigital', None, None, ), # 3
|
|
|
4660 |
)
|
|
|
4661 |
|
|
|
4662 |
def __init__(self, merchantTxnId=None, amount=None, isDigital=None,):
|
|
|
4663 |
self.merchantTxnId = merchantTxnId
|
|
|
4664 |
self.amount = amount
|
|
|
4665 |
self.isDigital = isDigital
|
|
|
4666 |
|
|
|
4667 |
def read(self, iprot):
|
|
|
4668 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4669 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4670 |
return
|
|
|
4671 |
iprot.readStructBegin()
|
|
|
4672 |
while True:
|
|
|
4673 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4674 |
if ftype == TType.STOP:
|
|
|
4675 |
break
|
|
|
4676 |
if fid == 1:
|
|
|
4677 |
if ftype == TType.I64:
|
|
|
4678 |
self.merchantTxnId = iprot.readI64();
|
|
|
4679 |
else:
|
|
|
4680 |
iprot.skip(ftype)
|
|
|
4681 |
elif fid == 2:
|
|
|
4682 |
if ftype == TType.DOUBLE:
|
|
|
4683 |
self.amount = iprot.readDouble();
|
|
|
4684 |
else:
|
|
|
4685 |
iprot.skip(ftype)
|
|
|
4686 |
elif fid == 3:
|
|
|
4687 |
if ftype == TType.BOOL:
|
|
|
4688 |
self.isDigital = iprot.readBool();
|
|
|
4689 |
else:
|
|
|
4690 |
iprot.skip(ftype)
|
|
|
4691 |
else:
|
|
|
4692 |
iprot.skip(ftype)
|
|
|
4693 |
iprot.readFieldEnd()
|
|
|
4694 |
iprot.readStructEnd()
|
|
|
4695 |
|
|
|
4696 |
def write(self, oprot):
|
|
|
4697 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4698 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4699 |
return
|
|
|
4700 |
oprot.writeStructBegin('validatePaymentAtGateway_args')
|
|
|
4701 |
if self.merchantTxnId is not None:
|
|
|
4702 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
4703 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4704 |
oprot.writeFieldEnd()
|
|
|
4705 |
if self.amount is not None:
|
|
|
4706 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
4707 |
oprot.writeDouble(self.amount)
|
|
|
4708 |
oprot.writeFieldEnd()
|
|
|
4709 |
if self.isDigital is not None:
|
|
|
4710 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 3)
|
|
|
4711 |
oprot.writeBool(self.isDigital)
|
|
|
4712 |
oprot.writeFieldEnd()
|
|
|
4713 |
oprot.writeFieldStop()
|
|
|
4714 |
oprot.writeStructEnd()
|
|
|
4715 |
|
|
|
4716 |
def validate(self):
|
|
|
4717 |
return
|
|
|
4718 |
|
|
|
4719 |
|
|
|
4720 |
def __repr__(self):
|
|
|
4721 |
L = ['%s=%r' % (key, value)
|
|
|
4722 |
for key, value in self.__dict__.iteritems()]
|
|
|
4723 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4724 |
|
|
|
4725 |
def __eq__(self, other):
|
|
|
4726 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4727 |
|
|
|
4728 |
def __ne__(self, other):
|
|
|
4729 |
return not (self == other)
|
|
|
4730 |
|
|
|
4731 |
class validatePaymentAtGateway_result:
|
|
|
4732 |
"""
|
|
|
4733 |
Attributes:
|
|
|
4734 |
- success
|
|
|
4735 |
- pe
|
|
|
4736 |
"""
|
|
|
4737 |
|
|
|
4738 |
thrift_spec = (
|
|
|
4739 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4740 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4741 |
)
|
|
|
4742 |
|
|
|
4743 |
def __init__(self, success=None, pe=None,):
|
|
|
4744 |
self.success = success
|
|
|
4745 |
self.pe = pe
|
|
|
4746 |
|
|
|
4747 |
def read(self, iprot):
|
|
|
4748 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4749 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4750 |
return
|
|
|
4751 |
iprot.readStructBegin()
|
|
|
4752 |
while True:
|
|
|
4753 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4754 |
if ftype == TType.STOP:
|
|
|
4755 |
break
|
|
|
4756 |
if fid == 0:
|
|
|
4757 |
if ftype == TType.BOOL:
|
|
|
4758 |
self.success = iprot.readBool();
|
|
|
4759 |
else:
|
|
|
4760 |
iprot.skip(ftype)
|
|
|
4761 |
elif fid == 1:
|
|
|
4762 |
if ftype == TType.STRUCT:
|
|
|
4763 |
self.pe = PaymentException()
|
|
|
4764 |
self.pe.read(iprot)
|
|
|
4765 |
else:
|
|
|
4766 |
iprot.skip(ftype)
|
|
|
4767 |
else:
|
|
|
4768 |
iprot.skip(ftype)
|
|
|
4769 |
iprot.readFieldEnd()
|
|
|
4770 |
iprot.readStructEnd()
|
|
|
4771 |
|
|
|
4772 |
def write(self, oprot):
|
|
|
4773 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4774 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4775 |
return
|
|
|
4776 |
oprot.writeStructBegin('validatePaymentAtGateway_result')
|
|
|
4777 |
if self.success is not None:
|
|
|
4778 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4779 |
oprot.writeBool(self.success)
|
|
|
4780 |
oprot.writeFieldEnd()
|
|
|
4781 |
if self.pe is not None:
|
|
|
4782 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4783 |
self.pe.write(oprot)
|
|
|
4784 |
oprot.writeFieldEnd()
|
|
|
4785 |
oprot.writeFieldStop()
|
|
|
4786 |
oprot.writeStructEnd()
|
|
|
4787 |
|
|
|
4788 |
def validate(self):
|
|
|
4789 |
return
|
|
|
4790 |
|
|
|
4791 |
|
|
|
4792 |
def __repr__(self):
|
|
|
4793 |
L = ['%s=%r' % (key, value)
|
|
|
4794 |
for key, value in self.__dict__.iteritems()]
|
|
|
4795 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4796 |
|
|
|
4797 |
def __eq__(self, other):
|
|
|
4798 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4799 |
|
|
|
4800 |
def __ne__(self, other):
|
|
|
4801 |
return not (self == other)
|