Subversion Repositories SmartDukaan

Rev

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