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