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