| 420 |
ashish |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 420 |
ashish |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
| 3376 |
rajveer |
8 |
import shop2020.thriftpy.generic.GenericService
|
| 420 |
ashish |
9 |
from ttypes import *
|
|
|
10 |
from thrift.Thrift import TProcessor
|
|
|
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 420 |
ashish |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 3376 |
rajveer |
19 |
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
|
| 696 |
rajveer |
20 |
def createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
21 |
"""
|
| 696 |
rajveer |
22 |
create a new payment and return payment id, throws an exception if gateway is not active
|
| 3431 |
rajveer |
23 |
|
| 420 |
ashish |
24 |
Parameters:
|
| 696 |
rajveer |
25 |
- userId
|
| 420 |
ashish |
26 |
- amount
|
| 696 |
rajveer |
27 |
- gatewayId
|
|
|
28 |
- txnId
|
| 420 |
ashish |
29 |
"""
|
|
|
30 |
pass
|
|
|
31 |
|
| 696 |
rajveer |
32 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
33 |
"""
|
| 4141 |
chandransh |
34 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 3431 |
rajveer |
35 |
|
| 420 |
ashish |
36 |
Parameters:
|
|
|
37 |
- userId
|
| 696 |
rajveer |
38 |
- fromTime
|
|
|
39 |
- toTime
|
| 420 |
ashish |
40 |
- status
|
| 696 |
rajveer |
41 |
- gatewayId
|
| 420 |
ashish |
42 |
"""
|
|
|
43 |
pass
|
|
|
44 |
|
| 696 |
rajveer |
45 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
46 |
"""
|
| 4141 |
chandransh |
47 |
Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
|
| 3431 |
rajveer |
48 |
|
| 420 |
ashish |
49 |
Parameters:
|
| 696 |
rajveer |
50 |
- fromTime
|
|
|
51 |
- toTime
|
| 420 |
ashish |
52 |
- status
|
| 696 |
rajveer |
53 |
- gatewayId
|
| 420 |
ashish |
54 |
"""
|
|
|
55 |
pass
|
|
|
56 |
|
| 4141 |
chandransh |
57 |
def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
58 |
"""
|
|
|
59 |
Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
|
|
|
60 |
|
|
|
61 |
Parameters:
|
|
|
62 |
- fromTime
|
|
|
63 |
- toTime
|
|
|
64 |
- gatewayId
|
|
|
65 |
"""
|
|
|
66 |
pass
|
|
|
67 |
|
| 420 |
ashish |
68 |
def getPaymentGateway(self, id):
|
|
|
69 |
"""
|
| 4141 |
chandransh |
70 |
Get the gateway for the given id.
|
| 3431 |
rajveer |
71 |
|
| 420 |
ashish |
72 |
Parameters:
|
|
|
73 |
- id
|
|
|
74 |
"""
|
|
|
75 |
pass
|
|
|
76 |
|
| 696 |
rajveer |
77 |
def getPayment(self, id):
|
| 420 |
ashish |
78 |
"""
|
| 696 |
rajveer |
79 |
Get a particular payment info
|
| 3431 |
rajveer |
80 |
|
|
|
81 |
|
| 420 |
ashish |
82 |
Parameters:
|
|
|
83 |
- id
|
|
|
84 |
"""
|
|
|
85 |
pass
|
|
|
86 |
|
| 696 |
rajveer |
87 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
88 |
"""
|
| 696 |
rajveer |
89 |
Get a particular payment for a transaction. Will raise exception.
|
| 3431 |
rajveer |
90 |
|
|
|
91 |
|
| 420 |
ashish |
92 |
Parameters:
|
| 696 |
rajveer |
93 |
- txnId
|
| 420 |
ashish |
94 |
"""
|
|
|
95 |
pass
|
|
|
96 |
|
| 1120 |
rajveer |
97 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
98 |
"""
|
| 696 |
rajveer |
99 |
mark payment successful and store parameters
|
| 3431 |
rajveer |
100 |
|
|
|
101 |
|
| 420 |
ashish |
102 |
Parameters:
|
|
|
103 |
- id
|
| 696 |
rajveer |
104 |
- gatewayPaymentId
|
|
|
105 |
- sessionId
|
|
|
106 |
- gatewayTxnStatus
|
|
|
107 |
- description
|
|
|
108 |
- gatewayTxnId
|
|
|
109 |
- authCode
|
|
|
110 |
- referenceCode
|
|
|
111 |
- errorCode
|
|
|
112 |
- status
|
| 1120 |
rajveer |
113 |
- gatewayTxnDate
|
| 696 |
rajveer |
114 |
- attributes
|
| 420 |
ashish |
115 |
"""
|
|
|
116 |
pass
|
|
|
117 |
|
| 1731 |
ankur.sing |
118 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
119 |
"""
|
| 1731 |
ankur.sing |
120 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
121 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
122 |
"""
|
|
|
123 |
pass
|
| 420 |
ashish |
124 |
|
| 2559 |
chandransh |
125 |
def initializeHdfcPayment(self, merchantPaymentId):
|
|
|
126 |
"""
|
|
|
127 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
128 |
In case of any processing error, an exception is raised.
|
| 3431 |
rajveer |
129 |
|
| 2559 |
chandransh |
130 |
Parameters:
|
|
|
131 |
- merchantPaymentId
|
|
|
132 |
"""
|
|
|
133 |
pass
|
|
|
134 |
|
| 3616 |
chandransh |
135 |
def initializeHdfcEmiPayment(self, merchantPaymentId):
|
|
|
136 |
"""
|
|
|
137 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
138 |
In case of any processing error, an exception is raised.
|
|
|
139 |
|
|
|
140 |
Parameters:
|
|
|
141 |
- merchantPaymentId
|
|
|
142 |
"""
|
|
|
143 |
pass
|
|
|
144 |
|
| 2685 |
chandransh |
145 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
146 |
"""
|
|
|
147 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
148 |
payment gateway which processed the payment for the corresponding transaction.
|
| 2687 |
chandransh |
149 |
Returns the id of the newly created Refund.
|
| 3431 |
rajveer |
150 |
|
| 2685 |
chandransh |
151 |
Parameters:
|
|
|
152 |
- orderId
|
|
|
153 |
- merchantTxnId
|
|
|
154 |
- amount
|
|
|
155 |
"""
|
|
|
156 |
pass
|
| 2559 |
chandransh |
157 |
|
| 3010 |
chandransh |
158 |
def capturePayment(self, merchantTxnId):
|
|
|
159 |
"""
|
|
|
160 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
161 |
transaction. If the capture attempt failed, the payment is marked as failed.
|
| 3431 |
rajveer |
162 |
|
| 3010 |
chandransh |
163 |
Parameters:
|
|
|
164 |
- merchantTxnId
|
|
|
165 |
"""
|
|
|
166 |
pass
|
| 2685 |
chandransh |
167 |
|
| 3956 |
chandransh |
168 |
def partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
169 |
"""
|
|
|
170 |
Adds the given amount to the captured amount of a COD payment.
|
|
|
171 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
172 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
173 |
Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
174 |
and the corresponding transaction id.
|
| 3010 |
chandransh |
175 |
|
| 3956 |
chandransh |
176 |
Returns false if the payment couldn't be captured.
|
|
|
177 |
Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
178 |
|
|
|
179 |
Parameters:
|
|
|
180 |
- merchantTxnId
|
|
|
181 |
- amount
|
|
|
182 |
- xferBy
|
|
|
183 |
- xferTxnId
|
|
|
184 |
- xferDate
|
|
|
185 |
"""
|
|
|
186 |
pass
|
|
|
187 |
|
| 4008 |
mandeep.dh |
188 |
def getPaymentsRequiringExtraProcessing(self, category):
|
|
|
189 |
"""
|
|
|
190 |
Returns the list of payments that require some extra processing and
|
|
|
191 |
which belong to a particular category. This is currently used by CRM
|
|
|
192 |
application.
|
| 3956 |
chandransh |
193 |
|
| 4008 |
mandeep.dh |
194 |
Parameters:
|
|
|
195 |
- category
|
|
|
196 |
"""
|
|
|
197 |
pass
|
|
|
198 |
|
|
|
199 |
def markPaymentAsProcessed(self, paymentId, category):
|
|
|
200 |
"""
|
|
|
201 |
Marks a particular payment as processed for a particular cateogory.
|
|
|
202 |
It essentially deletes the payment if it is processed for a particular
|
|
|
203 |
category. This is currently used by CRM application.
|
|
|
204 |
|
|
|
205 |
Parameters:
|
|
|
206 |
- paymentId
|
|
|
207 |
- category
|
|
|
208 |
"""
|
|
|
209 |
pass
|
|
|
210 |
|
|
|
211 |
|
| 3376 |
rajveer |
212 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 420 |
ashish |
213 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
214 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 420 |
ashish |
215 |
|
| 696 |
rajveer |
216 |
def createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
217 |
"""
|
| 696 |
rajveer |
218 |
create a new payment and return payment id, throws an exception if gateway is not active
|
| 3431 |
rajveer |
219 |
|
| 420 |
ashish |
220 |
Parameters:
|
| 696 |
rajveer |
221 |
- userId
|
| 420 |
ashish |
222 |
- amount
|
| 696 |
rajveer |
223 |
- gatewayId
|
|
|
224 |
- txnId
|
| 420 |
ashish |
225 |
"""
|
| 696 |
rajveer |
226 |
self.send_createPayment(userId, amount, gatewayId, txnId)
|
| 420 |
ashish |
227 |
return self.recv_createPayment()
|
|
|
228 |
|
| 696 |
rajveer |
229 |
def send_createPayment(self, userId, amount, gatewayId, txnId):
|
| 420 |
ashish |
230 |
self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
|
|
|
231 |
args = createPayment_args()
|
| 696 |
rajveer |
232 |
args.userId = userId
|
| 420 |
ashish |
233 |
args.amount = amount
|
| 696 |
rajveer |
234 |
args.gatewayId = gatewayId
|
|
|
235 |
args.txnId = txnId
|
| 420 |
ashish |
236 |
args.write(self._oprot)
|
|
|
237 |
self._oprot.writeMessageEnd()
|
|
|
238 |
self._oprot.trans.flush()
|
|
|
239 |
|
|
|
240 |
def recv_createPayment(self, ):
|
|
|
241 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
242 |
if mtype == TMessageType.EXCEPTION:
|
|
|
243 |
x = TApplicationException()
|
|
|
244 |
x.read(self._iprot)
|
|
|
245 |
self._iprot.readMessageEnd()
|
|
|
246 |
raise x
|
|
|
247 |
result = createPayment_result()
|
|
|
248 |
result.read(self._iprot)
|
|
|
249 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
250 |
if result.success is not None:
|
| 420 |
ashish |
251 |
return result.success
|
| 3431 |
rajveer |
252 |
if result.pe is not None:
|
| 420 |
ashish |
253 |
raise result.pe
|
|
|
254 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
|
|
255 |
|
| 696 |
rajveer |
256 |
def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
257 |
"""
|
| 4141 |
chandransh |
258 |
Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 3431 |
rajveer |
259 |
|
| 420 |
ashish |
260 |
Parameters:
|
|
|
261 |
- userId
|
| 696 |
rajveer |
262 |
- fromTime
|
|
|
263 |
- toTime
|
| 420 |
ashish |
264 |
- status
|
| 696 |
rajveer |
265 |
- gatewayId
|
| 420 |
ashish |
266 |
"""
|
| 696 |
rajveer |
267 |
self.send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
268 |
return self.recv_getPaymentsForUser()
|
|
|
269 |
|
| 696 |
rajveer |
270 |
def send_getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
271 |
self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
|
|
|
272 |
args = getPaymentsForUser_args()
|
|
|
273 |
args.userId = userId
|
| 696 |
rajveer |
274 |
args.fromTime = fromTime
|
|
|
275 |
args.toTime = toTime
|
| 420 |
ashish |
276 |
args.status = status
|
| 696 |
rajveer |
277 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
278 |
args.write(self._oprot)
|
|
|
279 |
self._oprot.writeMessageEnd()
|
|
|
280 |
self._oprot.trans.flush()
|
|
|
281 |
|
|
|
282 |
def recv_getPaymentsForUser(self, ):
|
|
|
283 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
284 |
if mtype == TMessageType.EXCEPTION:
|
|
|
285 |
x = TApplicationException()
|
|
|
286 |
x.read(self._iprot)
|
|
|
287 |
self._iprot.readMessageEnd()
|
|
|
288 |
raise x
|
|
|
289 |
result = getPaymentsForUser_result()
|
|
|
290 |
result.read(self._iprot)
|
|
|
291 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
292 |
if result.success is not None:
|
| 420 |
ashish |
293 |
return result.success
|
| 3431 |
rajveer |
294 |
if result.pe is not None:
|
| 420 |
ashish |
295 |
raise result.pe
|
|
|
296 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
|
|
297 |
|
| 696 |
rajveer |
298 |
def getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
299 |
"""
|
| 4141 |
chandransh |
300 |
Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
|
| 3431 |
rajveer |
301 |
|
| 420 |
ashish |
302 |
Parameters:
|
| 696 |
rajveer |
303 |
- fromTime
|
|
|
304 |
- toTime
|
| 420 |
ashish |
305 |
- status
|
| 696 |
rajveer |
306 |
- gatewayId
|
| 420 |
ashish |
307 |
"""
|
| 696 |
rajveer |
308 |
self.send_getPayments(fromTime, toTime, status, gatewayId)
|
| 420 |
ashish |
309 |
return self.recv_getPayments()
|
|
|
310 |
|
| 696 |
rajveer |
311 |
def send_getPayments(self, fromTime, toTime, status, gatewayId):
|
| 420 |
ashish |
312 |
self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
|
|
|
313 |
args = getPayments_args()
|
| 696 |
rajveer |
314 |
args.fromTime = fromTime
|
|
|
315 |
args.toTime = toTime
|
| 420 |
ashish |
316 |
args.status = status
|
| 696 |
rajveer |
317 |
args.gatewayId = gatewayId
|
| 420 |
ashish |
318 |
args.write(self._oprot)
|
|
|
319 |
self._oprot.writeMessageEnd()
|
|
|
320 |
self._oprot.trans.flush()
|
|
|
321 |
|
|
|
322 |
def recv_getPayments(self, ):
|
|
|
323 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
324 |
if mtype == TMessageType.EXCEPTION:
|
|
|
325 |
x = TApplicationException()
|
|
|
326 |
x.read(self._iprot)
|
|
|
327 |
self._iprot.readMessageEnd()
|
|
|
328 |
raise x
|
|
|
329 |
result = getPayments_result()
|
|
|
330 |
result.read(self._iprot)
|
|
|
331 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
332 |
if result.success is not None:
|
| 420 |
ashish |
333 |
return result.success
|
| 3431 |
rajveer |
334 |
if result.pe is not None:
|
| 420 |
ashish |
335 |
raise result.pe
|
|
|
336 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
|
|
337 |
|
| 4141 |
chandransh |
338 |
def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
339 |
"""
|
|
|
340 |
Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
|
|
|
341 |
|
|
|
342 |
Parameters:
|
|
|
343 |
- fromTime
|
|
|
344 |
- toTime
|
|
|
345 |
- gatewayId
|
|
|
346 |
"""
|
|
|
347 |
self.send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId)
|
|
|
348 |
return self.recv_getPaymentsByCapturedDate()
|
|
|
349 |
|
|
|
350 |
def send_getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
|
|
|
351 |
self._oprot.writeMessageBegin('getPaymentsByCapturedDate', TMessageType.CALL, self._seqid)
|
|
|
352 |
args = getPaymentsByCapturedDate_args()
|
|
|
353 |
args.fromTime = fromTime
|
|
|
354 |
args.toTime = toTime
|
|
|
355 |
args.gatewayId = gatewayId
|
|
|
356 |
args.write(self._oprot)
|
|
|
357 |
self._oprot.writeMessageEnd()
|
|
|
358 |
self._oprot.trans.flush()
|
|
|
359 |
|
|
|
360 |
def recv_getPaymentsByCapturedDate(self, ):
|
|
|
361 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
362 |
if mtype == TMessageType.EXCEPTION:
|
|
|
363 |
x = TApplicationException()
|
|
|
364 |
x.read(self._iprot)
|
|
|
365 |
self._iprot.readMessageEnd()
|
|
|
366 |
raise x
|
|
|
367 |
result = getPaymentsByCapturedDate_result()
|
|
|
368 |
result.read(self._iprot)
|
|
|
369 |
self._iprot.readMessageEnd()
|
|
|
370 |
if result.success is not None:
|
|
|
371 |
return result.success
|
|
|
372 |
if result.pe is not None:
|
|
|
373 |
raise result.pe
|
|
|
374 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
|
|
|
375 |
|
| 420 |
ashish |
376 |
def getPaymentGateway(self, id):
|
|
|
377 |
"""
|
| 4141 |
chandransh |
378 |
Get the gateway for the given id.
|
| 3431 |
rajveer |
379 |
|
| 420 |
ashish |
380 |
Parameters:
|
|
|
381 |
- id
|
|
|
382 |
"""
|
|
|
383 |
self.send_getPaymentGateway(id)
|
|
|
384 |
return self.recv_getPaymentGateway()
|
|
|
385 |
|
|
|
386 |
def send_getPaymentGateway(self, id):
|
|
|
387 |
self._oprot.writeMessageBegin('getPaymentGateway', TMessageType.CALL, self._seqid)
|
|
|
388 |
args = getPaymentGateway_args()
|
|
|
389 |
args.id = id
|
|
|
390 |
args.write(self._oprot)
|
|
|
391 |
self._oprot.writeMessageEnd()
|
|
|
392 |
self._oprot.trans.flush()
|
|
|
393 |
|
|
|
394 |
def recv_getPaymentGateway(self, ):
|
|
|
395 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
396 |
if mtype == TMessageType.EXCEPTION:
|
|
|
397 |
x = TApplicationException()
|
|
|
398 |
x.read(self._iprot)
|
|
|
399 |
self._iprot.readMessageEnd()
|
|
|
400 |
raise x
|
|
|
401 |
result = getPaymentGateway_result()
|
|
|
402 |
result.read(self._iprot)
|
|
|
403 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
404 |
if result.success is not None:
|
| 420 |
ashish |
405 |
return result.success
|
| 3431 |
rajveer |
406 |
if result.pe is not None:
|
| 420 |
ashish |
407 |
raise result.pe
|
|
|
408 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
|
|
409 |
|
| 696 |
rajveer |
410 |
def getPayment(self, id):
|
| 420 |
ashish |
411 |
"""
|
| 696 |
rajveer |
412 |
Get a particular payment info
|
| 3431 |
rajveer |
413 |
|
|
|
414 |
|
| 420 |
ashish |
415 |
Parameters:
|
|
|
416 |
- id
|
|
|
417 |
"""
|
| 696 |
rajveer |
418 |
self.send_getPayment(id)
|
|
|
419 |
return self.recv_getPayment()
|
| 420 |
ashish |
420 |
|
| 696 |
rajveer |
421 |
def send_getPayment(self, id):
|
|
|
422 |
self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
|
|
|
423 |
args = getPayment_args()
|
| 420 |
ashish |
424 |
args.id = id
|
|
|
425 |
args.write(self._oprot)
|
|
|
426 |
self._oprot.writeMessageEnd()
|
|
|
427 |
self._oprot.trans.flush()
|
|
|
428 |
|
| 696 |
rajveer |
429 |
def recv_getPayment(self, ):
|
| 420 |
ashish |
430 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
431 |
if mtype == TMessageType.EXCEPTION:
|
|
|
432 |
x = TApplicationException()
|
|
|
433 |
x.read(self._iprot)
|
|
|
434 |
self._iprot.readMessageEnd()
|
|
|
435 |
raise x
|
| 696 |
rajveer |
436 |
result = getPayment_result()
|
| 420 |
ashish |
437 |
result.read(self._iprot)
|
|
|
438 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
439 |
if result.success is not None:
|
| 696 |
rajveer |
440 |
return result.success
|
| 3431 |
rajveer |
441 |
if result.pe is not None:
|
| 420 |
ashish |
442 |
raise result.pe
|
| 696 |
rajveer |
443 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
444 |
|
| 696 |
rajveer |
445 |
def getPaymentForTxnId(self, txnId):
|
| 420 |
ashish |
446 |
"""
|
| 696 |
rajveer |
447 |
Get a particular payment for a transaction. Will raise exception.
|
| 3431 |
rajveer |
448 |
|
|
|
449 |
|
| 420 |
ashish |
450 |
Parameters:
|
| 696 |
rajveer |
451 |
- txnId
|
| 420 |
ashish |
452 |
"""
|
| 696 |
rajveer |
453 |
self.send_getPaymentForTxnId(txnId)
|
|
|
454 |
return self.recv_getPaymentForTxnId()
|
| 420 |
ashish |
455 |
|
| 696 |
rajveer |
456 |
def send_getPaymentForTxnId(self, txnId):
|
|
|
457 |
self._oprot.writeMessageBegin('getPaymentForTxnId', TMessageType.CALL, self._seqid)
|
|
|
458 |
args = getPaymentForTxnId_args()
|
|
|
459 |
args.txnId = txnId
|
| 420 |
ashish |
460 |
args.write(self._oprot)
|
|
|
461 |
self._oprot.writeMessageEnd()
|
|
|
462 |
self._oprot.trans.flush()
|
|
|
463 |
|
| 696 |
rajveer |
464 |
def recv_getPaymentForTxnId(self, ):
|
| 420 |
ashish |
465 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
466 |
if mtype == TMessageType.EXCEPTION:
|
|
|
467 |
x = TApplicationException()
|
|
|
468 |
x.read(self._iprot)
|
|
|
469 |
self._iprot.readMessageEnd()
|
|
|
470 |
raise x
|
| 696 |
rajveer |
471 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
472 |
result.read(self._iprot)
|
|
|
473 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
474 |
if result.success is not None:
|
| 420 |
ashish |
475 |
return result.success
|
| 3431 |
rajveer |
476 |
if result.pe is not None:
|
| 420 |
ashish |
477 |
raise result.pe
|
| 696 |
rajveer |
478 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
479 |
|
| 1120 |
rajveer |
480 |
def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 420 |
ashish |
481 |
"""
|
| 696 |
rajveer |
482 |
mark payment successful and store parameters
|
| 3431 |
rajveer |
483 |
|
|
|
484 |
|
| 420 |
ashish |
485 |
Parameters:
|
|
|
486 |
- id
|
| 696 |
rajveer |
487 |
- gatewayPaymentId
|
|
|
488 |
- sessionId
|
|
|
489 |
- gatewayTxnStatus
|
|
|
490 |
- description
|
|
|
491 |
- gatewayTxnId
|
|
|
492 |
- authCode
|
|
|
493 |
- referenceCode
|
|
|
494 |
- errorCode
|
|
|
495 |
- status
|
| 1120 |
rajveer |
496 |
- gatewayTxnDate
|
| 696 |
rajveer |
497 |
- attributes
|
| 420 |
ashish |
498 |
"""
|
| 1120 |
rajveer |
499 |
self.send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes)
|
| 696 |
rajveer |
500 |
return self.recv_updatePaymentDetails()
|
| 420 |
ashish |
501 |
|
| 1120 |
rajveer |
502 |
def send_updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
|
| 696 |
rajveer |
503 |
self._oprot.writeMessageBegin('updatePaymentDetails', TMessageType.CALL, self._seqid)
|
|
|
504 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
505 |
args.id = id
|
| 696 |
rajveer |
506 |
args.gatewayPaymentId = gatewayPaymentId
|
|
|
507 |
args.sessionId = sessionId
|
|
|
508 |
args.gatewayTxnStatus = gatewayTxnStatus
|
|
|
509 |
args.description = description
|
|
|
510 |
args.gatewayTxnId = gatewayTxnId
|
|
|
511 |
args.authCode = authCode
|
|
|
512 |
args.referenceCode = referenceCode
|
|
|
513 |
args.errorCode = errorCode
|
|
|
514 |
args.status = status
|
| 1120 |
rajveer |
515 |
args.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
516 |
args.attributes = attributes
|
| 420 |
ashish |
517 |
args.write(self._oprot)
|
|
|
518 |
self._oprot.writeMessageEnd()
|
|
|
519 |
self._oprot.trans.flush()
|
|
|
520 |
|
| 696 |
rajveer |
521 |
def recv_updatePaymentDetails(self, ):
|
| 420 |
ashish |
522 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
523 |
if mtype == TMessageType.EXCEPTION:
|
|
|
524 |
x = TApplicationException()
|
|
|
525 |
x.read(self._iprot)
|
|
|
526 |
self._iprot.readMessageEnd()
|
|
|
527 |
raise x
|
| 696 |
rajveer |
528 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
529 |
result.read(self._iprot)
|
|
|
530 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
531 |
if result.success is not None:
|
| 696 |
rajveer |
532 |
return result.success
|
| 3431 |
rajveer |
533 |
if result.pe is not None:
|
| 420 |
ashish |
534 |
raise result.pe
|
| 696 |
rajveer |
535 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
536 |
|
| 1731 |
ankur.sing |
537 |
def getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
538 |
"""
|
| 1731 |
ankur.sing |
539 |
Returns the minimum and maximum amounts among successful payments.
|
|
|
540 |
List contains two double values, first minimum and second maximum amount.
|
| 1627 |
ankur.sing |
541 |
"""
|
| 1731 |
ankur.sing |
542 |
self.send_getSuccessfulPaymentsAmountRange()
|
|
|
543 |
return self.recv_getSuccessfulPaymentsAmountRange()
|
| 420 |
ashish |
544 |
|
| 1731 |
ankur.sing |
545 |
def send_getSuccessfulPaymentsAmountRange(self, ):
|
|
|
546 |
self._oprot.writeMessageBegin('getSuccessfulPaymentsAmountRange', TMessageType.CALL, self._seqid)
|
|
|
547 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
548 |
args.write(self._oprot)
|
|
|
549 |
self._oprot.writeMessageEnd()
|
|
|
550 |
self._oprot.trans.flush()
|
|
|
551 |
|
| 1731 |
ankur.sing |
552 |
def recv_getSuccessfulPaymentsAmountRange(self, ):
|
| 1627 |
ankur.sing |
553 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
554 |
if mtype == TMessageType.EXCEPTION:
|
|
|
555 |
x = TApplicationException()
|
|
|
556 |
x.read(self._iprot)
|
|
|
557 |
self._iprot.readMessageEnd()
|
|
|
558 |
raise x
|
| 1731 |
ankur.sing |
559 |
result = getSuccessfulPaymentsAmountRange_result()
|
| 1627 |
ankur.sing |
560 |
result.read(self._iprot)
|
|
|
561 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
562 |
if result.success is not None:
|
| 1627 |
ankur.sing |
563 |
return result.success
|
| 1731 |
ankur.sing |
564 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1627 |
ankur.sing |
565 |
|
| 2559 |
chandransh |
566 |
def initializeHdfcPayment(self, merchantPaymentId):
|
|
|
567 |
"""
|
|
|
568 |
Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
569 |
In case of any processing error, an exception is raised.
|
| 3431 |
rajveer |
570 |
|
| 2559 |
chandransh |
571 |
Parameters:
|
|
|
572 |
- merchantPaymentId
|
|
|
573 |
"""
|
|
|
574 |
self.send_initializeHdfcPayment(merchantPaymentId)
|
|
|
575 |
return self.recv_initializeHdfcPayment()
|
|
|
576 |
|
|
|
577 |
def send_initializeHdfcPayment(self, merchantPaymentId):
|
|
|
578 |
self._oprot.writeMessageBegin('initializeHdfcPayment', TMessageType.CALL, self._seqid)
|
|
|
579 |
args = initializeHdfcPayment_args()
|
|
|
580 |
args.merchantPaymentId = merchantPaymentId
|
|
|
581 |
args.write(self._oprot)
|
|
|
582 |
self._oprot.writeMessageEnd()
|
|
|
583 |
self._oprot.trans.flush()
|
|
|
584 |
|
|
|
585 |
def recv_initializeHdfcPayment(self, ):
|
|
|
586 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
587 |
if mtype == TMessageType.EXCEPTION:
|
|
|
588 |
x = TApplicationException()
|
|
|
589 |
x.read(self._iprot)
|
|
|
590 |
self._iprot.readMessageEnd()
|
|
|
591 |
raise x
|
|
|
592 |
result = initializeHdfcPayment_result()
|
|
|
593 |
result.read(self._iprot)
|
|
|
594 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
595 |
if result.success is not None:
|
| 2559 |
chandransh |
596 |
return result.success
|
| 3431 |
rajveer |
597 |
if result.pe is not None:
|
| 2559 |
chandransh |
598 |
raise result.pe
|
|
|
599 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
|
|
600 |
|
| 3616 |
chandransh |
601 |
def initializeHdfcEmiPayment(self, merchantPaymentId):
|
|
|
602 |
"""
|
|
|
603 |
Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
604 |
In case of any processing error, an exception is raised.
|
|
|
605 |
|
|
|
606 |
Parameters:
|
|
|
607 |
- merchantPaymentId
|
|
|
608 |
"""
|
|
|
609 |
self.send_initializeHdfcEmiPayment(merchantPaymentId)
|
|
|
610 |
return self.recv_initializeHdfcEmiPayment()
|
|
|
611 |
|
|
|
612 |
def send_initializeHdfcEmiPayment(self, merchantPaymentId):
|
|
|
613 |
self._oprot.writeMessageBegin('initializeHdfcEmiPayment', TMessageType.CALL, self._seqid)
|
|
|
614 |
args = initializeHdfcEmiPayment_args()
|
|
|
615 |
args.merchantPaymentId = merchantPaymentId
|
|
|
616 |
args.write(self._oprot)
|
|
|
617 |
self._oprot.writeMessageEnd()
|
|
|
618 |
self._oprot.trans.flush()
|
|
|
619 |
|
|
|
620 |
def recv_initializeHdfcEmiPayment(self, ):
|
|
|
621 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
622 |
if mtype == TMessageType.EXCEPTION:
|
|
|
623 |
x = TApplicationException()
|
|
|
624 |
x.read(self._iprot)
|
|
|
625 |
self._iprot.readMessageEnd()
|
|
|
626 |
raise x
|
|
|
627 |
result = initializeHdfcEmiPayment_result()
|
|
|
628 |
result.read(self._iprot)
|
|
|
629 |
self._iprot.readMessageEnd()
|
|
|
630 |
if result.success is not None:
|
|
|
631 |
return result.success
|
|
|
632 |
if result.pe is not None:
|
|
|
633 |
raise result.pe
|
|
|
634 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
|
|
|
635 |
|
| 2685 |
chandransh |
636 |
def createRefund(self, orderId, merchantTxnId, amount):
|
|
|
637 |
"""
|
|
|
638 |
Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
639 |
payment gateway which processed the payment for the corresponding transaction.
|
| 2687 |
chandransh |
640 |
Returns the id of the newly created Refund.
|
| 3431 |
rajveer |
641 |
|
| 2685 |
chandransh |
642 |
Parameters:
|
|
|
643 |
- orderId
|
|
|
644 |
- merchantTxnId
|
|
|
645 |
- amount
|
|
|
646 |
"""
|
|
|
647 |
self.send_createRefund(orderId, merchantTxnId, amount)
|
|
|
648 |
return self.recv_createRefund()
|
| 2559 |
chandransh |
649 |
|
| 2685 |
chandransh |
650 |
def send_createRefund(self, orderId, merchantTxnId, amount):
|
|
|
651 |
self._oprot.writeMessageBegin('createRefund', TMessageType.CALL, self._seqid)
|
|
|
652 |
args = createRefund_args()
|
|
|
653 |
args.orderId = orderId
|
|
|
654 |
args.merchantTxnId = merchantTxnId
|
|
|
655 |
args.amount = amount
|
|
|
656 |
args.write(self._oprot)
|
|
|
657 |
self._oprot.writeMessageEnd()
|
|
|
658 |
self._oprot.trans.flush()
|
|
|
659 |
|
|
|
660 |
def recv_createRefund(self, ):
|
|
|
661 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
662 |
if mtype == TMessageType.EXCEPTION:
|
|
|
663 |
x = TApplicationException()
|
|
|
664 |
x.read(self._iprot)
|
|
|
665 |
self._iprot.readMessageEnd()
|
|
|
666 |
raise x
|
|
|
667 |
result = createRefund_result()
|
|
|
668 |
result.read(self._iprot)
|
|
|
669 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
670 |
if result.success is not None:
|
| 2685 |
chandransh |
671 |
return result.success
|
| 3431 |
rajveer |
672 |
if result.pe is not None:
|
| 2685 |
chandransh |
673 |
raise result.pe
|
|
|
674 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
|
|
675 |
|
| 3010 |
chandransh |
676 |
def capturePayment(self, merchantTxnId):
|
|
|
677 |
"""
|
|
|
678 |
Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
679 |
transaction. If the capture attempt failed, the payment is marked as failed.
|
| 3431 |
rajveer |
680 |
|
| 3010 |
chandransh |
681 |
Parameters:
|
|
|
682 |
- merchantTxnId
|
|
|
683 |
"""
|
|
|
684 |
self.send_capturePayment(merchantTxnId)
|
|
|
685 |
return self.recv_capturePayment()
|
| 2685 |
chandransh |
686 |
|
| 3010 |
chandransh |
687 |
def send_capturePayment(self, merchantTxnId):
|
|
|
688 |
self._oprot.writeMessageBegin('capturePayment', TMessageType.CALL, self._seqid)
|
|
|
689 |
args = capturePayment_args()
|
|
|
690 |
args.merchantTxnId = merchantTxnId
|
|
|
691 |
args.write(self._oprot)
|
|
|
692 |
self._oprot.writeMessageEnd()
|
|
|
693 |
self._oprot.trans.flush()
|
|
|
694 |
|
|
|
695 |
def recv_capturePayment(self, ):
|
|
|
696 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
697 |
if mtype == TMessageType.EXCEPTION:
|
|
|
698 |
x = TApplicationException()
|
|
|
699 |
x.read(self._iprot)
|
|
|
700 |
self._iprot.readMessageEnd()
|
|
|
701 |
raise x
|
|
|
702 |
result = capturePayment_result()
|
|
|
703 |
result.read(self._iprot)
|
|
|
704 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
705 |
if result.success is not None:
|
| 3010 |
chandransh |
706 |
return result.success
|
| 3431 |
rajveer |
707 |
if result.pe is not None:
|
| 3010 |
chandransh |
708 |
raise result.pe
|
|
|
709 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
|
|
710 |
|
| 3956 |
chandransh |
711 |
def partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
712 |
"""
|
|
|
713 |
Adds the given amount to the captured amount of a COD payment.
|
|
|
714 |
Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
715 |
If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
716 |
Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
717 |
and the corresponding transaction id.
|
| 3010 |
chandransh |
718 |
|
| 3956 |
chandransh |
719 |
Returns false if the payment couldn't be captured.
|
|
|
720 |
Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
721 |
|
|
|
722 |
Parameters:
|
|
|
723 |
- merchantTxnId
|
|
|
724 |
- amount
|
|
|
725 |
- xferBy
|
|
|
726 |
- xferTxnId
|
|
|
727 |
- xferDate
|
|
|
728 |
"""
|
|
|
729 |
self.send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate)
|
|
|
730 |
return self.recv_partiallyCapturePayment()
|
|
|
731 |
|
|
|
732 |
def send_partiallyCapturePayment(self, merchantTxnId, amount, xferBy, xferTxnId, xferDate):
|
|
|
733 |
self._oprot.writeMessageBegin('partiallyCapturePayment', TMessageType.CALL, self._seqid)
|
|
|
734 |
args = partiallyCapturePayment_args()
|
|
|
735 |
args.merchantTxnId = merchantTxnId
|
|
|
736 |
args.amount = amount
|
|
|
737 |
args.xferBy = xferBy
|
|
|
738 |
args.xferTxnId = xferTxnId
|
|
|
739 |
args.xferDate = xferDate
|
|
|
740 |
args.write(self._oprot)
|
|
|
741 |
self._oprot.writeMessageEnd()
|
|
|
742 |
self._oprot.trans.flush()
|
|
|
743 |
|
|
|
744 |
def recv_partiallyCapturePayment(self, ):
|
|
|
745 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
746 |
if mtype == TMessageType.EXCEPTION:
|
|
|
747 |
x = TApplicationException()
|
|
|
748 |
x.read(self._iprot)
|
|
|
749 |
self._iprot.readMessageEnd()
|
|
|
750 |
raise x
|
|
|
751 |
result = partiallyCapturePayment_result()
|
|
|
752 |
result.read(self._iprot)
|
|
|
753 |
self._iprot.readMessageEnd()
|
|
|
754 |
if result.success is not None:
|
|
|
755 |
return result.success
|
|
|
756 |
if result.pe is not None:
|
|
|
757 |
raise result.pe
|
|
|
758 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
|
|
|
759 |
|
| 4008 |
mandeep.dh |
760 |
def getPaymentsRequiringExtraProcessing(self, category):
|
|
|
761 |
"""
|
|
|
762 |
Returns the list of payments that require some extra processing and
|
|
|
763 |
which belong to a particular category. This is currently used by CRM
|
|
|
764 |
application.
|
| 3956 |
chandransh |
765 |
|
| 4008 |
mandeep.dh |
766 |
Parameters:
|
|
|
767 |
- category
|
|
|
768 |
"""
|
|
|
769 |
self.send_getPaymentsRequiringExtraProcessing(category)
|
|
|
770 |
return self.recv_getPaymentsRequiringExtraProcessing()
|
|
|
771 |
|
|
|
772 |
def send_getPaymentsRequiringExtraProcessing(self, category):
|
|
|
773 |
self._oprot.writeMessageBegin('getPaymentsRequiringExtraProcessing', TMessageType.CALL, self._seqid)
|
|
|
774 |
args = getPaymentsRequiringExtraProcessing_args()
|
|
|
775 |
args.category = category
|
|
|
776 |
args.write(self._oprot)
|
|
|
777 |
self._oprot.writeMessageEnd()
|
|
|
778 |
self._oprot.trans.flush()
|
|
|
779 |
|
|
|
780 |
def recv_getPaymentsRequiringExtraProcessing(self, ):
|
|
|
781 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
782 |
if mtype == TMessageType.EXCEPTION:
|
|
|
783 |
x = TApplicationException()
|
|
|
784 |
x.read(self._iprot)
|
|
|
785 |
self._iprot.readMessageEnd()
|
|
|
786 |
raise x
|
|
|
787 |
result = getPaymentsRequiringExtraProcessing_result()
|
|
|
788 |
result.read(self._iprot)
|
|
|
789 |
self._iprot.readMessageEnd()
|
|
|
790 |
if result.success is not None:
|
|
|
791 |
return result.success
|
|
|
792 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
|
|
|
793 |
|
|
|
794 |
def markPaymentAsProcessed(self, paymentId, category):
|
|
|
795 |
"""
|
|
|
796 |
Marks a particular payment as processed for a particular cateogory.
|
|
|
797 |
It essentially deletes the payment if it is processed for a particular
|
|
|
798 |
category. This is currently used by CRM application.
|
|
|
799 |
|
|
|
800 |
Parameters:
|
|
|
801 |
- paymentId
|
|
|
802 |
- category
|
|
|
803 |
"""
|
|
|
804 |
self.send_markPaymentAsProcessed(paymentId, category)
|
|
|
805 |
self.recv_markPaymentAsProcessed()
|
|
|
806 |
|
|
|
807 |
def send_markPaymentAsProcessed(self, paymentId, category):
|
|
|
808 |
self._oprot.writeMessageBegin('markPaymentAsProcessed', TMessageType.CALL, self._seqid)
|
|
|
809 |
args = markPaymentAsProcessed_args()
|
|
|
810 |
args.paymentId = paymentId
|
|
|
811 |
args.category = category
|
|
|
812 |
args.write(self._oprot)
|
|
|
813 |
self._oprot.writeMessageEnd()
|
|
|
814 |
self._oprot.trans.flush()
|
|
|
815 |
|
|
|
816 |
def recv_markPaymentAsProcessed(self, ):
|
|
|
817 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
818 |
if mtype == TMessageType.EXCEPTION:
|
|
|
819 |
x = TApplicationException()
|
|
|
820 |
x.read(self._iprot)
|
|
|
821 |
self._iprot.readMessageEnd()
|
|
|
822 |
raise x
|
|
|
823 |
result = markPaymentAsProcessed_result()
|
|
|
824 |
result.read(self._iprot)
|
|
|
825 |
self._iprot.readMessageEnd()
|
|
|
826 |
return
|
|
|
827 |
|
|
|
828 |
|
| 3376 |
rajveer |
829 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 420 |
ashish |
830 |
def __init__(self, handler):
|
| 3376 |
rajveer |
831 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 420 |
ashish |
832 |
self._processMap["createPayment"] = Processor.process_createPayment
|
|
|
833 |
self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
|
|
|
834 |
self._processMap["getPayments"] = Processor.process_getPayments
|
| 4141 |
chandransh |
835 |
self._processMap["getPaymentsByCapturedDate"] = Processor.process_getPaymentsByCapturedDate
|
| 420 |
ashish |
836 |
self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
|
|
|
837 |
self._processMap["getPayment"] = Processor.process_getPayment
|
| 696 |
rajveer |
838 |
self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
|
|
|
839 |
self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
|
| 1731 |
ankur.sing |
840 |
self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
|
| 2559 |
chandransh |
841 |
self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
|
| 3616 |
chandransh |
842 |
self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
|
| 2685 |
chandransh |
843 |
self._processMap["createRefund"] = Processor.process_createRefund
|
| 3010 |
chandransh |
844 |
self._processMap["capturePayment"] = Processor.process_capturePayment
|
| 3956 |
chandransh |
845 |
self._processMap["partiallyCapturePayment"] = Processor.process_partiallyCapturePayment
|
| 4008 |
mandeep.dh |
846 |
self._processMap["getPaymentsRequiringExtraProcessing"] = Processor.process_getPaymentsRequiringExtraProcessing
|
|
|
847 |
self._processMap["markPaymentAsProcessed"] = Processor.process_markPaymentAsProcessed
|
| 420 |
ashish |
848 |
|
|
|
849 |
def process(self, iprot, oprot):
|
|
|
850 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
851 |
if name not in self._processMap:
|
|
|
852 |
iprot.skip(TType.STRUCT)
|
|
|
853 |
iprot.readMessageEnd()
|
|
|
854 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
855 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
856 |
x.write(oprot)
|
|
|
857 |
oprot.writeMessageEnd()
|
|
|
858 |
oprot.trans.flush()
|
|
|
859 |
return
|
|
|
860 |
else:
|
|
|
861 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
862 |
return True
|
|
|
863 |
|
|
|
864 |
def process_createPayment(self, seqid, iprot, oprot):
|
|
|
865 |
args = createPayment_args()
|
|
|
866 |
args.read(iprot)
|
|
|
867 |
iprot.readMessageEnd()
|
|
|
868 |
result = createPayment_result()
|
|
|
869 |
try:
|
| 696 |
rajveer |
870 |
result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId)
|
| 420 |
ashish |
871 |
except PaymentException, pe:
|
|
|
872 |
result.pe = pe
|
|
|
873 |
oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
|
|
|
874 |
result.write(oprot)
|
|
|
875 |
oprot.writeMessageEnd()
|
|
|
876 |
oprot.trans.flush()
|
|
|
877 |
|
|
|
878 |
def process_getPaymentsForUser(self, seqid, iprot, oprot):
|
|
|
879 |
args = getPaymentsForUser_args()
|
|
|
880 |
args.read(iprot)
|
|
|
881 |
iprot.readMessageEnd()
|
|
|
882 |
result = getPaymentsForUser_result()
|
|
|
883 |
try:
|
| 696 |
rajveer |
884 |
result.success = self._handler.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
885 |
except PaymentException, pe:
|
|
|
886 |
result.pe = pe
|
|
|
887 |
oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
|
|
|
888 |
result.write(oprot)
|
|
|
889 |
oprot.writeMessageEnd()
|
|
|
890 |
oprot.trans.flush()
|
|
|
891 |
|
|
|
892 |
def process_getPayments(self, seqid, iprot, oprot):
|
|
|
893 |
args = getPayments_args()
|
|
|
894 |
args.read(iprot)
|
|
|
895 |
iprot.readMessageEnd()
|
|
|
896 |
result = getPayments_result()
|
|
|
897 |
try:
|
| 696 |
rajveer |
898 |
result.success = self._handler.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId)
|
| 420 |
ashish |
899 |
except PaymentException, pe:
|
|
|
900 |
result.pe = pe
|
|
|
901 |
oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
|
|
|
902 |
result.write(oprot)
|
|
|
903 |
oprot.writeMessageEnd()
|
|
|
904 |
oprot.trans.flush()
|
|
|
905 |
|
| 4141 |
chandransh |
906 |
def process_getPaymentsByCapturedDate(self, seqid, iprot, oprot):
|
|
|
907 |
args = getPaymentsByCapturedDate_args()
|
|
|
908 |
args.read(iprot)
|
|
|
909 |
iprot.readMessageEnd()
|
|
|
910 |
result = getPaymentsByCapturedDate_result()
|
|
|
911 |
try:
|
|
|
912 |
result.success = self._handler.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId)
|
|
|
913 |
except PaymentException, pe:
|
|
|
914 |
result.pe = pe
|
|
|
915 |
oprot.writeMessageBegin("getPaymentsByCapturedDate", TMessageType.REPLY, seqid)
|
|
|
916 |
result.write(oprot)
|
|
|
917 |
oprot.writeMessageEnd()
|
|
|
918 |
oprot.trans.flush()
|
|
|
919 |
|
| 420 |
ashish |
920 |
def process_getPaymentGateway(self, seqid, iprot, oprot):
|
|
|
921 |
args = getPaymentGateway_args()
|
|
|
922 |
args.read(iprot)
|
|
|
923 |
iprot.readMessageEnd()
|
|
|
924 |
result = getPaymentGateway_result()
|
|
|
925 |
try:
|
|
|
926 |
result.success = self._handler.getPaymentGateway(args.id)
|
|
|
927 |
except PaymentException, pe:
|
|
|
928 |
result.pe = pe
|
|
|
929 |
oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
|
|
|
930 |
result.write(oprot)
|
|
|
931 |
oprot.writeMessageEnd()
|
|
|
932 |
oprot.trans.flush()
|
|
|
933 |
|
| 696 |
rajveer |
934 |
def process_getPayment(self, seqid, iprot, oprot):
|
|
|
935 |
args = getPayment_args()
|
| 420 |
ashish |
936 |
args.read(iprot)
|
|
|
937 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
938 |
result = getPayment_result()
|
| 420 |
ashish |
939 |
try:
|
| 696 |
rajveer |
940 |
result.success = self._handler.getPayment(args.id)
|
| 420 |
ashish |
941 |
except PaymentException, pe:
|
|
|
942 |
result.pe = pe
|
| 696 |
rajveer |
943 |
oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
944 |
result.write(oprot)
|
|
|
945 |
oprot.writeMessageEnd()
|
|
|
946 |
oprot.trans.flush()
|
|
|
947 |
|
| 696 |
rajveer |
948 |
def process_getPaymentForTxnId(self, seqid, iprot, oprot):
|
|
|
949 |
args = getPaymentForTxnId_args()
|
| 420 |
ashish |
950 |
args.read(iprot)
|
|
|
951 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
952 |
result = getPaymentForTxnId_result()
|
| 420 |
ashish |
953 |
try:
|
| 696 |
rajveer |
954 |
result.success = self._handler.getPaymentForTxnId(args.txnId)
|
| 420 |
ashish |
955 |
except PaymentException, pe:
|
|
|
956 |
result.pe = pe
|
| 696 |
rajveer |
957 |
oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
958 |
result.write(oprot)
|
|
|
959 |
oprot.writeMessageEnd()
|
|
|
960 |
oprot.trans.flush()
|
|
|
961 |
|
| 696 |
rajveer |
962 |
def process_updatePaymentDetails(self, seqid, iprot, oprot):
|
|
|
963 |
args = updatePaymentDetails_args()
|
| 420 |
ashish |
964 |
args.read(iprot)
|
|
|
965 |
iprot.readMessageEnd()
|
| 696 |
rajveer |
966 |
result = updatePaymentDetails_result()
|
| 420 |
ashish |
967 |
try:
|
| 1120 |
rajveer |
968 |
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 |
969 |
except PaymentException, pe:
|
|
|
970 |
result.pe = pe
|
| 696 |
rajveer |
971 |
oprot.writeMessageBegin("updatePaymentDetails", TMessageType.REPLY, seqid)
|
| 420 |
ashish |
972 |
result.write(oprot)
|
|
|
973 |
oprot.writeMessageEnd()
|
|
|
974 |
oprot.trans.flush()
|
|
|
975 |
|
| 1731 |
ankur.sing |
976 |
def process_getSuccessfulPaymentsAmountRange(self, seqid, iprot, oprot):
|
|
|
977 |
args = getSuccessfulPaymentsAmountRange_args()
|
| 1627 |
ankur.sing |
978 |
args.read(iprot)
|
|
|
979 |
iprot.readMessageEnd()
|
| 1731 |
ankur.sing |
980 |
result = getSuccessfulPaymentsAmountRange_result()
|
|
|
981 |
result.success = self._handler.getSuccessfulPaymentsAmountRange()
|
|
|
982 |
oprot.writeMessageBegin("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid)
|
| 1627 |
ankur.sing |
983 |
result.write(oprot)
|
|
|
984 |
oprot.writeMessageEnd()
|
|
|
985 |
oprot.trans.flush()
|
| 420 |
ashish |
986 |
|
| 2559 |
chandransh |
987 |
def process_initializeHdfcPayment(self, seqid, iprot, oprot):
|
|
|
988 |
args = initializeHdfcPayment_args()
|
|
|
989 |
args.read(iprot)
|
|
|
990 |
iprot.readMessageEnd()
|
|
|
991 |
result = initializeHdfcPayment_result()
|
|
|
992 |
try:
|
|
|
993 |
result.success = self._handler.initializeHdfcPayment(args.merchantPaymentId)
|
|
|
994 |
except PaymentException, pe:
|
|
|
995 |
result.pe = pe
|
|
|
996 |
oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
|
|
|
997 |
result.write(oprot)
|
|
|
998 |
oprot.writeMessageEnd()
|
|
|
999 |
oprot.trans.flush()
|
|
|
1000 |
|
| 3616 |
chandransh |
1001 |
def process_initializeHdfcEmiPayment(self, seqid, iprot, oprot):
|
|
|
1002 |
args = initializeHdfcEmiPayment_args()
|
|
|
1003 |
args.read(iprot)
|
|
|
1004 |
iprot.readMessageEnd()
|
|
|
1005 |
result = initializeHdfcEmiPayment_result()
|
|
|
1006 |
try:
|
|
|
1007 |
result.success = self._handler.initializeHdfcEmiPayment(args.merchantPaymentId)
|
|
|
1008 |
except PaymentException, pe:
|
|
|
1009 |
result.pe = pe
|
|
|
1010 |
oprot.writeMessageBegin("initializeHdfcEmiPayment", TMessageType.REPLY, seqid)
|
|
|
1011 |
result.write(oprot)
|
|
|
1012 |
oprot.writeMessageEnd()
|
|
|
1013 |
oprot.trans.flush()
|
|
|
1014 |
|
| 2685 |
chandransh |
1015 |
def process_createRefund(self, seqid, iprot, oprot):
|
|
|
1016 |
args = createRefund_args()
|
|
|
1017 |
args.read(iprot)
|
|
|
1018 |
iprot.readMessageEnd()
|
|
|
1019 |
result = createRefund_result()
|
|
|
1020 |
try:
|
|
|
1021 |
result.success = self._handler.createRefund(args.orderId, args.merchantTxnId, args.amount)
|
|
|
1022 |
except PaymentException, pe:
|
|
|
1023 |
result.pe = pe
|
|
|
1024 |
oprot.writeMessageBegin("createRefund", TMessageType.REPLY, seqid)
|
|
|
1025 |
result.write(oprot)
|
|
|
1026 |
oprot.writeMessageEnd()
|
|
|
1027 |
oprot.trans.flush()
|
| 2559 |
chandransh |
1028 |
|
| 3010 |
chandransh |
1029 |
def process_capturePayment(self, seqid, iprot, oprot):
|
|
|
1030 |
args = capturePayment_args()
|
|
|
1031 |
args.read(iprot)
|
|
|
1032 |
iprot.readMessageEnd()
|
|
|
1033 |
result = capturePayment_result()
|
|
|
1034 |
try:
|
|
|
1035 |
result.success = self._handler.capturePayment(args.merchantTxnId)
|
|
|
1036 |
except PaymentException, pe:
|
|
|
1037 |
result.pe = pe
|
|
|
1038 |
oprot.writeMessageBegin("capturePayment", TMessageType.REPLY, seqid)
|
|
|
1039 |
result.write(oprot)
|
|
|
1040 |
oprot.writeMessageEnd()
|
|
|
1041 |
oprot.trans.flush()
|
| 2685 |
chandransh |
1042 |
|
| 3956 |
chandransh |
1043 |
def process_partiallyCapturePayment(self, seqid, iprot, oprot):
|
|
|
1044 |
args = partiallyCapturePayment_args()
|
|
|
1045 |
args.read(iprot)
|
|
|
1046 |
iprot.readMessageEnd()
|
|
|
1047 |
result = partiallyCapturePayment_result()
|
|
|
1048 |
try:
|
|
|
1049 |
result.success = self._handler.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate)
|
|
|
1050 |
except PaymentException, pe:
|
|
|
1051 |
result.pe = pe
|
|
|
1052 |
oprot.writeMessageBegin("partiallyCapturePayment", TMessageType.REPLY, seqid)
|
|
|
1053 |
result.write(oprot)
|
|
|
1054 |
oprot.writeMessageEnd()
|
|
|
1055 |
oprot.trans.flush()
|
| 3010 |
chandransh |
1056 |
|
| 4008 |
mandeep.dh |
1057 |
def process_getPaymentsRequiringExtraProcessing(self, seqid, iprot, oprot):
|
|
|
1058 |
args = getPaymentsRequiringExtraProcessing_args()
|
|
|
1059 |
args.read(iprot)
|
|
|
1060 |
iprot.readMessageEnd()
|
|
|
1061 |
result = getPaymentsRequiringExtraProcessing_result()
|
|
|
1062 |
result.success = self._handler.getPaymentsRequiringExtraProcessing(args.category)
|
|
|
1063 |
oprot.writeMessageBegin("getPaymentsRequiringExtraProcessing", TMessageType.REPLY, seqid)
|
|
|
1064 |
result.write(oprot)
|
|
|
1065 |
oprot.writeMessageEnd()
|
|
|
1066 |
oprot.trans.flush()
|
| 3956 |
chandransh |
1067 |
|
| 4008 |
mandeep.dh |
1068 |
def process_markPaymentAsProcessed(self, seqid, iprot, oprot):
|
|
|
1069 |
args = markPaymentAsProcessed_args()
|
|
|
1070 |
args.read(iprot)
|
|
|
1071 |
iprot.readMessageEnd()
|
|
|
1072 |
result = markPaymentAsProcessed_result()
|
|
|
1073 |
self._handler.markPaymentAsProcessed(args.paymentId, args.category)
|
|
|
1074 |
oprot.writeMessageBegin("markPaymentAsProcessed", TMessageType.REPLY, seqid)
|
|
|
1075 |
result.write(oprot)
|
|
|
1076 |
oprot.writeMessageEnd()
|
|
|
1077 |
oprot.trans.flush()
|
|
|
1078 |
|
|
|
1079 |
|
| 420 |
ashish |
1080 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
1081 |
|
|
|
1082 |
class createPayment_args:
|
|
|
1083 |
"""
|
|
|
1084 |
Attributes:
|
| 696 |
rajveer |
1085 |
- userId
|
| 420 |
ashish |
1086 |
- amount
|
| 696 |
rajveer |
1087 |
- gatewayId
|
|
|
1088 |
- txnId
|
| 420 |
ashish |
1089 |
"""
|
|
|
1090 |
|
|
|
1091 |
thrift_spec = (
|
|
|
1092 |
None, # 0
|
| 696 |
rajveer |
1093 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
1094 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
1095 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
1096 |
(4, TType.I64, 'txnId', None, None, ), # 4
|
| 420 |
ashish |
1097 |
)
|
|
|
1098 |
|
| 696 |
rajveer |
1099 |
def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None,):
|
|
|
1100 |
self.userId = userId
|
| 420 |
ashish |
1101 |
self.amount = amount
|
| 696 |
rajveer |
1102 |
self.gatewayId = gatewayId
|
|
|
1103 |
self.txnId = txnId
|
| 420 |
ashish |
1104 |
|
|
|
1105 |
def read(self, iprot):
|
|
|
1106 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1107 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1108 |
return
|
|
|
1109 |
iprot.readStructBegin()
|
|
|
1110 |
while True:
|
|
|
1111 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1112 |
if ftype == TType.STOP:
|
|
|
1113 |
break
|
|
|
1114 |
if fid == 1:
|
|
|
1115 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1116 |
self.userId = iprot.readI64();
|
| 420 |
ashish |
1117 |
else:
|
|
|
1118 |
iprot.skip(ftype)
|
|
|
1119 |
elif fid == 2:
|
| 696 |
rajveer |
1120 |
if ftype == TType.DOUBLE:
|
|
|
1121 |
self.amount = iprot.readDouble();
|
| 420 |
ashish |
1122 |
else:
|
|
|
1123 |
iprot.skip(ftype)
|
|
|
1124 |
elif fid == 3:
|
| 696 |
rajveer |
1125 |
if ftype == TType.I64:
|
|
|
1126 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1127 |
else:
|
|
|
1128 |
iprot.skip(ftype)
|
|
|
1129 |
elif fid == 4:
|
|
|
1130 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1131 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
1132 |
else:
|
|
|
1133 |
iprot.skip(ftype)
|
|
|
1134 |
else:
|
|
|
1135 |
iprot.skip(ftype)
|
|
|
1136 |
iprot.readFieldEnd()
|
|
|
1137 |
iprot.readStructEnd()
|
|
|
1138 |
|
|
|
1139 |
def write(self, oprot):
|
|
|
1140 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1141 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1142 |
return
|
|
|
1143 |
oprot.writeStructBegin('createPayment_args')
|
| 3431 |
rajveer |
1144 |
if self.userId is not None:
|
| 696 |
rajveer |
1145 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1146 |
oprot.writeI64(self.userId)
|
| 420 |
ashish |
1147 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1148 |
if self.amount is not None:
|
| 696 |
rajveer |
1149 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
| 420 |
ashish |
1150 |
oprot.writeDouble(self.amount)
|
|
|
1151 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1152 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
1153 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
1154 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1155 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1156 |
if self.txnId is not None:
|
| 696 |
rajveer |
1157 |
oprot.writeFieldBegin('txnId', TType.I64, 4)
|
|
|
1158 |
oprot.writeI64(self.txnId)
|
|
|
1159 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
1160 |
oprot.writeFieldStop()
|
|
|
1161 |
oprot.writeStructEnd()
|
|
|
1162 |
|
| 3431 |
rajveer |
1163 |
def validate(self):
|
|
|
1164 |
return
|
|
|
1165 |
|
|
|
1166 |
|
| 420 |
ashish |
1167 |
def __repr__(self):
|
|
|
1168 |
L = ['%s=%r' % (key, value)
|
|
|
1169 |
for key, value in self.__dict__.iteritems()]
|
|
|
1170 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1171 |
|
|
|
1172 |
def __eq__(self, other):
|
|
|
1173 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1174 |
|
|
|
1175 |
def __ne__(self, other):
|
|
|
1176 |
return not (self == other)
|
|
|
1177 |
|
|
|
1178 |
class createPayment_result:
|
|
|
1179 |
"""
|
|
|
1180 |
Attributes:
|
|
|
1181 |
- success
|
|
|
1182 |
- pe
|
|
|
1183 |
"""
|
|
|
1184 |
|
|
|
1185 |
thrift_spec = (
|
|
|
1186 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1187 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1188 |
)
|
|
|
1189 |
|
|
|
1190 |
def __init__(self, success=None, pe=None,):
|
|
|
1191 |
self.success = success
|
|
|
1192 |
self.pe = pe
|
|
|
1193 |
|
|
|
1194 |
def read(self, iprot):
|
|
|
1195 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1196 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1197 |
return
|
|
|
1198 |
iprot.readStructBegin()
|
|
|
1199 |
while True:
|
|
|
1200 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1201 |
if ftype == TType.STOP:
|
|
|
1202 |
break
|
|
|
1203 |
if fid == 0:
|
|
|
1204 |
if ftype == TType.I64:
|
|
|
1205 |
self.success = iprot.readI64();
|
|
|
1206 |
else:
|
|
|
1207 |
iprot.skip(ftype)
|
|
|
1208 |
elif fid == 1:
|
|
|
1209 |
if ftype == TType.STRUCT:
|
|
|
1210 |
self.pe = PaymentException()
|
|
|
1211 |
self.pe.read(iprot)
|
|
|
1212 |
else:
|
|
|
1213 |
iprot.skip(ftype)
|
|
|
1214 |
else:
|
|
|
1215 |
iprot.skip(ftype)
|
|
|
1216 |
iprot.readFieldEnd()
|
|
|
1217 |
iprot.readStructEnd()
|
|
|
1218 |
|
|
|
1219 |
def write(self, oprot):
|
|
|
1220 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1221 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1222 |
return
|
|
|
1223 |
oprot.writeStructBegin('createPayment_result')
|
| 3431 |
rajveer |
1224 |
if self.success is not None:
|
| 420 |
ashish |
1225 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1226 |
oprot.writeI64(self.success)
|
|
|
1227 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1228 |
if self.pe is not None:
|
| 420 |
ashish |
1229 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1230 |
self.pe.write(oprot)
|
|
|
1231 |
oprot.writeFieldEnd()
|
|
|
1232 |
oprot.writeFieldStop()
|
|
|
1233 |
oprot.writeStructEnd()
|
|
|
1234 |
|
| 3431 |
rajveer |
1235 |
def validate(self):
|
|
|
1236 |
return
|
|
|
1237 |
|
|
|
1238 |
|
| 420 |
ashish |
1239 |
def __repr__(self):
|
|
|
1240 |
L = ['%s=%r' % (key, value)
|
|
|
1241 |
for key, value in self.__dict__.iteritems()]
|
|
|
1242 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1243 |
|
|
|
1244 |
def __eq__(self, other):
|
|
|
1245 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1246 |
|
|
|
1247 |
def __ne__(self, other):
|
|
|
1248 |
return not (self == other)
|
|
|
1249 |
|
|
|
1250 |
class getPaymentsForUser_args:
|
|
|
1251 |
"""
|
|
|
1252 |
Attributes:
|
|
|
1253 |
- userId
|
| 696 |
rajveer |
1254 |
- fromTime
|
|
|
1255 |
- toTime
|
| 420 |
ashish |
1256 |
- status
|
| 696 |
rajveer |
1257 |
- gatewayId
|
| 420 |
ashish |
1258 |
"""
|
|
|
1259 |
|
|
|
1260 |
thrift_spec = (
|
|
|
1261 |
None, # 0
|
|
|
1262 |
(1, TType.I64, 'userId', None, None, ), # 1
|
| 696 |
rajveer |
1263 |
(2, TType.I64, 'fromTime', None, None, ), # 2
|
|
|
1264 |
(3, TType.I64, 'toTime', None, None, ), # 3
|
| 420 |
ashish |
1265 |
(4, TType.I32, 'status', None, None, ), # 4
|
| 696 |
rajveer |
1266 |
(5, TType.I64, 'gatewayId', None, None, ), # 5
|
| 420 |
ashish |
1267 |
)
|
|
|
1268 |
|
| 696 |
rajveer |
1269 |
def __init__(self, userId=None, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
| 420 |
ashish |
1270 |
self.userId = userId
|
| 696 |
rajveer |
1271 |
self.fromTime = fromTime
|
|
|
1272 |
self.toTime = toTime
|
| 420 |
ashish |
1273 |
self.status = status
|
| 696 |
rajveer |
1274 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1275 |
|
|
|
1276 |
def read(self, iprot):
|
|
|
1277 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1278 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1279 |
return
|
|
|
1280 |
iprot.readStructBegin()
|
|
|
1281 |
while True:
|
|
|
1282 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1283 |
if ftype == TType.STOP:
|
|
|
1284 |
break
|
|
|
1285 |
if fid == 1:
|
|
|
1286 |
if ftype == TType.I64:
|
|
|
1287 |
self.userId = iprot.readI64();
|
|
|
1288 |
else:
|
|
|
1289 |
iprot.skip(ftype)
|
|
|
1290 |
elif fid == 2:
|
|
|
1291 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1292 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1293 |
else:
|
|
|
1294 |
iprot.skip(ftype)
|
|
|
1295 |
elif fid == 3:
|
|
|
1296 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1297 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1298 |
else:
|
|
|
1299 |
iprot.skip(ftype)
|
|
|
1300 |
elif fid == 4:
|
|
|
1301 |
if ftype == TType.I32:
|
|
|
1302 |
self.status = iprot.readI32();
|
|
|
1303 |
else:
|
|
|
1304 |
iprot.skip(ftype)
|
|
|
1305 |
elif fid == 5:
|
|
|
1306 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1307 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1308 |
else:
|
|
|
1309 |
iprot.skip(ftype)
|
|
|
1310 |
else:
|
|
|
1311 |
iprot.skip(ftype)
|
|
|
1312 |
iprot.readFieldEnd()
|
|
|
1313 |
iprot.readStructEnd()
|
|
|
1314 |
|
|
|
1315 |
def write(self, oprot):
|
|
|
1316 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1317 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1318 |
return
|
|
|
1319 |
oprot.writeStructBegin('getPaymentsForUser_args')
|
| 3431 |
rajveer |
1320 |
if self.userId is not None:
|
| 420 |
ashish |
1321 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1322 |
oprot.writeI64(self.userId)
|
|
|
1323 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1324 |
if self.fromTime is not None:
|
| 696 |
rajveer |
1325 |
oprot.writeFieldBegin('fromTime', TType.I64, 2)
|
|
|
1326 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1327 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1328 |
if self.toTime is not None:
|
| 696 |
rajveer |
1329 |
oprot.writeFieldBegin('toTime', TType.I64, 3)
|
|
|
1330 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1331 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1332 |
if self.status is not None:
|
| 420 |
ashish |
1333 |
oprot.writeFieldBegin('status', TType.I32, 4)
|
|
|
1334 |
oprot.writeI32(self.status)
|
|
|
1335 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1336 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
1337 |
oprot.writeFieldBegin('gatewayId', TType.I64, 5)
|
|
|
1338 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1339 |
oprot.writeFieldEnd()
|
|
|
1340 |
oprot.writeFieldStop()
|
|
|
1341 |
oprot.writeStructEnd()
|
|
|
1342 |
|
| 3431 |
rajveer |
1343 |
def validate(self):
|
|
|
1344 |
return
|
|
|
1345 |
|
|
|
1346 |
|
| 420 |
ashish |
1347 |
def __repr__(self):
|
|
|
1348 |
L = ['%s=%r' % (key, value)
|
|
|
1349 |
for key, value in self.__dict__.iteritems()]
|
|
|
1350 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1351 |
|
|
|
1352 |
def __eq__(self, other):
|
|
|
1353 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1354 |
|
|
|
1355 |
def __ne__(self, other):
|
|
|
1356 |
return not (self == other)
|
|
|
1357 |
|
|
|
1358 |
class getPaymentsForUser_result:
|
|
|
1359 |
"""
|
|
|
1360 |
Attributes:
|
|
|
1361 |
- success
|
|
|
1362 |
- pe
|
|
|
1363 |
"""
|
|
|
1364 |
|
|
|
1365 |
thrift_spec = (
|
|
|
1366 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1367 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1368 |
)
|
|
|
1369 |
|
|
|
1370 |
def __init__(self, success=None, pe=None,):
|
|
|
1371 |
self.success = success
|
|
|
1372 |
self.pe = pe
|
|
|
1373 |
|
|
|
1374 |
def read(self, iprot):
|
|
|
1375 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1376 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1377 |
return
|
|
|
1378 |
iprot.readStructBegin()
|
|
|
1379 |
while True:
|
|
|
1380 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1381 |
if ftype == TType.STOP:
|
|
|
1382 |
break
|
|
|
1383 |
if fid == 0:
|
|
|
1384 |
if ftype == TType.LIST:
|
|
|
1385 |
self.success = []
|
| 2747 |
chandransh |
1386 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
1387 |
for _i25 in xrange(_size21):
|
|
|
1388 |
_elem26 = Payment()
|
|
|
1389 |
_elem26.read(iprot)
|
|
|
1390 |
self.success.append(_elem26)
|
| 420 |
ashish |
1391 |
iprot.readListEnd()
|
|
|
1392 |
else:
|
|
|
1393 |
iprot.skip(ftype)
|
|
|
1394 |
elif fid == 1:
|
|
|
1395 |
if ftype == TType.STRUCT:
|
|
|
1396 |
self.pe = PaymentException()
|
|
|
1397 |
self.pe.read(iprot)
|
|
|
1398 |
else:
|
|
|
1399 |
iprot.skip(ftype)
|
|
|
1400 |
else:
|
|
|
1401 |
iprot.skip(ftype)
|
|
|
1402 |
iprot.readFieldEnd()
|
|
|
1403 |
iprot.readStructEnd()
|
|
|
1404 |
|
|
|
1405 |
def write(self, oprot):
|
|
|
1406 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1407 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1408 |
return
|
|
|
1409 |
oprot.writeStructBegin('getPaymentsForUser_result')
|
| 3431 |
rajveer |
1410 |
if self.success is not None:
|
| 420 |
ashish |
1411 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1412 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 2747 |
chandransh |
1413 |
for iter27 in self.success:
|
|
|
1414 |
iter27.write(oprot)
|
| 420 |
ashish |
1415 |
oprot.writeListEnd()
|
|
|
1416 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1417 |
if self.pe is not None:
|
| 420 |
ashish |
1418 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1419 |
self.pe.write(oprot)
|
|
|
1420 |
oprot.writeFieldEnd()
|
|
|
1421 |
oprot.writeFieldStop()
|
|
|
1422 |
oprot.writeStructEnd()
|
|
|
1423 |
|
| 3431 |
rajveer |
1424 |
def validate(self):
|
|
|
1425 |
return
|
|
|
1426 |
|
|
|
1427 |
|
| 420 |
ashish |
1428 |
def __repr__(self):
|
|
|
1429 |
L = ['%s=%r' % (key, value)
|
|
|
1430 |
for key, value in self.__dict__.iteritems()]
|
|
|
1431 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1432 |
|
|
|
1433 |
def __eq__(self, other):
|
|
|
1434 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1435 |
|
|
|
1436 |
def __ne__(self, other):
|
|
|
1437 |
return not (self == other)
|
|
|
1438 |
|
|
|
1439 |
class getPayments_args:
|
|
|
1440 |
"""
|
|
|
1441 |
Attributes:
|
| 696 |
rajveer |
1442 |
- fromTime
|
|
|
1443 |
- toTime
|
| 420 |
ashish |
1444 |
- status
|
| 696 |
rajveer |
1445 |
- gatewayId
|
| 420 |
ashish |
1446 |
"""
|
|
|
1447 |
|
|
|
1448 |
thrift_spec = (
|
|
|
1449 |
None, # 0
|
| 696 |
rajveer |
1450 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
1451 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
| 420 |
ashish |
1452 |
(3, TType.I32, 'status', None, None, ), # 3
|
| 696 |
rajveer |
1453 |
(4, TType.I64, 'gatewayId', None, None, ), # 4
|
| 420 |
ashish |
1454 |
)
|
|
|
1455 |
|
| 696 |
rajveer |
1456 |
def __init__(self, fromTime=None, toTime=None, status=None, gatewayId=None,):
|
|
|
1457 |
self.fromTime = fromTime
|
|
|
1458 |
self.toTime = toTime
|
| 420 |
ashish |
1459 |
self.status = status
|
| 696 |
rajveer |
1460 |
self.gatewayId = gatewayId
|
| 420 |
ashish |
1461 |
|
|
|
1462 |
def read(self, iprot):
|
|
|
1463 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1464 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1465 |
return
|
|
|
1466 |
iprot.readStructBegin()
|
|
|
1467 |
while True:
|
|
|
1468 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1469 |
if ftype == TType.STOP:
|
|
|
1470 |
break
|
|
|
1471 |
if fid == 1:
|
|
|
1472 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1473 |
self.fromTime = iprot.readI64();
|
| 420 |
ashish |
1474 |
else:
|
|
|
1475 |
iprot.skip(ftype)
|
|
|
1476 |
elif fid == 2:
|
|
|
1477 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1478 |
self.toTime = iprot.readI64();
|
| 420 |
ashish |
1479 |
else:
|
|
|
1480 |
iprot.skip(ftype)
|
|
|
1481 |
elif fid == 3:
|
|
|
1482 |
if ftype == TType.I32:
|
|
|
1483 |
self.status = iprot.readI32();
|
|
|
1484 |
else:
|
|
|
1485 |
iprot.skip(ftype)
|
|
|
1486 |
elif fid == 4:
|
|
|
1487 |
if ftype == TType.I64:
|
| 696 |
rajveer |
1488 |
self.gatewayId = iprot.readI64();
|
| 420 |
ashish |
1489 |
else:
|
|
|
1490 |
iprot.skip(ftype)
|
|
|
1491 |
else:
|
|
|
1492 |
iprot.skip(ftype)
|
|
|
1493 |
iprot.readFieldEnd()
|
|
|
1494 |
iprot.readStructEnd()
|
|
|
1495 |
|
|
|
1496 |
def write(self, oprot):
|
|
|
1497 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1498 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1499 |
return
|
|
|
1500 |
oprot.writeStructBegin('getPayments_args')
|
| 3431 |
rajveer |
1501 |
if self.fromTime is not None:
|
| 696 |
rajveer |
1502 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
1503 |
oprot.writeI64(self.fromTime)
|
| 420 |
ashish |
1504 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1505 |
if self.toTime is not None:
|
| 696 |
rajveer |
1506 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
1507 |
oprot.writeI64(self.toTime)
|
| 420 |
ashish |
1508 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1509 |
if self.status is not None:
|
| 420 |
ashish |
1510 |
oprot.writeFieldBegin('status', TType.I32, 3)
|
|
|
1511 |
oprot.writeI32(self.status)
|
|
|
1512 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1513 |
if self.gatewayId is not None:
|
| 696 |
rajveer |
1514 |
oprot.writeFieldBegin('gatewayId', TType.I64, 4)
|
|
|
1515 |
oprot.writeI64(self.gatewayId)
|
| 420 |
ashish |
1516 |
oprot.writeFieldEnd()
|
|
|
1517 |
oprot.writeFieldStop()
|
|
|
1518 |
oprot.writeStructEnd()
|
|
|
1519 |
|
| 3431 |
rajveer |
1520 |
def validate(self):
|
|
|
1521 |
return
|
|
|
1522 |
|
|
|
1523 |
|
| 420 |
ashish |
1524 |
def __repr__(self):
|
|
|
1525 |
L = ['%s=%r' % (key, value)
|
|
|
1526 |
for key, value in self.__dict__.iteritems()]
|
|
|
1527 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1528 |
|
|
|
1529 |
def __eq__(self, other):
|
|
|
1530 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1531 |
|
|
|
1532 |
def __ne__(self, other):
|
|
|
1533 |
return not (self == other)
|
|
|
1534 |
|
|
|
1535 |
class getPayments_result:
|
|
|
1536 |
"""
|
|
|
1537 |
Attributes:
|
|
|
1538 |
- success
|
|
|
1539 |
- pe
|
|
|
1540 |
"""
|
|
|
1541 |
|
|
|
1542 |
thrift_spec = (
|
|
|
1543 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1544 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1545 |
)
|
|
|
1546 |
|
|
|
1547 |
def __init__(self, success=None, pe=None,):
|
|
|
1548 |
self.success = success
|
|
|
1549 |
self.pe = pe
|
|
|
1550 |
|
|
|
1551 |
def read(self, iprot):
|
|
|
1552 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1553 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1554 |
return
|
|
|
1555 |
iprot.readStructBegin()
|
|
|
1556 |
while True:
|
|
|
1557 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1558 |
if ftype == TType.STOP:
|
|
|
1559 |
break
|
|
|
1560 |
if fid == 0:
|
|
|
1561 |
if ftype == TType.LIST:
|
|
|
1562 |
self.success = []
|
| 2747 |
chandransh |
1563 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
1564 |
for _i32 in xrange(_size28):
|
|
|
1565 |
_elem33 = Payment()
|
|
|
1566 |
_elem33.read(iprot)
|
|
|
1567 |
self.success.append(_elem33)
|
| 420 |
ashish |
1568 |
iprot.readListEnd()
|
|
|
1569 |
else:
|
|
|
1570 |
iprot.skip(ftype)
|
|
|
1571 |
elif fid == 1:
|
|
|
1572 |
if ftype == TType.STRUCT:
|
|
|
1573 |
self.pe = PaymentException()
|
|
|
1574 |
self.pe.read(iprot)
|
|
|
1575 |
else:
|
|
|
1576 |
iprot.skip(ftype)
|
|
|
1577 |
else:
|
|
|
1578 |
iprot.skip(ftype)
|
|
|
1579 |
iprot.readFieldEnd()
|
|
|
1580 |
iprot.readStructEnd()
|
|
|
1581 |
|
|
|
1582 |
def write(self, oprot):
|
|
|
1583 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1584 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1585 |
return
|
|
|
1586 |
oprot.writeStructBegin('getPayments_result')
|
| 3431 |
rajveer |
1587 |
if self.success is not None:
|
| 420 |
ashish |
1588 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1589 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 2747 |
chandransh |
1590 |
for iter34 in self.success:
|
|
|
1591 |
iter34.write(oprot)
|
| 420 |
ashish |
1592 |
oprot.writeListEnd()
|
|
|
1593 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1594 |
if self.pe is not None:
|
| 420 |
ashish |
1595 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1596 |
self.pe.write(oprot)
|
|
|
1597 |
oprot.writeFieldEnd()
|
|
|
1598 |
oprot.writeFieldStop()
|
|
|
1599 |
oprot.writeStructEnd()
|
|
|
1600 |
|
| 3431 |
rajveer |
1601 |
def validate(self):
|
|
|
1602 |
return
|
|
|
1603 |
|
|
|
1604 |
|
| 420 |
ashish |
1605 |
def __repr__(self):
|
|
|
1606 |
L = ['%s=%r' % (key, value)
|
|
|
1607 |
for key, value in self.__dict__.iteritems()]
|
|
|
1608 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1609 |
|
|
|
1610 |
def __eq__(self, other):
|
|
|
1611 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1612 |
|
|
|
1613 |
def __ne__(self, other):
|
|
|
1614 |
return not (self == other)
|
|
|
1615 |
|
| 4141 |
chandransh |
1616 |
class getPaymentsByCapturedDate_args:
|
|
|
1617 |
"""
|
|
|
1618 |
Attributes:
|
|
|
1619 |
- fromTime
|
|
|
1620 |
- toTime
|
|
|
1621 |
- gatewayId
|
|
|
1622 |
"""
|
|
|
1623 |
|
|
|
1624 |
thrift_spec = (
|
|
|
1625 |
None, # 0
|
|
|
1626 |
(1, TType.I64, 'fromTime', None, None, ), # 1
|
|
|
1627 |
(2, TType.I64, 'toTime', None, None, ), # 2
|
|
|
1628 |
(3, TType.I64, 'gatewayId', None, None, ), # 3
|
|
|
1629 |
)
|
|
|
1630 |
|
|
|
1631 |
def __init__(self, fromTime=None, toTime=None, gatewayId=None,):
|
|
|
1632 |
self.fromTime = fromTime
|
|
|
1633 |
self.toTime = toTime
|
|
|
1634 |
self.gatewayId = gatewayId
|
|
|
1635 |
|
|
|
1636 |
def read(self, iprot):
|
|
|
1637 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1638 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1639 |
return
|
|
|
1640 |
iprot.readStructBegin()
|
|
|
1641 |
while True:
|
|
|
1642 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1643 |
if ftype == TType.STOP:
|
|
|
1644 |
break
|
|
|
1645 |
if fid == 1:
|
|
|
1646 |
if ftype == TType.I64:
|
|
|
1647 |
self.fromTime = iprot.readI64();
|
|
|
1648 |
else:
|
|
|
1649 |
iprot.skip(ftype)
|
|
|
1650 |
elif fid == 2:
|
|
|
1651 |
if ftype == TType.I64:
|
|
|
1652 |
self.toTime = iprot.readI64();
|
|
|
1653 |
else:
|
|
|
1654 |
iprot.skip(ftype)
|
|
|
1655 |
elif fid == 3:
|
|
|
1656 |
if ftype == TType.I64:
|
|
|
1657 |
self.gatewayId = iprot.readI64();
|
|
|
1658 |
else:
|
|
|
1659 |
iprot.skip(ftype)
|
|
|
1660 |
else:
|
|
|
1661 |
iprot.skip(ftype)
|
|
|
1662 |
iprot.readFieldEnd()
|
|
|
1663 |
iprot.readStructEnd()
|
|
|
1664 |
|
|
|
1665 |
def write(self, oprot):
|
|
|
1666 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1667 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1668 |
return
|
|
|
1669 |
oprot.writeStructBegin('getPaymentsByCapturedDate_args')
|
|
|
1670 |
if self.fromTime is not None:
|
|
|
1671 |
oprot.writeFieldBegin('fromTime', TType.I64, 1)
|
|
|
1672 |
oprot.writeI64(self.fromTime)
|
|
|
1673 |
oprot.writeFieldEnd()
|
|
|
1674 |
if self.toTime is not None:
|
|
|
1675 |
oprot.writeFieldBegin('toTime', TType.I64, 2)
|
|
|
1676 |
oprot.writeI64(self.toTime)
|
|
|
1677 |
oprot.writeFieldEnd()
|
|
|
1678 |
if self.gatewayId is not None:
|
|
|
1679 |
oprot.writeFieldBegin('gatewayId', TType.I64, 3)
|
|
|
1680 |
oprot.writeI64(self.gatewayId)
|
|
|
1681 |
oprot.writeFieldEnd()
|
|
|
1682 |
oprot.writeFieldStop()
|
|
|
1683 |
oprot.writeStructEnd()
|
|
|
1684 |
|
|
|
1685 |
def validate(self):
|
|
|
1686 |
return
|
|
|
1687 |
|
|
|
1688 |
|
|
|
1689 |
def __repr__(self):
|
|
|
1690 |
L = ['%s=%r' % (key, value)
|
|
|
1691 |
for key, value in self.__dict__.iteritems()]
|
|
|
1692 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1693 |
|
|
|
1694 |
def __eq__(self, other):
|
|
|
1695 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1696 |
|
|
|
1697 |
def __ne__(self, other):
|
|
|
1698 |
return not (self == other)
|
|
|
1699 |
|
|
|
1700 |
class getPaymentsByCapturedDate_result:
|
|
|
1701 |
"""
|
|
|
1702 |
Attributes:
|
|
|
1703 |
- success
|
|
|
1704 |
- pe
|
|
|
1705 |
"""
|
|
|
1706 |
|
|
|
1707 |
thrift_spec = (
|
|
|
1708 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
|
|
|
1709 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1710 |
)
|
|
|
1711 |
|
|
|
1712 |
def __init__(self, success=None, pe=None,):
|
|
|
1713 |
self.success = success
|
|
|
1714 |
self.pe = pe
|
|
|
1715 |
|
|
|
1716 |
def read(self, iprot):
|
|
|
1717 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1718 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1719 |
return
|
|
|
1720 |
iprot.readStructBegin()
|
|
|
1721 |
while True:
|
|
|
1722 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1723 |
if ftype == TType.STOP:
|
|
|
1724 |
break
|
|
|
1725 |
if fid == 0:
|
|
|
1726 |
if ftype == TType.LIST:
|
|
|
1727 |
self.success = []
|
|
|
1728 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
1729 |
for _i39 in xrange(_size35):
|
|
|
1730 |
_elem40 = Payment()
|
|
|
1731 |
_elem40.read(iprot)
|
|
|
1732 |
self.success.append(_elem40)
|
|
|
1733 |
iprot.readListEnd()
|
|
|
1734 |
else:
|
|
|
1735 |
iprot.skip(ftype)
|
|
|
1736 |
elif fid == 1:
|
|
|
1737 |
if ftype == TType.STRUCT:
|
|
|
1738 |
self.pe = PaymentException()
|
|
|
1739 |
self.pe.read(iprot)
|
|
|
1740 |
else:
|
|
|
1741 |
iprot.skip(ftype)
|
|
|
1742 |
else:
|
|
|
1743 |
iprot.skip(ftype)
|
|
|
1744 |
iprot.readFieldEnd()
|
|
|
1745 |
iprot.readStructEnd()
|
|
|
1746 |
|
|
|
1747 |
def write(self, oprot):
|
|
|
1748 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1749 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1750 |
return
|
|
|
1751 |
oprot.writeStructBegin('getPaymentsByCapturedDate_result')
|
|
|
1752 |
if self.success is not None:
|
|
|
1753 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1754 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1755 |
for iter41 in self.success:
|
|
|
1756 |
iter41.write(oprot)
|
|
|
1757 |
oprot.writeListEnd()
|
|
|
1758 |
oprot.writeFieldEnd()
|
|
|
1759 |
if self.pe is not None:
|
|
|
1760 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1761 |
self.pe.write(oprot)
|
|
|
1762 |
oprot.writeFieldEnd()
|
|
|
1763 |
oprot.writeFieldStop()
|
|
|
1764 |
oprot.writeStructEnd()
|
|
|
1765 |
|
|
|
1766 |
def validate(self):
|
|
|
1767 |
return
|
|
|
1768 |
|
|
|
1769 |
|
|
|
1770 |
def __repr__(self):
|
|
|
1771 |
L = ['%s=%r' % (key, value)
|
|
|
1772 |
for key, value in self.__dict__.iteritems()]
|
|
|
1773 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1774 |
|
|
|
1775 |
def __eq__(self, other):
|
|
|
1776 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1777 |
|
|
|
1778 |
def __ne__(self, other):
|
|
|
1779 |
return not (self == other)
|
|
|
1780 |
|
| 696 |
rajveer |
1781 |
class getPaymentGateway_args:
|
| 420 |
ashish |
1782 |
"""
|
|
|
1783 |
Attributes:
|
|
|
1784 |
- id
|
|
|
1785 |
"""
|
|
|
1786 |
|
|
|
1787 |
thrift_spec = (
|
|
|
1788 |
None, # 0
|
|
|
1789 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1790 |
)
|
|
|
1791 |
|
| 696 |
rajveer |
1792 |
def __init__(self, id=None,):
|
| 420 |
ashish |
1793 |
self.id = id
|
|
|
1794 |
|
|
|
1795 |
def read(self, iprot):
|
|
|
1796 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1797 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1798 |
return
|
|
|
1799 |
iprot.readStructBegin()
|
|
|
1800 |
while True:
|
|
|
1801 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1802 |
if ftype == TType.STOP:
|
|
|
1803 |
break
|
|
|
1804 |
if fid == 1:
|
|
|
1805 |
if ftype == TType.I64:
|
|
|
1806 |
self.id = iprot.readI64();
|
|
|
1807 |
else:
|
|
|
1808 |
iprot.skip(ftype)
|
|
|
1809 |
else:
|
|
|
1810 |
iprot.skip(ftype)
|
|
|
1811 |
iprot.readFieldEnd()
|
|
|
1812 |
iprot.readStructEnd()
|
|
|
1813 |
|
|
|
1814 |
def write(self, oprot):
|
|
|
1815 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1816 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1817 |
return
|
| 696 |
rajveer |
1818 |
oprot.writeStructBegin('getPaymentGateway_args')
|
| 3431 |
rajveer |
1819 |
if self.id is not None:
|
| 420 |
ashish |
1820 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1821 |
oprot.writeI64(self.id)
|
|
|
1822 |
oprot.writeFieldEnd()
|
|
|
1823 |
oprot.writeFieldStop()
|
|
|
1824 |
oprot.writeStructEnd()
|
|
|
1825 |
|
| 3431 |
rajveer |
1826 |
def validate(self):
|
|
|
1827 |
return
|
|
|
1828 |
|
|
|
1829 |
|
| 420 |
ashish |
1830 |
def __repr__(self):
|
|
|
1831 |
L = ['%s=%r' % (key, value)
|
|
|
1832 |
for key, value in self.__dict__.iteritems()]
|
|
|
1833 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1834 |
|
|
|
1835 |
def __eq__(self, other):
|
|
|
1836 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1837 |
|
|
|
1838 |
def __ne__(self, other):
|
|
|
1839 |
return not (self == other)
|
|
|
1840 |
|
| 696 |
rajveer |
1841 |
class getPaymentGateway_result:
|
| 420 |
ashish |
1842 |
"""
|
|
|
1843 |
Attributes:
|
|
|
1844 |
- success
|
|
|
1845 |
- pe
|
|
|
1846 |
"""
|
|
|
1847 |
|
|
|
1848 |
thrift_spec = (
|
| 696 |
rajveer |
1849 |
(0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
|
| 420 |
ashish |
1850 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1851 |
)
|
|
|
1852 |
|
|
|
1853 |
def __init__(self, success=None, pe=None,):
|
|
|
1854 |
self.success = success
|
|
|
1855 |
self.pe = pe
|
|
|
1856 |
|
|
|
1857 |
def read(self, iprot):
|
|
|
1858 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1859 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1860 |
return
|
|
|
1861 |
iprot.readStructBegin()
|
|
|
1862 |
while True:
|
|
|
1863 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1864 |
if ftype == TType.STOP:
|
|
|
1865 |
break
|
|
|
1866 |
if fid == 0:
|
| 696 |
rajveer |
1867 |
if ftype == TType.STRUCT:
|
|
|
1868 |
self.success = PaymentGateway()
|
|
|
1869 |
self.success.read(iprot)
|
| 420 |
ashish |
1870 |
else:
|
|
|
1871 |
iprot.skip(ftype)
|
|
|
1872 |
elif fid == 1:
|
|
|
1873 |
if ftype == TType.STRUCT:
|
|
|
1874 |
self.pe = PaymentException()
|
|
|
1875 |
self.pe.read(iprot)
|
|
|
1876 |
else:
|
|
|
1877 |
iprot.skip(ftype)
|
|
|
1878 |
else:
|
|
|
1879 |
iprot.skip(ftype)
|
|
|
1880 |
iprot.readFieldEnd()
|
|
|
1881 |
iprot.readStructEnd()
|
|
|
1882 |
|
|
|
1883 |
def write(self, oprot):
|
|
|
1884 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1885 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1886 |
return
|
| 696 |
rajveer |
1887 |
oprot.writeStructBegin('getPaymentGateway_result')
|
| 3431 |
rajveer |
1888 |
if self.success is not None:
|
| 696 |
rajveer |
1889 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1890 |
self.success.write(oprot)
|
| 420 |
ashish |
1891 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1892 |
if self.pe is not None:
|
| 420 |
ashish |
1893 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
1894 |
self.pe.write(oprot)
|
|
|
1895 |
oprot.writeFieldEnd()
|
|
|
1896 |
oprot.writeFieldStop()
|
|
|
1897 |
oprot.writeStructEnd()
|
|
|
1898 |
|
| 3431 |
rajveer |
1899 |
def validate(self):
|
|
|
1900 |
return
|
|
|
1901 |
|
|
|
1902 |
|
| 420 |
ashish |
1903 |
def __repr__(self):
|
|
|
1904 |
L = ['%s=%r' % (key, value)
|
|
|
1905 |
for key, value in self.__dict__.iteritems()]
|
|
|
1906 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1907 |
|
|
|
1908 |
def __eq__(self, other):
|
|
|
1909 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1910 |
|
|
|
1911 |
def __ne__(self, other):
|
|
|
1912 |
return not (self == other)
|
|
|
1913 |
|
| 696 |
rajveer |
1914 |
class getPayment_args:
|
| 420 |
ashish |
1915 |
"""
|
|
|
1916 |
Attributes:
|
|
|
1917 |
- id
|
|
|
1918 |
"""
|
|
|
1919 |
|
|
|
1920 |
thrift_spec = (
|
|
|
1921 |
None, # 0
|
|
|
1922 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1923 |
)
|
|
|
1924 |
|
|
|
1925 |
def __init__(self, id=None,):
|
|
|
1926 |
self.id = id
|
|
|
1927 |
|
|
|
1928 |
def read(self, iprot):
|
|
|
1929 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1930 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1931 |
return
|
|
|
1932 |
iprot.readStructBegin()
|
|
|
1933 |
while True:
|
|
|
1934 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1935 |
if ftype == TType.STOP:
|
|
|
1936 |
break
|
|
|
1937 |
if fid == 1:
|
|
|
1938 |
if ftype == TType.I64:
|
|
|
1939 |
self.id = iprot.readI64();
|
|
|
1940 |
else:
|
|
|
1941 |
iprot.skip(ftype)
|
|
|
1942 |
else:
|
|
|
1943 |
iprot.skip(ftype)
|
|
|
1944 |
iprot.readFieldEnd()
|
|
|
1945 |
iprot.readStructEnd()
|
|
|
1946 |
|
|
|
1947 |
def write(self, oprot):
|
|
|
1948 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1949 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1950 |
return
|
| 696 |
rajveer |
1951 |
oprot.writeStructBegin('getPayment_args')
|
| 3431 |
rajveer |
1952 |
if self.id is not None:
|
| 420 |
ashish |
1953 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1954 |
oprot.writeI64(self.id)
|
|
|
1955 |
oprot.writeFieldEnd()
|
|
|
1956 |
oprot.writeFieldStop()
|
|
|
1957 |
oprot.writeStructEnd()
|
|
|
1958 |
|
| 3431 |
rajveer |
1959 |
def validate(self):
|
|
|
1960 |
return
|
|
|
1961 |
|
|
|
1962 |
|
| 420 |
ashish |
1963 |
def __repr__(self):
|
|
|
1964 |
L = ['%s=%r' % (key, value)
|
|
|
1965 |
for key, value in self.__dict__.iteritems()]
|
|
|
1966 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1967 |
|
|
|
1968 |
def __eq__(self, other):
|
|
|
1969 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1970 |
|
|
|
1971 |
def __ne__(self, other):
|
|
|
1972 |
return not (self == other)
|
|
|
1973 |
|
| 696 |
rajveer |
1974 |
class getPayment_result:
|
| 420 |
ashish |
1975 |
"""
|
|
|
1976 |
Attributes:
|
|
|
1977 |
- success
|
|
|
1978 |
- pe
|
|
|
1979 |
"""
|
|
|
1980 |
|
|
|
1981 |
thrift_spec = (
|
| 696 |
rajveer |
1982 |
(0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
|
| 420 |
ashish |
1983 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
1984 |
)
|
|
|
1985 |
|
|
|
1986 |
def __init__(self, success=None, pe=None,):
|
|
|
1987 |
self.success = success
|
|
|
1988 |
self.pe = pe
|
|
|
1989 |
|
|
|
1990 |
def read(self, iprot):
|
|
|
1991 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1992 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1993 |
return
|
|
|
1994 |
iprot.readStructBegin()
|
|
|
1995 |
while True:
|
|
|
1996 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1997 |
if ftype == TType.STOP:
|
|
|
1998 |
break
|
|
|
1999 |
if fid == 0:
|
|
|
2000 |
if ftype == TType.STRUCT:
|
| 696 |
rajveer |
2001 |
self.success = Payment()
|
| 420 |
ashish |
2002 |
self.success.read(iprot)
|
|
|
2003 |
else:
|
|
|
2004 |
iprot.skip(ftype)
|
|
|
2005 |
elif fid == 1:
|
|
|
2006 |
if ftype == TType.STRUCT:
|
|
|
2007 |
self.pe = PaymentException()
|
|
|
2008 |
self.pe.read(iprot)
|
|
|
2009 |
else:
|
|
|
2010 |
iprot.skip(ftype)
|
|
|
2011 |
else:
|
|
|
2012 |
iprot.skip(ftype)
|
|
|
2013 |
iprot.readFieldEnd()
|
|
|
2014 |
iprot.readStructEnd()
|
|
|
2015 |
|
|
|
2016 |
def write(self, oprot):
|
|
|
2017 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2018 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2019 |
return
|
| 696 |
rajveer |
2020 |
oprot.writeStructBegin('getPayment_result')
|
| 3431 |
rajveer |
2021 |
if self.success is not None:
|
| 420 |
ashish |
2022 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2023 |
self.success.write(oprot)
|
|
|
2024 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2025 |
if self.pe is not None:
|
| 420 |
ashish |
2026 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2027 |
self.pe.write(oprot)
|
|
|
2028 |
oprot.writeFieldEnd()
|
|
|
2029 |
oprot.writeFieldStop()
|
|
|
2030 |
oprot.writeStructEnd()
|
|
|
2031 |
|
| 3431 |
rajveer |
2032 |
def validate(self):
|
|
|
2033 |
return
|
|
|
2034 |
|
|
|
2035 |
|
| 420 |
ashish |
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 getPaymentForTxnId_args:
|
| 420 |
ashish |
2048 |
"""
|
|
|
2049 |
Attributes:
|
| 696 |
rajveer |
2050 |
- txnId
|
| 420 |
ashish |
2051 |
"""
|
|
|
2052 |
|
|
|
2053 |
thrift_spec = (
|
|
|
2054 |
None, # 0
|
| 696 |
rajveer |
2055 |
(1, TType.I64, 'txnId', None, None, ), # 1
|
| 420 |
ashish |
2056 |
)
|
|
|
2057 |
|
| 696 |
rajveer |
2058 |
def __init__(self, txnId=None,):
|
|
|
2059 |
self.txnId = txnId
|
| 420 |
ashish |
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:
|
| 696 |
rajveer |
2072 |
self.txnId = iprot.readI64();
|
| 420 |
ashish |
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('getPaymentForTxnId_args')
|
| 3431 |
rajveer |
2085 |
if self.txnId is not None:
|
| 696 |
rajveer |
2086 |
oprot.writeFieldBegin('txnId', TType.I64, 1)
|
|
|
2087 |
oprot.writeI64(self.txnId)
|
| 420 |
ashish |
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 getPaymentForTxnId_result:
|
| 420 |
ashish |
2108 |
"""
|
|
|
2109 |
Attributes:
|
|
|
2110 |
- success
|
|
|
2111 |
- pe
|
|
|
2112 |
"""
|
|
|
2113 |
|
|
|
2114 |
thrift_spec = (
|
| 696 |
rajveer |
2115 |
(0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.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.LIST:
|
|
|
2134 |
self.success = []
|
| 4141 |
chandransh |
2135 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
2136 |
for _i46 in xrange(_size42):
|
|
|
2137 |
_elem47 = Payment()
|
|
|
2138 |
_elem47.read(iprot)
|
|
|
2139 |
self.success.append(_elem47)
|
| 696 |
rajveer |
2140 |
iprot.readListEnd()
|
| 420 |
ashish |
2141 |
else:
|
|
|
2142 |
iprot.skip(ftype)
|
|
|
2143 |
elif fid == 1:
|
|
|
2144 |
if ftype == TType.STRUCT:
|
|
|
2145 |
self.pe = PaymentException()
|
|
|
2146 |
self.pe.read(iprot)
|
|
|
2147 |
else:
|
|
|
2148 |
iprot.skip(ftype)
|
|
|
2149 |
else:
|
|
|
2150 |
iprot.skip(ftype)
|
|
|
2151 |
iprot.readFieldEnd()
|
|
|
2152 |
iprot.readStructEnd()
|
|
|
2153 |
|
|
|
2154 |
def write(self, oprot):
|
|
|
2155 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2156 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2157 |
return
|
| 696 |
rajveer |
2158 |
oprot.writeStructBegin('getPaymentForTxnId_result')
|
| 3431 |
rajveer |
2159 |
if self.success is not None:
|
| 696 |
rajveer |
2160 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2161 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 4141 |
chandransh |
2162 |
for iter48 in self.success:
|
|
|
2163 |
iter48.write(oprot)
|
| 696 |
rajveer |
2164 |
oprot.writeListEnd()
|
| 420 |
ashish |
2165 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2166 |
if self.pe is not None:
|
| 420 |
ashish |
2167 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2168 |
self.pe.write(oprot)
|
|
|
2169 |
oprot.writeFieldEnd()
|
|
|
2170 |
oprot.writeFieldStop()
|
|
|
2171 |
oprot.writeStructEnd()
|
|
|
2172 |
|
| 3431 |
rajveer |
2173 |
def validate(self):
|
|
|
2174 |
return
|
|
|
2175 |
|
|
|
2176 |
|
| 420 |
ashish |
2177 |
def __repr__(self):
|
|
|
2178 |
L = ['%s=%r' % (key, value)
|
|
|
2179 |
for key, value in self.__dict__.iteritems()]
|
|
|
2180 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2181 |
|
|
|
2182 |
def __eq__(self, other):
|
|
|
2183 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2184 |
|
|
|
2185 |
def __ne__(self, other):
|
|
|
2186 |
return not (self == other)
|
|
|
2187 |
|
| 696 |
rajveer |
2188 |
class updatePaymentDetails_args:
|
| 420 |
ashish |
2189 |
"""
|
|
|
2190 |
Attributes:
|
|
|
2191 |
- id
|
| 696 |
rajveer |
2192 |
- gatewayPaymentId
|
|
|
2193 |
- sessionId
|
|
|
2194 |
- gatewayTxnStatus
|
|
|
2195 |
- description
|
|
|
2196 |
- gatewayTxnId
|
|
|
2197 |
- authCode
|
|
|
2198 |
- referenceCode
|
|
|
2199 |
- errorCode
|
|
|
2200 |
- status
|
| 1120 |
rajveer |
2201 |
- gatewayTxnDate
|
| 696 |
rajveer |
2202 |
- attributes
|
| 420 |
ashish |
2203 |
"""
|
|
|
2204 |
|
|
|
2205 |
thrift_spec = (
|
|
|
2206 |
None, # 0
|
|
|
2207 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 696 |
rajveer |
2208 |
(2, TType.STRING, 'gatewayPaymentId', None, None, ), # 2
|
|
|
2209 |
(3, TType.STRING, 'sessionId', None, None, ), # 3
|
|
|
2210 |
(4, TType.STRING, 'gatewayTxnStatus', None, None, ), # 4
|
|
|
2211 |
(5, TType.STRING, 'description', None, None, ), # 5
|
|
|
2212 |
(6, TType.STRING, 'gatewayTxnId', None, None, ), # 6
|
|
|
2213 |
(7, TType.STRING, 'authCode', None, None, ), # 7
|
|
|
2214 |
(8, TType.STRING, 'referenceCode', None, None, ), # 8
|
|
|
2215 |
(9, TType.STRING, 'errorCode', None, None, ), # 9
|
|
|
2216 |
(10, TType.I32, 'status', None, None, ), # 10
|
| 1120 |
rajveer |
2217 |
(11, TType.STRING, 'gatewayTxnDate', None, None, ), # 11
|
|
|
2218 |
(12, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 12
|
| 420 |
ashish |
2219 |
)
|
|
|
2220 |
|
| 1120 |
rajveer |
2221 |
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 |
2222 |
self.id = id
|
| 696 |
rajveer |
2223 |
self.gatewayPaymentId = gatewayPaymentId
|
|
|
2224 |
self.sessionId = sessionId
|
|
|
2225 |
self.gatewayTxnStatus = gatewayTxnStatus
|
|
|
2226 |
self.description = description
|
|
|
2227 |
self.gatewayTxnId = gatewayTxnId
|
|
|
2228 |
self.authCode = authCode
|
|
|
2229 |
self.referenceCode = referenceCode
|
|
|
2230 |
self.errorCode = errorCode
|
|
|
2231 |
self.status = status
|
| 1120 |
rajveer |
2232 |
self.gatewayTxnDate = gatewayTxnDate
|
| 696 |
rajveer |
2233 |
self.attributes = attributes
|
| 420 |
ashish |
2234 |
|
|
|
2235 |
def read(self, iprot):
|
|
|
2236 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2237 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2238 |
return
|
|
|
2239 |
iprot.readStructBegin()
|
|
|
2240 |
while True:
|
|
|
2241 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2242 |
if ftype == TType.STOP:
|
|
|
2243 |
break
|
|
|
2244 |
if fid == 1:
|
|
|
2245 |
if ftype == TType.I64:
|
|
|
2246 |
self.id = iprot.readI64();
|
|
|
2247 |
else:
|
|
|
2248 |
iprot.skip(ftype)
|
|
|
2249 |
elif fid == 2:
|
|
|
2250 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2251 |
self.gatewayPaymentId = iprot.readString();
|
| 420 |
ashish |
2252 |
else:
|
|
|
2253 |
iprot.skip(ftype)
|
|
|
2254 |
elif fid == 3:
|
|
|
2255 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2256 |
self.sessionId = iprot.readString();
|
| 420 |
ashish |
2257 |
else:
|
|
|
2258 |
iprot.skip(ftype)
|
|
|
2259 |
elif fid == 4:
|
|
|
2260 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2261 |
self.gatewayTxnStatus = iprot.readString();
|
| 420 |
ashish |
2262 |
else:
|
|
|
2263 |
iprot.skip(ftype)
|
|
|
2264 |
elif fid == 5:
|
|
|
2265 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2266 |
self.description = iprot.readString();
|
| 420 |
ashish |
2267 |
else:
|
|
|
2268 |
iprot.skip(ftype)
|
|
|
2269 |
elif fid == 6:
|
|
|
2270 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2271 |
self.gatewayTxnId = iprot.readString();
|
| 420 |
ashish |
2272 |
else:
|
|
|
2273 |
iprot.skip(ftype)
|
|
|
2274 |
elif fid == 7:
|
|
|
2275 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2276 |
self.authCode = iprot.readString();
|
| 420 |
ashish |
2277 |
else:
|
|
|
2278 |
iprot.skip(ftype)
|
|
|
2279 |
elif fid == 8:
|
|
|
2280 |
if ftype == TType.STRING:
|
| 696 |
rajveer |
2281 |
self.referenceCode = iprot.readString();
|
| 420 |
ashish |
2282 |
else:
|
|
|
2283 |
iprot.skip(ftype)
|
| 696 |
rajveer |
2284 |
elif fid == 9:
|
|
|
2285 |
if ftype == TType.STRING:
|
|
|
2286 |
self.errorCode = iprot.readString();
|
|
|
2287 |
else:
|
|
|
2288 |
iprot.skip(ftype)
|
|
|
2289 |
elif fid == 10:
|
|
|
2290 |
if ftype == TType.I32:
|
|
|
2291 |
self.status = iprot.readI32();
|
|
|
2292 |
else:
|
|
|
2293 |
iprot.skip(ftype)
|
|
|
2294 |
elif fid == 11:
|
| 1120 |
rajveer |
2295 |
if ftype == TType.STRING:
|
|
|
2296 |
self.gatewayTxnDate = iprot.readString();
|
|
|
2297 |
else:
|
|
|
2298 |
iprot.skip(ftype)
|
|
|
2299 |
elif fid == 12:
|
| 696 |
rajveer |
2300 |
if ftype == TType.LIST:
|
|
|
2301 |
self.attributes = []
|
| 4141 |
chandransh |
2302 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
2303 |
for _i53 in xrange(_size49):
|
|
|
2304 |
_elem54 = Attribute()
|
|
|
2305 |
_elem54.read(iprot)
|
|
|
2306 |
self.attributes.append(_elem54)
|
| 696 |
rajveer |
2307 |
iprot.readListEnd()
|
|
|
2308 |
else:
|
|
|
2309 |
iprot.skip(ftype)
|
| 420 |
ashish |
2310 |
else:
|
|
|
2311 |
iprot.skip(ftype)
|
|
|
2312 |
iprot.readFieldEnd()
|
|
|
2313 |
iprot.readStructEnd()
|
|
|
2314 |
|
|
|
2315 |
def write(self, oprot):
|
|
|
2316 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2317 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2318 |
return
|
| 696 |
rajveer |
2319 |
oprot.writeStructBegin('updatePaymentDetails_args')
|
| 3431 |
rajveer |
2320 |
if self.id is not None:
|
| 420 |
ashish |
2321 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2322 |
oprot.writeI64(self.id)
|
|
|
2323 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2324 |
if self.gatewayPaymentId is not None:
|
| 696 |
rajveer |
2325 |
oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
|
|
|
2326 |
oprot.writeString(self.gatewayPaymentId)
|
| 420 |
ashish |
2327 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2328 |
if self.sessionId is not None:
|
| 696 |
rajveer |
2329 |
oprot.writeFieldBegin('sessionId', TType.STRING, 3)
|
|
|
2330 |
oprot.writeString(self.sessionId)
|
| 420 |
ashish |
2331 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2332 |
if self.gatewayTxnStatus is not None:
|
| 696 |
rajveer |
2333 |
oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
|
|
|
2334 |
oprot.writeString(self.gatewayTxnStatus)
|
| 420 |
ashish |
2335 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2336 |
if self.description is not None:
|
| 696 |
rajveer |
2337 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
2338 |
oprot.writeString(self.description)
|
| 420 |
ashish |
2339 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2340 |
if self.gatewayTxnId is not None:
|
| 696 |
rajveer |
2341 |
oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
|
|
|
2342 |
oprot.writeString(self.gatewayTxnId)
|
| 420 |
ashish |
2343 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2344 |
if self.authCode is not None:
|
| 696 |
rajveer |
2345 |
oprot.writeFieldBegin('authCode', TType.STRING, 7)
|
|
|
2346 |
oprot.writeString(self.authCode)
|
| 420 |
ashish |
2347 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2348 |
if self.referenceCode is not None:
|
| 696 |
rajveer |
2349 |
oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
|
|
|
2350 |
oprot.writeString(self.referenceCode)
|
| 420 |
ashish |
2351 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2352 |
if self.errorCode is not None:
|
| 696 |
rajveer |
2353 |
oprot.writeFieldBegin('errorCode', TType.STRING, 9)
|
|
|
2354 |
oprot.writeString(self.errorCode)
|
|
|
2355 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2356 |
if self.status is not None:
|
| 696 |
rajveer |
2357 |
oprot.writeFieldBegin('status', TType.I32, 10)
|
|
|
2358 |
oprot.writeI32(self.status)
|
|
|
2359 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2360 |
if self.gatewayTxnDate is not None:
|
| 1120 |
rajveer |
2361 |
oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
|
|
|
2362 |
oprot.writeString(self.gatewayTxnDate)
|
|
|
2363 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2364 |
if self.attributes is not None:
|
| 1120 |
rajveer |
2365 |
oprot.writeFieldBegin('attributes', TType.LIST, 12)
|
| 696 |
rajveer |
2366 |
oprot.writeListBegin(TType.STRUCT, len(self.attributes))
|
| 4141 |
chandransh |
2367 |
for iter55 in self.attributes:
|
|
|
2368 |
iter55.write(oprot)
|
| 696 |
rajveer |
2369 |
oprot.writeListEnd()
|
|
|
2370 |
oprot.writeFieldEnd()
|
| 420 |
ashish |
2371 |
oprot.writeFieldStop()
|
|
|
2372 |
oprot.writeStructEnd()
|
|
|
2373 |
|
| 3431 |
rajveer |
2374 |
def validate(self):
|
|
|
2375 |
return
|
|
|
2376 |
|
|
|
2377 |
|
| 420 |
ashish |
2378 |
def __repr__(self):
|
|
|
2379 |
L = ['%s=%r' % (key, value)
|
|
|
2380 |
for key, value in self.__dict__.iteritems()]
|
|
|
2381 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2382 |
|
|
|
2383 |
def __eq__(self, other):
|
|
|
2384 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2385 |
|
|
|
2386 |
def __ne__(self, other):
|
|
|
2387 |
return not (self == other)
|
|
|
2388 |
|
| 696 |
rajveer |
2389 |
class updatePaymentDetails_result:
|
| 420 |
ashish |
2390 |
"""
|
|
|
2391 |
Attributes:
|
| 696 |
rajveer |
2392 |
- success
|
| 420 |
ashish |
2393 |
- pe
|
|
|
2394 |
"""
|
|
|
2395 |
|
|
|
2396 |
thrift_spec = (
|
| 696 |
rajveer |
2397 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 420 |
ashish |
2398 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2399 |
)
|
|
|
2400 |
|
| 696 |
rajveer |
2401 |
def __init__(self, success=None, pe=None,):
|
|
|
2402 |
self.success = success
|
| 420 |
ashish |
2403 |
self.pe = pe
|
|
|
2404 |
|
|
|
2405 |
def read(self, iprot):
|
|
|
2406 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2407 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2408 |
return
|
|
|
2409 |
iprot.readStructBegin()
|
|
|
2410 |
while True:
|
|
|
2411 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2412 |
if ftype == TType.STOP:
|
|
|
2413 |
break
|
| 696 |
rajveer |
2414 |
if fid == 0:
|
|
|
2415 |
if ftype == TType.BOOL:
|
|
|
2416 |
self.success = iprot.readBool();
|
|
|
2417 |
else:
|
|
|
2418 |
iprot.skip(ftype)
|
|
|
2419 |
elif fid == 1:
|
| 420 |
ashish |
2420 |
if ftype == TType.STRUCT:
|
|
|
2421 |
self.pe = PaymentException()
|
|
|
2422 |
self.pe.read(iprot)
|
|
|
2423 |
else:
|
|
|
2424 |
iprot.skip(ftype)
|
|
|
2425 |
else:
|
|
|
2426 |
iprot.skip(ftype)
|
|
|
2427 |
iprot.readFieldEnd()
|
|
|
2428 |
iprot.readStructEnd()
|
|
|
2429 |
|
|
|
2430 |
def write(self, oprot):
|
|
|
2431 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2432 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2433 |
return
|
| 696 |
rajveer |
2434 |
oprot.writeStructBegin('updatePaymentDetails_result')
|
| 3431 |
rajveer |
2435 |
if self.success is not None:
|
| 696 |
rajveer |
2436 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
2437 |
oprot.writeBool(self.success)
|
|
|
2438 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2439 |
if self.pe is not None:
|
| 420 |
ashish |
2440 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2441 |
self.pe.write(oprot)
|
|
|
2442 |
oprot.writeFieldEnd()
|
|
|
2443 |
oprot.writeFieldStop()
|
|
|
2444 |
oprot.writeStructEnd()
|
|
|
2445 |
|
| 3431 |
rajveer |
2446 |
def validate(self):
|
|
|
2447 |
return
|
|
|
2448 |
|
|
|
2449 |
|
| 420 |
ashish |
2450 |
def __repr__(self):
|
|
|
2451 |
L = ['%s=%r' % (key, value)
|
|
|
2452 |
for key, value in self.__dict__.iteritems()]
|
|
|
2453 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2454 |
|
|
|
2455 |
def __eq__(self, other):
|
|
|
2456 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2457 |
|
|
|
2458 |
def __ne__(self, other):
|
|
|
2459 |
return not (self == other)
|
|
|
2460 |
|
| 1731 |
ankur.sing |
2461 |
class getSuccessfulPaymentsAmountRange_args:
|
| 420 |
ashish |
2462 |
|
| 1627 |
ankur.sing |
2463 |
thrift_spec = (
|
|
|
2464 |
)
|
|
|
2465 |
|
|
|
2466 |
def read(self, iprot):
|
|
|
2467 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2468 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2469 |
return
|
|
|
2470 |
iprot.readStructBegin()
|
|
|
2471 |
while True:
|
|
|
2472 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2473 |
if ftype == TType.STOP:
|
|
|
2474 |
break
|
|
|
2475 |
else:
|
|
|
2476 |
iprot.skip(ftype)
|
|
|
2477 |
iprot.readFieldEnd()
|
|
|
2478 |
iprot.readStructEnd()
|
|
|
2479 |
|
|
|
2480 |
def write(self, oprot):
|
|
|
2481 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2482 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2483 |
return
|
| 1731 |
ankur.sing |
2484 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_args')
|
| 1627 |
ankur.sing |
2485 |
oprot.writeFieldStop()
|
|
|
2486 |
oprot.writeStructEnd()
|
|
|
2487 |
|
| 3431 |
rajveer |
2488 |
def validate(self):
|
|
|
2489 |
return
|
|
|
2490 |
|
|
|
2491 |
|
| 1627 |
ankur.sing |
2492 |
def __repr__(self):
|
|
|
2493 |
L = ['%s=%r' % (key, value)
|
|
|
2494 |
for key, value in self.__dict__.iteritems()]
|
|
|
2495 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2496 |
|
|
|
2497 |
def __eq__(self, other):
|
|
|
2498 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2499 |
|
|
|
2500 |
def __ne__(self, other):
|
|
|
2501 |
return not (self == other)
|
|
|
2502 |
|
| 1731 |
ankur.sing |
2503 |
class getSuccessfulPaymentsAmountRange_result:
|
| 1627 |
ankur.sing |
2504 |
"""
|
|
|
2505 |
Attributes:
|
|
|
2506 |
- success
|
|
|
2507 |
"""
|
|
|
2508 |
|
|
|
2509 |
thrift_spec = (
|
| 1731 |
ankur.sing |
2510 |
(0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
|
| 1627 |
ankur.sing |
2511 |
)
|
|
|
2512 |
|
|
|
2513 |
def __init__(self, success=None,):
|
|
|
2514 |
self.success = success
|
|
|
2515 |
|
|
|
2516 |
def read(self, iprot):
|
|
|
2517 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2518 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2519 |
return
|
|
|
2520 |
iprot.readStructBegin()
|
|
|
2521 |
while True:
|
|
|
2522 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2523 |
if ftype == TType.STOP:
|
|
|
2524 |
break
|
|
|
2525 |
if fid == 0:
|
| 1731 |
ankur.sing |
2526 |
if ftype == TType.LIST:
|
|
|
2527 |
self.success = []
|
| 4141 |
chandransh |
2528 |
(_etype59, _size56) = iprot.readListBegin()
|
|
|
2529 |
for _i60 in xrange(_size56):
|
|
|
2530 |
_elem61 = iprot.readDouble();
|
|
|
2531 |
self.success.append(_elem61)
|
| 1731 |
ankur.sing |
2532 |
iprot.readListEnd()
|
| 1627 |
ankur.sing |
2533 |
else:
|
|
|
2534 |
iprot.skip(ftype)
|
|
|
2535 |
else:
|
|
|
2536 |
iprot.skip(ftype)
|
|
|
2537 |
iprot.readFieldEnd()
|
|
|
2538 |
iprot.readStructEnd()
|
|
|
2539 |
|
|
|
2540 |
def write(self, oprot):
|
|
|
2541 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2542 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2543 |
return
|
| 1731 |
ankur.sing |
2544 |
oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
|
| 3431 |
rajveer |
2545 |
if self.success is not None:
|
| 1731 |
ankur.sing |
2546 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2547 |
oprot.writeListBegin(TType.DOUBLE, len(self.success))
|
| 4141 |
chandransh |
2548 |
for iter62 in self.success:
|
|
|
2549 |
oprot.writeDouble(iter62)
|
| 1731 |
ankur.sing |
2550 |
oprot.writeListEnd()
|
| 1627 |
ankur.sing |
2551 |
oprot.writeFieldEnd()
|
|
|
2552 |
oprot.writeFieldStop()
|
|
|
2553 |
oprot.writeStructEnd()
|
|
|
2554 |
|
| 3431 |
rajveer |
2555 |
def validate(self):
|
|
|
2556 |
return
|
|
|
2557 |
|
|
|
2558 |
|
| 1627 |
ankur.sing |
2559 |
def __repr__(self):
|
|
|
2560 |
L = ['%s=%r' % (key, value)
|
|
|
2561 |
for key, value in self.__dict__.iteritems()]
|
|
|
2562 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2563 |
|
|
|
2564 |
def __eq__(self, other):
|
|
|
2565 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2566 |
|
|
|
2567 |
def __ne__(self, other):
|
|
|
2568 |
return not (self == other)
|
|
|
2569 |
|
| 3010 |
chandransh |
2570 |
class initializeHdfcPayment_args:
|
| 2708 |
chandransh |
2571 |
"""
|
|
|
2572 |
Attributes:
|
|
|
2573 |
- merchantPaymentId
|
|
|
2574 |
"""
|
|
|
2575 |
|
|
|
2576 |
thrift_spec = (
|
|
|
2577 |
None, # 0
|
|
|
2578 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
2579 |
)
|
|
|
2580 |
|
|
|
2581 |
def __init__(self, merchantPaymentId=None,):
|
|
|
2582 |
self.merchantPaymentId = merchantPaymentId
|
|
|
2583 |
|
|
|
2584 |
def read(self, iprot):
|
|
|
2585 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2586 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2587 |
return
|
|
|
2588 |
iprot.readStructBegin()
|
|
|
2589 |
while True:
|
|
|
2590 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2591 |
if ftype == TType.STOP:
|
|
|
2592 |
break
|
|
|
2593 |
if fid == 1:
|
|
|
2594 |
if ftype == TType.I64:
|
|
|
2595 |
self.merchantPaymentId = iprot.readI64();
|
|
|
2596 |
else:
|
|
|
2597 |
iprot.skip(ftype)
|
|
|
2598 |
else:
|
|
|
2599 |
iprot.skip(ftype)
|
|
|
2600 |
iprot.readFieldEnd()
|
|
|
2601 |
iprot.readStructEnd()
|
|
|
2602 |
|
|
|
2603 |
def write(self, oprot):
|
|
|
2604 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2605 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2606 |
return
|
| 3010 |
chandransh |
2607 |
oprot.writeStructBegin('initializeHdfcPayment_args')
|
| 3431 |
rajveer |
2608 |
if self.merchantPaymentId is not None:
|
| 2708 |
chandransh |
2609 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
2610 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
2611 |
oprot.writeFieldEnd()
|
|
|
2612 |
oprot.writeFieldStop()
|
|
|
2613 |
oprot.writeStructEnd()
|
|
|
2614 |
|
| 3431 |
rajveer |
2615 |
def validate(self):
|
|
|
2616 |
return
|
|
|
2617 |
|
|
|
2618 |
|
| 2708 |
chandransh |
2619 |
def __repr__(self):
|
|
|
2620 |
L = ['%s=%r' % (key, value)
|
|
|
2621 |
for key, value in self.__dict__.iteritems()]
|
|
|
2622 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2623 |
|
|
|
2624 |
def __eq__(self, other):
|
|
|
2625 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2626 |
|
|
|
2627 |
def __ne__(self, other):
|
|
|
2628 |
return not (self == other)
|
|
|
2629 |
|
| 3010 |
chandransh |
2630 |
class initializeHdfcPayment_result:
|
| 2708 |
chandransh |
2631 |
"""
|
|
|
2632 |
Attributes:
|
|
|
2633 |
- success
|
|
|
2634 |
- pe
|
|
|
2635 |
"""
|
|
|
2636 |
|
|
|
2637 |
thrift_spec = (
|
| 3010 |
chandransh |
2638 |
(0, TType.STRING, 'success', None, None, ), # 0
|
| 2708 |
chandransh |
2639 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2640 |
)
|
|
|
2641 |
|
|
|
2642 |
def __init__(self, success=None, pe=None,):
|
|
|
2643 |
self.success = success
|
|
|
2644 |
self.pe = pe
|
|
|
2645 |
|
|
|
2646 |
def read(self, iprot):
|
|
|
2647 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2648 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2649 |
return
|
|
|
2650 |
iprot.readStructBegin()
|
|
|
2651 |
while True:
|
|
|
2652 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2653 |
if ftype == TType.STOP:
|
|
|
2654 |
break
|
|
|
2655 |
if fid == 0:
|
| 3010 |
chandransh |
2656 |
if ftype == TType.STRING:
|
|
|
2657 |
self.success = iprot.readString();
|
| 2708 |
chandransh |
2658 |
else:
|
|
|
2659 |
iprot.skip(ftype)
|
|
|
2660 |
elif fid == 1:
|
|
|
2661 |
if ftype == TType.STRUCT:
|
|
|
2662 |
self.pe = PaymentException()
|
|
|
2663 |
self.pe.read(iprot)
|
|
|
2664 |
else:
|
|
|
2665 |
iprot.skip(ftype)
|
|
|
2666 |
else:
|
|
|
2667 |
iprot.skip(ftype)
|
|
|
2668 |
iprot.readFieldEnd()
|
|
|
2669 |
iprot.readStructEnd()
|
|
|
2670 |
|
|
|
2671 |
def write(self, oprot):
|
|
|
2672 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2673 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2674 |
return
|
| 3010 |
chandransh |
2675 |
oprot.writeStructBegin('initializeHdfcPayment_result')
|
| 3431 |
rajveer |
2676 |
if self.success is not None:
|
| 3010 |
chandransh |
2677 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
2678 |
oprot.writeString(self.success)
|
| 2708 |
chandransh |
2679 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2680 |
if self.pe is not None:
|
| 2708 |
chandransh |
2681 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2682 |
self.pe.write(oprot)
|
|
|
2683 |
oprot.writeFieldEnd()
|
|
|
2684 |
oprot.writeFieldStop()
|
|
|
2685 |
oprot.writeStructEnd()
|
|
|
2686 |
|
| 3431 |
rajveer |
2687 |
def validate(self):
|
|
|
2688 |
return
|
|
|
2689 |
|
|
|
2690 |
|
| 2708 |
chandransh |
2691 |
def __repr__(self):
|
|
|
2692 |
L = ['%s=%r' % (key, value)
|
|
|
2693 |
for key, value in self.__dict__.iteritems()]
|
|
|
2694 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2695 |
|
|
|
2696 |
def __eq__(self, other):
|
|
|
2697 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2698 |
|
|
|
2699 |
def __ne__(self, other):
|
|
|
2700 |
return not (self == other)
|
|
|
2701 |
|
| 3616 |
chandransh |
2702 |
class initializeHdfcEmiPayment_args:
|
|
|
2703 |
"""
|
|
|
2704 |
Attributes:
|
|
|
2705 |
- merchantPaymentId
|
|
|
2706 |
"""
|
|
|
2707 |
|
|
|
2708 |
thrift_spec = (
|
|
|
2709 |
None, # 0
|
|
|
2710 |
(1, TType.I64, 'merchantPaymentId', None, None, ), # 1
|
|
|
2711 |
)
|
|
|
2712 |
|
|
|
2713 |
def __init__(self, merchantPaymentId=None,):
|
|
|
2714 |
self.merchantPaymentId = merchantPaymentId
|
|
|
2715 |
|
|
|
2716 |
def read(self, iprot):
|
|
|
2717 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2718 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2719 |
return
|
|
|
2720 |
iprot.readStructBegin()
|
|
|
2721 |
while True:
|
|
|
2722 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2723 |
if ftype == TType.STOP:
|
|
|
2724 |
break
|
|
|
2725 |
if fid == 1:
|
|
|
2726 |
if ftype == TType.I64:
|
|
|
2727 |
self.merchantPaymentId = iprot.readI64();
|
|
|
2728 |
else:
|
|
|
2729 |
iprot.skip(ftype)
|
|
|
2730 |
else:
|
|
|
2731 |
iprot.skip(ftype)
|
|
|
2732 |
iprot.readFieldEnd()
|
|
|
2733 |
iprot.readStructEnd()
|
|
|
2734 |
|
|
|
2735 |
def write(self, oprot):
|
|
|
2736 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2737 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2738 |
return
|
|
|
2739 |
oprot.writeStructBegin('initializeHdfcEmiPayment_args')
|
|
|
2740 |
if self.merchantPaymentId is not None:
|
|
|
2741 |
oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
|
|
|
2742 |
oprot.writeI64(self.merchantPaymentId)
|
|
|
2743 |
oprot.writeFieldEnd()
|
|
|
2744 |
oprot.writeFieldStop()
|
|
|
2745 |
oprot.writeStructEnd()
|
|
|
2746 |
|
|
|
2747 |
def validate(self):
|
|
|
2748 |
return
|
|
|
2749 |
|
|
|
2750 |
|
|
|
2751 |
def __repr__(self):
|
|
|
2752 |
L = ['%s=%r' % (key, value)
|
|
|
2753 |
for key, value in self.__dict__.iteritems()]
|
|
|
2754 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2755 |
|
|
|
2756 |
def __eq__(self, other):
|
|
|
2757 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2758 |
|
|
|
2759 |
def __ne__(self, other):
|
|
|
2760 |
return not (self == other)
|
|
|
2761 |
|
|
|
2762 |
class initializeHdfcEmiPayment_result:
|
|
|
2763 |
"""
|
|
|
2764 |
Attributes:
|
|
|
2765 |
- success
|
|
|
2766 |
- pe
|
|
|
2767 |
"""
|
|
|
2768 |
|
|
|
2769 |
thrift_spec = (
|
|
|
2770 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
2771 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2772 |
)
|
|
|
2773 |
|
|
|
2774 |
def __init__(self, success=None, pe=None,):
|
|
|
2775 |
self.success = success
|
|
|
2776 |
self.pe = pe
|
|
|
2777 |
|
|
|
2778 |
def read(self, iprot):
|
|
|
2779 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2780 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2781 |
return
|
|
|
2782 |
iprot.readStructBegin()
|
|
|
2783 |
while True:
|
|
|
2784 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2785 |
if ftype == TType.STOP:
|
|
|
2786 |
break
|
|
|
2787 |
if fid == 0:
|
|
|
2788 |
if ftype == TType.STRING:
|
|
|
2789 |
self.success = iprot.readString();
|
|
|
2790 |
else:
|
|
|
2791 |
iprot.skip(ftype)
|
|
|
2792 |
elif fid == 1:
|
|
|
2793 |
if ftype == TType.STRUCT:
|
|
|
2794 |
self.pe = PaymentException()
|
|
|
2795 |
self.pe.read(iprot)
|
|
|
2796 |
else:
|
|
|
2797 |
iprot.skip(ftype)
|
|
|
2798 |
else:
|
|
|
2799 |
iprot.skip(ftype)
|
|
|
2800 |
iprot.readFieldEnd()
|
|
|
2801 |
iprot.readStructEnd()
|
|
|
2802 |
|
|
|
2803 |
def write(self, oprot):
|
|
|
2804 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2805 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2806 |
return
|
|
|
2807 |
oprot.writeStructBegin('initializeHdfcEmiPayment_result')
|
|
|
2808 |
if self.success is not None:
|
|
|
2809 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
2810 |
oprot.writeString(self.success)
|
|
|
2811 |
oprot.writeFieldEnd()
|
|
|
2812 |
if self.pe is not None:
|
|
|
2813 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2814 |
self.pe.write(oprot)
|
|
|
2815 |
oprot.writeFieldEnd()
|
|
|
2816 |
oprot.writeFieldStop()
|
|
|
2817 |
oprot.writeStructEnd()
|
|
|
2818 |
|
|
|
2819 |
def validate(self):
|
|
|
2820 |
return
|
|
|
2821 |
|
|
|
2822 |
|
|
|
2823 |
def __repr__(self):
|
|
|
2824 |
L = ['%s=%r' % (key, value)
|
|
|
2825 |
for key, value in self.__dict__.iteritems()]
|
|
|
2826 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2827 |
|
|
|
2828 |
def __eq__(self, other):
|
|
|
2829 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2830 |
|
|
|
2831 |
def __ne__(self, other):
|
|
|
2832 |
return not (self == other)
|
|
|
2833 |
|
| 3010 |
chandransh |
2834 |
class createRefund_args:
|
| 2559 |
chandransh |
2835 |
"""
|
|
|
2836 |
Attributes:
|
| 3010 |
chandransh |
2837 |
- orderId
|
|
|
2838 |
- merchantTxnId
|
|
|
2839 |
- amount
|
| 2559 |
chandransh |
2840 |
"""
|
|
|
2841 |
|
|
|
2842 |
thrift_spec = (
|
|
|
2843 |
None, # 0
|
| 3010 |
chandransh |
2844 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
2845 |
(2, TType.I64, 'merchantTxnId', None, None, ), # 2
|
|
|
2846 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
| 2559 |
chandransh |
2847 |
)
|
|
|
2848 |
|
| 3010 |
chandransh |
2849 |
def __init__(self, orderId=None, merchantTxnId=None, amount=None,):
|
|
|
2850 |
self.orderId = orderId
|
|
|
2851 |
self.merchantTxnId = merchantTxnId
|
|
|
2852 |
self.amount = amount
|
| 2559 |
chandransh |
2853 |
|
|
|
2854 |
def read(self, iprot):
|
|
|
2855 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2856 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2857 |
return
|
|
|
2858 |
iprot.readStructBegin()
|
|
|
2859 |
while True:
|
|
|
2860 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2861 |
if ftype == TType.STOP:
|
|
|
2862 |
break
|
|
|
2863 |
if fid == 1:
|
|
|
2864 |
if ftype == TType.I64:
|
| 3010 |
chandransh |
2865 |
self.orderId = iprot.readI64();
|
| 2559 |
chandransh |
2866 |
else:
|
|
|
2867 |
iprot.skip(ftype)
|
| 3010 |
chandransh |
2868 |
elif fid == 2:
|
|
|
2869 |
if ftype == TType.I64:
|
|
|
2870 |
self.merchantTxnId = iprot.readI64();
|
|
|
2871 |
else:
|
|
|
2872 |
iprot.skip(ftype)
|
|
|
2873 |
elif fid == 3:
|
|
|
2874 |
if ftype == TType.DOUBLE:
|
|
|
2875 |
self.amount = iprot.readDouble();
|
|
|
2876 |
else:
|
|
|
2877 |
iprot.skip(ftype)
|
| 2559 |
chandransh |
2878 |
else:
|
|
|
2879 |
iprot.skip(ftype)
|
|
|
2880 |
iprot.readFieldEnd()
|
|
|
2881 |
iprot.readStructEnd()
|
|
|
2882 |
|
|
|
2883 |
def write(self, oprot):
|
|
|
2884 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2885 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2886 |
return
|
| 3010 |
chandransh |
2887 |
oprot.writeStructBegin('createRefund_args')
|
| 3431 |
rajveer |
2888 |
if self.orderId is not None:
|
| 3010 |
chandransh |
2889 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
2890 |
oprot.writeI64(self.orderId)
|
| 2559 |
chandransh |
2891 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2892 |
if self.merchantTxnId is not None:
|
| 3010 |
chandransh |
2893 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
|
|
|
2894 |
oprot.writeI64(self.merchantTxnId)
|
|
|
2895 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2896 |
if self.amount is not None:
|
| 3010 |
chandransh |
2897 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
2898 |
oprot.writeDouble(self.amount)
|
|
|
2899 |
oprot.writeFieldEnd()
|
| 2559 |
chandransh |
2900 |
oprot.writeFieldStop()
|
|
|
2901 |
oprot.writeStructEnd()
|
|
|
2902 |
|
| 3431 |
rajveer |
2903 |
def validate(self):
|
|
|
2904 |
return
|
|
|
2905 |
|
|
|
2906 |
|
| 2559 |
chandransh |
2907 |
def __repr__(self):
|
|
|
2908 |
L = ['%s=%r' % (key, value)
|
|
|
2909 |
for key, value in self.__dict__.iteritems()]
|
|
|
2910 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2911 |
|
|
|
2912 |
def __eq__(self, other):
|
|
|
2913 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2914 |
|
|
|
2915 |
def __ne__(self, other):
|
|
|
2916 |
return not (self == other)
|
|
|
2917 |
|
| 3010 |
chandransh |
2918 |
class createRefund_result:
|
| 2559 |
chandransh |
2919 |
"""
|
|
|
2920 |
Attributes:
|
|
|
2921 |
- success
|
|
|
2922 |
- pe
|
|
|
2923 |
"""
|
|
|
2924 |
|
|
|
2925 |
thrift_spec = (
|
| 3010 |
chandransh |
2926 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 2559 |
chandransh |
2927 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
2928 |
)
|
|
|
2929 |
|
|
|
2930 |
def __init__(self, success=None, pe=None,):
|
|
|
2931 |
self.success = success
|
|
|
2932 |
self.pe = pe
|
|
|
2933 |
|
|
|
2934 |
def read(self, iprot):
|
|
|
2935 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2936 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2937 |
return
|
|
|
2938 |
iprot.readStructBegin()
|
|
|
2939 |
while True:
|
|
|
2940 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2941 |
if ftype == TType.STOP:
|
|
|
2942 |
break
|
|
|
2943 |
if fid == 0:
|
| 3010 |
chandransh |
2944 |
if ftype == TType.I64:
|
|
|
2945 |
self.success = iprot.readI64();
|
| 2559 |
chandransh |
2946 |
else:
|
|
|
2947 |
iprot.skip(ftype)
|
|
|
2948 |
elif fid == 1:
|
|
|
2949 |
if ftype == TType.STRUCT:
|
|
|
2950 |
self.pe = PaymentException()
|
|
|
2951 |
self.pe.read(iprot)
|
|
|
2952 |
else:
|
|
|
2953 |
iprot.skip(ftype)
|
|
|
2954 |
else:
|
|
|
2955 |
iprot.skip(ftype)
|
|
|
2956 |
iprot.readFieldEnd()
|
|
|
2957 |
iprot.readStructEnd()
|
|
|
2958 |
|
|
|
2959 |
def write(self, oprot):
|
|
|
2960 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2961 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2962 |
return
|
| 3010 |
chandransh |
2963 |
oprot.writeStructBegin('createRefund_result')
|
| 3431 |
rajveer |
2964 |
if self.success is not None:
|
| 3010 |
chandransh |
2965 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
2966 |
oprot.writeI64(self.success)
|
| 2559 |
chandransh |
2967 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2968 |
if self.pe is not None:
|
| 2559 |
chandransh |
2969 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
2970 |
self.pe.write(oprot)
|
|
|
2971 |
oprot.writeFieldEnd()
|
|
|
2972 |
oprot.writeFieldStop()
|
|
|
2973 |
oprot.writeStructEnd()
|
|
|
2974 |
|
| 3431 |
rajveer |
2975 |
def validate(self):
|
|
|
2976 |
return
|
|
|
2977 |
|
|
|
2978 |
|
| 2559 |
chandransh |
2979 |
def __repr__(self):
|
|
|
2980 |
L = ['%s=%r' % (key, value)
|
|
|
2981 |
for key, value in self.__dict__.iteritems()]
|
|
|
2982 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2983 |
|
|
|
2984 |
def __eq__(self, other):
|
|
|
2985 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2986 |
|
|
|
2987 |
def __ne__(self, other):
|
|
|
2988 |
return not (self == other)
|
|
|
2989 |
|
| 3010 |
chandransh |
2990 |
class capturePayment_args:
|
| 2685 |
chandransh |
2991 |
"""
|
|
|
2992 |
Attributes:
|
|
|
2993 |
- merchantTxnId
|
|
|
2994 |
"""
|
| 2559 |
chandransh |
2995 |
|
| 2685 |
chandransh |
2996 |
thrift_spec = (
|
|
|
2997 |
None, # 0
|
| 3010 |
chandransh |
2998 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
| 2685 |
chandransh |
2999 |
)
|
|
|
3000 |
|
| 3010 |
chandransh |
3001 |
def __init__(self, merchantTxnId=None,):
|
| 2685 |
chandransh |
3002 |
self.merchantTxnId = merchantTxnId
|
|
|
3003 |
|
|
|
3004 |
def read(self, iprot):
|
|
|
3005 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3006 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3007 |
return
|
|
|
3008 |
iprot.readStructBegin()
|
|
|
3009 |
while True:
|
|
|
3010 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3011 |
if ftype == TType.STOP:
|
|
|
3012 |
break
|
|
|
3013 |
if fid == 1:
|
|
|
3014 |
if ftype == TType.I64:
|
|
|
3015 |
self.merchantTxnId = iprot.readI64();
|
|
|
3016 |
else:
|
|
|
3017 |
iprot.skip(ftype)
|
|
|
3018 |
else:
|
|
|
3019 |
iprot.skip(ftype)
|
|
|
3020 |
iprot.readFieldEnd()
|
|
|
3021 |
iprot.readStructEnd()
|
|
|
3022 |
|
|
|
3023 |
def write(self, oprot):
|
|
|
3024 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3025 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3026 |
return
|
| 3010 |
chandransh |
3027 |
oprot.writeStructBegin('capturePayment_args')
|
| 3431 |
rajveer |
3028 |
if self.merchantTxnId is not None:
|
| 3010 |
chandransh |
3029 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
| 2685 |
chandransh |
3030 |
oprot.writeI64(self.merchantTxnId)
|
|
|
3031 |
oprot.writeFieldEnd()
|
|
|
3032 |
oprot.writeFieldStop()
|
|
|
3033 |
oprot.writeStructEnd()
|
|
|
3034 |
|
| 3431 |
rajveer |
3035 |
def validate(self):
|
|
|
3036 |
return
|
|
|
3037 |
|
|
|
3038 |
|
| 2685 |
chandransh |
3039 |
def __repr__(self):
|
|
|
3040 |
L = ['%s=%r' % (key, value)
|
|
|
3041 |
for key, value in self.__dict__.iteritems()]
|
|
|
3042 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3043 |
|
|
|
3044 |
def __eq__(self, other):
|
|
|
3045 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3046 |
|
|
|
3047 |
def __ne__(self, other):
|
|
|
3048 |
return not (self == other)
|
|
|
3049 |
|
| 3010 |
chandransh |
3050 |
class capturePayment_result:
|
| 2685 |
chandransh |
3051 |
"""
|
|
|
3052 |
Attributes:
|
|
|
3053 |
- success
|
|
|
3054 |
- pe
|
|
|
3055 |
"""
|
|
|
3056 |
|
|
|
3057 |
thrift_spec = (
|
| 3010 |
chandransh |
3058 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
| 2685 |
chandransh |
3059 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3060 |
)
|
|
|
3061 |
|
|
|
3062 |
def __init__(self, success=None, pe=None,):
|
|
|
3063 |
self.success = success
|
|
|
3064 |
self.pe = pe
|
|
|
3065 |
|
|
|
3066 |
def read(self, iprot):
|
|
|
3067 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3068 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3069 |
return
|
|
|
3070 |
iprot.readStructBegin()
|
|
|
3071 |
while True:
|
|
|
3072 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3073 |
if ftype == TType.STOP:
|
|
|
3074 |
break
|
|
|
3075 |
if fid == 0:
|
| 3010 |
chandransh |
3076 |
if ftype == TType.BOOL:
|
|
|
3077 |
self.success = iprot.readBool();
|
| 2685 |
chandransh |
3078 |
else:
|
|
|
3079 |
iprot.skip(ftype)
|
|
|
3080 |
elif fid == 1:
|
|
|
3081 |
if ftype == TType.STRUCT:
|
|
|
3082 |
self.pe = PaymentException()
|
|
|
3083 |
self.pe.read(iprot)
|
|
|
3084 |
else:
|
|
|
3085 |
iprot.skip(ftype)
|
|
|
3086 |
else:
|
|
|
3087 |
iprot.skip(ftype)
|
|
|
3088 |
iprot.readFieldEnd()
|
|
|
3089 |
iprot.readStructEnd()
|
|
|
3090 |
|
|
|
3091 |
def write(self, oprot):
|
|
|
3092 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3093 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3094 |
return
|
| 3010 |
chandransh |
3095 |
oprot.writeStructBegin('capturePayment_result')
|
| 3431 |
rajveer |
3096 |
if self.success is not None:
|
| 3010 |
chandransh |
3097 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3098 |
oprot.writeBool(self.success)
|
| 2685 |
chandransh |
3099 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3100 |
if self.pe is not None:
|
| 2685 |
chandransh |
3101 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3102 |
self.pe.write(oprot)
|
|
|
3103 |
oprot.writeFieldEnd()
|
|
|
3104 |
oprot.writeFieldStop()
|
|
|
3105 |
oprot.writeStructEnd()
|
|
|
3106 |
|
| 3431 |
rajveer |
3107 |
def validate(self):
|
|
|
3108 |
return
|
|
|
3109 |
|
|
|
3110 |
|
| 2685 |
chandransh |
3111 |
def __repr__(self):
|
|
|
3112 |
L = ['%s=%r' % (key, value)
|
|
|
3113 |
for key, value in self.__dict__.iteritems()]
|
|
|
3114 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3115 |
|
|
|
3116 |
def __eq__(self, other):
|
|
|
3117 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3118 |
|
|
|
3119 |
def __ne__(self, other):
|
|
|
3120 |
return not (self == other)
|
| 3956 |
chandransh |
3121 |
|
|
|
3122 |
class partiallyCapturePayment_args:
|
|
|
3123 |
"""
|
|
|
3124 |
Attributes:
|
|
|
3125 |
- merchantTxnId
|
|
|
3126 |
- amount
|
|
|
3127 |
- xferBy
|
|
|
3128 |
- xferTxnId
|
|
|
3129 |
- xferDate
|
|
|
3130 |
"""
|
|
|
3131 |
|
|
|
3132 |
thrift_spec = (
|
|
|
3133 |
None, # 0
|
|
|
3134 |
(1, TType.I64, 'merchantTxnId', None, None, ), # 1
|
|
|
3135 |
(2, TType.DOUBLE, 'amount', None, None, ), # 2
|
|
|
3136 |
(3, TType.STRING, 'xferBy', None, None, ), # 3
|
|
|
3137 |
(4, TType.STRING, 'xferTxnId', None, None, ), # 4
|
|
|
3138 |
(5, TType.I64, 'xferDate', None, None, ), # 5
|
|
|
3139 |
)
|
|
|
3140 |
|
|
|
3141 |
def __init__(self, merchantTxnId=None, amount=None, xferBy=None, xferTxnId=None, xferDate=None,):
|
|
|
3142 |
self.merchantTxnId = merchantTxnId
|
|
|
3143 |
self.amount = amount
|
|
|
3144 |
self.xferBy = xferBy
|
|
|
3145 |
self.xferTxnId = xferTxnId
|
|
|
3146 |
self.xferDate = xferDate
|
|
|
3147 |
|
|
|
3148 |
def read(self, iprot):
|
|
|
3149 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3150 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3151 |
return
|
|
|
3152 |
iprot.readStructBegin()
|
|
|
3153 |
while True:
|
|
|
3154 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3155 |
if ftype == TType.STOP:
|
|
|
3156 |
break
|
|
|
3157 |
if fid == 1:
|
|
|
3158 |
if ftype == TType.I64:
|
|
|
3159 |
self.merchantTxnId = iprot.readI64();
|
|
|
3160 |
else:
|
|
|
3161 |
iprot.skip(ftype)
|
|
|
3162 |
elif fid == 2:
|
|
|
3163 |
if ftype == TType.DOUBLE:
|
|
|
3164 |
self.amount = iprot.readDouble();
|
|
|
3165 |
else:
|
|
|
3166 |
iprot.skip(ftype)
|
|
|
3167 |
elif fid == 3:
|
|
|
3168 |
if ftype == TType.STRING:
|
|
|
3169 |
self.xferBy = iprot.readString();
|
|
|
3170 |
else:
|
|
|
3171 |
iprot.skip(ftype)
|
|
|
3172 |
elif fid == 4:
|
|
|
3173 |
if ftype == TType.STRING:
|
|
|
3174 |
self.xferTxnId = iprot.readString();
|
|
|
3175 |
else:
|
|
|
3176 |
iprot.skip(ftype)
|
|
|
3177 |
elif fid == 5:
|
|
|
3178 |
if ftype == TType.I64:
|
|
|
3179 |
self.xferDate = iprot.readI64();
|
|
|
3180 |
else:
|
|
|
3181 |
iprot.skip(ftype)
|
|
|
3182 |
else:
|
|
|
3183 |
iprot.skip(ftype)
|
|
|
3184 |
iprot.readFieldEnd()
|
|
|
3185 |
iprot.readStructEnd()
|
|
|
3186 |
|
|
|
3187 |
def write(self, oprot):
|
|
|
3188 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3189 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3190 |
return
|
|
|
3191 |
oprot.writeStructBegin('partiallyCapturePayment_args')
|
|
|
3192 |
if self.merchantTxnId is not None:
|
|
|
3193 |
oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
|
|
|
3194 |
oprot.writeI64(self.merchantTxnId)
|
|
|
3195 |
oprot.writeFieldEnd()
|
|
|
3196 |
if self.amount is not None:
|
|
|
3197 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
|
|
|
3198 |
oprot.writeDouble(self.amount)
|
|
|
3199 |
oprot.writeFieldEnd()
|
|
|
3200 |
if self.xferBy is not None:
|
|
|
3201 |
oprot.writeFieldBegin('xferBy', TType.STRING, 3)
|
|
|
3202 |
oprot.writeString(self.xferBy)
|
|
|
3203 |
oprot.writeFieldEnd()
|
|
|
3204 |
if self.xferTxnId is not None:
|
|
|
3205 |
oprot.writeFieldBegin('xferTxnId', TType.STRING, 4)
|
|
|
3206 |
oprot.writeString(self.xferTxnId)
|
|
|
3207 |
oprot.writeFieldEnd()
|
|
|
3208 |
if self.xferDate is not None:
|
|
|
3209 |
oprot.writeFieldBegin('xferDate', TType.I64, 5)
|
|
|
3210 |
oprot.writeI64(self.xferDate)
|
|
|
3211 |
oprot.writeFieldEnd()
|
|
|
3212 |
oprot.writeFieldStop()
|
|
|
3213 |
oprot.writeStructEnd()
|
|
|
3214 |
|
|
|
3215 |
def validate(self):
|
|
|
3216 |
return
|
|
|
3217 |
|
|
|
3218 |
|
|
|
3219 |
def __repr__(self):
|
|
|
3220 |
L = ['%s=%r' % (key, value)
|
|
|
3221 |
for key, value in self.__dict__.iteritems()]
|
|
|
3222 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3223 |
|
|
|
3224 |
def __eq__(self, other):
|
|
|
3225 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3226 |
|
|
|
3227 |
def __ne__(self, other):
|
|
|
3228 |
return not (self == other)
|
|
|
3229 |
|
|
|
3230 |
class partiallyCapturePayment_result:
|
|
|
3231 |
"""
|
|
|
3232 |
Attributes:
|
|
|
3233 |
- success
|
|
|
3234 |
- pe
|
|
|
3235 |
"""
|
|
|
3236 |
|
|
|
3237 |
thrift_spec = (
|
|
|
3238 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3239 |
(1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
|
|
|
3240 |
)
|
|
|
3241 |
|
|
|
3242 |
def __init__(self, success=None, pe=None,):
|
|
|
3243 |
self.success = success
|
|
|
3244 |
self.pe = pe
|
|
|
3245 |
|
|
|
3246 |
def read(self, iprot):
|
|
|
3247 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3248 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3249 |
return
|
|
|
3250 |
iprot.readStructBegin()
|
|
|
3251 |
while True:
|
|
|
3252 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3253 |
if ftype == TType.STOP:
|
|
|
3254 |
break
|
|
|
3255 |
if fid == 0:
|
|
|
3256 |
if ftype == TType.BOOL:
|
|
|
3257 |
self.success = iprot.readBool();
|
|
|
3258 |
else:
|
|
|
3259 |
iprot.skip(ftype)
|
|
|
3260 |
elif fid == 1:
|
|
|
3261 |
if ftype == TType.STRUCT:
|
|
|
3262 |
self.pe = PaymentException()
|
|
|
3263 |
self.pe.read(iprot)
|
|
|
3264 |
else:
|
|
|
3265 |
iprot.skip(ftype)
|
|
|
3266 |
else:
|
|
|
3267 |
iprot.skip(ftype)
|
|
|
3268 |
iprot.readFieldEnd()
|
|
|
3269 |
iprot.readStructEnd()
|
|
|
3270 |
|
|
|
3271 |
def write(self, oprot):
|
|
|
3272 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3273 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3274 |
return
|
|
|
3275 |
oprot.writeStructBegin('partiallyCapturePayment_result')
|
|
|
3276 |
if self.success is not None:
|
|
|
3277 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3278 |
oprot.writeBool(self.success)
|
|
|
3279 |
oprot.writeFieldEnd()
|
|
|
3280 |
if self.pe is not None:
|
|
|
3281 |
oprot.writeFieldBegin('pe', TType.STRUCT, 1)
|
|
|
3282 |
self.pe.write(oprot)
|
|
|
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)
|
| 4008 |
mandeep.dh |
3301 |
|
|
|
3302 |
class getPaymentsRequiringExtraProcessing_args:
|
|
|
3303 |
"""
|
|
|
3304 |
Attributes:
|
|
|
3305 |
- category
|
|
|
3306 |
"""
|
|
|
3307 |
|
|
|
3308 |
thrift_spec = (
|
|
|
3309 |
None, # 0
|
|
|
3310 |
(1, TType.I32, 'category', None, None, ), # 1
|
|
|
3311 |
)
|
|
|
3312 |
|
|
|
3313 |
def __init__(self, category=None,):
|
|
|
3314 |
self.category = category
|
|
|
3315 |
|
|
|
3316 |
def read(self, iprot):
|
|
|
3317 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3318 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3319 |
return
|
|
|
3320 |
iprot.readStructBegin()
|
|
|
3321 |
while True:
|
|
|
3322 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3323 |
if ftype == TType.STOP:
|
|
|
3324 |
break
|
|
|
3325 |
if fid == 1:
|
|
|
3326 |
if ftype == TType.I32:
|
|
|
3327 |
self.category = iprot.readI32();
|
|
|
3328 |
else:
|
|
|
3329 |
iprot.skip(ftype)
|
|
|
3330 |
else:
|
|
|
3331 |
iprot.skip(ftype)
|
|
|
3332 |
iprot.readFieldEnd()
|
|
|
3333 |
iprot.readStructEnd()
|
|
|
3334 |
|
|
|
3335 |
def write(self, oprot):
|
|
|
3336 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3337 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3338 |
return
|
|
|
3339 |
oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_args')
|
|
|
3340 |
if self.category is not None:
|
|
|
3341 |
oprot.writeFieldBegin('category', TType.I32, 1)
|
|
|
3342 |
oprot.writeI32(self.category)
|
|
|
3343 |
oprot.writeFieldEnd()
|
|
|
3344 |
oprot.writeFieldStop()
|
|
|
3345 |
oprot.writeStructEnd()
|
|
|
3346 |
|
|
|
3347 |
def validate(self):
|
|
|
3348 |
return
|
|
|
3349 |
|
|
|
3350 |
|
|
|
3351 |
def __repr__(self):
|
|
|
3352 |
L = ['%s=%r' % (key, value)
|
|
|
3353 |
for key, value in self.__dict__.iteritems()]
|
|
|
3354 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3355 |
|
|
|
3356 |
def __eq__(self, other):
|
|
|
3357 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3358 |
|
|
|
3359 |
def __ne__(self, other):
|
|
|
3360 |
return not (self == other)
|
|
|
3361 |
|
|
|
3362 |
class getPaymentsRequiringExtraProcessing_result:
|
|
|
3363 |
"""
|
|
|
3364 |
Attributes:
|
|
|
3365 |
- success
|
|
|
3366 |
"""
|
|
|
3367 |
|
|
|
3368 |
thrift_spec = (
|
|
|
3369 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
3370 |
)
|
|
|
3371 |
|
|
|
3372 |
def __init__(self, success=None,):
|
|
|
3373 |
self.success = success
|
|
|
3374 |
|
|
|
3375 |
def read(self, iprot):
|
|
|
3376 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3377 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3378 |
return
|
|
|
3379 |
iprot.readStructBegin()
|
|
|
3380 |
while True:
|
|
|
3381 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3382 |
if ftype == TType.STOP:
|
|
|
3383 |
break
|
|
|
3384 |
if fid == 0:
|
|
|
3385 |
if ftype == TType.LIST:
|
|
|
3386 |
self.success = []
|
| 4141 |
chandransh |
3387 |
(_etype66, _size63) = iprot.readListBegin()
|
|
|
3388 |
for _i67 in xrange(_size63):
|
|
|
3389 |
_elem68 = iprot.readI64();
|
|
|
3390 |
self.success.append(_elem68)
|
| 4008 |
mandeep.dh |
3391 |
iprot.readListEnd()
|
|
|
3392 |
else:
|
|
|
3393 |
iprot.skip(ftype)
|
|
|
3394 |
else:
|
|
|
3395 |
iprot.skip(ftype)
|
|
|
3396 |
iprot.readFieldEnd()
|
|
|
3397 |
iprot.readStructEnd()
|
|
|
3398 |
|
|
|
3399 |
def write(self, oprot):
|
|
|
3400 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3401 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3402 |
return
|
|
|
3403 |
oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
|
|
|
3404 |
if self.success is not None:
|
|
|
3405 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3406 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 4141 |
chandransh |
3407 |
for iter69 in self.success:
|
|
|
3408 |
oprot.writeI64(iter69)
|
| 4008 |
mandeep.dh |
3409 |
oprot.writeListEnd()
|
|
|
3410 |
oprot.writeFieldEnd()
|
|
|
3411 |
oprot.writeFieldStop()
|
|
|
3412 |
oprot.writeStructEnd()
|
|
|
3413 |
|
|
|
3414 |
def validate(self):
|
|
|
3415 |
return
|
|
|
3416 |
|
|
|
3417 |
|
|
|
3418 |
def __repr__(self):
|
|
|
3419 |
L = ['%s=%r' % (key, value)
|
|
|
3420 |
for key, value in self.__dict__.iteritems()]
|
|
|
3421 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3422 |
|
|
|
3423 |
def __eq__(self, other):
|
|
|
3424 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3425 |
|
|
|
3426 |
def __ne__(self, other):
|
|
|
3427 |
return not (self == other)
|
|
|
3428 |
|
|
|
3429 |
class markPaymentAsProcessed_args:
|
|
|
3430 |
"""
|
|
|
3431 |
Attributes:
|
|
|
3432 |
- paymentId
|
|
|
3433 |
- category
|
|
|
3434 |
"""
|
|
|
3435 |
|
|
|
3436 |
thrift_spec = (
|
|
|
3437 |
None, # 0
|
|
|
3438 |
(1, TType.I64, 'paymentId', None, None, ), # 1
|
|
|
3439 |
(2, TType.I32, 'category', None, None, ), # 2
|
|
|
3440 |
)
|
|
|
3441 |
|
|
|
3442 |
def __init__(self, paymentId=None, category=None,):
|
|
|
3443 |
self.paymentId = paymentId
|
|
|
3444 |
self.category = category
|
|
|
3445 |
|
|
|
3446 |
def read(self, iprot):
|
|
|
3447 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3448 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3449 |
return
|
|
|
3450 |
iprot.readStructBegin()
|
|
|
3451 |
while True:
|
|
|
3452 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3453 |
if ftype == TType.STOP:
|
|
|
3454 |
break
|
|
|
3455 |
if fid == 1:
|
|
|
3456 |
if ftype == TType.I64:
|
|
|
3457 |
self.paymentId = iprot.readI64();
|
|
|
3458 |
else:
|
|
|
3459 |
iprot.skip(ftype)
|
|
|
3460 |
elif fid == 2:
|
|
|
3461 |
if ftype == TType.I32:
|
|
|
3462 |
self.category = iprot.readI32();
|
|
|
3463 |
else:
|
|
|
3464 |
iprot.skip(ftype)
|
|
|
3465 |
else:
|
|
|
3466 |
iprot.skip(ftype)
|
|
|
3467 |
iprot.readFieldEnd()
|
|
|
3468 |
iprot.readStructEnd()
|
|
|
3469 |
|
|
|
3470 |
def write(self, oprot):
|
|
|
3471 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3472 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3473 |
return
|
|
|
3474 |
oprot.writeStructBegin('markPaymentAsProcessed_args')
|
|
|
3475 |
if self.paymentId is not None:
|
|
|
3476 |
oprot.writeFieldBegin('paymentId', TType.I64, 1)
|
|
|
3477 |
oprot.writeI64(self.paymentId)
|
|
|
3478 |
oprot.writeFieldEnd()
|
|
|
3479 |
if self.category is not None:
|
|
|
3480 |
oprot.writeFieldBegin('category', TType.I32, 2)
|
|
|
3481 |
oprot.writeI32(self.category)
|
|
|
3482 |
oprot.writeFieldEnd()
|
|
|
3483 |
oprot.writeFieldStop()
|
|
|
3484 |
oprot.writeStructEnd()
|
|
|
3485 |
|
|
|
3486 |
def validate(self):
|
|
|
3487 |
return
|
|
|
3488 |
|
|
|
3489 |
|
|
|
3490 |
def __repr__(self):
|
|
|
3491 |
L = ['%s=%r' % (key, value)
|
|
|
3492 |
for key, value in self.__dict__.iteritems()]
|
|
|
3493 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3494 |
|
|
|
3495 |
def __eq__(self, other):
|
|
|
3496 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3497 |
|
|
|
3498 |
def __ne__(self, other):
|
|
|
3499 |
return not (self == other)
|
|
|
3500 |
|
|
|
3501 |
class markPaymentAsProcessed_result:
|
|
|
3502 |
|
|
|
3503 |
thrift_spec = (
|
|
|
3504 |
)
|
|
|
3505 |
|
|
|
3506 |
def read(self, iprot):
|
|
|
3507 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3508 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3509 |
return
|
|
|
3510 |
iprot.readStructBegin()
|
|
|
3511 |
while True:
|
|
|
3512 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3513 |
if ftype == TType.STOP:
|
|
|
3514 |
break
|
|
|
3515 |
else:
|
|
|
3516 |
iprot.skip(ftype)
|
|
|
3517 |
iprot.readFieldEnd()
|
|
|
3518 |
iprot.readStructEnd()
|
|
|
3519 |
|
|
|
3520 |
def write(self, oprot):
|
|
|
3521 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3522 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3523 |
return
|
|
|
3524 |
oprot.writeStructBegin('markPaymentAsProcessed_result')
|
|
|
3525 |
oprot.writeFieldStop()
|
|
|
3526 |
oprot.writeStructEnd()
|
|
|
3527 |
|
|
|
3528 |
def validate(self):
|
|
|
3529 |
return
|
|
|
3530 |
|
|
|
3531 |
|
|
|
3532 |
def __repr__(self):
|
|
|
3533 |
L = ['%s=%r' % (key, value)
|
|
|
3534 |
for key, value in self.__dict__.iteritems()]
|
|
|
3535 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3536 |
|
|
|
3537 |
def __eq__(self, other):
|
|
|
3538 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3539 |
|
|
|
3540 |
def __ne__(self, other):
|
|
|
3541 |
return not (self == other)
|