Subversion Repositories SmartDukaan

Rev

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

Rev 4008 Rev 4141
Line 19... Line 19...
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def createPayment(self, userId, amount, gatewayId, txnId):
20
  def createPayment(self, userId, amount, gatewayId, txnId):
21
    """
21
    """
22
    create a new payment and return payment id, throws an exception if gateway is not active
22
    create a new payment and return payment id, throws an exception if gateway is not active
23
 
23
 
24
 
-
 
25
    Parameters:
24
    Parameters:
26
     - userId
25
     - userId
27
     - amount
26
     - amount
28
     - gatewayId
27
     - gatewayId
29
     - txnId
28
     - txnId
30
    """
29
    """
31
    pass
30
    pass
32
 
31
 
33
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
32
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
34
    """
33
    """
35
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
34
    Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
36
 
-
 
37
 
35
 
38
    Parameters:
36
    Parameters:
39
     - userId
37
     - userId
40
     - fromTime
38
     - fromTime
41
     - toTime
39
     - toTime
Line 44... Line 42...
44
    """
42
    """
45
    pass
43
    pass
46
 
44
 
47
  def getPayments(self, fromTime, toTime, status, gatewayId):
45
  def getPayments(self, fromTime, toTime, status, gatewayId):
48
    """
46
    """
49
    get all payments for user. If gatewayId is 0, then it is ignored while filtering.
47
    Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
50
 
-
 
51
 
48
 
52
    Parameters:
49
    Parameters:
53
     - fromTime
50
     - fromTime
54
     - toTime
51
     - toTime
55
     - status
52
     - status
56
     - gatewayId
53
     - gatewayId
57
    """
54
    """
58
    pass
55
    pass
59
 
56
 
60
  def getPaymentGateway(self, id):
57
  def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
-
 
58
    """
-
 
59
    Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
-
 
60
 
-
 
61
    Parameters:
-
 
62
     - fromTime
-
 
63
     - toTime
-
 
64
     - gatewayId
61
    """
65
    """
62
    Get a particular gateway
66
    pass
63
 
67
 
-
 
68
  def getPaymentGateway(self, id):
-
 
69
    """
-
 
70
    Get the gateway for the given id.
64
 
71
 
65
    Parameters:
72
    Parameters:
66
     - id
73
     - id
67
    """
74
    """
68
    pass
75
    pass
Line 208... Line 215...
208
 
215
 
209
  def createPayment(self, userId, amount, gatewayId, txnId):
216
  def createPayment(self, userId, amount, gatewayId, txnId):
210
    """
217
    """
211
    create a new payment and return payment id, throws an exception if gateway is not active
218
    create a new payment and return payment id, throws an exception if gateway is not active
212
 
219
 
213
 
-
 
214
    Parameters:
220
    Parameters:
215
     - userId
221
     - userId
216
     - amount
222
     - amount
217
     - gatewayId
223
     - gatewayId
218
     - txnId
224
     - txnId
Line 247... Line 253...
247
      raise result.pe
253
      raise result.pe
248
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
249
 
255
 
250
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
256
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
251
    """
257
    """
252
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
258
    Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
253
 
-
 
254
 
259
 
255
    Parameters:
260
    Parameters:
256
     - userId
261
     - userId
257
     - fromTime
262
     - fromTime
258
     - toTime
263
     - toTime
Line 290... Line 295...
290
      raise result.pe
295
      raise result.pe
291
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
292
 
297
 
293
  def getPayments(self, fromTime, toTime, status, gatewayId):
298
  def getPayments(self, fromTime, toTime, status, gatewayId):
294
    """
299
    """
295
    get all payments for user. If gatewayId is 0, then it is ignored while filtering.
300
    Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
296
 
-
 
297
 
301
 
298
    Parameters:
302
    Parameters:
299
     - fromTime
303
     - fromTime
300
     - toTime
304
     - toTime
301
     - status
305
     - status
Line 329... Line 333...
329
      return result.success
333
      return result.success
330
    if result.pe is not None:
334
    if result.pe is not None:
331
      raise result.pe
335
      raise result.pe
332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
336
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
333
 
337
 
334
  def getPaymentGateway(self, id):
338
  def getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
335
    """
339
    """
336
    Get a particular gateway
340
    Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
337
 
341
 
-
 
342
    Parameters:
-
 
343
     - fromTime
-
 
344
     - toTime
-
 
345
     - gatewayId
-
 
346
    """
-
 
347
    self.send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId)
-
 
348
    return self.recv_getPaymentsByCapturedDate()
-
 
349
 
-
 
350
  def send_getPaymentsByCapturedDate(self, fromTime, toTime, gatewayId):
-
 
351
    self._oprot.writeMessageBegin('getPaymentsByCapturedDate', TMessageType.CALL, self._seqid)
-
 
352
    args = getPaymentsByCapturedDate_args()
-
 
353
    args.fromTime = fromTime
-
 
354
    args.toTime = toTime
-
 
355
    args.gatewayId = gatewayId
-
 
356
    args.write(self._oprot)
-
 
357
    self._oprot.writeMessageEnd()
-
 
358
    self._oprot.trans.flush()
-
 
359
 
-
 
360
  def recv_getPaymentsByCapturedDate(self, ):
-
 
361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
362
    if mtype == TMessageType.EXCEPTION:
-
 
363
      x = TApplicationException()
-
 
364
      x.read(self._iprot)
-
 
365
      self._iprot.readMessageEnd()
-
 
366
      raise x
-
 
367
    result = getPaymentsByCapturedDate_result()
-
 
368
    result.read(self._iprot)
-
 
369
    self._iprot.readMessageEnd()
-
 
370
    if result.success is not None:
-
 
371
      return result.success
-
 
372
    if result.pe is not None:
-
 
373
      raise result.pe
-
 
374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
-
 
375
 
-
 
376
  def getPaymentGateway(self, id):
-
 
377
    """
-
 
378
    Get the gateway for the given id.
338
 
379
 
339
    Parameters:
380
    Parameters:
340
     - id
381
     - id
341
    """
382
    """
342
    self.send_getPaymentGateway(id)
383
    self.send_getPaymentGateway(id)
Line 789... Line 830...
789
  def __init__(self, handler):
830
  def __init__(self, handler):
790
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
831
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
791
    self._processMap["createPayment"] = Processor.process_createPayment
832
    self._processMap["createPayment"] = Processor.process_createPayment
792
    self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
833
    self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
793
    self._processMap["getPayments"] = Processor.process_getPayments
834
    self._processMap["getPayments"] = Processor.process_getPayments
-
 
835
    self._processMap["getPaymentsByCapturedDate"] = Processor.process_getPaymentsByCapturedDate
794
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
836
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
795
    self._processMap["getPayment"] = Processor.process_getPayment
837
    self._processMap["getPayment"] = Processor.process_getPayment
796
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
838
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
797
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
839
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
798
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
840
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
Line 859... Line 901...
859
    oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
901
    oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
860
    result.write(oprot)
902
    result.write(oprot)
861
    oprot.writeMessageEnd()
903
    oprot.writeMessageEnd()
862
    oprot.trans.flush()
904
    oprot.trans.flush()
863
 
905
 
-
 
906
  def process_getPaymentsByCapturedDate(self, seqid, iprot, oprot):
-
 
907
    args = getPaymentsByCapturedDate_args()
-
 
908
    args.read(iprot)
-
 
909
    iprot.readMessageEnd()
-
 
910
    result = getPaymentsByCapturedDate_result()
-
 
911
    try:
-
 
912
      result.success = self._handler.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId)
-
 
913
    except PaymentException, pe:
-
 
914
      result.pe = pe
-
 
915
    oprot.writeMessageBegin("getPaymentsByCapturedDate", TMessageType.REPLY, seqid)
-
 
916
    result.write(oprot)
-
 
917
    oprot.writeMessageEnd()
-
 
918
    oprot.trans.flush()
-
 
919
 
864
  def process_getPaymentGateway(self, seqid, iprot, oprot):
920
  def process_getPaymentGateway(self, seqid, iprot, oprot):
865
    args = getPaymentGateway_args()
921
    args = getPaymentGateway_args()
866
    args.read(iprot)
922
    args.read(iprot)
867
    iprot.readMessageEnd()
923
    iprot.readMessageEnd()
868
    result = getPaymentGateway_result()
924
    result = getPaymentGateway_result()
Line 1555... Line 1611...
1555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1556
 
1612
 
1557
  def __ne__(self, other):
1613
  def __ne__(self, other):
1558
    return not (self == other)
1614
    return not (self == other)
1559
 
1615
 
-
 
1616
class getPaymentsByCapturedDate_args:
-
 
1617
  """
-
 
1618
  Attributes:
-
 
1619
   - fromTime
-
 
1620
   - toTime
-
 
1621
   - gatewayId
-
 
1622
  """
-
 
1623
 
-
 
1624
  thrift_spec = (
-
 
1625
    None, # 0
-
 
1626
    (1, TType.I64, 'fromTime', None, None, ), # 1
-
 
1627
    (2, TType.I64, 'toTime', None, None, ), # 2
-
 
1628
    (3, TType.I64, 'gatewayId', None, None, ), # 3
-
 
1629
  )
-
 
1630
 
-
 
1631
  def __init__(self, fromTime=None, toTime=None, gatewayId=None,):
-
 
1632
    self.fromTime = fromTime
-
 
1633
    self.toTime = toTime
-
 
1634
    self.gatewayId = gatewayId
-
 
1635
 
-
 
1636
  def read(self, iprot):
-
 
1637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1639
      return
-
 
1640
    iprot.readStructBegin()
-
 
1641
    while True:
-
 
1642
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1643
      if ftype == TType.STOP:
-
 
1644
        break
-
 
1645
      if fid == 1:
-
 
1646
        if ftype == TType.I64:
-
 
1647
          self.fromTime = iprot.readI64();
-
 
1648
        else:
-
 
1649
          iprot.skip(ftype)
-
 
1650
      elif fid == 2:
-
 
1651
        if ftype == TType.I64:
-
 
1652
          self.toTime = iprot.readI64();
-
 
1653
        else:
-
 
1654
          iprot.skip(ftype)
-
 
1655
      elif fid == 3:
-
 
1656
        if ftype == TType.I64:
-
 
1657
          self.gatewayId = iprot.readI64();
-
 
1658
        else:
-
 
1659
          iprot.skip(ftype)
-
 
1660
      else:
-
 
1661
        iprot.skip(ftype)
-
 
1662
      iprot.readFieldEnd()
-
 
1663
    iprot.readStructEnd()
-
 
1664
 
-
 
1665
  def write(self, oprot):
-
 
1666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1668
      return
-
 
1669
    oprot.writeStructBegin('getPaymentsByCapturedDate_args')
-
 
1670
    if self.fromTime is not None:
-
 
1671
      oprot.writeFieldBegin('fromTime', TType.I64, 1)
-
 
1672
      oprot.writeI64(self.fromTime)
-
 
1673
      oprot.writeFieldEnd()
-
 
1674
    if self.toTime is not None:
-
 
1675
      oprot.writeFieldBegin('toTime', TType.I64, 2)
-
 
1676
      oprot.writeI64(self.toTime)
-
 
1677
      oprot.writeFieldEnd()
-
 
1678
    if self.gatewayId is not None:
-
 
1679
      oprot.writeFieldBegin('gatewayId', TType.I64, 3)
-
 
1680
      oprot.writeI64(self.gatewayId)
-
 
1681
      oprot.writeFieldEnd()
-
 
1682
    oprot.writeFieldStop()
-
 
1683
    oprot.writeStructEnd()
-
 
1684
 
-
 
1685
  def validate(self):
-
 
1686
    return
-
 
1687
 
-
 
1688
 
-
 
1689
  def __repr__(self):
-
 
1690
    L = ['%s=%r' % (key, value)
-
 
1691
      for key, value in self.__dict__.iteritems()]
-
 
1692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1693
 
-
 
1694
  def __eq__(self, other):
-
 
1695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1696
 
-
 
1697
  def __ne__(self, other):
-
 
1698
    return not (self == other)
-
 
1699
 
-
 
1700
class getPaymentsByCapturedDate_result:
-
 
1701
  """
-
 
1702
  Attributes:
-
 
1703
   - success
-
 
1704
   - pe
-
 
1705
  """
-
 
1706
 
-
 
1707
  thrift_spec = (
-
 
1708
    (0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
-
 
1709
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
1710
  )
-
 
1711
 
-
 
1712
  def __init__(self, success=None, pe=None,):
-
 
1713
    self.success = success
-
 
1714
    self.pe = pe
-
 
1715
 
-
 
1716
  def read(self, iprot):
-
 
1717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1719
      return
-
 
1720
    iprot.readStructBegin()
-
 
1721
    while True:
-
 
1722
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1723
      if ftype == TType.STOP:
-
 
1724
        break
-
 
1725
      if fid == 0:
-
 
1726
        if ftype == TType.LIST:
-
 
1727
          self.success = []
-
 
1728
          (_etype38, _size35) = iprot.readListBegin()
-
 
1729
          for _i39 in xrange(_size35):
-
 
1730
            _elem40 = Payment()
-
 
1731
            _elem40.read(iprot)
-
 
1732
            self.success.append(_elem40)
-
 
1733
          iprot.readListEnd()
-
 
1734
        else:
-
 
1735
          iprot.skip(ftype)
-
 
1736
      elif fid == 1:
-
 
1737
        if ftype == TType.STRUCT:
-
 
1738
          self.pe = PaymentException()
-
 
1739
          self.pe.read(iprot)
-
 
1740
        else:
-
 
1741
          iprot.skip(ftype)
-
 
1742
      else:
-
 
1743
        iprot.skip(ftype)
-
 
1744
      iprot.readFieldEnd()
-
 
1745
    iprot.readStructEnd()
-
 
1746
 
-
 
1747
  def write(self, oprot):
-
 
1748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1750
      return
-
 
1751
    oprot.writeStructBegin('getPaymentsByCapturedDate_result')
-
 
1752
    if self.success is not None:
-
 
1753
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1754
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1755
      for iter41 in self.success:
-
 
1756
        iter41.write(oprot)
-
 
1757
      oprot.writeListEnd()
-
 
1758
      oprot.writeFieldEnd()
-
 
1759
    if self.pe is not None:
-
 
1760
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
1761
      self.pe.write(oprot)
-
 
1762
      oprot.writeFieldEnd()
-
 
1763
    oprot.writeFieldStop()
-
 
1764
    oprot.writeStructEnd()
-
 
1765
 
-
 
1766
  def validate(self):
-
 
1767
    return
-
 
1768
 
-
 
1769
 
-
 
1770
  def __repr__(self):
-
 
1771
    L = ['%s=%r' % (key, value)
-
 
1772
      for key, value in self.__dict__.iteritems()]
-
 
1773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1774
 
-
 
1775
  def __eq__(self, other):
-
 
1776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1777
 
-
 
1778
  def __ne__(self, other):
-
 
1779
    return not (self == other)
-
 
1780
 
1560
class getPaymentGateway_args:
1781
class getPaymentGateway_args:
1561
  """
1782
  """
1562
  Attributes:
1783
  Attributes:
1563
   - id
1784
   - id
1564
  """
1785
  """
Line 1909... Line 2130...
1909
      if ftype == TType.STOP:
2130
      if ftype == TType.STOP:
1910
        break
2131
        break
1911
      if fid == 0:
2132
      if fid == 0:
1912
        if ftype == TType.LIST:
2133
        if ftype == TType.LIST:
1913
          self.success = []
2134
          self.success = []
1914
          (_etype38, _size35) = iprot.readListBegin()
2135
          (_etype45, _size42) = iprot.readListBegin()
1915
          for _i39 in xrange(_size35):
2136
          for _i46 in xrange(_size42):
1916
            _elem40 = Payment()
2137
            _elem47 = Payment()
1917
            _elem40.read(iprot)
2138
            _elem47.read(iprot)
1918
            self.success.append(_elem40)
2139
            self.success.append(_elem47)
1919
          iprot.readListEnd()
2140
          iprot.readListEnd()
1920
        else:
2141
        else:
1921
          iprot.skip(ftype)
2142
          iprot.skip(ftype)
1922
      elif fid == 1:
2143
      elif fid == 1:
1923
        if ftype == TType.STRUCT:
2144
        if ftype == TType.STRUCT:
Line 1936... Line 2157...
1936
      return
2157
      return
1937
    oprot.writeStructBegin('getPaymentForTxnId_result')
2158
    oprot.writeStructBegin('getPaymentForTxnId_result')
1938
    if self.success is not None:
2159
    if self.success is not None:
1939
      oprot.writeFieldBegin('success', TType.LIST, 0)
2160
      oprot.writeFieldBegin('success', TType.LIST, 0)
1940
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2161
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1941
      for iter41 in self.success:
2162
      for iter48 in self.success:
1942
        iter41.write(oprot)
2163
        iter48.write(oprot)
1943
      oprot.writeListEnd()
2164
      oprot.writeListEnd()
1944
      oprot.writeFieldEnd()
2165
      oprot.writeFieldEnd()
1945
    if self.pe is not None:
2166
    if self.pe is not None:
1946
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2167
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1947
      self.pe.write(oprot)
2168
      self.pe.write(oprot)
Line 2076... Line 2297...
2076
        else:
2297
        else:
2077
          iprot.skip(ftype)
2298
          iprot.skip(ftype)
2078
      elif fid == 12:
2299
      elif fid == 12:
2079
        if ftype == TType.LIST:
2300
        if ftype == TType.LIST:
2080
          self.attributes = []
2301
          self.attributes = []
2081
          (_etype45, _size42) = iprot.readListBegin()
2302
          (_etype52, _size49) = iprot.readListBegin()
2082
          for _i46 in xrange(_size42):
2303
          for _i53 in xrange(_size49):
2083
            _elem47 = Attribute()
2304
            _elem54 = Attribute()
2084
            _elem47.read(iprot)
2305
            _elem54.read(iprot)
2085
            self.attributes.append(_elem47)
2306
            self.attributes.append(_elem54)
2086
          iprot.readListEnd()
2307
          iprot.readListEnd()
2087
        else:
2308
        else:
2088
          iprot.skip(ftype)
2309
          iprot.skip(ftype)
2089
      else:
2310
      else:
2090
        iprot.skip(ftype)
2311
        iprot.skip(ftype)
Line 2141... Line 2362...
2141
      oprot.writeString(self.gatewayTxnDate)
2362
      oprot.writeString(self.gatewayTxnDate)
2142
      oprot.writeFieldEnd()
2363
      oprot.writeFieldEnd()
2143
    if self.attributes is not None:
2364
    if self.attributes is not None:
2144
      oprot.writeFieldBegin('attributes', TType.LIST, 12)
2365
      oprot.writeFieldBegin('attributes', TType.LIST, 12)
2145
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
2366
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
2146
      for iter48 in self.attributes:
2367
      for iter55 in self.attributes:
2147
        iter48.write(oprot)
2368
        iter55.write(oprot)
2148
      oprot.writeListEnd()
2369
      oprot.writeListEnd()
2149
      oprot.writeFieldEnd()
2370
      oprot.writeFieldEnd()
2150
    oprot.writeFieldStop()
2371
    oprot.writeFieldStop()
2151
    oprot.writeStructEnd()
2372
    oprot.writeStructEnd()
2152
 
2373
 
Line 2302... Line 2523...
2302
      if ftype == TType.STOP:
2523
      if ftype == TType.STOP:
2303
        break
2524
        break
2304
      if fid == 0:
2525
      if fid == 0:
2305
        if ftype == TType.LIST:
2526
        if ftype == TType.LIST:
2306
          self.success = []
2527
          self.success = []
2307
          (_etype52, _size49) = iprot.readListBegin()
2528
          (_etype59, _size56) = iprot.readListBegin()
2308
          for _i53 in xrange(_size49):
2529
          for _i60 in xrange(_size56):
2309
            _elem54 = iprot.readDouble();
2530
            _elem61 = iprot.readDouble();
2310
            self.success.append(_elem54)
2531
            self.success.append(_elem61)
2311
          iprot.readListEnd()
2532
          iprot.readListEnd()
2312
        else:
2533
        else:
2313
          iprot.skip(ftype)
2534
          iprot.skip(ftype)
2314
      else:
2535
      else:
2315
        iprot.skip(ftype)
2536
        iprot.skip(ftype)
Line 2322... Line 2543...
2322
      return
2543
      return
2323
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
2544
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
2324
    if self.success is not None:
2545
    if self.success is not None:
2325
      oprot.writeFieldBegin('success', TType.LIST, 0)
2546
      oprot.writeFieldBegin('success', TType.LIST, 0)
2326
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
2547
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
2327
      for iter55 in self.success:
2548
      for iter62 in self.success:
2328
        oprot.writeDouble(iter55)
2549
        oprot.writeDouble(iter62)
2329
      oprot.writeListEnd()
2550
      oprot.writeListEnd()
2330
      oprot.writeFieldEnd()
2551
      oprot.writeFieldEnd()
2331
    oprot.writeFieldStop()
2552
    oprot.writeFieldStop()
2332
    oprot.writeStructEnd()
2553
    oprot.writeStructEnd()
2333
 
2554
 
Line 3161... Line 3382...
3161
      if ftype == TType.STOP:
3382
      if ftype == TType.STOP:
3162
        break
3383
        break
3163
      if fid == 0:
3384
      if fid == 0:
3164
        if ftype == TType.LIST:
3385
        if ftype == TType.LIST:
3165
          self.success = []
3386
          self.success = []
3166
          (_etype59, _size56) = iprot.readListBegin()
3387
          (_etype66, _size63) = iprot.readListBegin()
3167
          for _i60 in xrange(_size56):
3388
          for _i67 in xrange(_size63):
3168
            _elem61 = iprot.readI64();
3389
            _elem68 = iprot.readI64();
3169
            self.success.append(_elem61)
3390
            self.success.append(_elem68)
3170
          iprot.readListEnd()
3391
          iprot.readListEnd()
3171
        else:
3392
        else:
3172
          iprot.skip(ftype)
3393
          iprot.skip(ftype)
3173
      else:
3394
      else:
3174
        iprot.skip(ftype)
3395
        iprot.skip(ftype)
Line 3181... Line 3402...
3181
      return
3402
      return
3182
    oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
3403
    oprot.writeStructBegin('getPaymentsRequiringExtraProcessing_result')
3183
    if self.success is not None:
3404
    if self.success is not None:
3184
      oprot.writeFieldBegin('success', TType.LIST, 0)
3405
      oprot.writeFieldBegin('success', TType.LIST, 0)
3185
      oprot.writeListBegin(TType.I64, len(self.success))
3406
      oprot.writeListBegin(TType.I64, len(self.success))
3186
      for iter62 in self.success:
3407
      for iter69 in self.success:
3187
        oprot.writeI64(iter62)
3408
        oprot.writeI64(iter69)
3188
      oprot.writeListEnd()
3409
      oprot.writeListEnd()
3189
      oprot.writeFieldEnd()
3410
      oprot.writeFieldEnd()
3190
    oprot.writeFieldStop()
3411
    oprot.writeFieldStop()
3191
    oprot.writeStructEnd()
3412
    oprot.writeStructEnd()
3192
 
3413