Subversion Repositories SmartDukaan

Rev

Rev 8914 | Rev 18577 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8914 Rev 10478
Line 148... Line 148...
148
    Returns the minimum and maximum amounts among successful payments.
148
    Returns the minimum and maximum amounts among successful payments.
149
    List contains two double values, first minimum and second maximum amount.
149
    List contains two double values, first minimum and second maximum amount.
150
    """
150
    """
151
    pass
151
    pass
152
 
152
 
153
  def initializeHdfcPayment(self, merchantPaymentId):
153
  def initializeHdfcPayment(self, merchantPaymentId, isMobile):
154
    """
154
    """
155
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
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.
156
    In case of any processing error, an exception is raised.
157
 
157
 
158
    Parameters:
158
    Parameters:
159
     - merchantPaymentId
159
     - merchantPaymentId
-
 
160
     - isMobile
160
    """
161
    """
161
    pass
162
    pass
162
 
163
 
163
  def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone):
164
  def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone, isMobile):
164
    """
165
    """
165
    Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
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.
166
    In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
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.
167
 
168
 
168
    Parameters:
169
    Parameters:
169
     - merchantPaymentId
170
     - merchantPaymentId
170
     - rechargeOrderId
171
     - rechargeOrderId
171
     - phone
172
     - phone
-
 
173
     - isMobile
172
    """
174
    """
173
    pass
175
    pass
174
 
176
 
175
  def initializeHdfcEmiPayment(self, merchantPaymentId):
177
  def initializeHdfcEmiPayment(self, merchantPaymentId, isMobile):
176
    """
178
    """
177
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
179
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
178
    In case of any processing error, an exception is raised.
180
    In case of any processing error, an exception is raised.
179
 
181
 
180
    Parameters:
182
    Parameters:
181
     - merchantPaymentId
183
     - merchantPaymentId
-
 
184
     - isMobile
182
    """
185
    """
183
    pass
186
    pass
184
 
187
 
185
  def createRefund(self, orderId, merchantTxnId, amount):
188
  def createRefund(self, orderId, merchantTxnId, amount):
186
    """
189
    """
Line 729... Line 732...
729
    self._iprot.readMessageEnd()
732
    self._iprot.readMessageEnd()
730
    if result.success is not None:
733
    if result.success is not None:
731
      return result.success
734
      return result.success
732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
733
 
736
 
734
  def initializeHdfcPayment(self, merchantPaymentId):
737
  def initializeHdfcPayment(self, merchantPaymentId, isMobile):
735
    """
738
    """
736
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
739
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
737
    In case of any processing error, an exception is raised.
740
    In case of any processing error, an exception is raised.
738
 
741
 
739
    Parameters:
742
    Parameters:
740
     - merchantPaymentId
743
     - merchantPaymentId
-
 
744
     - isMobile
741
    """
745
    """
742
    self.send_initializeHdfcPayment(merchantPaymentId)
746
    self.send_initializeHdfcPayment(merchantPaymentId, isMobile)
743
    return self.recv_initializeHdfcPayment()
747
    return self.recv_initializeHdfcPayment()
744
 
748
 
745
  def send_initializeHdfcPayment(self, merchantPaymentId):
749
  def send_initializeHdfcPayment(self, merchantPaymentId, isMobile):
746
    self._oprot.writeMessageBegin('initializeHdfcPayment', TMessageType.CALL, self._seqid)
750
    self._oprot.writeMessageBegin('initializeHdfcPayment', TMessageType.CALL, self._seqid)
747
    args = initializeHdfcPayment_args()
751
    args = initializeHdfcPayment_args()
748
    args.merchantPaymentId = merchantPaymentId
752
    args.merchantPaymentId = merchantPaymentId
-
 
753
    args.isMobile = isMobile
749
    args.write(self._oprot)
754
    args.write(self._oprot)
750
    self._oprot.writeMessageEnd()
755
    self._oprot.writeMessageEnd()
751
    self._oprot.trans.flush()
756
    self._oprot.trans.flush()
752
 
757
 
753
  def recv_initializeHdfcPayment(self, ):
758
  def recv_initializeHdfcPayment(self, ):
Line 764... Line 769...
764
      return result.success
769
      return result.success
765
    if result.pe is not None:
770
    if result.pe is not None:
766
      raise result.pe
771
      raise result.pe
767
    raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
768
 
773
 
769
  def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone):
774
  def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone, isMobile):
770
    """
775
    """
771
    Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
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.
772
    In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
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.
773
 
778
 
774
    Parameters:
779
    Parameters:
775
     - merchantPaymentId
780
     - merchantPaymentId
776
     - rechargeOrderId
781
     - rechargeOrderId
777
     - phone
782
     - phone
-
 
783
     - isMobile
778
    """
784
    """
779
    self.send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone)
785
    self.send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone, isMobile)
780
    return self.recv_doHdfcPaymentForDigitalOrder()
786
    return self.recv_doHdfcPaymentForDigitalOrder()
781
 
787
 
782
  def send_doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone):
788
  def send_doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId, phone, isMobile):
783
    self._oprot.writeMessageBegin('doHdfcPaymentForDigitalOrder', TMessageType.CALL, self._seqid)
789
    self._oprot.writeMessageBegin('doHdfcPaymentForDigitalOrder', TMessageType.CALL, self._seqid)
784
    args = doHdfcPaymentForDigitalOrder_args()
790
    args = doHdfcPaymentForDigitalOrder_args()
785
    args.merchantPaymentId = merchantPaymentId
791
    args.merchantPaymentId = merchantPaymentId
786
    args.rechargeOrderId = rechargeOrderId
792
    args.rechargeOrderId = rechargeOrderId
787
    args.phone = phone
793
    args.phone = phone
-
 
794
    args.isMobile = isMobile
788
    args.write(self._oprot)
795
    args.write(self._oprot)
789
    self._oprot.writeMessageEnd()
796
    self._oprot.writeMessageEnd()
790
    self._oprot.trans.flush()
797
    self._oprot.trans.flush()
791
 
798
 
792
  def recv_doHdfcPaymentForDigitalOrder(self, ):
799
  def recv_doHdfcPaymentForDigitalOrder(self, ):
Line 803... Line 810...
803
      return result.success
810
      return result.success
804
    if result.pe is not None:
811
    if result.pe is not None:
805
      raise result.pe
812
      raise result.pe
806
    raise TApplicationException(TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
807
 
814
 
808
  def initializeHdfcEmiPayment(self, merchantPaymentId):
815
  def initializeHdfcEmiPayment(self, merchantPaymentId, isMobile):
809
    """
816
    """
810
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
817
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
811
    In case of any processing error, an exception is raised.
818
    In case of any processing error, an exception is raised.
812
 
819
 
813
    Parameters:
820
    Parameters:
814
     - merchantPaymentId
821
     - merchantPaymentId
-
 
822
     - isMobile
815
    """
823
    """
816
    self.send_initializeHdfcEmiPayment(merchantPaymentId)
824
    self.send_initializeHdfcEmiPayment(merchantPaymentId, isMobile)
817
    return self.recv_initializeHdfcEmiPayment()
825
    return self.recv_initializeHdfcEmiPayment()
818
 
826
 
819
  def send_initializeHdfcEmiPayment(self, merchantPaymentId):
827
  def send_initializeHdfcEmiPayment(self, merchantPaymentId, isMobile):
820
    self._oprot.writeMessageBegin('initializeHdfcEmiPayment', TMessageType.CALL, self._seqid)
828
    self._oprot.writeMessageBegin('initializeHdfcEmiPayment', TMessageType.CALL, self._seqid)
821
    args = initializeHdfcEmiPayment_args()
829
    args = initializeHdfcEmiPayment_args()
822
    args.merchantPaymentId = merchantPaymentId
830
    args.merchantPaymentId = merchantPaymentId
-
 
831
    args.isMobile = isMobile
823
    args.write(self._oprot)
832
    args.write(self._oprot)
824
    self._oprot.writeMessageEnd()
833
    self._oprot.writeMessageEnd()
825
    self._oprot.trans.flush()
834
    self._oprot.trans.flush()
826
 
835
 
827
  def recv_initializeHdfcEmiPayment(self, ):
836
  def recv_initializeHdfcEmiPayment(self, ):
Line 1323... Line 1332...
1323
    args = initializeHdfcPayment_args()
1332
    args = initializeHdfcPayment_args()
1324
    args.read(iprot)
1333
    args.read(iprot)
1325
    iprot.readMessageEnd()
1334
    iprot.readMessageEnd()
1326
    result = initializeHdfcPayment_result()
1335
    result = initializeHdfcPayment_result()
1327
    try:
1336
    try:
1328
      result.success = self._handler.initializeHdfcPayment(args.merchantPaymentId)
1337
      result.success = self._handler.initializeHdfcPayment(args.merchantPaymentId, args.isMobile)
1329
    except PaymentException, pe:
1338
    except PaymentException, pe:
1330
      result.pe = pe
1339
      result.pe = pe
1331
    oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
1340
    oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
1332
    result.write(oprot)
1341
    result.write(oprot)
1333
    oprot.writeMessageEnd()
1342
    oprot.writeMessageEnd()
Line 1337... Line 1346...
1337
    args = doHdfcPaymentForDigitalOrder_args()
1346
    args = doHdfcPaymentForDigitalOrder_args()
1338
    args.read(iprot)
1347
    args.read(iprot)
1339
    iprot.readMessageEnd()
1348
    iprot.readMessageEnd()
1340
    result = doHdfcPaymentForDigitalOrder_result()
1349
    result = doHdfcPaymentForDigitalOrder_result()
1341
    try:
1350
    try:
1342
      result.success = self._handler.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone)
1351
      result.success = self._handler.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone, args.isMobile)
1343
    except PaymentException, pe:
1352
    except PaymentException, pe:
1344
      result.pe = pe
1353
      result.pe = pe
1345
    oprot.writeMessageBegin("doHdfcPaymentForDigitalOrder", TMessageType.REPLY, seqid)
1354
    oprot.writeMessageBegin("doHdfcPaymentForDigitalOrder", TMessageType.REPLY, seqid)
1346
    result.write(oprot)
1355
    result.write(oprot)
1347
    oprot.writeMessageEnd()
1356
    oprot.writeMessageEnd()
Line 1351... Line 1360...
1351
    args = initializeHdfcEmiPayment_args()
1360
    args = initializeHdfcEmiPayment_args()
1352
    args.read(iprot)
1361
    args.read(iprot)
1353
    iprot.readMessageEnd()
1362
    iprot.readMessageEnd()
1354
    result = initializeHdfcEmiPayment_result()
1363
    result = initializeHdfcEmiPayment_result()
1355
    try:
1364
    try:
1356
      result.success = self._handler.initializeHdfcEmiPayment(args.merchantPaymentId)
1365
      result.success = self._handler.initializeHdfcEmiPayment(args.merchantPaymentId, args.isMobile)
1357
    except PaymentException, pe:
1366
    except PaymentException, pe:
1358
      result.pe = pe
1367
      result.pe = pe
1359
    oprot.writeMessageBegin("initializeHdfcEmiPayment", TMessageType.REPLY, seqid)
1368
    oprot.writeMessageBegin("initializeHdfcEmiPayment", TMessageType.REPLY, seqid)
1360
    result.write(oprot)
1369
    result.write(oprot)
1361
    oprot.writeMessageEnd()
1370
    oprot.writeMessageEnd()
Line 3355... Line 3364...
3355
 
3364
 
3356
class initializeHdfcPayment_args:
3365
class initializeHdfcPayment_args:
3357
  """
3366
  """
3358
  Attributes:
3367
  Attributes:
3359
   - merchantPaymentId
3368
   - merchantPaymentId
-
 
3369
   - isMobile
3360
  """
3370
  """
3361
 
3371
 
3362
  thrift_spec = (
3372
  thrift_spec = (
3363
    None, # 0
3373
    None, # 0
3364
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
3374
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
-
 
3375
    (2, TType.BOOL, 'isMobile', None, None, ), # 2
3365
  )
3376
  )
3366
 
3377
 
3367
  def __init__(self, merchantPaymentId=None,):
3378
  def __init__(self, merchantPaymentId=None, isMobile=None,):
3368
    self.merchantPaymentId = merchantPaymentId
3379
    self.merchantPaymentId = merchantPaymentId
-
 
3380
    self.isMobile = isMobile
3369
 
3381
 
3370
  def read(self, iprot):
3382
  def read(self, iprot):
3371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3373
      return
3385
      return
Line 3379... Line 3391...
3379
      if fid == 1:
3391
      if fid == 1:
3380
        if ftype == TType.I64:
3392
        if ftype == TType.I64:
3381
          self.merchantPaymentId = iprot.readI64();
3393
          self.merchantPaymentId = iprot.readI64();
3382
        else:
3394
        else:
3383
          iprot.skip(ftype)
3395
          iprot.skip(ftype)
-
 
3396
      elif fid == 2:
-
 
3397
        if ftype == TType.BOOL:
-
 
3398
          self.isMobile = iprot.readBool();
-
 
3399
        else:
-
 
3400
          iprot.skip(ftype)
3384
      else:
3401
      else:
3385
        iprot.skip(ftype)
3402
        iprot.skip(ftype)
3386
      iprot.readFieldEnd()
3403
      iprot.readFieldEnd()
3387
    iprot.readStructEnd()
3404
    iprot.readStructEnd()
3388
 
3405
 
Line 3393... Line 3410...
3393
    oprot.writeStructBegin('initializeHdfcPayment_args')
3410
    oprot.writeStructBegin('initializeHdfcPayment_args')
3394
    if self.merchantPaymentId is not None:
3411
    if self.merchantPaymentId is not None:
3395
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
3412
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
3396
      oprot.writeI64(self.merchantPaymentId)
3413
      oprot.writeI64(self.merchantPaymentId)
3397
      oprot.writeFieldEnd()
3414
      oprot.writeFieldEnd()
-
 
3415
    if self.isMobile is not None:
-
 
3416
      oprot.writeFieldBegin('isMobile', TType.BOOL, 2)
-
 
3417
      oprot.writeBool(self.isMobile)
-
 
3418
      oprot.writeFieldEnd()
3398
    oprot.writeFieldStop()
3419
    oprot.writeFieldStop()
3399
    oprot.writeStructEnd()
3420
    oprot.writeStructEnd()
3400
 
3421
 
3401
  def validate(self):
3422
  def validate(self):
3402
    return
3423
    return
Line 3489... Line 3510...
3489
  """
3510
  """
3490
  Attributes:
3511
  Attributes:
3491
   - merchantPaymentId
3512
   - merchantPaymentId
3492
   - rechargeOrderId
3513
   - rechargeOrderId
3493
   - phone
3514
   - phone
-
 
3515
   - isMobile
3494
  """
3516
  """
3495
 
3517
 
3496
  thrift_spec = None
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
 
3497
  def __init__(self, merchantPaymentId=None, rechargeOrderId=None, phone=None,):
3526
  def __init__(self, merchantPaymentId=None, rechargeOrderId=None, phone=None, isMobile=None,):
3498
    self.merchantPaymentId = merchantPaymentId
3527
    self.merchantPaymentId = merchantPaymentId
3499
    self.rechargeOrderId = rechargeOrderId
3528
    self.rechargeOrderId = rechargeOrderId
3500
    self.phone = phone
3529
    self.phone = phone
-
 
3530
    self.isMobile = isMobile
3501
 
3531
 
3502
  def read(self, iprot):
3532
  def read(self, iprot):
3503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3505
      return
3535
      return
Line 3516... Line 3546...
3516
      elif fid == 2:
3546
      elif fid == 2:
3517
        if ftype == TType.I64:
3547
        if ftype == TType.I64:
3518
          self.rechargeOrderId = iprot.readI64();
3548
          self.rechargeOrderId = iprot.readI64();
3519
        else:
3549
        else:
3520
          iprot.skip(ftype)
3550
          iprot.skip(ftype)
3521
      elif fid == -1:
3551
      elif fid == 3:
3522
        if ftype == TType.STRING:
3552
        if ftype == TType.STRING:
3523
          self.phone = iprot.readString();
3553
          self.phone = iprot.readString();
3524
        else:
3554
        else:
3525
          iprot.skip(ftype)
3555
          iprot.skip(ftype)
-
 
3556
      elif fid == 4:
-
 
3557
        if ftype == TType.BOOL:
-
 
3558
          self.isMobile = iprot.readBool();
-
 
3559
        else:
-
 
3560
          iprot.skip(ftype)
3526
      else:
3561
      else:
3527
        iprot.skip(ftype)
3562
        iprot.skip(ftype)
3528
      iprot.readFieldEnd()
3563
      iprot.readFieldEnd()
3529
    iprot.readStructEnd()
3564
    iprot.readStructEnd()
3530
 
3565
 
3531
  def write(self, oprot):
3566
  def write(self, oprot):
3532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3534
      return
3569
      return
3535
    oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_args')
3570
    oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_args')
3536
    if self.phone is not None:
-
 
3537
      oprot.writeFieldBegin('phone', TType.STRING, -1)
-
 
3538
      oprot.writeString(self.phone)
-
 
3539
      oprot.writeFieldEnd()
-
 
3540
    if self.merchantPaymentId is not None:
3571
    if self.merchantPaymentId is not None:
3541
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
3572
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
3542
      oprot.writeI64(self.merchantPaymentId)
3573
      oprot.writeI64(self.merchantPaymentId)
3543
      oprot.writeFieldEnd()
3574
      oprot.writeFieldEnd()
3544
    if self.rechargeOrderId is not None:
3575
    if self.rechargeOrderId is not None:
3545
      oprot.writeFieldBegin('rechargeOrderId', TType.I64, 2)
3576
      oprot.writeFieldBegin('rechargeOrderId', TType.I64, 2)
3546
      oprot.writeI64(self.rechargeOrderId)
3577
      oprot.writeI64(self.rechargeOrderId)
3547
      oprot.writeFieldEnd()
3578
      oprot.writeFieldEnd()
-
 
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()
3548
    oprot.writeFieldStop()
3587
    oprot.writeFieldStop()
3549
    oprot.writeStructEnd()
3588
    oprot.writeStructEnd()
3550
 
3589
 
3551
  def validate(self):
3590
  def validate(self):
3552
    return
3591
    return
Line 3637... Line 3676...
3637
 
3676
 
3638
class initializeHdfcEmiPayment_args:
3677
class initializeHdfcEmiPayment_args:
3639
  """
3678
  """
3640
  Attributes:
3679
  Attributes:
3641
   - merchantPaymentId
3680
   - merchantPaymentId
-
 
3681
   - isMobile
3642
  """
3682
  """
3643
 
3683
 
3644
  thrift_spec = (
3684
  thrift_spec = (
3645
    None, # 0
3685
    None, # 0
3646
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
3686
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
-
 
3687
    (2, TType.BOOL, 'isMobile', None, None, ), # 2
3647
  )
3688
  )
3648
 
3689
 
3649
  def __init__(self, merchantPaymentId=None,):
3690
  def __init__(self, merchantPaymentId=None, isMobile=None,):
3650
    self.merchantPaymentId = merchantPaymentId
3691
    self.merchantPaymentId = merchantPaymentId
-
 
3692
    self.isMobile = isMobile
3651
 
3693
 
3652
  def read(self, iprot):
3694
  def read(self, iprot):
3653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3655
      return
3697
      return
Line 3661... Line 3703...
3661
      if fid == 1:
3703
      if fid == 1:
3662
        if ftype == TType.I64:
3704
        if ftype == TType.I64:
3663
          self.merchantPaymentId = iprot.readI64();
3705
          self.merchantPaymentId = iprot.readI64();
3664
        else:
3706
        else:
3665
          iprot.skip(ftype)
3707
          iprot.skip(ftype)
-
 
3708
      elif fid == 2:
-
 
3709
        if ftype == TType.BOOL:
-
 
3710
          self.isMobile = iprot.readBool();
-
 
3711
        else:
-
 
3712
          iprot.skip(ftype)
3666
      else:
3713
      else:
3667
        iprot.skip(ftype)
3714
        iprot.skip(ftype)
3668
      iprot.readFieldEnd()
3715
      iprot.readFieldEnd()
3669
    iprot.readStructEnd()
3716
    iprot.readStructEnd()
3670
 
3717
 
Line 3675... Line 3722...
3675
    oprot.writeStructBegin('initializeHdfcEmiPayment_args')
3722
    oprot.writeStructBegin('initializeHdfcEmiPayment_args')
3676
    if self.merchantPaymentId is not None:
3723
    if self.merchantPaymentId is not None:
3677
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
3724
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
3678
      oprot.writeI64(self.merchantPaymentId)
3725
      oprot.writeI64(self.merchantPaymentId)
3679
      oprot.writeFieldEnd()
3726
      oprot.writeFieldEnd()
-
 
3727
    if self.isMobile is not None:
-
 
3728
      oprot.writeFieldBegin('isMobile', TType.BOOL, 2)
-
 
3729
      oprot.writeBool(self.isMobile)
-
 
3730
      oprot.writeFieldEnd()
3680
    oprot.writeFieldStop()
3731
    oprot.writeFieldStop()
3681
    oprot.writeStructEnd()
3732
    oprot.writeStructEnd()
3682
 
3733
 
3683
  def validate(self):
3734
  def validate(self):
3684
    return
3735
    return