Subversion Repositories SmartDukaan

Rev

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

Rev 567 Rev 575
Line 233... Line 233...
233
    Parameters:
233
    Parameters:
234
     - cartId
234
     - cartId
235
    """
235
    """
236
    pass
236
    pass
237
 
237
 
-
 
238
  def refreshCart(self, cartId):
-
 
239
    """
-
 
240
    Parameters:
-
 
241
     - cartId
-
 
242
    """
-
 
243
    pass
-
 
244
 
238
  def mergeCart(self, fromCartId, toCartId):
245
  def mergeCart(self, fromCartId, toCartId):
239
    """
246
    """
240
    Parameters:
247
    Parameters:
241
     - fromCartId
248
     - fromCartId
242
     - toCartId
249
     - toCartId
Line 1214... Line 1221...
1214
      self._iprot.readMessageEnd()
1221
      self._iprot.readMessageEnd()
1215
      raise x
1222
      raise x
1216
    result = addAddressToCart_result()
1223
    result = addAddressToCart_result()
1217
    result.read(self._iprot)
1224
    result.read(self._iprot)
1218
    self._iprot.readMessageEnd()
1225
    self._iprot.readMessageEnd()
-
 
1226
    if result.scx != None:
-
 
1227
      raise result.scx
1219
    return
1228
    return
1220
 
1229
 
1221
  def commitCart(self, cartId):
1230
  def commitCart(self, cartId):
1222
    """
1231
    """
1223
    Parameters:
1232
    Parameters:
Line 1276... Line 1285...
1276
    result = validateCart_result()
1285
    result = validateCart_result()
1277
    result.read(self._iprot)
1286
    result.read(self._iprot)
1278
    self._iprot.readMessageEnd()
1287
    self._iprot.readMessageEnd()
1279
    if result.success != None:
1288
    if result.success != None:
1280
      return result.success
1289
      return result.success
-
 
1290
    if result.scex != None:
-
 
1291
      raise result.scex
1281
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
1292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
1282
 
1293
 
-
 
1294
  def refreshCart(self, cartId):
-
 
1295
    """
-
 
1296
    Parameters:
-
 
1297
     - cartId
-
 
1298
    """
-
 
1299
    self.send_refreshCart(cartId)
-
 
1300
    return self.recv_refreshCart()
-
 
1301
 
-
 
1302
  def send_refreshCart(self, cartId):
-
 
1303
    self._oprot.writeMessageBegin('refreshCart', TMessageType.CALL, self._seqid)
-
 
1304
    args = refreshCart_args()
-
 
1305
    args.cartId = cartId
-
 
1306
    args.write(self._oprot)
-
 
1307
    self._oprot.writeMessageEnd()
-
 
1308
    self._oprot.trans.flush()
-
 
1309
 
-
 
1310
  def recv_refreshCart(self, ):
-
 
1311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1312
    if mtype == TMessageType.EXCEPTION:
-
 
1313
      x = TApplicationException()
-
 
1314
      x.read(self._iprot)
-
 
1315
      self._iprot.readMessageEnd()
-
 
1316
      raise x
-
 
1317
    result = refreshCart_result()
-
 
1318
    result.read(self._iprot)
-
 
1319
    self._iprot.readMessageEnd()
-
 
1320
    if result.success != None:
-
 
1321
      return result.success
-
 
1322
    if result.scex != None:
-
 
1323
      raise result.scex
-
 
1324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "refreshCart failed: unknown result");
-
 
1325
 
1283
  def mergeCart(self, fromCartId, toCartId):
1326
  def mergeCart(self, fromCartId, toCartId):
1284
    """
1327
    """
1285
    Parameters:
1328
    Parameters:
1286
     - fromCartId
1329
     - fromCartId
1287
     - toCartId
1330
     - toCartId
Line 1767... Line 1810...
1767
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
1810
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
1768
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
1811
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
1769
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1812
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1770
    self._processMap["commitCart"] = Processor.process_commitCart
1813
    self._processMap["commitCart"] = Processor.process_commitCart
1771
    self._processMap["validateCart"] = Processor.process_validateCart
1814
    self._processMap["validateCart"] = Processor.process_validateCart
-
 
1815
    self._processMap["refreshCart"] = Processor.process_refreshCart
1772
    self._processMap["mergeCart"] = Processor.process_mergeCart
1816
    self._processMap["mergeCart"] = Processor.process_mergeCart
1773
    self._processMap["addWidget"] = Processor.process_addWidget
1817
    self._processMap["addWidget"] = Processor.process_addWidget
1774
    self._processMap["addItemToWidget"] = Processor.process_addItemToWidget
1818
    self._processMap["addItemToWidget"] = Processor.process_addItemToWidget
1775
    self._processMap["deleteItemFromWidget"] = Processor.process_deleteItemFromWidget
1819
    self._processMap["deleteItemFromWidget"] = Processor.process_deleteItemFromWidget
1776
    self._processMap["updateWidget"] = Processor.process_updateWidget
1820
    self._processMap["updateWidget"] = Processor.process_updateWidget
Line 2152... Line 2196...
2152
  def process_addAddressToCart(self, seqid, iprot, oprot):
2196
  def process_addAddressToCart(self, seqid, iprot, oprot):
2153
    args = addAddressToCart_args()
2197
    args = addAddressToCart_args()
2154
    args.read(iprot)
2198
    args.read(iprot)
2155
    iprot.readMessageEnd()
2199
    iprot.readMessageEnd()
2156
    result = addAddressToCart_result()
2200
    result = addAddressToCart_result()
-
 
2201
    try:
2157
    self._handler.addAddressToCart(args.cartId, args.addressId)
2202
      self._handler.addAddressToCart(args.cartId, args.addressId)
-
 
2203
    except ShoppingCartException, scx:
-
 
2204
      result.scx = scx
2158
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
2205
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
2159
    result.write(oprot)
2206
    result.write(oprot)
2160
    oprot.writeMessageEnd()
2207
    oprot.writeMessageEnd()
2161
    oprot.trans.flush()
2208
    oprot.trans.flush()
2162
 
2209
 
Line 2177... Line 2224...
2177
  def process_validateCart(self, seqid, iprot, oprot):
2224
  def process_validateCart(self, seqid, iprot, oprot):
2178
    args = validateCart_args()
2225
    args = validateCart_args()
2179
    args.read(iprot)
2226
    args.read(iprot)
2180
    iprot.readMessageEnd()
2227
    iprot.readMessageEnd()
2181
    result = validateCart_result()
2228
    result = validateCart_result()
-
 
2229
    try:
2182
    result.success = self._handler.validateCart(args.cartId)
2230
      result.success = self._handler.validateCart(args.cartId)
-
 
2231
    except ShoppingCartException, scex:
-
 
2232
      result.scex = scex
2183
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
2233
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
2184
    result.write(oprot)
2234
    result.write(oprot)
2185
    oprot.writeMessageEnd()
2235
    oprot.writeMessageEnd()
2186
    oprot.trans.flush()
2236
    oprot.trans.flush()
2187
 
2237
 
-
 
2238
  def process_refreshCart(self, seqid, iprot, oprot):
-
 
2239
    args = refreshCart_args()
-
 
2240
    args.read(iprot)
-
 
2241
    iprot.readMessageEnd()
-
 
2242
    result = refreshCart_result()
-
 
2243
    try:
-
 
2244
      result.success = self._handler.refreshCart(args.cartId)
-
 
2245
    except ShoppingCartException, scex:
-
 
2246
      result.scex = scex
-
 
2247
    oprot.writeMessageBegin("refreshCart", TMessageType.REPLY, seqid)
-
 
2248
    result.write(oprot)
-
 
2249
    oprot.writeMessageEnd()
-
 
2250
    oprot.trans.flush()
-
 
2251
 
2188
  def process_mergeCart(self, seqid, iprot, oprot):
2252
  def process_mergeCart(self, seqid, iprot, oprot):
2189
    args = mergeCart_args()
2253
    args = mergeCart_args()
2190
    args.read(iprot)
2254
    args.read(iprot)
2191
    iprot.readMessageEnd()
2255
    iprot.readMessageEnd()
2192
    result = mergeCart_result()
2256
    result = mergeCart_result()
Line 5753... Line 5817...
5753
 
5817
 
5754
  def __ne__(self, other):
5818
  def __ne__(self, other):
5755
    return not (self == other)
5819
    return not (self == other)
5756
 
5820
 
5757
class addAddressToCart_result:
5821
class addAddressToCart_result:
-
 
5822
  """
-
 
5823
  Attributes:
-
 
5824
   - scx
-
 
5825
  """
5758
 
5826
 
5759
  thrift_spec = (
5827
  thrift_spec = (
-
 
5828
    None, # 0
-
 
5829
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
5760
  )
5830
  )
5761
 
5831
 
-
 
5832
  def __init__(self, scx=None,):
-
 
5833
    self.scx = scx
-
 
5834
 
5762
  def read(self, iprot):
5835
  def read(self, iprot):
5763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5765
      return
5838
      return
5766
    iprot.readStructBegin()
5839
    iprot.readStructBegin()
5767
    while True:
5840
    while True:
5768
      (fname, ftype, fid) = iprot.readFieldBegin()
5841
      (fname, ftype, fid) = iprot.readFieldBegin()
5769
      if ftype == TType.STOP:
5842
      if ftype == TType.STOP:
5770
        break
5843
        break
-
 
5844
      if fid == 1:
-
 
5845
        if ftype == TType.STRUCT:
-
 
5846
          self.scx = ShoppingCartException()
-
 
5847
          self.scx.read(iprot)
-
 
5848
        else:
-
 
5849
          iprot.skip(ftype)
5771
      else:
5850
      else:
5772
        iprot.skip(ftype)
5851
        iprot.skip(ftype)
5773
      iprot.readFieldEnd()
5852
      iprot.readFieldEnd()
5774
    iprot.readStructEnd()
5853
    iprot.readStructEnd()
5775
 
5854
 
5776
  def write(self, oprot):
5855
  def write(self, oprot):
5777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5779
      return
5858
      return
5780
    oprot.writeStructBegin('addAddressToCart_result')
5859
    oprot.writeStructBegin('addAddressToCart_result')
-
 
5860
    if self.scx != None:
-
 
5861
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
5862
      self.scx.write(oprot)
-
 
5863
      oprot.writeFieldEnd()
5781
    oprot.writeFieldStop()
5864
    oprot.writeFieldStop()
5782
    oprot.writeStructEnd()
5865
    oprot.writeStructEnd()
5783
 
5866
 
5784
  def __repr__(self):
5867
  def __repr__(self):
5785
    L = ['%s=%r' % (key, value)
5868
    L = ['%s=%r' % (key, value)
Line 5854... Line 5937...
5854
   - success
5937
   - success
5855
   - scx
5938
   - scx
5856
  """
5939
  """
5857
 
5940
 
5858
  thrift_spec = (
5941
  thrift_spec = (
5859
    (0, TType.BOOL, 'success', None, None, ), # 0
5942
    (0, TType.I64, 'success', None, None, ), # 0
5860
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
5943
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
5861
  )
5944
  )
5862
 
5945
 
5863
  def __init__(self, success=None, scx=None,):
5946
  def __init__(self, success=None, scx=None,):
5864
    self.success = success
5947
    self.success = success
Line 5872... Line 5955...
5872
    while True:
5955
    while True:
5873
      (fname, ftype, fid) = iprot.readFieldBegin()
5956
      (fname, ftype, fid) = iprot.readFieldBegin()
5874
      if ftype == TType.STOP:
5957
      if ftype == TType.STOP:
5875
        break
5958
        break
5876
      if fid == 0:
5959
      if fid == 0:
5877
        if ftype == TType.BOOL:
5960
        if ftype == TType.I64:
5878
          self.success = iprot.readBool();
5961
          self.success = iprot.readI64();
5879
        else:
5962
        else:
5880
          iprot.skip(ftype)
5963
          iprot.skip(ftype)
5881
      elif fid == 1:
5964
      elif fid == 1:
5882
        if ftype == TType.STRUCT:
5965
        if ftype == TType.STRUCT:
5883
          self.scx = ShoppingCartException()
5966
          self.scx = ShoppingCartException()
Line 5893... Line 5976...
5893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5895
      return
5978
      return
5896
    oprot.writeStructBegin('commitCart_result')
5979
    oprot.writeStructBegin('commitCart_result')
5897
    if self.success != None:
5980
    if self.success != None:
5898
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5981
      oprot.writeFieldBegin('success', TType.I64, 0)
5899
      oprot.writeBool(self.success)
5982
      oprot.writeI64(self.success)
5900
      oprot.writeFieldEnd()
5983
      oprot.writeFieldEnd()
5901
    if self.scx != None:
5984
    if self.scx != None:
5902
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5985
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5903
      self.scx.write(oprot)
5986
      self.scx.write(oprot)
5904
      oprot.writeFieldEnd()
5987
      oprot.writeFieldEnd()
Line 5974... Line 6057...
5974
 
6057
 
5975
class validateCart_result:
6058
class validateCart_result:
5976
  """
6059
  """
5977
  Attributes:
6060
  Attributes:
5978
   - success
6061
   - success
-
 
6062
   - scex
5979
  """
6063
  """
5980
 
6064
 
5981
  thrift_spec = (
6065
  thrift_spec = (
5982
    (0, TType.BOOL, 'success', None, None, ), # 0
6066
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
6067
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
5983
  )
6068
  )
5984
 
6069
 
5985
  def __init__(self, success=None,):
6070
  def __init__(self, success=None, scex=None,):
5986
    self.success = success
6071
    self.success = success
-
 
6072
    self.scex = scex
5987
 
6073
 
5988
  def read(self, iprot):
6074
  def read(self, iprot):
5989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5991
      return
6077
      return
Line 5997... Line 6083...
5997
      if fid == 0:
6083
      if fid == 0:
5998
        if ftype == TType.BOOL:
6084
        if ftype == TType.BOOL:
5999
          self.success = iprot.readBool();
6085
          self.success = iprot.readBool();
6000
        else:
6086
        else:
6001
          iprot.skip(ftype)
6087
          iprot.skip(ftype)
-
 
6088
      elif fid == 1:
-
 
6089
        if ftype == TType.STRUCT:
-
 
6090
          self.scex = ShoppingCartException()
-
 
6091
          self.scex.read(iprot)
-
 
6092
        else:
-
 
6093
          iprot.skip(ftype)
6002
      else:
6094
      else:
6003
        iprot.skip(ftype)
6095
        iprot.skip(ftype)
6004
      iprot.readFieldEnd()
6096
      iprot.readFieldEnd()
6005
    iprot.readStructEnd()
6097
    iprot.readStructEnd()
6006
 
6098
 
Line 6011... Line 6103...
6011
    oprot.writeStructBegin('validateCart_result')
6103
    oprot.writeStructBegin('validateCart_result')
6012
    if self.success != None:
6104
    if self.success != None:
6013
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6105
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6014
      oprot.writeBool(self.success)
6106
      oprot.writeBool(self.success)
6015
      oprot.writeFieldEnd()
6107
      oprot.writeFieldEnd()
-
 
6108
    if self.scex != None:
-
 
6109
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
-
 
6110
      self.scex.write(oprot)
-
 
6111
      oprot.writeFieldEnd()
-
 
6112
    oprot.writeFieldStop()
-
 
6113
    oprot.writeStructEnd()
-
 
6114
 
-
 
6115
  def __repr__(self):
-
 
6116
    L = ['%s=%r' % (key, value)
-
 
6117
      for key, value in self.__dict__.iteritems()]
-
 
6118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6119
 
-
 
6120
  def __eq__(self, other):
-
 
6121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6122
 
-
 
6123
  def __ne__(self, other):
-
 
6124
    return not (self == other)
-
 
6125
 
-
 
6126
class refreshCart_args:
-
 
6127
  """
-
 
6128
  Attributes:
-
 
6129
   - cartId
-
 
6130
  """
-
 
6131
 
-
 
6132
  thrift_spec = (
-
 
6133
    None, # 0
-
 
6134
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
6135
  )
-
 
6136
 
-
 
6137
  def __init__(self, cartId=None,):
-
 
6138
    self.cartId = cartId
-
 
6139
 
-
 
6140
  def read(self, iprot):
-
 
6141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6143
      return
-
 
6144
    iprot.readStructBegin()
-
 
6145
    while True:
-
 
6146
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6147
      if ftype == TType.STOP:
-
 
6148
        break
-
 
6149
      if fid == 1:
-
 
6150
        if ftype == TType.I64:
-
 
6151
          self.cartId = iprot.readI64();
-
 
6152
        else:
-
 
6153
          iprot.skip(ftype)
-
 
6154
      else:
-
 
6155
        iprot.skip(ftype)
-
 
6156
      iprot.readFieldEnd()
-
 
6157
    iprot.readStructEnd()
-
 
6158
 
-
 
6159
  def write(self, oprot):
-
 
6160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6162
      return
-
 
6163
    oprot.writeStructBegin('refreshCart_args')
-
 
6164
    if self.cartId != None:
-
 
6165
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
6166
      oprot.writeI64(self.cartId)
-
 
6167
      oprot.writeFieldEnd()
-
 
6168
    oprot.writeFieldStop()
-
 
6169
    oprot.writeStructEnd()
-
 
6170
 
-
 
6171
  def __repr__(self):
-
 
6172
    L = ['%s=%r' % (key, value)
-
 
6173
      for key, value in self.__dict__.iteritems()]
-
 
6174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6175
 
-
 
6176
  def __eq__(self, other):
-
 
6177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6178
 
-
 
6179
  def __ne__(self, other):
-
 
6180
    return not (self == other)
-
 
6181
 
-
 
6182
class refreshCart_result:
-
 
6183
  """
-
 
6184
  Attributes:
-
 
6185
   - success
-
 
6186
   - scex
-
 
6187
  """
-
 
6188
 
-
 
6189
  thrift_spec = (
-
 
6190
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
6191
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
6192
  )
-
 
6193
 
-
 
6194
  def __init__(self, success=None, scex=None,):
-
 
6195
    self.success = success
-
 
6196
    self.scex = scex
-
 
6197
 
-
 
6198
  def read(self, iprot):
-
 
6199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6201
      return
-
 
6202
    iprot.readStructBegin()
-
 
6203
    while True:
-
 
6204
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6205
      if ftype == TType.STOP:
-
 
6206
        break
-
 
6207
      if fid == 0:
-
 
6208
        if ftype == TType.BOOL:
-
 
6209
          self.success = iprot.readBool();
-
 
6210
        else:
-
 
6211
          iprot.skip(ftype)
-
 
6212
      elif fid == 1:
-
 
6213
        if ftype == TType.STRUCT:
-
 
6214
          self.scex = ShoppingCartException()
-
 
6215
          self.scex.read(iprot)
-
 
6216
        else:
-
 
6217
          iprot.skip(ftype)
-
 
6218
      else:
-
 
6219
        iprot.skip(ftype)
-
 
6220
      iprot.readFieldEnd()
-
 
6221
    iprot.readStructEnd()
-
 
6222
 
-
 
6223
  def write(self, oprot):
-
 
6224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6226
      return
-
 
6227
    oprot.writeStructBegin('refreshCart_result')
-
 
6228
    if self.success != None:
-
 
6229
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
6230
      oprot.writeBool(self.success)
-
 
6231
      oprot.writeFieldEnd()
-
 
6232
    if self.scex != None:
-
 
6233
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
-
 
6234
      self.scex.write(oprot)
-
 
6235
      oprot.writeFieldEnd()
6016
    oprot.writeFieldStop()
6236
    oprot.writeFieldStop()
6017
    oprot.writeStructEnd()
6237
    oprot.writeStructEnd()
6018
 
6238
 
6019
  def __repr__(self):
6239
  def __repr__(self):
6020
    L = ['%s=%r' % (key, value)
6240
    L = ['%s=%r' % (key, value)