Subversion Repositories SmartDukaan

Rev

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

Rev 94 Rev 132
Line 69... Line 69...
69
     - to_date
69
     - to_date
70
     - status
70
     - status
71
    """
71
    """
72
    pass
72
    pass
73
 
73
 
-
 
74
  def getTransactionsForShoppingCartId(self, shoppingCartId):
-
 
75
    """
-
 
76
    Parameters:
-
 
77
     - shoppingCartId
-
 
78
    """
-
 
79
    pass
-
 
80
 
74
  def getTransactionStatus(self, transactionId):
81
  def getTransactionStatus(self, transactionId):
75
    """
82
    """
76
    Parameters:
83
    Parameters:
77
     - transactionId
84
     - transactionId
78
    """
85
    """
Line 178... Line 185...
178
    """
185
    """
179
    Parameters:
186
    Parameters:
180
     - transaction
187
     - transaction
181
    """
188
    """
182
    self.send_createTransaction(transaction)
189
    self.send_createTransaction(transaction)
183
    self.recv_createTransaction()
190
    return self.recv_createTransaction()
184
 
191
 
185
  def send_createTransaction(self, transaction):
192
  def send_createTransaction(self, transaction):
186
    self._oprot.writeMessageBegin('createTransaction', TMessageType.CALL, self._seqid)
193
    self._oprot.writeMessageBegin('createTransaction', TMessageType.CALL, self._seqid)
187
    args = createTransaction_args()
194
    args = createTransaction_args()
188
    args.transaction = transaction
195
    args.transaction = transaction
Line 198... Line 205...
198
      self._iprot.readMessageEnd()
205
      self._iprot.readMessageEnd()
199
      raise x
206
      raise x
200
    result = createTransaction_result()
207
    result = createTransaction_result()
201
    result.read(self._iprot)
208
    result.read(self._iprot)
202
    self._iprot.readMessageEnd()
209
    self._iprot.readMessageEnd()
-
 
210
    if result.success != None:
-
 
211
      return result.success
203
    if result.ex != None:
212
    if result.ex != None:
204
      raise result.ex
213
      raise result.ex
205
    return
-
 
-
 
214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
206
 
215
 
207
  def getTransaction(self, id):
216
  def getTransaction(self, id):
208
    """
217
    """
209
    	Get transaction methods.
218
    	Get transaction methods.
210
    *
219
    *
Line 385... Line 394...
385
      return result.success
394
      return result.success
386
    if result.ex != None:
395
    if result.ex != None:
387
      raise result.ex
396
      raise result.ex
388
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
397
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
389
 
398
 
-
 
399
  def getTransactionsForShoppingCartId(self, shoppingCartId):
-
 
400
    """
-
 
401
    Parameters:
-
 
402
     - shoppingCartId
-
 
403
    """
-
 
404
    self.send_getTransactionsForShoppingCartId(shoppingCartId)
-
 
405
    return self.recv_getTransactionsForShoppingCartId()
-
 
406
 
-
 
407
  def send_getTransactionsForShoppingCartId(self, shoppingCartId):
-
 
408
    self._oprot.writeMessageBegin('getTransactionsForShoppingCartId', TMessageType.CALL, self._seqid)
-
 
409
    args = getTransactionsForShoppingCartId_args()
-
 
410
    args.shoppingCartId = shoppingCartId
-
 
411
    args.write(self._oprot)
-
 
412
    self._oprot.writeMessageEnd()
-
 
413
    self._oprot.trans.flush()
-
 
414
 
-
 
415
  def recv_getTransactionsForShoppingCartId(self, ):
-
 
416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
417
    if mtype == TMessageType.EXCEPTION:
-
 
418
      x = TApplicationException()
-
 
419
      x.read(self._iprot)
-
 
420
      self._iprot.readMessageEnd()
-
 
421
      raise x
-
 
422
    result = getTransactionsForShoppingCartId_result()
-
 
423
    result.read(self._iprot)
-
 
424
    self._iprot.readMessageEnd()
-
 
425
    if result.success != None:
-
 
426
      return result.success
-
 
427
    if result.ex != None:
-
 
428
      raise result.ex
-
 
429
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
-
 
430
 
390
  def getTransactionStatus(self, transactionId):
431
  def getTransactionStatus(self, transactionId):
391
    """
432
    """
392
    Parameters:
433
    Parameters:
393
     - transactionId
434
     - transactionId
394
    """
435
    """
Line 781... Line 822...
781
    self._processMap["getTransaction"] = Processor.process_getTransaction
822
    self._processMap["getTransaction"] = Processor.process_getTransaction
782
    self._processMap["getAllTransactions"] = Processor.process_getAllTransactions
823
    self._processMap["getAllTransactions"] = Processor.process_getAllTransactions
783
    self._processMap["getTransactionsForShipmentStatus"] = Processor.process_getTransactionsForShipmentStatus
824
    self._processMap["getTransactionsForShipmentStatus"] = Processor.process_getTransactionsForShipmentStatus
784
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
825
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
785
    self._processMap["getTransactionsForCustomerAndShipmentStatus"] = Processor.process_getTransactionsForCustomerAndShipmentStatus
826
    self._processMap["getTransactionsForCustomerAndShipmentStatus"] = Processor.process_getTransactionsForCustomerAndShipmentStatus
-
 
827
    self._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartId
786
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
828
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
787
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
829
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
788
    self._processMap["getOrderInfo"] = Processor.process_getOrderInfo
830
    self._processMap["getOrderInfo"] = Processor.process_getOrderInfo
789
    self._processMap["getShippingInfo"] = Processor.process_getShippingInfo
831
    self._processMap["getShippingInfo"] = Processor.process_getShippingInfo
790
    self._processMap["getBillingInfo"] = Processor.process_getBillingInfo
832
    self._processMap["getBillingInfo"] = Processor.process_getBillingInfo
Line 814... Line 856...
814
    args = createTransaction_args()
856
    args = createTransaction_args()
815
    args.read(iprot)
857
    args.read(iprot)
816
    iprot.readMessageEnd()
858
    iprot.readMessageEnd()
817
    result = createTransaction_result()
859
    result = createTransaction_result()
818
    try:
860
    try:
819
      self._handler.createTransaction(args.transaction)
861
      result.success = self._handler.createTransaction(args.transaction)
820
    except TransactionServiceException, ex:
862
    except TransactionServiceException, ex:
821
      result.ex = ex
863
      result.ex = ex
822
    oprot.writeMessageBegin("createTransaction", TMessageType.REPLY, seqid)
864
    oprot.writeMessageBegin("createTransaction", TMessageType.REPLY, seqid)
823
    result.write(oprot)
865
    result.write(oprot)
824
    oprot.writeMessageEnd()
866
    oprot.writeMessageEnd()
Line 892... Line 934...
892
    oprot.writeMessageBegin("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid)
934
    oprot.writeMessageBegin("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid)
893
    result.write(oprot)
935
    result.write(oprot)
894
    oprot.writeMessageEnd()
936
    oprot.writeMessageEnd()
895
    oprot.trans.flush()
937
    oprot.trans.flush()
896
 
938
 
-
 
939
  def process_getTransactionsForShoppingCartId(self, seqid, iprot, oprot):
-
 
940
    args = getTransactionsForShoppingCartId_args()
-
 
941
    args.read(iprot)
-
 
942
    iprot.readMessageEnd()
-
 
943
    result = getTransactionsForShoppingCartId_result()
-
 
944
    try:
-
 
945
      result.success = self._handler.getTransactionsForShoppingCartId(args.shoppingCartId)
-
 
946
    except TransactionServiceException, ex:
-
 
947
      result.ex = ex
-
 
948
    oprot.writeMessageBegin("getTransactionsForShoppingCartId", TMessageType.REPLY, seqid)
-
 
949
    result.write(oprot)
-
 
950
    oprot.writeMessageEnd()
-
 
951
    oprot.trans.flush()
-
 
952
 
897
  def process_getTransactionStatus(self, seqid, iprot, oprot):
953
  def process_getTransactionStatus(self, seqid, iprot, oprot):
898
    args = getTransactionStatus_args()
954
    args = getTransactionStatus_args()
899
    args.read(iprot)
955
    args.read(iprot)
900
    iprot.readMessageEnd()
956
    iprot.readMessageEnd()
901
    result = getTransactionStatus_result()
957
    result = getTransactionStatus_result()
Line 1109... Line 1165...
1109
    return not (self == other)
1165
    return not (self == other)
1110
 
1166
 
1111
class createTransaction_result:
1167
class createTransaction_result:
1112
  """
1168
  """
1113
  Attributes:
1169
  Attributes:
-
 
1170
   - success
1114
   - ex
1171
   - ex
1115
  """
1172
  """
1116
 
1173
 
1117
  thrift_spec = (
1174
  thrift_spec = (
1118
    None, # 0
1175
    (0, TType.I64, 'success', None, None, ), # 0
1119
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1176
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1120
  )
1177
  )
1121
 
1178
 
1122
  def __init__(self, ex=None,):
1179
  def __init__(self, success=None, ex=None,):
-
 
1180
    self.success = success
1123
    self.ex = ex
1181
    self.ex = ex
1124
 
1182
 
1125
  def read(self, iprot):
1183
  def read(self, iprot):
1126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 1129... Line 1187...
1129
    iprot.readStructBegin()
1187
    iprot.readStructBegin()
1130
    while True:
1188
    while True:
1131
      (fname, ftype, fid) = iprot.readFieldBegin()
1189
      (fname, ftype, fid) = iprot.readFieldBegin()
1132
      if ftype == TType.STOP:
1190
      if ftype == TType.STOP:
1133
        break
1191
        break
1134
      if fid == 1:
1192
      if fid == 0:
-
 
1193
        if ftype == TType.I64:
-
 
1194
          self.success = iprot.readI64();
-
 
1195
        else:
-
 
1196
          iprot.skip(ftype)
-
 
1197
      elif fid == 1:
1135
        if ftype == TType.STRUCT:
1198
        if ftype == TType.STRUCT:
1136
          self.ex = TransactionServiceException()
1199
          self.ex = TransactionServiceException()
1137
          self.ex.read(iprot)
1200
          self.ex.read(iprot)
1138
        else:
1201
        else:
1139
          iprot.skip(ftype)
1202
          iprot.skip(ftype)
Line 1145... Line 1208...
1145
  def write(self, oprot):
1208
  def write(self, oprot):
1146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1148
      return
1211
      return
1149
    oprot.writeStructBegin('createTransaction_result')
1212
    oprot.writeStructBegin('createTransaction_result')
-
 
1213
    if self.success != None:
-
 
1214
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
1215
      oprot.writeI64(self.success)
-
 
1216
      oprot.writeFieldEnd()
1150
    if self.ex != None:
1217
    if self.ex != None:
1151
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1218
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1152
      self.ex.write(oprot)
1219
      self.ex.write(oprot)
1153
      oprot.writeFieldEnd()
1220
      oprot.writeFieldEnd()
1154
    oprot.writeFieldStop()
1221
    oprot.writeFieldStop()
Line 1396... Line 1463...
1396
      if ftype == TType.STOP:
1463
      if ftype == TType.STOP:
1397
        break
1464
        break
1398
      if fid == 0:
1465
      if fid == 0:
1399
        if ftype == TType.LIST:
1466
        if ftype == TType.LIST:
1400
          self.success = []
1467
          self.success = []
1401
          (_etype49, _size46) = iprot.readListBegin()
1468
          (_etype56, _size53) = iprot.readListBegin()
1402
          for _i50 in xrange(_size46):
1469
          for _i57 in xrange(_size53):
1403
            _elem51 = Transaction()
1470
            _elem58 = Transaction()
1404
            _elem51.read(iprot)
1471
            _elem58.read(iprot)
1405
            self.success.append(_elem51)
1472
            self.success.append(_elem58)
1406
          iprot.readListEnd()
1473
          iprot.readListEnd()
1407
        else:
1474
        else:
1408
          iprot.skip(ftype)
1475
          iprot.skip(ftype)
1409
      elif fid == 1:
1476
      elif fid == 1:
1410
        if ftype == TType.STRUCT:
1477
        if ftype == TType.STRUCT:
Line 1423... Line 1490...
1423
      return
1490
      return
1424
    oprot.writeStructBegin('getAllTransactions_result')
1491
    oprot.writeStructBegin('getAllTransactions_result')
1425
    if self.success != None:
1492
    if self.success != None:
1426
      oprot.writeFieldBegin('success', TType.LIST, 0)
1493
      oprot.writeFieldBegin('success', TType.LIST, 0)
1427
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1428
      for iter52 in self.success:
1495
      for iter59 in self.success:
1429
        iter52.write(oprot)
1496
        iter59.write(oprot)
1430
      oprot.writeListEnd()
1497
      oprot.writeListEnd()
1431
      oprot.writeFieldEnd()
1498
      oprot.writeFieldEnd()
1432
    if self.ex != None:
1499
    if self.ex != None:
1433
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1500
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1434
      self.ex.write(oprot)
1501
      self.ex.write(oprot)
Line 1553... Line 1620...
1553
      if ftype == TType.STOP:
1620
      if ftype == TType.STOP:
1554
        break
1621
        break
1555
      if fid == 0:
1622
      if fid == 0:
1556
        if ftype == TType.LIST:
1623
        if ftype == TType.LIST:
1557
          self.success = []
1624
          self.success = []
1558
          (_etype56, _size53) = iprot.readListBegin()
1625
          (_etype63, _size60) = iprot.readListBegin()
1559
          for _i57 in xrange(_size53):
1626
          for _i64 in xrange(_size60):
1560
            _elem58 = Transaction()
1627
            _elem65 = Transaction()
1561
            _elem58.read(iprot)
1628
            _elem65.read(iprot)
1562
            self.success.append(_elem58)
1629
            self.success.append(_elem65)
1563
          iprot.readListEnd()
1630
          iprot.readListEnd()
1564
        else:
1631
        else:
1565
          iprot.skip(ftype)
1632
          iprot.skip(ftype)
1566
      elif fid == 1:
1633
      elif fid == 1:
1567
        if ftype == TType.STRUCT:
1634
        if ftype == TType.STRUCT:
Line 1580... Line 1647...
1580
      return
1647
      return
1581
    oprot.writeStructBegin('getTransactionsForShipmentStatus_result')
1648
    oprot.writeStructBegin('getTransactionsForShipmentStatus_result')
1582
    if self.success != None:
1649
    if self.success != None:
1583
      oprot.writeFieldBegin('success', TType.LIST, 0)
1650
      oprot.writeFieldBegin('success', TType.LIST, 0)
1584
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1651
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1585
      for iter59 in self.success:
1652
      for iter66 in self.success:
1586
        iter59.write(oprot)
1653
        iter66.write(oprot)
1587
      oprot.writeListEnd()
1654
      oprot.writeListEnd()
1588
      oprot.writeFieldEnd()
1655
      oprot.writeFieldEnd()
1589
    if self.ex != None:
1656
    if self.ex != None:
1590
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1657
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1591
      self.ex.write(oprot)
1658
      self.ex.write(oprot)
Line 1722... Line 1789...
1722
      if ftype == TType.STOP:
1789
      if ftype == TType.STOP:
1723
        break
1790
        break
1724
      if fid == 0:
1791
      if fid == 0:
1725
        if ftype == TType.LIST:
1792
        if ftype == TType.LIST:
1726
          self.success = []
1793
          self.success = []
1727
          (_etype63, _size60) = iprot.readListBegin()
1794
          (_etype70, _size67) = iprot.readListBegin()
1728
          for _i64 in xrange(_size60):
1795
          for _i71 in xrange(_size67):
1729
            _elem65 = Transaction()
1796
            _elem72 = Transaction()
1730
            _elem65.read(iprot)
1797
            _elem72.read(iprot)
1731
            self.success.append(_elem65)
1798
            self.success.append(_elem72)
1732
          iprot.readListEnd()
1799
          iprot.readListEnd()
1733
        else:
1800
        else:
1734
          iprot.skip(ftype)
1801
          iprot.skip(ftype)
1735
      elif fid == 1:
1802
      elif fid == 1:
1736
        if ftype == TType.STRUCT:
1803
        if ftype == TType.STRUCT:
Line 1749... Line 1816...
1749
      return
1816
      return
1750
    oprot.writeStructBegin('getTransactionsForCustomer_result')
1817
    oprot.writeStructBegin('getTransactionsForCustomer_result')
1751
    if self.success != None:
1818
    if self.success != None:
1752
      oprot.writeFieldBegin('success', TType.LIST, 0)
1819
      oprot.writeFieldBegin('success', TType.LIST, 0)
1753
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1754
      for iter66 in self.success:
1821
      for iter73 in self.success:
1755
        iter66.write(oprot)
1822
        iter73.write(oprot)
1756
      oprot.writeListEnd()
1823
      oprot.writeListEnd()
1757
      oprot.writeFieldEnd()
1824
      oprot.writeFieldEnd()
1758
    if self.ex != None:
1825
    if self.ex != None:
1759
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1826
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1760
      self.ex.write(oprot)
1827
      self.ex.write(oprot)
Line 1891... Line 1958...
1891
      if ftype == TType.STOP:
1958
      if ftype == TType.STOP:
1892
        break
1959
        break
1893
      if fid == 0:
1960
      if fid == 0:
1894
        if ftype == TType.LIST:
1961
        if ftype == TType.LIST:
1895
          self.success = []
1962
          self.success = []
1896
          (_etype70, _size67) = iprot.readListBegin()
1963
          (_etype77, _size74) = iprot.readListBegin()
1897
          for _i71 in xrange(_size67):
1964
          for _i78 in xrange(_size74):
1898
            _elem72 = Transaction()
1965
            _elem79 = Transaction()
1899
            _elem72.read(iprot)
1966
            _elem79.read(iprot)
1900
            self.success.append(_elem72)
1967
            self.success.append(_elem79)
1901
          iprot.readListEnd()
1968
          iprot.readListEnd()
1902
        else:
1969
        else:
1903
          iprot.skip(ftype)
1970
          iprot.skip(ftype)
1904
      elif fid == 1:
1971
      elif fid == 1:
1905
        if ftype == TType.STRUCT:
1972
        if ftype == TType.STRUCT:
Line 1918... Line 1985...
1918
      return
1985
      return
1919
    oprot.writeStructBegin('getTransactionsForCustomerAndShipmentStatus_result')
1986
    oprot.writeStructBegin('getTransactionsForCustomerAndShipmentStatus_result')
1920
    if self.success != None:
1987
    if self.success != None:
1921
      oprot.writeFieldBegin('success', TType.LIST, 0)
1988
      oprot.writeFieldBegin('success', TType.LIST, 0)
1922
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1989
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1990
      for iter80 in self.success:
-
 
1991
        iter80.write(oprot)
-
 
1992
      oprot.writeListEnd()
-
 
1993
      oprot.writeFieldEnd()
-
 
1994
    if self.ex != None:
-
 
1995
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
1996
      self.ex.write(oprot)
-
 
1997
      oprot.writeFieldEnd()
-
 
1998
    oprot.writeFieldStop()
-
 
1999
    oprot.writeStructEnd()
-
 
2000
 
-
 
2001
  def __repr__(self):
-
 
2002
    L = ['%s=%r' % (key, value)
-
 
2003
      for key, value in self.__dict__.iteritems()]
-
 
2004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2005
 
-
 
2006
  def __eq__(self, other):
-
 
2007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2008
 
-
 
2009
  def __ne__(self, other):
-
 
2010
    return not (self == other)
-
 
2011
 
-
 
2012
class getTransactionsForShoppingCartId_args:
-
 
2013
  """
-
 
2014
  Attributes:
-
 
2015
   - shoppingCartId
-
 
2016
  """
-
 
2017
 
-
 
2018
  thrift_spec = (
-
 
2019
    None, # 0
-
 
2020
    (1, TType.I64, 'shoppingCartId', None, None, ), # 1
-
 
2021
  )
-
 
2022
 
-
 
2023
  def __init__(self, shoppingCartId=None,):
-
 
2024
    self.shoppingCartId = shoppingCartId
-
 
2025
 
-
 
2026
  def read(self, iprot):
-
 
2027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2029
      return
-
 
2030
    iprot.readStructBegin()
-
 
2031
    while True:
-
 
2032
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2033
      if ftype == TType.STOP:
-
 
2034
        break
-
 
2035
      if fid == 1:
-
 
2036
        if ftype == TType.I64:
-
 
2037
          self.shoppingCartId = iprot.readI64();
-
 
2038
        else:
-
 
2039
          iprot.skip(ftype)
-
 
2040
      else:
-
 
2041
        iprot.skip(ftype)
-
 
2042
      iprot.readFieldEnd()
-
 
2043
    iprot.readStructEnd()
-
 
2044
 
-
 
2045
  def write(self, oprot):
-
 
2046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2048
      return
-
 
2049
    oprot.writeStructBegin('getTransactionsForShoppingCartId_args')
-
 
2050
    if self.shoppingCartId != None:
-
 
2051
      oprot.writeFieldBegin('shoppingCartId', TType.I64, 1)
-
 
2052
      oprot.writeI64(self.shoppingCartId)
-
 
2053
      oprot.writeFieldEnd()
-
 
2054
    oprot.writeFieldStop()
-
 
2055
    oprot.writeStructEnd()
-
 
2056
 
-
 
2057
  def __repr__(self):
-
 
2058
    L = ['%s=%r' % (key, value)
-
 
2059
      for key, value in self.__dict__.iteritems()]
-
 
2060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2061
 
-
 
2062
  def __eq__(self, other):
-
 
2063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2064
 
-
 
2065
  def __ne__(self, other):
-
 
2066
    return not (self == other)
-
 
2067
 
-
 
2068
class getTransactionsForShoppingCartId_result:
-
 
2069
  """
-
 
2070
  Attributes:
-
 
2071
   - success
-
 
2072
   - ex
-
 
2073
  """
-
 
2074
 
-
 
2075
  thrift_spec = (
-
 
2076
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
-
 
2077
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
2078
  )
-
 
2079
 
-
 
2080
  def __init__(self, success=None, ex=None,):
-
 
2081
    self.success = success
-
 
2082
    self.ex = ex
-
 
2083
 
-
 
2084
  def read(self, iprot):
-
 
2085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2087
      return
-
 
2088
    iprot.readStructBegin()
-
 
2089
    while True:
-
 
2090
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2091
      if ftype == TType.STOP:
-
 
2092
        break
-
 
2093
      if fid == 0:
-
 
2094
        if ftype == TType.LIST:
-
 
2095
          self.success = []
-
 
2096
          (_etype84, _size81) = iprot.readListBegin()
-
 
2097
          for _i85 in xrange(_size81):
-
 
2098
            _elem86 = Transaction()
-
 
2099
            _elem86.read(iprot)
-
 
2100
            self.success.append(_elem86)
-
 
2101
          iprot.readListEnd()
-
 
2102
        else:
-
 
2103
          iprot.skip(ftype)
-
 
2104
      elif fid == 1:
-
 
2105
        if ftype == TType.STRUCT:
-
 
2106
          self.ex = TransactionServiceException()
-
 
2107
          self.ex.read(iprot)
-
 
2108
        else:
-
 
2109
          iprot.skip(ftype)
-
 
2110
      else:
-
 
2111
        iprot.skip(ftype)
-
 
2112
      iprot.readFieldEnd()
-
 
2113
    iprot.readStructEnd()
-
 
2114
 
-
 
2115
  def write(self, oprot):
-
 
2116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2118
      return
-
 
2119
    oprot.writeStructBegin('getTransactionsForShoppingCartId_result')
-
 
2120
    if self.success != None:
-
 
2121
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2122
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1923
      for iter73 in self.success:
2123
      for iter87 in self.success:
1924
        iter73.write(oprot)
2124
        iter87.write(oprot)
1925
      oprot.writeListEnd()
2125
      oprot.writeListEnd()
1926
      oprot.writeFieldEnd()
2126
      oprot.writeFieldEnd()
1927
    if self.ex != None:
2127
    if self.ex != None:
1928
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2128
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1929
      self.ex.write(oprot)
2129
      self.ex.write(oprot)