Subversion Repositories SmartDukaan

Rev

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

Rev 5326 Rev 5334
Line 67... Line 67...
67
    Parameters:
67
    Parameters:
68
     - user
68
     - user
69
    """
69
    """
70
    pass
70
    pass
71
 
71
 
72
  def deleteUser(self, userId):
-
 
73
    """
-
 
74
    Parameters:
-
 
75
     - userId
-
 
76
    """
-
 
77
    pass
-
 
78
 
-
 
79
  def authenticateUser(self, email, password):
72
  def authenticateUser(self, email, password):
80
    """
73
    """
81
    Parameters:
74
    Parameters:
82
     - email
75
     - email
83
     - password
76
     - password
Line 361... Line 354...
361
     - cartId
354
     - cartId
362
     - itemId
355
     - itemId
363
    """
356
    """
364
    pass
357
    pass
365
 
358
 
366
  def changeItemStatus(self, cartId, itemId, status):
-
 
367
    """
-
 
368
    Parameters:
-
 
369
     - cartId
-
 
370
     - itemId
-
 
371
     - status
-
 
372
    """
-
 
373
    pass
-
 
374
 
-
 
375
  def addAddressToCart(self, cartId, addressId):
359
  def addAddressToCart(self, cartId, addressId):
376
    """
360
    """
377
    Parameters:
361
    Parameters:
378
     - cartId
362
     - cartId
379
     - addressId
363
     - addressId
Line 825... Line 809...
825
      return result.success
809
      return result.success
826
    if result.ucex is not None:
810
    if result.ucex is not None:
827
      raise result.ucex
811
      raise result.ucex
828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
829
 
813
 
830
  def deleteUser(self, userId):
-
 
831
    """
-
 
832
    Parameters:
-
 
833
     - userId
-
 
834
    """
-
 
835
    self.send_deleteUser(userId)
-
 
836
    return self.recv_deleteUser()
-
 
837
 
-
 
838
  def send_deleteUser(self, userId):
-
 
839
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
-
 
840
    args = deleteUser_args()
-
 
841
    args.userId = userId
-
 
842
    args.write(self._oprot)
-
 
843
    self._oprot.writeMessageEnd()
-
 
844
    self._oprot.trans.flush()
-
 
845
 
-
 
846
  def recv_deleteUser(self, ):
-
 
847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
848
    if mtype == TMessageType.EXCEPTION:
-
 
849
      x = TApplicationException()
-
 
850
      x.read(self._iprot)
-
 
851
      self._iprot.readMessageEnd()
-
 
852
      raise x
-
 
853
    result = deleteUser_result()
-
 
854
    result.read(self._iprot)
-
 
855
    self._iprot.readMessageEnd()
-
 
856
    if result.success is not None:
-
 
857
      return result.success
-
 
858
    if result.ucex is not None:
-
 
859
      raise result.ucex
-
 
860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
-
 
861
 
-
 
862
  def authenticateUser(self, email, password):
814
  def authenticateUser(self, email, password):
863
    """
815
    """
864
    Parameters:
816
    Parameters:
865
     - email
817
     - email
866
     - password
818
     - password
Line 2101... Line 2053...
2101
    self._iprot.readMessageEnd()
2053
    self._iprot.readMessageEnd()
2102
    if result.scx is not None:
2054
    if result.scx is not None:
2103
      raise result.scx
2055
      raise result.scx
2104
    return
2056
    return
2105
 
2057
 
2106
  def changeItemStatus(self, cartId, itemId, status):
-
 
2107
    """
-
 
2108
    Parameters:
-
 
2109
     - cartId
-
 
2110
     - itemId
-
 
2111
     - status
-
 
2112
    """
-
 
2113
    self.send_changeItemStatus(cartId, itemId, status)
-
 
2114
    self.recv_changeItemStatus()
-
 
2115
 
-
 
2116
  def send_changeItemStatus(self, cartId, itemId, status):
-
 
2117
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
-
 
2118
    args = changeItemStatus_args()
-
 
2119
    args.cartId = cartId
-
 
2120
    args.itemId = itemId
-
 
2121
    args.status = status
-
 
2122
    args.write(self._oprot)
-
 
2123
    self._oprot.writeMessageEnd()
-
 
2124
    self._oprot.trans.flush()
-
 
2125
 
-
 
2126
  def recv_changeItemStatus(self, ):
-
 
2127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2128
    if mtype == TMessageType.EXCEPTION:
-
 
2129
      x = TApplicationException()
-
 
2130
      x.read(self._iprot)
-
 
2131
      self._iprot.readMessageEnd()
-
 
2132
      raise x
-
 
2133
    result = changeItemStatus_result()
-
 
2134
    result.read(self._iprot)
-
 
2135
    self._iprot.readMessageEnd()
-
 
2136
    if result.scx is not None:
-
 
2137
      raise result.scx
-
 
2138
    return
-
 
2139
 
-
 
2140
  def addAddressToCart(self, cartId, addressId):
2058
  def addAddressToCart(self, cartId, addressId):
2141
    """
2059
    """
2142
    Parameters:
2060
    Parameters:
2143
     - cartId
2061
     - cartId
2144
     - addressId
2062
     - addressId
Line 2891... Line 2809...
2891
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
2809
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
2892
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
2810
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
2893
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
2811
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
2894
    self._processMap["createUser"] = Processor.process_createUser
2812
    self._processMap["createUser"] = Processor.process_createUser
2895
    self._processMap["updateUser"] = Processor.process_updateUser
2813
    self._processMap["updateUser"] = Processor.process_updateUser
2896
    self._processMap["deleteUser"] = Processor.process_deleteUser
-
 
2897
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
2814
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
2898
    self._processMap["userExists"] = Processor.process_userExists
2815
    self._processMap["userExists"] = Processor.process_userExists
2899
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2816
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2900
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2817
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2901
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2818
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
Line 2929... Line 2846...
2929
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2846
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2930
    self._processMap["getCart"] = Processor.process_getCart
2847
    self._processMap["getCart"] = Processor.process_getCart
2931
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2848
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2932
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2849
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2933
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2850
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2934
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
-
 
2935
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
2851
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
2936
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2852
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2937
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
2853
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
2938
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2854
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2939
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
2855
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
Line 3066... Line 2982...
3066
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
2982
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
3067
    result.write(oprot)
2983
    result.write(oprot)
3068
    oprot.writeMessageEnd()
2984
    oprot.writeMessageEnd()
3069
    oprot.trans.flush()
2985
    oprot.trans.flush()
3070
 
2986
 
3071
  def process_deleteUser(self, seqid, iprot, oprot):
-
 
3072
    args = deleteUser_args()
-
 
3073
    args.read(iprot)
-
 
3074
    iprot.readMessageEnd()
-
 
3075
    result = deleteUser_result()
-
 
3076
    try:
-
 
3077
      result.success = self._handler.deleteUser(args.userId)
-
 
3078
    except UserContextException, ucex:
-
 
3079
      result.ucex = ucex
-
 
3080
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
-
 
3081
    result.write(oprot)
-
 
3082
    oprot.writeMessageEnd()
-
 
3083
    oprot.trans.flush()
-
 
3084
 
-
 
3085
  def process_authenticateUser(self, seqid, iprot, oprot):
2987
  def process_authenticateUser(self, seqid, iprot, oprot):
3086
    args = authenticateUser_args()
2988
    args = authenticateUser_args()
3087
    args.read(iprot)
2989
    args.read(iprot)
3088
    iprot.readMessageEnd()
2990
    iprot.readMessageEnd()
3089
    result = authenticateUser_result()
2991
    result = authenticateUser_result()
Line 3598... Line 3500...
3598
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3500
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3599
    result.write(oprot)
3501
    result.write(oprot)
3600
    oprot.writeMessageEnd()
3502
    oprot.writeMessageEnd()
3601
    oprot.trans.flush()
3503
    oprot.trans.flush()
3602
 
3504
 
3603
  def process_changeItemStatus(self, seqid, iprot, oprot):
-
 
3604
    args = changeItemStatus_args()
-
 
3605
    args.read(iprot)
-
 
3606
    iprot.readMessageEnd()
-
 
3607
    result = changeItemStatus_result()
-
 
3608
    try:
-
 
3609
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
-
 
3610
    except ShoppingCartException, scx:
-
 
3611
      result.scx = scx
-
 
3612
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
-
 
3613
    result.write(oprot)
-
 
3614
    oprot.writeMessageEnd()
-
 
3615
    oprot.trans.flush()
-
 
3616
 
-
 
3617
  def process_addAddressToCart(self, seqid, iprot, oprot):
3505
  def process_addAddressToCart(self, seqid, iprot, oprot):
3618
    args = addAddressToCart_args()
3506
    args = addAddressToCart_args()
3619
    args.read(iprot)
3507
    args.read(iprot)
3620
    iprot.readMessageEnd()
3508
    iprot.readMessageEnd()
3621
    result = addAddressToCart_result()
3509
    result = addAddressToCart_result()
Line 4825... Line 4713...
4825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4826
 
4714
 
4827
  def __ne__(self, other):
4715
  def __ne__(self, other):
4828
    return not (self == other)
4716
    return not (self == other)
4829
 
4717
 
4830
class deleteUser_args:
-
 
4831
  """
-
 
4832
  Attributes:
-
 
4833
   - userId
-
 
4834
  """
-
 
4835
 
-
 
4836
  thrift_spec = (
-
 
4837
    None, # 0
-
 
4838
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
4839
  )
-
 
4840
 
-
 
4841
  def __init__(self, userId=None,):
-
 
4842
    self.userId = userId
-
 
4843
 
-
 
4844
  def read(self, iprot):
-
 
4845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4847
      return
-
 
4848
    iprot.readStructBegin()
-
 
4849
    while True:
-
 
4850
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4851
      if ftype == TType.STOP:
-
 
4852
        break
-
 
4853
      if fid == 1:
-
 
4854
        if ftype == TType.I64:
-
 
4855
          self.userId = iprot.readI64();
-
 
4856
        else:
-
 
4857
          iprot.skip(ftype)
-
 
4858
      else:
-
 
4859
        iprot.skip(ftype)
-
 
4860
      iprot.readFieldEnd()
-
 
4861
    iprot.readStructEnd()
-
 
4862
 
-
 
4863
  def write(self, oprot):
-
 
4864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4866
      return
-
 
4867
    oprot.writeStructBegin('deleteUser_args')
-
 
4868
    if self.userId is not None:
-
 
4869
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
4870
      oprot.writeI64(self.userId)
-
 
4871
      oprot.writeFieldEnd()
-
 
4872
    oprot.writeFieldStop()
-
 
4873
    oprot.writeStructEnd()
-
 
4874
 
-
 
4875
  def validate(self):
-
 
4876
    return
-
 
4877
 
-
 
4878
 
-
 
4879
  def __repr__(self):
-
 
4880
    L = ['%s=%r' % (key, value)
-
 
4881
      for key, value in self.__dict__.iteritems()]
-
 
4882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4883
 
-
 
4884
  def __eq__(self, other):
-
 
4885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4886
 
-
 
4887
  def __ne__(self, other):
-
 
4888
    return not (self == other)
-
 
4889
 
-
 
4890
class deleteUser_result:
-
 
4891
  """
-
 
4892
  Attributes:
-
 
4893
   - success
-
 
4894
   - ucex
-
 
4895
  """
-
 
4896
 
-
 
4897
  thrift_spec = (
-
 
4898
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
4899
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
-
 
4900
  )
-
 
4901
 
-
 
4902
  def __init__(self, success=None, ucex=None,):
-
 
4903
    self.success = success
-
 
4904
    self.ucex = ucex
-
 
4905
 
-
 
4906
  def read(self, iprot):
-
 
4907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4909
      return
-
 
4910
    iprot.readStructBegin()
-
 
4911
    while True:
-
 
4912
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4913
      if ftype == TType.STOP:
-
 
4914
        break
-
 
4915
      if fid == 0:
-
 
4916
        if ftype == TType.BOOL:
-
 
4917
          self.success = iprot.readBool();
-
 
4918
        else:
-
 
4919
          iprot.skip(ftype)
-
 
4920
      elif fid == 1:
-
 
4921
        if ftype == TType.STRUCT:
-
 
4922
          self.ucex = UserContextException()
-
 
4923
          self.ucex.read(iprot)
-
 
4924
        else:
-
 
4925
          iprot.skip(ftype)
-
 
4926
      else:
-
 
4927
        iprot.skip(ftype)
-
 
4928
      iprot.readFieldEnd()
-
 
4929
    iprot.readStructEnd()
-
 
4930
 
-
 
4931
  def write(self, oprot):
-
 
4932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4934
      return
-
 
4935
    oprot.writeStructBegin('deleteUser_result')
-
 
4936
    if self.success is not None:
-
 
4937
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
4938
      oprot.writeBool(self.success)
-
 
4939
      oprot.writeFieldEnd()
-
 
4940
    if self.ucex is not None:
-
 
4941
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
-
 
4942
      self.ucex.write(oprot)
-
 
4943
      oprot.writeFieldEnd()
-
 
4944
    oprot.writeFieldStop()
-
 
4945
    oprot.writeStructEnd()
-
 
4946
 
-
 
4947
  def validate(self):
-
 
4948
    return
-
 
4949
 
-
 
4950
 
-
 
4951
  def __repr__(self):
-
 
4952
    L = ['%s=%r' % (key, value)
-
 
4953
      for key, value in self.__dict__.iteritems()]
-
 
4954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4955
 
-
 
4956
  def __eq__(self, other):
-
 
4957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4958
 
-
 
4959
  def __ne__(self, other):
-
 
4960
    return not (self == other)
-
 
4961
 
-
 
4962
class authenticateUser_args:
4718
class authenticateUser_args:
4963
  """
4719
  """
4964
  Attributes:
4720
  Attributes:
4965
   - email
4721
   - email
4966
   - password
4722
   - password
Line 10304... Line 10060...
10304
    if self.scx is not None:
10060
    if self.scx is not None:
10305
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10061
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10306
      self.scx.write(oprot)
10062
      self.scx.write(oprot)
10307
      oprot.writeFieldEnd()
10063
      oprot.writeFieldEnd()
10308
    oprot.writeFieldStop()
10064
    oprot.writeFieldStop()
10309
    oprot.writeStructEnd()
-
 
10310
 
-
 
10311
  def validate(self):
-
 
10312
    return
-
 
10313
 
-
 
10314
 
-
 
10315
  def __repr__(self):
-
 
10316
    L = ['%s=%r' % (key, value)
-
 
10317
      for key, value in self.__dict__.iteritems()]
-
 
10318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10319
 
-
 
10320
  def __eq__(self, other):
-
 
10321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10322
 
-
 
10323
  def __ne__(self, other):
-
 
10324
    return not (self == other)
-
 
10325
 
-
 
10326
class changeItemStatus_args:
-
 
10327
  """
-
 
10328
  Attributes:
-
 
10329
   - cartId
-
 
10330
   - itemId
-
 
10331
   - status
-
 
10332
  """
-
 
10333
 
-
 
10334
  thrift_spec = (
-
 
10335
    None, # 0
-
 
10336
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
10337
    (2, TType.I64, 'itemId', None, None, ), # 2
-
 
10338
    (3, TType.I32, 'status', None, None, ), # 3
-
 
10339
  )
-
 
10340
 
-
 
10341
  def __init__(self, cartId=None, itemId=None, status=None,):
-
 
10342
    self.cartId = cartId
-
 
10343
    self.itemId = itemId
-
 
10344
    self.status = status
-
 
10345
 
-
 
10346
  def read(self, iprot):
-
 
10347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10349
      return
-
 
10350
    iprot.readStructBegin()
-
 
10351
    while True:
-
 
10352
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10353
      if ftype == TType.STOP:
-
 
10354
        break
-
 
10355
      if fid == 1:
-
 
10356
        if ftype == TType.I64:
-
 
10357
          self.cartId = iprot.readI64();
-
 
10358
        else:
-
 
10359
          iprot.skip(ftype)
-
 
10360
      elif fid == 2:
-
 
10361
        if ftype == TType.I64:
-
 
10362
          self.itemId = iprot.readI64();
-
 
10363
        else:
-
 
10364
          iprot.skip(ftype)
-
 
10365
      elif fid == 3:
-
 
10366
        if ftype == TType.I32:
-
 
10367
          self.status = iprot.readI32();
-
 
10368
        else:
-
 
10369
          iprot.skip(ftype)
-
 
10370
      else:
-
 
10371
        iprot.skip(ftype)
-
 
10372
      iprot.readFieldEnd()
-
 
10373
    iprot.readStructEnd()
-
 
10374
 
-
 
10375
  def write(self, oprot):
-
 
10376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10378
      return
-
 
10379
    oprot.writeStructBegin('changeItemStatus_args')
-
 
10380
    if self.cartId is not None:
-
 
10381
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
10382
      oprot.writeI64(self.cartId)
-
 
10383
      oprot.writeFieldEnd()
-
 
10384
    if self.itemId is not None:
-
 
10385
      oprot.writeFieldBegin('itemId', TType.I64, 2)
-
 
10386
      oprot.writeI64(self.itemId)
-
 
10387
      oprot.writeFieldEnd()
-
 
10388
    if self.status is not None:
-
 
10389
      oprot.writeFieldBegin('status', TType.I32, 3)
-
 
10390
      oprot.writeI32(self.status)
-
 
10391
      oprot.writeFieldEnd()
-
 
10392
    oprot.writeFieldStop()
-
 
10393
    oprot.writeStructEnd()
-
 
10394
 
-
 
10395
  def validate(self):
-
 
10396
    return
-
 
10397
 
-
 
10398
 
-
 
10399
  def __repr__(self):
-
 
10400
    L = ['%s=%r' % (key, value)
-
 
10401
      for key, value in self.__dict__.iteritems()]
-
 
10402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10403
 
-
 
10404
  def __eq__(self, other):
-
 
10405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10406
 
-
 
10407
  def __ne__(self, other):
-
 
10408
    return not (self == other)
-
 
10409
 
-
 
10410
class changeItemStatus_result:
-
 
10411
  """
-
 
10412
  Attributes:
-
 
10413
   - scx
-
 
10414
  """
-
 
10415
 
-
 
10416
  thrift_spec = (
-
 
10417
    None, # 0
-
 
10418
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
10419
  )
-
 
10420
 
-
 
10421
  def __init__(self, scx=None,):
-
 
10422
    self.scx = scx
-
 
10423
 
-
 
10424
  def read(self, iprot):
-
 
10425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10427
      return
-
 
10428
    iprot.readStructBegin()
-
 
10429
    while True:
-
 
10430
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10431
      if ftype == TType.STOP:
-
 
10432
        break
-
 
10433
      if fid == 1:
-
 
10434
        if ftype == TType.STRUCT:
-
 
10435
          self.scx = ShoppingCartException()
-
 
10436
          self.scx.read(iprot)
-
 
10437
        else:
-
 
10438
          iprot.skip(ftype)
-
 
10439
      else:
-
 
10440
        iprot.skip(ftype)
-
 
10441
      iprot.readFieldEnd()
-
 
10442
    iprot.readStructEnd()
-
 
10443
 
-
 
10444
  def write(self, oprot):
-
 
10445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10447
      return
-
 
10448
    oprot.writeStructBegin('changeItemStatus_result')
-
 
10449
    if self.scx is not None:
-
 
10450
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
10451
      self.scx.write(oprot)
-
 
10452
      oprot.writeFieldEnd()
-
 
10453
    oprot.writeFieldStop()
-
 
10454
    oprot.writeStructEnd()
10065
    oprot.writeStructEnd()
10455
 
10066
 
10456
  def validate(self):
10067
  def validate(self):
10457
    return
10068
    return
10458
 
10069