| 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 |
|
| 10478 |
amit.gupta |
153 |
def initializeHdfcPayment(self, merchantPaymentId, isMobile):
|
| 2559 |
chandransh |
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
|
| 10478 |
amit.gupta |
160 |
- isMobile
|
| 2559 |
chandransh |
161 |
"""
|
|
|
162 |
pass
|
|
|
163 |
|
| 10478 |
amit.gupta |
164 |
def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone, isMobile):
|
| 6050 |
anupam.sin |
165 |
"""
|
|
|
166 |
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 |
167 |
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 |
168 |
|
|
|
169 |
Parameters:
|
|
|
170 |
- merchantPaymentId
|
|
|
171 |
- rechargeOrderId
|
| 6228 |
anupam.sin |
172 |
- phone
|
| 10478 |
amit.gupta |
173 |
- isMobile
|
| 6050 |
anupam.sin |
174 |
"""
|
|
|
175 |
pass
|
|
|
176 |
|
| 10478 |
amit.gupta |
177 |
def initializeHdfcEmiPayment(self, merchantPaymentId, isMobile):
|
| 3616 |
chandransh |
178 |
"""
|
|
|
179 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
180 |
In case of any processing error, an exception is raised.
|
|
|
181 |
|
|
|
182 |
Parameters:
|
|
|
183 |
- merchantPaymentId
|
| 10478 |
amit.gupta |
184 |
- isMobile
|
| 3616 |
chandransh |
185 |
"""
|
|
|
186 |
pass
|
|
|
187 |
|
| 2685 |
chandransh |
188 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
189 |
"""
|
|
|
190 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
191 |
payment gateway which processed the payment for the corresponding transaction.
|
| 2687 |
chandransh |
192 |
Returns the id of the newly created Refund.
|
| 3431 |
rajveer |
193 |
|
| 2685 |
chandransh |
194 |
Parameters:
|
|
|
195 |
- orderId
|
|
|
196 |
- merchantTxnId
|
|
|
197 |
- amount
|
|
|
198 |
"""
|
|
|
199 |
pass
|
| 2559 |
chandransh |
200 |
|
| 8618 |
rajveer |
201 |
def capturePayment(self, merchantTxnId, isDigital):
|
| 3010 |
chandransh |
202 |
"""
|
|
|
203 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 6503 |
rajveer |
204 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
|
|
205 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
|
|
206 |
thrown with error code 106 in case capture was not possible due to connection
|
|
|
207 |
issue.
|
| 3431 |
rajveer |
208 |
|
| 3010 |
chandransh |
209 |
Parameters:
|
|
|
210 |
- merchantTxnId
|
| 8618 |
rajveer |
211 |
- isDigital
|
| 3010 |
chandransh |
212 |
"""
|
|
|
213 |
pass
|
| 2685 |
chandransh |
214 |
|
| 6486 |
rajveer |
215 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
|
|
216 |
"""
|
| 6503 |
rajveer |
217 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
218 |
transaction. If refund will be failed nothing will be updated in database.
|
| 6486 |
rajveer |
219 |
|
|
|
220 |
Parameters:
|
|
|
221 |
- merchantTxnId
|
|
|
222 |
- amount
|
|
|
223 |
- isDigital
|
|
|
224 |
"""
|
|
|
225 |
pass
|
|
|
226 |
|
| 3956 |
chandransh |
227 |
def partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
228 |
"""
|
|
|
229 |
Adds the given amount to the captured amount of a COD payment.
|
|
|
230 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
231 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
232 |
Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
233 |
and the corresponding transaction id.
|
| 3010 |
chandransh |
234 |
|
| 3956 |
chandransh |
235 |
Returns false if the payment couldn't be captured.
|
|
|
236 |
Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
237 |
|
|
|
238 |
Parameters:
|
|
|
239 |
- merchantTxnId
|
|
|
240 |
- amount
|
|
|
241 |
- xferBy
|
|
|
242 |
- xferTxnId
|
|
|
243 |
- xferDate
|
|
|
244 |
"""
|
|
|
245 |
pass
|
|
|
246 |
|
| 4008 |
mandeep.dh |
247 |
def getPaymentsRequiringExtraProcessing(self, category):
|
|
|
248 |
"""
|
|
|
249 |
Returns the list of payments that require some extra processing and
|
|
|
250 |
which belong to a particular category. This is currently used by CRM
|
|
|
251 |
application.
|
| 3956 |
chandransh |
252 |
|
| 4008 |
mandeep.dh |
253 |
Parameters:
|
|
|
254 |
- category
|
|
|
255 |
"""
|
|
|
256 |
pass
|
|
|
257 |
|
|
|
258 |
def markPaymentAsProcessed(self, paymentId, category):
|
|
|
259 |
"""
|
|
|
260 |
Marks a particular payment as processed for a particular cateogory.
|
|
|
261 |
It essentially deletes the payment if it is processed for a particular
|
|
|
262 |
category. This is currently used by CRM application.
|
|
|
263 |
|
|
|
264 |
Parameters:
|
|
|
265 |
- paymentId
|
|
|
266 |
- category
|
|
|
267 |
"""
|
|
|
268 |
pass
|
|
|
269 |
|
| 8914 |
rajveer |
270 |
def getPaymentStatusAtGateway(self, merchantTxnId, amount, isDigital):
|
| 8908 |
rajveer |
271 |
"""
|
|
|
272 |
Parameters:
|
|
|
273 |
- merchantTxnId
|
|
|
274 |
- amount
|
|
|
275 |
- isDigital
|
|
|
276 |
"""
|
|
|
277 |
pass
|
| 4008 |
mandeep.dh |
278 |
|
| 18577 |
manish.sha |
279 |
def getCreditorInfo(self, id, name):
|
|
|
280 |
"""
|
|
|
281 |
Parameters:
|
|
|
282 |
- id
|
|
|
283 |
- name
|
|
|
284 |
"""
|
|
|
285 |
pass
|
| 8908 |
rajveer |
286 |
|
| 18577 |
manish.sha |
287 |
def updateCreditorInfo(self, creditor):
|
|
|
288 |
"""
|
|
|
289 |
Parameters:
|
|
|
290 |
- creditor
|
|
|
291 |
"""
|
|
|
292 |
pass
|
|
|
293 |
|
|
|
294 |
def getUserSanctionDetails(self, userId):
|
|
|
295 |
"""
|
|
|
296 |
Parameters:
|
|
|
297 |
- userId
|
|
|
298 |
"""
|
|
|
299 |
pass
|
|
|
300 |
|
|
|
301 |
def getUserSanctionDetailsForCreditor(self, userId, creditorId):
|
|
|
302 |
"""
|
|
|
303 |
Parameters:
|
|
|
304 |
- userId
|
|
|
305 |
- creditorId
|
|
|
306 |
"""
|
|
|
307 |
pass
|
|
|
308 |
|
|
|
309 |
def updateUserSanction(self, userSanaction):
|
|
|
310 |
"""
|
|
|
311 |
Parameters:
|
|
|
312 |
- userSanaction
|
|
|
313 |
"""
|
|
|
314 |
pass
|
|
|
315 |
|
|
|
316 |
def getCreditHistoryRecordsForTransaction(self, paymentId, creditorId, creditTxnType):
|
|
|
317 |
"""
|
|
|
318 |
Parameters:
|
|
|
319 |
- paymentId
|
|
|
320 |
- creditorId
|
|
|
321 |
- creditTxnType
|
|
|
322 |
"""
|
|
|
323 |
pass
|
|
|
324 |
|
|
|
325 |
def getCreditHistoryRecordsForUserAndCreditor(self, userId, creditTxnType):
|
|
|
326 |
"""
|
|
|
327 |
Parameters:
|
|
|
328 |
- userId
|
|
|
329 |
- creditTxnType
|
|
|
330 |
"""
|
|
|
331 |
pass
|
|
|
332 |
|
|
|
333 |
def processCreditTransaction(self, paymentId, creditTxns):
|
|
|
334 |
"""
|
|
|
335 |
Parameters:
|
|
|
336 |
- paymentId
|
|
|
337 |
- creditTxns
|
|
|
338 |
"""
|
|
|
339 |
pass
|
|
|
340 |
|
|
|
341 |
def getLoanPayableForUserToCreditor(self, userId, creditorId, dueDate):
|
|
|
342 |
"""
|
|
|
343 |
Parameters:
|
|
|
344 |
- userId
|
|
|
345 |
- creditorId
|
|
|
346 |
- dueDate
|
|
|
347 |
"""
|
|
|
348 |
pass
|
|
|
349 |
|
|
|
350 |
|
| 3376 |
rajveer |
351 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 420 |
ashish |
352 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
353 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 420 |
ashish |
354 |
|
| 6050 |
anupam.sin |
355 |
def createPayment(self, userId, amount, gatewayId, txnId, isDigital):
|
| 420 |
ashish |
356 |
"""
|
| 696 |
rajveer |
357 |
create a new payment and return payment id, throws an exception if gateway is not active
|
| 3431 |
rajveer |
358 |
|
| 420 |
ashish |
359 |
Parameters:
|
| 696 |
rajveer |
360 |
- userId
|
| 420 |
ashish |
361 |
- amount
|
| 696 |
rajveer |
362 |
- gatewayId
|
|
|
363 |
- txnId
|
| 6050 |
anupam.sin |
364 |
- isDigital
|
| 420 |
ashish |
365 |
"""
|
| 6050 |
anupam.sin |
366 |
self.send_createPayment(userId, amount, gatewayId, txnId, isDigital)
|
| 420 |
ashish |
367 |
return self.recv_createPayment()
|
|
|
368 |
|
| 6050 |
anupam.sin |
369 |
def send_createPayment(self, userId, amount, gatewayId, txnId, isDigital):
|
| 420 |
ashish |
370 |
self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
|
|
|
371 |
args = createPayment_args()
|
| 696 |
rajveer |
372 |
args.userId = userId
|
| 420 |
ashish |
373 |
args.amount = amount
|
| 696 |
rajveer |
374 |
args.gatewayId = gatewayId
|
|
|
375 |
args.txnId = txnId
|
| 6050 |
anupam.sin |
376 |
args.isDigital = isDigital
|
| 420 |
ashish |
377 |
args.write(self._oprot)
|
|
|
378 |
self._oprot.writeMessageEnd()
|
|
|
379 |
self._oprot.trans.flush()
|
|
|
380 |
|
|
|
381 |
def recv_createPayment(self, ):
|
|
|
382 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
383 |
if mtype == TMessageType.EXCEPTION:
|
|
|
384 |
x = TApplicationException()
|
|
|
385 |
x.read(self._iprot)
|
|
|
386 |
self._iprot.readMessageEnd()
|
|
|
387 |
raise x
|
|
|
388 |
result = createPayment_result()
|
|
|
389 |
result.read(self._iprot)
|
|
|
390 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
391 |
if result.success is not None:
|
| 420 |
ashish |
392 |
return result.success
|
| 3431 |
rajveer |
393 |
if result.pe is not None:
|
| 420 |
ashish |
394 |
raise result.pe
|
|
|
395 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
|
|
396 |
|
| 696 |
rajveer |
397 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
398 |
"""
|
| 4141 |
chandransh |
399 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 3431 |
rajveer |
400 |
|
| 420 |
ashish |
401 |
Parameters:
|
|
|
402 |
- userId
|
| 696 |
rajveer |
403 |
- fromTime
|
|
|
404 |
- toTime
|
| 420 |
ashish |
405 |
- status
|
| 696 |
rajveer |
406 |
- gatewayId
|
| 420 |
ashish |
407 |
"""
|
| 696 |
rajveer |
408 |
self.send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
409 |
return self.recv_getPaymentsForUser()
|
|
|
410 |
|
| 696 |
rajveer |
411 |
def send_getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
412 |
self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
|
|
|
413 |
args = getPaymentsForUser_args()
|
|
|
414 |
args.userId = userId
|
| 696 |
rajveer |
415 |
args.fromTime = fromTime
|
|
|
416 |
args.toTime = toTime
|
| 420 |
ashish |
417 |
args.status = status
|
| 696 |
rajveer |
418 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
419 |
args.write(self._oprot)
|
|
|
420 |
self._oprot.writeMessageEnd()
|
|
|
421 |
self._oprot.trans.flush()
|
|
|
422 |
|
|
|
423 |
def recv_getPaymentsForUser(self, ):
|
|
|
424 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
425 |
if mtype == TMessageType.EXCEPTION:
|
|
|
426 |
x = TApplicationException()
|
|
|
427 |
x.read(self._iprot)
|
|
|
428 |
self._iprot.readMessageEnd()
|
|
|
429 |
raise x
|
|
|
430 |
result = getPaymentsForUser_result()
|
|
|
431 |
result.read(self._iprot)
|
|
|
432 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
433 |
if result.success is not None:
|
| 420 |
ashish |
434 |
return result.success
|
| 3431 |
rajveer |
435 |
if result.pe is not None:
|
| 420 |
ashish |
436 |
raise result.pe
|
|
|
437 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
|
|
438 |
|
| 696 |
rajveer |
439 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
440 |
"""
|
| 4141 |
chandransh |
441 |
Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
|
| 3431 |
rajveer |
442 |
|
| 420 |
ashish |
443 |
Parameters:
|
| 696 |
rajveer |
444 |
- fromTime
|
|
|
445 |
- toTime
|
| 420 |
ashish |
446 |
- status
|
| 696 |
rajveer |
447 |
- gatewayId
|
| 420 |
ashish |
448 |
"""
|
| 696 |
rajveer |
449 |
self.send_getPayments(fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
450 |
return self.recv_getPayments()
|
|
|
451 |
|
| 696 |
rajveer |
452 |
def send_getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
453 |
self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
|
|
|
454 |
args = getPayments_args()
|
| 696 |
rajveer |
455 |
args.fromTime = fromTime
|
|
|
456 |
args.toTime = toTime
|
| 420 |
ashish |
457 |
args.status = status
|
| 696 |
rajveer |
458 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
459 |
args.write(self._oprot)
|
|
|
460 |
self._oprot.writeMessageEnd()
|
|
|
461 |
self._oprot.trans.flush()
|
|
|
462 |
|
|
|
463 |
def recv_getPayments(self, ):
|
|
|
464 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
465 |
if mtype == TMessageType.EXCEPTION:
|
|
|
466 |
x = TApplicationException()
|
|
|
467 |
x.read(self._iprot)
|
|
|
468 |
self._iprot.readMessageEnd()
|
|
|
469 |
raise x
|
|
|
470 |
result = getPayments_result()
|
|
|
471 |
result.read(self._iprot)
|
|
|
472 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
473 |
if result.success is not None:
|
| 420 |
ashish |
474 |
return result.success
|
| 3431 |
rajveer |
475 |
if result.pe is not None:
|
| 420 |
ashish |
476 |
raise result.pe
|
|
|
477 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
|
|
478 |
|
| 4141 |
chandransh |
479 |
def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
480 |
"""
|
|
|
481 |
Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
|
|
|
482 |
|
|
|
483 |
Parameters:
|
|
|
484 |
- fromTime
|
|
|
485 |
- toTime
|
|
|
486 |
- gatewayId
|
|
|
487 |
"""
|
|
|
488 |
self.send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId)
|
|
|
489 |
return self.recv_getPaymentsByCapturedDate()
|
|
|
490 |
|
|
|
491 |
def send_getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
492 |
self._oprot.writeMessageBegin('getPaymentsByCapturedDate', TMessageType.CALL, self._seqid)
|
|
|
493 |
args = getPaymentsByCapturedDate_args()
|
|
|
494 |
args.fromTime = fromTime
|
|
|
495 |
args.toTime = toTime
|
|
|
496 |
args.gatewayId = gatewayId
|
|
|
497 |
args.write(self._oprot)
|
|
|
498 |
self._oprot.writeMessageEnd()
|
|
|
499 |
self._oprot.trans.flush()
|
|
|
500 |
|
|
|
501 |
def recv_getPaymentsByCapturedDate(self, ):
|
|
|
502 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
503 |
if mtype == TMessageType.EXCEPTION:
|
|
|
504 |
x = TApplicationException()
|
|
|
505 |
x.read(self._iprot)
|
|
|
506 |
self._iprot.readMessageEnd()
|
|
|
507 |
raise x
|
|
|
508 |
result = getPaymentsByCapturedDate_result()
|
|
|
509 |
result.read(self._iprot)
|
|
|
510 |
self._iprot.readMessageEnd()
|
|
|
511 |
if result.success is not None:
|
|
|
512 |
return result.success
|
|
|
513 |
if result.pe is not None:
|
|
|
514 |
raise result.pe
|
|
|
515 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
|
|
|
516 |
|
| 420 |
ashish |
517 |
def getPaymentGateway(self, id):
|
|
|
518 |
"""
|
| 4141 |
chandransh |
519 |
Get the gateway for the given id.
|
| 3431 |
rajveer |
520 |
|
| 420 |
ashish |
521 |
Parameters:
|
|
|
522 |
- id
|
|
|
523 |
"""
|
|
|
524 |
self.send_getPaymentGateway(id)
|
|
|
525 |
return self.recv_getPaymentGateway()
|
|
|
526 |
|
|
|
527 |
def send_getPaymentGateway(self, id):
|
|
|
528 |
self._oprot.writeMessageBegin('getPaymentGateway', TMessageType.CALL, self._seqid)
|
|
|
529 |
args = getPaymentGateway_args()
|
|
|
530 |
args.id = id
|
|
|
531 |
args.write(self._oprot)
|
|
|
532 |
self._oprot.writeMessageEnd()
|
|
|
533 |
self._oprot.trans.flush()
|
|
|
534 |
|
|
|
535 |
def recv_getPaymentGateway(self, ):
|
|
|
536 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
537 |
if mtype == TMessageType.EXCEPTION:
|
|
|
538 |
x = TApplicationException()
|
|
|
539 |
x.read(self._iprot)
|
|
|
540 |
self._iprot.readMessageEnd()
|
|
|
541 |
raise x
|
|
|
542 |
result = getPaymentGateway_result()
|
|
|
543 |
result.read(self._iprot)
|
|
|
544 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
545 |
if result.success is not None:
|
| 420 |
ashish |
546 |
return result.success
|
| 3431 |
rajveer |
547 |
if result.pe is not None:
|
| 420 |
ashish |
548 |
raise result.pe
|
|
|
549 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
|
|
550 |
|
| 4600 |
varun.gupt |
551 |
def getActivePaymentGateways(self, ):
|
|
|
552 |
"""
|
|
|
553 |
Get all active Payment Gateways
|
|
|
554 |
|
|
|
555 |
"""
|
|
|
556 |
self.send_getActivePaymentGateways()
|
|
|
557 |
return self.recv_getActivePaymentGateways()
|
|
|
558 |
|
|
|
559 |
def send_getActivePaymentGateways(self, ):
|
|
|
560 |
self._oprot.writeMessageBegin('getActivePaymentGateways', TMessageType.CALL, self._seqid)
|
|
|
561 |
args = getActivePaymentGateways_args()
|
|
|
562 |
args.write(self._oprot)
|
|
|
563 |
self._oprot.writeMessageEnd()
|
|
|
564 |
self._oprot.trans.flush()
|
|
|
565 |
|
|
|
566 |
def recv_getActivePaymentGateways(self, ):
|
|
|
567 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
568 |
if mtype == TMessageType.EXCEPTION:
|
|
|
569 |
x = TApplicationException()
|
|
|
570 |
x.read(self._iprot)
|
|
|
571 |
self._iprot.readMessageEnd()
|
|
|
572 |
raise x
|
|
|
573 |
result = getActivePaymentGateways_result()
|
|
|
574 |
result.read(self._iprot)
|
|
|
575 |
self._iprot.readMessageEnd()
|
|
|
576 |
if result.success is not None:
|
|
|
577 |
return result.success
|
|
|
578 |
if result.pe is not None:
|
|
|
579 |
raise result.pe
|
|
|
580 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
|
|
|
581 |
|
| 696 |
rajveer |
582 |
def getPayment(self, id):
|
| 420 |
ashish |
583 |
"""
|
| 696 |
rajveer |
584 |
Get a particular payment info
|
| 3431 |
rajveer |
585 |
|
|
|
586 |
|
| 420 |
ashish |
587 |
Parameters:
|
|
|
588 |
- id
|
|
|
589 |
"""
|
| 696 |
rajveer |
590 |
self.send_getPayment(id)
|
|
|
591 |
return self.recv_getPayment()
|
| 420 |
ashish |
592 |
|
| 696 |
rajveer |
593 |
def send_getPayment(self, id):
|
|
|
594 |
self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
|
|
|
595 |
args = getPayment_args()
|
| 420 |
ashish |
596 |
args.id = id
|
|
|
597 |
args.write(self._oprot)
|
|
|
598 |
self._oprot.writeMessageEnd()
|
|
|
599 |
self._oprot.trans.flush()
|
|
|
600 |
|
| 696 |
rajveer |
601 |
def recv_getPayment(self, ):
|
| 420 |
ashish |
602 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
603 |
if mtype == TMessageType.EXCEPTION:
|
|
|
604 |
x = TApplicationException()
|
|
|
605 |
x.read(self._iprot)
|
|
|
606 |
self._iprot.readMessageEnd()
|
|
|
607 |
raise x
|
| 696 |
rajveer |
608 |
result = getPayment_result()
|
| 420 |
ashish |
609 |
result.read(self._iprot)
|
|
|
610 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
611 |
if result.success is not None:
|
| 696 |
rajveer |
612 |
return result.success
|
| 3431 |
rajveer |
613 |
if result.pe is not None:
|
| 420 |
ashish |
614 |
raise result.pe
|
| 696 |
rajveer |
615 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
616 |
|
| 696 |
rajveer |
617 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
618 |
"""
|
| 4600 |
varun.gupt |
619 |
Get payments for a transaction. Will raise exception.
|
| 3431 |
rajveer |
620 |
|
|
|
621 |
|
| 420 |
ashish |
622 |
Parameters:
|
| 696 |
rajveer |
623 |
- txnId
|
| 420 |
ashish |
624 |
"""
|
| 696 |
rajveer |
625 |
self.send_getPaymentForTxnId(txnId)
|
|
|
626 |
return self.recv_getPaymentForTxnId()
|
| 420 |
ashish |
627 |
|
| 696 |
rajveer |
628 |
def send_getPaymentForTxnId(self, txnId):
|
|
|
629 |
self._oprot.writeMessageBegin('getPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
630 |
args = getPaymentForTxnId_args()
|
|
|
631 |
args.txnId = txnId
|
| 420 |
ashish |
632 |
args.write(self._oprot)
|
|
|
633 |
self._oprot.writeMessageEnd()
|
|
|
634 |
self._oprot.trans.flush()
|
|
|
635 |
|
| 696 |
rajveer |
636 |
def recv_getPaymentForTxnId(self, ):
|
| 420 |
ashish |
637 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
638 |
if mtype == TMessageType.EXCEPTION:
|
|
|
639 |
x = TApplicationException()
|
|
|
640 |
x.read(self._iprot)
|
|
|
641 |
self._iprot.readMessageEnd()
|
|
|
642 |
raise x
|
| 696 |
rajveer |
643 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
644 |
result.read(self._iprot)
|
|
|
645 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
646 |
if result.success is not None:
|
| 420 |
ashish |
647 |
return result.success
|
| 3431 |
rajveer |
648 |
if result.pe is not None:
|
| 420 |
ashish |
649 |
raise result.pe
|
| 696 |
rajveer |
650 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
651 |
|
| 7049 |
anupam.sin |
652 |
def getPaymentForRechargeTxnId(self, txnId):
|
|
|
653 |
"""
|
|
|
654 |
Get payments for a recharge transaction id. Will raise exception.
|
|
|
655 |
|
|
|
656 |
|
|
|
657 |
Parameters:
|
|
|
658 |
- txnId
|
|
|
659 |
"""
|
|
|
660 |
self.send_getPaymentForRechargeTxnId(txnId)
|
|
|
661 |
return self.recv_getPaymentForRechargeTxnId()
|
|
|
662 |
|
|
|
663 |
def send_getPaymentForRechargeTxnId(self, txnId):
|
|
|
664 |
self._oprot.writeMessageBegin('getPaymentForRechargeTxnId', TMessageType.CALL, self._seqid)
|
|
|
665 |
args = getPaymentForRechargeTxnId_args()
|
|
|
666 |
args.txnId = txnId
|
|
|
667 |
args.write(self._oprot)
|
|
|
668 |
self._oprot.writeMessageEnd()
|
|
|
669 |
self._oprot.trans.flush()
|
|
|
670 |
|
|
|
671 |
def recv_getPaymentForRechargeTxnId(self, ):
|
|
|
672 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
673 |
if mtype == TMessageType.EXCEPTION:
|
|
|
674 |
x = TApplicationException()
|
|
|
675 |
x.read(self._iprot)
|
|
|
676 |
self._iprot.readMessageEnd()
|
|
|
677 |
raise x
|
|
|
678 |
result = getPaymentForRechargeTxnId_result()
|
|
|
679 |
result.read(self._iprot)
|
|
|
680 |
self._iprot.readMessageEnd()
|
|
|
681 |
if result.success is not None:
|
|
|
682 |
return result.success
|
|
|
683 |
if result.pe is not None:
|
|
|
684 |
raise result.pe
|
|
|
685 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForRechargeTxnId failed: unknown result");
|
|
|
686 |
|
| 4600 |
varun.gupt |
687 |
def getSuccessfulPaymentForTxnId(self, txnId):
|
|
|
688 |
"""
|
|
|
689 |
Get successful payment for a transaction. Will raise exception.
|
|
|
690 |
|
|
|
691 |
|
|
|
692 |
Parameters:
|
|
|
693 |
- txnId
|
|
|
694 |
"""
|
|
|
695 |
self.send_getSuccessfulPaymentForTxnId(txnId)
|
|
|
696 |
return self.recv_getSuccessfulPaymentForTxnId()
|
|
|
697 |
|
|
|
698 |
def send_getSuccessfulPaymentForTxnId(self, txnId):
|
|
|
699 |
self._oprot.writeMessageBegin('getSuccessfulPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
700 |
args = getSuccessfulPaymentForTxnId_args()
|
|
|
701 |
args.txnId = txnId
|
|
|
702 |
args.write(self._oprot)
|
|
|
703 |
self._oprot.writeMessageEnd()
|
|
|
704 |
self._oprot.trans.flush()
|
|
|
705 |
|
|
|
706 |
def recv_getSuccessfulPaymentForTxnId(self, ):
|
|
|
707 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
708 |
if mtype == TMessageType.EXCEPTION:
|
|
|
709 |
x = TApplicationException()
|
|
|
710 |
x.read(self._iprot)
|
|
|
711 |
self._iprot.readMessageEnd()
|
|
|
712 |
raise x
|
|
|
713 |
result = getSuccessfulPaymentForTxnId_result()
|
|
|
714 |
result.read(self._iprot)
|
|
|
715 |
self._iprot.readMessageEnd()
|
|
|
716 |
if result.success is not None:
|
|
|
717 |
return result.success
|
|
|
718 |
if result.pe is not None:
|
|
|
719 |
raise result.pe
|
|
|
720 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
|
|
|
721 |
|
| 1120 |
rajveer |
722 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
723 |
"""
|
| 696 |
rajveer |
724 |
mark payment successful and store parameters
|
| 3431 |
rajveer |
725 |
|
|
|
726 |
|
| 420 |
ashish |
727 |
Parameters:
|
|
|
728 |
- id
|
| 696 |
rajveer |
729 |
- gatewayPaymentId
|
|
|
730 |
- sessionId
|
|
|
731 |
- gatewayTxnStatus
|
|
|
732 |
- description
|
|
|
733 |
- gatewayTxnId
|
|
|
734 |
- authCode
|
|
|
735 |
- referenceCode
|
|
|
736 |
- errorCode
|
|
|
737 |
- status
|
| 1120 |
rajveer |
738 |
- gatewayTxnDate
|
| 696 |
rajveer |
739 |
- attributes
|
| 420 |
ashish |
740 |
"""
|
| 1120 |
rajveer |
741 |
self.send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes)
|
| 696 |
rajveer |
742 |
return self.recv_updatePaymentDetails()
|
| 420 |
ashish |
743 |
|
| 1120 |
rajveer |
744 |
def send_updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 696 |
rajveer |
745 |
self._oprot.writeMessageBegin('updatePaymentDetails', TMessageType.CALL, self._seqid)
|
|
|
746 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
747 |
args.id = id
|
| 696 |
rajveer |
748 |
args.gatewayPaymentId = gatewayPaymentId
|
|
|
749 |
args.sessionId = sessionId
|
|
|
750 |
args.gatewayTxnStatus = gatewayTxnStatus
|
|
|
751 |
args.description = description
|
|
|
752 |
args.gatewayTxnId = gatewayTxnId
|
|
|
753 |
args.authCode = authCode
|
|
|
754 |
args.referenceCode = referenceCode
|
|
|
755 |
args.errorCode = errorCode
|
|
|
756 |
args.status = status
|
| 1120 |
rajveer |
757 |
args.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
758 |
args.attributes = attributes
|
| 420 |
ashish |
759 |
args.write(self._oprot)
|
|
|
760 |
self._oprot.writeMessageEnd()
|
|
|
761 |
self._oprot.trans.flush()
|
|
|
762 |
|
| 696 |
rajveer |
763 |
def recv_updatePaymentDetails(self, ):
|
| 420 |
ashish |
764 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
765 |
if mtype == TMessageType.EXCEPTION:
|
|
|
766 |
x = TApplicationException()
|
|
|
767 |
x.read(self._iprot)
|
|
|
768 |
self._iprot.readMessageEnd()
|
|
|
769 |
raise x
|
| 696 |
rajveer |
770 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
771 |
result.read(self._iprot)
|
|
|
772 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
773 |
if result.success is not None:
|
| 696 |
rajveer |
774 |
return result.success
|
| 3431 |
rajveer |
775 |
if result.pe is not None:
|
| 420 |
ashish |
776 |
raise result.pe
|
| 696 |
rajveer |
777 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
778 |
|
| 1731 |
ankur.sing |
779 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
780 |
"""
|
| 1731 |
ankur.sing |
781 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
782 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
783 |
"""
|
| 1731 |
ankur.sing |
784 |
self.send_getSuccessfulPaymentsAmountRange()
|
|
|
785 |
return self.recv_getSuccessfulPaymentsAmountRange()
|
| 420 |
ashish |
786 |
|
| 1731 |
ankur.sing |
787 |
def send_getSuccessfulPaymentsAmountRange(self, ):
|
|
|
788 |
self._oprot.writeMessageBegin('getSuccessfulPaymentsAmountRange', TMessageType.CALL, self._seqid)
|
|
|
789 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
790 |
args.write(self._oprot)
|
|
|
791 |
self._oprot.writeMessageEnd()
|
|
|
792 |
self._oprot.trans.flush()
|
|
|
793 |
|
| 1731 |
ankur.sing |
794 |
def recv_getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
795 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
796 |
if mtype == TMessageType.EXCEPTION:
|
|
|
797 |
x = TApplicationException()
|
|
|
798 |
x.read(self._iprot)
|
|
|
799 |
self._iprot.readMessageEnd()
|
|
|
800 |
raise x
|
| 1731 |
ankur.sing |
801 |
result = getSuccessfulPaymentsAmountRange_result()
|
| 1627 |
ankur.sing |
802 |
result.read(self._iprot)
|
|
|
803 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
804 |
if result.success is not None:
|
| 1627 |
ankur.sing |
805 |
return result.success
|
| 1731 |
ankur.sing |
806 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1627 |
ankur.sing |
807 |
|
| 10478 |
amit.gupta |
808 |
def initializeHdfcPayment(self, merchantPaymentId, isMobile):
|
| 2559 |
chandransh |
809 |
"""
|
|
|
810 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
811 |
In case of any processing error, an exception is raised.
|
| 3431 |
rajveer |
812 |
|
| 2559 |
chandransh |
813 |
Parameters:
|
|
|
814 |
- merchantPaymentId
|
| 10478 |
amit.gupta |
815 |
- isMobile
|
| 2559 |
chandransh |
816 |
"""
|
| 10478 |
amit.gupta |
817 |
self.send_initializeHdfcPayment(merchantPaymentId, isMobile)
|
| 2559 |
chandransh |
818 |
return self.recv_initializeHdfcPayment()
|
|
|
819 |
|
| 10478 |
amit.gupta |
820 |
def send_initializeHdfcPayment(self, merchantPaymentId, isMobile):
|
| 2559 |
chandransh |
821 |
self._oprot.writeMessageBegin('initializeHdfcPayment', TMessageType.CALL, self._seqid)
|
|
|
822 |
args = initializeHdfcPayment_args()
|
|
|
823 |
args.merchantPaymentId = merchantPaymentId
|
| 10478 |
amit.gupta |
824 |
args.isMobile = isMobile
|
| 2559 |
chandransh |
825 |
args.write(self._oprot)
|
|
|
826 |
self._oprot.writeMessageEnd()
|
|
|
827 |
self._oprot.trans.flush()
|
|
|
828 |
|
|
|
829 |
def recv_initializeHdfcPayment(self, ):
|
|
|
830 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
831 |
if mtype == TMessageType.EXCEPTION:
|
|
|
832 |
x = TApplicationException()
|
|
|
833 |
x.read(self._iprot)
|
|
|
834 |
self._iprot.readMessageEnd()
|
|
|
835 |
raise x
|
|
|
836 |
result = initializeHdfcPayment_result()
|
|
|
837 |
result.read(self._iprot)
|
|
|
838 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
839 |
if result.success is not None:
|
| 2559 |
chandransh |
840 |
return result.success
|
| 3431 |
rajveer |
841 |
if result.pe is not None:
|
| 2559 |
chandransh |
842 |
raise result.pe
|
|
|
843 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
|
|
844 |
|
| 10478 |
amit.gupta |
845 |
def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone, isMobile):
|
| 6050 |
anupam.sin |
846 |
"""
|
|
|
847 |
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 |
848 |
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 |
849 |
|
|
|
850 |
Parameters:
|
|
|
851 |
- merchantPaymentId
|
|
|
852 |
- rechargeOrderId
|
| 6228 |
anupam.sin |
853 |
- phone
|
| 10478 |
amit.gupta |
854 |
- isMobile
|
| 6050 |
anupam.sin |
855 |
"""
|
| 10478 |
amit.gupta |
856 |
self.send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone, isMobile)
|
| 6050 |
anupam.sin |
857 |
return self.recv_doHdfcPaymentForDigitalOrder()
|
|
|
858 |
|
| 10478 |
amit.gupta |
859 |
def send_doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone, isMobile):
|
| 6050 |
anupam.sin |
860 |
self._oprot.writeMessageBegin('doHdfcPaymentForDigitalOrder', TMessageType.CALL, self._seqid)
|
|
|
861 |
args = doHdfcPaymentForDigitalOrder_args()
|
|
|
862 |
args.merchantPaymentId = merchantPaymentId
|
|
|
863 |
args.rechargeOrderId = rechargeOrderId
|
| 6228 |
anupam.sin |
864 |
args.phone = phone
|
| 10478 |
amit.gupta |
865 |
args.isMobile = isMobile
|
| 6050 |
anupam.sin |
866 |
args.write(self._oprot)
|
|
|
867 |
self._oprot.writeMessageEnd()
|
|
|
868 |
self._oprot.trans.flush()
|
|
|
869 |
|
|
|
870 |
def recv_doHdfcPaymentForDigitalOrder(self, ):
|
|
|
871 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
872 |
if mtype == TMessageType.EXCEPTION:
|
|
|
873 |
x = TApplicationException()
|
|
|
874 |
x.read(self._iprot)
|
|
|
875 |
self._iprot.readMessageEnd()
|
|
|
876 |
raise x
|
|
|
877 |
result = doHdfcPaymentForDigitalOrder_result()
|
|
|
878 |
result.read(self._iprot)
|
|
|
879 |
self._iprot.readMessageEnd()
|
|
|
880 |
if result.success is not None:
|
|
|
881 |
return result.success
|
|
|
882 |
if result.pe is not None:
|
|
|
883 |
raise result.pe
|
|
|
884 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
|
|
|
885 |
|
| 10478 |
amit.gupta |
886 |
def initializeHdfcEmiPayment(self, merchantPaymentId, isMobile):
|
| 3616 |
chandransh |
887 |
"""
|
|
|
888 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
889 |
In case of any processing error, an exception is raised.
|
|
|
890 |
|
|
|
891 |
Parameters:
|
|
|
892 |
- merchantPaymentId
|
| 10478 |
amit.gupta |
893 |
- isMobile
|
| 3616 |
chandransh |
894 |
"""
|
| 10478 |
amit.gupta |
895 |
self.send_initializeHdfcEmiPayment(merchantPaymentId, isMobile)
|
| 3616 |
chandransh |
896 |
return self.recv_initializeHdfcEmiPayment()
|
|
|
897 |
|
| 10478 |
amit.gupta |
898 |
def send_initializeHdfcEmiPayment(self, merchantPaymentId, isMobile):
|
| 3616 |
chandransh |
899 |
self._oprot.writeMessageBegin('initializeHdfcEmiPayment', TMessageType.CALL, self._seqid)
|
|
|
900 |
args = initializeHdfcEmiPayment_args()
|
|
|
901 |
args.merchantPaymentId = merchantPaymentId
|
| 10478 |
amit.gupta |
902 |
args.isMobile = isMobile
|
| 3616 |
chandransh |
903 |
args.write(self._oprot)
|
|
|
904 |
self._oprot.writeMessageEnd()
|
|
|
905 |
self._oprot.trans.flush()
|
|
|
906 |
|
|
|
907 |
def recv_initializeHdfcEmiPayment(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 = initializeHdfcEmiPayment_result()
|
|
|
915 |
result.read(self._iprot)
|
|
|
916 |
self._iprot.readMessageEnd()
|
|
|
917 |
if result.success is not None:
|
|
|
918 |
return result.success
|
|
|
919 |
if result.pe is not None:
|
|
|
920 |
raise result.pe
|
|
|
921 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
|
|
|
922 |
|
| 2685 |
chandransh |
923 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
924 |
"""
|
|
|
925 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
926 |
payment gateway which processed the payment for the corresponding transaction.
|
| 2687 |
chandransh |
927 |
Returns the id of the newly created Refund.
|
| 3431 |
rajveer |
928 |
|
| 2685 |
chandransh |
929 |
Parameters:
|
|
|
930 |
- orderId
|
|
|
931 |
- merchantTxnId
|
|
|
932 |
- amount
|
|
|
933 |
"""
|
|
|
934 |
self.send_createRefund(orderId, merchantTxnId, amount)
|
|
|
935 |
return self.recv_createRefund()
|
| 2559 |
chandransh |
936 |
|
| 2685 |
chandransh |
937 |
def send_createRefund(self, orderId, merchantTxnId, amount):
|
|
|
938 |
self._oprot.writeMessageBegin('createRefund', TMessageType.CALL, self._seqid)
|
|
|
939 |
args = createRefund_args()
|
|
|
940 |
args.orderId = orderId
|
|
|
941 |
args.merchantTxnId = merchantTxnId
|
|
|
942 |
args.amount = amount
|
|
|
943 |
args.write(self._oprot)
|
|
|
944 |
self._oprot.writeMessageEnd()
|
|
|
945 |
self._oprot.trans.flush()
|
|
|
946 |
|
|
|
947 |
def recv_createRefund(self, ):
|
|
|
948 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
949 |
if mtype == TMessageType.EXCEPTION:
|
|
|
950 |
x = TApplicationException()
|
|
|
951 |
x.read(self._iprot)
|
|
|
952 |
self._iprot.readMessageEnd()
|
|
|
953 |
raise x
|
|
|
954 |
result = createRefund_result()
|
|
|
955 |
result.read(self._iprot)
|
|
|
956 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
957 |
if result.success is not None:
|
| 2685 |
chandransh |
958 |
return result.success
|
| 3431 |
rajveer |
959 |
if result.pe is not None:
|
| 2685 |
chandransh |
960 |
raise result.pe
|
|
|
961 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
|
|
962 |
|
| 8618 |
rajveer |
963 |
def capturePayment(self, merchantTxnId, isDigital):
|
| 3010 |
chandransh |
964 |
"""
|
|
|
965 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 6503 |
rajveer |
966 |
transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
|
|
967 |
code 104 is thrown in case no payments are found for the transaction id passed. PaymentException is also
|
|
|
968 |
thrown with error code 106 in case capture was not possible due to connection
|
|
|
969 |
issue.
|
| 3431 |
rajveer |
970 |
|
| 3010 |
chandransh |
971 |
Parameters:
|
|
|
972 |
- merchantTxnId
|
| 8618 |
rajveer |
973 |
- isDigital
|
| 3010 |
chandransh |
974 |
"""
|
| 8618 |
rajveer |
975 |
self.send_capturePayment(merchantTxnId, isDigital)
|
| 3010 |
chandransh |
976 |
return self.recv_capturePayment()
|
| 2685 |
chandransh |
977 |
|
| 8618 |
rajveer |
978 |
def send_capturePayment(self, merchantTxnId, isDigital):
|
| 3010 |
chandransh |
979 |
self._oprot.writeMessageBegin('capturePayment', TMessageType.CALL, self._seqid)
|
|
|
980 |
args = capturePayment_args()
|
|
|
981 |
args.merchantTxnId = merchantTxnId
|
| 8618 |
rajveer |
982 |
args.isDigital = isDigital
|
| 3010 |
chandransh |
983 |
args.write(self._oprot)
|
|
|
984 |
self._oprot.writeMessageEnd()
|
|
|
985 |
self._oprot.trans.flush()
|
|
|
986 |
|
|
|
987 |
def recv_capturePayment(self, ):
|
|
|
988 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
989 |
if mtype == TMessageType.EXCEPTION:
|
|
|
990 |
x = TApplicationException()
|
|
|
991 |
x.read(self._iprot)
|
|
|
992 |
self._iprot.readMessageEnd()
|
|
|
993 |
raise x
|
|
|
994 |
result = capturePayment_result()
|
|
|
995 |
result.read(self._iprot)
|
|
|
996 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
997 |
if result.success is not None:
|
| 3010 |
chandransh |
998 |
return result.success
|
| 3431 |
rajveer |
999 |
if result.pe is not None:
|
| 3010 |
chandransh |
1000 |
raise result.pe
|
|
|
1001 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
|
|
1002 |
|
| 6486 |
rajveer |
1003 |
def refundPayment(self, merchantTxnId, amount, isDigital):
|
|
|
1004 |
"""
|
| 6503 |
rajveer |
1005 |
Refund the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
1006 |
transaction. If refund will be failed nothing will be updated in database.
|
| 6486 |
rajveer |
1007 |
|
|
|
1008 |
Parameters:
|
|
|
1009 |
- merchantTxnId
|
|
|
1010 |
- amount
|
|
|
1011 |
- isDigital
|
|
|
1012 |
"""
|
|
|
1013 |
self.send_refundPayment(merchantTxnId, amount, isDigital)
|
|
|
1014 |
return self.recv_refundPayment()
|
|
|
1015 |
|
|
|
1016 |
def send_refundPayment(self, merchantTxnId, amount, isDigital):
|
|
|
1017 |
self._oprot.writeMessageBegin('refundPayment', TMessageType.CALL, self._seqid)
|
|
|
1018 |
args = refundPayment_args()
|
|
|
1019 |
args.merchantTxnId = merchantTxnId
|
|
|
1020 |
args.amount = amount
|
|
|
1021 |
args.isDigital = isDigital
|
|
|
1022 |
args.write(self._oprot)
|
|
|
1023 |
self._oprot.writeMessageEnd()
|
|
|
1024 |
self._oprot.trans.flush()
|
|
|
1025 |
|
|
|
1026 |
def recv_refundPayment(self, ):
|
|
|
1027 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1028 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1029 |
x = TApplicationException()
|
|
|
1030 |
x.read(self._iprot)
|
|
|
1031 |
self._iprot.readMessageEnd()
|
|
|
1032 |
raise x
|
|
|
1033 |
result = refundPayment_result()
|
|
|
1034 |
result.read(self._iprot)
|
|
|
1035 |
self._iprot.readMessageEnd()
|
|
|
1036 |
if result.success is not None:
|
|
|
1037 |
return result.success
|
|
|
1038 |
if result.pe is not None:
|
|
|
1039 |
raise result.pe
|
|
|
1040 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "refundPayment failed: unknown result");
|
|
|
1041 |
|
| 3956 |
chandransh |
1042 |
def partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
1043 |
"""
|
|
|
1044 |
Adds the given amount to the captured amount of a COD payment.
|
|
|
1045 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
1046 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
1047 |
Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
1048 |
and the corresponding transaction id.
|
| 3010 |
chandransh |
1049 |
|
| 3956 |
chandransh |
1050 |
Returns false if the payment couldn't be captured.
|
|
|
1051 |
Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
1052 |
|
|
|
1053 |
Parameters:
|
|
|
1054 |
- merchantTxnId
|
|
|
1055 |
- amount
|
|
|
1056 |
- xferBy
|
|
|
1057 |
- xferTxnId
|
|
|
1058 |
- xferDate
|
|
|
1059 |
"""
|
|
|
1060 |
self.send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate)
|
|
|
1061 |
return self.recv_partiallyCapturePayment()
|
|
|
1062 |
|
|
|
1063 |
def send_partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
1064 |
self._oprot.writeMessageBegin('partiallyCapturePayment', TMessageType.CALL, self._seqid)
|
|
|
1065 |
args = partiallyCapturePayment_args()
|
|
|
1066 |
args.merchantTxnId = merchantTxnId
|
|
|
1067 |
args.amount = amount
|
|
|
1068 |
args.xferBy = xferBy
|
|
|
1069 |
args.xferTxnId = xferTxnId
|
|
|
1070 |
args.xferDate = xferDate
|
|
|
1071 |
args.write(self._oprot)
|
|
|
1072 |
self._oprot.writeMessageEnd()
|
|
|
1073 |
self._oprot.trans.flush()
|
|
|
1074 |
|
|
|
1075 |
def recv_partiallyCapturePayment(self, ):
|
|
|
1076 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1077 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1078 |
x = TApplicationException()
|
|
|
1079 |
x.read(self._iprot)
|
|
|
1080 |
self._iprot.readMessageEnd()
|
|
|
1081 |
raise x
|
|
|
1082 |
result = partiallyCapturePayment_result()
|
|
|
1083 |
result.read(self._iprot)
|
|
|
1084 |
self._iprot.readMessageEnd()
|
|
|
1085 |
if result.success is not None:
|
|
|
1086 |
return result.success
|
|
|
1087 |
if result.pe is not None:
|
|
|
1088 |
raise result.pe
|
|
|
1089 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
|
|
|
1090 |
|
| 4008 |
mandeep.dh |
1091 |
def getPaymentsRequiringExtraProcessing(self, category):
|
|
|
1092 |
"""
|
|
|
1093 |
Returns the list of payments that require some extra processing and
|
|
|
1094 |
which belong to a particular category. This is currently used by CRM
|
|
|
1095 |
application.
|
| 3956 |
chandransh |
1096 |
|
| 4008 |
mandeep.dh |
1097 |
Parameters:
|
|
|
1098 |
- category
|
|
|
1099 |
"""
|
|
|
1100 |
self.send_getPaymentsRequiringExtraProcessing(category)
|
|
|
1101 |
return self.recv_getPaymentsRequiringExtraProcessing()
|
|
|
1102 |
|
|
|
1103 |
def send_getPaymentsRequiringExtraProcessing(self, category):
|
|
|
1104 |
self._oprot.writeMessageBegin('getPaymentsRequiringExtraProcessing', TMessageType.CALL, self._seqid)
|
|
|
1105 |
args = getPaymentsRequiringExtraProcessing_args()
|
|
|
1106 |
args.category = category
|
|
|
1107 |
args.write(self._oprot)
|
|
|
1108 |
self._oprot.writeMessageEnd()
|
|
|
1109 |
self._oprot.trans.flush()
|
|
|
1110 |
|
|
|
1111 |
def recv_getPaymentsRequiringExtraProcessing(self, ):
|
|
|
1112 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1113 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1114 |
x = TApplicationException()
|
|
|
1115 |
x.read(self._iprot)
|
|
|
1116 |
self._iprot.readMessageEnd()
|
|
|
1117 |
raise x
|
|
|
1118 |
result = getPaymentsRequiringExtraProcessing_result()
|
|
|
1119 |
result.read(self._iprot)
|
|
|
1120 |
self._iprot.readMessageEnd()
|
|
|
1121 |
if result.success is not None:
|
|
|
1122 |
return result.success
|
|
|
1123 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
|
|
|
1124 |
|
|
|
1125 |
def markPaymentAsProcessed(self, paymentId, category):
|
|
|
1126 |
"""
|
|
|
1127 |
Marks a particular payment as processed for a particular cateogory.
|
|
|
1128 |
It essentially deletes the payment if it is processed for a particular
|
|
|
1129 |
category. This is currently used by CRM application.
|
|
|
1130 |
|
|
|
1131 |
Parameters:
|
|
|
1132 |
- paymentId
|
|
|
1133 |
- category
|
|
|
1134 |
"""
|
|
|
1135 |
self.send_markPaymentAsProcessed(paymentId, category)
|
|
|
1136 |
self.recv_markPaymentAsProcessed()
|
|
|
1137 |
|
|
|
1138 |
def send_markPaymentAsProcessed(self, paymentId, category):
|
|
|
1139 |
self._oprot.writeMessageBegin('markPaymentAsProcessed', TMessageType.CALL, self._seqid)
|
|
|
1140 |
args = markPaymentAsProcessed_args()
|
|
|
1141 |
args.paymentId = paymentId
|
|
|
1142 |
args.category = category
|
|
|
1143 |
args.write(self._oprot)
|
|
|
1144 |
self._oprot.writeMessageEnd()
|
|
|
1145 |
self._oprot.trans.flush()
|
|
|
1146 |
|
|
|
1147 |
def recv_markPaymentAsProcessed(self, ):
|
|
|
1148 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1149 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1150 |
x = TApplicationException()
|
|
|
1151 |
x.read(self._iprot)
|
|
|
1152 |
self._iprot.readMessageEnd()
|
|
|
1153 |
raise x
|
|
|
1154 |
result = markPaymentAsProcessed_result()
|
|
|
1155 |
result.read(self._iprot)
|
|
|
1156 |
self._iprot.readMessageEnd()
|
|
|
1157 |
return
|
|
|
1158 |
|
| 8914 |
rajveer |
1159 |
def getPaymentStatusAtGateway(self, merchantTxnId, amount, isDigital):
|
| 8908 |
rajveer |
1160 |
"""
|
|
|
1161 |
Parameters:
|
|
|
1162 |
- merchantTxnId
|
|
|
1163 |
- amount
|
|
|
1164 |
- isDigital
|
|
|
1165 |
"""
|
| 8914 |
rajveer |
1166 |
self.send_getPaymentStatusAtGateway(merchantTxnId, amount, isDigital)
|
|
|
1167 |
return self.recv_getPaymentStatusAtGateway()
|
| 4008 |
mandeep.dh |
1168 |
|
| 8914 |
rajveer |
1169 |
def send_getPaymentStatusAtGateway(self, merchantTxnId, amount, isDigital):
|
|
|
1170 |
self._oprot.writeMessageBegin('getPaymentStatusAtGateway', TMessageType.CALL, self._seqid)
|
|
|
1171 |
args = getPaymentStatusAtGateway_args()
|
| 8908 |
rajveer |
1172 |
args.merchantTxnId = merchantTxnId
|
|
|
1173 |
args.amount = amount
|
|
|
1174 |
args.isDigital = isDigital
|
|
|
1175 |
args.write(self._oprot)
|
|
|
1176 |
self._oprot.writeMessageEnd()
|
|
|
1177 |
self._oprot.trans.flush()
|
|
|
1178 |
|
| 8914 |
rajveer |
1179 |
def recv_getPaymentStatusAtGateway(self, ):
|
| 8908 |
rajveer |
1180 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1181 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1182 |
x = TApplicationException()
|
|
|
1183 |
x.read(self._iprot)
|
|
|
1184 |
self._iprot.readMessageEnd()
|
|
|
1185 |
raise x
|
| 8914 |
rajveer |
1186 |
result = getPaymentStatusAtGateway_result()
|
| 8908 |
rajveer |
1187 |
result.read(self._iprot)
|
|
|
1188 |
self._iprot.readMessageEnd()
|
|
|
1189 |
if result.success is not None:
|
|
|
1190 |
return result.success
|
|
|
1191 |
if result.pe is not None:
|
|
|
1192 |
raise result.pe
|
| 8914 |
rajveer |
1193 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentStatusAtGateway failed: unknown result");
|
| 8908 |
rajveer |
1194 |
|
| 18577 |
manish.sha |
1195 |
def getCreditorInfo(self, id, name):
|
|
|
1196 |
"""
|
|
|
1197 |
Parameters:
|
|
|
1198 |
- id
|
|
|
1199 |
- name
|
|
|
1200 |
"""
|
|
|
1201 |
self.send_getCreditorInfo(id, name)
|
|
|
1202 |
return self.recv_getCreditorInfo()
|
| 8908 |
rajveer |
1203 |
|
| 18577 |
manish.sha |
1204 |
def send_getCreditorInfo(self, id, name):
|
|
|
1205 |
self._oprot.writeMessageBegin('getCreditorInfo', TMessageType.CALL, self._seqid)
|
|
|
1206 |
args = getCreditorInfo_args()
|
|
|
1207 |
args.id = id
|
|
|
1208 |
args.name = name
|
|
|
1209 |
args.write(self._oprot)
|
|
|
1210 |
self._oprot.writeMessageEnd()
|
|
|
1211 |
self._oprot.trans.flush()
|
|
|
1212 |
|
|
|
1213 |
def recv_getCreditorInfo(self, ):
|
|
|
1214 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1215 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1216 |
x = TApplicationException()
|
|
|
1217 |
x.read(self._iprot)
|
|
|
1218 |
self._iprot.readMessageEnd()
|
|
|
1219 |
raise x
|
|
|
1220 |
result = getCreditorInfo_result()
|
|
|
1221 |
result.read(self._iprot)
|
|
|
1222 |
self._iprot.readMessageEnd()
|
|
|
1223 |
if result.success is not None:
|
|
|
1224 |
return result.success
|
|
|
1225 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCreditorInfo failed: unknown result");
|
|
|
1226 |
|
|
|
1227 |
def updateCreditorInfo(self, creditor):
|
|
|
1228 |
"""
|
|
|
1229 |
Parameters:
|
|
|
1230 |
- creditor
|
|
|
1231 |
"""
|
|
|
1232 |
self.send_updateCreditorInfo(creditor)
|
|
|
1233 |
return self.recv_updateCreditorInfo()
|
|
|
1234 |
|
|
|
1235 |
def send_updateCreditorInfo(self, creditor):
|
|
|
1236 |
self._oprot.writeMessageBegin('updateCreditorInfo', TMessageType.CALL, self._seqid)
|
|
|
1237 |
args = updateCreditorInfo_args()
|
|
|
1238 |
args.creditor = creditor
|
|
|
1239 |
args.write(self._oprot)
|
|
|
1240 |
self._oprot.writeMessageEnd()
|
|
|
1241 |
self._oprot.trans.flush()
|
|
|
1242 |
|
|
|
1243 |
def recv_updateCreditorInfo(self, ):
|
|
|
1244 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1245 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1246 |
x = TApplicationException()
|
|
|
1247 |
x.read(self._iprot)
|
|
|
1248 |
self._iprot.readMessageEnd()
|
|
|
1249 |
raise x
|
|
|
1250 |
result = updateCreditorInfo_result()
|
|
|
1251 |
result.read(self._iprot)
|
|
|
1252 |
self._iprot.readMessageEnd()
|
|
|
1253 |
if result.success is not None:
|
|
|
1254 |
return result.success
|
|
|
1255 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updateCreditorInfo failed: unknown result");
|
|
|
1256 |
|
|
|
1257 |
def getUserSanctionDetails(self, userId):
|
|
|
1258 |
"""
|
|
|
1259 |
Parameters:
|
|
|
1260 |
- userId
|
|
|
1261 |
"""
|
|
|
1262 |
self.send_getUserSanctionDetails(userId)
|
|
|
1263 |
return self.recv_getUserSanctionDetails()
|
|
|
1264 |
|
|
|
1265 |
def send_getUserSanctionDetails(self, userId):
|
|
|
1266 |
self._oprot.writeMessageBegin('getUserSanctionDetails', TMessageType.CALL, self._seqid)
|
|
|
1267 |
args = getUserSanctionDetails_args()
|
|
|
1268 |
args.userId = userId
|
|
|
1269 |
args.write(self._oprot)
|
|
|
1270 |
self._oprot.writeMessageEnd()
|
|
|
1271 |
self._oprot.trans.flush()
|
|
|
1272 |
|
|
|
1273 |
def recv_getUserSanctionDetails(self, ):
|
|
|
1274 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1275 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1276 |
x = TApplicationException()
|
|
|
1277 |
x.read(self._iprot)
|
|
|
1278 |
self._iprot.readMessageEnd()
|
|
|
1279 |
raise x
|
|
|
1280 |
result = getUserSanctionDetails_result()
|
|
|
1281 |
result.read(self._iprot)
|
|
|
1282 |
self._iprot.readMessageEnd()
|
|
|
1283 |
if result.success is not None:
|
|
|
1284 |
return result.success
|
|
|
1285 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserSanctionDetails failed: unknown result");
|
|
|
1286 |
|
|
|
1287 |
def getUserSanctionDetailsForCreditor(self, userId, creditorId):
|
|
|
1288 |
"""
|
|
|
1289 |
Parameters:
|
|
|
1290 |
- userId
|
|
|
1291 |
- creditorId
|
|
|
1292 |
"""
|
|
|
1293 |
self.send_getUserSanctionDetailsForCreditor(userId, creditorId)
|
|
|
1294 |
return self.recv_getUserSanctionDetailsForCreditor()
|
|
|
1295 |
|
|
|
1296 |
def send_getUserSanctionDetailsForCreditor(self, userId, creditorId):
|
|
|
1297 |
self._oprot.writeMessageBegin('getUserSanctionDetailsForCreditor', TMessageType.CALL, self._seqid)
|
|
|
1298 |
args = getUserSanctionDetailsForCreditor_args()
|
|
|
1299 |
args.userId = userId
|
|
|
1300 |
args.creditorId = creditorId
|
|
|
1301 |
args.write(self._oprot)
|
|
|
1302 |
self._oprot.writeMessageEnd()
|
|
|
1303 |
self._oprot.trans.flush()
|
|
|
1304 |
|
|
|
1305 |
def recv_getUserSanctionDetailsForCreditor(self, ):
|
|
|
1306 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1307 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1308 |
x = TApplicationException()
|
|
|
1309 |
x.read(self._iprot)
|
|
|
1310 |
self._iprot.readMessageEnd()
|
|
|
1311 |
raise x
|
|
|
1312 |
result = getUserSanctionDetailsForCreditor_result()
|
|
|
1313 |
result.read(self._iprot)
|
|
|
1314 |
self._iprot.readMessageEnd()
|
|
|
1315 |
if result.success is not None:
|
|
|
1316 |
return result.success
|
|
|
1317 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserSanctionDetailsForCreditor failed: unknown result");
|
|
|
1318 |
|
|
|
1319 |
def updateUserSanction(self, userSanaction):
|
|
|
1320 |
"""
|
|
|
1321 |
Parameters:
|
|
|
1322 |
- userSanaction
|
|
|
1323 |
"""
|
|
|
1324 |
self.send_updateUserSanction(userSanaction)
|
|
|
1325 |
return self.recv_updateUserSanction()
|
|
|
1326 |
|
|
|
1327 |
def send_updateUserSanction(self, userSanaction):
|
|
|
1328 |
self._oprot.writeMessageBegin('updateUserSanction', TMessageType.CALL, self._seqid)
|
|
|
1329 |
args = updateUserSanction_args()
|
|
|
1330 |
args.userSanaction = userSanaction
|
|
|
1331 |
args.write(self._oprot)
|
|
|
1332 |
self._oprot.writeMessageEnd()
|
|
|
1333 |
self._oprot.trans.flush()
|
|
|
1334 |
|
|
|
1335 |
def recv_updateUserSanction(self, ):
|
|
|
1336 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1337 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1338 |
x = TApplicationException()
|
|
|
1339 |
x.read(self._iprot)
|
|
|
1340 |
self._iprot.readMessageEnd()
|
|
|
1341 |
raise x
|
|
|
1342 |
result = updateUserSanction_result()
|
|
|
1343 |
result.read(self._iprot)
|
|
|
1344 |
self._iprot.readMessageEnd()
|
|
|
1345 |
if result.success is not None:
|
|
|
1346 |
return result.success
|
|
|
1347 |
if result.pe is not None:
|
|
|
1348 |
raise result.pe
|
|
|
1349 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUserSanction failed: unknown result");
|
|
|
1350 |
|
|
|
1351 |
def getCreditHistoryRecordsForTransaction(self, paymentId, creditorId, creditTxnType):
|
|
|
1352 |
"""
|
|
|
1353 |
Parameters:
|
|
|
1354 |
- paymentId
|
|
|
1355 |
- creditorId
|
|
|
1356 |
- creditTxnType
|
|
|
1357 |
"""
|
|
|
1358 |
self.send_getCreditHistoryRecordsForTransaction(paymentId, creditorId, creditTxnType)
|
|
|
1359 |
return self.recv_getCreditHistoryRecordsForTransaction()
|
|
|
1360 |
|
|
|
1361 |
def send_getCreditHistoryRecordsForTransaction(self, paymentId, creditorId, creditTxnType):
|
|
|
1362 |
self._oprot.writeMessageBegin('getCreditHistoryRecordsForTransaction', TMessageType.CALL, self._seqid)
|
|
|
1363 |
args = getCreditHistoryRecordsForTransaction_args()
|
|
|
1364 |
args.paymentId = paymentId
|
|
|
1365 |
args.creditorId = creditorId
|
|
|
1366 |
args.creditTxnType = creditTxnType
|
|
|
1367 |
args.write(self._oprot)
|
|
|
1368 |
self._oprot.writeMessageEnd()
|
|
|
1369 |
self._oprot.trans.flush()
|
|
|
1370 |
|
|
|
1371 |
def recv_getCreditHistoryRecordsForTransaction(self, ):
|
|
|
1372 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1373 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1374 |
x = TApplicationException()
|
|
|
1375 |
x.read(self._iprot)
|
|
|
1376 |
self._iprot.readMessageEnd()
|
|
|
1377 |
raise x
|
|
|
1378 |
result = getCreditHistoryRecordsForTransaction_result()
|
|
|
1379 |
result.read(self._iprot)
|
|
|
1380 |
self._iprot.readMessageEnd()
|
|
|
1381 |
if result.success is not None:
|
|
|
1382 |
return result.success
|
|
|
1383 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForTransaction failed: unknown result");
|
|
|
1384 |
|
|
|
1385 |
def getCreditHistoryRecordsForUserAndCreditor(self, userId, creditTxnType):
|
|
|
1386 |
"""
|
|
|
1387 |
Parameters:
|
|
|
1388 |
- userId
|
|
|
1389 |
- creditTxnType
|
|
|
1390 |
"""
|
|
|
1391 |
self.send_getCreditHistoryRecordsForUserAndCreditor(userId, creditTxnType)
|
|
|
1392 |
return self.recv_getCreditHistoryRecordsForUserAndCreditor()
|
|
|
1393 |
|
|
|
1394 |
def send_getCreditHistoryRecordsForUserAndCreditor(self, userId, creditTxnType):
|
|
|
1395 |
self._oprot.writeMessageBegin('getCreditHistoryRecordsForUserAndCreditor', TMessageType.CALL, self._seqid)
|
|
|
1396 |
args = getCreditHistoryRecordsForUserAndCreditor_args()
|
|
|
1397 |
args.userId = userId
|
|
|
1398 |
args.creditTxnType = creditTxnType
|
|
|
1399 |
args.write(self._oprot)
|
|
|
1400 |
self._oprot.writeMessageEnd()
|
|
|
1401 |
self._oprot.trans.flush()
|
|
|
1402 |
|
|
|
1403 |
def recv_getCreditHistoryRecordsForUserAndCreditor(self, ):
|
|
|
1404 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1405 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1406 |
x = TApplicationException()
|
|
|
1407 |
x.read(self._iprot)
|
|
|
1408 |
self._iprot.readMessageEnd()
|
|
|
1409 |
raise x
|
|
|
1410 |
result = getCreditHistoryRecordsForUserAndCreditor_result()
|
|
|
1411 |
result.read(self._iprot)
|
|
|
1412 |
self._iprot.readMessageEnd()
|
|
|
1413 |
if result.success is not None:
|
|
|
1414 |
return result.success
|
|
|
1415 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForUserAndCreditor failed: unknown result");
|
|
|
1416 |
|
|
|
1417 |
def processCreditTransaction(self, paymentId, creditTxns):
|
|
|
1418 |
"""
|
|
|
1419 |
Parameters:
|
|
|
1420 |
- paymentId
|
|
|
1421 |
- creditTxns
|
|
|
1422 |
"""
|
|
|
1423 |
self.send_processCreditTransaction(paymentId, creditTxns)
|
|
|
1424 |
return self.recv_processCreditTransaction()
|
|
|
1425 |
|
|
|
1426 |
def send_processCreditTransaction(self, paymentId, creditTxns):
|
|
|
1427 |
self._oprot.writeMessageBegin('processCreditTransaction', TMessageType.CALL, self._seqid)
|
|
|
1428 |
args = processCreditTransaction_args()
|
|
|
1429 |
args.paymentId = paymentId
|
|
|
1430 |
args.creditTxns = creditTxns
|
|
|
1431 |
args.write(self._oprot)
|
|
|
1432 |
self._oprot.writeMessageEnd()
|
|
|
1433 |
self._oprot.trans.flush()
|
|
|
1434 |
|
|
|
1435 |
def recv_processCreditTransaction(self, ):
|
|
|
1436 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1437 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1438 |
x = TApplicationException()
|
|
|
1439 |
x.read(self._iprot)
|
|
|
1440 |
self._iprot.readMessageEnd()
|
|
|
1441 |
raise x
|
|
|
1442 |
result = processCreditTransaction_result()
|
|
|
1443 |
result.read(self._iprot)
|
|
|
1444 |
self._iprot.readMessageEnd()
|
|
|
1445 |
if result.success is not None:
|
|
|
1446 |
return result.success
|
|
|
1447 |
if result.pe is not None:
|
|
|
1448 |
raise result.pe
|
|
|
1449 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "processCreditTransaction failed: unknown result");
|
|
|
1450 |
|
|
|
1451 |
def getLoanPayableForUserToCreditor(self, userId, creditorId, dueDate):
|
|
|
1452 |
"""
|
|
|
1453 |
Parameters:
|
|
|
1454 |
- userId
|
|
|
1455 |
- creditorId
|
|
|
1456 |
- dueDate
|
|
|
1457 |
"""
|
|
|
1458 |
self.send_getLoanPayableForUserToCreditor(userId, creditorId, dueDate)
|
|
|
1459 |
return self.recv_getLoanPayableForUserToCreditor()
|
|
|
1460 |
|
|
|
1461 |
def send_getLoanPayableForUserToCreditor(self, userId, creditorId, dueDate):
|
|
|
1462 |
self._oprot.writeMessageBegin('getLoanPayableForUserToCreditor', TMessageType.CALL, self._seqid)
|
|
|
1463 |
args = getLoanPayableForUserToCreditor_args()
|
|
|
1464 |
args.userId = userId
|
|
|
1465 |
args.creditorId = creditorId
|
|
|
1466 |
args.dueDate = dueDate
|
|
|
1467 |
args.write(self._oprot)
|
|
|
1468 |
self._oprot.writeMessageEnd()
|
|
|
1469 |
self._oprot.trans.flush()
|
|
|
1470 |
|
|
|
1471 |
def recv_getLoanPayableForUserToCreditor(self, ):
|
|
|
1472 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1473 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1474 |
x = TApplicationException()
|
|
|
1475 |
x.read(self._iprot)
|
|
|
1476 |
self._iprot.readMessageEnd()
|
|
|
1477 |
raise x
|
|
|
1478 |
result = getLoanPayableForUserToCreditor_result()
|
|
|
1479 |
result.read(self._iprot)
|
|
|
1480 |
self._iprot.readMessageEnd()
|
|
|
1481 |
if result.success is not None:
|
|
|
1482 |
return result.success
|
|
|
1483 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLoanPayableForUserToCreditor failed: unknown result");
|
|
|
1484 |
|
|
|
1485 |
|
| 3376 |
rajveer |
1486 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 420 |
ashish |
1487 |
def __init__(self, handler):
|
| 3376 |
rajveer |
1488 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 420 |
ashish |
1489 |
self._processMap["createPayment"] = Processor.process_createPayment
|
|
|
1490 |
self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
|
|
|
1491 |
self._processMap["getPayments"] = Processor.process_getPayments
|
| 4141 |
chandransh |
1492 |
self._processMap["getPaymentsByCapturedDate"] = Processor.process_getPaymentsByCapturedDate
|
| 420 |
ashish |
1493 |
self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
|
| 4600 |
varun.gupt |
1494 |
self._processMap["getActivePaymentGateways"] = Processor.process_getActivePaymentGateways
|
| 420 |
ashish |
1495 |
self._processMap["getPayment"] = Processor.process_getPayment
|
| 696 |
rajveer |
1496 |
self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
|
| 7049 |
anupam.sin |
1497 |
self._processMap["getPaymentForRechargeTxnId"] = Processor.process_getPaymentForRechargeTxnId
|
| 4600 |
varun.gupt |
1498 |
self._processMap["getSuccessfulPaymentForTxnId"] = Processor.process_getSuccessfulPaymentForTxnId
|
| 696 |
rajveer |
1499 |
self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
|
| 1731 |
ankur.sing |
1500 |
self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
|
| 2559 |
chandransh |
1501 |
self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
|
| 6050 |
anupam.sin |
1502 |
self._processMap["doHdfcPaymentForDigitalOrder"] = Processor.process_doHdfcPaymentForDigitalOrder
|
| 3616 |
chandransh |
1503 |
self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
|
| 2685 |
chandransh |
1504 |
self._processMap["createRefund"] = Processor.process_createRefund
|
| 3010 |
chandransh |
1505 |
self._processMap["capturePayment"] = Processor.process_capturePayment
|
| 6486 |
rajveer |
1506 |
self._processMap["refundPayment"] = Processor.process_refundPayment
|
| 3956 |
chandransh |
1507 |
self._processMap["partiallyCapturePayment"] = Processor.process_partiallyCapturePayment
|
| 4008 |
mandeep.dh |
1508 |
self._processMap["getPaymentsRequiringExtraProcessing"] = Processor.process_getPaymentsRequiringExtraProcessing
|
|
|
1509 |
self._processMap["markPaymentAsProcessed"] = Processor.process_markPaymentAsProcessed
|
| 8914 |
rajveer |
1510 |
self._processMap["getPaymentStatusAtGateway"] = Processor.process_getPaymentStatusAtGateway
|
| 18577 |
manish.sha |
1511 |
self._processMap["getCreditorInfo"] = Processor.process_getCreditorInfo
|
|
|
1512 |
self._processMap["updateCreditorInfo"] = Processor.process_updateCreditorInfo
|
|
|
1513 |
self._processMap["getUserSanctionDetails"] = Processor.process_getUserSanctionDetails
|
|
|
1514 |
self._processMap["getUserSanctionDetailsForCreditor"] = Processor.process_getUserSanctionDetailsForCreditor
|
|
|
1515 |
self._processMap["updateUserSanction"] = Processor.process_updateUserSanction
|
|
|
1516 |
self._processMap["getCreditHistoryRecordsForTransaction"] = Processor.process_getCreditHistoryRecordsForTransaction
|
|
|
1517 |
self._processMap["getCreditHistoryRecordsForUserAndCreditor"] = Processor.process_getCreditHistoryRecordsForUserAndCreditor
|
|
|
1518 |
self._processMap["processCreditTransaction"] = Processor.process_processCreditTransaction
|
|
|
1519 |
self._processMap["getLoanPayableForUserToCreditor"] = Processor.process_getLoanPayableForUserToCreditor
|
| 420 |
ashish |
1520 |
|
|
|
1521 |
def process(self, iprot, oprot):
|
|
|
1522 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
1523 |
if name not in self._processMap:
|
|
|
1524 |
iprot.skip(TType.STRUCT)
|
|
|
1525 |
iprot.readMessageEnd()
|
|
|
1526 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
1527 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
1528 |
x.write(oprot)
|
|
|
1529 |
oprot.writeMessageEnd()
|
|
|
1530 |
oprot.trans.flush()
|
|
|
1531 |
return
|
|
|
1532 |
else:
|
|
|
1533 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
1534 |
return True
|
|
|
1535 |
|
|
|
1536 |
def process_createPayment(self, seqid, iprot, oprot):
|
|
|
1537 |
args = createPayment_args()
|
|
|
1538 |
args.read(iprot)
|
|
|
1539 |
iprot.readMessageEnd()
|
|
|
1540 |
result = createPayment_result()
|
|
|
1541 |
try:
|
| 6050 |
anupam.sin |
1542 |
result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital)
|
| 420 |
ashish |
1543 |
except PaymentException, pe:
|
|
|
1544 |
result.pe = pe
|
|
|
1545 |
oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
|
|
|
1546 |
result.write(oprot)
|
|
|
1547 |
oprot.writeMessageEnd()
|
|
|
1548 |
oprot.trans.flush()
|
|
|
1549 |
|
|
|
1550 |
def process_getPaymentsForUser(self, seqid, iprot, oprot):
|
|
|
1551 |
args = getPaymentsForUser_args()
|
|
|
1552 |
args.read(iprot)
|
|
|
1553 |
iprot.readMessageEnd()
|
|
|
1554 |
result = getPaymentsForUser_result()
|
|
|
1555 |
try:
|
| 696 |
rajveer |
1556 |
result.success = self._handler.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
1557 |
except PaymentException, pe:
|
|
|
1558 |
result.pe = pe
|
|
|
1559 |
oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
|
|
|
1560 |
result.write(oprot)
|
|
|
1561 |
oprot.writeMessageEnd()
|
|
|
1562 |
oprot.trans.flush()
|
|
|
1563 |
|
|
|
1564 |
def process_getPayments(self, seqid, iprot, oprot):
|
|
|
1565 |
args = getPayments_args()
|
|
|
1566 |
args.read(iprot)
|
|
|
1567 |
iprot.readMessageEnd()
|
|
|
1568 |
result = getPayments_result()
|
|
|
1569 |
try:
|
| 696 |
rajveer |
1570 |
result.success = self._handler.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
1571 |
except PaymentException, pe:
|
|
|
1572 |
result.pe = pe
|
|
|
1573 |
oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
|
|
|
1574 |
result.write(oprot)
|
|
|
1575 |
oprot.writeMessageEnd()
|
|
|
1576 |
oprot.trans.flush()
|
|
|
1577 |
|
| 4141 |
chandransh |
1578 |
def process_getPaymentsByCapturedDate(self, seqid, iprot, oprot):
|
|
|
1579 |
args = getPaymentsByCapturedDate_args()
|
|
|
1580 |
args.read(iprot)
|
|
|
1581 |
iprot.readMessageEnd()
|
|
|
1582 |
result = getPaymentsByCapturedDate_result()
|
|
|
1583 |
try:
|
|
|
1584 |
result.success = self._handler.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId)
|
|
|
1585 |
except PaymentException, pe:
|
|
|
1586 |
result.pe = pe
|
|
|
1587 |
oprot.writeMessageBegin("getPaymentsByCapturedDate", TMessageType.REPLY, seqid)
|
|
|
1588 |
result.write(oprot)
|
|
|
1589 |
oprot.writeMessageEnd()
|
|
|
1590 |
oprot.trans.flush()
|
|
|
1591 |
|
| 420 |
ashish |
1592 |
def process_getPaymentGateway(self, seqid, iprot, oprot):
|
|
|
1593 |
args = getPaymentGateway_args()
|
|
|
1594 |
args.read(iprot)
|
|
|
1595 |
iprot.readMessageEnd()
|
|
|
1596 |
result = getPaymentGateway_result()
|
|
|
1597 |
try:
|
|
|
1598 |
result.success = self._handler.getPaymentGateway(args.id)
|
|
|
1599 |
except PaymentException, pe:
|
|
|
1600 |
result.pe = pe
|
|
|
1601 |
oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
|
|
|
1602 |
result.write(oprot)
|
|
|
1603 |
oprot.writeMessageEnd()
|
|
|
1604 |
oprot.trans.flush()
|
|
|
1605 |
|
| 4600 |
varun.gupt |
1606 |
def process_getActivePaymentGateways(self, seqid, iprot, oprot):
|
|
|
1607 |
args = getActivePaymentGateways_args()
|
|
|
1608 |
args.read(iprot)
|
|
|
1609 |
iprot.readMessageEnd()
|
|
|
1610 |
result = getActivePaymentGateways_result()
|
|
|
1611 |
try:
|
|
|
1612 |
result.success = self._handler.getActivePaymentGateways()
|
|
|
1613 |
except PaymentException, pe:
|
|
|
1614 |
result.pe = pe
|
|
|
1615 |
oprot.writeMessageBegin("getActivePaymentGateways", TMessageType.REPLY, seqid)
|
|
|
1616 |
result.write(oprot)
|
|
|
1617 |
oprot.writeMessageEnd()
|
|
|
1618 |
oprot.trans.flush()
|
|
|
1619 |
|
| 696 |
rajveer |
1620 |
def process_getPayment(self, seqid, iprot, oprot):
|
|
|
1621 |
args = getPayment_args()
|
| 420 |
ashish |
1622 |
args.read(iprot)
|
|
|
1623 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
1624 |
result = getPayment_result()
|
| 420 |
ashish |
1625 |
try:
|
| 696 |
rajveer |
1626 |
result.success = self._handler.getPayment(args.id)
|
| 420 |
ashish |
1627 |
except PaymentException, pe:
|
|
|
1628 |
result.pe = pe
|
| 696 |
rajveer |
1629 |
oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
1630 |
result.write(oprot)
|
|
|
1631 |
oprot.writeMessageEnd()
|
|
|
1632 |
oprot.trans.flush()
|
|
|
1633 |
|
| 696 |
rajveer |
1634 |
def process_getPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
1635 |
args = getPaymentForTxnId_args()
|
| 420 |
ashish |
1636 |
args.read(iprot)
|
|
|
1637 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
1638 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
1639 |
try:
|
| 696 |
rajveer |
1640 |
result.success = self._handler.getPaymentForTxnId(args.txnId)
|
| 420 |
ashish |
1641 |
except PaymentException, pe:
|
|
|
1642 |
result.pe = pe
|
| 696 |
rajveer |
1643 |
oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
1644 |
result.write(oprot)
|
|
|
1645 |
oprot.writeMessageEnd()
|
|
|
1646 |
oprot.trans.flush()
|
|
|
1647 |
|
| 7049 |
anupam.sin |
1648 |
def process_getPaymentForRechargeTxnId(self, seqid, iprot, oprot):
|
|
|
1649 |
args = getPaymentForRechargeTxnId_args()
|
|
|
1650 |
args.read(iprot)
|
|
|
1651 |
iprot.readMessageEnd()
|
|
|
1652 |
result = getPaymentForRechargeTxnId_result()
|
|
|
1653 |
try:
|
|
|
1654 |
result.success = self._handler.getPaymentForRechargeTxnId(args.txnId)
|
|
|
1655 |
except PaymentException, pe:
|
|
|
1656 |
result.pe = pe
|
|
|
1657 |
oprot.writeMessageBegin("getPaymentForRechargeTxnId", TMessageType.REPLY, seqid)
|
|
|
1658 |
result.write(oprot)
|
|
|
1659 |
oprot.writeMessageEnd()
|
|
|
1660 |
oprot.trans.flush()
|
|
|
1661 |
|
| 4600 |
varun.gupt |
1662 |
def process_getSuccessfulPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
1663 |
args = getSuccessfulPaymentForTxnId_args()
|
|
|
1664 |
args.read(iprot)
|
|
|
1665 |
iprot.readMessageEnd()
|
|
|
1666 |
result = getSuccessfulPaymentForTxnId_result()
|
|
|
1667 |
try:
|
|
|
1668 |
result.success = self._handler.getSuccessfulPaymentForTxnId(args.txnId)
|
|
|
1669 |
except PaymentException, pe:
|
|
|
1670 |
result.pe = pe
|
|
|
1671 |
oprot.writeMessageBegin("getSuccessfulPaymentForTxnId", TMessageType.REPLY, seqid)
|
|
|
1672 |
result.write(oprot)
|
|
|
1673 |
oprot.writeMessageEnd()
|
|
|
1674 |
oprot.trans.flush()
|
|
|
1675 |
|
| 696 |
rajveer |
1676 |
def process_updatePaymentDetails(self, seqid, iprot, oprot):
|
|
|
1677 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
1678 |
args.read(iprot)
|
|
|
1679 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
1680 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
1681 |
try:
|
| 1120 |
rajveer |
1682 |
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 |
1683 |
except PaymentException, pe:
|
|
|
1684 |
result.pe = pe
|
| 696 |
rajveer |
1685 |
oprot.writeMessageBegin("updatePaymentDetails", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
1686 |
result.write(oprot)
|
|
|
1687 |
oprot.writeMessageEnd()
|
|
|
1688 |
oprot.trans.flush()
|
|
|
1689 |
|
| 1731 |
ankur.sing |
1690 |
def process_getSuccessfulPaymentsAmountRange(self, seqid, iprot, oprot):
|
|
|
1691 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
1692 |
args.read(iprot)
|
|
|
1693 |
iprot.readMessageEnd()
|
| 1731 |
ankur.sing |
1694 |
result = getSuccessfulPaymentsAmountRange_result()
|
|
|
1695 |
result.success = self._handler.getSuccessfulPaymentsAmountRange()
|
|
|
1696 |
oprot.writeMessageBegin("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid)
|
| 1627 |
ankur.sing |
1697 |
result.write(oprot)
|
|
|
1698 |
oprot.writeMessageEnd()
|
|
|
1699 |
oprot.trans.flush()
|
| 420 |
ashish |
1700 |
|
| 2559 |
chandransh |
1701 |
def process_initializeHdfcPayment(self, seqid, iprot, oprot):
|
|
|
1702 |
args = initializeHdfcPayment_args()
|
|
|
1703 |
args.read(iprot)
|
|
|
1704 |
iprot.readMessageEnd()
|
|
|
1705 |
result = initializeHdfcPayment_result()
|
|
|
1706 |
try:
|
| 10478 |
amit.gupta |
1707 |
result.success = self._handler.initializeHdfcPayment(args.merchantPaymentId, args.isMobile)
|
| 2559 |
chandransh |
1708 |
except PaymentException, pe:
|
|
|
1709 |
result.pe = pe
|
|
|
1710 |
oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
|
|
|
1711 |
result.write(oprot)
|
|
|
1712 |
oprot.writeMessageEnd()
|
|
|
1713 |
oprot.trans.flush()
|
|
|
1714 |
|
| 6050 |
anupam.sin |
1715 |
def process_doHdfcPaymentForDigitalOrder(self, seqid, iprot, oprot):
|
|
|
1716 |
args = doHdfcPaymentForDigitalOrder_args()
|
|
|
1717 |
args.read(iprot)
|
|
|
1718 |
iprot.readMessageEnd()
|
|
|
1719 |
result = doHdfcPaymentForDigitalOrder_result()
|
|
|
1720 |
try:
|
| 10478 |
amit.gupta |
1721 |
result.success = self._handler.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone, args.isMobile)
|
| 6050 |
anupam.sin |
1722 |
except PaymentException, pe:
|
|
|
1723 |
result.pe = pe
|
|
|
1724 |
oprot.writeMessageBegin("doHdfcPaymentForDigitalOrder", TMessageType.REPLY, seqid)
|
|
|
1725 |
result.write(oprot)
|
|
|
1726 |
oprot.writeMessageEnd()
|
|
|
1727 |
oprot.trans.flush()
|
|
|
1728 |
|
| 3616 |
chandransh |
1729 |
def process_initializeHdfcEmiPayment(self, seqid, iprot, oprot):
|
|
|
1730 |
args = initializeHdfcEmiPayment_args()
|
|
|
1731 |
args.read(iprot)
|
|
|
1732 |
iprot.readMessageEnd()
|
|
|
1733 |
result = initializeHdfcEmiPayment_result()
|
|
|
1734 |
try:
|
| 10478 |
amit.gupta |
1735 |
result.success = self._handler.initializeHdfcEmiPayment(args.merchantPaymentId, args.isMobile)
|
| 3616 |
chandransh |
1736 |
except PaymentException, pe:
|
|
|
1737 |
result.pe = pe
|
|
|
1738 |
oprot.writeMessageBegin("initializeHdfcEmiPayment", TMessageType.REPLY, seqid)
|
|
|
1739 |
result.write(oprot)
|
|
|
1740 |
oprot.writeMessageEnd()
|
|
|
1741 |
oprot.trans.flush()
|
|
|
1742 |
|
| 2685 |
chandransh |
1743 |
def process_createRefund(self, seqid, iprot, oprot):
|
|
|
1744 |
args = createRefund_args()
|
|
|
1745 |
args.read(iprot)
|
|
|
1746 |
iprot.readMessageEnd()
|
|
|
1747 |
result = createRefund_result()
|
|
|
1748 |
try:
|
|
|
1749 |
result.success = self._handler.createRefund(args.orderId, args.merchantTxnId, args.amount)
|
|
|
1750 |
except PaymentException, pe:
|
|
|
1751 |
result.pe = pe
|
|
|
1752 |
oprot.writeMessageBegin("createRefund", TMessageType.REPLY, seqid)
|
|
|
1753 |
result.write(oprot)
|
|
|
1754 |
oprot.writeMessageEnd()
|
|
|
1755 |
oprot.trans.flush()
|
| 2559 |
chandransh |
1756 |
|
| 3010 |
chandransh |
1757 |
def process_capturePayment(self, seqid, iprot, oprot):
|
|
|
1758 |
args = capturePayment_args()
|
|
|
1759 |
args.read(iprot)
|
|
|
1760 |
iprot.readMessageEnd()
|
|
|
1761 |
result = capturePayment_result()
|
|
|
1762 |
try:
|
| 8618 |
rajveer |
1763 |
result.success = self._handler.capturePayment(args.merchantTxnId, args.isDigital)
|
| 3010 |
chandransh |
1764 |
except PaymentException, pe:
|
|
|
1765 |
result.pe = pe
|
|
|
1766 |
oprot.writeMessageBegin("capturePayment", TMessageType.REPLY, seqid)
|
|
|
1767 |
result.write(oprot)
|
|
|
1768 |
oprot.writeMessageEnd()
|
|
|
1769 |
oprot.trans.flush()
|
| 2685 |
chandransh |
1770 |
|
| 6486 |
rajveer |
1771 |
def process_refundPayment(self, seqid, iprot, oprot):
|
|
|
1772 |
args = refundPayment_args()
|
|
|
1773 |
args.read(iprot)
|
|
|
1774 |
iprot.readMessageEnd()
|
|
|
1775 |
result = refundPayment_result()
|
|
|
1776 |
try:
|
|
|
1777 |
result.success = self._handler.refundPayment(args.merchantTxnId, args.amount, args.isDigital)
|
|
|
1778 |
except PaymentException, pe:
|
|
|
1779 |
result.pe = pe
|
|
|
1780 |
oprot.writeMessageBegin("refundPayment", TMessageType.REPLY, seqid)
|
|
|
1781 |
result.write(oprot)
|
|
|
1782 |
oprot.writeMessageEnd()
|
|
|
1783 |
oprot.trans.flush()
|
|
|
1784 |
|
| 3956 |
chandransh |
1785 |
def process_partiallyCapturePayment(self, seqid, iprot, oprot):
|
|
|
1786 |
args = partiallyCapturePayment_args()
|
|
|
1787 |
args.read(iprot)
|
|
|
1788 |
iprot.readMessageEnd()
|
|
|
1789 |
result = partiallyCapturePayment_result()
|
|
|
1790 |
try:
|
|
|
1791 |
result.success = self._handler.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate)
|
|
|
1792 |
except PaymentException, pe:
|
|
|
1793 |
result.pe = pe
|
|
|
1794 |
oprot.writeMessageBegin("partiallyCapturePayment", TMessageType.REPLY, seqid)
|
|
|
1795 |
result.write(oprot)
|
|
|
1796 |
oprot.writeMessageEnd()
|
|
|
1797 |
oprot.trans.flush()
|
| 3010 |
chandransh |
1798 |
|
| 4008 |
mandeep.dh |
1799 |
def process_getPaymentsRequiringExtraProcessing(self, seqid, iprot, oprot):
|
|
|
1800 |
args = getPaymentsRequiringExtraProcessing_args()
|
|
|
1801 |
args.read(iprot)
|
|
|
1802 |
iprot.readMessageEnd()
|
|
|
1803 |
result = getPaymentsRequiringExtraProcessing_result()
|
|
|
1804 |
result.success = self._handler.getPaymentsRequiringExtraProcessing(args.category)
|
|
|
1805 |
oprot.writeMessageBegin("getPaymentsRequiringExtraProcessing", TMessageType.REPLY, seqid)
|
|
|
1806 |
result.write(oprot)
|
|
|
1807 |
oprot.writeMessageEnd()
|
|
|
1808 |
oprot.trans.flush()
|
| 3956 |
chandransh |
1809 |
|
| 4008 |
mandeep.dh |
1810 |
def process_markPaymentAsProcessed(self, seqid, iprot, oprot):
|
|
|
1811 |
args = markPaymentAsProcessed_args()
|
|
|
1812 |
args.read(iprot)
|
|
|
1813 |
iprot.readMessageEnd()
|
|
|
1814 |
result = markPaymentAsProcessed_result()
|
|
|
1815 |
self._handler.markPaymentAsProcessed(args.paymentId, args.category)
|
|
|
1816 |
oprot.writeMessageBegin("markPaymentAsProcessed", TMessageType.REPLY, seqid)
|
|
|
1817 |
result.write(oprot)
|
|
|
1818 |
oprot.writeMessageEnd()
|
|
|
1819 |
oprot.trans.flush()
|
|
|
1820 |
|
| 8914 |
rajveer |
1821 |
def process_getPaymentStatusAtGateway(self, seqid, iprot, oprot):
|
|
|
1822 |
args = getPaymentStatusAtGateway_args()
|
| 8908 |
rajveer |
1823 |
args.read(iprot)
|
|
|
1824 |
iprot.readMessageEnd()
|
| 8914 |
rajveer |
1825 |
result = getPaymentStatusAtGateway_result()
|
| 8908 |
rajveer |
1826 |
try:
|
| 8914 |
rajveer |
1827 |
result.success = self._handler.getPaymentStatusAtGateway(args.merchantTxnId, args.amount, args.isDigital)
|
| 8908 |
rajveer |
1828 |
except PaymentException, pe:
|
|
|
1829 |
result.pe = pe
|
| 8914 |
rajveer |
1830 |
oprot.writeMessageBegin("getPaymentStatusAtGateway", TMessageType.REPLY, seqid)
|
| 8908 |
rajveer |
1831 |
result.write(oprot)
|
|
|
1832 |
oprot.writeMessageEnd()
|
|
|
1833 |
oprot.trans.flush()
|
| 4008 |
mandeep.dh |
1834 |
|
| 18577 |
manish.sha |
1835 |
def process_getCreditorInfo(self, seqid, iprot, oprot):
|
|
|
1836 |
args = getCreditorInfo_args()
|
|
|
1837 |
args.read(iprot)
|
|
|
1838 |
iprot.readMessageEnd()
|
|
|
1839 |
result = getCreditorInfo_result()
|
|
|
1840 |
result.success = self._handler.getCreditorInfo(args.id, args.name)
|
|
|
1841 |
oprot.writeMessageBegin("getCreditorInfo", TMessageType.REPLY, seqid)
|
|
|
1842 |
result.write(oprot)
|
|
|
1843 |
oprot.writeMessageEnd()
|
|
|
1844 |
oprot.trans.flush()
|
| 8908 |
rajveer |
1845 |
|
| 18577 |
manish.sha |
1846 |
def process_updateCreditorInfo(self, seqid, iprot, oprot):
|
|
|
1847 |
args = updateCreditorInfo_args()
|
|
|
1848 |
args.read(iprot)
|
|
|
1849 |
iprot.readMessageEnd()
|
|
|
1850 |
result = updateCreditorInfo_result()
|
|
|
1851 |
result.success = self._handler.updateCreditorInfo(args.creditor)
|
|
|
1852 |
oprot.writeMessageBegin("updateCreditorInfo", TMessageType.REPLY, seqid)
|
|
|
1853 |
result.write(oprot)
|
|
|
1854 |
oprot.writeMessageEnd()
|
|
|
1855 |
oprot.trans.flush()
|
|
|
1856 |
|
|
|
1857 |
def process_getUserSanctionDetails(self, seqid, iprot, oprot):
|
|
|
1858 |
args = getUserSanctionDetails_args()
|
|
|
1859 |
args.read(iprot)
|
|
|
1860 |
iprot.readMessageEnd()
|
|
|
1861 |
result = getUserSanctionDetails_result()
|
|
|
1862 |
result.success = self._handler.getUserSanctionDetails(args.userId)
|
|
|
1863 |
oprot.writeMessageBegin("getUserSanctionDetails", TMessageType.REPLY, seqid)
|
|
|
1864 |
result.write(oprot)
|
|
|
1865 |
oprot.writeMessageEnd()
|
|
|
1866 |
oprot.trans.flush()
|
|
|
1867 |
|
|
|
1868 |
def process_getUserSanctionDetailsForCreditor(self, seqid, iprot, oprot):
|
|
|
1869 |
args = getUserSanctionDetailsForCreditor_args()
|
|
|
1870 |
args.read(iprot)
|
|
|
1871 |
iprot.readMessageEnd()
|
|
|
1872 |
result = getUserSanctionDetailsForCreditor_result()
|
|
|
1873 |
result.success = self._handler.getUserSanctionDetailsForCreditor(args.userId, args.creditorId)
|
|
|
1874 |
oprot.writeMessageBegin("getUserSanctionDetailsForCreditor", TMessageType.REPLY, seqid)
|
|
|
1875 |
result.write(oprot)
|
|
|
1876 |
oprot.writeMessageEnd()
|
|
|
1877 |
oprot.trans.flush()
|
|
|
1878 |
|
|
|
1879 |
def process_updateUserSanction(self, seqid, iprot, oprot):
|
|
|
1880 |
args = updateUserSanction_args()
|
|
|
1881 |
args.read(iprot)
|
|
|
1882 |
iprot.readMessageEnd()
|
|
|
1883 |
result = updateUserSanction_result()
|
|
|
1884 |
try:
|
|
|
1885 |
result.success = self._handler.updateUserSanction(args.userSanaction)
|
|
|
1886 |
except PaymentException, pe:
|
|
|
1887 |
result.pe = pe
|
|
|
1888 |
oprot.writeMessageBegin("updateUserSanction", TMessageType.REPLY, seqid)
|
|
|
1889 |
result.write(oprot)
|
|
|
1890 |
oprot.writeMessageEnd()
|
|
|
1891 |
oprot.trans.flush()
|
|
|
1892 |
|
|
|
1893 |
def process_getCreditHistoryRecordsForTransaction(self, seqid, iprot, oprot):
|
|
|
1894 |
args = getCreditHistoryRecordsForTransaction_args()
|
|
|
1895 |
args.read(iprot)
|
|
|
1896 |
iprot.readMessageEnd()
|
|
|
1897 |
result = getCreditHistoryRecordsForTransaction_result()
|
|
|
1898 |
result.success = self._handler.getCreditHistoryRecordsForTransaction(args.paymentId, args.creditorId, args.creditTxnType)
|
|
|
1899 |
oprot.writeMessageBegin("getCreditHistoryRecordsForTransaction", TMessageType.REPLY, seqid)
|
|
|
1900 |
result.write(oprot)
|
|
|
1901 |
oprot.writeMessageEnd()
|
|
|
1902 |
oprot.trans.flush()
|
|
|
1903 |
|
|
|
1904 |
def process_getCreditHistoryRecordsForUserAndCreditor(self, seqid, iprot, oprot):
|
|
|
1905 |
args = getCreditHistoryRecordsForUserAndCreditor_args()
|
|
|
1906 |
args.read(iprot)
|
|
|
1907 |
iprot.readMessageEnd()
|
|
|
1908 |
result = getCreditHistoryRecordsForUserAndCreditor_result()
|
|
|
1909 |
result.success = self._handler.getCreditHistoryRecordsForUserAndCreditor(args.userId, args.creditTxnType)
|
|
|
1910 |
oprot.writeMessageBegin("getCreditHistoryRecordsForUserAndCreditor", TMessageType.REPLY, seqid)
|
|
|
1911 |
result.write(oprot)
|
|
|
1912 |
oprot.writeMessageEnd()
|
|
|
1913 |
oprot.trans.flush()
|
|
|
1914 |
|
|
|
1915 |
def process_processCreditTransaction(self, seqid, iprot, oprot):
|
|
|
1916 |
args = processCreditTransaction_args()
|
|
|
1917 |
args.read(iprot)
|
|
|
1918 |
iprot.readMessageEnd()
|
|
|
1919 |
result = processCreditTransaction_result()
|
|
|
1920 |
try:
|
|
|
1921 |
result.success = self._handler.processCreditTransaction(args.paymentId, args.creditTxns)
|
|
|
1922 |
except PaymentException, pe:
|
|
|
1923 |
result.pe = pe
|
|
|
1924 |
oprot.writeMessageBegin("processCreditTransaction", TMessageType.REPLY, seqid)
|
|
|
1925 |
result.write(oprot)
|
|
|
1926 |
oprot.writeMessageEnd()
|
|
|
1927 |
oprot.trans.flush()
|
|
|
1928 |
|
|
|
1929 |
def process_getLoanPayableForUserToCreditor(self, seqid, iprot, oprot):
|
|
|
1930 |
args = getLoanPayableForUserToCreditor_args()
|
|
|
1931 |
args.read(iprot)
|
|
|
1932 |
iprot.readMessageEnd()
|
|
|
1933 |
result = getLoanPayableForUserToCreditor_result()
|
|
|
1934 |
result.success = self._handler.getLoanPayableForUserToCreditor(args.userId, args.creditorId, args.dueDate)
|
|
|
1935 |
oprot.writeMessageBegin("getLoanPayableForUserToCreditor", TMessageType.REPLY, seqid)
|
|
|
1936 |
result.write(oprot)
|
|
|
1937 |
oprot.writeMessageEnd()
|
|
|
1938 |
oprot.trans.flush()
|
|
|
1939 |
|
|
|
1940 |
|
| 420 |
ashish |
1941 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
1942 |
|
|
|
1943 |
class createPayment_args:
|
|
|
1944 |
"""
|
|
|
1945 |
Attributes:
|
| 696 |
rajveer |
1946 |
- userId
|
| 420 |
ashish |
1947 |
- amount
|
| 696 |
rajveer |
1948 |
- gatewayId
|
|
|
1949 |
- txnId
|
| 6050 |
anupam.sin |
1950 |
- isDigital
|
| 420 |
ashish |
1951 |
"""
|
|
|
1952 |
|
|
|
1953 |
thrift_spec = (
|
|
|
1954 |
None, # 0
|
| 696 |
rajveer |
1955 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
1956 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
1957 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
1958 |
(4, TType.I64, 'txnId', None, None, ), # 4
|
| 6050 |
anupam.sin |
1959 |
(5, TType.BOOL, 'isDigital', None, None, ), # 5
|
| 420 |
ashish |
1960 |
)
|
|
|
1961 |
|
| 6050 |
anupam.sin |
1962 |
def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None, isDigital=None,):
|
| 696 |
rajveer |
1963 |
self.userId = userId
|
| 420 |
ashish |
1964 |
self.amount = amount
|
| 696 |
rajveer |
1965 |
self.gatewayId = gatewayId
|
|
|
1966 |
self.txnId = txnId
|
| 6050 |
anupam.sin |
1967 |
self.isDigital = isDigital
|
| 420 |
ashish |
1968 |
|
|
|
1969 |
def read(self, iprot):
|
|
|
1970 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1971 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1972 |
return
|
|
|
1973 |
iprot.readStructBegin()
|
|
|
1974 |
while True:
|
|
|
1975 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1976 |
if ftype == TType.STOP:
|
|
|
1977 |
break
|
|
|
1978 |
if fid == 1:
|
|
|
1979 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1980 |
self.userId = iprot.readI64();
|
| 420 |
ashish |
1981 |
else:
|
|
|
1982 |
iprot.skip(ftype)
|
|
|
1983 |
elif fid == 2:
|
| 696 |
rajveer |
1984 |
if ftype == TType.DOUBLE:
|
|
|
1985 |
self.amount = iprot.readDouble();
|
| 420 |
ashish |
1986 |
else:
|
|
|
1987 |
iprot.skip(ftype)
|
|
|
1988 |
elif fid == 3:
|
| 696 |
rajveer |
1989 |
if ftype == TType.I64:
|
|
|
1990 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1991 |
else:
|
|
|
1992 |
iprot.skip(ftype)
|
|
|
1993 |
elif fid == 4:
|
|
|
1994 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1995 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
1996 |
else:
|
|
|
1997 |
iprot.skip(ftype)
|
| 6050 |
anupam.sin |
1998 |
elif fid == 5:
|
|
|
1999 |
if ftype == TType.BOOL:
|
|
|
2000 |
self.isDigital = iprot.readBool();
|
|
|
2001 |
else:
|
|
|
2002 |
iprot.skip(ftype)
|
| 420 |
ashish |
2003 |
else:
|
|
|
2004 |
iprot.skip(ftype)
|
|
|
2005 |
iprot.readFieldEnd()
|
|
|
2006 |
iprot.readStructEnd()
|
|
|
2007 |
|
|
|
2008 |
def write(self, oprot):
|
|
|
2009 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2010 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2011 |
return
|
|
|
2012 |
oprot.writeStructBegin('createPayment_args')
|
| 3431 |
rajveer |
2013 |
if self.userId is not None:
|
| 696 |
rajveer |
2014 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
2015 |
oprot.writeI64(self.userId)
|
| 420 |
ashish |
2016 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2017 |
if self.amount is not None:
|
| 696 |
rajveer |
2018 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
| 420 |
ashish |
2019 |
oprot.writeDouble(self.amount)
|
|
|
2020 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2021 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
2022 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
2023 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
2024 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2025 |
if self.txnId is not None:
|
| 696 |
rajveer |
2026 |
oprot.writeFieldBegin('txnId', TType.I64, 4)
|
|
|
2027 |
oprot.writeI64(self.txnId)
|
|
|
2028 |
oprot.writeFieldEnd()
|
| 6050 |
anupam.sin |
2029 |
if self.isDigital is not None:
|
|
|
2030 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 5)
|
|
|
2031 |
oprot.writeBool(self.isDigital)
|
|
|
2032 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
2033 |
oprot.writeFieldStop()
|
|
|
2034 |
oprot.writeStructEnd()
|
|
|
2035 |
|
| 3431 |
rajveer |
2036 |
def validate(self):
|
|
|
2037 |
return
|
|
|
2038 |
|
|
|
2039 |
|
| 420 |
ashish |
2040 |
def __repr__(self):
|
|
|
2041 |
L = ['%s=%r' % (key, value)
|
|
|
2042 |
for key, value in self.__dict__.iteritems()]
|
|
|
2043 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2044 |
|
|
|
2045 |
def __eq__(self, other):
|
|
|
2046 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2047 |
|
|
|
2048 |
def __ne__(self, other):
|
|
|
2049 |
return not (self == other)
|
|
|
2050 |
|
|
|
2051 |
class createPayment_result:
|
|
|
2052 |
"""
|
|
|
2053 |
Attributes:
|
|
|
2054 |
- success
|
|
|
2055 |
- pe
|
|
|
2056 |
"""
|
|
|
2057 |
|
|
|
2058 |
thrift_spec = (
|
|
|
2059 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
2060 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2061 |
)
|
|
|
2062 |
|
|
|
2063 |
def __init__(self, success=None, pe=None,):
|
|
|
2064 |
self.success = success
|
|
|
2065 |
self.pe = pe
|
|
|
2066 |
|
|
|
2067 |
def read(self, iprot):
|
|
|
2068 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2069 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2070 |
return
|
|
|
2071 |
iprot.readStructBegin()
|
|
|
2072 |
while True:
|
|
|
2073 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2074 |
if ftype == TType.STOP:
|
|
|
2075 |
break
|
|
|
2076 |
if fid == 0:
|
|
|
2077 |
if ftype == TType.I64:
|
|
|
2078 |
self.success = iprot.readI64();
|
|
|
2079 |
else:
|
|
|
2080 |
iprot.skip(ftype)
|
|
|
2081 |
elif fid == 1:
|
|
|
2082 |
if ftype == TType.STRUCT:
|
|
|
2083 |
self.pe = PaymentException()
|
|
|
2084 |
self.pe.read(iprot)
|
|
|
2085 |
else:
|
|
|
2086 |
iprot.skip(ftype)
|
|
|
2087 |
else:
|
|
|
2088 |
iprot.skip(ftype)
|
|
|
2089 |
iprot.readFieldEnd()
|
|
|
2090 |
iprot.readStructEnd()
|
|
|
2091 |
|
|
|
2092 |
def write(self, oprot):
|
|
|
2093 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2094 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2095 |
return
|
|
|
2096 |
oprot.writeStructBegin('createPayment_result')
|
| 3431 |
rajveer |
2097 |
if self.success is not None:
|
| 420 |
ashish |
2098 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
2099 |
oprot.writeI64(self.success)
|
|
|
2100 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2101 |
if self.pe is not None:
|
| 420 |
ashish |
2102 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2103 |
self.pe.write(oprot)
|
|
|
2104 |
oprot.writeFieldEnd()
|
|
|
2105 |
oprot.writeFieldStop()
|
|
|
2106 |
oprot.writeStructEnd()
|
|
|
2107 |
|
| 3431 |
rajveer |
2108 |
def validate(self):
|
|
|
2109 |
return
|
|
|
2110 |
|
|
|
2111 |
|
| 420 |
ashish |
2112 |
def __repr__(self):
|
|
|
2113 |
L = ['%s=%r' % (key, value)
|
|
|
2114 |
for key, value in self.__dict__.iteritems()]
|
|
|
2115 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2116 |
|
|
|
2117 |
def __eq__(self, other):
|
|
|
2118 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2119 |
|
|
|
2120 |
def __ne__(self, other):
|
|
|
2121 |
return not (self == other)
|
|
|
2122 |
|
|
|
2123 |
class getPaymentsForUser_args:
|
|
|
2124 |
"""
|
|
|
2125 |
Attributes:
|
|
|
2126 |
- userId
|
| 696 |
rajveer |
2127 |
- fromTime
|
|
|
2128 |
- toTime
|
| 420 |
ashish |
2129 |
- status
|
| 696 |
rajveer |
2130 |
- gatewayId
|
| 420 |
ashish |
2131 |
"""
|
|
|
2132 |
|
|
|
2133 |
thrift_spec = (
|
|
|
2134 |
None, # 0
|
|
|
2135 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 696 |
rajveer |
2136 |
(2, TType.I64, 'fromTime', None, None, ), # 2
|
|
|
2137 |
(3, TType.I64, 'toTime', None, None, ), # 3
|
| 420 |
ashish |
2138 |
(4, TType.I32, 'status', None, None, ), # 4
|
| 696 |
rajveer |
2139 |
(5, TType.I64, 'gatewayId', None, None, ), # 5
|
| 420 |
ashish |
2140 |
)
|
|
|
2141 |
|
| 696 |
rajveer |
2142 |
def __init__(self, userId=None, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
| 420 |
ashish |
2143 |
self.userId = userId
|
| 696 |
rajveer |
2144 |
self.fromTime = fromTime
|
|
|
2145 |
self.toTime = toTime
|
| 420 |
ashish |
2146 |
self.status = status
|
| 696 |
rajveer |
2147 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
2148 |
|
|
|
2149 |
def read(self, iprot):
|
|
|
2150 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2151 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2152 |
return
|
|
|
2153 |
iprot.readStructBegin()
|
|
|
2154 |
while True:
|
|
|
2155 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2156 |
if ftype == TType.STOP:
|
|
|
2157 |
break
|
|
|
2158 |
if fid == 1:
|
|
|
2159 |
if ftype == TType.I64:
|
|
|
2160 |
self.userId = iprot.readI64();
|
|
|
2161 |
else:
|
|
|
2162 |
iprot.skip(ftype)
|
|
|
2163 |
elif fid == 2:
|
|
|
2164 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2165 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
2166 |
else:
|
|
|
2167 |
iprot.skip(ftype)
|
|
|
2168 |
elif fid == 3:
|
|
|
2169 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2170 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
2171 |
else:
|
|
|
2172 |
iprot.skip(ftype)
|
|
|
2173 |
elif fid == 4:
|
|
|
2174 |
if ftype == TType.I32:
|
|
|
2175 |
self.status = iprot.readI32();
|
|
|
2176 |
else:
|
|
|
2177 |
iprot.skip(ftype)
|
|
|
2178 |
elif fid == 5:
|
|
|
2179 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2180 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
2181 |
else:
|
|
|
2182 |
iprot.skip(ftype)
|
|
|
2183 |
else:
|
|
|
2184 |
iprot.skip(ftype)
|
|
|
2185 |
iprot.readFieldEnd()
|
|
|
2186 |
iprot.readStructEnd()
|
|
|
2187 |
|
|
|
2188 |
def write(self, oprot):
|
|
|
2189 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2190 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2191 |
return
|
|
|
2192 |
oprot.writeStructBegin('getPaymentsForUser_args')
|
| 3431 |
rajveer |
2193 |
if self.userId is not None:
|
| 420 |
ashish |
2194 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
2195 |
oprot.writeI64(self.userId)
|
|
|
2196 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2197 |
if self.fromTime is not None:
|
| 696 |
rajveer |
2198 |
oprot.writeFieldBegin('fromTime', TType.I64, 2)
|
|
|
2199 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
2200 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2201 |
if self.toTime is not None:
|
| 696 |
rajveer |
2202 |
oprot.writeFieldBegin('toTime', TType.I64, 3)
|
|
|
2203 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
2204 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2205 |
if self.status is not None:
|
| 420 |
ashish |
2206 |
oprot.writeFieldBegin('status', TType.I32, 4)
|
|
|
2207 |
oprot.writeI32(self.status)
|
|
|
2208 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2209 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
2210 |
oprot.writeFieldBegin('gatewayId', TType.I64, 5)
|
|
|
2211 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
2212 |
oprot.writeFieldEnd()
|
|
|
2213 |
oprot.writeFieldStop()
|
|
|
2214 |
oprot.writeStructEnd()
|
|
|
2215 |
|
| 3431 |
rajveer |
2216 |
def validate(self):
|
|
|
2217 |
return
|
|
|
2218 |
|
|
|
2219 |
|
| 420 |
ashish |
2220 |
def __repr__(self):
|
|
|
2221 |
L = ['%s=%r' % (key, value)
|
|
|
2222 |
for key, value in self.__dict__.iteritems()]
|
|
|
2223 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2224 |
|
|
|
2225 |
def __eq__(self, other):
|
|
|
2226 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2227 |
|
|
|
2228 |
def __ne__(self, other):
|
|
|
2229 |
return not (self == other)
|
|
|
2230 |
|
|
|
2231 |
class getPaymentsForUser_result:
|
|
|
2232 |
"""
|
|
|
2233 |
Attributes:
|
|
|
2234 |
- success
|
|
|
2235 |
- pe
|
|
|
2236 |
"""
|
|
|
2237 |
|
|
|
2238 |
thrift_spec = (
|
|
|
2239 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
2240 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2241 |
)
|
|
|
2242 |
|
|
|
2243 |
def __init__(self, success=None, pe=None,):
|
|
|
2244 |
self.success = success
|
|
|
2245 |
self.pe = pe
|
|
|
2246 |
|
|
|
2247 |
def read(self, iprot):
|
|
|
2248 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2249 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2250 |
return
|
|
|
2251 |
iprot.readStructBegin()
|
|
|
2252 |
while True:
|
|
|
2253 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2254 |
if ftype == TType.STOP:
|
|
|
2255 |
break
|
|
|
2256 |
if fid == 0:
|
|
|
2257 |
if ftype == TType.LIST:
|
|
|
2258 |
self.success = []
|
| 2747 |
chandransh |
2259 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
2260 |
for _i25 in xrange(_size21):
|
|
|
2261 |
_elem26 = Payment()
|
|
|
2262 |
_elem26.read(iprot)
|
|
|
2263 |
self.success.append(_elem26)
|
| 420 |
ashish |
2264 |
iprot.readListEnd()
|
|
|
2265 |
else:
|
|
|
2266 |
iprot.skip(ftype)
|
|
|
2267 |
elif fid == 1:
|
|
|
2268 |
if ftype == TType.STRUCT:
|
|
|
2269 |
self.pe = PaymentException()
|
|
|
2270 |
self.pe.read(iprot)
|
|
|
2271 |
else:
|
|
|
2272 |
iprot.skip(ftype)
|
|
|
2273 |
else:
|
|
|
2274 |
iprot.skip(ftype)
|
|
|
2275 |
iprot.readFieldEnd()
|
|
|
2276 |
iprot.readStructEnd()
|
|
|
2277 |
|
|
|
2278 |
def write(self, oprot):
|
|
|
2279 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2280 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2281 |
return
|
|
|
2282 |
oprot.writeStructBegin('getPaymentsForUser_result')
|
| 3431 |
rajveer |
2283 |
if self.success is not None:
|
| 420 |
ashish |
2284 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2285 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 2747 |
chandransh |
2286 |
for iter27 in self.success:
|
|
|
2287 |
iter27.write(oprot)
|
| 420 |
ashish |
2288 |
oprot.writeListEnd()
|
|
|
2289 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2290 |
if self.pe is not None:
|
| 420 |
ashish |
2291 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2292 |
self.pe.write(oprot)
|
|
|
2293 |
oprot.writeFieldEnd()
|
|
|
2294 |
oprot.writeFieldStop()
|
|
|
2295 |
oprot.writeStructEnd()
|
|
|
2296 |
|
| 3431 |
rajveer |
2297 |
def validate(self):
|
|
|
2298 |
return
|
|
|
2299 |
|
|
|
2300 |
|
| 420 |
ashish |
2301 |
def __repr__(self):
|
|
|
2302 |
L = ['%s=%r' % (key, value)
|
|
|
2303 |
for key, value in self.__dict__.iteritems()]
|
|
|
2304 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2305 |
|
|
|
2306 |
def __eq__(self, other):
|
|
|
2307 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2308 |
|
|
|
2309 |
def __ne__(self, other):
|
|
|
2310 |
return not (self == other)
|
|
|
2311 |
|
|
|
2312 |
class getPayments_args:
|
|
|
2313 |
"""
|
|
|
2314 |
Attributes:
|
| 696 |
rajveer |
2315 |
- fromTime
|
|
|
2316 |
- toTime
|
| 420 |
ashish |
2317 |
- status
|
| 696 |
rajveer |
2318 |
- gatewayId
|
| 420 |
ashish |
2319 |
"""
|
|
|
2320 |
|
|
|
2321 |
thrift_spec = (
|
|
|
2322 |
None, # 0
|
| 696 |
rajveer |
2323 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
2324 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
| 420 |
ashish |
2325 |
(3, TType.I32, 'status', None, None, ), # 3
|
| 696 |
rajveer |
2326 |
(4, TType.I64, 'gatewayId', None, None, ), # 4
|
| 420 |
ashish |
2327 |
)
|
|
|
2328 |
|
| 696 |
rajveer |
2329 |
def __init__(self, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
|
|
2330 |
self.fromTime = fromTime
|
|
|
2331 |
self.toTime = toTime
|
| 420 |
ashish |
2332 |
self.status = status
|
| 696 |
rajveer |
2333 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
2334 |
|
|
|
2335 |
def read(self, iprot):
|
|
|
2336 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2337 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2338 |
return
|
|
|
2339 |
iprot.readStructBegin()
|
|
|
2340 |
while True:
|
|
|
2341 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2342 |
if ftype == TType.STOP:
|
|
|
2343 |
break
|
|
|
2344 |
if fid == 1:
|
|
|
2345 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2346 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
2347 |
else:
|
|
|
2348 |
iprot.skip(ftype)
|
|
|
2349 |
elif fid == 2:
|
|
|
2350 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2351 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
2352 |
else:
|
|
|
2353 |
iprot.skip(ftype)
|
|
|
2354 |
elif fid == 3:
|
|
|
2355 |
if ftype == TType.I32:
|
|
|
2356 |
self.status = iprot.readI32();
|
|
|
2357 |
else:
|
|
|
2358 |
iprot.skip(ftype)
|
|
|
2359 |
elif fid == 4:
|
|
|
2360 |
if ftype == TType.I64:
|
| 696 |
rajveer |
2361 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
2362 |
else:
|
|
|
2363 |
iprot.skip(ftype)
|
|
|
2364 |
else:
|
|
|
2365 |
iprot.skip(ftype)
|
|
|
2366 |
iprot.readFieldEnd()
|
|
|
2367 |
iprot.readStructEnd()
|
|
|
2368 |
|
|
|
2369 |
def write(self, oprot):
|
|
|
2370 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2371 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2372 |
return
|
|
|
2373 |
oprot.writeStructBegin('getPayments_args')
|
| 3431 |
rajveer |
2374 |
if self.fromTime is not None:
|
| 696 |
rajveer |
2375 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
2376 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
2377 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2378 |
if self.toTime is not None:
|
| 696 |
rajveer |
2379 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
2380 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
2381 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2382 |
if self.status is not None:
|
| 420 |
ashish |
2383 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
2384 |
oprot.writeI32(self.status)
|
|
|
2385 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2386 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
2387 |
oprot.writeFieldBegin('gatewayId', TType.I64, 4)
|
|
|
2388 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
2389 |
oprot.writeFieldEnd()
|
|
|
2390 |
oprot.writeFieldStop()
|
|
|
2391 |
oprot.writeStructEnd()
|
|
|
2392 |
|
| 3431 |
rajveer |
2393 |
def validate(self):
|
|
|
2394 |
return
|
|
|
2395 |
|
|
|
2396 |
|
| 420 |
ashish |
2397 |
def __repr__(self):
|
|
|
2398 |
L = ['%s=%r' % (key, value)
|
|
|
2399 |
for key, value in self.__dict__.iteritems()]
|
|
|
2400 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2401 |
|
|
|
2402 |
def __eq__(self, other):
|
|
|
2403 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2404 |
|
|
|
2405 |
def __ne__(self, other):
|
|
|
2406 |
return not (self == other)
|
|
|
2407 |
|
|
|
2408 |
class getPayments_result:
|
|
|
2409 |
"""
|
|
|
2410 |
Attributes:
|
|
|
2411 |
- success
|
|
|
2412 |
- pe
|
|
|
2413 |
"""
|
|
|
2414 |
|
|
|
2415 |
thrift_spec = (
|
|
|
2416 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
2417 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2418 |
)
|
|
|
2419 |
|
|
|
2420 |
def __init__(self, success=None, pe=None,):
|
|
|
2421 |
self.success = success
|
|
|
2422 |
self.pe = pe
|
|
|
2423 |
|
|
|
2424 |
def read(self, iprot):
|
|
|
2425 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2426 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2427 |
return
|
|
|
2428 |
iprot.readStructBegin()
|
|
|
2429 |
while True:
|
|
|
2430 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2431 |
if ftype == TType.STOP:
|
|
|
2432 |
break
|
|
|
2433 |
if fid == 0:
|
|
|
2434 |
if ftype == TType.LIST:
|
|
|
2435 |
self.success = []
|
| 2747 |
chandransh |
2436 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
2437 |
for _i32 in xrange(_size28):
|
|
|
2438 |
_elem33 = Payment()
|
|
|
2439 |
_elem33.read(iprot)
|
|
|
2440 |
self.success.append(_elem33)
|
| 420 |
ashish |
2441 |
iprot.readListEnd()
|
|
|
2442 |
else:
|
|
|
2443 |
iprot.skip(ftype)
|
|
|
2444 |
elif fid == 1:
|
|
|
2445 |
if ftype == TType.STRUCT:
|
|
|
2446 |
self.pe = PaymentException()
|
|
|
2447 |
self.pe.read(iprot)
|
|
|
2448 |
else:
|
|
|
2449 |
iprot.skip(ftype)
|
|
|
2450 |
else:
|
|
|
2451 |
iprot.skip(ftype)
|
|
|
2452 |
iprot.readFieldEnd()
|
|
|
2453 |
iprot.readStructEnd()
|
|
|
2454 |
|
|
|
2455 |
def write(self, oprot):
|
|
|
2456 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2457 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2458 |
return
|
|
|
2459 |
oprot.writeStructBegin('getPayments_result')
|
| 3431 |
rajveer |
2460 |
if self.success is not None:
|
| 420 |
ashish |
2461 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2462 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 2747 |
chandransh |
2463 |
for iter34 in self.success:
|
|
|
2464 |
iter34.write(oprot)
|
| 420 |
ashish |
2465 |
oprot.writeListEnd()
|
|
|
2466 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2467 |
if self.pe is not None:
|
| 420 |
ashish |
2468 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2469 |
self.pe.write(oprot)
|
|
|
2470 |
oprot.writeFieldEnd()
|
|
|
2471 |
oprot.writeFieldStop()
|
|
|
2472 |
oprot.writeStructEnd()
|
|
|
2473 |
|
| 3431 |
rajveer |
2474 |
def validate(self):
|
|
|
2475 |
return
|
|
|
2476 |
|
|
|
2477 |
|
| 420 |
ashish |
2478 |
def __repr__(self):
|
|
|
2479 |
L = ['%s=%r' % (key, value)
|
|
|
2480 |
for key, value in self.__dict__.iteritems()]
|
|
|
2481 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2482 |
|
|
|
2483 |
def __eq__(self, other):
|
|
|
2484 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2485 |
|
|
|
2486 |
def __ne__(self, other):
|
|
|
2487 |
return not (self == other)
|
|
|
2488 |
|
| 4141 |
chandransh |
2489 |
class getPaymentsByCapturedDate_args:
|
|
|
2490 |
"""
|
|
|
2491 |
Attributes:
|
|
|
2492 |
- fromTime
|
|
|
2493 |
- toTime
|
|
|
2494 |
- gatewayId
|
|
|
2495 |
"""
|
|
|
2496 |
|
|
|
2497 |
thrift_spec = (
|
|
|
2498 |
None, # 0
|
|
|
2499 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
2500 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
|
|
2501 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
2502 |
)
|
|
|
2503 |
|
|
|
2504 |
def __init__(self, fromTime=None, toTime=None, gatewayId=None,):
|
|
|
2505 |
self.fromTime = fromTime
|
|
|
2506 |
self.toTime = toTime
|
|
|
2507 |
self.gatewayId = gatewayId
|
|
|
2508 |
|
|
|
2509 |
def read(self, iprot):
|
|
|
2510 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2511 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2512 |
return
|
|
|
2513 |
iprot.readStructBegin()
|
|
|
2514 |
while True:
|
|
|
2515 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2516 |
if ftype == TType.STOP:
|
|
|
2517 |
break
|
|
|
2518 |
if fid == 1:
|
|
|
2519 |
if ftype == TType.I64:
|
|
|
2520 |
self.fromTime = iprot.readI64();
|
|
|
2521 |
else:
|
|
|
2522 |
iprot.skip(ftype)
|
|
|
2523 |
elif fid == 2:
|
|
|
2524 |
if ftype == TType.I64:
|
|
|
2525 |
self.toTime = iprot.readI64();
|
|
|
2526 |
else:
|
|
|
2527 |
iprot.skip(ftype)
|
|
|
2528 |
elif fid == 3:
|
|
|
2529 |
if ftype == TType.I64:
|
|
|
2530 |
self.gatewayId = iprot.readI64();
|
|
|
2531 |
else:
|
|
|
2532 |
iprot.skip(ftype)
|
|
|
2533 |
else:
|
|
|
2534 |
iprot.skip(ftype)
|
|
|
2535 |
iprot.readFieldEnd()
|
|
|
2536 |
iprot.readStructEnd()
|
|
|
2537 |
|
|
|
2538 |
def write(self, oprot):
|
|
|
2539 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2540 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2541 |
return
|
|
|
2542 |
oprot.writeStructBegin('getPaymentsByCapturedDate_args')
|
|
|
2543 |
if self.fromTime is not None:
|
|
|
2544 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
2545 |
oprot.writeI64(self.fromTime)
|
|
|
2546 |
oprot.writeFieldEnd()
|
|
|
2547 |
if self.toTime is not None:
|
|
|
2548 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
2549 |
oprot.writeI64(self.toTime)
|
|
|
2550 |
oprot.writeFieldEnd()
|
|
|
2551 |
if self.gatewayId is not None:
|
|
|
2552 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
2553 |
oprot.writeI64(self.gatewayId)
|
|
|
2554 |
oprot.writeFieldEnd()
|
|
|
2555 |
oprot.writeFieldStop()
|
|
|
2556 |
oprot.writeStructEnd()
|
|
|
2557 |
|
|
|
2558 |
def validate(self):
|
|
|
2559 |
return
|
|
|
2560 |
|
|
|
2561 |
|
|
|
2562 |
def __repr__(self):
|
|
|
2563 |
L = ['%s=%r' % (key, value)
|
|
|
2564 |
for key, value in self.__dict__.iteritems()]
|
|
|
2565 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2566 |
|
|
|
2567 |
def __eq__(self, other):
|
|
|
2568 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2569 |
|
|
|
2570 |
def __ne__(self, other):
|
|
|
2571 |
return not (self == other)
|
|
|
2572 |
|
|
|
2573 |
class getPaymentsByCapturedDate_result:
|
|
|
2574 |
"""
|
|
|
2575 |
Attributes:
|
|
|
2576 |
- success
|
|
|
2577 |
- pe
|
|
|
2578 |
"""
|
|
|
2579 |
|
|
|
2580 |
thrift_spec = (
|
|
|
2581 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
2582 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2583 |
)
|
|
|
2584 |
|
|
|
2585 |
def __init__(self, success=None, pe=None,):
|
|
|
2586 |
self.success = success
|
|
|
2587 |
self.pe = pe
|
|
|
2588 |
|
|
|
2589 |
def read(self, iprot):
|
|
|
2590 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2591 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2592 |
return
|
|
|
2593 |
iprot.readStructBegin()
|
|
|
2594 |
while True:
|
|
|
2595 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2596 |
if ftype == TType.STOP:
|
|
|
2597 |
break
|
|
|
2598 |
if fid == 0:
|
|
|
2599 |
if ftype == TType.LIST:
|
|
|
2600 |
self.success = []
|
|
|
2601 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
2602 |
for _i39 in xrange(_size35):
|
|
|
2603 |
_elem40 = Payment()
|
|
|
2604 |
_elem40.read(iprot)
|
|
|
2605 |
self.success.append(_elem40)
|
|
|
2606 |
iprot.readListEnd()
|
|
|
2607 |
else:
|
|
|
2608 |
iprot.skip(ftype)
|
|
|
2609 |
elif fid == 1:
|
|
|
2610 |
if ftype == TType.STRUCT:
|
|
|
2611 |
self.pe = PaymentException()
|
|
|
2612 |
self.pe.read(iprot)
|
|
|
2613 |
else:
|
|
|
2614 |
iprot.skip(ftype)
|
|
|
2615 |
else:
|
|
|
2616 |
iprot.skip(ftype)
|
|
|
2617 |
iprot.readFieldEnd()
|
|
|
2618 |
iprot.readStructEnd()
|
|
|
2619 |
|
|
|
2620 |
def write(self, oprot):
|
|
|
2621 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2622 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2623 |
return
|
|
|
2624 |
oprot.writeStructBegin('getPaymentsByCapturedDate_result')
|
|
|
2625 |
if self.success is not None:
|
|
|
2626 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2627 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2628 |
for iter41 in self.success:
|
|
|
2629 |
iter41.write(oprot)
|
|
|
2630 |
oprot.writeListEnd()
|
|
|
2631 |
oprot.writeFieldEnd()
|
|
|
2632 |
if self.pe is not None:
|
|
|
2633 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2634 |
self.pe.write(oprot)
|
|
|
2635 |
oprot.writeFieldEnd()
|
|
|
2636 |
oprot.writeFieldStop()
|
|
|
2637 |
oprot.writeStructEnd()
|
|
|
2638 |
|
|
|
2639 |
def validate(self):
|
|
|
2640 |
return
|
|
|
2641 |
|
|
|
2642 |
|
|
|
2643 |
def __repr__(self):
|
|
|
2644 |
L = ['%s=%r' % (key, value)
|
|
|
2645 |
for key, value in self.__dict__.iteritems()]
|
|
|
2646 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2647 |
|
|
|
2648 |
def __eq__(self, other):
|
|
|
2649 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2650 |
|
|
|
2651 |
def __ne__(self, other):
|
|
|
2652 |
return not (self == other)
|
|
|
2653 |
|
| 696 |
rajveer |
2654 |
class getPaymentGateway_args:
|
| 420 |
ashish |
2655 |
"""
|
|
|
2656 |
Attributes:
|
|
|
2657 |
- id
|
|
|
2658 |
"""
|
|
|
2659 |
|
|
|
2660 |
thrift_spec = (
|
|
|
2661 |
None, # 0
|
|
|
2662 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2663 |
)
|
|
|
2664 |
|
| 696 |
rajveer |
2665 |
def __init__(self, id=None,):
|
| 420 |
ashish |
2666 |
self.id = id
|
|
|
2667 |
|
|
|
2668 |
def read(self, iprot):
|
|
|
2669 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2670 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2671 |
return
|
|
|
2672 |
iprot.readStructBegin()
|
|
|
2673 |
while True:
|
|
|
2674 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2675 |
if ftype == TType.STOP:
|
|
|
2676 |
break
|
|
|
2677 |
if fid == 1:
|
|
|
2678 |
if ftype == TType.I64:
|
|
|
2679 |
self.id = iprot.readI64();
|
|
|
2680 |
else:
|
|
|
2681 |
iprot.skip(ftype)
|
|
|
2682 |
else:
|
|
|
2683 |
iprot.skip(ftype)
|
|
|
2684 |
iprot.readFieldEnd()
|
|
|
2685 |
iprot.readStructEnd()
|
|
|
2686 |
|
|
|
2687 |
def write(self, oprot):
|
|
|
2688 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2689 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2690 |
return
|
| 696 |
rajveer |
2691 |
oprot.writeStructBegin('getPaymentGateway_args')
|
| 3431 |
rajveer |
2692 |
if self.id is not None:
|
| 420 |
ashish |
2693 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2694 |
oprot.writeI64(self.id)
|
|
|
2695 |
oprot.writeFieldEnd()
|
|
|
2696 |
oprot.writeFieldStop()
|
|
|
2697 |
oprot.writeStructEnd()
|
|
|
2698 |
|
| 3431 |
rajveer |
2699 |
def validate(self):
|
|
|
2700 |
return
|
|
|
2701 |
|
|
|
2702 |
|
| 420 |
ashish |
2703 |
def __repr__(self):
|
|
|
2704 |
L = ['%s=%r' % (key, value)
|
|
|
2705 |
for key, value in self.__dict__.iteritems()]
|
|
|
2706 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2707 |
|
|
|
2708 |
def __eq__(self, other):
|
|
|
2709 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2710 |
|
|
|
2711 |
def __ne__(self, other):
|
|
|
2712 |
return not (self == other)
|
|
|
2713 |
|
| 696 |
rajveer |
2714 |
class getPaymentGateway_result:
|
| 420 |
ashish |
2715 |
"""
|
|
|
2716 |
Attributes:
|
|
|
2717 |
- success
|
|
|
2718 |
- pe
|
|
|
2719 |
"""
|
|
|
2720 |
|
|
|
2721 |
thrift_spec = (
|
| 696 |
rajveer |
2722 |
(0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
|
| 420 |
ashish |
2723 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2724 |
)
|
|
|
2725 |
|
|
|
2726 |
def __init__(self, success=None, pe=None,):
|
|
|
2727 |
self.success = success
|
|
|
2728 |
self.pe = pe
|
|
|
2729 |
|
|
|
2730 |
def read(self, iprot):
|
|
|
2731 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2732 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2733 |
return
|
|
|
2734 |
iprot.readStructBegin()
|
|
|
2735 |
while True:
|
|
|
2736 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2737 |
if ftype == TType.STOP:
|
|
|
2738 |
break
|
|
|
2739 |
if fid == 0:
|
| 696 |
rajveer |
2740 |
if ftype == TType.STRUCT:
|
|
|
2741 |
self.success = PaymentGateway()
|
|
|
2742 |
self.success.read(iprot)
|
| 420 |
ashish |
2743 |
else:
|
|
|
2744 |
iprot.skip(ftype)
|
|
|
2745 |
elif fid == 1:
|
|
|
2746 |
if ftype == TType.STRUCT:
|
|
|
2747 |
self.pe = PaymentException()
|
|
|
2748 |
self.pe.read(iprot)
|
|
|
2749 |
else:
|
|
|
2750 |
iprot.skip(ftype)
|
|
|
2751 |
else:
|
|
|
2752 |
iprot.skip(ftype)
|
|
|
2753 |
iprot.readFieldEnd()
|
|
|
2754 |
iprot.readStructEnd()
|
|
|
2755 |
|
|
|
2756 |
def write(self, oprot):
|
|
|
2757 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2758 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2759 |
return
|
| 696 |
rajveer |
2760 |
oprot.writeStructBegin('getPaymentGateway_result')
|
| 3431 |
rajveer |
2761 |
if self.success is not None:
|
| 696 |
rajveer |
2762 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2763 |
self.success.write(oprot)
|
| 420 |
ashish |
2764 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2765 |
if self.pe is not None:
|
| 420 |
ashish |
2766 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2767 |
self.pe.write(oprot)
|
|
|
2768 |
oprot.writeFieldEnd()
|
|
|
2769 |
oprot.writeFieldStop()
|
|
|
2770 |
oprot.writeStructEnd()
|
|
|
2771 |
|
| 3431 |
rajveer |
2772 |
def validate(self):
|
|
|
2773 |
return
|
|
|
2774 |
|
|
|
2775 |
|
| 420 |
ashish |
2776 |
def __repr__(self):
|
|
|
2777 |
L = ['%s=%r' % (key, value)
|
|
|
2778 |
for key, value in self.__dict__.iteritems()]
|
|
|
2779 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2780 |
|
|
|
2781 |
def __eq__(self, other):
|
|
|
2782 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2783 |
|
|
|
2784 |
def __ne__(self, other):
|
|
|
2785 |
return not (self == other)
|
|
|
2786 |
|
| 4600 |
varun.gupt |
2787 |
class getActivePaymentGateways_args:
|
|
|
2788 |
|
|
|
2789 |
thrift_spec = (
|
|
|
2790 |
)
|
|
|
2791 |
|
|
|
2792 |
def read(self, iprot):
|
|
|
2793 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2794 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2795 |
return
|
|
|
2796 |
iprot.readStructBegin()
|
|
|
2797 |
while True:
|
|
|
2798 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2799 |
if ftype == TType.STOP:
|
|
|
2800 |
break
|
|
|
2801 |
else:
|
|
|
2802 |
iprot.skip(ftype)
|
|
|
2803 |
iprot.readFieldEnd()
|
|
|
2804 |
iprot.readStructEnd()
|
|
|
2805 |
|
|
|
2806 |
def write(self, oprot):
|
|
|
2807 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2808 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2809 |
return
|
|
|
2810 |
oprot.writeStructBegin('getActivePaymentGateways_args')
|
|
|
2811 |
oprot.writeFieldStop()
|
|
|
2812 |
oprot.writeStructEnd()
|
|
|
2813 |
|
|
|
2814 |
def validate(self):
|
|
|
2815 |
return
|
|
|
2816 |
|
|
|
2817 |
|
|
|
2818 |
def __repr__(self):
|
|
|
2819 |
L = ['%s=%r' % (key, value)
|
|
|
2820 |
for key, value in self.__dict__.iteritems()]
|
|
|
2821 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2822 |
|
|
|
2823 |
def __eq__(self, other):
|
|
|
2824 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2825 |
|
|
|
2826 |
def __ne__(self, other):
|
|
|
2827 |
return not (self == other)
|
|
|
2828 |
|
|
|
2829 |
class getActivePaymentGateways_result:
|
|
|
2830 |
"""
|
|
|
2831 |
Attributes:
|
|
|
2832 |
- success
|
|
|
2833 |
- pe
|
|
|
2834 |
"""
|
|
|
2835 |
|
|
|
2836 |
thrift_spec = (
|
|
|
2837 |
(0, TType.LIST, 'success', (TType.STRUCT,(PaymentGateway, PaymentGateway.thrift_spec)), None, ), # 0
|
|
|
2838 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2839 |
)
|
|
|
2840 |
|
|
|
2841 |
def __init__(self, success=None, pe=None,):
|
|
|
2842 |
self.success = success
|
|
|
2843 |
self.pe = pe
|
|
|
2844 |
|
|
|
2845 |
def read(self, iprot):
|
|
|
2846 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2847 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2848 |
return
|
|
|
2849 |
iprot.readStructBegin()
|
|
|
2850 |
while True:
|
|
|
2851 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2852 |
if ftype == TType.STOP:
|
|
|
2853 |
break
|
|
|
2854 |
if fid == 0:
|
|
|
2855 |
if ftype == TType.LIST:
|
|
|
2856 |
self.success = []
|
|
|
2857 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
2858 |
for _i46 in xrange(_size42):
|
|
|
2859 |
_elem47 = PaymentGateway()
|
|
|
2860 |
_elem47.read(iprot)
|
|
|
2861 |
self.success.append(_elem47)
|
|
|
2862 |
iprot.readListEnd()
|
|
|
2863 |
else:
|
|
|
2864 |
iprot.skip(ftype)
|
|
|
2865 |
elif fid == 1:
|
|
|
2866 |
if ftype == TType.STRUCT:
|
|
|
2867 |
self.pe = PaymentException()
|
|
|
2868 |
self.pe.read(iprot)
|
|
|
2869 |
else:
|
|
|
2870 |
iprot.skip(ftype)
|
|
|
2871 |
else:
|
|
|
2872 |
iprot.skip(ftype)
|
|
|
2873 |
iprot.readFieldEnd()
|
|
|
2874 |
iprot.readStructEnd()
|
|
|
2875 |
|
|
|
2876 |
def write(self, oprot):
|
|
|
2877 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2878 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2879 |
return
|
|
|
2880 |
oprot.writeStructBegin('getActivePaymentGateways_result')
|
|
|
2881 |
if self.success is not None:
|
|
|
2882 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2883 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
2884 |
for iter48 in self.success:
|
|
|
2885 |
iter48.write(oprot)
|
|
|
2886 |
oprot.writeListEnd()
|
|
|
2887 |
oprot.writeFieldEnd()
|
|
|
2888 |
if self.pe is not None:
|
|
|
2889 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2890 |
self.pe.write(oprot)
|
|
|
2891 |
oprot.writeFieldEnd()
|
|
|
2892 |
oprot.writeFieldStop()
|
|
|
2893 |
oprot.writeStructEnd()
|
|
|
2894 |
|
|
|
2895 |
def validate(self):
|
|
|
2896 |
return
|
|
|
2897 |
|
|
|
2898 |
|
|
|
2899 |
def __repr__(self):
|
|
|
2900 |
L = ['%s=%r' % (key, value)
|
|
|
2901 |
for key, value in self.__dict__.iteritems()]
|
|
|
2902 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2903 |
|
|
|
2904 |
def __eq__(self, other):
|
|
|
2905 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2906 |
|
|
|
2907 |
def __ne__(self, other):
|
|
|
2908 |
return not (self == other)
|
|
|
2909 |
|
| 696 |
rajveer |
2910 |
class getPayment_args:
|
| 420 |
ashish |
2911 |
"""
|
|
|
2912 |
Attributes:
|
|
|
2913 |
- id
|
|
|
2914 |
"""
|
|
|
2915 |
|
|
|
2916 |
thrift_spec = (
|
|
|
2917 |
None, # 0
|
|
|
2918 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2919 |
)
|
|
|
2920 |
|
|
|
2921 |
def __init__(self, id=None,):
|
|
|
2922 |
self.id = id
|
|
|
2923 |
|
|
|
2924 |
def read(self, iprot):
|
|
|
2925 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2926 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2927 |
return
|
|
|
2928 |
iprot.readStructBegin()
|
|
|
2929 |
while True:
|
|
|
2930 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2931 |
if ftype == TType.STOP:
|
|
|
2932 |
break
|
|
|
2933 |
if fid == 1:
|
|
|
2934 |
if ftype == TType.I64:
|
|
|
2935 |
self.id = iprot.readI64();
|
|
|
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
|
| 696 |
rajveer |
2947 |
oprot.writeStructBegin('getPayment_args')
|
| 3431 |
rajveer |
2948 |
if self.id is not None:
|
| 420 |
ashish |
2949 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2950 |
oprot.writeI64(self.id)
|
|
|
2951 |
oprot.writeFieldEnd()
|
|
|
2952 |
oprot.writeFieldStop()
|
|
|
2953 |
oprot.writeStructEnd()
|
|
|
2954 |
|
| 3431 |
rajveer |
2955 |
def validate(self):
|
|
|
2956 |
return
|
|
|
2957 |
|
|
|
2958 |
|
| 420 |
ashish |
2959 |
def __repr__(self):
|
|
|
2960 |
L = ['%s=%r' % (key, value)
|
|
|
2961 |
for key, value in self.__dict__.iteritems()]
|
|
|
2962 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2963 |
|
|
|
2964 |
def __eq__(self, other):
|
|
|
2965 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2966 |
|
|
|
2967 |
def __ne__(self, other):
|
|
|
2968 |
return not (self == other)
|
|
|
2969 |
|
| 696 |
rajveer |
2970 |
class getPayment_result:
|
| 420 |
ashish |
2971 |
"""
|
|
|
2972 |
Attributes:
|
|
|
2973 |
- success
|
|
|
2974 |
- pe
|
|
|
2975 |
"""
|
|
|
2976 |
|
|
|
2977 |
thrift_spec = (
|
| 696 |
rajveer |
2978 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
| 420 |
ashish |
2979 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2980 |
)
|
|
|
2981 |
|
|
|
2982 |
def __init__(self, success=None, pe=None,):
|
|
|
2983 |
self.success = success
|
|
|
2984 |
self.pe = pe
|
|
|
2985 |
|
|
|
2986 |
def read(self, iprot):
|
|
|
2987 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2988 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2989 |
return
|
|
|
2990 |
iprot.readStructBegin()
|
|
|
2991 |
while True:
|
|
|
2992 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2993 |
if ftype == TType.STOP:
|
|
|
2994 |
break
|
|
|
2995 |
if fid == 0:
|
|
|
2996 |
if ftype == TType.STRUCT:
|
| 696 |
rajveer |
2997 |
self.success = Payment()
|
| 420 |
ashish |
2998 |
self.success.read(iprot)
|
|
|
2999 |
else:
|
|
|
3000 |
iprot.skip(ftype)
|
|
|
3001 |
elif fid == 1:
|
|
|
3002 |
if ftype == TType.STRUCT:
|
|
|
3003 |
self.pe = PaymentException()
|
|
|
3004 |
self.pe.read(iprot)
|
|
|
3005 |
else:
|
|
|
3006 |
iprot.skip(ftype)
|
|
|
3007 |
else:
|
|
|
3008 |
iprot.skip(ftype)
|
|
|
3009 |
iprot.readFieldEnd()
|
|
|
3010 |
iprot.readStructEnd()
|
|
|
3011 |
|
|
|
3012 |
def write(self, oprot):
|
|
|
3013 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3014 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3015 |
return
|
| 696 |
rajveer |
3016 |
oprot.writeStructBegin('getPayment_result')
|
| 3431 |
rajveer |
3017 |
if self.success is not None:
|
| 420 |
ashish |
3018 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3019 |
self.success.write(oprot)
|
|
|
3020 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3021 |
if self.pe is not None:
|
| 420 |
ashish |
3022 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3023 |
self.pe.write(oprot)
|
|
|
3024 |
oprot.writeFieldEnd()
|
|
|
3025 |
oprot.writeFieldStop()
|
|
|
3026 |
oprot.writeStructEnd()
|
|
|
3027 |
|
| 3431 |
rajveer |
3028 |
def validate(self):
|
|
|
3029 |
return
|
|
|
3030 |
|
|
|
3031 |
|
| 420 |
ashish |
3032 |
def __repr__(self):
|
|
|
3033 |
L = ['%s=%r' % (key, value)
|
|
|
3034 |
for key, value in self.__dict__.iteritems()]
|
|
|
3035 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3036 |
|
|
|
3037 |
def __eq__(self, other):
|
|
|
3038 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3039 |
|
|
|
3040 |
def __ne__(self, other):
|
|
|
3041 |
return not (self == other)
|
|
|
3042 |
|
| 696 |
rajveer |
3043 |
class getPaymentForTxnId_args:
|
| 420 |
ashish |
3044 |
"""
|
|
|
3045 |
Attributes:
|
| 696 |
rajveer |
3046 |
- txnId
|
| 420 |
ashish |
3047 |
"""
|
|
|
3048 |
|
|
|
3049 |
thrift_spec = (
|
|
|
3050 |
None, # 0
|
| 696 |
rajveer |
3051 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
| 420 |
ashish |
3052 |
)
|
|
|
3053 |
|
| 696 |
rajveer |
3054 |
def __init__(self, txnId=None,):
|
|
|
3055 |
self.txnId = txnId
|
| 420 |
ashish |
3056 |
|
|
|
3057 |
def read(self, iprot):
|
|
|
3058 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3059 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3060 |
return
|
|
|
3061 |
iprot.readStructBegin()
|
|
|
3062 |
while True:
|
|
|
3063 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3064 |
if ftype == TType.STOP:
|
|
|
3065 |
break
|
|
|
3066 |
if fid == 1:
|
|
|
3067 |
if ftype == TType.I64:
|
| 696 |
rajveer |
3068 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
3069 |
else:
|
|
|
3070 |
iprot.skip(ftype)
|
|
|
3071 |
else:
|
|
|
3072 |
iprot.skip(ftype)
|
|
|
3073 |
iprot.readFieldEnd()
|
|
|
3074 |
iprot.readStructEnd()
|
|
|
3075 |
|
|
|
3076 |
def write(self, oprot):
|
|
|
3077 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3078 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3079 |
return
|
| 696 |
rajveer |
3080 |
oprot.writeStructBegin('getPaymentForTxnId_args')
|
| 3431 |
rajveer |
3081 |
if self.txnId is not None:
|
| 696 |
rajveer |
3082 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
3083 |
oprot.writeI64(self.txnId)
|
| 420 |
ashish |
3084 |
oprot.writeFieldEnd()
|
|
|
3085 |
oprot.writeFieldStop()
|
|
|
3086 |
oprot.writeStructEnd()
|
|
|
3087 |
|
| 3431 |
rajveer |
3088 |
def validate(self):
|
|
|
3089 |
return
|
|
|
3090 |
|
|
|
3091 |
|
| 420 |
ashish |
3092 |
def __repr__(self):
|
|
|
3093 |
L = ['%s=%r' % (key, value)
|
|
|
3094 |
for key, value in self.__dict__.iteritems()]
|
|
|
3095 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3096 |
|
|
|
3097 |
def __eq__(self, other):
|
|
|
3098 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3099 |
|
|
|
3100 |
def __ne__(self, other):
|
|
|
3101 |
return not (self == other)
|
|
|
3102 |
|
| 696 |
rajveer |
3103 |
class getPaymentForTxnId_result:
|
| 420 |
ashish |
3104 |
"""
|
|
|
3105 |
Attributes:
|
|
|
3106 |
- success
|
|
|
3107 |
- pe
|
|
|
3108 |
"""
|
|
|
3109 |
|
|
|
3110 |
thrift_spec = (
|
| 696 |
rajveer |
3111 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
| 420 |
ashish |
3112 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3113 |
)
|
|
|
3114 |
|
|
|
3115 |
def __init__(self, success=None, pe=None,):
|
|
|
3116 |
self.success = success
|
|
|
3117 |
self.pe = pe
|
|
|
3118 |
|
|
|
3119 |
def read(self, iprot):
|
|
|
3120 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3121 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3122 |
return
|
|
|
3123 |
iprot.readStructBegin()
|
|
|
3124 |
while True:
|
|
|
3125 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3126 |
if ftype == TType.STOP:
|
|
|
3127 |
break
|
|
|
3128 |
if fid == 0:
|
| 696 |
rajveer |
3129 |
if ftype == TType.LIST:
|
|
|
3130 |
self.success = []
|
| 4600 |
varun.gupt |
3131 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
3132 |
for _i53 in xrange(_size49):
|
|
|
3133 |
_elem54 = Payment()
|
|
|
3134 |
_elem54.read(iprot)
|
|
|
3135 |
self.success.append(_elem54)
|
| 696 |
rajveer |
3136 |
iprot.readListEnd()
|
| 420 |
ashish |
3137 |
else:
|
|
|
3138 |
iprot.skip(ftype)
|
|
|
3139 |
elif fid == 1:
|
|
|
3140 |
if ftype == TType.STRUCT:
|
|
|
3141 |
self.pe = PaymentException()
|
|
|
3142 |
self.pe.read(iprot)
|
|
|
3143 |
else:
|
|
|
3144 |
iprot.skip(ftype)
|
|
|
3145 |
else:
|
|
|
3146 |
iprot.skip(ftype)
|
|
|
3147 |
iprot.readFieldEnd()
|
|
|
3148 |
iprot.readStructEnd()
|
|
|
3149 |
|
|
|
3150 |
def write(self, oprot):
|
|
|
3151 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3152 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3153 |
return
|
| 696 |
rajveer |
3154 |
oprot.writeStructBegin('getPaymentForTxnId_result')
|
| 3431 |
rajveer |
3155 |
if self.success is not None:
|
| 696 |
rajveer |
3156 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3157 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 4600 |
varun.gupt |
3158 |
for iter55 in self.success:
|
|
|
3159 |
iter55.write(oprot)
|
| 696 |
rajveer |
3160 |
oprot.writeListEnd()
|
| 420 |
ashish |
3161 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3162 |
if self.pe is not None:
|
| 420 |
ashish |
3163 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3164 |
self.pe.write(oprot)
|
|
|
3165 |
oprot.writeFieldEnd()
|
|
|
3166 |
oprot.writeFieldStop()
|
|
|
3167 |
oprot.writeStructEnd()
|
|
|
3168 |
|
| 3431 |
rajveer |
3169 |
def validate(self):
|
|
|
3170 |
return
|
|
|
3171 |
|
|
|
3172 |
|
| 420 |
ashish |
3173 |
def __repr__(self):
|
|
|
3174 |
L = ['%s=%r' % (key, value)
|
|
|
3175 |
for key, value in self.__dict__.iteritems()]
|
|
|
3176 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3177 |
|
|
|
3178 |
def __eq__(self, other):
|
|
|
3179 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3180 |
|
|
|
3181 |
def __ne__(self, other):
|
|
|
3182 |
return not (self == other)
|
|
|
3183 |
|
| 7049 |
anupam.sin |
3184 |
class getPaymentForRechargeTxnId_args:
|
|
|
3185 |
"""
|
|
|
3186 |
Attributes:
|
|
|
3187 |
- txnId
|
|
|
3188 |
"""
|
|
|
3189 |
|
|
|
3190 |
thrift_spec = (
|
|
|
3191 |
None, # 0
|
|
|
3192 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
|
|
3193 |
)
|
|
|
3194 |
|
|
|
3195 |
def __init__(self, txnId=None,):
|
|
|
3196 |
self.txnId = txnId
|
|
|
3197 |
|
|
|
3198 |
def read(self, iprot):
|
|
|
3199 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3200 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3201 |
return
|
|
|
3202 |
iprot.readStructBegin()
|
|
|
3203 |
while True:
|
|
|
3204 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3205 |
if ftype == TType.STOP:
|
|
|
3206 |
break
|
|
|
3207 |
if fid == 1:
|
|
|
3208 |
if ftype == TType.I64:
|
|
|
3209 |
self.txnId = iprot.readI64();
|
|
|
3210 |
else:
|
|
|
3211 |
iprot.skip(ftype)
|
|
|
3212 |
else:
|
|
|
3213 |
iprot.skip(ftype)
|
|
|
3214 |
iprot.readFieldEnd()
|
|
|
3215 |
iprot.readStructEnd()
|
|
|
3216 |
|
|
|
3217 |
def write(self, oprot):
|
|
|
3218 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3219 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3220 |
return
|
|
|
3221 |
oprot.writeStructBegin('getPaymentForRechargeTxnId_args')
|
|
|
3222 |
if self.txnId is not None:
|
|
|
3223 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
3224 |
oprot.writeI64(self.txnId)
|
|
|
3225 |
oprot.writeFieldEnd()
|
|
|
3226 |
oprot.writeFieldStop()
|
|
|
3227 |
oprot.writeStructEnd()
|
|
|
3228 |
|
|
|
3229 |
def validate(self):
|
|
|
3230 |
return
|
|
|
3231 |
|
|
|
3232 |
|
|
|
3233 |
def __repr__(self):
|
|
|
3234 |
L = ['%s=%r' % (key, value)
|
|
|
3235 |
for key, value in self.__dict__.iteritems()]
|
|
|
3236 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3237 |
|
|
|
3238 |
def __eq__(self, other):
|
|
|
3239 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3240 |
|
|
|
3241 |
def __ne__(self, other):
|
|
|
3242 |
return not (self == other)
|
|
|
3243 |
|
|
|
3244 |
class getPaymentForRechargeTxnId_result:
|
|
|
3245 |
"""
|
|
|
3246 |
Attributes:
|
|
|
3247 |
- success
|
|
|
3248 |
- pe
|
|
|
3249 |
"""
|
|
|
3250 |
|
|
|
3251 |
thrift_spec = (
|
|
|
3252 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
3253 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3254 |
)
|
|
|
3255 |
|
|
|
3256 |
def __init__(self, success=None, pe=None,):
|
|
|
3257 |
self.success = success
|
|
|
3258 |
self.pe = pe
|
|
|
3259 |
|
|
|
3260 |
def read(self, iprot):
|
|
|
3261 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3262 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3263 |
return
|
|
|
3264 |
iprot.readStructBegin()
|
|
|
3265 |
while True:
|
|
|
3266 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3267 |
if ftype == TType.STOP:
|
|
|
3268 |
break
|
|
|
3269 |
if fid == 0:
|
|
|
3270 |
if ftype == TType.LIST:
|
|
|
3271 |
self.success = []
|
|
|
3272 |
(_etype59, _size56) = iprot.readListBegin()
|
|
|
3273 |
for _i60 in xrange(_size56):
|
|
|
3274 |
_elem61 = Payment()
|
|
|
3275 |
_elem61.read(iprot)
|
|
|
3276 |
self.success.append(_elem61)
|
|
|
3277 |
iprot.readListEnd()
|
|
|
3278 |
else:
|
|
|
3279 |
iprot.skip(ftype)
|
|
|
3280 |
elif fid == 1:
|
|
|
3281 |
if ftype == TType.STRUCT:
|
|
|
3282 |
self.pe = PaymentException()
|
|
|
3283 |
self.pe.read(iprot)
|
|
|
3284 |
else:
|
|
|
3285 |
iprot.skip(ftype)
|
|
|
3286 |
else:
|
|
|
3287 |
iprot.skip(ftype)
|
|
|
3288 |
iprot.readFieldEnd()
|
|
|
3289 |
iprot.readStructEnd()
|
|
|
3290 |
|
|
|
3291 |
def write(self, oprot):
|
|
|
3292 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3293 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3294 |
return
|
|
|
3295 |
oprot.writeStructBegin('getPaymentForRechargeTxnId_result')
|
|
|
3296 |
if self.success is not None:
|
|
|
3297 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3298 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
3299 |
for iter62 in self.success:
|
|
|
3300 |
iter62.write(oprot)
|
|
|
3301 |
oprot.writeListEnd()
|
|
|
3302 |
oprot.writeFieldEnd()
|
|
|
3303 |
if self.pe is not None:
|
|
|
3304 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3305 |
self.pe.write(oprot)
|
|
|
3306 |
oprot.writeFieldEnd()
|
|
|
3307 |
oprot.writeFieldStop()
|
|
|
3308 |
oprot.writeStructEnd()
|
|
|
3309 |
|
|
|
3310 |
def validate(self):
|
|
|
3311 |
return
|
|
|
3312 |
|
|
|
3313 |
|
|
|
3314 |
def __repr__(self):
|
|
|
3315 |
L = ['%s=%r' % (key, value)
|
|
|
3316 |
for key, value in self.__dict__.iteritems()]
|
|
|
3317 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3318 |
|
|
|
3319 |
def __eq__(self, other):
|
|
|
3320 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3321 |
|
|
|
3322 |
def __ne__(self, other):
|
|
|
3323 |
return not (self == other)
|
|
|
3324 |
|
| 4600 |
varun.gupt |
3325 |
class getSuccessfulPaymentForTxnId_args:
|
|
|
3326 |
"""
|
|
|
3327 |
Attributes:
|
|
|
3328 |
- txnId
|
|
|
3329 |
"""
|
|
|
3330 |
|
|
|
3331 |
thrift_spec = (
|
|
|
3332 |
None, # 0
|
|
|
3333 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
|
|
3334 |
)
|
|
|
3335 |
|
|
|
3336 |
def __init__(self, txnId=None,):
|
|
|
3337 |
self.txnId = txnId
|
|
|
3338 |
|
|
|
3339 |
def read(self, iprot):
|
|
|
3340 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3341 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3342 |
return
|
|
|
3343 |
iprot.readStructBegin()
|
|
|
3344 |
while True:
|
|
|
3345 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3346 |
if ftype == TType.STOP:
|
|
|
3347 |
break
|
|
|
3348 |
if fid == 1:
|
|
|
3349 |
if ftype == TType.I64:
|
|
|
3350 |
self.txnId = iprot.readI64();
|
|
|
3351 |
else:
|
|
|
3352 |
iprot.skip(ftype)
|
|
|
3353 |
else:
|
|
|
3354 |
iprot.skip(ftype)
|
|
|
3355 |
iprot.readFieldEnd()
|
|
|
3356 |
iprot.readStructEnd()
|
|
|
3357 |
|
|
|
3358 |
def write(self, oprot):
|
|
|
3359 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3360 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3361 |
return
|
|
|
3362 |
oprot.writeStructBegin('getSuccessfulPaymentForTxnId_args')
|
|
|
3363 |
if self.txnId is not None:
|
|
|
3364 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
3365 |
oprot.writeI64(self.txnId)
|
|
|
3366 |
oprot.writeFieldEnd()
|
|
|
3367 |
oprot.writeFieldStop()
|
|
|
3368 |
oprot.writeStructEnd()
|
|
|
3369 |
|
|
|
3370 |
def validate(self):
|
|
|
3371 |
return
|
|
|
3372 |
|
|
|
3373 |
|
|
|
3374 |
def __repr__(self):
|
|
|
3375 |
L = ['%s=%r' % (key, value)
|
|
|
3376 |
for key, value in self.__dict__.iteritems()]
|
|
|
3377 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3378 |
|
|
|
3379 |
def __eq__(self, other):
|
|
|
3380 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3381 |
|
|
|
3382 |
def __ne__(self, other):
|
|
|
3383 |
return not (self == other)
|
|
|
3384 |
|
|
|
3385 |
class getSuccessfulPaymentForTxnId_result:
|
|
|
3386 |
"""
|
|
|
3387 |
Attributes:
|
|
|
3388 |
- success
|
|
|
3389 |
- pe
|
|
|
3390 |
"""
|
|
|
3391 |
|
|
|
3392 |
thrift_spec = (
|
|
|
3393 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
|
|
3394 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3395 |
)
|
|
|
3396 |
|
|
|
3397 |
def __init__(self, success=None, pe=None,):
|
|
|
3398 |
self.success = success
|
|
|
3399 |
self.pe = pe
|
|
|
3400 |
|
|
|
3401 |
def read(self, iprot):
|
|
|
3402 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3403 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3404 |
return
|
|
|
3405 |
iprot.readStructBegin()
|
|
|
3406 |
while True:
|
|
|
3407 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3408 |
if ftype == TType.STOP:
|
|
|
3409 |
break
|
|
|
3410 |
if fid == 0:
|
|
|
3411 |
if ftype == TType.STRUCT:
|
|
|
3412 |
self.success = Payment()
|
|
|
3413 |
self.success.read(iprot)
|
|
|
3414 |
else:
|
|
|
3415 |
iprot.skip(ftype)
|
|
|
3416 |
elif fid == 1:
|
|
|
3417 |
if ftype == TType.STRUCT:
|
|
|
3418 |
self.pe = PaymentException()
|
|
|
3419 |
self.pe.read(iprot)
|
|
|
3420 |
else:
|
|
|
3421 |
iprot.skip(ftype)
|
|
|
3422 |
else:
|
|
|
3423 |
iprot.skip(ftype)
|
|
|
3424 |
iprot.readFieldEnd()
|
|
|
3425 |
iprot.readStructEnd()
|
|
|
3426 |
|
|
|
3427 |
def write(self, oprot):
|
|
|
3428 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3429 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3430 |
return
|
|
|
3431 |
oprot.writeStructBegin('getSuccessfulPaymentForTxnId_result')
|
|
|
3432 |
if self.success is not None:
|
|
|
3433 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3434 |
self.success.write(oprot)
|
|
|
3435 |
oprot.writeFieldEnd()
|
|
|
3436 |
if self.pe is not None:
|
|
|
3437 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3438 |
self.pe.write(oprot)
|
|
|
3439 |
oprot.writeFieldEnd()
|
|
|
3440 |
oprot.writeFieldStop()
|
|
|
3441 |
oprot.writeStructEnd()
|
|
|
3442 |
|
|
|
3443 |
def validate(self):
|
|
|
3444 |
return
|
|
|
3445 |
|
|
|
3446 |
|
|
|
3447 |
def __repr__(self):
|
|
|
3448 |
L = ['%s=%r' % (key, value)
|
|
|
3449 |
for key, value in self.__dict__.iteritems()]
|
|
|
3450 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3451 |
|
|
|
3452 |
def __eq__(self, other):
|
|
|
3453 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3454 |
|
|
|
3455 |
def __ne__(self, other):
|
|
|
3456 |
return not (self == other)
|
|
|
3457 |
|
| 696 |
rajveer |
3458 |
class updatePaymentDetails_args:
|
| 420 |
ashish |
3459 |
"""
|
|
|
3460 |
Attributes:
|
|
|
3461 |
- id
|
| 696 |
rajveer |
3462 |
- gatewayPaymentId
|
|
|
3463 |
- sessionId
|
|
|
3464 |
- gatewayTxnStatus
|
|
|
3465 |
- description
|
|
|
3466 |
- gatewayTxnId
|
|
|
3467 |
- authCode
|
|
|
3468 |
- referenceCode
|
|
|
3469 |
- errorCode
|
|
|
3470 |
- status
|
| 1120 |
rajveer |
3471 |
- gatewayTxnDate
|
| 696 |
rajveer |
3472 |
- attributes
|
| 420 |
ashish |
3473 |
"""
|
|
|
3474 |
|
|
|
3475 |
thrift_spec = (
|
|
|
3476 |
None, # 0
|
|
|
3477 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 696 |
rajveer |
3478 |
(2, TType.STRING, 'gatewayPaymentId', None, None, ), # 2
|
|
|
3479 |
(3, TType.STRING, 'sessionId', None, None, ), # 3
|
|
|
3480 |
(4, TType.STRING, 'gatewayTxnStatus', None, None, ), # 4
|
|
|
3481 |
(5, TType.STRING, 'description', None, None, ), # 5
|
|
|
3482 |
(6, TType.STRING, 'gatewayTxnId', None, None, ), # 6
|
|
|
3483 |
(7, TType.STRING, 'authCode', None, None, ), # 7
|
|
|
3484 |
(8, TType.STRING, 'referenceCode', None, None, ), # 8
|
|
|
3485 |
(9, TType.STRING, 'errorCode', None, None, ), # 9
|
|
|
3486 |
(10, TType.I32, 'status', None, None, ), # 10
|
| 1120 |
rajveer |
3487 |
(11, TType.STRING, 'gatewayTxnDate', None, None, ), # 11
|
|
|
3488 |
(12, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 12
|
| 420 |
ashish |
3489 |
)
|
|
|
3490 |
|
| 1120 |
rajveer |
3491 |
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 |
3492 |
self.id = id
|
| 696 |
rajveer |
3493 |
self.gatewayPaymentId = gatewayPaymentId
|
|
|
3494 |
self.sessionId = sessionId
|
|
|
3495 |
self.gatewayTxnStatus = gatewayTxnStatus
|
|
|
3496 |
self.description = description
|
|
|
3497 |
self.gatewayTxnId = gatewayTxnId
|
|
|
3498 |
self.authCode = authCode
|
|
|
3499 |
self.referenceCode = referenceCode
|
|
|
3500 |
self.errorCode = errorCode
|
|
|
3501 |
self.status = status
|
| 1120 |
rajveer |
3502 |
self.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
3503 |
self.attributes = attributes
|
| 420 |
ashish |
3504 |
|
|
|
3505 |
def read(self, iprot):
|
|
|
3506 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3507 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3508 |
return
|
|
|
3509 |
iprot.readStructBegin()
|
|
|
3510 |
while True:
|
|
|
3511 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3512 |
if ftype == TType.STOP:
|
|
|
3513 |
break
|
|
|
3514 |
if fid == 1:
|
|
|
3515 |
if ftype == TType.I64:
|
|
|
3516 |
self.id = iprot.readI64();
|
|
|
3517 |
else:
|
|
|
3518 |
iprot.skip(ftype)
|
|
|
3519 |
elif fid == 2:
|
|
|
3520 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3521 |
self.gatewayPaymentId = iprot.readString();
|
| 420 |
ashish |
3522 |
else:
|
|
|
3523 |
iprot.skip(ftype)
|
|
|
3524 |
elif fid == 3:
|
|
|
3525 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3526 |
self.sessionId = iprot.readString();
|
| 420 |
ashish |
3527 |
else:
|
|
|
3528 |
iprot.skip(ftype)
|
|
|
3529 |
elif fid == 4:
|
|
|
3530 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3531 |
self.gatewayTxnStatus = iprot.readString();
|
| 420 |
ashish |
3532 |
else:
|
|
|
3533 |
iprot.skip(ftype)
|
|
|
3534 |
elif fid == 5:
|
|
|
3535 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3536 |
self.description = iprot.readString();
|
| 420 |
ashish |
3537 |
else:
|
|
|
3538 |
iprot.skip(ftype)
|
|
|
3539 |
elif fid == 6:
|
|
|
3540 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3541 |
self.gatewayTxnId = iprot.readString();
|
| 420 |
ashish |
3542 |
else:
|
|
|
3543 |
iprot.skip(ftype)
|
|
|
3544 |
elif fid == 7:
|
|
|
3545 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3546 |
self.authCode = iprot.readString();
|
| 420 |
ashish |
3547 |
else:
|
|
|
3548 |
iprot.skip(ftype)
|
|
|
3549 |
elif fid == 8:
|
|
|
3550 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
3551 |
self.referenceCode = iprot.readString();
|
| 420 |
ashish |
3552 |
else:
|
|
|
3553 |
iprot.skip(ftype)
|
| 696 |
rajveer |
3554 |
elif fid == 9:
|
|
|
3555 |
if ftype == TType.STRING:
|
|
|
3556 |
self.errorCode = iprot.readString();
|
|
|
3557 |
else:
|
|
|
3558 |
iprot.skip(ftype)
|
|
|
3559 |
elif fid == 10:
|
|
|
3560 |
if ftype == TType.I32:
|
|
|
3561 |
self.status = iprot.readI32();
|
|
|
3562 |
else:
|
|
|
3563 |
iprot.skip(ftype)
|
|
|
3564 |
elif fid == 11:
|
| 1120 |
rajveer |
3565 |
if ftype == TType.STRING:
|
|
|
3566 |
self.gatewayTxnDate = iprot.readString();
|
|
|
3567 |
else:
|
|
|
3568 |
iprot.skip(ftype)
|
|
|
3569 |
elif fid == 12:
|
| 696 |
rajveer |
3570 |
if ftype == TType.LIST:
|
|
|
3571 |
self.attributes = []
|
| 7049 |
anupam.sin |
3572 |
(_etype66, _size63) = iprot.readListBegin()
|
|
|
3573 |
for _i67 in xrange(_size63):
|
|
|
3574 |
_elem68 = Attribute()
|
|
|
3575 |
_elem68.read(iprot)
|
|
|
3576 |
self.attributes.append(_elem68)
|
| 696 |
rajveer |
3577 |
iprot.readListEnd()
|
|
|
3578 |
else:
|
|
|
3579 |
iprot.skip(ftype)
|
| 420 |
ashish |
3580 |
else:
|
|
|
3581 |
iprot.skip(ftype)
|
|
|
3582 |
iprot.readFieldEnd()
|
|
|
3583 |
iprot.readStructEnd()
|
|
|
3584 |
|
|
|
3585 |
def write(self, oprot):
|
|
|
3586 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3587 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3588 |
return
|
| 696 |
rajveer |
3589 |
oprot.writeStructBegin('updatePaymentDetails_args')
|
| 3431 |
rajveer |
3590 |
if self.id is not None:
|
| 420 |
ashish |
3591 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3592 |
oprot.writeI64(self.id)
|
|
|
3593 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3594 |
if self.gatewayPaymentId is not None:
|
| 696 |
rajveer |
3595 |
oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
|
|
|
3596 |
oprot.writeString(self.gatewayPaymentId)
|
| 420 |
ashish |
3597 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3598 |
if self.sessionId is not None:
|
| 696 |
rajveer |
3599 |
oprot.writeFieldBegin('sessionId', TType.STRING, 3)
|
|
|
3600 |
oprot.writeString(self.sessionId)
|
| 420 |
ashish |
3601 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3602 |
if self.gatewayTxnStatus is not None:
|
| 696 |
rajveer |
3603 |
oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
|
|
|
3604 |
oprot.writeString(self.gatewayTxnStatus)
|
| 420 |
ashish |
3605 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3606 |
if self.description is not None:
|
| 696 |
rajveer |
3607 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
3608 |
oprot.writeString(self.description)
|
| 420 |
ashish |
3609 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3610 |
if self.gatewayTxnId is not None:
|
| 696 |
rajveer |
3611 |
oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
|
|
|
3612 |
oprot.writeString(self.gatewayTxnId)
|
| 420 |
ashish |
3613 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3614 |
if self.authCode is not None:
|
| 696 |
rajveer |
3615 |
oprot.writeFieldBegin('authCode', TType.STRING, 7)
|
|
|
3616 |
oprot.writeString(self.authCode)
|
| 420 |
ashish |
3617 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3618 |
if self.referenceCode is not None:
|
| 696 |
rajveer |
3619 |
oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
|
|
|
3620 |
oprot.writeString(self.referenceCode)
|
| 420 |
ashish |
3621 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3622 |
if self.errorCode is not None:
|
| 696 |
rajveer |
3623 |
oprot.writeFieldBegin('errorCode', TType.STRING, 9)
|
|
|
3624 |
oprot.writeString(self.errorCode)
|
|
|
3625 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3626 |
if self.status is not None:
|
| 696 |
rajveer |
3627 |
oprot.writeFieldBegin('status', TType.I32, 10)
|
|
|
3628 |
oprot.writeI32(self.status)
|
|
|
3629 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3630 |
if self.gatewayTxnDate is not None:
|
| 1120 |
rajveer |
3631 |
oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
|
|
|
3632 |
oprot.writeString(self.gatewayTxnDate)
|
|
|
3633 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3634 |
if self.attributes is not None:
|
| 1120 |
rajveer |
3635 |
oprot.writeFieldBegin('attributes', TType.LIST, 12)
|
| 696 |
rajveer |
3636 |
oprot.writeListBegin(TType.STRUCT, len(self.attributes))
|
| 7049 |
anupam.sin |
3637 |
for iter69 in self.attributes:
|
|
|
3638 |
iter69.write(oprot)
|
| 696 |
rajveer |
3639 |
oprot.writeListEnd()
|
|
|
3640 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
3641 |
oprot.writeFieldStop()
|
|
|
3642 |
oprot.writeStructEnd()
|
|
|
3643 |
|
| 3431 |
rajveer |
3644 |
def validate(self):
|
|
|
3645 |
return
|
|
|
3646 |
|
|
|
3647 |
|
| 420 |
ashish |
3648 |
def __repr__(self):
|
|
|
3649 |
L = ['%s=%r' % (key, value)
|
|
|
3650 |
for key, value in self.__dict__.iteritems()]
|
|
|
3651 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3652 |
|
|
|
3653 |
def __eq__(self, other):
|
|
|
3654 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3655 |
|
|
|
3656 |
def __ne__(self, other):
|
|
|
3657 |
return not (self == other)
|
|
|
3658 |
|
| 696 |
rajveer |
3659 |
class updatePaymentDetails_result:
|
| 420 |
ashish |
3660 |
"""
|
|
|
3661 |
Attributes:
|
| 696 |
rajveer |
3662 |
- success
|
| 420 |
ashish |
3663 |
- pe
|
|
|
3664 |
"""
|
|
|
3665 |
|
|
|
3666 |
thrift_spec = (
|
| 696 |
rajveer |
3667 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 420 |
ashish |
3668 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3669 |
)
|
|
|
3670 |
|
| 696 |
rajveer |
3671 |
def __init__(self, success=None, pe=None,):
|
|
|
3672 |
self.success = success
|
| 420 |
ashish |
3673 |
self.pe = pe
|
|
|
3674 |
|
|
|
3675 |
def read(self, iprot):
|
|
|
3676 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3677 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3678 |
return
|
|
|
3679 |
iprot.readStructBegin()
|
|
|
3680 |
while True:
|
|
|
3681 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3682 |
if ftype == TType.STOP:
|
|
|
3683 |
break
|
| 696 |
rajveer |
3684 |
if fid == 0:
|
|
|
3685 |
if ftype == TType.BOOL:
|
|
|
3686 |
self.success = iprot.readBool();
|
|
|
3687 |
else:
|
|
|
3688 |
iprot.skip(ftype)
|
|
|
3689 |
elif fid == 1:
|
| 420 |
ashish |
3690 |
if ftype == TType.STRUCT:
|
|
|
3691 |
self.pe = PaymentException()
|
|
|
3692 |
self.pe.read(iprot)
|
|
|
3693 |
else:
|
|
|
3694 |
iprot.skip(ftype)
|
|
|
3695 |
else:
|
|
|
3696 |
iprot.skip(ftype)
|
|
|
3697 |
iprot.readFieldEnd()
|
|
|
3698 |
iprot.readStructEnd()
|
|
|
3699 |
|
|
|
3700 |
def write(self, oprot):
|
|
|
3701 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3702 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3703 |
return
|
| 696 |
rajveer |
3704 |
oprot.writeStructBegin('updatePaymentDetails_result')
|
| 3431 |
rajveer |
3705 |
if self.success is not None:
|
| 696 |
rajveer |
3706 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3707 |
oprot.writeBool(self.success)
|
|
|
3708 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3709 |
if self.pe is not None:
|
| 420 |
ashish |
3710 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3711 |
self.pe.write(oprot)
|
|
|
3712 |
oprot.writeFieldEnd()
|
|
|
3713 |
oprot.writeFieldStop()
|
|
|
3714 |
oprot.writeStructEnd()
|
|
|
3715 |
|
| 3431 |
rajveer |
3716 |
def validate(self):
|
|
|
3717 |
return
|
|
|
3718 |
|
|
|
3719 |
|
| 420 |
ashish |
3720 |
def __repr__(self):
|
|
|
3721 |
L = ['%s=%r' % (key, value)
|
|
|
3722 |
for key, value in self.__dict__.iteritems()]
|
|
|
3723 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3724 |
|
|
|
3725 |
def __eq__(self, other):
|
|
|
3726 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3727 |
|
|
|
3728 |
def __ne__(self, other):
|
|
|
3729 |
return not (self == other)
|
|
|
3730 |
|
| 1731 |
ankur.sing |
3731 |
class getSuccessfulPaymentsAmountRange_args:
|
| 420 |
ashish |
3732 |
|
| 1627 |
ankur.sing |
3733 |
thrift_spec = (
|
|
|
3734 |
)
|
|
|
3735 |
|
|
|
3736 |
def read(self, iprot):
|
|
|
3737 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3738 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3739 |
return
|
|
|
3740 |
iprot.readStructBegin()
|
|
|
3741 |
while True:
|
|
|
3742 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3743 |
if ftype == TType.STOP:
|
|
|
3744 |
break
|
|
|
3745 |
else:
|
|
|
3746 |
iprot.skip(ftype)
|
|
|
3747 |
iprot.readFieldEnd()
|
|
|
3748 |
iprot.readStructEnd()
|
|
|
3749 |
|
|
|
3750 |
def write(self, oprot):
|
|
|
3751 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3752 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3753 |
return
|
| 1731 |
ankur.sing |
3754 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_args')
|
| 1627 |
ankur.sing |
3755 |
oprot.writeFieldStop()
|
|
|
3756 |
oprot.writeStructEnd()
|
|
|
3757 |
|
| 3431 |
rajveer |
3758 |
def validate(self):
|
|
|
3759 |
return
|
|
|
3760 |
|
|
|
3761 |
|
| 1627 |
ankur.sing |
3762 |
def __repr__(self):
|
|
|
3763 |
L = ['%s=%r' % (key, value)
|
|
|
3764 |
for key, value in self.__dict__.iteritems()]
|
|
|
3765 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3766 |
|
|
|
3767 |
def __eq__(self, other):
|
|
|
3768 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3769 |
|
|
|
3770 |
def __ne__(self, other):
|
|
|
3771 |
return not (self == other)
|
|
|
3772 |
|
| 1731 |
ankur.sing |
3773 |
class getSuccessfulPaymentsAmountRange_result:
|
| 1627 |
ankur.sing |
3774 |
"""
|
|
|
3775 |
Attributes:
|
|
|
3776 |
- success
|
|
|
3777 |
"""
|
|
|
3778 |
|
|
|
3779 |
thrift_spec = (
|
| 1731 |
ankur.sing |
3780 |
(0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
|
| 1627 |
ankur.sing |
3781 |
)
|
|
|
3782 |
|
|
|
3783 |
def __init__(self, success=None,):
|
|
|
3784 |
self.success = success
|
|
|
3785 |
|
|
|
3786 |
def read(self, iprot):
|
|
|
3787 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3788 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3789 |
return
|
|
|
3790 |
iprot.readStructBegin()
|
|
|
3791 |
while True:
|
|
|
3792 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3793 |
if ftype == TType.STOP:
|
|
|
3794 |
break
|
|
|
3795 |
if fid == 0:
|
| 1731 |
ankur.sing |
3796 |
if ftype == TType.LIST:
|
|
|
3797 |
self.success = []
|
| 7049 |
anupam.sin |
3798 |
(_etype73, _size70) = iprot.readListBegin()
|
|
|
3799 |
for _i74 in xrange(_size70):
|
|
|
3800 |
_elem75 = iprot.readDouble();
|
|
|
3801 |
self.success.append(_elem75)
|
| 1731 |
ankur.sing |
3802 |
iprot.readListEnd()
|
| 1627 |
ankur.sing |
3803 |
else:
|
|
|
3804 |
iprot.skip(ftype)
|
|
|
3805 |
else:
|
|
|
3806 |
iprot.skip(ftype)
|
|
|
3807 |
iprot.readFieldEnd()
|
|
|
3808 |
iprot.readStructEnd()
|
|
|
3809 |
|
|
|
3810 |
def write(self, oprot):
|
|
|
3811 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3812 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3813 |
return
|
| 1731 |
ankur.sing |
3814 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
|
| 3431 |
rajveer |
3815 |
if self.success is not None:
|
| 1731 |
ankur.sing |
3816 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3817 |
oprot.writeListBegin(TType.DOUBLE, len(self.success))
|
| 7049 |
anupam.sin |
3818 |
for iter76 in self.success:
|
|
|
3819 |
oprot.writeDouble(iter76)
|
| 1731 |
ankur.sing |
3820 |
oprot.writeListEnd()
|
| 1627 |
ankur.sing |
3821 |
oprot.writeFieldEnd()
|
|
|
3822 |
oprot.writeFieldStop()
|
|
|
3823 |
oprot.writeStructEnd()
|
|
|
3824 |
|
| 3431 |
rajveer |
3825 |
def validate(self):
|
|
|
3826 |
return
|
|
|
3827 |
|
|
|
3828 |
|
| 1627 |
ankur.sing |
3829 |
def __repr__(self):
|
|
|
3830 |
L = ['%s=%r' % (key, value)
|
|
|
3831 |
for key, value in self.__dict__.iteritems()]
|
|
|
3832 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3833 |
|
|
|
3834 |
def __eq__(self, other):
|
|
|
3835 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3836 |
|
|
|
3837 |
def __ne__(self, other):
|
|
|
3838 |
return not (self == other)
|
|
|
3839 |
|
| 3010 |
chandransh |
3840 |
class initializeHdfcPayment_args:
|
| 2708 |
chandransh |
3841 |
"""
|
|
|
3842 |
Attributes:
|
|
|
3843 |
- merchantPaymentId
|
| 10478 |
amit.gupta |
3844 |
- isMobile
|
| 2708 |
chandransh |
3845 |
"""
|
|
|
3846 |
|
|
|
3847 |
thrift_spec = (
|
|
|
3848 |
None, # 0
|
|
|
3849 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
| 10478 |
amit.gupta |
3850 |
(2, TType.BOOL, 'isMobile', None, None, ), # 2
|
| 2708 |
chandransh |
3851 |
)
|
|
|
3852 |
|
| 10478 |
amit.gupta |
3853 |
def __init__(self, merchantPaymentId=None, isMobile=None,):
|
| 2708 |
chandransh |
3854 |
self.merchantPaymentId = merchantPaymentId
|
| 10478 |
amit.gupta |
3855 |
self.isMobile = isMobile
|
| 2708 |
chandransh |
3856 |
|
|
|
3857 |
def read(self, iprot):
|
|
|
3858 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3859 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3860 |
return
|
|
|
3861 |
iprot.readStructBegin()
|
|
|
3862 |
while True:
|
|
|
3863 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3864 |
if ftype == TType.STOP:
|
|
|
3865 |
break
|
|
|
3866 |
if fid == 1:
|
|
|
3867 |
if ftype == TType.I64:
|
|
|
3868 |
self.merchantPaymentId = iprot.readI64();
|
|
|
3869 |
else:
|
|
|
3870 |
iprot.skip(ftype)
|
| 10478 |
amit.gupta |
3871 |
elif fid == 2:
|
|
|
3872 |
if ftype == TType.BOOL:
|
|
|
3873 |
self.isMobile = iprot.readBool();
|
|
|
3874 |
else:
|
|
|
3875 |
iprot.skip(ftype)
|
| 2708 |
chandransh |
3876 |
else:
|
|
|
3877 |
iprot.skip(ftype)
|
|
|
3878 |
iprot.readFieldEnd()
|
|
|
3879 |
iprot.readStructEnd()
|
|
|
3880 |
|
|
|
3881 |
def write(self, oprot):
|
|
|
3882 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3883 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3884 |
return
|
| 3010 |
chandransh |
3885 |
oprot.writeStructBegin('initializeHdfcPayment_args')
|
| 3431 |
rajveer |
3886 |
if self.merchantPaymentId is not None:
|
| 2708 |
chandransh |
3887 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
3888 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
3889 |
oprot.writeFieldEnd()
|
| 10478 |
amit.gupta |
3890 |
if self.isMobile is not None:
|
|
|
3891 |
oprot.writeFieldBegin('isMobile', TType.BOOL, 2)
|
|
|
3892 |
oprot.writeBool(self.isMobile)
|
|
|
3893 |
oprot.writeFieldEnd()
|
| 2708 |
chandransh |
3894 |
oprot.writeFieldStop()
|
|
|
3895 |
oprot.writeStructEnd()
|
|
|
3896 |
|
| 3431 |
rajveer |
3897 |
def validate(self):
|
|
|
3898 |
return
|
|
|
3899 |
|
|
|
3900 |
|
| 2708 |
chandransh |
3901 |
def __repr__(self):
|
|
|
3902 |
L = ['%s=%r' % (key, value)
|
|
|
3903 |
for key, value in self.__dict__.iteritems()]
|
|
|
3904 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3905 |
|
|
|
3906 |
def __eq__(self, other):
|
|
|
3907 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3908 |
|
|
|
3909 |
def __ne__(self, other):
|
|
|
3910 |
return not (self == other)
|
|
|
3911 |
|
| 3010 |
chandransh |
3912 |
class initializeHdfcPayment_result:
|
| 2708 |
chandransh |
3913 |
"""
|
|
|
3914 |
Attributes:
|
|
|
3915 |
- success
|
|
|
3916 |
- pe
|
|
|
3917 |
"""
|
|
|
3918 |
|
|
|
3919 |
thrift_spec = (
|
| 3010 |
chandransh |
3920 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 2708 |
chandransh |
3921 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3922 |
)
|
|
|
3923 |
|
|
|
3924 |
def __init__(self, success=None, pe=None,):
|
|
|
3925 |
self.success = success
|
|
|
3926 |
self.pe = pe
|
|
|
3927 |
|
|
|
3928 |
def read(self, iprot):
|
|
|
3929 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3930 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3931 |
return
|
|
|
3932 |
iprot.readStructBegin()
|
|
|
3933 |
while True:
|
|
|
3934 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3935 |
if ftype == TType.STOP:
|
|
|
3936 |
break
|
|
|
3937 |
if fid == 0:
|
| 3010 |
chandransh |
3938 |
if ftype == TType.STRING:
|
|
|
3939 |
self.success = iprot.readString();
|
| 2708 |
chandransh |
3940 |
else:
|
|
|
3941 |
iprot.skip(ftype)
|
|
|
3942 |
elif fid == 1:
|
|
|
3943 |
if ftype == TType.STRUCT:
|
|
|
3944 |
self.pe = PaymentException()
|
|
|
3945 |
self.pe.read(iprot)
|
|
|
3946 |
else:
|
|
|
3947 |
iprot.skip(ftype)
|
|
|
3948 |
else:
|
|
|
3949 |
iprot.skip(ftype)
|
|
|
3950 |
iprot.readFieldEnd()
|
|
|
3951 |
iprot.readStructEnd()
|
|
|
3952 |
|
|
|
3953 |
def write(self, oprot):
|
|
|
3954 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3955 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3956 |
return
|
| 3010 |
chandransh |
3957 |
oprot.writeStructBegin('initializeHdfcPayment_result')
|
| 3431 |
rajveer |
3958 |
if self.success is not None:
|
| 3010 |
chandransh |
3959 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
3960 |
oprot.writeString(self.success)
|
| 2708 |
chandransh |
3961 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3962 |
if self.pe is not None:
|
| 2708 |
chandransh |
3963 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3964 |
self.pe.write(oprot)
|
|
|
3965 |
oprot.writeFieldEnd()
|
|
|
3966 |
oprot.writeFieldStop()
|
|
|
3967 |
oprot.writeStructEnd()
|
|
|
3968 |
|
| 3431 |
rajveer |
3969 |
def validate(self):
|
|
|
3970 |
return
|
|
|
3971 |
|
|
|
3972 |
|
| 2708 |
chandransh |
3973 |
def __repr__(self):
|
|
|
3974 |
L = ['%s=%r' % (key, value)
|
|
|
3975 |
for key, value in self.__dict__.iteritems()]
|
|
|
3976 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3977 |
|
|
|
3978 |
def __eq__(self, other):
|
|
|
3979 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3980 |
|
|
|
3981 |
def __ne__(self, other):
|
|
|
3982 |
return not (self == other)
|
|
|
3983 |
|
| 6050 |
anupam.sin |
3984 |
class doHdfcPaymentForDigitalOrder_args:
|
|
|
3985 |
"""
|
|
|
3986 |
Attributes:
|
|
|
3987 |
- merchantPaymentId
|
|
|
3988 |
- rechargeOrderId
|
| 6228 |
anupam.sin |
3989 |
- phone
|
| 10478 |
amit.gupta |
3990 |
- isMobile
|
| 6050 |
anupam.sin |
3991 |
"""
|
|
|
3992 |
|
| 10478 |
amit.gupta |
3993 |
thrift_spec = (
|
|
|
3994 |
None, # 0
|
|
|
3995 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
3996 |
(2, TType.I64, 'rechargeOrderId', None, None, ), # 2
|
|
|
3997 |
(3, TType.STRING, 'phone', None, None, ), # 3
|
|
|
3998 |
(4, TType.BOOL, 'isMobile', None, None, ), # 4
|
|
|
3999 |
)
|
|
|
4000 |
|
|
|
4001 |
def __init__(self, merchantPaymentId=None, rechargeOrderId=None, phone=None, isMobile=None,):
|
| 6050 |
anupam.sin |
4002 |
self.merchantPaymentId = merchantPaymentId
|
|
|
4003 |
self.rechargeOrderId = rechargeOrderId
|
| 6228 |
anupam.sin |
4004 |
self.phone = phone
|
| 10478 |
amit.gupta |
4005 |
self.isMobile = isMobile
|
| 6050 |
anupam.sin |
4006 |
|
|
|
4007 |
def read(self, iprot):
|
|
|
4008 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4009 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4010 |
return
|
|
|
4011 |
iprot.readStructBegin()
|
|
|
4012 |
while True:
|
|
|
4013 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4014 |
if ftype == TType.STOP:
|
|
|
4015 |
break
|
|
|
4016 |
if fid == 1:
|
|
|
4017 |
if ftype == TType.I64:
|
|
|
4018 |
self.merchantPaymentId = iprot.readI64();
|
|
|
4019 |
else:
|
|
|
4020 |
iprot.skip(ftype)
|
|
|
4021 |
elif fid == 2:
|
|
|
4022 |
if ftype == TType.I64:
|
|
|
4023 |
self.rechargeOrderId = iprot.readI64();
|
|
|
4024 |
else:
|
|
|
4025 |
iprot.skip(ftype)
|
| 10478 |
amit.gupta |
4026 |
elif fid == 3:
|
| 6228 |
anupam.sin |
4027 |
if ftype == TType.STRING:
|
|
|
4028 |
self.phone = iprot.readString();
|
|
|
4029 |
else:
|
|
|
4030 |
iprot.skip(ftype)
|
| 10478 |
amit.gupta |
4031 |
elif fid == 4:
|
|
|
4032 |
if ftype == TType.BOOL:
|
|
|
4033 |
self.isMobile = iprot.readBool();
|
|
|
4034 |
else:
|
|
|
4035 |
iprot.skip(ftype)
|
| 6050 |
anupam.sin |
4036 |
else:
|
|
|
4037 |
iprot.skip(ftype)
|
|
|
4038 |
iprot.readFieldEnd()
|
|
|
4039 |
iprot.readStructEnd()
|
|
|
4040 |
|
|
|
4041 |
def write(self, oprot):
|
|
|
4042 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4043 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4044 |
return
|
|
|
4045 |
oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_args')
|
|
|
4046 |
if self.merchantPaymentId is not None:
|
|
|
4047 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
4048 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
4049 |
oprot.writeFieldEnd()
|
|
|
4050 |
if self.rechargeOrderId is not None:
|
|
|
4051 |
oprot.writeFieldBegin('rechargeOrderId', TType.I64, 2)
|
|
|
4052 |
oprot.writeI64(self.rechargeOrderId)
|
|
|
4053 |
oprot.writeFieldEnd()
|
| 10478 |
amit.gupta |
4054 |
if self.phone is not None:
|
|
|
4055 |
oprot.writeFieldBegin('phone', TType.STRING, 3)
|
|
|
4056 |
oprot.writeString(self.phone)
|
|
|
4057 |
oprot.writeFieldEnd()
|
|
|
4058 |
if self.isMobile is not None:
|
|
|
4059 |
oprot.writeFieldBegin('isMobile', TType.BOOL, 4)
|
|
|
4060 |
oprot.writeBool(self.isMobile)
|
|
|
4061 |
oprot.writeFieldEnd()
|
| 6050 |
anupam.sin |
4062 |
oprot.writeFieldStop()
|
|
|
4063 |
oprot.writeStructEnd()
|
|
|
4064 |
|
|
|
4065 |
def validate(self):
|
|
|
4066 |
return
|
|
|
4067 |
|
|
|
4068 |
|
|
|
4069 |
def __repr__(self):
|
|
|
4070 |
L = ['%s=%r' % (key, value)
|
|
|
4071 |
for key, value in self.__dict__.iteritems()]
|
|
|
4072 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4073 |
|
|
|
4074 |
def __eq__(self, other):
|
|
|
4075 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4076 |
|
|
|
4077 |
def __ne__(self, other):
|
|
|
4078 |
return not (self == other)
|
|
|
4079 |
|
|
|
4080 |
class doHdfcPaymentForDigitalOrder_result:
|
|
|
4081 |
"""
|
|
|
4082 |
Attributes:
|
|
|
4083 |
- success
|
|
|
4084 |
- pe
|
|
|
4085 |
"""
|
|
|
4086 |
|
|
|
4087 |
thrift_spec = (
|
|
|
4088 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
4089 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4090 |
)
|
|
|
4091 |
|
|
|
4092 |
def __init__(self, success=None, pe=None,):
|
|
|
4093 |
self.success = success
|
|
|
4094 |
self.pe = pe
|
|
|
4095 |
|
|
|
4096 |
def read(self, iprot):
|
|
|
4097 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4098 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4099 |
return
|
|
|
4100 |
iprot.readStructBegin()
|
|
|
4101 |
while True:
|
|
|
4102 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4103 |
if ftype == TType.STOP:
|
|
|
4104 |
break
|
|
|
4105 |
if fid == 0:
|
|
|
4106 |
if ftype == TType.STRING:
|
|
|
4107 |
self.success = iprot.readString();
|
|
|
4108 |
else:
|
|
|
4109 |
iprot.skip(ftype)
|
|
|
4110 |
elif fid == 1:
|
|
|
4111 |
if ftype == TType.STRUCT:
|
|
|
4112 |
self.pe = PaymentException()
|
|
|
4113 |
self.pe.read(iprot)
|
|
|
4114 |
else:
|
|
|
4115 |
iprot.skip(ftype)
|
|
|
4116 |
else:
|
|
|
4117 |
iprot.skip(ftype)
|
|
|
4118 |
iprot.readFieldEnd()
|
|
|
4119 |
iprot.readStructEnd()
|
|
|
4120 |
|
|
|
4121 |
def write(self, oprot):
|
|
|
4122 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4123 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4124 |
return
|
|
|
4125 |
oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_result')
|
|
|
4126 |
if self.success is not None:
|
|
|
4127 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
4128 |
oprot.writeString(self.success)
|
|
|
4129 |
oprot.writeFieldEnd()
|
|
|
4130 |
if self.pe is not None:
|
|
|
4131 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4132 |
self.pe.write(oprot)
|
|
|
4133 |
oprot.writeFieldEnd()
|
|
|
4134 |
oprot.writeFieldStop()
|
|
|
4135 |
oprot.writeStructEnd()
|
|
|
4136 |
|
|
|
4137 |
def validate(self):
|
|
|
4138 |
return
|
|
|
4139 |
|
|
|
4140 |
|
|
|
4141 |
def __repr__(self):
|
|
|
4142 |
L = ['%s=%r' % (key, value)
|
|
|
4143 |
for key, value in self.__dict__.iteritems()]
|
|
|
4144 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4145 |
|
|
|
4146 |
def __eq__(self, other):
|
|
|
4147 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4148 |
|
|
|
4149 |
def __ne__(self, other):
|
|
|
4150 |
return not (self == other)
|
|
|
4151 |
|
| 3616 |
chandransh |
4152 |
class initializeHdfcEmiPayment_args:
|
|
|
4153 |
"""
|
|
|
4154 |
Attributes:
|
|
|
4155 |
- merchantPaymentId
|
| 10478 |
amit.gupta |
4156 |
- isMobile
|
| 3616 |
chandransh |
4157 |
"""
|
|
|
4158 |
|
|
|
4159 |
thrift_spec = (
|
|
|
4160 |
None, # 0
|
|
|
4161 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
| 10478 |
amit.gupta |
4162 |
(2, TType.BOOL, 'isMobile', None, None, ), # 2
|
| 3616 |
chandransh |
4163 |
)
|
|
|
4164 |
|
| 10478 |
amit.gupta |
4165 |
def __init__(self, merchantPaymentId=None, isMobile=None,):
|
| 3616 |
chandransh |
4166 |
self.merchantPaymentId = merchantPaymentId
|
| 10478 |
amit.gupta |
4167 |
self.isMobile = isMobile
|
| 3616 |
chandransh |
4168 |
|
|
|
4169 |
def read(self, iprot):
|
|
|
4170 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4171 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4172 |
return
|
|
|
4173 |
iprot.readStructBegin()
|
|
|
4174 |
while True:
|
|
|
4175 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4176 |
if ftype == TType.STOP:
|
|
|
4177 |
break
|
|
|
4178 |
if fid == 1:
|
|
|
4179 |
if ftype == TType.I64:
|
|
|
4180 |
self.merchantPaymentId = iprot.readI64();
|
|
|
4181 |
else:
|
|
|
4182 |
iprot.skip(ftype)
|
| 10478 |
amit.gupta |
4183 |
elif fid == 2:
|
|
|
4184 |
if ftype == TType.BOOL:
|
|
|
4185 |
self.isMobile = iprot.readBool();
|
|
|
4186 |
else:
|
|
|
4187 |
iprot.skip(ftype)
|
| 3616 |
chandransh |
4188 |
else:
|
|
|
4189 |
iprot.skip(ftype)
|
|
|
4190 |
iprot.readFieldEnd()
|
|
|
4191 |
iprot.readStructEnd()
|
|
|
4192 |
|
|
|
4193 |
def write(self, oprot):
|
|
|
4194 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4195 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4196 |
return
|
|
|
4197 |
oprot.writeStructBegin('initializeHdfcEmiPayment_args')
|
|
|
4198 |
if self.merchantPaymentId is not None:
|
|
|
4199 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
4200 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
4201 |
oprot.writeFieldEnd()
|
| 10478 |
amit.gupta |
4202 |
if self.isMobile is not None:
|
|
|
4203 |
oprot.writeFieldBegin('isMobile', TType.BOOL, 2)
|
|
|
4204 |
oprot.writeBool(self.isMobile)
|
|
|
4205 |
oprot.writeFieldEnd()
|
| 3616 |
chandransh |
4206 |
oprot.writeFieldStop()
|
|
|
4207 |
oprot.writeStructEnd()
|
|
|
4208 |
|
|
|
4209 |
def validate(self):
|
|
|
4210 |
return
|
|
|
4211 |
|
|
|
4212 |
|
|
|
4213 |
def __repr__(self):
|
|
|
4214 |
L = ['%s=%r' % (key, value)
|
|
|
4215 |
for key, value in self.__dict__.iteritems()]
|
|
|
4216 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4217 |
|
|
|
4218 |
def __eq__(self, other):
|
|
|
4219 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4220 |
|
|
|
4221 |
def __ne__(self, other):
|
|
|
4222 |
return not (self == other)
|
|
|
4223 |
|
|
|
4224 |
class initializeHdfcEmiPayment_result:
|
|
|
4225 |
"""
|
|
|
4226 |
Attributes:
|
|
|
4227 |
- success
|
|
|
4228 |
- pe
|
|
|
4229 |
"""
|
|
|
4230 |
|
|
|
4231 |
thrift_spec = (
|
|
|
4232 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
4233 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4234 |
)
|
|
|
4235 |
|
|
|
4236 |
def __init__(self, success=None, pe=None,):
|
|
|
4237 |
self.success = success
|
|
|
4238 |
self.pe = pe
|
|
|
4239 |
|
|
|
4240 |
def read(self, iprot):
|
|
|
4241 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4242 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4243 |
return
|
|
|
4244 |
iprot.readStructBegin()
|
|
|
4245 |
while True:
|
|
|
4246 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4247 |
if ftype == TType.STOP:
|
|
|
4248 |
break
|
|
|
4249 |
if fid == 0:
|
|
|
4250 |
if ftype == TType.STRING:
|
|
|
4251 |
self.success = iprot.readString();
|
|
|
4252 |
else:
|
|
|
4253 |
iprot.skip(ftype)
|
|
|
4254 |
elif fid == 1:
|
|
|
4255 |
if ftype == TType.STRUCT:
|
|
|
4256 |
self.pe = PaymentException()
|
|
|
4257 |
self.pe.read(iprot)
|
|
|
4258 |
else:
|
|
|
4259 |
iprot.skip(ftype)
|
|
|
4260 |
else:
|
|
|
4261 |
iprot.skip(ftype)
|
|
|
4262 |
iprot.readFieldEnd()
|
|
|
4263 |
iprot.readStructEnd()
|
|
|
4264 |
|
|
|
4265 |
def write(self, oprot):
|
|
|
4266 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4267 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4268 |
return
|
|
|
4269 |
oprot.writeStructBegin('initializeHdfcEmiPayment_result')
|
|
|
4270 |
if self.success is not None:
|
|
|
4271 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
4272 |
oprot.writeString(self.success)
|
|
|
4273 |
oprot.writeFieldEnd()
|
|
|
4274 |
if self.pe is not None:
|
|
|
4275 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4276 |
self.pe.write(oprot)
|
|
|
4277 |
oprot.writeFieldEnd()
|
|
|
4278 |
oprot.writeFieldStop()
|
|
|
4279 |
oprot.writeStructEnd()
|
|
|
4280 |
|
|
|
4281 |
def validate(self):
|
|
|
4282 |
return
|
|
|
4283 |
|
|
|
4284 |
|
|
|
4285 |
def __repr__(self):
|
|
|
4286 |
L = ['%s=%r' % (key, value)
|
|
|
4287 |
for key, value in self.__dict__.iteritems()]
|
|
|
4288 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4289 |
|
|
|
4290 |
def __eq__(self, other):
|
|
|
4291 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4292 |
|
|
|
4293 |
def __ne__(self, other):
|
|
|
4294 |
return not (self == other)
|
|
|
4295 |
|
| 3010 |
chandransh |
4296 |
class createRefund_args:
|
| 2559 |
chandransh |
4297 |
"""
|
|
|
4298 |
Attributes:
|
| 3010 |
chandransh |
4299 |
- orderId
|
|
|
4300 |
- merchantTxnId
|
|
|
4301 |
- amount
|
| 2559 |
chandransh |
4302 |
"""
|
|
|
4303 |
|
|
|
4304 |
thrift_spec = (
|
|
|
4305 |
None, # 0
|
| 3010 |
chandransh |
4306 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
4307 |
(2, TType.I64, 'merchantTxnId', None, None, ), # 2
|
|
|
4308 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
| 2559 |
chandransh |
4309 |
)
|
|
|
4310 |
|
| 3010 |
chandransh |
4311 |
def __init__(self, orderId=None, merchantTxnId=None, amount=None,):
|
|
|
4312 |
self.orderId = orderId
|
|
|
4313 |
self.merchantTxnId = merchantTxnId
|
|
|
4314 |
self.amount = amount
|
| 2559 |
chandransh |
4315 |
|
|
|
4316 |
def read(self, iprot):
|
|
|
4317 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4318 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4319 |
return
|
|
|
4320 |
iprot.readStructBegin()
|
|
|
4321 |
while True:
|
|
|
4322 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4323 |
if ftype == TType.STOP:
|
|
|
4324 |
break
|
|
|
4325 |
if fid == 1:
|
|
|
4326 |
if ftype == TType.I64:
|
| 3010 |
chandransh |
4327 |
self.orderId = iprot.readI64();
|
| 2559 |
chandransh |
4328 |
else:
|
|
|
4329 |
iprot.skip(ftype)
|
| 3010 |
chandransh |
4330 |
elif fid == 2:
|
|
|
4331 |
if ftype == TType.I64:
|
|
|
4332 |
self.merchantTxnId = iprot.readI64();
|
|
|
4333 |
else:
|
|
|
4334 |
iprot.skip(ftype)
|
|
|
4335 |
elif fid == 3:
|
|
|
4336 |
if ftype == TType.DOUBLE:
|
|
|
4337 |
self.amount = iprot.readDouble();
|
|
|
4338 |
else:
|
|
|
4339 |
iprot.skip(ftype)
|
| 2559 |
chandransh |
4340 |
else:
|
|
|
4341 |
iprot.skip(ftype)
|
|
|
4342 |
iprot.readFieldEnd()
|
|
|
4343 |
iprot.readStructEnd()
|
|
|
4344 |
|
|
|
4345 |
def write(self, oprot):
|
|
|
4346 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4347 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4348 |
return
|
| 3010 |
chandransh |
4349 |
oprot.writeStructBegin('createRefund_args')
|
| 3431 |
rajveer |
4350 |
if self.orderId is not None:
|
| 3010 |
chandransh |
4351 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
4352 |
oprot.writeI64(self.orderId)
|
| 2559 |
chandransh |
4353 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4354 |
if self.merchantTxnId is not None:
|
| 3010 |
chandransh |
4355 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
|
|
|
4356 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4357 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4358 |
if self.amount is not None:
|
| 3010 |
chandransh |
4359 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
4360 |
oprot.writeDouble(self.amount)
|
|
|
4361 |
oprot.writeFieldEnd()
|
| 2559 |
chandransh |
4362 |
oprot.writeFieldStop()
|
|
|
4363 |
oprot.writeStructEnd()
|
|
|
4364 |
|
| 3431 |
rajveer |
4365 |
def validate(self):
|
|
|
4366 |
return
|
|
|
4367 |
|
|
|
4368 |
|
| 2559 |
chandransh |
4369 |
def __repr__(self):
|
|
|
4370 |
L = ['%s=%r' % (key, value)
|
|
|
4371 |
for key, value in self.__dict__.iteritems()]
|
|
|
4372 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4373 |
|
|
|
4374 |
def __eq__(self, other):
|
|
|
4375 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4376 |
|
|
|
4377 |
def __ne__(self, other):
|
|
|
4378 |
return not (self == other)
|
|
|
4379 |
|
| 3010 |
chandransh |
4380 |
class createRefund_result:
|
| 2559 |
chandransh |
4381 |
"""
|
|
|
4382 |
Attributes:
|
|
|
4383 |
- success
|
|
|
4384 |
- pe
|
|
|
4385 |
"""
|
|
|
4386 |
|
|
|
4387 |
thrift_spec = (
|
| 3010 |
chandransh |
4388 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 2559 |
chandransh |
4389 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4390 |
)
|
|
|
4391 |
|
|
|
4392 |
def __init__(self, success=None, pe=None,):
|
|
|
4393 |
self.success = success
|
|
|
4394 |
self.pe = pe
|
|
|
4395 |
|
|
|
4396 |
def read(self, iprot):
|
|
|
4397 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4398 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4399 |
return
|
|
|
4400 |
iprot.readStructBegin()
|
|
|
4401 |
while True:
|
|
|
4402 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4403 |
if ftype == TType.STOP:
|
|
|
4404 |
break
|
|
|
4405 |
if fid == 0:
|
| 3010 |
chandransh |
4406 |
if ftype == TType.I64:
|
|
|
4407 |
self.success = iprot.readI64();
|
| 2559 |
chandransh |
4408 |
else:
|
|
|
4409 |
iprot.skip(ftype)
|
|
|
4410 |
elif fid == 1:
|
|
|
4411 |
if ftype == TType.STRUCT:
|
|
|
4412 |
self.pe = PaymentException()
|
|
|
4413 |
self.pe.read(iprot)
|
|
|
4414 |
else:
|
|
|
4415 |
iprot.skip(ftype)
|
|
|
4416 |
else:
|
|
|
4417 |
iprot.skip(ftype)
|
|
|
4418 |
iprot.readFieldEnd()
|
|
|
4419 |
iprot.readStructEnd()
|
|
|
4420 |
|
|
|
4421 |
def write(self, oprot):
|
|
|
4422 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4423 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4424 |
return
|
| 3010 |
chandransh |
4425 |
oprot.writeStructBegin('createRefund_result')
|
| 3431 |
rajveer |
4426 |
if self.success is not None:
|
| 3010 |
chandransh |
4427 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
4428 |
oprot.writeI64(self.success)
|
| 2559 |
chandransh |
4429 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4430 |
if self.pe is not None:
|
| 2559 |
chandransh |
4431 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4432 |
self.pe.write(oprot)
|
|
|
4433 |
oprot.writeFieldEnd()
|
|
|
4434 |
oprot.writeFieldStop()
|
|
|
4435 |
oprot.writeStructEnd()
|
|
|
4436 |
|
| 3431 |
rajveer |
4437 |
def validate(self):
|
|
|
4438 |
return
|
|
|
4439 |
|
|
|
4440 |
|
| 2559 |
chandransh |
4441 |
def __repr__(self):
|
|
|
4442 |
L = ['%s=%r' % (key, value)
|
|
|
4443 |
for key, value in self.__dict__.iteritems()]
|
|
|
4444 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4445 |
|
|
|
4446 |
def __eq__(self, other):
|
|
|
4447 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4448 |
|
|
|
4449 |
def __ne__(self, other):
|
|
|
4450 |
return not (self == other)
|
|
|
4451 |
|
| 3010 |
chandransh |
4452 |
class capturePayment_args:
|
| 2685 |
chandransh |
4453 |
"""
|
|
|
4454 |
Attributes:
|
|
|
4455 |
- merchantTxnId
|
| 8618 |
rajveer |
4456 |
- isDigital
|
| 2685 |
chandransh |
4457 |
"""
|
| 2559 |
chandransh |
4458 |
|
| 2685 |
chandransh |
4459 |
thrift_spec = (
|
|
|
4460 |
None, # 0
|
| 3010 |
chandransh |
4461 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
| 8618 |
rajveer |
4462 |
(2, TType.BOOL, 'isDigital', None, None, ), # 2
|
| 2685 |
chandransh |
4463 |
)
|
|
|
4464 |
|
| 8618 |
rajveer |
4465 |
def __init__(self, merchantTxnId=None, isDigital=None,):
|
| 2685 |
chandransh |
4466 |
self.merchantTxnId = merchantTxnId
|
| 8618 |
rajveer |
4467 |
self.isDigital = isDigital
|
| 2685 |
chandransh |
4468 |
|
|
|
4469 |
def read(self, iprot):
|
|
|
4470 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4471 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4472 |
return
|
|
|
4473 |
iprot.readStructBegin()
|
|
|
4474 |
while True:
|
|
|
4475 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4476 |
if ftype == TType.STOP:
|
|
|
4477 |
break
|
|
|
4478 |
if fid == 1:
|
|
|
4479 |
if ftype == TType.I64:
|
|
|
4480 |
self.merchantTxnId = iprot.readI64();
|
|
|
4481 |
else:
|
|
|
4482 |
iprot.skip(ftype)
|
| 8618 |
rajveer |
4483 |
elif fid == 2:
|
|
|
4484 |
if ftype == TType.BOOL:
|
|
|
4485 |
self.isDigital = iprot.readBool();
|
|
|
4486 |
else:
|
|
|
4487 |
iprot.skip(ftype)
|
| 2685 |
chandransh |
4488 |
else:
|
|
|
4489 |
iprot.skip(ftype)
|
|
|
4490 |
iprot.readFieldEnd()
|
|
|
4491 |
iprot.readStructEnd()
|
|
|
4492 |
|
|
|
4493 |
def write(self, oprot):
|
|
|
4494 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4495 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4496 |
return
|
| 3010 |
chandransh |
4497 |
oprot.writeStructBegin('capturePayment_args')
|
| 3431 |
rajveer |
4498 |
if self.merchantTxnId is not None:
|
| 3010 |
chandransh |
4499 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
| 2685 |
chandransh |
4500 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4501 |
oprot.writeFieldEnd()
|
| 8618 |
rajveer |
4502 |
if self.isDigital is not None:
|
|
|
4503 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 2)
|
|
|
4504 |
oprot.writeBool(self.isDigital)
|
|
|
4505 |
oprot.writeFieldEnd()
|
| 2685 |
chandransh |
4506 |
oprot.writeFieldStop()
|
|
|
4507 |
oprot.writeStructEnd()
|
|
|
4508 |
|
| 3431 |
rajveer |
4509 |
def validate(self):
|
|
|
4510 |
return
|
|
|
4511 |
|
|
|
4512 |
|
| 2685 |
chandransh |
4513 |
def __repr__(self):
|
|
|
4514 |
L = ['%s=%r' % (key, value)
|
|
|
4515 |
for key, value in self.__dict__.iteritems()]
|
|
|
4516 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4517 |
|
|
|
4518 |
def __eq__(self, other):
|
|
|
4519 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4520 |
|
|
|
4521 |
def __ne__(self, other):
|
|
|
4522 |
return not (self == other)
|
|
|
4523 |
|
| 3010 |
chandransh |
4524 |
class capturePayment_result:
|
| 2685 |
chandransh |
4525 |
"""
|
|
|
4526 |
Attributes:
|
|
|
4527 |
- success
|
|
|
4528 |
- pe
|
|
|
4529 |
"""
|
|
|
4530 |
|
|
|
4531 |
thrift_spec = (
|
| 3010 |
chandransh |
4532 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 2685 |
chandransh |
4533 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4534 |
)
|
|
|
4535 |
|
|
|
4536 |
def __init__(self, success=None, pe=None,):
|
|
|
4537 |
self.success = success
|
|
|
4538 |
self.pe = pe
|
|
|
4539 |
|
|
|
4540 |
def read(self, iprot):
|
|
|
4541 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4542 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4543 |
return
|
|
|
4544 |
iprot.readStructBegin()
|
|
|
4545 |
while True:
|
|
|
4546 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4547 |
if ftype == TType.STOP:
|
|
|
4548 |
break
|
|
|
4549 |
if fid == 0:
|
| 3010 |
chandransh |
4550 |
if ftype == TType.BOOL:
|
|
|
4551 |
self.success = iprot.readBool();
|
| 2685 |
chandransh |
4552 |
else:
|
|
|
4553 |
iprot.skip(ftype)
|
|
|
4554 |
elif fid == 1:
|
|
|
4555 |
if ftype == TType.STRUCT:
|
|
|
4556 |
self.pe = PaymentException()
|
|
|
4557 |
self.pe.read(iprot)
|
|
|
4558 |
else:
|
|
|
4559 |
iprot.skip(ftype)
|
|
|
4560 |
else:
|
|
|
4561 |
iprot.skip(ftype)
|
|
|
4562 |
iprot.readFieldEnd()
|
|
|
4563 |
iprot.readStructEnd()
|
|
|
4564 |
|
|
|
4565 |
def write(self, oprot):
|
|
|
4566 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4567 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4568 |
return
|
| 3010 |
chandransh |
4569 |
oprot.writeStructBegin('capturePayment_result')
|
| 3431 |
rajveer |
4570 |
if self.success is not None:
|
| 3010 |
chandransh |
4571 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4572 |
oprot.writeBool(self.success)
|
| 2685 |
chandransh |
4573 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4574 |
if self.pe is not None:
|
| 2685 |
chandransh |
4575 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4576 |
self.pe.write(oprot)
|
|
|
4577 |
oprot.writeFieldEnd()
|
|
|
4578 |
oprot.writeFieldStop()
|
|
|
4579 |
oprot.writeStructEnd()
|
|
|
4580 |
|
| 3431 |
rajveer |
4581 |
def validate(self):
|
|
|
4582 |
return
|
|
|
4583 |
|
|
|
4584 |
|
| 2685 |
chandransh |
4585 |
def __repr__(self):
|
|
|
4586 |
L = ['%s=%r' % (key, value)
|
|
|
4587 |
for key, value in self.__dict__.iteritems()]
|
|
|
4588 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4589 |
|
|
|
4590 |
def __eq__(self, other):
|
|
|
4591 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4592 |
|
|
|
4593 |
def __ne__(self, other):
|
|
|
4594 |
return not (self == other)
|
| 3956 |
chandransh |
4595 |
|
| 6486 |
rajveer |
4596 |
class refundPayment_args:
|
|
|
4597 |
"""
|
|
|
4598 |
Attributes:
|
|
|
4599 |
- merchantTxnId
|
|
|
4600 |
- amount
|
|
|
4601 |
- isDigital
|
|
|
4602 |
"""
|
|
|
4603 |
|
|
|
4604 |
thrift_spec = (
|
|
|
4605 |
None, # 0
|
|
|
4606 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
4607 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
4608 |
(3, TType.BOOL, 'isDigital', None, None, ), # 3
|
|
|
4609 |
)
|
|
|
4610 |
|
|
|
4611 |
def __init__(self, merchantTxnId=None, amount=None, isDigital=None,):
|
|
|
4612 |
self.merchantTxnId = merchantTxnId
|
|
|
4613 |
self.amount = amount
|
|
|
4614 |
self.isDigital = isDigital
|
|
|
4615 |
|
|
|
4616 |
def read(self, iprot):
|
|
|
4617 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4618 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4619 |
return
|
|
|
4620 |
iprot.readStructBegin()
|
|
|
4621 |
while True:
|
|
|
4622 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4623 |
if ftype == TType.STOP:
|
|
|
4624 |
break
|
|
|
4625 |
if fid == 1:
|
|
|
4626 |
if ftype == TType.I64:
|
|
|
4627 |
self.merchantTxnId = iprot.readI64();
|
|
|
4628 |
else:
|
|
|
4629 |
iprot.skip(ftype)
|
|
|
4630 |
elif fid == 2:
|
|
|
4631 |
if ftype == TType.DOUBLE:
|
|
|
4632 |
self.amount = iprot.readDouble();
|
|
|
4633 |
else:
|
|
|
4634 |
iprot.skip(ftype)
|
|
|
4635 |
elif fid == 3:
|
|
|
4636 |
if ftype == TType.BOOL:
|
|
|
4637 |
self.isDigital = iprot.readBool();
|
|
|
4638 |
else:
|
|
|
4639 |
iprot.skip(ftype)
|
|
|
4640 |
else:
|
|
|
4641 |
iprot.skip(ftype)
|
|
|
4642 |
iprot.readFieldEnd()
|
|
|
4643 |
iprot.readStructEnd()
|
|
|
4644 |
|
|
|
4645 |
def write(self, oprot):
|
|
|
4646 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4647 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4648 |
return
|
|
|
4649 |
oprot.writeStructBegin('refundPayment_args')
|
|
|
4650 |
if self.merchantTxnId is not None:
|
|
|
4651 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
4652 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4653 |
oprot.writeFieldEnd()
|
|
|
4654 |
if self.amount is not None:
|
|
|
4655 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
4656 |
oprot.writeDouble(self.amount)
|
|
|
4657 |
oprot.writeFieldEnd()
|
|
|
4658 |
if self.isDigital is not None:
|
|
|
4659 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 3)
|
|
|
4660 |
oprot.writeBool(self.isDigital)
|
|
|
4661 |
oprot.writeFieldEnd()
|
|
|
4662 |
oprot.writeFieldStop()
|
|
|
4663 |
oprot.writeStructEnd()
|
|
|
4664 |
|
|
|
4665 |
def validate(self):
|
|
|
4666 |
return
|
|
|
4667 |
|
|
|
4668 |
|
|
|
4669 |
def __repr__(self):
|
|
|
4670 |
L = ['%s=%r' % (key, value)
|
|
|
4671 |
for key, value in self.__dict__.iteritems()]
|
|
|
4672 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4673 |
|
|
|
4674 |
def __eq__(self, other):
|
|
|
4675 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4676 |
|
|
|
4677 |
def __ne__(self, other):
|
|
|
4678 |
return not (self == other)
|
|
|
4679 |
|
|
|
4680 |
class refundPayment_result:
|
|
|
4681 |
"""
|
|
|
4682 |
Attributes:
|
|
|
4683 |
- success
|
|
|
4684 |
- pe
|
|
|
4685 |
"""
|
|
|
4686 |
|
|
|
4687 |
thrift_spec = (
|
|
|
4688 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4689 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4690 |
)
|
|
|
4691 |
|
|
|
4692 |
def __init__(self, success=None, pe=None,):
|
|
|
4693 |
self.success = success
|
|
|
4694 |
self.pe = pe
|
|
|
4695 |
|
|
|
4696 |
def read(self, iprot):
|
|
|
4697 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4698 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4699 |
return
|
|
|
4700 |
iprot.readStructBegin()
|
|
|
4701 |
while True:
|
|
|
4702 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4703 |
if ftype == TType.STOP:
|
|
|
4704 |
break
|
|
|
4705 |
if fid == 0:
|
|
|
4706 |
if ftype == TType.BOOL:
|
|
|
4707 |
self.success = iprot.readBool();
|
|
|
4708 |
else:
|
|
|
4709 |
iprot.skip(ftype)
|
|
|
4710 |
elif fid == 1:
|
|
|
4711 |
if ftype == TType.STRUCT:
|
|
|
4712 |
self.pe = PaymentException()
|
|
|
4713 |
self.pe.read(iprot)
|
|
|
4714 |
else:
|
|
|
4715 |
iprot.skip(ftype)
|
|
|
4716 |
else:
|
|
|
4717 |
iprot.skip(ftype)
|
|
|
4718 |
iprot.readFieldEnd()
|
|
|
4719 |
iprot.readStructEnd()
|
|
|
4720 |
|
|
|
4721 |
def write(self, oprot):
|
|
|
4722 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4723 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4724 |
return
|
|
|
4725 |
oprot.writeStructBegin('refundPayment_result')
|
|
|
4726 |
if self.success is not None:
|
|
|
4727 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4728 |
oprot.writeBool(self.success)
|
|
|
4729 |
oprot.writeFieldEnd()
|
|
|
4730 |
if self.pe is not None:
|
|
|
4731 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4732 |
self.pe.write(oprot)
|
|
|
4733 |
oprot.writeFieldEnd()
|
|
|
4734 |
oprot.writeFieldStop()
|
|
|
4735 |
oprot.writeStructEnd()
|
|
|
4736 |
|
|
|
4737 |
def validate(self):
|
|
|
4738 |
return
|
|
|
4739 |
|
|
|
4740 |
|
|
|
4741 |
def __repr__(self):
|
|
|
4742 |
L = ['%s=%r' % (key, value)
|
|
|
4743 |
for key, value in self.__dict__.iteritems()]
|
|
|
4744 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4745 |
|
|
|
4746 |
def __eq__(self, other):
|
|
|
4747 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4748 |
|
|
|
4749 |
def __ne__(self, other):
|
|
|
4750 |
return not (self == other)
|
|
|
4751 |
|
| 3956 |
chandransh |
4752 |
class partiallyCapturePayment_args:
|
|
|
4753 |
"""
|
|
|
4754 |
Attributes:
|
|
|
4755 |
- merchantTxnId
|
|
|
4756 |
- amount
|
|
|
4757 |
- xferBy
|
|
|
4758 |
- xferTxnId
|
|
|
4759 |
- xferDate
|
|
|
4760 |
"""
|
|
|
4761 |
|
|
|
4762 |
thrift_spec = (
|
|
|
4763 |
None, # 0
|
|
|
4764 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
4765 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
4766 |
(3, TType.STRING, 'xferBy', None, None, ), # 3
|
|
|
4767 |
(4, TType.STRING, 'xferTxnId', None, None, ), # 4
|
|
|
4768 |
(5, TType.I64, 'xferDate', None, None, ), # 5
|
|
|
4769 |
)
|
|
|
4770 |
|
|
|
4771 |
def __init__(self, merchantTxnId=None, amount=None, xferBy=None, xferTxnId=None, xferDate=None,):
|
|
|
4772 |
self.merchantTxnId = merchantTxnId
|
|
|
4773 |
self.amount = amount
|
|
|
4774 |
self.xferBy = xferBy
|
|
|
4775 |
self.xferTxnId = xferTxnId
|
|
|
4776 |
self.xferDate = xferDate
|
|
|
4777 |
|
|
|
4778 |
def read(self, iprot):
|
|
|
4779 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4780 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4781 |
return
|
|
|
4782 |
iprot.readStructBegin()
|
|
|
4783 |
while True:
|
|
|
4784 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4785 |
if ftype == TType.STOP:
|
|
|
4786 |
break
|
|
|
4787 |
if fid == 1:
|
|
|
4788 |
if ftype == TType.I64:
|
|
|
4789 |
self.merchantTxnId = iprot.readI64();
|
|
|
4790 |
else:
|
|
|
4791 |
iprot.skip(ftype)
|
|
|
4792 |
elif fid == 2:
|
|
|
4793 |
if ftype == TType.DOUBLE:
|
|
|
4794 |
self.amount = iprot.readDouble();
|
|
|
4795 |
else:
|
|
|
4796 |
iprot.skip(ftype)
|
|
|
4797 |
elif fid == 3:
|
|
|
4798 |
if ftype == TType.STRING:
|
|
|
4799 |
self.xferBy = iprot.readString();
|
|
|
4800 |
else:
|
|
|
4801 |
iprot.skip(ftype)
|
|
|
4802 |
elif fid == 4:
|
|
|
4803 |
if ftype == TType.STRING:
|
|
|
4804 |
self.xferTxnId = iprot.readString();
|
|
|
4805 |
else:
|
|
|
4806 |
iprot.skip(ftype)
|
|
|
4807 |
elif fid == 5:
|
|
|
4808 |
if ftype == TType.I64:
|
|
|
4809 |
self.xferDate = iprot.readI64();
|
|
|
4810 |
else:
|
|
|
4811 |
iprot.skip(ftype)
|
|
|
4812 |
else:
|
|
|
4813 |
iprot.skip(ftype)
|
|
|
4814 |
iprot.readFieldEnd()
|
|
|
4815 |
iprot.readStructEnd()
|
|
|
4816 |
|
|
|
4817 |
def write(self, oprot):
|
|
|
4818 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4819 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4820 |
return
|
|
|
4821 |
oprot.writeStructBegin('partiallyCapturePayment_args')
|
|
|
4822 |
if self.merchantTxnId is not None:
|
|
|
4823 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
4824 |
oprot.writeI64(self.merchantTxnId)
|
|
|
4825 |
oprot.writeFieldEnd()
|
|
|
4826 |
if self.amount is not None:
|
|
|
4827 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
4828 |
oprot.writeDouble(self.amount)
|
|
|
4829 |
oprot.writeFieldEnd()
|
|
|
4830 |
if self.xferBy is not None:
|
|
|
4831 |
oprot.writeFieldBegin('xferBy', TType.STRING, 3)
|
|
|
4832 |
oprot.writeString(self.xferBy)
|
|
|
4833 |
oprot.writeFieldEnd()
|
|
|
4834 |
if self.xferTxnId is not None:
|
|
|
4835 |
oprot.writeFieldBegin('xferTxnId', TType.STRING, 4)
|
|
|
4836 |
oprot.writeString(self.xferTxnId)
|
|
|
4837 |
oprot.writeFieldEnd()
|
|
|
4838 |
if self.xferDate is not None:
|
|
|
4839 |
oprot.writeFieldBegin('xferDate', TType.I64, 5)
|
|
|
4840 |
oprot.writeI64(self.xferDate)
|
|
|
4841 |
oprot.writeFieldEnd()
|
|
|
4842 |
oprot.writeFieldStop()
|
|
|
4843 |
oprot.writeStructEnd()
|
|
|
4844 |
|
|
|
4845 |
def validate(self):
|
|
|
4846 |
return
|
|
|
4847 |
|
|
|
4848 |
|
|
|
4849 |
def __repr__(self):
|
|
|
4850 |
L = ['%s=%r' % (key, value)
|
|
|
4851 |
for key, value in self.__dict__.iteritems()]
|
|
|
4852 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4853 |
|
|
|
4854 |
def __eq__(self, other):
|
|
|
4855 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4856 |
|
|
|
4857 |
def __ne__(self, other):
|
|
|
4858 |
return not (self == other)
|
|
|
4859 |
|
|
|
4860 |
class partiallyCapturePayment_result:
|
|
|
4861 |
"""
|
|
|
4862 |
Attributes:
|
|
|
4863 |
- success
|
|
|
4864 |
- pe
|
|
|
4865 |
"""
|
|
|
4866 |
|
|
|
4867 |
thrift_spec = (
|
|
|
4868 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4869 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
4870 |
)
|
|
|
4871 |
|
|
|
4872 |
def __init__(self, success=None, pe=None,):
|
|
|
4873 |
self.success = success
|
|
|
4874 |
self.pe = pe
|
|
|
4875 |
|
|
|
4876 |
def read(self, iprot):
|
|
|
4877 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4878 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4879 |
return
|
|
|
4880 |
iprot.readStructBegin()
|
|
|
4881 |
while True:
|
|
|
4882 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4883 |
if ftype == TType.STOP:
|
|
|
4884 |
break
|
|
|
4885 |
if fid == 0:
|
|
|
4886 |
if ftype == TType.BOOL:
|
|
|
4887 |
self.success = iprot.readBool();
|
|
|
4888 |
else:
|
|
|
4889 |
iprot.skip(ftype)
|
|
|
4890 |
elif fid == 1:
|
|
|
4891 |
if ftype == TType.STRUCT:
|
|
|
4892 |
self.pe = PaymentException()
|
|
|
4893 |
self.pe.read(iprot)
|
|
|
4894 |
else:
|
|
|
4895 |
iprot.skip(ftype)
|
|
|
4896 |
else:
|
|
|
4897 |
iprot.skip(ftype)
|
|
|
4898 |
iprot.readFieldEnd()
|
|
|
4899 |
iprot.readStructEnd()
|
|
|
4900 |
|
|
|
4901 |
def write(self, oprot):
|
|
|
4902 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4903 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4904 |
return
|
|
|
4905 |
oprot.writeStructBegin('partiallyCapturePayment_result')
|
|
|
4906 |
if self.success is not None:
|
|
|
4907 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4908 |
oprot.writeBool(self.success)
|
|
|
4909 |
oprot.writeFieldEnd()
|
|
|
4910 |
if self.pe is not None:
|
|
|
4911 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
4912 |
self.pe.write(oprot)
|
|
|
4913 |
oprot.writeFieldEnd()
|
|
|
4914 |
oprot.writeFieldStop()
|
|
|
4915 |
oprot.writeStructEnd()
|
|
|
4916 |
|
|
|
4917 |
def validate(self):
|
|
|
4918 |
return
|
|
|
4919 |
|
|
|
4920 |
|
|
|
4921 |
def __repr__(self):
|
|
|
4922 |
L = ['%s=%r' % (key, value)
|
|
|
4923 |
for key, value in self.__dict__.iteritems()]
|
|
|
4924 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4925 |
|
|
|
4926 |
def __eq__(self, other):
|
|
|
4927 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4928 |
|
|
|
4929 |
def __ne__(self, other):
|
|
|
4930 |
return not (self == other)
|
| 4008 |
mandeep.dh |
4931 |
|
|
|
4932 |
class getPaymentsRequiringExtraProcessing_args:
|
|
|
4933 |
"""
|
|
|
4934 |
Attributes:
|
|
|
4935 |
- category
|
|
|
4936 |
"""
|
|
|
4937 |
|
|
|
4938 |
thrift_spec = (
|
|
|
4939 |
None, # 0
|
|
|
4940 |
(1, TType.I32, 'category', None, None, ), # 1
|
|
|
4941 |
)
|
|
|
4942 |
|
|
|
4943 |
def __init__(self, category=None,):
|
|
|
4944 |
self.category = category
|
|
|
4945 |
|
|
|
4946 |
def read(self, iprot):
|
|
|
4947 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4948 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4949 |
return
|
|
|
4950 |
iprot.readStructBegin()
|
|
|
4951 |
while True:
|
|
|
4952 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4953 |
if ftype == TType.STOP:
|
|
|
4954 |
break
|
|
|
4955 |
if fid == 1:
|
|
|
4956 |
if ftype == TType.I32:
|
|
|
4957 |
self.category = iprot.readI32();
|
|
|
4958 |
else:
|
|
|
4959 |
iprot.skip(ftype)
|
|
|
4960 |
else:
|
|
|
4961 |
iprot.skip(ftype)
|
|
|
4962 |
iprot.readFieldEnd()
|
|
|
4963 |
iprot.readStructEnd()
|
|
|
4964 |
|
|
|
4965 |
def write(self, oprot):
|
|
|
4966 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4967 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4968 |
return
|
|
|
4969 |
oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_args')
|
|
|
4970 |
if self.category is not None:
|
|
|
4971 |
oprot.writeFieldBegin('category', TType.I32, 1)
|
|
|
4972 |
oprot.writeI32(self.category)
|
|
|
4973 |
oprot.writeFieldEnd()
|
|
|
4974 |
oprot.writeFieldStop()
|
|
|
4975 |
oprot.writeStructEnd()
|
|
|
4976 |
|
|
|
4977 |
def validate(self):
|
|
|
4978 |
return
|
|
|
4979 |
|
|
|
4980 |
|
|
|
4981 |
def __repr__(self):
|
|
|
4982 |
L = ['%s=%r' % (key, value)
|
|
|
4983 |
for key, value in self.__dict__.iteritems()]
|
|
|
4984 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4985 |
|
|
|
4986 |
def __eq__(self, other):
|
|
|
4987 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4988 |
|
|
|
4989 |
def __ne__(self, other):
|
|
|
4990 |
return not (self == other)
|
|
|
4991 |
|
|
|
4992 |
class getPaymentsRequiringExtraProcessing_result:
|
|
|
4993 |
"""
|
|
|
4994 |
Attributes:
|
|
|
4995 |
- success
|
|
|
4996 |
"""
|
|
|
4997 |
|
|
|
4998 |
thrift_spec = (
|
|
|
4999 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
5000 |
)
|
|
|
5001 |
|
|
|
5002 |
def __init__(self, success=None,):
|
|
|
5003 |
self.success = success
|
|
|
5004 |
|
|
|
5005 |
def read(self, iprot):
|
|
|
5006 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5007 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5008 |
return
|
|
|
5009 |
iprot.readStructBegin()
|
|
|
5010 |
while True:
|
|
|
5011 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5012 |
if ftype == TType.STOP:
|
|
|
5013 |
break
|
|
|
5014 |
if fid == 0:
|
|
|
5015 |
if ftype == TType.LIST:
|
|
|
5016 |
self.success = []
|
| 7049 |
anupam.sin |
5017 |
(_etype80, _size77) = iprot.readListBegin()
|
|
|
5018 |
for _i81 in xrange(_size77):
|
|
|
5019 |
_elem82 = iprot.readI64();
|
|
|
5020 |
self.success.append(_elem82)
|
| 4008 |
mandeep.dh |
5021 |
iprot.readListEnd()
|
|
|
5022 |
else:
|
|
|
5023 |
iprot.skip(ftype)
|
|
|
5024 |
else:
|
|
|
5025 |
iprot.skip(ftype)
|
|
|
5026 |
iprot.readFieldEnd()
|
|
|
5027 |
iprot.readStructEnd()
|
|
|
5028 |
|
|
|
5029 |
def write(self, oprot):
|
|
|
5030 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5031 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5032 |
return
|
|
|
5033 |
oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
|
|
|
5034 |
if self.success is not None:
|
|
|
5035 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5036 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 7049 |
anupam.sin |
5037 |
for iter83 in self.success:
|
|
|
5038 |
oprot.writeI64(iter83)
|
| 4008 |
mandeep.dh |
5039 |
oprot.writeListEnd()
|
|
|
5040 |
oprot.writeFieldEnd()
|
|
|
5041 |
oprot.writeFieldStop()
|
|
|
5042 |
oprot.writeStructEnd()
|
|
|
5043 |
|
|
|
5044 |
def validate(self):
|
|
|
5045 |
return
|
|
|
5046 |
|
|
|
5047 |
|
|
|
5048 |
def __repr__(self):
|
|
|
5049 |
L = ['%s=%r' % (key, value)
|
|
|
5050 |
for key, value in self.__dict__.iteritems()]
|
|
|
5051 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5052 |
|
|
|
5053 |
def __eq__(self, other):
|
|
|
5054 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5055 |
|
|
|
5056 |
def __ne__(self, other):
|
|
|
5057 |
return not (self == other)
|
|
|
5058 |
|
|
|
5059 |
class markPaymentAsProcessed_args:
|
|
|
5060 |
"""
|
|
|
5061 |
Attributes:
|
|
|
5062 |
- paymentId
|
|
|
5063 |
- category
|
|
|
5064 |
"""
|
|
|
5065 |
|
|
|
5066 |
thrift_spec = (
|
|
|
5067 |
None, # 0
|
|
|
5068 |
(1, TType.I64, 'paymentId', None, None, ), # 1
|
|
|
5069 |
(2, TType.I32, 'category', None, None, ), # 2
|
|
|
5070 |
)
|
|
|
5071 |
|
|
|
5072 |
def __init__(self, paymentId=None, category=None,):
|
|
|
5073 |
self.paymentId = paymentId
|
|
|
5074 |
self.category = category
|
|
|
5075 |
|
|
|
5076 |
def read(self, iprot):
|
|
|
5077 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5078 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5079 |
return
|
|
|
5080 |
iprot.readStructBegin()
|
|
|
5081 |
while True:
|
|
|
5082 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5083 |
if ftype == TType.STOP:
|
|
|
5084 |
break
|
|
|
5085 |
if fid == 1:
|
|
|
5086 |
if ftype == TType.I64:
|
|
|
5087 |
self.paymentId = iprot.readI64();
|
|
|
5088 |
else:
|
|
|
5089 |
iprot.skip(ftype)
|
|
|
5090 |
elif fid == 2:
|
|
|
5091 |
if ftype == TType.I32:
|
|
|
5092 |
self.category = iprot.readI32();
|
|
|
5093 |
else:
|
|
|
5094 |
iprot.skip(ftype)
|
|
|
5095 |
else:
|
|
|
5096 |
iprot.skip(ftype)
|
|
|
5097 |
iprot.readFieldEnd()
|
|
|
5098 |
iprot.readStructEnd()
|
|
|
5099 |
|
|
|
5100 |
def write(self, oprot):
|
|
|
5101 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5102 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5103 |
return
|
|
|
5104 |
oprot.writeStructBegin('markPaymentAsProcessed_args')
|
|
|
5105 |
if self.paymentId is not None:
|
|
|
5106 |
oprot.writeFieldBegin('paymentId', TType.I64, 1)
|
|
|
5107 |
oprot.writeI64(self.paymentId)
|
|
|
5108 |
oprot.writeFieldEnd()
|
|
|
5109 |
if self.category is not None:
|
|
|
5110 |
oprot.writeFieldBegin('category', TType.I32, 2)
|
|
|
5111 |
oprot.writeI32(self.category)
|
|
|
5112 |
oprot.writeFieldEnd()
|
|
|
5113 |
oprot.writeFieldStop()
|
|
|
5114 |
oprot.writeStructEnd()
|
|
|
5115 |
|
|
|
5116 |
def validate(self):
|
|
|
5117 |
return
|
|
|
5118 |
|
|
|
5119 |
|
|
|
5120 |
def __repr__(self):
|
|
|
5121 |
L = ['%s=%r' % (key, value)
|
|
|
5122 |
for key, value in self.__dict__.iteritems()]
|
|
|
5123 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5124 |
|
|
|
5125 |
def __eq__(self, other):
|
|
|
5126 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5127 |
|
|
|
5128 |
def __ne__(self, other):
|
|
|
5129 |
return not (self == other)
|
|
|
5130 |
|
|
|
5131 |
class markPaymentAsProcessed_result:
|
|
|
5132 |
|
|
|
5133 |
thrift_spec = (
|
|
|
5134 |
)
|
|
|
5135 |
|
|
|
5136 |
def read(self, iprot):
|
|
|
5137 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5138 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5139 |
return
|
|
|
5140 |
iprot.readStructBegin()
|
|
|
5141 |
while True:
|
|
|
5142 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5143 |
if ftype == TType.STOP:
|
|
|
5144 |
break
|
|
|
5145 |
else:
|
|
|
5146 |
iprot.skip(ftype)
|
|
|
5147 |
iprot.readFieldEnd()
|
|
|
5148 |
iprot.readStructEnd()
|
|
|
5149 |
|
|
|
5150 |
def write(self, oprot):
|
|
|
5151 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5152 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5153 |
return
|
|
|
5154 |
oprot.writeStructBegin('markPaymentAsProcessed_result')
|
|
|
5155 |
oprot.writeFieldStop()
|
|
|
5156 |
oprot.writeStructEnd()
|
|
|
5157 |
|
|
|
5158 |
def validate(self):
|
|
|
5159 |
return
|
|
|
5160 |
|
|
|
5161 |
|
|
|
5162 |
def __repr__(self):
|
|
|
5163 |
L = ['%s=%r' % (key, value)
|
|
|
5164 |
for key, value in self.__dict__.iteritems()]
|
|
|
5165 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5166 |
|
|
|
5167 |
def __eq__(self, other):
|
|
|
5168 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5169 |
|
|
|
5170 |
def __ne__(self, other):
|
|
|
5171 |
return not (self == other)
|
| 8908 |
rajveer |
5172 |
|
| 8914 |
rajveer |
5173 |
class getPaymentStatusAtGateway_args:
|
| 8908 |
rajveer |
5174 |
"""
|
|
|
5175 |
Attributes:
|
|
|
5176 |
- merchantTxnId
|
|
|
5177 |
- amount
|
|
|
5178 |
- isDigital
|
|
|
5179 |
"""
|
|
|
5180 |
|
|
|
5181 |
thrift_spec = (
|
|
|
5182 |
None, # 0
|
|
|
5183 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
5184 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
5185 |
(3, TType.BOOL, 'isDigital', None, None, ), # 3
|
|
|
5186 |
)
|
|
|
5187 |
|
|
|
5188 |
def __init__(self, merchantTxnId=None, amount=None, isDigital=None,):
|
|
|
5189 |
self.merchantTxnId = merchantTxnId
|
|
|
5190 |
self.amount = amount
|
|
|
5191 |
self.isDigital = isDigital
|
|
|
5192 |
|
|
|
5193 |
def read(self, iprot):
|
|
|
5194 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5195 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5196 |
return
|
|
|
5197 |
iprot.readStructBegin()
|
|
|
5198 |
while True:
|
|
|
5199 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5200 |
if ftype == TType.STOP:
|
|
|
5201 |
break
|
|
|
5202 |
if fid == 1:
|
|
|
5203 |
if ftype == TType.I64:
|
|
|
5204 |
self.merchantTxnId = iprot.readI64();
|
|
|
5205 |
else:
|
|
|
5206 |
iprot.skip(ftype)
|
|
|
5207 |
elif fid == 2:
|
|
|
5208 |
if ftype == TType.DOUBLE:
|
|
|
5209 |
self.amount = iprot.readDouble();
|
|
|
5210 |
else:
|
|
|
5211 |
iprot.skip(ftype)
|
|
|
5212 |
elif fid == 3:
|
|
|
5213 |
if ftype == TType.BOOL:
|
|
|
5214 |
self.isDigital = iprot.readBool();
|
|
|
5215 |
else:
|
|
|
5216 |
iprot.skip(ftype)
|
|
|
5217 |
else:
|
|
|
5218 |
iprot.skip(ftype)
|
|
|
5219 |
iprot.readFieldEnd()
|
|
|
5220 |
iprot.readStructEnd()
|
|
|
5221 |
|
|
|
5222 |
def write(self, oprot):
|
|
|
5223 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5224 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5225 |
return
|
| 8914 |
rajveer |
5226 |
oprot.writeStructBegin('getPaymentStatusAtGateway_args')
|
| 8908 |
rajveer |
5227 |
if self.merchantTxnId is not None:
|
|
|
5228 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
5229 |
oprot.writeI64(self.merchantTxnId)
|
|
|
5230 |
oprot.writeFieldEnd()
|
|
|
5231 |
if self.amount is not None:
|
|
|
5232 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
5233 |
oprot.writeDouble(self.amount)
|
|
|
5234 |
oprot.writeFieldEnd()
|
|
|
5235 |
if self.isDigital is not None:
|
|
|
5236 |
oprot.writeFieldBegin('isDigital', TType.BOOL, 3)
|
|
|
5237 |
oprot.writeBool(self.isDigital)
|
|
|
5238 |
oprot.writeFieldEnd()
|
|
|
5239 |
oprot.writeFieldStop()
|
|
|
5240 |
oprot.writeStructEnd()
|
|
|
5241 |
|
|
|
5242 |
def validate(self):
|
|
|
5243 |
return
|
|
|
5244 |
|
|
|
5245 |
|
|
|
5246 |
def __repr__(self):
|
|
|
5247 |
L = ['%s=%r' % (key, value)
|
|
|
5248 |
for key, value in self.__dict__.iteritems()]
|
|
|
5249 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5250 |
|
|
|
5251 |
def __eq__(self, other):
|
|
|
5252 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5253 |
|
|
|
5254 |
def __ne__(self, other):
|
|
|
5255 |
return not (self == other)
|
|
|
5256 |
|
| 8914 |
rajveer |
5257 |
class getPaymentStatusAtGateway_result:
|
| 8908 |
rajveer |
5258 |
"""
|
|
|
5259 |
Attributes:
|
|
|
5260 |
- success
|
|
|
5261 |
- pe
|
|
|
5262 |
"""
|
|
|
5263 |
|
|
|
5264 |
thrift_spec = (
|
| 8914 |
rajveer |
5265 |
(0, TType.I32, 'success', None, None, ), # 0
|
| 8908 |
rajveer |
5266 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
5267 |
)
|
|
|
5268 |
|
|
|
5269 |
def __init__(self, success=None, pe=None,):
|
|
|
5270 |
self.success = success
|
|
|
5271 |
self.pe = pe
|
|
|
5272 |
|
|
|
5273 |
def read(self, iprot):
|
|
|
5274 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5275 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5276 |
return
|
|
|
5277 |
iprot.readStructBegin()
|
|
|
5278 |
while True:
|
|
|
5279 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5280 |
if ftype == TType.STOP:
|
|
|
5281 |
break
|
|
|
5282 |
if fid == 0:
|
| 8914 |
rajveer |
5283 |
if ftype == TType.I32:
|
|
|
5284 |
self.success = iprot.readI32();
|
| 8908 |
rajveer |
5285 |
else:
|
|
|
5286 |
iprot.skip(ftype)
|
|
|
5287 |
elif fid == 1:
|
|
|
5288 |
if ftype == TType.STRUCT:
|
|
|
5289 |
self.pe = PaymentException()
|
|
|
5290 |
self.pe.read(iprot)
|
|
|
5291 |
else:
|
|
|
5292 |
iprot.skip(ftype)
|
|
|
5293 |
else:
|
|
|
5294 |
iprot.skip(ftype)
|
|
|
5295 |
iprot.readFieldEnd()
|
|
|
5296 |
iprot.readStructEnd()
|
|
|
5297 |
|
|
|
5298 |
def write(self, oprot):
|
|
|
5299 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5300 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5301 |
return
|
| 8914 |
rajveer |
5302 |
oprot.writeStructBegin('getPaymentStatusAtGateway_result')
|
| 8908 |
rajveer |
5303 |
if self.success is not None:
|
| 8914 |
rajveer |
5304 |
oprot.writeFieldBegin('success', TType.I32, 0)
|
|
|
5305 |
oprot.writeI32(self.success)
|
| 8908 |
rajveer |
5306 |
oprot.writeFieldEnd()
|
|
|
5307 |
if self.pe is not None:
|
|
|
5308 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
5309 |
self.pe.write(oprot)
|
|
|
5310 |
oprot.writeFieldEnd()
|
|
|
5311 |
oprot.writeFieldStop()
|
|
|
5312 |
oprot.writeStructEnd()
|
|
|
5313 |
|
|
|
5314 |
def validate(self):
|
|
|
5315 |
return
|
|
|
5316 |
|
|
|
5317 |
|
|
|
5318 |
def __repr__(self):
|
|
|
5319 |
L = ['%s=%r' % (key, value)
|
|
|
5320 |
for key, value in self.__dict__.iteritems()]
|
|
|
5321 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5322 |
|
|
|
5323 |
def __eq__(self, other):
|
|
|
5324 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5325 |
|
|
|
5326 |
def __ne__(self, other):
|
|
|
5327 |
return not (self == other)
|
| 18577 |
manish.sha |
5328 |
|
|
|
5329 |
class getCreditorInfo_args:
|
|
|
5330 |
"""
|
|
|
5331 |
Attributes:
|
|
|
5332 |
- id
|
|
|
5333 |
- name
|
|
|
5334 |
"""
|
|
|
5335 |
|
|
|
5336 |
thrift_spec = (
|
|
|
5337 |
None, # 0
|
|
|
5338 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5339 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
5340 |
)
|
|
|
5341 |
|
|
|
5342 |
def __init__(self, id=None, name=None,):
|
|
|
5343 |
self.id = id
|
|
|
5344 |
self.name = name
|
|
|
5345 |
|
|
|
5346 |
def read(self, iprot):
|
|
|
5347 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5348 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5349 |
return
|
|
|
5350 |
iprot.readStructBegin()
|
|
|
5351 |
while True:
|
|
|
5352 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5353 |
if ftype == TType.STOP:
|
|
|
5354 |
break
|
|
|
5355 |
if fid == 1:
|
|
|
5356 |
if ftype == TType.I64:
|
|
|
5357 |
self.id = iprot.readI64();
|
|
|
5358 |
else:
|
|
|
5359 |
iprot.skip(ftype)
|
|
|
5360 |
elif fid == 2:
|
|
|
5361 |
if ftype == TType.STRING:
|
|
|
5362 |
self.name = iprot.readString();
|
|
|
5363 |
else:
|
|
|
5364 |
iprot.skip(ftype)
|
|
|
5365 |
else:
|
|
|
5366 |
iprot.skip(ftype)
|
|
|
5367 |
iprot.readFieldEnd()
|
|
|
5368 |
iprot.readStructEnd()
|
|
|
5369 |
|
|
|
5370 |
def write(self, oprot):
|
|
|
5371 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5372 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5373 |
return
|
|
|
5374 |
oprot.writeStructBegin('getCreditorInfo_args')
|
|
|
5375 |
if self.id is not None:
|
|
|
5376 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5377 |
oprot.writeI64(self.id)
|
|
|
5378 |
oprot.writeFieldEnd()
|
|
|
5379 |
if self.name is not None:
|
|
|
5380 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
5381 |
oprot.writeString(self.name)
|
|
|
5382 |
oprot.writeFieldEnd()
|
|
|
5383 |
oprot.writeFieldStop()
|
|
|
5384 |
oprot.writeStructEnd()
|
|
|
5385 |
|
|
|
5386 |
def validate(self):
|
|
|
5387 |
return
|
|
|
5388 |
|
|
|
5389 |
|
|
|
5390 |
def __repr__(self):
|
|
|
5391 |
L = ['%s=%r' % (key, value)
|
|
|
5392 |
for key, value in self.__dict__.iteritems()]
|
|
|
5393 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5394 |
|
|
|
5395 |
def __eq__(self, other):
|
|
|
5396 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5397 |
|
|
|
5398 |
def __ne__(self, other):
|
|
|
5399 |
return not (self == other)
|
|
|
5400 |
|
|
|
5401 |
class getCreditorInfo_result:
|
|
|
5402 |
"""
|
|
|
5403 |
Attributes:
|
|
|
5404 |
- success
|
|
|
5405 |
"""
|
|
|
5406 |
|
|
|
5407 |
thrift_spec = (
|
|
|
5408 |
(0, TType.STRUCT, 'success', (Creditor, Creditor.thrift_spec), None, ), # 0
|
|
|
5409 |
)
|
|
|
5410 |
|
|
|
5411 |
def __init__(self, success=None,):
|
|
|
5412 |
self.success = success
|
|
|
5413 |
|
|
|
5414 |
def read(self, iprot):
|
|
|
5415 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5416 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5417 |
return
|
|
|
5418 |
iprot.readStructBegin()
|
|
|
5419 |
while True:
|
|
|
5420 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5421 |
if ftype == TType.STOP:
|
|
|
5422 |
break
|
|
|
5423 |
if fid == 0:
|
|
|
5424 |
if ftype == TType.STRUCT:
|
|
|
5425 |
self.success = Creditor()
|
|
|
5426 |
self.success.read(iprot)
|
|
|
5427 |
else:
|
|
|
5428 |
iprot.skip(ftype)
|
|
|
5429 |
else:
|
|
|
5430 |
iprot.skip(ftype)
|
|
|
5431 |
iprot.readFieldEnd()
|
|
|
5432 |
iprot.readStructEnd()
|
|
|
5433 |
|
|
|
5434 |
def write(self, oprot):
|
|
|
5435 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5436 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5437 |
return
|
|
|
5438 |
oprot.writeStructBegin('getCreditorInfo_result')
|
|
|
5439 |
if self.success is not None:
|
|
|
5440 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
5441 |
self.success.write(oprot)
|
|
|
5442 |
oprot.writeFieldEnd()
|
|
|
5443 |
oprot.writeFieldStop()
|
|
|
5444 |
oprot.writeStructEnd()
|
|
|
5445 |
|
|
|
5446 |
def validate(self):
|
|
|
5447 |
return
|
|
|
5448 |
|
|
|
5449 |
|
|
|
5450 |
def __repr__(self):
|
|
|
5451 |
L = ['%s=%r' % (key, value)
|
|
|
5452 |
for key, value in self.__dict__.iteritems()]
|
|
|
5453 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5454 |
|
|
|
5455 |
def __eq__(self, other):
|
|
|
5456 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5457 |
|
|
|
5458 |
def __ne__(self, other):
|
|
|
5459 |
return not (self == other)
|
|
|
5460 |
|
|
|
5461 |
class updateCreditorInfo_args:
|
|
|
5462 |
"""
|
|
|
5463 |
Attributes:
|
|
|
5464 |
- creditor
|
|
|
5465 |
"""
|
|
|
5466 |
|
|
|
5467 |
thrift_spec = (
|
|
|
5468 |
None, # 0
|
|
|
5469 |
(1, TType.STRUCT, 'creditor', (Creditor, Creditor.thrift_spec), None, ), # 1
|
|
|
5470 |
)
|
|
|
5471 |
|
|
|
5472 |
def __init__(self, creditor=None,):
|
|
|
5473 |
self.creditor = creditor
|
|
|
5474 |
|
|
|
5475 |
def read(self, iprot):
|
|
|
5476 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5477 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5478 |
return
|
|
|
5479 |
iprot.readStructBegin()
|
|
|
5480 |
while True:
|
|
|
5481 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5482 |
if ftype == TType.STOP:
|
|
|
5483 |
break
|
|
|
5484 |
if fid == 1:
|
|
|
5485 |
if ftype == TType.STRUCT:
|
|
|
5486 |
self.creditor = Creditor()
|
|
|
5487 |
self.creditor.read(iprot)
|
|
|
5488 |
else:
|
|
|
5489 |
iprot.skip(ftype)
|
|
|
5490 |
else:
|
|
|
5491 |
iprot.skip(ftype)
|
|
|
5492 |
iprot.readFieldEnd()
|
|
|
5493 |
iprot.readStructEnd()
|
|
|
5494 |
|
|
|
5495 |
def write(self, oprot):
|
|
|
5496 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5497 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5498 |
return
|
|
|
5499 |
oprot.writeStructBegin('updateCreditorInfo_args')
|
|
|
5500 |
if self.creditor is not None:
|
|
|
5501 |
oprot.writeFieldBegin('creditor', TType.STRUCT, 1)
|
|
|
5502 |
self.creditor.write(oprot)
|
|
|
5503 |
oprot.writeFieldEnd()
|
|
|
5504 |
oprot.writeFieldStop()
|
|
|
5505 |
oprot.writeStructEnd()
|
|
|
5506 |
|
|
|
5507 |
def validate(self):
|
|
|
5508 |
return
|
|
|
5509 |
|
|
|
5510 |
|
|
|
5511 |
def __repr__(self):
|
|
|
5512 |
L = ['%s=%r' % (key, value)
|
|
|
5513 |
for key, value in self.__dict__.iteritems()]
|
|
|
5514 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5515 |
|
|
|
5516 |
def __eq__(self, other):
|
|
|
5517 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5518 |
|
|
|
5519 |
def __ne__(self, other):
|
|
|
5520 |
return not (self == other)
|
|
|
5521 |
|
|
|
5522 |
class updateCreditorInfo_result:
|
|
|
5523 |
"""
|
|
|
5524 |
Attributes:
|
|
|
5525 |
- success
|
|
|
5526 |
"""
|
|
|
5527 |
|
|
|
5528 |
thrift_spec = (
|
|
|
5529 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
5530 |
)
|
|
|
5531 |
|
|
|
5532 |
def __init__(self, success=None,):
|
|
|
5533 |
self.success = success
|
|
|
5534 |
|
|
|
5535 |
def read(self, iprot):
|
|
|
5536 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5537 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5538 |
return
|
|
|
5539 |
iprot.readStructBegin()
|
|
|
5540 |
while True:
|
|
|
5541 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5542 |
if ftype == TType.STOP:
|
|
|
5543 |
break
|
|
|
5544 |
if fid == 0:
|
|
|
5545 |
if ftype == TType.BOOL:
|
|
|
5546 |
self.success = iprot.readBool();
|
|
|
5547 |
else:
|
|
|
5548 |
iprot.skip(ftype)
|
|
|
5549 |
else:
|
|
|
5550 |
iprot.skip(ftype)
|
|
|
5551 |
iprot.readFieldEnd()
|
|
|
5552 |
iprot.readStructEnd()
|
|
|
5553 |
|
|
|
5554 |
def write(self, oprot):
|
|
|
5555 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5556 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5557 |
return
|
|
|
5558 |
oprot.writeStructBegin('updateCreditorInfo_result')
|
|
|
5559 |
if self.success is not None:
|
|
|
5560 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
5561 |
oprot.writeBool(self.success)
|
|
|
5562 |
oprot.writeFieldEnd()
|
|
|
5563 |
oprot.writeFieldStop()
|
|
|
5564 |
oprot.writeStructEnd()
|
|
|
5565 |
|
|
|
5566 |
def validate(self):
|
|
|
5567 |
return
|
|
|
5568 |
|
|
|
5569 |
|
|
|
5570 |
def __repr__(self):
|
|
|
5571 |
L = ['%s=%r' % (key, value)
|
|
|
5572 |
for key, value in self.__dict__.iteritems()]
|
|
|
5573 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5574 |
|
|
|
5575 |
def __eq__(self, other):
|
|
|
5576 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5577 |
|
|
|
5578 |
def __ne__(self, other):
|
|
|
5579 |
return not (self == other)
|
|
|
5580 |
|
|
|
5581 |
class getUserSanctionDetails_args:
|
|
|
5582 |
"""
|
|
|
5583 |
Attributes:
|
|
|
5584 |
- userId
|
|
|
5585 |
"""
|
|
|
5586 |
|
|
|
5587 |
thrift_spec = (
|
|
|
5588 |
None, # 0
|
|
|
5589 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
5590 |
)
|
|
|
5591 |
|
|
|
5592 |
def __init__(self, userId=None,):
|
|
|
5593 |
self.userId = userId
|
|
|
5594 |
|
|
|
5595 |
def read(self, iprot):
|
|
|
5596 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5597 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5598 |
return
|
|
|
5599 |
iprot.readStructBegin()
|
|
|
5600 |
while True:
|
|
|
5601 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5602 |
if ftype == TType.STOP:
|
|
|
5603 |
break
|
|
|
5604 |
if fid == 1:
|
|
|
5605 |
if ftype == TType.I64:
|
|
|
5606 |
self.userId = iprot.readI64();
|
|
|
5607 |
else:
|
|
|
5608 |
iprot.skip(ftype)
|
|
|
5609 |
else:
|
|
|
5610 |
iprot.skip(ftype)
|
|
|
5611 |
iprot.readFieldEnd()
|
|
|
5612 |
iprot.readStructEnd()
|
|
|
5613 |
|
|
|
5614 |
def write(self, oprot):
|
|
|
5615 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5616 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5617 |
return
|
|
|
5618 |
oprot.writeStructBegin('getUserSanctionDetails_args')
|
|
|
5619 |
if self.userId is not None:
|
|
|
5620 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
5621 |
oprot.writeI64(self.userId)
|
|
|
5622 |
oprot.writeFieldEnd()
|
|
|
5623 |
oprot.writeFieldStop()
|
|
|
5624 |
oprot.writeStructEnd()
|
|
|
5625 |
|
|
|
5626 |
def validate(self):
|
|
|
5627 |
return
|
|
|
5628 |
|
|
|
5629 |
|
|
|
5630 |
def __repr__(self):
|
|
|
5631 |
L = ['%s=%r' % (key, value)
|
|
|
5632 |
for key, value in self.__dict__.iteritems()]
|
|
|
5633 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5634 |
|
|
|
5635 |
def __eq__(self, other):
|
|
|
5636 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5637 |
|
|
|
5638 |
def __ne__(self, other):
|
|
|
5639 |
return not (self == other)
|
|
|
5640 |
|
|
|
5641 |
class getUserSanctionDetails_result:
|
|
|
5642 |
"""
|
|
|
5643 |
Attributes:
|
|
|
5644 |
- success
|
|
|
5645 |
"""
|
|
|
5646 |
|
|
|
5647 |
thrift_spec = (
|
|
|
5648 |
(0, TType.LIST, 'success', (TType.STRUCT,(UserSanction, UserSanction.thrift_spec)), None, ), # 0
|
|
|
5649 |
)
|
|
|
5650 |
|
|
|
5651 |
def __init__(self, success=None,):
|
|
|
5652 |
self.success = success
|
|
|
5653 |
|
|
|
5654 |
def read(self, iprot):
|
|
|
5655 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5656 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5657 |
return
|
|
|
5658 |
iprot.readStructBegin()
|
|
|
5659 |
while True:
|
|
|
5660 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5661 |
if ftype == TType.STOP:
|
|
|
5662 |
break
|
|
|
5663 |
if fid == 0:
|
|
|
5664 |
if ftype == TType.LIST:
|
|
|
5665 |
self.success = []
|
|
|
5666 |
(_etype87, _size84) = iprot.readListBegin()
|
|
|
5667 |
for _i88 in xrange(_size84):
|
|
|
5668 |
_elem89 = UserSanction()
|
|
|
5669 |
_elem89.read(iprot)
|
|
|
5670 |
self.success.append(_elem89)
|
|
|
5671 |
iprot.readListEnd()
|
|
|
5672 |
else:
|
|
|
5673 |
iprot.skip(ftype)
|
|
|
5674 |
else:
|
|
|
5675 |
iprot.skip(ftype)
|
|
|
5676 |
iprot.readFieldEnd()
|
|
|
5677 |
iprot.readStructEnd()
|
|
|
5678 |
|
|
|
5679 |
def write(self, oprot):
|
|
|
5680 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5681 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5682 |
return
|
|
|
5683 |
oprot.writeStructBegin('getUserSanctionDetails_result')
|
|
|
5684 |
if self.success is not None:
|
|
|
5685 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5686 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
5687 |
for iter90 in self.success:
|
|
|
5688 |
iter90.write(oprot)
|
|
|
5689 |
oprot.writeListEnd()
|
|
|
5690 |
oprot.writeFieldEnd()
|
|
|
5691 |
oprot.writeFieldStop()
|
|
|
5692 |
oprot.writeStructEnd()
|
|
|
5693 |
|
|
|
5694 |
def validate(self):
|
|
|
5695 |
return
|
|
|
5696 |
|
|
|
5697 |
|
|
|
5698 |
def __repr__(self):
|
|
|
5699 |
L = ['%s=%r' % (key, value)
|
|
|
5700 |
for key, value in self.__dict__.iteritems()]
|
|
|
5701 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5702 |
|
|
|
5703 |
def __eq__(self, other):
|
|
|
5704 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5705 |
|
|
|
5706 |
def __ne__(self, other):
|
|
|
5707 |
return not (self == other)
|
|
|
5708 |
|
|
|
5709 |
class getUserSanctionDetailsForCreditor_args:
|
|
|
5710 |
"""
|
|
|
5711 |
Attributes:
|
|
|
5712 |
- userId
|
|
|
5713 |
- creditorId
|
|
|
5714 |
"""
|
|
|
5715 |
|
|
|
5716 |
thrift_spec = None
|
|
|
5717 |
def __init__(self, userId=None, creditorId=None,):
|
|
|
5718 |
self.userId = userId
|
|
|
5719 |
self.creditorId = creditorId
|
|
|
5720 |
|
|
|
5721 |
def read(self, iprot):
|
|
|
5722 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5723 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5724 |
return
|
|
|
5725 |
iprot.readStructBegin()
|
|
|
5726 |
while True:
|
|
|
5727 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5728 |
if ftype == TType.STOP:
|
|
|
5729 |
break
|
|
|
5730 |
if fid == 1:
|
|
|
5731 |
if ftype == TType.I64:
|
|
|
5732 |
self.userId = iprot.readI64();
|
|
|
5733 |
else:
|
|
|
5734 |
iprot.skip(ftype)
|
|
|
5735 |
elif fid == -1:
|
|
|
5736 |
if ftype == TType.I64:
|
|
|
5737 |
self.creditorId = iprot.readI64();
|
|
|
5738 |
else:
|
|
|
5739 |
iprot.skip(ftype)
|
|
|
5740 |
else:
|
|
|
5741 |
iprot.skip(ftype)
|
|
|
5742 |
iprot.readFieldEnd()
|
|
|
5743 |
iprot.readStructEnd()
|
|
|
5744 |
|
|
|
5745 |
def write(self, oprot):
|
|
|
5746 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5747 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5748 |
return
|
|
|
5749 |
oprot.writeStructBegin('getUserSanctionDetailsForCreditor_args')
|
|
|
5750 |
if self.creditorId is not None:
|
|
|
5751 |
oprot.writeFieldBegin('creditorId', TType.I64, -1)
|
|
|
5752 |
oprot.writeI64(self.creditorId)
|
|
|
5753 |
oprot.writeFieldEnd()
|
|
|
5754 |
if self.userId is not None:
|
|
|
5755 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
5756 |
oprot.writeI64(self.userId)
|
|
|
5757 |
oprot.writeFieldEnd()
|
|
|
5758 |
oprot.writeFieldStop()
|
|
|
5759 |
oprot.writeStructEnd()
|
|
|
5760 |
|
|
|
5761 |
def validate(self):
|
|
|
5762 |
return
|
|
|
5763 |
|
|
|
5764 |
|
|
|
5765 |
def __repr__(self):
|
|
|
5766 |
L = ['%s=%r' % (key, value)
|
|
|
5767 |
for key, value in self.__dict__.iteritems()]
|
|
|
5768 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5769 |
|
|
|
5770 |
def __eq__(self, other):
|
|
|
5771 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5772 |
|
|
|
5773 |
def __ne__(self, other):
|
|
|
5774 |
return not (self == other)
|
|
|
5775 |
|
|
|
5776 |
class getUserSanctionDetailsForCreditor_result:
|
|
|
5777 |
"""
|
|
|
5778 |
Attributes:
|
|
|
5779 |
- success
|
|
|
5780 |
"""
|
|
|
5781 |
|
|
|
5782 |
thrift_spec = (
|
|
|
5783 |
(0, TType.STRUCT, 'success', (UserSanction, UserSanction.thrift_spec), None, ), # 0
|
|
|
5784 |
)
|
|
|
5785 |
|
|
|
5786 |
def __init__(self, success=None,):
|
|
|
5787 |
self.success = success
|
|
|
5788 |
|
|
|
5789 |
def read(self, iprot):
|
|
|
5790 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5791 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5792 |
return
|
|
|
5793 |
iprot.readStructBegin()
|
|
|
5794 |
while True:
|
|
|
5795 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5796 |
if ftype == TType.STOP:
|
|
|
5797 |
break
|
|
|
5798 |
if fid == 0:
|
|
|
5799 |
if ftype == TType.STRUCT:
|
|
|
5800 |
self.success = UserSanction()
|
|
|
5801 |
self.success.read(iprot)
|
|
|
5802 |
else:
|
|
|
5803 |
iprot.skip(ftype)
|
|
|
5804 |
else:
|
|
|
5805 |
iprot.skip(ftype)
|
|
|
5806 |
iprot.readFieldEnd()
|
|
|
5807 |
iprot.readStructEnd()
|
|
|
5808 |
|
|
|
5809 |
def write(self, oprot):
|
|
|
5810 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5811 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5812 |
return
|
|
|
5813 |
oprot.writeStructBegin('getUserSanctionDetailsForCreditor_result')
|
|
|
5814 |
if self.success is not None:
|
|
|
5815 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
5816 |
self.success.write(oprot)
|
|
|
5817 |
oprot.writeFieldEnd()
|
|
|
5818 |
oprot.writeFieldStop()
|
|
|
5819 |
oprot.writeStructEnd()
|
|
|
5820 |
|
|
|
5821 |
def validate(self):
|
|
|
5822 |
return
|
|
|
5823 |
|
|
|
5824 |
|
|
|
5825 |
def __repr__(self):
|
|
|
5826 |
L = ['%s=%r' % (key, value)
|
|
|
5827 |
for key, value in self.__dict__.iteritems()]
|
|
|
5828 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5829 |
|
|
|
5830 |
def __eq__(self, other):
|
|
|
5831 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5832 |
|
|
|
5833 |
def __ne__(self, other):
|
|
|
5834 |
return not (self == other)
|
|
|
5835 |
|
|
|
5836 |
class updateUserSanction_args:
|
|
|
5837 |
"""
|
|
|
5838 |
Attributes:
|
|
|
5839 |
- userSanaction
|
|
|
5840 |
"""
|
|
|
5841 |
|
|
|
5842 |
thrift_spec = (
|
|
|
5843 |
None, # 0
|
|
|
5844 |
(1, TType.STRUCT, 'userSanaction', (UserSanction, UserSanction.thrift_spec), None, ), # 1
|
|
|
5845 |
)
|
|
|
5846 |
|
|
|
5847 |
def __init__(self, userSanaction=None,):
|
|
|
5848 |
self.userSanaction = userSanaction
|
|
|
5849 |
|
|
|
5850 |
def read(self, iprot):
|
|
|
5851 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5852 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5853 |
return
|
|
|
5854 |
iprot.readStructBegin()
|
|
|
5855 |
while True:
|
|
|
5856 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5857 |
if ftype == TType.STOP:
|
|
|
5858 |
break
|
|
|
5859 |
if fid == 1:
|
|
|
5860 |
if ftype == TType.STRUCT:
|
|
|
5861 |
self.userSanaction = UserSanction()
|
|
|
5862 |
self.userSanaction.read(iprot)
|
|
|
5863 |
else:
|
|
|
5864 |
iprot.skip(ftype)
|
|
|
5865 |
else:
|
|
|
5866 |
iprot.skip(ftype)
|
|
|
5867 |
iprot.readFieldEnd()
|
|
|
5868 |
iprot.readStructEnd()
|
|
|
5869 |
|
|
|
5870 |
def write(self, oprot):
|
|
|
5871 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5872 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5873 |
return
|
|
|
5874 |
oprot.writeStructBegin('updateUserSanction_args')
|
|
|
5875 |
if self.userSanaction is not None:
|
|
|
5876 |
oprot.writeFieldBegin('userSanaction', TType.STRUCT, 1)
|
|
|
5877 |
self.userSanaction.write(oprot)
|
|
|
5878 |
oprot.writeFieldEnd()
|
|
|
5879 |
oprot.writeFieldStop()
|
|
|
5880 |
oprot.writeStructEnd()
|
|
|
5881 |
|
|
|
5882 |
def validate(self):
|
|
|
5883 |
return
|
|
|
5884 |
|
|
|
5885 |
|
|
|
5886 |
def __repr__(self):
|
|
|
5887 |
L = ['%s=%r' % (key, value)
|
|
|
5888 |
for key, value in self.__dict__.iteritems()]
|
|
|
5889 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5890 |
|
|
|
5891 |
def __eq__(self, other):
|
|
|
5892 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5893 |
|
|
|
5894 |
def __ne__(self, other):
|
|
|
5895 |
return not (self == other)
|
|
|
5896 |
|
|
|
5897 |
class updateUserSanction_result:
|
|
|
5898 |
"""
|
|
|
5899 |
Attributes:
|
|
|
5900 |
- success
|
|
|
5901 |
- pe
|
|
|
5902 |
"""
|
|
|
5903 |
|
|
|
5904 |
thrift_spec = (
|
|
|
5905 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
5906 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
5907 |
)
|
|
|
5908 |
|
|
|
5909 |
def __init__(self, success=None, pe=None,):
|
|
|
5910 |
self.success = success
|
|
|
5911 |
self.pe = pe
|
|
|
5912 |
|
|
|
5913 |
def read(self, iprot):
|
|
|
5914 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5915 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5916 |
return
|
|
|
5917 |
iprot.readStructBegin()
|
|
|
5918 |
while True:
|
|
|
5919 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5920 |
if ftype == TType.STOP:
|
|
|
5921 |
break
|
|
|
5922 |
if fid == 0:
|
|
|
5923 |
if ftype == TType.BOOL:
|
|
|
5924 |
self.success = iprot.readBool();
|
|
|
5925 |
else:
|
|
|
5926 |
iprot.skip(ftype)
|
|
|
5927 |
elif fid == 1:
|
|
|
5928 |
if ftype == TType.STRUCT:
|
|
|
5929 |
self.pe = PaymentException()
|
|
|
5930 |
self.pe.read(iprot)
|
|
|
5931 |
else:
|
|
|
5932 |
iprot.skip(ftype)
|
|
|
5933 |
else:
|
|
|
5934 |
iprot.skip(ftype)
|
|
|
5935 |
iprot.readFieldEnd()
|
|
|
5936 |
iprot.readStructEnd()
|
|
|
5937 |
|
|
|
5938 |
def write(self, oprot):
|
|
|
5939 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5940 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5941 |
return
|
|
|
5942 |
oprot.writeStructBegin('updateUserSanction_result')
|
|
|
5943 |
if self.success is not None:
|
|
|
5944 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
5945 |
oprot.writeBool(self.success)
|
|
|
5946 |
oprot.writeFieldEnd()
|
|
|
5947 |
if self.pe is not None:
|
|
|
5948 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
5949 |
self.pe.write(oprot)
|
|
|
5950 |
oprot.writeFieldEnd()
|
|
|
5951 |
oprot.writeFieldStop()
|
|
|
5952 |
oprot.writeStructEnd()
|
|
|
5953 |
|
|
|
5954 |
def validate(self):
|
|
|
5955 |
return
|
|
|
5956 |
|
|
|
5957 |
|
|
|
5958 |
def __repr__(self):
|
|
|
5959 |
L = ['%s=%r' % (key, value)
|
|
|
5960 |
for key, value in self.__dict__.iteritems()]
|
|
|
5961 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5962 |
|
|
|
5963 |
def __eq__(self, other):
|
|
|
5964 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5965 |
|
|
|
5966 |
def __ne__(self, other):
|
|
|
5967 |
return not (self == other)
|
|
|
5968 |
|
|
|
5969 |
class getCreditHistoryRecordsForTransaction_args:
|
|
|
5970 |
"""
|
|
|
5971 |
Attributes:
|
|
|
5972 |
- paymentId
|
|
|
5973 |
- creditorId
|
|
|
5974 |
- creditTxnType
|
|
|
5975 |
"""
|
|
|
5976 |
|
|
|
5977 |
thrift_spec = (
|
|
|
5978 |
None, # 0
|
|
|
5979 |
(1, TType.I64, 'paymentId', None, None, ), # 1
|
|
|
5980 |
(2, TType.I64, 'creditorId', None, None, ), # 2
|
|
|
5981 |
(3, TType.STRING, 'creditTxnType', None, None, ), # 3
|
|
|
5982 |
)
|
|
|
5983 |
|
|
|
5984 |
def __init__(self, paymentId=None, creditorId=None, creditTxnType=None,):
|
|
|
5985 |
self.paymentId = paymentId
|
|
|
5986 |
self.creditorId = creditorId
|
|
|
5987 |
self.creditTxnType = creditTxnType
|
|
|
5988 |
|
|
|
5989 |
def read(self, iprot):
|
|
|
5990 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5991 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5992 |
return
|
|
|
5993 |
iprot.readStructBegin()
|
|
|
5994 |
while True:
|
|
|
5995 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5996 |
if ftype == TType.STOP:
|
|
|
5997 |
break
|
|
|
5998 |
if fid == 1:
|
|
|
5999 |
if ftype == TType.I64:
|
|
|
6000 |
self.paymentId = iprot.readI64();
|
|
|
6001 |
else:
|
|
|
6002 |
iprot.skip(ftype)
|
|
|
6003 |
elif fid == 2:
|
|
|
6004 |
if ftype == TType.I64:
|
|
|
6005 |
self.creditorId = iprot.readI64();
|
|
|
6006 |
else:
|
|
|
6007 |
iprot.skip(ftype)
|
|
|
6008 |
elif fid == 3:
|
|
|
6009 |
if ftype == TType.STRING:
|
|
|
6010 |
self.creditTxnType = iprot.readString();
|
|
|
6011 |
else:
|
|
|
6012 |
iprot.skip(ftype)
|
|
|
6013 |
else:
|
|
|
6014 |
iprot.skip(ftype)
|
|
|
6015 |
iprot.readFieldEnd()
|
|
|
6016 |
iprot.readStructEnd()
|
|
|
6017 |
|
|
|
6018 |
def write(self, oprot):
|
|
|
6019 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6020 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6021 |
return
|
|
|
6022 |
oprot.writeStructBegin('getCreditHistoryRecordsForTransaction_args')
|
|
|
6023 |
if self.paymentId is not None:
|
|
|
6024 |
oprot.writeFieldBegin('paymentId', TType.I64, 1)
|
|
|
6025 |
oprot.writeI64(self.paymentId)
|
|
|
6026 |
oprot.writeFieldEnd()
|
|
|
6027 |
if self.creditorId is not None:
|
|
|
6028 |
oprot.writeFieldBegin('creditorId', TType.I64, 2)
|
|
|
6029 |
oprot.writeI64(self.creditorId)
|
|
|
6030 |
oprot.writeFieldEnd()
|
|
|
6031 |
if self.creditTxnType is not None:
|
|
|
6032 |
oprot.writeFieldBegin('creditTxnType', TType.STRING, 3)
|
|
|
6033 |
oprot.writeString(self.creditTxnType)
|
|
|
6034 |
oprot.writeFieldEnd()
|
|
|
6035 |
oprot.writeFieldStop()
|
|
|
6036 |
oprot.writeStructEnd()
|
|
|
6037 |
|
|
|
6038 |
def validate(self):
|
|
|
6039 |
return
|
|
|
6040 |
|
|
|
6041 |
|
|
|
6042 |
def __repr__(self):
|
|
|
6043 |
L = ['%s=%r' % (key, value)
|
|
|
6044 |
for key, value in self.__dict__.iteritems()]
|
|
|
6045 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6046 |
|
|
|
6047 |
def __eq__(self, other):
|
|
|
6048 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6049 |
|
|
|
6050 |
def __ne__(self, other):
|
|
|
6051 |
return not (self == other)
|
|
|
6052 |
|
|
|
6053 |
class getCreditHistoryRecordsForTransaction_result:
|
|
|
6054 |
"""
|
|
|
6055 |
Attributes:
|
|
|
6056 |
- success
|
|
|
6057 |
"""
|
|
|
6058 |
|
|
|
6059 |
thrift_spec = (
|
|
|
6060 |
(0, TType.LIST, 'success', (TType.STRUCT,(CreditHistory, CreditHistory.thrift_spec)), None, ), # 0
|
|
|
6061 |
)
|
|
|
6062 |
|
|
|
6063 |
def __init__(self, success=None,):
|
|
|
6064 |
self.success = success
|
|
|
6065 |
|
|
|
6066 |
def read(self, iprot):
|
|
|
6067 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6068 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6069 |
return
|
|
|
6070 |
iprot.readStructBegin()
|
|
|
6071 |
while True:
|
|
|
6072 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6073 |
if ftype == TType.STOP:
|
|
|
6074 |
break
|
|
|
6075 |
if fid == 0:
|
|
|
6076 |
if ftype == TType.LIST:
|
|
|
6077 |
self.success = []
|
|
|
6078 |
(_etype94, _size91) = iprot.readListBegin()
|
|
|
6079 |
for _i95 in xrange(_size91):
|
|
|
6080 |
_elem96 = CreditHistory()
|
|
|
6081 |
_elem96.read(iprot)
|
|
|
6082 |
self.success.append(_elem96)
|
|
|
6083 |
iprot.readListEnd()
|
|
|
6084 |
else:
|
|
|
6085 |
iprot.skip(ftype)
|
|
|
6086 |
else:
|
|
|
6087 |
iprot.skip(ftype)
|
|
|
6088 |
iprot.readFieldEnd()
|
|
|
6089 |
iprot.readStructEnd()
|
|
|
6090 |
|
|
|
6091 |
def write(self, oprot):
|
|
|
6092 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6093 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6094 |
return
|
|
|
6095 |
oprot.writeStructBegin('getCreditHistoryRecordsForTransaction_result')
|
|
|
6096 |
if self.success is not None:
|
|
|
6097 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6098 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
6099 |
for iter97 in self.success:
|
|
|
6100 |
iter97.write(oprot)
|
|
|
6101 |
oprot.writeListEnd()
|
|
|
6102 |
oprot.writeFieldEnd()
|
|
|
6103 |
oprot.writeFieldStop()
|
|
|
6104 |
oprot.writeStructEnd()
|
|
|
6105 |
|
|
|
6106 |
def validate(self):
|
|
|
6107 |
return
|
|
|
6108 |
|
|
|
6109 |
|
|
|
6110 |
def __repr__(self):
|
|
|
6111 |
L = ['%s=%r' % (key, value)
|
|
|
6112 |
for key, value in self.__dict__.iteritems()]
|
|
|
6113 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6114 |
|
|
|
6115 |
def __eq__(self, other):
|
|
|
6116 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6117 |
|
|
|
6118 |
def __ne__(self, other):
|
|
|
6119 |
return not (self == other)
|
|
|
6120 |
|
|
|
6121 |
class getCreditHistoryRecordsForUserAndCreditor_args:
|
|
|
6122 |
"""
|
|
|
6123 |
Attributes:
|
|
|
6124 |
- userId
|
|
|
6125 |
- creditTxnType
|
|
|
6126 |
"""
|
|
|
6127 |
|
|
|
6128 |
thrift_spec = (
|
|
|
6129 |
None, # 0
|
|
|
6130 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
6131 |
(2, TType.STRING, 'creditTxnType', None, None, ), # 2
|
|
|
6132 |
)
|
|
|
6133 |
|
|
|
6134 |
def __init__(self, userId=None, creditTxnType=None,):
|
|
|
6135 |
self.userId = userId
|
|
|
6136 |
self.creditTxnType = creditTxnType
|
|
|
6137 |
|
|
|
6138 |
def read(self, iprot):
|
|
|
6139 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6140 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6141 |
return
|
|
|
6142 |
iprot.readStructBegin()
|
|
|
6143 |
while True:
|
|
|
6144 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6145 |
if ftype == TType.STOP:
|
|
|
6146 |
break
|
|
|
6147 |
if fid == 1:
|
|
|
6148 |
if ftype == TType.I64:
|
|
|
6149 |
self.userId = iprot.readI64();
|
|
|
6150 |
else:
|
|
|
6151 |
iprot.skip(ftype)
|
|
|
6152 |
elif fid == 2:
|
|
|
6153 |
if ftype == TType.STRING:
|
|
|
6154 |
self.creditTxnType = iprot.readString();
|
|
|
6155 |
else:
|
|
|
6156 |
iprot.skip(ftype)
|
|
|
6157 |
else:
|
|
|
6158 |
iprot.skip(ftype)
|
|
|
6159 |
iprot.readFieldEnd()
|
|
|
6160 |
iprot.readStructEnd()
|
|
|
6161 |
|
|
|
6162 |
def write(self, oprot):
|
|
|
6163 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6164 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6165 |
return
|
|
|
6166 |
oprot.writeStructBegin('getCreditHistoryRecordsForUserAndCreditor_args')
|
|
|
6167 |
if self.userId is not None:
|
|
|
6168 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
6169 |
oprot.writeI64(self.userId)
|
|
|
6170 |
oprot.writeFieldEnd()
|
|
|
6171 |
if self.creditTxnType is not None:
|
|
|
6172 |
oprot.writeFieldBegin('creditTxnType', TType.STRING, 2)
|
|
|
6173 |
oprot.writeString(self.creditTxnType)
|
|
|
6174 |
oprot.writeFieldEnd()
|
|
|
6175 |
oprot.writeFieldStop()
|
|
|
6176 |
oprot.writeStructEnd()
|
|
|
6177 |
|
|
|
6178 |
def validate(self):
|
|
|
6179 |
return
|
|
|
6180 |
|
|
|
6181 |
|
|
|
6182 |
def __repr__(self):
|
|
|
6183 |
L = ['%s=%r' % (key, value)
|
|
|
6184 |
for key, value in self.__dict__.iteritems()]
|
|
|
6185 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6186 |
|
|
|
6187 |
def __eq__(self, other):
|
|
|
6188 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6189 |
|
|
|
6190 |
def __ne__(self, other):
|
|
|
6191 |
return not (self == other)
|
|
|
6192 |
|
|
|
6193 |
class getCreditHistoryRecordsForUserAndCreditor_result:
|
|
|
6194 |
"""
|
|
|
6195 |
Attributes:
|
|
|
6196 |
- success
|
|
|
6197 |
"""
|
|
|
6198 |
|
|
|
6199 |
thrift_spec = (
|
|
|
6200 |
(0, TType.LIST, 'success', (TType.STRUCT,(CreditHistory, CreditHistory.thrift_spec)), None, ), # 0
|
|
|
6201 |
)
|
|
|
6202 |
|
|
|
6203 |
def __init__(self, success=None,):
|
|
|
6204 |
self.success = success
|
|
|
6205 |
|
|
|
6206 |
def read(self, iprot):
|
|
|
6207 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6208 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6209 |
return
|
|
|
6210 |
iprot.readStructBegin()
|
|
|
6211 |
while True:
|
|
|
6212 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6213 |
if ftype == TType.STOP:
|
|
|
6214 |
break
|
|
|
6215 |
if fid == 0:
|
|
|
6216 |
if ftype == TType.LIST:
|
|
|
6217 |
self.success = []
|
|
|
6218 |
(_etype101, _size98) = iprot.readListBegin()
|
|
|
6219 |
for _i102 in xrange(_size98):
|
|
|
6220 |
_elem103 = CreditHistory()
|
|
|
6221 |
_elem103.read(iprot)
|
|
|
6222 |
self.success.append(_elem103)
|
|
|
6223 |
iprot.readListEnd()
|
|
|
6224 |
else:
|
|
|
6225 |
iprot.skip(ftype)
|
|
|
6226 |
else:
|
|
|
6227 |
iprot.skip(ftype)
|
|
|
6228 |
iprot.readFieldEnd()
|
|
|
6229 |
iprot.readStructEnd()
|
|
|
6230 |
|
|
|
6231 |
def write(self, oprot):
|
|
|
6232 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6233 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6234 |
return
|
|
|
6235 |
oprot.writeStructBegin('getCreditHistoryRecordsForUserAndCreditor_result')
|
|
|
6236 |
if self.success is not None:
|
|
|
6237 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6238 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
6239 |
for iter104 in self.success:
|
|
|
6240 |
iter104.write(oprot)
|
|
|
6241 |
oprot.writeListEnd()
|
|
|
6242 |
oprot.writeFieldEnd()
|
|
|
6243 |
oprot.writeFieldStop()
|
|
|
6244 |
oprot.writeStructEnd()
|
|
|
6245 |
|
|
|
6246 |
def validate(self):
|
|
|
6247 |
return
|
|
|
6248 |
|
|
|
6249 |
|
|
|
6250 |
def __repr__(self):
|
|
|
6251 |
L = ['%s=%r' % (key, value)
|
|
|
6252 |
for key, value in self.__dict__.iteritems()]
|
|
|
6253 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6254 |
|
|
|
6255 |
def __eq__(self, other):
|
|
|
6256 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6257 |
|
|
|
6258 |
def __ne__(self, other):
|
|
|
6259 |
return not (self == other)
|
|
|
6260 |
|
|
|
6261 |
class processCreditTransaction_args:
|
|
|
6262 |
"""
|
|
|
6263 |
Attributes:
|
|
|
6264 |
- paymentId
|
|
|
6265 |
- creditTxns
|
|
|
6266 |
"""
|
|
|
6267 |
|
|
|
6268 |
thrift_spec = (
|
|
|
6269 |
None, # 0
|
|
|
6270 |
(1, TType.I64, 'paymentId', None, None, ), # 1
|
|
|
6271 |
(2, TType.LIST, 'creditTxns', (TType.STRUCT,(CreditHistory, CreditHistory.thrift_spec)), None, ), # 2
|
|
|
6272 |
)
|
|
|
6273 |
|
|
|
6274 |
def __init__(self, paymentId=None, creditTxns=None,):
|
|
|
6275 |
self.paymentId = paymentId
|
|
|
6276 |
self.creditTxns = creditTxns
|
|
|
6277 |
|
|
|
6278 |
def read(self, iprot):
|
|
|
6279 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6280 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6281 |
return
|
|
|
6282 |
iprot.readStructBegin()
|
|
|
6283 |
while True:
|
|
|
6284 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6285 |
if ftype == TType.STOP:
|
|
|
6286 |
break
|
|
|
6287 |
if fid == 1:
|
|
|
6288 |
if ftype == TType.I64:
|
|
|
6289 |
self.paymentId = iprot.readI64();
|
|
|
6290 |
else:
|
|
|
6291 |
iprot.skip(ftype)
|
|
|
6292 |
elif fid == 2:
|
|
|
6293 |
if ftype == TType.LIST:
|
|
|
6294 |
self.creditTxns = []
|
|
|
6295 |
(_etype108, _size105) = iprot.readListBegin()
|
|
|
6296 |
for _i109 in xrange(_size105):
|
|
|
6297 |
_elem110 = CreditHistory()
|
|
|
6298 |
_elem110.read(iprot)
|
|
|
6299 |
self.creditTxns.append(_elem110)
|
|
|
6300 |
iprot.readListEnd()
|
|
|
6301 |
else:
|
|
|
6302 |
iprot.skip(ftype)
|
|
|
6303 |
else:
|
|
|
6304 |
iprot.skip(ftype)
|
|
|
6305 |
iprot.readFieldEnd()
|
|
|
6306 |
iprot.readStructEnd()
|
|
|
6307 |
|
|
|
6308 |
def write(self, oprot):
|
|
|
6309 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6310 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6311 |
return
|
|
|
6312 |
oprot.writeStructBegin('processCreditTransaction_args')
|
|
|
6313 |
if self.paymentId is not None:
|
|
|
6314 |
oprot.writeFieldBegin('paymentId', TType.I64, 1)
|
|
|
6315 |
oprot.writeI64(self.paymentId)
|
|
|
6316 |
oprot.writeFieldEnd()
|
|
|
6317 |
if self.creditTxns is not None:
|
|
|
6318 |
oprot.writeFieldBegin('creditTxns', TType.LIST, 2)
|
|
|
6319 |
oprot.writeListBegin(TType.STRUCT, len(self.creditTxns))
|
|
|
6320 |
for iter111 in self.creditTxns:
|
|
|
6321 |
iter111.write(oprot)
|
|
|
6322 |
oprot.writeListEnd()
|
|
|
6323 |
oprot.writeFieldEnd()
|
|
|
6324 |
oprot.writeFieldStop()
|
|
|
6325 |
oprot.writeStructEnd()
|
|
|
6326 |
|
|
|
6327 |
def validate(self):
|
|
|
6328 |
return
|
|
|
6329 |
|
|
|
6330 |
|
|
|
6331 |
def __repr__(self):
|
|
|
6332 |
L = ['%s=%r' % (key, value)
|
|
|
6333 |
for key, value in self.__dict__.iteritems()]
|
|
|
6334 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6335 |
|
|
|
6336 |
def __eq__(self, other):
|
|
|
6337 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6338 |
|
|
|
6339 |
def __ne__(self, other):
|
|
|
6340 |
return not (self == other)
|
|
|
6341 |
|
|
|
6342 |
class processCreditTransaction_result:
|
|
|
6343 |
"""
|
|
|
6344 |
Attributes:
|
|
|
6345 |
- success
|
|
|
6346 |
- pe
|
|
|
6347 |
"""
|
|
|
6348 |
|
|
|
6349 |
thrift_spec = (
|
|
|
6350 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
6351 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
6352 |
)
|
|
|
6353 |
|
|
|
6354 |
def __init__(self, success=None, pe=None,):
|
|
|
6355 |
self.success = success
|
|
|
6356 |
self.pe = pe
|
|
|
6357 |
|
|
|
6358 |
def read(self, iprot):
|
|
|
6359 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6360 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6361 |
return
|
|
|
6362 |
iprot.readStructBegin()
|
|
|
6363 |
while True:
|
|
|
6364 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6365 |
if ftype == TType.STOP:
|
|
|
6366 |
break
|
|
|
6367 |
if fid == 0:
|
|
|
6368 |
if ftype == TType.BOOL:
|
|
|
6369 |
self.success = iprot.readBool();
|
|
|
6370 |
else:
|
|
|
6371 |
iprot.skip(ftype)
|
|
|
6372 |
elif fid == 1:
|
|
|
6373 |
if ftype == TType.STRUCT:
|
|
|
6374 |
self.pe = PaymentException()
|
|
|
6375 |
self.pe.read(iprot)
|
|
|
6376 |
else:
|
|
|
6377 |
iprot.skip(ftype)
|
|
|
6378 |
else:
|
|
|
6379 |
iprot.skip(ftype)
|
|
|
6380 |
iprot.readFieldEnd()
|
|
|
6381 |
iprot.readStructEnd()
|
|
|
6382 |
|
|
|
6383 |
def write(self, oprot):
|
|
|
6384 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6385 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6386 |
return
|
|
|
6387 |
oprot.writeStructBegin('processCreditTransaction_result')
|
|
|
6388 |
if self.success is not None:
|
|
|
6389 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
6390 |
oprot.writeBool(self.success)
|
|
|
6391 |
oprot.writeFieldEnd()
|
|
|
6392 |
if self.pe is not None:
|
|
|
6393 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
6394 |
self.pe.write(oprot)
|
|
|
6395 |
oprot.writeFieldEnd()
|
|
|
6396 |
oprot.writeFieldStop()
|
|
|
6397 |
oprot.writeStructEnd()
|
|
|
6398 |
|
|
|
6399 |
def validate(self):
|
|
|
6400 |
return
|
|
|
6401 |
|
|
|
6402 |
|
|
|
6403 |
def __repr__(self):
|
|
|
6404 |
L = ['%s=%r' % (key, value)
|
|
|
6405 |
for key, value in self.__dict__.iteritems()]
|
|
|
6406 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6407 |
|
|
|
6408 |
def __eq__(self, other):
|
|
|
6409 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6410 |
|
|
|
6411 |
def __ne__(self, other):
|
|
|
6412 |
return not (self == other)
|
|
|
6413 |
|
|
|
6414 |
class getLoanPayableForUserToCreditor_args:
|
|
|
6415 |
"""
|
|
|
6416 |
Attributes:
|
|
|
6417 |
- userId
|
|
|
6418 |
- creditorId
|
|
|
6419 |
- dueDate
|
|
|
6420 |
"""
|
|
|
6421 |
|
|
|
6422 |
thrift_spec = (
|
|
|
6423 |
None, # 0
|
|
|
6424 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
6425 |
(2, TType.I64, 'creditorId', None, None, ), # 2
|
|
|
6426 |
(3, TType.I64, 'dueDate', None, None, ), # 3
|
|
|
6427 |
)
|
|
|
6428 |
|
|
|
6429 |
def __init__(self, userId=None, creditorId=None, dueDate=None,):
|
|
|
6430 |
self.userId = userId
|
|
|
6431 |
self.creditorId = creditorId
|
|
|
6432 |
self.dueDate = dueDate
|
|
|
6433 |
|
|
|
6434 |
def read(self, iprot):
|
|
|
6435 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6436 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6437 |
return
|
|
|
6438 |
iprot.readStructBegin()
|
|
|
6439 |
while True:
|
|
|
6440 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6441 |
if ftype == TType.STOP:
|
|
|
6442 |
break
|
|
|
6443 |
if fid == 1:
|
|
|
6444 |
if ftype == TType.I64:
|
|
|
6445 |
self.userId = iprot.readI64();
|
|
|
6446 |
else:
|
|
|
6447 |
iprot.skip(ftype)
|
|
|
6448 |
elif fid == 2:
|
|
|
6449 |
if ftype == TType.I64:
|
|
|
6450 |
self.creditorId = iprot.readI64();
|
|
|
6451 |
else:
|
|
|
6452 |
iprot.skip(ftype)
|
|
|
6453 |
elif fid == 3:
|
|
|
6454 |
if ftype == TType.I64:
|
|
|
6455 |
self.dueDate = iprot.readI64();
|
|
|
6456 |
else:
|
|
|
6457 |
iprot.skip(ftype)
|
|
|
6458 |
else:
|
|
|
6459 |
iprot.skip(ftype)
|
|
|
6460 |
iprot.readFieldEnd()
|
|
|
6461 |
iprot.readStructEnd()
|
|
|
6462 |
|
|
|
6463 |
def write(self, oprot):
|
|
|
6464 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6465 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6466 |
return
|
|
|
6467 |
oprot.writeStructBegin('getLoanPayableForUserToCreditor_args')
|
|
|
6468 |
if self.userId is not None:
|
|
|
6469 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
6470 |
oprot.writeI64(self.userId)
|
|
|
6471 |
oprot.writeFieldEnd()
|
|
|
6472 |
if self.creditorId is not None:
|
|
|
6473 |
oprot.writeFieldBegin('creditorId', TType.I64, 2)
|
|
|
6474 |
oprot.writeI64(self.creditorId)
|
|
|
6475 |
oprot.writeFieldEnd()
|
|
|
6476 |
if self.dueDate is not None:
|
|
|
6477 |
oprot.writeFieldBegin('dueDate', TType.I64, 3)
|
|
|
6478 |
oprot.writeI64(self.dueDate)
|
|
|
6479 |
oprot.writeFieldEnd()
|
|
|
6480 |
oprot.writeFieldStop()
|
|
|
6481 |
oprot.writeStructEnd()
|
|
|
6482 |
|
|
|
6483 |
def validate(self):
|
|
|
6484 |
return
|
|
|
6485 |
|
|
|
6486 |
|
|
|
6487 |
def __repr__(self):
|
|
|
6488 |
L = ['%s=%r' % (key, value)
|
|
|
6489 |
for key, value in self.__dict__.iteritems()]
|
|
|
6490 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6491 |
|
|
|
6492 |
def __eq__(self, other):
|
|
|
6493 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6494 |
|
|
|
6495 |
def __ne__(self, other):
|
|
|
6496 |
return not (self == other)
|
|
|
6497 |
|
|
|
6498 |
class getLoanPayableForUserToCreditor_result:
|
|
|
6499 |
"""
|
|
|
6500 |
Attributes:
|
|
|
6501 |
- success
|
|
|
6502 |
"""
|
|
|
6503 |
|
|
|
6504 |
thrift_spec = (
|
|
|
6505 |
(0, TType.LIST, 'success', (TType.STRUCT,(CreditHistory, CreditHistory.thrift_spec)), None, ), # 0
|
|
|
6506 |
)
|
|
|
6507 |
|
|
|
6508 |
def __init__(self, success=None,):
|
|
|
6509 |
self.success = success
|
|
|
6510 |
|
|
|
6511 |
def read(self, iprot):
|
|
|
6512 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6513 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6514 |
return
|
|
|
6515 |
iprot.readStructBegin()
|
|
|
6516 |
while True:
|
|
|
6517 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6518 |
if ftype == TType.STOP:
|
|
|
6519 |
break
|
|
|
6520 |
if fid == 0:
|
|
|
6521 |
if ftype == TType.LIST:
|
|
|
6522 |
self.success = []
|
|
|
6523 |
(_etype115, _size112) = iprot.readListBegin()
|
|
|
6524 |
for _i116 in xrange(_size112):
|
|
|
6525 |
_elem117 = CreditHistory()
|
|
|
6526 |
_elem117.read(iprot)
|
|
|
6527 |
self.success.append(_elem117)
|
|
|
6528 |
iprot.readListEnd()
|
|
|
6529 |
else:
|
|
|
6530 |
iprot.skip(ftype)
|
|
|
6531 |
else:
|
|
|
6532 |
iprot.skip(ftype)
|
|
|
6533 |
iprot.readFieldEnd()
|
|
|
6534 |
iprot.readStructEnd()
|
|
|
6535 |
|
|
|
6536 |
def write(self, oprot):
|
|
|
6537 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6538 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6539 |
return
|
|
|
6540 |
oprot.writeStructBegin('getLoanPayableForUserToCreditor_result')
|
|
|
6541 |
if self.success is not None:
|
|
|
6542 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6543 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
6544 |
for iter118 in self.success:
|
|
|
6545 |
iter118.write(oprot)
|
|
|
6546 |
oprot.writeListEnd()
|
|
|
6547 |
oprot.writeFieldEnd()
|
|
|
6548 |
oprot.writeFieldStop()
|
|
|
6549 |
oprot.writeStructEnd()
|
|
|
6550 |
|
|
|
6551 |
def validate(self):
|
|
|
6552 |
return
|
|
|
6553 |
|
|
|
6554 |
|
|
|
6555 |
def __repr__(self):
|
|
|
6556 |
L = ['%s=%r' % (key, value)
|
|
|
6557 |
for key, value in self.__dict__.iteritems()]
|
|
|
6558 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6559 |
|
|
|
6560 |
def __eq__(self, other):
|
|
|
6561 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6562 |
|
|
|
6563 |
def __ne__(self, other):
|
|
|
6564 |
return not (self == other)
|