Subversion Repositories SmartDukaan

Rev

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

Rev 11526 Rev 11592
Line 637... Line 637...
637
     - startDate
637
     - startDate
638
     - endDate
638
     - endDate
639
    """
639
    """
640
    pass
640
    pass
641
 
641
 
-
 
642
  def validateCartPlus(self, cartId, sourceId):
-
 
643
    """
-
 
644
    This method is speciically used to avoid overloadaed calls to userClient
-
 
645
 
-
 
646
    Parameters:
-
 
647
     - cartId
-
 
648
     - sourceId
-
 
649
    """
-
 
650
    pass
-
 
651
 
642
 
652
 
643
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
653
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
644
  """
654
  """
645
  service
655
  service
646
  """
656
  """
Line 3060... Line 3070...
3060
    self._iprot.readMessageEnd()
3070
    self._iprot.readMessageEnd()
3061
    if result.success is not None:
3071
    if result.success is not None:
3062
      return result.success
3072
      return result.success
3063
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
3073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
3064
 
3074
 
-
 
3075
  def validateCartPlus(self, cartId, sourceId):
-
 
3076
    """
-
 
3077
    This method is speciically used to avoid overloadaed calls to userClient
-
 
3078
 
-
 
3079
    Parameters:
-
 
3080
     - cartId
-
 
3081
     - sourceId
-
 
3082
    """
-
 
3083
    self.send_validateCartPlus(cartId, sourceId)
-
 
3084
    return self.recv_validateCartPlus()
-
 
3085
 
-
 
3086
  def send_validateCartPlus(self, cartId, sourceId):
-
 
3087
    self._oprot.writeMessageBegin('validateCartPlus', TMessageType.CALL, self._seqid)
-
 
3088
    args = validateCartPlus_args()
-
 
3089
    args.cartId = cartId
-
 
3090
    args.sourceId = sourceId
-
 
3091
    args.write(self._oprot)
-
 
3092
    self._oprot.writeMessageEnd()
-
 
3093
    self._oprot.trans.flush()
-
 
3094
 
-
 
3095
  def recv_validateCartPlus(self, ):
-
 
3096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3097
    if mtype == TMessageType.EXCEPTION:
-
 
3098
      x = TApplicationException()
-
 
3099
      x.read(self._iprot)
-
 
3100
      self._iprot.readMessageEnd()
-
 
3101
      raise x
-
 
3102
    result = validateCartPlus_result()
-
 
3103
    result.read(self._iprot)
-
 
3104
    self._iprot.readMessageEnd()
-
 
3105
    if result.success is not None:
-
 
3106
      return result.success
-
 
3107
    if result.scex is not None:
-
 
3108
      raise result.scex
-
 
3109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCartPlus failed: unknown result");
-
 
3110
 
3065
 
3111
 
3066
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3112
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3067
  def __init__(self, handler):
3113
  def __init__(self, handler):
3068
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3114
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3069
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3115
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
Line 3136... Line 3182...
3136
    self._processMap["insureItem"] = Processor.process_insureItem
3182
    self._processMap["insureItem"] = Processor.process_insureItem
3137
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3183
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3138
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3184
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3139
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
3185
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
3140
    self._processMap["getProductsAddedToCart"] = Processor.process_getProductsAddedToCart
3186
    self._processMap["getProductsAddedToCart"] = Processor.process_getProductsAddedToCart
-
 
3187
    self._processMap["validateCartPlus"] = Processor.process_validateCartPlus
3141
 
3188
 
3142
  def process(self, iprot, oprot):
3189
  def process(self, iprot, oprot):
3143
    (name, type, seqid) = iprot.readMessageBegin()
3190
    (name, type, seqid) = iprot.readMessageBegin()
3144
    if name not in self._processMap:
3191
    if name not in self._processMap:
3145
      iprot.skip(TType.STRUCT)
3192
      iprot.skip(TType.STRUCT)
Line 4114... Line 4161...
4114
    oprot.writeMessageBegin("getProductsAddedToCart", TMessageType.REPLY, seqid)
4161
    oprot.writeMessageBegin("getProductsAddedToCart", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4162
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4163
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
4164
    oprot.trans.flush()
4118
 
4165
 
-
 
4166
  def process_validateCartPlus(self, seqid, iprot, oprot):
-
 
4167
    args = validateCartPlus_args()
-
 
4168
    args.read(iprot)
-
 
4169
    iprot.readMessageEnd()
-
 
4170
    result = validateCartPlus_result()
-
 
4171
    try:
-
 
4172
      result.success = self._handler.validateCartPlus(args.cartId, args.sourceId)
-
 
4173
    except ShoppingCartException, scex:
-
 
4174
      result.scex = scex
-
 
4175
    oprot.writeMessageBegin("validateCartPlus", TMessageType.REPLY, seqid)
-
 
4176
    result.write(oprot)
-
 
4177
    oprot.writeMessageEnd()
-
 
4178
    oprot.trans.flush()
-
 
4179
 
4119
 
4180
 
4120
# HELPER FUNCTIONS AND STRUCTURES
4181
# HELPER FUNCTIONS AND STRUCTURES
4121
 
4182
 
4122
class createAnonymousUser_args:
4183
class createAnonymousUser_args:
4123
  """
4184
  """
Line 6448... Line 6509...
6448
      if ftype == TType.STOP:
6509
      if ftype == TType.STOP:
6449
        break
6510
        break
6450
      if fid == 0:
6511
      if fid == 0:
6451
        if ftype == TType.LIST:
6512
        if ftype == TType.LIST:
6452
          self.success = []
6513
          self.success = []
6453
          (_etype93, _size90) = iprot.readListBegin()
6514
          (_etype100, _size97) = iprot.readListBegin()
6454
          for _i94 in xrange(_size90):
6515
          for _i101 in xrange(_size97):
6455
            _elem95 = Address()
6516
            _elem102 = Address()
6456
            _elem95.read(iprot)
6517
            _elem102.read(iprot)
6457
            self.success.append(_elem95)
6518
            self.success.append(_elem102)
6458
          iprot.readListEnd()
6519
          iprot.readListEnd()
6459
        else:
6520
        else:
6460
          iprot.skip(ftype)
6521
          iprot.skip(ftype)
6461
      elif fid == 1:
6522
      elif fid == 1:
6462
        if ftype == TType.STRUCT:
6523
        if ftype == TType.STRUCT:
Line 6475... Line 6536...
6475
      return
6536
      return
6476
    oprot.writeStructBegin('getAllAddressesForUser_result')
6537
    oprot.writeStructBegin('getAllAddressesForUser_result')
6477
    if self.success is not None:
6538
    if self.success is not None:
6478
      oprot.writeFieldBegin('success', TType.LIST, 0)
6539
      oprot.writeFieldBegin('success', TType.LIST, 0)
6479
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6540
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6480
      for iter96 in self.success:
6541
      for iter103 in self.success:
6481
        iter96.write(oprot)
6542
        iter103.write(oprot)
6482
      oprot.writeListEnd()
6543
      oprot.writeListEnd()
6483
      oprot.writeFieldEnd()
6544
      oprot.writeFieldEnd()
6484
    if self.ucx is not None:
6545
    if self.ucx is not None:
6485
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6546
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6486
      self.ucx.write(oprot)
6547
      self.ucx.write(oprot)
Line 7335... Line 7396...
7335
      if ftype == TType.STOP:
7396
      if ftype == TType.STOP:
7336
        break
7397
        break
7337
      if fid == 0:
7398
      if fid == 0:
7338
        if ftype == TType.LIST:
7399
        if ftype == TType.LIST:
7339
          self.success = []
7400
          self.success = []
7340
          (_etype100, _size97) = iprot.readListBegin()
7401
          (_etype107, _size104) = iprot.readListBegin()
7341
          for _i101 in xrange(_size97):
7402
          for _i108 in xrange(_size104):
7342
            _elem102 = UserCommunication()
7403
            _elem109 = UserCommunication()
7343
            _elem102.read(iprot)
7404
            _elem109.read(iprot)
7344
            self.success.append(_elem102)
7405
            self.success.append(_elem109)
7345
          iprot.readListEnd()
7406
          iprot.readListEnd()
7346
        else:
7407
        else:
7347
          iprot.skip(ftype)
7408
          iprot.skip(ftype)
7348
      elif fid == 1:
7409
      elif fid == 1:
7349
        if ftype == TType.STRUCT:
7410
        if ftype == TType.STRUCT:
Line 7362... Line 7423...
7362
      return
7423
      return
7363
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7424
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7364
    if self.success is not None:
7425
    if self.success is not None:
7365
      oprot.writeFieldBegin('success', TType.LIST, 0)
7426
      oprot.writeFieldBegin('success', TType.LIST, 0)
7366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7427
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7367
      for iter103 in self.success:
7428
      for iter110 in self.success:
7368
        iter103.write(oprot)
7429
        iter110.write(oprot)
7369
      oprot.writeListEnd()
7430
      oprot.writeListEnd()
7370
      oprot.writeFieldEnd()
7431
      oprot.writeFieldEnd()
7371
    if self.ucx is not None:
7432
    if self.ucx is not None:
7372
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7433
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7373
      self.ucx.write(oprot)
7434
      self.ucx.write(oprot)
Line 7458... Line 7519...
7458
      if ftype == TType.STOP:
7519
      if ftype == TType.STOP:
7459
        break
7520
        break
7460
      if fid == 0:
7521
      if fid == 0:
7461
        if ftype == TType.LIST:
7522
        if ftype == TType.LIST:
7462
          self.success = []
7523
          self.success = []
7463
          (_etype107, _size104) = iprot.readListBegin()
7524
          (_etype114, _size111) = iprot.readListBegin()
7464
          for _i108 in xrange(_size104):
7525
          for _i115 in xrange(_size111):
7465
            _elem109 = UserCommunication()
7526
            _elem116 = UserCommunication()
7466
            _elem109.read(iprot)
7527
            _elem116.read(iprot)
7467
            self.success.append(_elem109)
7528
            self.success.append(_elem116)
7468
          iprot.readListEnd()
7529
          iprot.readListEnd()
7469
        else:
7530
        else:
7470
          iprot.skip(ftype)
7531
          iprot.skip(ftype)
7471
      elif fid == 1:
7532
      elif fid == 1:
7472
        if ftype == TType.STRUCT:
7533
        if ftype == TType.STRUCT:
Line 7485... Line 7546...
7485
      return
7546
      return
7486
    oprot.writeStructBegin('getAllUserCommunications_result')
7547
    oprot.writeStructBegin('getAllUserCommunications_result')
7487
    if self.success is not None:
7548
    if self.success is not None:
7488
      oprot.writeFieldBegin('success', TType.LIST, 0)
7549
      oprot.writeFieldBegin('success', TType.LIST, 0)
7489
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7550
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7490
      for iter110 in self.success:
7551
      for iter117 in self.success:
7491
        iter110.write(oprot)
7552
        iter117.write(oprot)
7492
      oprot.writeListEnd()
7553
      oprot.writeListEnd()
7493
      oprot.writeFieldEnd()
7554
      oprot.writeFieldEnd()
7494
    if self.ucx is not None:
7555
    if self.ucx is not None:
7495
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7556
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7496
      self.ucx.write(oprot)
7557
      self.ucx.write(oprot)
Line 7847... Line 7908...
7847
      if ftype == TType.STOP:
7908
      if ftype == TType.STOP:
7848
        break
7909
        break
7849
      if fid == 0:
7910
      if fid == 0:
7850
        if ftype == TType.LIST:
7911
        if ftype == TType.LIST:
7851
          self.success = []
7912
          self.success = []
7852
          (_etype114, _size111) = iprot.readListBegin()
7913
          (_etype121, _size118) = iprot.readListBegin()
7853
          for _i115 in xrange(_size111):
7914
          for _i122 in xrange(_size118):
7854
            _elem116 = MasterAffiliate()
7915
            _elem123 = MasterAffiliate()
7855
            _elem116.read(iprot)
7916
            _elem123.read(iprot)
7856
            self.success.append(_elem116)
7917
            self.success.append(_elem123)
7857
          iprot.readListEnd()
7918
          iprot.readListEnd()
7858
        else:
7919
        else:
7859
          iprot.skip(ftype)
7920
          iprot.skip(ftype)
7860
      elif fid == 1:
7921
      elif fid == 1:
7861
        if ftype == TType.STRUCT:
7922
        if ftype == TType.STRUCT:
Line 7874... Line 7935...
7874
      return
7935
      return
7875
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7936
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7876
    if self.success is not None:
7937
    if self.success is not None:
7877
      oprot.writeFieldBegin('success', TType.LIST, 0)
7938
      oprot.writeFieldBegin('success', TType.LIST, 0)
7878
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7939
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7879
      for iter117 in self.success:
7940
      for iter124 in self.success:
7880
        iter117.write(oprot)
7941
        iter124.write(oprot)
7881
      oprot.writeListEnd()
7942
      oprot.writeListEnd()
7882
      oprot.writeFieldEnd()
7943
      oprot.writeFieldEnd()
7883
    if self.utx is not None:
7944
    if self.utx is not None:
7884
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7945
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7885
      self.utx.write(oprot)
7946
      self.utx.write(oprot)
Line 8822... Line 8883...
8822
      if ftype == TType.STOP:
8883
      if ftype == TType.STOP:
8823
        break
8884
        break
8824
      if fid == 0:
8885
      if fid == 0:
8825
        if ftype == TType.LIST:
8886
        if ftype == TType.LIST:
8826
          self.success = []
8887
          self.success = []
8827
          (_etype121, _size118) = iprot.readListBegin()
8888
          (_etype128, _size125) = iprot.readListBegin()
8828
          for _i122 in xrange(_size118):
8889
          for _i129 in xrange(_size125):
8829
            _elem123 = Affiliate()
8890
            _elem130 = Affiliate()
8830
            _elem123.read(iprot)
8891
            _elem130.read(iprot)
8831
            self.success.append(_elem123)
8892
            self.success.append(_elem130)
8832
          iprot.readListEnd()
8893
          iprot.readListEnd()
8833
        else:
8894
        else:
8834
          iprot.skip(ftype)
8895
          iprot.skip(ftype)
8835
      elif fid == 1:
8896
      elif fid == 1:
8836
        if ftype == TType.STRUCT:
8897
        if ftype == TType.STRUCT:
Line 8849... Line 8910...
8849
      return
8910
      return
8850
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8911
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8851
    if self.success is not None:
8912
    if self.success is not None:
8852
      oprot.writeFieldBegin('success', TType.LIST, 0)
8913
      oprot.writeFieldBegin('success', TType.LIST, 0)
8853
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8914
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8854
      for iter124 in self.success:
8915
      for iter131 in self.success:
8855
        iter124.write(oprot)
8916
        iter131.write(oprot)
8856
      oprot.writeListEnd()
8917
      oprot.writeListEnd()
8857
      oprot.writeFieldEnd()
8918
      oprot.writeFieldEnd()
8858
    if self.utx is not None:
8919
    if self.utx is not None:
8859
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8920
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8860
      self.utx.write(oprot)
8921
      self.utx.write(oprot)
Line 9312... Line 9373...
9312
      if ftype == TType.STOP:
9373
      if ftype == TType.STOP:
9313
        break
9374
        break
9314
      if fid == 0:
9375
      if fid == 0:
9315
        if ftype == TType.LIST:
9376
        if ftype == TType.LIST:
9316
          self.success = []
9377
          self.success = []
9317
          (_etype128, _size125) = iprot.readListBegin()
9378
          (_etype135, _size132) = iprot.readListBegin()
9318
          for _i129 in xrange(_size125):
9379
          for _i136 in xrange(_size132):
9319
            _elem130 = TrackLog()
9380
            _elem137 = TrackLog()
9320
            _elem130.read(iprot)
9381
            _elem137.read(iprot)
9321
            self.success.append(_elem130)
9382
            self.success.append(_elem137)
9322
          iprot.readListEnd()
9383
          iprot.readListEnd()
9323
        else:
9384
        else:
9324
          iprot.skip(ftype)
9385
          iprot.skip(ftype)
9325
      elif fid == 1:
9386
      elif fid == 1:
9326
        if ftype == TType.STRUCT:
9387
        if ftype == TType.STRUCT:
Line 9339... Line 9400...
9339
      return
9400
      return
9340
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
9401
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
9341
    if self.success is not None:
9402
    if self.success is not None:
9342
      oprot.writeFieldBegin('success', TType.LIST, 0)
9403
      oprot.writeFieldBegin('success', TType.LIST, 0)
9343
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9404
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9344
      for iter131 in self.success:
9405
      for iter138 in self.success:
9345
        iter131.write(oprot)
9406
        iter138.write(oprot)
9346
      oprot.writeListEnd()
9407
      oprot.writeListEnd()
9347
      oprot.writeFieldEnd()
9408
      oprot.writeFieldEnd()
9348
    if self.utx is not None:
9409
    if self.utx is not None:
9349
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9410
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9350
      self.utx.write(oprot)
9411
      self.utx.write(oprot)
Line 9453... Line 9514...
9453
      if ftype == TType.STOP:
9514
      if ftype == TType.STOP:
9454
        break
9515
        break
9455
      if fid == 0:
9516
      if fid == 0:
9456
        if ftype == TType.LIST:
9517
        if ftype == TType.LIST:
9457
          self.success = []
9518
          self.success = []
9458
          (_etype135, _size132) = iprot.readListBegin()
9519
          (_etype142, _size139) = iprot.readListBegin()
9459
          for _i136 in xrange(_size132):
9520
          for _i143 in xrange(_size139):
9460
            _elem137 = TrackLog()
9521
            _elem144 = TrackLog()
9461
            _elem137.read(iprot)
9522
            _elem144.read(iprot)
9462
            self.success.append(_elem137)
9523
            self.success.append(_elem144)
9463
          iprot.readListEnd()
9524
          iprot.readListEnd()
9464
        else:
9525
        else:
9465
          iprot.skip(ftype)
9526
          iprot.skip(ftype)
9466
      elif fid == 1:
9527
      elif fid == 1:
9467
        if ftype == TType.STRUCT:
9528
        if ftype == TType.STRUCT:
Line 9480... Line 9541...
9480
      return
9541
      return
9481
    oprot.writeStructBegin('getTrackLogsByUser_result')
9542
    oprot.writeStructBegin('getTrackLogsByUser_result')
9482
    if self.success is not None:
9543
    if self.success is not None:
9483
      oprot.writeFieldBegin('success', TType.LIST, 0)
9544
      oprot.writeFieldBegin('success', TType.LIST, 0)
9484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9545
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9485
      for iter138 in self.success:
9546
      for iter145 in self.success:
9486
        iter138.write(oprot)
9547
        iter145.write(oprot)
9487
      oprot.writeListEnd()
9548
      oprot.writeListEnd()
9488
      oprot.writeFieldEnd()
9549
      oprot.writeFieldEnd()
9489
    if self.utx is not None:
9550
    if self.utx is not None:
9490
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9551
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9491
      self.utx.write(oprot)
9552
      self.utx.write(oprot)
Line 9618... Line 9679...
9618
      if ftype == TType.STOP:
9679
      if ftype == TType.STOP:
9619
        break
9680
        break
9620
      if fid == 0:
9681
      if fid == 0:
9621
        if ftype == TType.LIST:
9682
        if ftype == TType.LIST:
9622
          self.success = []
9683
          self.success = []
9623
          (_etype142, _size139) = iprot.readListBegin()
9684
          (_etype149, _size146) = iprot.readListBegin()
9624
          for _i143 in xrange(_size139):
9685
          for _i150 in xrange(_size146):
9625
            _elem144 = TrackLog()
9686
            _elem151 = TrackLog()
9626
            _elem144.read(iprot)
9687
            _elem151.read(iprot)
9627
            self.success.append(_elem144)
9688
            self.success.append(_elem151)
9628
          iprot.readListEnd()
9689
          iprot.readListEnd()
9629
        else:
9690
        else:
9630
          iprot.skip(ftype)
9691
          iprot.skip(ftype)
9631
      elif fid == 1:
9692
      elif fid == 1:
9632
        if ftype == TType.STRUCT:
9693
        if ftype == TType.STRUCT:
Line 9645... Line 9706...
9645
      return
9706
      return
9646
    oprot.writeStructBegin('getTrackLogs_result')
9707
    oprot.writeStructBegin('getTrackLogs_result')
9647
    if self.success is not None:
9708
    if self.success is not None:
9648
      oprot.writeFieldBegin('success', TType.LIST, 0)
9709
      oprot.writeFieldBegin('success', TType.LIST, 0)
9649
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9710
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9650
      for iter145 in self.success:
9711
      for iter152 in self.success:
9651
        iter145.write(oprot)
9712
        iter152.write(oprot)
9652
      oprot.writeListEnd()
9713
      oprot.writeListEnd()
9653
      oprot.writeFieldEnd()
9714
      oprot.writeFieldEnd()
9654
    if self.utx is not None:
9715
    if self.utx is not None:
9655
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9716
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9656
      self.utx.write(oprot)
9717
      self.utx.write(oprot)
Line 10049... Line 10110...
10049
      if ftype == TType.STOP:
10110
      if ftype == TType.STOP:
10050
        break
10111
        break
10051
      if fid == 0:
10112
      if fid == 0:
10052
        if ftype == TType.LIST:
10113
        if ftype == TType.LIST:
10053
          self.success = []
10114
          self.success = []
10054
          (_etype149, _size146) = iprot.readListBegin()
10115
          (_etype156, _size153) = iprot.readListBegin()
10055
          for _i150 in xrange(_size146):
10116
          for _i157 in xrange(_size153):
10056
            _elem151 = Cart()
10117
            _elem158 = Cart()
10057
            _elem151.read(iprot)
10118
            _elem158.read(iprot)
10058
            self.success.append(_elem151)
10119
            self.success.append(_elem158)
10059
          iprot.readListEnd()
10120
          iprot.readListEnd()
10060
        else:
10121
        else:
10061
          iprot.skip(ftype)
10122
          iprot.skip(ftype)
10062
      elif fid == 1:
10123
      elif fid == 1:
10063
        if ftype == TType.STRUCT:
10124
        if ftype == TType.STRUCT:
Line 10076... Line 10137...
10076
      return
10137
      return
10077
    oprot.writeStructBegin('getCartsByTime_result')
10138
    oprot.writeStructBegin('getCartsByTime_result')
10078
    if self.success is not None:
10139
    if self.success is not None:
10079
      oprot.writeFieldBegin('success', TType.LIST, 0)
10140
      oprot.writeFieldBegin('success', TType.LIST, 0)
10080
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10081
      for iter152 in self.success:
10142
      for iter159 in self.success:
10082
        iter152.write(oprot)
10143
        iter159.write(oprot)
10083
      oprot.writeListEnd()
10144
      oprot.writeListEnd()
10084
      oprot.writeFieldEnd()
10145
      oprot.writeFieldEnd()
10085
    if self.scx is not None:
10146
    if self.scx is not None:
10086
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10147
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10087
      self.scx.write(oprot)
10148
      self.scx.write(oprot)
Line 11071... Line 11132...
11071
      if ftype == TType.STOP:
11132
      if ftype == TType.STOP:
11072
        break
11133
        break
11073
      if fid == 1:
11134
      if fid == 1:
11074
        if ftype == TType.LIST:
11135
        if ftype == TType.LIST:
11075
          self.discounts = []
11136
          self.discounts = []
11076
          (_etype156, _size153) = iprot.readListBegin()
11137
          (_etype163, _size160) = iprot.readListBegin()
11077
          for _i157 in xrange(_size153):
11138
          for _i164 in xrange(_size160):
11078
            _elem158 = Discount()
11139
            _elem165 = Discount()
11079
            _elem158.read(iprot)
11140
            _elem165.read(iprot)
11080
            self.discounts.append(_elem158)
11141
            self.discounts.append(_elem165)
11081
          iprot.readListEnd()
11142
          iprot.readListEnd()
11082
        else:
11143
        else:
11083
          iprot.skip(ftype)
11144
          iprot.skip(ftype)
11084
      else:
11145
      else:
11085
        iprot.skip(ftype)
11146
        iprot.skip(ftype)
Line 11092... Line 11153...
11092
      return
11153
      return
11093
    oprot.writeStructBegin('saveDiscounts_args')
11154
    oprot.writeStructBegin('saveDiscounts_args')
11094
    if self.discounts is not None:
11155
    if self.discounts is not None:
11095
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11156
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11096
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11157
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11097
      for iter159 in self.discounts:
11158
      for iter166 in self.discounts:
11098
        iter159.write(oprot)
11159
        iter166.write(oprot)
11099
      oprot.writeListEnd()
11160
      oprot.writeListEnd()
11100
      oprot.writeFieldEnd()
11161
      oprot.writeFieldEnd()
11101
    oprot.writeFieldStop()
11162
    oprot.writeFieldStop()
11102
    oprot.writeStructEnd()
11163
    oprot.writeStructEnd()
11103
 
11164
 
Line 11491... Line 11552...
11491
      if ftype == TType.STOP:
11552
      if ftype == TType.STOP:
11492
        break
11553
        break
11493
      if fid == 0:
11554
      if fid == 0:
11494
        if ftype == TType.LIST:
11555
        if ftype == TType.LIST:
11495
          self.success = []
11556
          self.success = []
11496
          (_etype163, _size160) = iprot.readListBegin()
11557
          (_etype170, _size167) = iprot.readListBegin()
11497
          for _i164 in xrange(_size160):
11558
          for _i171 in xrange(_size167):
11498
            _elem165 = iprot.readString();
11559
            _elem172 = iprot.readString();
11499
            self.success.append(_elem165)
11560
            self.success.append(_elem172)
11500
          iprot.readListEnd()
11561
          iprot.readListEnd()
11501
        else:
11562
        else:
11502
          iprot.skip(ftype)
11563
          iprot.skip(ftype)
11503
      elif fid == 1:
11564
      elif fid == 1:
11504
        if ftype == TType.STRUCT:
11565
        if ftype == TType.STRUCT:
Line 11517... Line 11578...
11517
      return
11578
      return
11518
    oprot.writeStructBegin('validateCart_result')
11579
    oprot.writeStructBegin('validateCart_result')
11519
    if self.success is not None:
11580
    if self.success is not None:
11520
      oprot.writeFieldBegin('success', TType.LIST, 0)
11581
      oprot.writeFieldBegin('success', TType.LIST, 0)
11521
      oprot.writeListBegin(TType.STRING, len(self.success))
11582
      oprot.writeListBegin(TType.STRING, len(self.success))
11522
      for iter166 in self.success:
11583
      for iter173 in self.success:
11523
        oprot.writeString(iter166)
11584
        oprot.writeString(iter173)
11524
      oprot.writeListEnd()
11585
      oprot.writeListEnd()
11525
      oprot.writeFieldEnd()
11586
      oprot.writeFieldEnd()
11526
    if self.scex is not None:
11587
    if self.scex is not None:
11527
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11588
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11528
      self.scex.write(oprot)
11589
      self.scex.write(oprot)
Line 11823... Line 11884...
11823
        else:
11884
        else:
11824
          iprot.skip(ftype)
11885
          iprot.skip(ftype)
11825
      elif fid == 2:
11886
      elif fid == 2:
11826
        if ftype == TType.MAP:
11887
        if ftype == TType.MAP:
11827
          self.items = {}
11888
          self.items = {}
11828
          (_ktype168, _vtype169, _size167 ) = iprot.readMapBegin() 
11889
          (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() 
11829
          for _i171 in xrange(_size167):
11890
          for _i178 in xrange(_size174):
11830
            _key172 = iprot.readI64();
11891
            _key179 = iprot.readI64();
11831
            _val173 = iprot.readDouble();
11892
            _val180 = iprot.readDouble();
11832
            self.items[_key172] = _val173
11893
            self.items[_key179] = _val180
11833
          iprot.readMapEnd()
11894
          iprot.readMapEnd()
11834
        else:
11895
        else:
11835
          iprot.skip(ftype)
11896
          iprot.skip(ftype)
11836
      else:
11897
      else:
11837
        iprot.skip(ftype)
11898
        iprot.skip(ftype)
Line 11848... Line 11909...
11848
      oprot.writeI64(self.cartId)
11909
      oprot.writeI64(self.cartId)
11849
      oprot.writeFieldEnd()
11910
      oprot.writeFieldEnd()
11850
    if self.items is not None:
11911
    if self.items is not None:
11851
      oprot.writeFieldBegin('items', TType.MAP, 2)
11912
      oprot.writeFieldBegin('items', TType.MAP, 2)
11852
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11913
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11853
      for kiter174,viter175 in self.items.items():
11914
      for kiter181,viter182 in self.items.items():
11854
        oprot.writeI64(kiter174)
11915
        oprot.writeI64(kiter181)
11855
        oprot.writeDouble(viter175)
11916
        oprot.writeDouble(viter182)
11856
      oprot.writeMapEnd()
11917
      oprot.writeMapEnd()
11857
      oprot.writeFieldEnd()
11918
      oprot.writeFieldEnd()
11858
    oprot.writeFieldStop()
11919
    oprot.writeFieldStop()
11859
    oprot.writeStructEnd()
11920
    oprot.writeStructEnd()
11860
 
11921
 
Line 12171... Line 12232...
12171
      if ftype == TType.STOP:
12232
      if ftype == TType.STOP:
12172
        break
12233
        break
12173
      if fid == 0:
12234
      if fid == 0:
12174
        if ftype == TType.LIST:
12235
        if ftype == TType.LIST:
12175
          self.success = []
12236
          self.success = []
12176
          (_etype179, _size176) = iprot.readListBegin()
12237
          (_etype186, _size183) = iprot.readListBegin()
12177
          for _i180 in xrange(_size176):
12238
          for _i187 in xrange(_size183):
12178
            _elem181 = User()
12239
            _elem188 = User()
12179
            _elem181.read(iprot)
12240
            _elem188.read(iprot)
12180
            self.success.append(_elem181)
12241
            self.success.append(_elem188)
12181
          iprot.readListEnd()
12242
          iprot.readListEnd()
12182
        else:
12243
        else:
12183
          iprot.skip(ftype)
12244
          iprot.skip(ftype)
12184
      else:
12245
      else:
12185
        iprot.skip(ftype)
12246
        iprot.skip(ftype)
Line 12192... Line 12253...
12192
      return
12253
      return
12193
    oprot.writeStructBegin('getAllUsers_result')
12254
    oprot.writeStructBegin('getAllUsers_result')
12194
    if self.success is not None:
12255
    if self.success is not None:
12195
      oprot.writeFieldBegin('success', TType.LIST, 0)
12256
      oprot.writeFieldBegin('success', TType.LIST, 0)
12196
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12257
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12197
      for iter182 in self.success:
12258
      for iter189 in self.success:
12198
        iter182.write(oprot)
12259
        iter189.write(oprot)
12199
      oprot.writeListEnd()
12260
      oprot.writeListEnd()
12200
      oprot.writeFieldEnd()
12261
      oprot.writeFieldEnd()
12201
    oprot.writeFieldStop()
12262
    oprot.writeFieldStop()
12202
    oprot.writeStructEnd()
12263
    oprot.writeStructEnd()
12203
 
12264
 
Line 12302... Line 12363...
12302
      if ftype == TType.STOP:
12363
      if ftype == TType.STOP:
12303
        break
12364
        break
12304
      if fid == 0:
12365
      if fid == 0:
12305
        if ftype == TType.LIST:
12366
        if ftype == TType.LIST:
12306
          self.success = []
12367
          self.success = []
12307
          (_etype186, _size183) = iprot.readListBegin()
12368
          (_etype193, _size190) = iprot.readListBegin()
12308
          for _i187 in xrange(_size183):
12369
          for _i194 in xrange(_size190):
12309
            _elem188 = iprot.readI64();
12370
            _elem195 = iprot.readI64();
12310
            self.success.append(_elem188)
12371
            self.success.append(_elem195)
12311
          iprot.readListEnd()
12372
          iprot.readListEnd()
12312
        else:
12373
        else:
12313
          iprot.skip(ftype)
12374
          iprot.skip(ftype)
12314
      elif fid == 1:
12375
      elif fid == 1:
12315
        if ftype == TType.STRUCT:
12376
        if ftype == TType.STRUCT:
Line 12328... Line 12389...
12328
      return
12389
      return
12329
    oprot.writeStructBegin('getMyResearchItems_result')
12390
    oprot.writeStructBegin('getMyResearchItems_result')
12330
    if self.success is not None:
12391
    if self.success is not None:
12331
      oprot.writeFieldBegin('success', TType.LIST, 0)
12392
      oprot.writeFieldBegin('success', TType.LIST, 0)
12332
      oprot.writeListBegin(TType.I64, len(self.success))
12393
      oprot.writeListBegin(TType.I64, len(self.success))
12333
      for iter189 in self.success:
12394
      for iter196 in self.success:
12334
        oprot.writeI64(iter189)
12395
        oprot.writeI64(iter196)
12335
      oprot.writeListEnd()
12396
      oprot.writeListEnd()
12336
      oprot.writeFieldEnd()
12397
      oprot.writeFieldEnd()
12337
    if self.scx is not None:
12398
    if self.scx is not None:
12338
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12399
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12339
      self.scx.write(oprot)
12400
      self.scx.write(oprot)
Line 12719... Line 12780...
12719
      if ftype == TType.STOP:
12780
      if ftype == TType.STOP:
12720
        break
12781
        break
12721
      if fid == 0:
12782
      if fid == 0:
12722
        if ftype == TType.LIST:
12783
        if ftype == TType.LIST:
12723
          self.success = []
12784
          self.success = []
12724
          (_etype193, _size190) = iprot.readListBegin()
12785
          (_etype200, _size197) = iprot.readListBegin()
12725
          for _i194 in xrange(_size190):
12786
          for _i201 in xrange(_size197):
12726
            _elem195 = iprot.readI64();
12787
            _elem202 = iprot.readI64();
12727
            self.success.append(_elem195)
12788
            self.success.append(_elem202)
12728
          iprot.readListEnd()
12789
          iprot.readListEnd()
12729
        else:
12790
        else:
12730
          iprot.skip(ftype)
12791
          iprot.skip(ftype)
12731
      elif fid == 1:
12792
      elif fid == 1:
12732
        if ftype == TType.STRUCT:
12793
        if ftype == TType.STRUCT:
Line 12745... Line 12806...
12745
      return
12806
      return
12746
    oprot.writeStructBegin('getBrowseHistoryItems_result')
12807
    oprot.writeStructBegin('getBrowseHistoryItems_result')
12747
    if self.success is not None:
12808
    if self.success is not None:
12748
      oprot.writeFieldBegin('success', TType.LIST, 0)
12809
      oprot.writeFieldBegin('success', TType.LIST, 0)
12749
      oprot.writeListBegin(TType.I64, len(self.success))
12810
      oprot.writeListBegin(TType.I64, len(self.success))
12750
      for iter196 in self.success:
12811
      for iter203 in self.success:
12751
        oprot.writeI64(iter196)
12812
        oprot.writeI64(iter203)
12752
      oprot.writeListEnd()
12813
      oprot.writeListEnd()
12753
      oprot.writeFieldEnd()
12814
      oprot.writeFieldEnd()
12754
    if self.scx is not None:
12815
    if self.scx is not None:
12755
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12816
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12756
      self.scx.write(oprot)
12817
      self.scx.write(oprot)
Line 13435... Line 13496...
13435
      if ftype == TType.STOP:
13496
      if ftype == TType.STOP:
13436
        break
13497
        break
13437
      if fid == 0:
13498
      if fid == 0:
13438
        if ftype == TType.LIST:
13499
        if ftype == TType.LIST:
13439
          self.success = []
13500
          self.success = []
13440
          (_etype200, _size197) = iprot.readListBegin()
13501
          (_etype207, _size204) = iprot.readListBegin()
13441
          for _i201 in xrange(_size197):
13502
          for _i208 in xrange(_size204):
13442
            _elem202 = iprot.readString();
13503
            _elem209 = iprot.readString();
13443
            self.success.append(_elem202)
13504
            self.success.append(_elem209)
13444
          iprot.readListEnd()
13505
          iprot.readListEnd()
13445
        else:
13506
        else:
13446
          iprot.skip(ftype)
13507
          iprot.skip(ftype)
13447
      else:
13508
      else:
13448
        iprot.skip(ftype)
13509
        iprot.skip(ftype)
Line 13455... Line 13516...
13455
      return
13516
      return
13456
    oprot.writeStructBegin('getUserEmails_result')
13517
    oprot.writeStructBegin('getUserEmails_result')
13457
    if self.success is not None:
13518
    if self.success is not None:
13458
      oprot.writeFieldBegin('success', TType.LIST, 0)
13519
      oprot.writeFieldBegin('success', TType.LIST, 0)
13459
      oprot.writeListBegin(TType.STRING, len(self.success))
13520
      oprot.writeListBegin(TType.STRING, len(self.success))
13460
      for iter203 in self.success:
13521
      for iter210 in self.success:
13461
        oprot.writeString(iter203)
13522
        oprot.writeString(iter210)
13462
      oprot.writeListEnd()
13523
      oprot.writeListEnd()
13463
      oprot.writeFieldEnd()
13524
      oprot.writeFieldEnd()
13464
    oprot.writeFieldStop()
13525
    oprot.writeFieldStop()
13465
    oprot.writeStructEnd()
13526
    oprot.writeStructEnd()
13466
 
13527
 
Line 14110... Line 14171...
14110
      if ftype == TType.STOP:
14171
      if ftype == TType.STOP:
14111
        break
14172
        break
14112
      if fid == 0:
14173
      if fid == 0:
14113
        if ftype == TType.LIST:
14174
        if ftype == TType.LIST:
14114
          self.success = []
14175
          self.success = []
14115
          (_etype207, _size204) = iprot.readListBegin()
14176
          (_etype214, _size211) = iprot.readListBegin()
14116
          for _i208 in xrange(_size204):
14177
          for _i215 in xrange(_size211):
14117
            _elem209 = iprot.readI64();
14178
            _elem216 = iprot.readI64();
14118
            self.success.append(_elem209)
14179
            self.success.append(_elem216)
14119
          iprot.readListEnd()
14180
          iprot.readListEnd()
14120
        else:
14181
        else:
14121
          iprot.skip(ftype)
14182
          iprot.skip(ftype)
14122
      else:
14183
      else:
14123
        iprot.skip(ftype)
14184
        iprot.skip(ftype)
Line 14130... Line 14191...
14130
      return
14191
      return
14131
    oprot.writeStructBegin('getProductsAddedToCart_result')
14192
    oprot.writeStructBegin('getProductsAddedToCart_result')
14132
    if self.success is not None:
14193
    if self.success is not None:
14133
      oprot.writeFieldBegin('success', TType.LIST, 0)
14194
      oprot.writeFieldBegin('success', TType.LIST, 0)
14134
      oprot.writeListBegin(TType.I64, len(self.success))
14195
      oprot.writeListBegin(TType.I64, len(self.success))
14135
      for iter210 in self.success:
14196
      for iter217 in self.success:
14136
        oprot.writeI64(iter210)
14197
        oprot.writeI64(iter217)
14137
      oprot.writeListEnd()
14198
      oprot.writeListEnd()
14138
      oprot.writeFieldEnd()
14199
      oprot.writeFieldEnd()
14139
    oprot.writeFieldStop()
14200
    oprot.writeFieldStop()
14140
    oprot.writeStructEnd()
14201
    oprot.writeStructEnd()
14141
 
14202
 
14142
  def validate(self):
14203
  def validate(self):
-
 
14204
    return
-
 
14205
 
-
 
14206
 
-
 
14207
  def __repr__(self):
-
 
14208
    L = ['%s=%r' % (key, value)
-
 
14209
      for key, value in self.__dict__.iteritems()]
-
 
14210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14211
 
-
 
14212
  def __eq__(self, other):
-
 
14213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14214
 
-
 
14215
  def __ne__(self, other):
-
 
14216
    return not (self == other)
-
 
14217
 
-
 
14218
class validateCartPlus_args:
-
 
14219
  """
-
 
14220
  Attributes:
-
 
14221
   - cartId
-
 
14222
   - sourceId
-
 
14223
  """
-
 
14224
 
-
 
14225
  thrift_spec = (
-
 
14226
    None, # 0
-
 
14227
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
14228
    (2, TType.I64, 'sourceId', None, None, ), # 2
-
 
14229
  )
-
 
14230
 
-
 
14231
  def __init__(self, cartId=None, sourceId=None,):
-
 
14232
    self.cartId = cartId
-
 
14233
    self.sourceId = sourceId
-
 
14234
 
-
 
14235
  def read(self, iprot):
-
 
14236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14238
      return
-
 
14239
    iprot.readStructBegin()
-
 
14240
    while True:
-
 
14241
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14242
      if ftype == TType.STOP:
-
 
14243
        break
-
 
14244
      if fid == 1:
-
 
14245
        if ftype == TType.I64:
-
 
14246
          self.cartId = iprot.readI64();
-
 
14247
        else:
-
 
14248
          iprot.skip(ftype)
-
 
14249
      elif fid == 2:
-
 
14250
        if ftype == TType.I64:
-
 
14251
          self.sourceId = iprot.readI64();
-
 
14252
        else:
-
 
14253
          iprot.skip(ftype)
-
 
14254
      else:
-
 
14255
        iprot.skip(ftype)
-
 
14256
      iprot.readFieldEnd()
-
 
14257
    iprot.readStructEnd()
-
 
14258
 
-
 
14259
  def write(self, oprot):
-
 
14260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14262
      return
-
 
14263
    oprot.writeStructBegin('validateCartPlus_args')
-
 
14264
    if self.cartId is not None:
-
 
14265
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
14266
      oprot.writeI64(self.cartId)
-
 
14267
      oprot.writeFieldEnd()
-
 
14268
    if self.sourceId is not None:
-
 
14269
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
-
 
14270
      oprot.writeI64(self.sourceId)
-
 
14271
      oprot.writeFieldEnd()
-
 
14272
    oprot.writeFieldStop()
-
 
14273
    oprot.writeStructEnd()
-
 
14274
 
-
 
14275
  def validate(self):
-
 
14276
    return
-
 
14277
 
-
 
14278
 
-
 
14279
  def __repr__(self):
-
 
14280
    L = ['%s=%r' % (key, value)
-
 
14281
      for key, value in self.__dict__.iteritems()]
-
 
14282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14283
 
-
 
14284
  def __eq__(self, other):
-
 
14285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14286
 
-
 
14287
  def __ne__(self, other):
-
 
14288
    return not (self == other)
-
 
14289
 
-
 
14290
class validateCartPlus_result:
-
 
14291
  """
-
 
14292
  Attributes:
-
 
14293
   - success
-
 
14294
   - scex
-
 
14295
  """
-
 
14296
 
-
 
14297
  thrift_spec = (
-
 
14298
    (0, TType.STRUCT, 'success', (CartPlus, CartPlus.thrift_spec), None, ), # 0
-
 
14299
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
14300
  )
-
 
14301
 
-
 
14302
  def __init__(self, success=None, scex=None,):
-
 
14303
    self.success = success
-
 
14304
    self.scex = scex
-
 
14305
 
-
 
14306
  def read(self, iprot):
-
 
14307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14309
      return
-
 
14310
    iprot.readStructBegin()
-
 
14311
    while True:
-
 
14312
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14313
      if ftype == TType.STOP:
-
 
14314
        break
-
 
14315
      if fid == 0:
-
 
14316
        if ftype == TType.STRUCT:
-
 
14317
          self.success = CartPlus()
-
 
14318
          self.success.read(iprot)
-
 
14319
        else:
-
 
14320
          iprot.skip(ftype)
-
 
14321
      elif fid == 1:
-
 
14322
        if ftype == TType.STRUCT:
-
 
14323
          self.scex = ShoppingCartException()
-
 
14324
          self.scex.read(iprot)
-
 
14325
        else:
-
 
14326
          iprot.skip(ftype)
-
 
14327
      else:
-
 
14328
        iprot.skip(ftype)
-
 
14329
      iprot.readFieldEnd()
-
 
14330
    iprot.readStructEnd()
-
 
14331
 
-
 
14332
  def write(self, oprot):
-
 
14333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14335
      return
-
 
14336
    oprot.writeStructBegin('validateCartPlus_result')
-
 
14337
    if self.success is not None:
-
 
14338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
14339
      self.success.write(oprot)
-
 
14340
      oprot.writeFieldEnd()
-
 
14341
    if self.scex is not None:
-
 
14342
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
-
 
14343
      self.scex.write(oprot)
-
 
14344
      oprot.writeFieldEnd()
-
 
14345
    oprot.writeFieldStop()
-
 
14346
    oprot.writeStructEnd()
-
 
14347
 
-
 
14348
  def validate(self):
14143
    return
14349
    return
14144
 
14350
 
14145
 
14351
 
14146
  def __repr__(self):
14352
  def __repr__(self):
14147
    L = ['%s=%r' % (key, value)
14353
    L = ['%s=%r' % (key, value)