Subversion Repositories SmartDukaan

Rev

Rev 6503 | Rev 8618 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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