Subversion Repositories SmartDukaan

Rev

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

Rev 2747 Rev 3010
Line 118... Line 118...
118
    Returns the minimum and maximum amounts among successful payments.
118
    Returns the minimum and maximum amounts among successful payments.
119
    List contains two double values, first minimum and second maximum amount.
119
    List contains two double values, first minimum and second maximum amount.
120
    """
120
    """
121
    pass
121
    pass
122
 
122
 
123
  def updateAndCaptureEbsPayment(self, paymentParams):
-
 
124
    """
-
 
125
    Update the authorization attributes of the payment and attempt to capture it in case it was authorized.
-
 
126
    If either the authorization failed or the capture attempt failed, the payment is marked as failed.
-
 
127
    
-
 
128
    Parameters:
-
 
129
     - paymentParams
-
 
130
    """
-
 
131
    pass
-
 
132
 
-
 
133
  def captureEbsPayment(self, merchantPaymentId):
123
  def captureEbsPayment(self, merchantPaymentId):
134
    """
124
    """
135
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
125
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
136
    
126
    
137
    Parameters:
127
    Parameters:
Line 169... Line 159...
169
     - merchantTxnId
159
     - merchantTxnId
170
     - amount
160
     - amount
171
    """
161
    """
172
    pass
162
    pass
173
 
163
 
-
 
164
  def capturePayment(self, merchantTxnId):
-
 
165
    """
-
 
166
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
-
 
167
    transaction. If the capture attempt failed, the payment is marked as failed.
-
 
168
    
-
 
169
    Parameters:
-
 
170
     - merchantTxnId
-
 
171
    """
-
 
172
    pass
-
 
173
 
174
 
174
 
175
class Client(Iface):
175
class Client(Iface):
176
  def __init__(self, iprot, oprot=None):
176
  def __init__(self, iprot, oprot=None):
177
    self._iprot = self._oprot = iprot
177
    self._iprot = self._oprot = iprot
178
    if oprot != None:
178
    if oprot != None:
Line 519... Line 519...
519
    self._iprot.readMessageEnd()
519
    self._iprot.readMessageEnd()
520
    if result.success != None:
520
    if result.success != None:
521
      return result.success
521
      return result.success
522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
523
 
523
 
524
  def updateAndCaptureEbsPayment(self, paymentParams):
-
 
525
    """
-
 
526
    Update the authorization attributes of the payment and attempt to capture it in case it was authorized.
-
 
527
    If either the authorization failed or the capture attempt failed, the payment is marked as failed.
-
 
528
    
-
 
529
    Parameters:
-
 
530
     - paymentParams
-
 
531
    """
-
 
532
    self.send_updateAndCaptureEbsPayment(paymentParams)
-
 
533
    return self.recv_updateAndCaptureEbsPayment()
-
 
534
 
-
 
535
  def send_updateAndCaptureEbsPayment(self, paymentParams):
-
 
536
    self._oprot.writeMessageBegin('updateAndCaptureEbsPayment', TMessageType.CALL, self._seqid)
-
 
537
    args = updateAndCaptureEbsPayment_args()
-
 
538
    args.paymentParams = paymentParams
-
 
539
    args.write(self._oprot)
-
 
540
    self._oprot.writeMessageEnd()
-
 
541
    self._oprot.trans.flush()
-
 
542
 
-
 
543
  def recv_updateAndCaptureEbsPayment(self, ):
-
 
544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
545
    if mtype == TMessageType.EXCEPTION:
-
 
546
      x = TApplicationException()
-
 
547
      x.read(self._iprot)
-
 
548
      self._iprot.readMessageEnd()
-
 
549
      raise x
-
 
550
    result = updateAndCaptureEbsPayment_result()
-
 
551
    result.read(self._iprot)
-
 
552
    self._iprot.readMessageEnd()
-
 
553
    if result.success != None:
-
 
554
      return result.success
-
 
555
    if result.pe != None:
-
 
556
      raise result.pe
-
 
557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAndCaptureEbsPayment failed: unknown result");
-
 
558
 
-
 
559
  def captureEbsPayment(self, merchantPaymentId):
524
  def captureEbsPayment(self, merchantPaymentId):
560
    """
525
    """
561
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
526
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
562
    
527
    
563
    Parameters:
528
    Parameters:
Line 697... Line 662...
697
      return result.success
662
      return result.success
698
    if result.pe != None:
663
    if result.pe != None:
699
      raise result.pe
664
      raise result.pe
700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
701
 
666
 
-
 
667
  def capturePayment(self, merchantTxnId):
-
 
668
    """
-
 
669
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
-
 
670
    transaction. If the capture attempt failed, the payment is marked as failed.
-
 
671
    
-
 
672
    Parameters:
-
 
673
     - merchantTxnId
-
 
674
    """
-
 
675
    self.send_capturePayment(merchantTxnId)
-
 
676
    return self.recv_capturePayment()
-
 
677
 
-
 
678
  def send_capturePayment(self, merchantTxnId):
-
 
679
    self._oprot.writeMessageBegin('capturePayment', TMessageType.CALL, self._seqid)
-
 
680
    args = capturePayment_args()
-
 
681
    args.merchantTxnId = merchantTxnId
-
 
682
    args.write(self._oprot)
-
 
683
    self._oprot.writeMessageEnd()
-
 
684
    self._oprot.trans.flush()
-
 
685
 
-
 
686
  def recv_capturePayment(self, ):
-
 
687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
688
    if mtype == TMessageType.EXCEPTION:
-
 
689
      x = TApplicationException()
-
 
690
      x.read(self._iprot)
-
 
691
      self._iprot.readMessageEnd()
-
 
692
      raise x
-
 
693
    result = capturePayment_result()
-
 
694
    result.read(self._iprot)
-
 
695
    self._iprot.readMessageEnd()
-
 
696
    if result.success != None:
-
 
697
      return result.success
-
 
698
    if result.pe != None:
-
 
699
      raise result.pe
-
 
700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
-
 
701
 
702
 
702
 
703
class Processor(Iface, TProcessor):
703
class Processor(Iface, TProcessor):
704
  def __init__(self, handler):
704
  def __init__(self, handler):
705
    self._handler = handler
705
    self._handler = handler
706
    self._processMap = {}
706
    self._processMap = {}
Line 711... Line 711...
711
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
711
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
712
    self._processMap["getPayment"] = Processor.process_getPayment
712
    self._processMap["getPayment"] = Processor.process_getPayment
713
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
713
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
714
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
714
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
715
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
715
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
716
    self._processMap["updateAndCaptureEbsPayment"] = Processor.process_updateAndCaptureEbsPayment
-
 
717
    self._processMap["captureEbsPayment"] = Processor.process_captureEbsPayment
716
    self._processMap["captureEbsPayment"] = Processor.process_captureEbsPayment
718
    self._processMap["captureHdfcPayment"] = Processor.process_captureHdfcPayment
717
    self._processMap["captureHdfcPayment"] = Processor.process_captureHdfcPayment
719
    self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
718
    self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
720
    self._processMap["createRefund"] = Processor.process_createRefund
719
    self._processMap["createRefund"] = Processor.process_createRefund
-
 
720
    self._processMap["capturePayment"] = Processor.process_capturePayment
721
 
721
 
722
  def process(self, iprot, oprot):
722
  def process(self, iprot, oprot):
723
    (name, type, seqid) = iprot.readMessageBegin()
723
    (name, type, seqid) = iprot.readMessageBegin()
724
    if name not in self._processMap:
724
    if name not in self._processMap:
725
      iprot.skip(TType.STRUCT)
725
      iprot.skip(TType.STRUCT)
Line 852... Line 852...
852
    oprot.writeMessageBegin("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid)
852
    oprot.writeMessageBegin("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid)
853
    result.write(oprot)
853
    result.write(oprot)
854
    oprot.writeMessageEnd()
854
    oprot.writeMessageEnd()
855
    oprot.trans.flush()
855
    oprot.trans.flush()
856
 
856
 
857
  def process_updateAndCaptureEbsPayment(self, seqid, iprot, oprot):
-
 
858
    args = updateAndCaptureEbsPayment_args()
-
 
859
    args.read(iprot)
-
 
860
    iprot.readMessageEnd()
-
 
861
    result = updateAndCaptureEbsPayment_result()
-
 
862
    try:
-
 
863
      result.success = self._handler.updateAndCaptureEbsPayment(args.paymentParams)
-
 
864
    except PaymentException, pe:
-
 
865
      result.pe = pe
-
 
866
    oprot.writeMessageBegin("updateAndCaptureEbsPayment", TMessageType.REPLY, seqid)
-
 
867
    result.write(oprot)
-
 
868
    oprot.writeMessageEnd()
-
 
869
    oprot.trans.flush()
-
 
870
 
-
 
871
  def process_captureEbsPayment(self, seqid, iprot, oprot):
857
  def process_captureEbsPayment(self, seqid, iprot, oprot):
872
    args = captureEbsPayment_args()
858
    args = captureEbsPayment_args()
873
    args.read(iprot)
859
    args.read(iprot)
874
    iprot.readMessageEnd()
860
    iprot.readMessageEnd()
875
    result = captureEbsPayment_result()
861
    result = captureEbsPayment_result()
Line 922... Line 908...
922
    oprot.writeMessageBegin("createRefund", TMessageType.REPLY, seqid)
908
    oprot.writeMessageBegin("createRefund", TMessageType.REPLY, seqid)
923
    result.write(oprot)
909
    result.write(oprot)
924
    oprot.writeMessageEnd()
910
    oprot.writeMessageEnd()
925
    oprot.trans.flush()
911
    oprot.trans.flush()
926
 
912
 
-
 
913
  def process_capturePayment(self, seqid, iprot, oprot):
-
 
914
    args = capturePayment_args()
-
 
915
    args.read(iprot)
-
 
916
    iprot.readMessageEnd()
-
 
917
    result = capturePayment_result()
-
 
918
    try:
-
 
919
      result.success = self._handler.capturePayment(args.merchantTxnId)
-
 
920
    except PaymentException, pe:
-
 
921
      result.pe = pe
-
 
922
    oprot.writeMessageBegin("capturePayment", TMessageType.REPLY, seqid)
-
 
923
    result.write(oprot)
-
 
924
    oprot.writeMessageEnd()
-
 
925
    oprot.trans.flush()
-
 
926
 
927
 
927
 
928
# HELPER FUNCTIONS AND STRUCTURES
928
# HELPER FUNCTIONS AND STRUCTURES
929
 
929
 
930
class closeSession_args:
930
class closeSession_args:
931
 
931
 
Line 2260... Line 2260...
2260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2261
 
2261
 
2262
  def __ne__(self, other):
2262
  def __ne__(self, other):
2263
    return not (self == other)
2263
    return not (self == other)
2264
 
2264
 
2265
class updateAndCaptureEbsPayment_args:
2265
class captureEbsPayment_args:
2266
  """
2266
  """
2267
  Attributes:
2267
  Attributes:
2268
   - paymentParams
2268
   - merchantPaymentId
2269
  """
2269
  """
2270
 
2270
 
2271
  thrift_spec = (
2271
  thrift_spec = (
2272
    None, # 0
2272
    None, # 0
2273
    (1, TType.MAP, 'paymentParams', (TType.STRING,None,TType.STRING,None), None, ), # 1
2273
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
2274
  )
2274
  )
2275
 
2275
 
2276
  def __init__(self, paymentParams=None,):
2276
  def __init__(self, merchantPaymentId=None,):
2277
    self.paymentParams = paymentParams
2277
    self.merchantPaymentId = merchantPaymentId
2278
 
2278
 
2279
  def read(self, iprot):
2279
  def read(self, iprot):
2280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2282
      return
2282
      return
Line 2284... Line 2284...
2284
    while True:
2284
    while True:
2285
      (fname, ftype, fid) = iprot.readFieldBegin()
2285
      (fname, ftype, fid) = iprot.readFieldBegin()
2286
      if ftype == TType.STOP:
2286
      if ftype == TType.STOP:
2287
        break
2287
        break
2288
      if fid == 1:
2288
      if fid == 1:
2289
        if ftype == TType.MAP:
2289
        if ftype == TType.I64:
2290
          self.paymentParams = {}
-
 
2291
          (_ktype57, _vtype58, _size56 ) = iprot.readMapBegin() 
-
 
2292
          for _i60 in xrange(_size56):
-
 
2293
            _key61 = iprot.readString();
2290
          self.merchantPaymentId = iprot.readI64();
2294
            _val62 = iprot.readString();
-
 
2295
            self.paymentParams[_key61] = _val62
-
 
2296
          iprot.readMapEnd()
-
 
2297
        else:
2291
        else:
2298
          iprot.skip(ftype)
2292
          iprot.skip(ftype)
2299
      else:
2293
      else:
2300
        iprot.skip(ftype)
2294
        iprot.skip(ftype)
2301
      iprot.readFieldEnd()
2295
      iprot.readFieldEnd()
Line 2303... Line 2297...
2303
 
2297
 
2304
  def write(self, oprot):
2298
  def write(self, oprot):
2305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2307
      return
2301
      return
2308
    oprot.writeStructBegin('updateAndCaptureEbsPayment_args')
2302
    oprot.writeStructBegin('captureEbsPayment_args')
2309
    if self.paymentParams != None:
2303
    if self.merchantPaymentId != None:
2310
      oprot.writeFieldBegin('paymentParams', TType.MAP, 1)
2304
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2311
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paymentParams))
-
 
2312
      for kiter63,viter64 in self.paymentParams.items():
-
 
2313
        oprot.writeString(kiter63)
2305
      oprot.writeI64(self.merchantPaymentId)
2314
        oprot.writeString(viter64)
-
 
2315
      oprot.writeMapEnd()
-
 
2316
      oprot.writeFieldEnd()
2306
      oprot.writeFieldEnd()
2317
    oprot.writeFieldStop()
2307
    oprot.writeFieldStop()
2318
    oprot.writeStructEnd()
2308
    oprot.writeStructEnd()
2319
 
2309
 
2320
  def __repr__(self):
2310
  def __repr__(self):
Line 2326... Line 2316...
2326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2327
 
2317
 
2328
  def __ne__(self, other):
2318
  def __ne__(self, other):
2329
    return not (self == other)
2319
    return not (self == other)
2330
 
2320
 
2331
class updateAndCaptureEbsPayment_result:
2321
class captureEbsPayment_result:
2332
  """
2322
  """
2333
  Attributes:
2323
  Attributes:
2334
   - success
2324
   - success
2335
   - pe
2325
   - pe
2336
  """
2326
  """
2337
 
2327
 
2338
  thrift_spec = (
2328
  thrift_spec = (
2339
    (0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
2329
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
2340
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2330
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2341
  )
2331
  )
2342
 
2332
 
2343
  def __init__(self, success=None, pe=None,):
2333
  def __init__(self, success=None, pe=None,):
2344
    self.success = success
2334
    self.success = success
Line 2352... Line 2342...
2352
    while True:
2342
    while True:
2353
      (fname, ftype, fid) = iprot.readFieldBegin()
2343
      (fname, ftype, fid) = iprot.readFieldBegin()
2354
      if ftype == TType.STOP:
2344
      if ftype == TType.STOP:
2355
        break
2345
        break
2356
      if fid == 0:
2346
      if fid == 0:
2357
        if ftype == TType.STRUCT:
2347
        if ftype == TType.MAP:
2358
          self.success = Payment()
2348
          self.success = {}
-
 
2349
          (_ktype57, _vtype58, _size56 ) = iprot.readMapBegin() 
-
 
2350
          for _i60 in xrange(_size56):
-
 
2351
            _key61 = iprot.readString();
-
 
2352
            _val62 = iprot.readString();
2359
          self.success.read(iprot)
2353
            self.success[_key61] = _val62
-
 
2354
          iprot.readMapEnd()
2360
        else:
2355
        else:
2361
          iprot.skip(ftype)
2356
          iprot.skip(ftype)
2362
      elif fid == 1:
2357
      elif fid == 1:
2363
        if ftype == TType.STRUCT:
2358
        if ftype == TType.STRUCT:
2364
          self.pe = PaymentException()
2359
          self.pe = PaymentException()
Line 2372... Line 2367...
2372
 
2367
 
2373
  def write(self, oprot):
2368
  def write(self, oprot):
2374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2376
      return
2371
      return
2377
    oprot.writeStructBegin('updateAndCaptureEbsPayment_result')
2372
    oprot.writeStructBegin('captureEbsPayment_result')
2378
    if self.success != None:
2373
    if self.success != None:
2379
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2374
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
2375
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
-
 
2376
      for kiter63,viter64 in self.success.items():
-
 
2377
        oprot.writeString(kiter63)
-
 
2378
        oprot.writeString(viter64)
2380
      self.success.write(oprot)
2379
      oprot.writeMapEnd()
2381
      oprot.writeFieldEnd()
2380
      oprot.writeFieldEnd()
2382
    if self.pe != None:
2381
    if self.pe != None:
2383
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2382
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2384
      self.pe.write(oprot)
2383
      self.pe.write(oprot)
2385
      oprot.writeFieldEnd()
2384
      oprot.writeFieldEnd()
Line 2395... Line 2394...
2395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2396
 
2395
 
2397
  def __ne__(self, other):
2396
  def __ne__(self, other):
2398
    return not (self == other)
2397
    return not (self == other)
2399
 
2398
 
2400
class captureEbsPayment_args:
2399
class captureHdfcPayment_args:
2401
  """
2400
  """
2402
  Attributes:
2401
  Attributes:
2403
   - merchantPaymentId
2402
   - merchantPaymentId
2404
  """
2403
  """
2405
 
2404
 
Line 2432... Line 2431...
2432
 
2431
 
2433
  def write(self, oprot):
2432
  def write(self, oprot):
2434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2436
      return
2435
      return
2437
    oprot.writeStructBegin('captureEbsPayment_args')
2436
    oprot.writeStructBegin('captureHdfcPayment_args')
2438
    if self.merchantPaymentId != None:
2437
    if self.merchantPaymentId != None:
2439
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2438
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2440
      oprot.writeI64(self.merchantPaymentId)
2439
      oprot.writeI64(self.merchantPaymentId)
2441
      oprot.writeFieldEnd()
2440
      oprot.writeFieldEnd()
2442
    oprot.writeFieldStop()
2441
    oprot.writeFieldStop()
Line 2451... Line 2450...
2451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2452
 
2451
 
2453
  def __ne__(self, other):
2452
  def __ne__(self, other):
2454
    return not (self == other)
2453
    return not (self == other)
2455
 
2454
 
2456
class captureEbsPayment_result:
2455
class captureHdfcPayment_result:
2457
  """
2456
  """
2458
  Attributes:
2457
  Attributes:
2459
   - success
2458
   - success
2460
   - pe
2459
   - pe
2461
  """
2460
  """
Line 2502... Line 2501...
2502
 
2501
 
2503
  def write(self, oprot):
2502
  def write(self, oprot):
2504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2506
      return
2505
      return
2507
    oprot.writeStructBegin('captureEbsPayment_result')
2506
    oprot.writeStructBegin('captureHdfcPayment_result')
2508
    if self.success != None:
2507
    if self.success != None:
2509
      oprot.writeFieldBegin('success', TType.MAP, 0)
2508
      oprot.writeFieldBegin('success', TType.MAP, 0)
2510
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
2509
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
2511
      for kiter72,viter73 in self.success.items():
2510
      for kiter72,viter73 in self.success.items():
2512
        oprot.writeString(kiter72)
2511
        oprot.writeString(kiter72)
Line 2529... Line 2528...
2529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2530
 
2529
 
2531
  def __ne__(self, other):
2530
  def __ne__(self, other):
2532
    return not (self == other)
2531
    return not (self == other)
2533
 
2532
 
2534
class captureHdfcPayment_args:
2533
class initializeHdfcPayment_args:
2535
  """
2534
  """
2536
  Attributes:
2535
  Attributes:
2537
   - merchantPaymentId
2536
   - merchantPaymentId
2538
  """
2537
  """
2539
 
2538
 
Line 2566... Line 2565...
2566
 
2565
 
2567
  def write(self, oprot):
2566
  def write(self, oprot):
2568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2570
      return
2569
      return
2571
    oprot.writeStructBegin('captureHdfcPayment_args')
2570
    oprot.writeStructBegin('initializeHdfcPayment_args')
2572
    if self.merchantPaymentId != None:
2571
    if self.merchantPaymentId != None:
2573
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2572
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2574
      oprot.writeI64(self.merchantPaymentId)
2573
      oprot.writeI64(self.merchantPaymentId)
2575
      oprot.writeFieldEnd()
2574
      oprot.writeFieldEnd()
2576
    oprot.writeFieldStop()
2575
    oprot.writeFieldStop()
Line 2585... Line 2584...
2585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2586
 
2585
 
2587
  def __ne__(self, other):
2586
  def __ne__(self, other):
2588
    return not (self == other)
2587
    return not (self == other)
2589
 
2588
 
2590
class captureHdfcPayment_result:
2589
class initializeHdfcPayment_result:
2591
  """
2590
  """
2592
  Attributes:
2591
  Attributes:
2593
   - success
2592
   - success
2594
   - pe
2593
   - pe
2595
  """
2594
  """
2596
 
2595
 
2597
  thrift_spec = (
2596
  thrift_spec = (
2598
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
2597
    (0, TType.STRING, 'success', None, None, ), # 0
2599
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2598
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2600
  )
2599
  )
2601
 
2600
 
2602
  def __init__(self, success=None, pe=None,):
2601
  def __init__(self, success=None, pe=None,):
2603
    self.success = success
2602
    self.success = success
Line 2611... Line 2610...
2611
    while True:
2610
    while True:
2612
      (fname, ftype, fid) = iprot.readFieldBegin()
2611
      (fname, ftype, fid) = iprot.readFieldBegin()
2613
      if ftype == TType.STOP:
2612
      if ftype == TType.STOP:
2614
        break
2613
        break
2615
      if fid == 0:
2614
      if fid == 0:
2616
        if ftype == TType.MAP:
2615
        if ftype == TType.STRING:
2617
          self.success = {}
-
 
2618
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
-
 
2619
          for _i78 in xrange(_size74):
-
 
2620
            _key79 = iprot.readString();
-
 
2621
            _val80 = iprot.readString();
2616
          self.success = iprot.readString();
2622
            self.success[_key79] = _val80
-
 
2623
          iprot.readMapEnd()
-
 
2624
        else:
2617
        else:
2625
          iprot.skip(ftype)
2618
          iprot.skip(ftype)
2626
      elif fid == 1:
2619
      elif fid == 1:
2627
        if ftype == TType.STRUCT:
2620
        if ftype == TType.STRUCT:
2628
          self.pe = PaymentException()
2621
          self.pe = PaymentException()
Line 2636... Line 2629...
2636
 
2629
 
2637
  def write(self, oprot):
2630
  def write(self, oprot):
2638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2640
      return
2633
      return
2641
    oprot.writeStructBegin('captureHdfcPayment_result')
2634
    oprot.writeStructBegin('initializeHdfcPayment_result')
2642
    if self.success != None:
2635
    if self.success != None:
2643
      oprot.writeFieldBegin('success', TType.MAP, 0)
2636
      oprot.writeFieldBegin('success', TType.STRING, 0)
2644
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
-
 
2645
      for kiter81,viter82 in self.success.items():
-
 
2646
        oprot.writeString(kiter81)
-
 
2647
        oprot.writeString(viter82)
2637
      oprot.writeString(self.success)
2648
      oprot.writeMapEnd()
-
 
2649
      oprot.writeFieldEnd()
2638
      oprot.writeFieldEnd()
2650
    if self.pe != None:
2639
    if self.pe != None:
2651
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2640
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2652
      self.pe.write(oprot)
2641
      self.pe.write(oprot)
2653
      oprot.writeFieldEnd()
2642
      oprot.writeFieldEnd()
Line 2663... Line 2652...
2663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2664
 
2653
 
2665
  def __ne__(self, other):
2654
  def __ne__(self, other):
2666
    return not (self == other)
2655
    return not (self == other)
2667
 
2656
 
2668
class initializeHdfcPayment_args:
2657
class createRefund_args:
2669
  """
2658
  """
2670
  Attributes:
2659
  Attributes:
-
 
2660
   - orderId
2671
   - merchantPaymentId
2661
   - merchantTxnId
-
 
2662
   - amount
2672
  """
2663
  """
2673
 
2664
 
2674
  thrift_spec = (
2665
  thrift_spec = (
2675
    None, # 0
2666
    None, # 0
-
 
2667
    (1, TType.I64, 'orderId', None, None, ), # 1
2676
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
2668
    (2, TType.I64, 'merchantTxnId', None, None, ), # 2
-
 
2669
    (3, TType.DOUBLE, 'amount', None, None, ), # 3
2677
  )
2670
  )
2678
 
2671
 
2679
  def __init__(self, merchantPaymentId=None,):
2672
  def __init__(self, orderId=None, merchantTxnId=None, amount=None,):
-
 
2673
    self.orderId = orderId
2680
    self.merchantPaymentId = merchantPaymentId
2674
    self.merchantTxnId = merchantTxnId
-
 
2675
    self.amount = amount
2681
 
2676
 
2682
  def read(self, iprot):
2677
  def read(self, iprot):
2683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2685
      return
2680
      return
Line 2688... Line 2683...
2688
      (fname, ftype, fid) = iprot.readFieldBegin()
2683
      (fname, ftype, fid) = iprot.readFieldBegin()
2689
      if ftype == TType.STOP:
2684
      if ftype == TType.STOP:
2690
        break
2685
        break
2691
      if fid == 1:
2686
      if fid == 1:
2692
        if ftype == TType.I64:
2687
        if ftype == TType.I64:
-
 
2688
          self.orderId = iprot.readI64();
-
 
2689
        else:
-
 
2690
          iprot.skip(ftype)
-
 
2691
      elif fid == 2:
-
 
2692
        if ftype == TType.I64:
2693
          self.merchantPaymentId = iprot.readI64();
2693
          self.merchantTxnId = iprot.readI64();
-
 
2694
        else:
-
 
2695
          iprot.skip(ftype)
-
 
2696
      elif fid == 3:
-
 
2697
        if ftype == TType.DOUBLE:
-
 
2698
          self.amount = iprot.readDouble();
2694
        else:
2699
        else:
2695
          iprot.skip(ftype)
2700
          iprot.skip(ftype)
2696
      else:
2701
      else:
2697
        iprot.skip(ftype)
2702
        iprot.skip(ftype)
2698
      iprot.readFieldEnd()
2703
      iprot.readFieldEnd()
Line 2700... Line 2705...
2700
 
2705
 
2701
  def write(self, oprot):
2706
  def write(self, oprot):
2702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2704
      return
2709
      return
2705
    oprot.writeStructBegin('initializeHdfcPayment_args')
2710
    oprot.writeStructBegin('createRefund_args')
-
 
2711
    if self.orderId != None:
-
 
2712
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
2713
      oprot.writeI64(self.orderId)
-
 
2714
      oprot.writeFieldEnd()
2706
    if self.merchantPaymentId != None:
2715
    if self.merchantTxnId != None:
2707
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2716
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
2708
      oprot.writeI64(self.merchantPaymentId)
2717
      oprot.writeI64(self.merchantTxnId)
-
 
2718
      oprot.writeFieldEnd()
-
 
2719
    if self.amount != None:
-
 
2720
      oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
-
 
2721
      oprot.writeDouble(self.amount)
2709
      oprot.writeFieldEnd()
2722
      oprot.writeFieldEnd()
2710
    oprot.writeFieldStop()
2723
    oprot.writeFieldStop()
2711
    oprot.writeStructEnd()
2724
    oprot.writeStructEnd()
2712
 
2725
 
2713
  def __repr__(self):
2726
  def __repr__(self):
Line 2719... Line 2732...
2719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2720
 
2733
 
2721
  def __ne__(self, other):
2734
  def __ne__(self, other):
2722
    return not (self == other)
2735
    return not (self == other)
2723
 
2736
 
2724
class initializeHdfcPayment_result:
2737
class createRefund_result:
2725
  """
2738
  """
2726
  Attributes:
2739
  Attributes:
2727
   - success
2740
   - success
2728
   - pe
2741
   - pe
2729
  """
2742
  """
2730
 
2743
 
2731
  thrift_spec = (
2744
  thrift_spec = (
2732
    (0, TType.STRING, 'success', None, None, ), # 0
2745
    (0, TType.I64, 'success', None, None, ), # 0
2733
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2746
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2734
  )
2747
  )
2735
 
2748
 
2736
  def __init__(self, success=None, pe=None,):
2749
  def __init__(self, success=None, pe=None,):
2737
    self.success = success
2750
    self.success = success
Line 2745... Line 2758...
2745
    while True:
2758
    while True:
2746
      (fname, ftype, fid) = iprot.readFieldBegin()
2759
      (fname, ftype, fid) = iprot.readFieldBegin()
2747
      if ftype == TType.STOP:
2760
      if ftype == TType.STOP:
2748
        break
2761
        break
2749
      if fid == 0:
2762
      if fid == 0:
2750
        if ftype == TType.STRING:
2763
        if ftype == TType.I64:
2751
          self.success = iprot.readString();
2764
          self.success = iprot.readI64();
2752
        else:
2765
        else:
2753
          iprot.skip(ftype)
2766
          iprot.skip(ftype)
2754
      elif fid == 1:
2767
      elif fid == 1:
2755
        if ftype == TType.STRUCT:
2768
        if ftype == TType.STRUCT:
2756
          self.pe = PaymentException()
2769
          self.pe = PaymentException()
Line 2764... Line 2777...
2764
 
2777
 
2765
  def write(self, oprot):
2778
  def write(self, oprot):
2766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2768
      return
2781
      return
2769
    oprot.writeStructBegin('initializeHdfcPayment_result')
2782
    oprot.writeStructBegin('createRefund_result')
2770
    if self.success != None:
2783
    if self.success != None:
2771
      oprot.writeFieldBegin('success', TType.STRING, 0)
2784
      oprot.writeFieldBegin('success', TType.I64, 0)
2772
      oprot.writeString(self.success)
2785
      oprot.writeI64(self.success)
2773
      oprot.writeFieldEnd()
2786
      oprot.writeFieldEnd()
2774
    if self.pe != None:
2787
    if self.pe != None:
2775
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2788
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2776
      self.pe.write(oprot)
2789
      self.pe.write(oprot)
2777
      oprot.writeFieldEnd()
2790
      oprot.writeFieldEnd()
Line 2787... Line 2800...
2787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2788
 
2801
 
2789
  def __ne__(self, other):
2802
  def __ne__(self, other):
2790
    return not (self == other)
2803
    return not (self == other)
2791
 
2804
 
2792
class createRefund_args:
2805
class capturePayment_args:
2793
  """
2806
  """
2794
  Attributes:
2807
  Attributes:
2795
   - orderId
-
 
2796
   - merchantTxnId
2808
   - merchantTxnId
2797
   - amount
-
 
2798
  """
2809
  """
2799
 
2810
 
2800
  thrift_spec = (
2811
  thrift_spec = (
2801
    None, # 0
2812
    None, # 0
2802
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
2803
    (2, TType.I64, 'merchantTxnId', None, None, ), # 2
2813
    (1, TType.I64, 'merchantTxnId', None, None, ), # 1
2804
    (3, TType.DOUBLE, 'amount', None, None, ), # 3
-
 
2805
  )
2814
  )
2806
 
2815
 
2807
  def __init__(self, orderId=None, merchantTxnId=None, amount=None,):
2816
  def __init__(self, merchantTxnId=None,):
2808
    self.orderId = orderId
-
 
2809
    self.merchantTxnId = merchantTxnId
2817
    self.merchantTxnId = merchantTxnId
2810
    self.amount = amount
-
 
2811
 
2818
 
2812
  def read(self, iprot):
2819
  def read(self, iprot):
2813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2815
      return
2822
      return
Line 2818... Line 2825...
2818
      (fname, ftype, fid) = iprot.readFieldBegin()
2825
      (fname, ftype, fid) = iprot.readFieldBegin()
2819
      if ftype == TType.STOP:
2826
      if ftype == TType.STOP:
2820
        break
2827
        break
2821
      if fid == 1:
2828
      if fid == 1:
2822
        if ftype == TType.I64:
2829
        if ftype == TType.I64:
2823
          self.orderId = iprot.readI64();
-
 
2824
        else:
-
 
2825
          iprot.skip(ftype)
-
 
2826
      elif fid == 2:
-
 
2827
        if ftype == TType.I64:
-
 
2828
          self.merchantTxnId = iprot.readI64();
2830
          self.merchantTxnId = iprot.readI64();
2829
        else:
2831
        else:
2830
          iprot.skip(ftype)
2832
          iprot.skip(ftype)
2831
      elif fid == 3:
-
 
2832
        if ftype == TType.DOUBLE:
-
 
2833
          self.amount = iprot.readDouble();
-
 
2834
        else:
-
 
2835
          iprot.skip(ftype)
-
 
2836
      else:
2833
      else:
2837
        iprot.skip(ftype)
2834
        iprot.skip(ftype)
2838
      iprot.readFieldEnd()
2835
      iprot.readFieldEnd()
2839
    iprot.readStructEnd()
2836
    iprot.readStructEnd()
2840
 
2837
 
2841
  def write(self, oprot):
2838
  def write(self, oprot):
2842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2844
      return
2841
      return
2845
    oprot.writeStructBegin('createRefund_args')
2842
    oprot.writeStructBegin('capturePayment_args')
2846
    if self.orderId != None:
-
 
2847
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
2848
      oprot.writeI64(self.orderId)
-
 
2849
      oprot.writeFieldEnd()
-
 
2850
    if self.merchantTxnId != None:
2843
    if self.merchantTxnId != None:
2851
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
2844
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
2852
      oprot.writeI64(self.merchantTxnId)
2845
      oprot.writeI64(self.merchantTxnId)
2853
      oprot.writeFieldEnd()
2846
      oprot.writeFieldEnd()
2854
    if self.amount != None:
-
 
2855
      oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
-
 
2856
      oprot.writeDouble(self.amount)
-
 
2857
      oprot.writeFieldEnd()
-
 
2858
    oprot.writeFieldStop()
2847
    oprot.writeFieldStop()
2859
    oprot.writeStructEnd()
2848
    oprot.writeStructEnd()
2860
 
2849
 
2861
  def __repr__(self):
2850
  def __repr__(self):
2862
    L = ['%s=%r' % (key, value)
2851
    L = ['%s=%r' % (key, value)
Line 2867... Line 2856...
2867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2868
 
2857
 
2869
  def __ne__(self, other):
2858
  def __ne__(self, other):
2870
    return not (self == other)
2859
    return not (self == other)
2871
 
2860
 
2872
class createRefund_result:
2861
class capturePayment_result:
2873
  """
2862
  """
2874
  Attributes:
2863
  Attributes:
2875
   - success
2864
   - success
2876
   - pe
2865
   - pe
2877
  """
2866
  """
2878
 
2867
 
2879
  thrift_spec = (
2868
  thrift_spec = (
2880
    (0, TType.I64, 'success', None, None, ), # 0
2869
    (0, TType.BOOL, 'success', None, None, ), # 0
2881
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2870
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2882
  )
2871
  )
2883
 
2872
 
2884
  def __init__(self, success=None, pe=None,):
2873
  def __init__(self, success=None, pe=None,):
2885
    self.success = success
2874
    self.success = success
Line 2893... Line 2882...
2893
    while True:
2882
    while True:
2894
      (fname, ftype, fid) = iprot.readFieldBegin()
2883
      (fname, ftype, fid) = iprot.readFieldBegin()
2895
      if ftype == TType.STOP:
2884
      if ftype == TType.STOP:
2896
        break
2885
        break
2897
      if fid == 0:
2886
      if fid == 0:
2898
        if ftype == TType.I64:
2887
        if ftype == TType.BOOL:
2899
          self.success = iprot.readI64();
2888
          self.success = iprot.readBool();
2900
        else:
2889
        else:
2901
          iprot.skip(ftype)
2890
          iprot.skip(ftype)
2902
      elif fid == 1:
2891
      elif fid == 1:
2903
        if ftype == TType.STRUCT:
2892
        if ftype == TType.STRUCT:
2904
          self.pe = PaymentException()
2893
          self.pe = PaymentException()
Line 2912... Line 2901...
2912
 
2901
 
2913
  def write(self, oprot):
2902
  def write(self, oprot):
2914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2916
      return
2905
      return
2917
    oprot.writeStructBegin('createRefund_result')
2906
    oprot.writeStructBegin('capturePayment_result')
2918
    if self.success != None:
2907
    if self.success != None:
2919
      oprot.writeFieldBegin('success', TType.I64, 0)
2908
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2920
      oprot.writeI64(self.success)
2909
      oprot.writeBool(self.success)
2921
      oprot.writeFieldEnd()
2910
      oprot.writeFieldEnd()
2922
    if self.pe != None:
2911
    if self.pe != None:
2923
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2912
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2924
      self.pe.write(oprot)
2913
      self.pe.write(oprot)
2925
      oprot.writeFieldEnd()
2914
      oprot.writeFieldEnd()