Subversion Repositories SmartDukaan

Rev

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