Subversion Repositories SmartDukaan

Rev

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

Rev 1899 Rev 1976
Line 421... Line 421...
421
     - cartId
421
     - cartId
422
     - addressId
422
     - addressId
423
    """
423
    """
424
    pass
424
    pass
425
 
425
 
-
 
426
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
-
 
427
    """
-
 
428
    Parameters:
-
 
429
     - cartId
-
 
430
     - couponCode
-
 
431
     - totalPrice
-
 
432
     - discountedPrice
-
 
433
    """
-
 
434
    pass
-
 
435
 
-
 
436
  def removeCoupon(self, cartId):
-
 
437
    """
-
 
438
    Parameters:
-
 
439
     - cartId
-
 
440
    """
-
 
441
    pass
-
 
442
 
426
  def createOrders(self, cartId):
443
  def createOrders(self, cartId):
427
    """
444
    """
428
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
445
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
429
    
446
    
430
    Parameters:
447
    Parameters:
Line 2310... Line 2327...
2310
    self._iprot.readMessageEnd()
2327
    self._iprot.readMessageEnd()
2311
    if result.scx != None:
2328
    if result.scx != None:
2312
      raise result.scx
2329
      raise result.scx
2313
    return
2330
    return
2314
 
2331
 
-
 
2332
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
-
 
2333
    """
-
 
2334
    Parameters:
-
 
2335
     - cartId
-
 
2336
     - couponCode
-
 
2337
     - totalPrice
-
 
2338
     - discountedPrice
-
 
2339
    """
-
 
2340
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
-
 
2341
    self.recv_applyCouponToCart()
-
 
2342
 
-
 
2343
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
-
 
2344
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
-
 
2345
    args = applyCouponToCart_args()
-
 
2346
    args.cartId = cartId
-
 
2347
    args.couponCode = couponCode
-
 
2348
    args.totalPrice = totalPrice
-
 
2349
    args.discountedPrice = discountedPrice
-
 
2350
    args.write(self._oprot)
-
 
2351
    self._oprot.writeMessageEnd()
-
 
2352
    self._oprot.trans.flush()
-
 
2353
 
-
 
2354
  def recv_applyCouponToCart(self, ):
-
 
2355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2356
    if mtype == TMessageType.EXCEPTION:
-
 
2357
      x = TApplicationException()
-
 
2358
      x.read(self._iprot)
-
 
2359
      self._iprot.readMessageEnd()
-
 
2360
      raise x
-
 
2361
    result = applyCouponToCart_result()
-
 
2362
    result.read(self._iprot)
-
 
2363
    self._iprot.readMessageEnd()
-
 
2364
    if result.scx != None:
-
 
2365
      raise result.scx
-
 
2366
    return
-
 
2367
 
-
 
2368
  def removeCoupon(self, cartId):
-
 
2369
    """
-
 
2370
    Parameters:
-
 
2371
     - cartId
-
 
2372
    """
-
 
2373
    self.send_removeCoupon(cartId)
-
 
2374
    self.recv_removeCoupon()
-
 
2375
 
-
 
2376
  def send_removeCoupon(self, cartId):
-
 
2377
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
-
 
2378
    args = removeCoupon_args()
-
 
2379
    args.cartId = cartId
-
 
2380
    args.write(self._oprot)
-
 
2381
    self._oprot.writeMessageEnd()
-
 
2382
    self._oprot.trans.flush()
-
 
2383
 
-
 
2384
  def recv_removeCoupon(self, ):
-
 
2385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2386
    if mtype == TMessageType.EXCEPTION:
-
 
2387
      x = TApplicationException()
-
 
2388
      x.read(self._iprot)
-
 
2389
      self._iprot.readMessageEnd()
-
 
2390
      raise x
-
 
2391
    result = removeCoupon_result()
-
 
2392
    result.read(self._iprot)
-
 
2393
    self._iprot.readMessageEnd()
-
 
2394
    if result.scx != None:
-
 
2395
      raise result.scx
-
 
2396
    return
-
 
2397
 
2315
  def createOrders(self, cartId):
2398
  def createOrders(self, cartId):
2316
    """
2399
    """
2317
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2400
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2318
    
2401
    
2319
    Parameters:
2402
    Parameters:
Line 2809... Line 2892...
2809
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2892
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2810
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2893
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2811
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2894
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2812
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2895
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2813
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
2896
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
-
 
2897
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
-
 
2898
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
2814
    self._processMap["createOrders"] = Processor.process_createOrders
2899
    self._processMap["createOrders"] = Processor.process_createOrders
2815
    self._processMap["validateCart"] = Processor.process_validateCart
2900
    self._processMap["validateCart"] = Processor.process_validateCart
2816
    self._processMap["mergeCart"] = Processor.process_mergeCart
2901
    self._processMap["mergeCart"] = Processor.process_mergeCart
2817
    self._processMap["checkOut"] = Processor.process_checkOut
2902
    self._processMap["checkOut"] = Processor.process_checkOut
2818
    self._processMap["resetCart"] = Processor.process_resetCart
2903
    self._processMap["resetCart"] = Processor.process_resetCart
Line 3577... Line 3662...
3577
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3662
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3578
    result.write(oprot)
3663
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3664
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3665
    oprot.trans.flush()
3581
 
3666
 
-
 
3667
  def process_applyCouponToCart(self, seqid, iprot, oprot):
-
 
3668
    args = applyCouponToCart_args()
-
 
3669
    args.read(iprot)
-
 
3670
    iprot.readMessageEnd()
-
 
3671
    result = applyCouponToCart_result()
-
 
3672
    try:
-
 
3673
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
-
 
3674
    except ShoppingCartException, scx:
-
 
3675
      result.scx = scx
-
 
3676
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
-
 
3677
    result.write(oprot)
-
 
3678
    oprot.writeMessageEnd()
-
 
3679
    oprot.trans.flush()
-
 
3680
 
-
 
3681
  def process_removeCoupon(self, seqid, iprot, oprot):
-
 
3682
    args = removeCoupon_args()
-
 
3683
    args.read(iprot)
-
 
3684
    iprot.readMessageEnd()
-
 
3685
    result = removeCoupon_result()
-
 
3686
    try:
-
 
3687
      self._handler.removeCoupon(args.cartId)
-
 
3688
    except ShoppingCartException, scx:
-
 
3689
      result.scx = scx
-
 
3690
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
-
 
3691
    result.write(oprot)
-
 
3692
    oprot.writeMessageEnd()
-
 
3693
    oprot.trans.flush()
-
 
3694
 
3582
  def process_createOrders(self, seqid, iprot, oprot):
3695
  def process_createOrders(self, seqid, iprot, oprot):
3583
    args = createOrders_args()
3696
    args = createOrders_args()
3584
    args.read(iprot)
3697
    args.read(iprot)
3585
    iprot.readMessageEnd()
3698
    iprot.readMessageEnd()
3586
    result = createOrders_result()
3699
    result = createOrders_result()
Line 6021... Line 6134...
6021
      if ftype == TType.STOP:
6134
      if ftype == TType.STOP:
6022
        break
6135
        break
6023
      if fid == 0:
6136
      if fid == 0:
6024
        if ftype == TType.LIST:
6137
        if ftype == TType.LIST:
6025
          self.success = []
6138
          self.success = []
6026
          (_etype31, _size28) = iprot.readListBegin()
6139
          (_etype38, _size35) = iprot.readListBegin()
6027
          for _i32 in xrange(_size28):
6140
          for _i39 in xrange(_size35):
6028
            _elem33 = Address()
6141
            _elem40 = Address()
6029
            _elem33.read(iprot)
6142
            _elem40.read(iprot)
6030
            self.success.append(_elem33)
6143
            self.success.append(_elem40)
6031
          iprot.readListEnd()
6144
          iprot.readListEnd()
6032
        else:
6145
        else:
6033
          iprot.skip(ftype)
6146
          iprot.skip(ftype)
6034
      elif fid == 1:
6147
      elif fid == 1:
6035
        if ftype == TType.STRUCT:
6148
        if ftype == TType.STRUCT:
Line 6048... Line 6161...
6048
      return
6161
      return
6049
    oprot.writeStructBegin('getAllAddressesForUser_result')
6162
    oprot.writeStructBegin('getAllAddressesForUser_result')
6050
    if self.success != None:
6163
    if self.success != None:
6051
      oprot.writeFieldBegin('success', TType.LIST, 0)
6164
      oprot.writeFieldBegin('success', TType.LIST, 0)
6052
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6165
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6053
      for iter34 in self.success:
6166
      for iter41 in self.success:
6054
        iter34.write(oprot)
6167
        iter41.write(oprot)
6055
      oprot.writeListEnd()
6168
      oprot.writeListEnd()
6056
      oprot.writeFieldEnd()
6169
      oprot.writeFieldEnd()
6057
    if self.ucx != None:
6170
    if self.ucx != None:
6058
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6171
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6059
      self.ucx.write(oprot)
6172
      self.ucx.write(oprot)
Line 6860... Line 6973...
6860
      if ftype == TType.STOP:
6973
      if ftype == TType.STOP:
6861
        break
6974
        break
6862
      if fid == 0:
6975
      if fid == 0:
6863
        if ftype == TType.LIST:
6976
        if ftype == TType.LIST:
6864
          self.success = []
6977
          self.success = []
6865
          (_etype38, _size35) = iprot.readListBegin()
6978
          (_etype45, _size42) = iprot.readListBegin()
6866
          for _i39 in xrange(_size35):
6979
          for _i46 in xrange(_size42):
6867
            _elem40 = UserCommunication()
6980
            _elem47 = UserCommunication()
6868
            _elem40.read(iprot)
6981
            _elem47.read(iprot)
6869
            self.success.append(_elem40)
6982
            self.success.append(_elem47)
6870
          iprot.readListEnd()
6983
          iprot.readListEnd()
6871
        else:
6984
        else:
6872
          iprot.skip(ftype)
6985
          iprot.skip(ftype)
6873
      elif fid == 1:
6986
      elif fid == 1:
6874
        if ftype == TType.STRUCT:
6987
        if ftype == TType.STRUCT:
Line 6887... Line 7000...
6887
      return
7000
      return
6888
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7001
    oprot.writeStructBegin('getUserCommunicationByUser_result')
6889
    if self.success != None:
7002
    if self.success != None:
6890
      oprot.writeFieldBegin('success', TType.LIST, 0)
7003
      oprot.writeFieldBegin('success', TType.LIST, 0)
6891
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7004
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6892
      for iter41 in self.success:
7005
      for iter48 in self.success:
6893
        iter41.write(oprot)
7006
        iter48.write(oprot)
6894
      oprot.writeListEnd()
7007
      oprot.writeListEnd()
6895
      oprot.writeFieldEnd()
7008
      oprot.writeFieldEnd()
6896
    if self.ucx != None:
7009
    if self.ucx != None:
6897
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7010
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6898
      self.ucx.write(oprot)
7011
      self.ucx.write(oprot)
Line 6975... Line 7088...
6975
      if ftype == TType.STOP:
7088
      if ftype == TType.STOP:
6976
        break
7089
        break
6977
      if fid == 0:
7090
      if fid == 0:
6978
        if ftype == TType.LIST:
7091
        if ftype == TType.LIST:
6979
          self.success = []
7092
          self.success = []
6980
          (_etype45, _size42) = iprot.readListBegin()
7093
          (_etype52, _size49) = iprot.readListBegin()
6981
          for _i46 in xrange(_size42):
7094
          for _i53 in xrange(_size49):
6982
            _elem47 = UserCommunication()
7095
            _elem54 = UserCommunication()
6983
            _elem47.read(iprot)
7096
            _elem54.read(iprot)
6984
            self.success.append(_elem47)
7097
            self.success.append(_elem54)
6985
          iprot.readListEnd()
7098
          iprot.readListEnd()
6986
        else:
7099
        else:
6987
          iprot.skip(ftype)
7100
          iprot.skip(ftype)
6988
      elif fid == 1:
7101
      elif fid == 1:
6989
        if ftype == TType.STRUCT:
7102
        if ftype == TType.STRUCT:
Line 7002... Line 7115...
7002
      return
7115
      return
7003
    oprot.writeStructBegin('getAllUserCommunications_result')
7116
    oprot.writeStructBegin('getAllUserCommunications_result')
7004
    if self.success != None:
7117
    if self.success != None:
7005
      oprot.writeFieldBegin('success', TType.LIST, 0)
7118
      oprot.writeFieldBegin('success', TType.LIST, 0)
7006
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7119
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7007
      for iter48 in self.success:
7120
      for iter55 in self.success:
7008
        iter48.write(oprot)
7121
        iter55.write(oprot)
7009
      oprot.writeListEnd()
7122
      oprot.writeListEnd()
7010
      oprot.writeFieldEnd()
7123
      oprot.writeFieldEnd()
7011
    if self.ucx != None:
7124
    if self.ucx != None:
7012
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7125
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7013
      self.ucx.write(oprot)
7126
      self.ucx.write(oprot)
Line 7227... Line 7340...
7227
      if ftype == TType.STOP:
7340
      if ftype == TType.STOP:
7228
        break
7341
        break
7229
      if fid == 0:
7342
      if fid == 0:
7230
        if ftype == TType.LIST:
7343
        if ftype == TType.LIST:
7231
          self.success = []
7344
          self.success = []
7232
          (_etype52, _size49) = iprot.readListBegin()
7345
          (_etype59, _size56) = iprot.readListBegin()
7233
          for _i53 in xrange(_size49):
7346
          for _i60 in xrange(_size56):
7234
            _elem54 = MasterAffiliate()
7347
            _elem61 = MasterAffiliate()
7235
            _elem54.read(iprot)
7348
            _elem61.read(iprot)
7236
            self.success.append(_elem54)
7349
            self.success.append(_elem61)
7237
          iprot.readListEnd()
7350
          iprot.readListEnd()
7238
        else:
7351
        else:
7239
          iprot.skip(ftype)
7352
          iprot.skip(ftype)
7240
      elif fid == 1:
7353
      elif fid == 1:
7241
        if ftype == TType.STRUCT:
7354
        if ftype == TType.STRUCT:
Line 7254... Line 7367...
7254
      return
7367
      return
7255
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7368
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7256
    if self.success != None:
7369
    if self.success != None:
7257
      oprot.writeFieldBegin('success', TType.LIST, 0)
7370
      oprot.writeFieldBegin('success', TType.LIST, 0)
7258
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7371
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7259
      for iter55 in self.success:
7372
      for iter62 in self.success:
7260
        iter55.write(oprot)
7373
        iter62.write(oprot)
7261
      oprot.writeListEnd()
7374
      oprot.writeListEnd()
7262
      oprot.writeFieldEnd()
7375
      oprot.writeFieldEnd()
7263
    if self.utx != None:
7376
    if self.utx != None:
7264
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7377
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7265
      self.utx.write(oprot)
7378
      self.utx.write(oprot)
Line 8021... Line 8134...
8021
      if ftype == TType.STOP:
8134
      if ftype == TType.STOP:
8022
        break
8135
        break
8023
      if fid == 0:
8136
      if fid == 0:
8024
        if ftype == TType.LIST:
8137
        if ftype == TType.LIST:
8025
          self.success = []
8138
          self.success = []
8026
          (_etype59, _size56) = iprot.readListBegin()
8139
          (_etype66, _size63) = iprot.readListBegin()
8027
          for _i60 in xrange(_size56):
8140
          for _i67 in xrange(_size63):
8028
            _elem61 = Affiliate()
8141
            _elem68 = Affiliate()
8029
            _elem61.read(iprot)
8142
            _elem68.read(iprot)
8030
            self.success.append(_elem61)
8143
            self.success.append(_elem68)
8031
          iprot.readListEnd()
8144
          iprot.readListEnd()
8032
        else:
8145
        else:
8033
          iprot.skip(ftype)
8146
          iprot.skip(ftype)
8034
      elif fid == 1:
8147
      elif fid == 1:
8035
        if ftype == TType.STRUCT:
8148
        if ftype == TType.STRUCT:
Line 8048... Line 8161...
8048
      return
8161
      return
8049
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8162
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8050
    if self.success != None:
8163
    if self.success != None:
8051
      oprot.writeFieldBegin('success', TType.LIST, 0)
8164
      oprot.writeFieldBegin('success', TType.LIST, 0)
8052
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8165
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8053
      for iter62 in self.success:
8166
      for iter69 in self.success:
8054
        iter62.write(oprot)
8167
        iter69.write(oprot)
8055
      oprot.writeListEnd()
8168
      oprot.writeListEnd()
8056
      oprot.writeFieldEnd()
8169
      oprot.writeFieldEnd()
8057
    if self.utx != None:
8170
    if self.utx != None:
8058
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8171
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8059
      self.utx.write(oprot)
8172
      self.utx.write(oprot)
Line 8416... Line 8529...
8416
      if ftype == TType.STOP:
8529
      if ftype == TType.STOP:
8417
        break
8530
        break
8418
      if fid == 0:
8531
      if fid == 0:
8419
        if ftype == TType.LIST:
8532
        if ftype == TType.LIST:
8420
          self.success = []
8533
          self.success = []
8421
          (_etype66, _size63) = iprot.readListBegin()
8534
          (_etype73, _size70) = iprot.readListBegin()
8422
          for _i67 in xrange(_size63):
8535
          for _i74 in xrange(_size70):
8423
            _elem68 = Tracker()
8536
            _elem75 = Tracker()
8424
            _elem68.read(iprot)
8537
            _elem75.read(iprot)
8425
            self.success.append(_elem68)
8538
            self.success.append(_elem75)
8426
          iprot.readListEnd()
8539
          iprot.readListEnd()
8427
        else:
8540
        else:
8428
          iprot.skip(ftype)
8541
          iprot.skip(ftype)
8429
      elif fid == 1:
8542
      elif fid == 1:
8430
        if ftype == TType.STRUCT:
8543
        if ftype == TType.STRUCT:
Line 8443... Line 8556...
8443
      return
8556
      return
8444
    oprot.writeStructBegin('getTrackersByAffiliate_result')
8557
    oprot.writeStructBegin('getTrackersByAffiliate_result')
8445
    if self.success != None:
8558
    if self.success != None:
8446
      oprot.writeFieldBegin('success', TType.LIST, 0)
8559
      oprot.writeFieldBegin('success', TType.LIST, 0)
8447
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8560
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8448
      for iter69 in self.success:
8561
      for iter76 in self.success:
8449
        iter69.write(oprot)
8562
        iter76.write(oprot)
8450
      oprot.writeListEnd()
8563
      oprot.writeListEnd()
8451
      oprot.writeFieldEnd()
8564
      oprot.writeFieldEnd()
8452
    if self.utx != None:
8565
    if self.utx != None:
8453
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8566
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8454
      self.utx.write(oprot)
8567
      self.utx.write(oprot)
Line 8858... Line 8971...
8858
      if ftype == TType.STOP:
8971
      if ftype == TType.STOP:
8859
        break
8972
        break
8860
      if fid == 0:
8973
      if fid == 0:
8861
        if ftype == TType.LIST:
8974
        if ftype == TType.LIST:
8862
          self.success = []
8975
          self.success = []
8863
          (_etype73, _size70) = iprot.readListBegin()
8976
          (_etype80, _size77) = iprot.readListBegin()
8864
          for _i74 in xrange(_size70):
8977
          for _i81 in xrange(_size77):
8865
            _elem75 = TrackLog()
8978
            _elem82 = TrackLog()
8866
            _elem75.read(iprot)
8979
            _elem82.read(iprot)
8867
            self.success.append(_elem75)
8980
            self.success.append(_elem82)
8868
          iprot.readListEnd()
8981
          iprot.readListEnd()
8869
        else:
8982
        else:
8870
          iprot.skip(ftype)
8983
          iprot.skip(ftype)
8871
      elif fid == 1:
8984
      elif fid == 1:
8872
        if ftype == TType.STRUCT:
8985
        if ftype == TType.STRUCT:
Line 8885... Line 8998...
8885
      return
8998
      return
8886
    oprot.writeStructBegin('getTrackLogsByTracker_result')
8999
    oprot.writeStructBegin('getTrackLogsByTracker_result')
8887
    if self.success != None:
9000
    if self.success != None:
8888
      oprot.writeFieldBegin('success', TType.LIST, 0)
9001
      oprot.writeFieldBegin('success', TType.LIST, 0)
8889
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9002
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8890
      for iter76 in self.success:
9003
      for iter83 in self.success:
8891
        iter76.write(oprot)
9004
        iter83.write(oprot)
8892
      oprot.writeListEnd()
9005
      oprot.writeListEnd()
8893
      oprot.writeFieldEnd()
9006
      oprot.writeFieldEnd()
8894
    if self.utx != None:
9007
    if self.utx != None:
8895
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9008
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8896
      self.utx.write(oprot)
9009
      self.utx.write(oprot)
Line 8991... Line 9104...
8991
      if ftype == TType.STOP:
9104
      if ftype == TType.STOP:
8992
        break
9105
        break
8993
      if fid == 0:
9106
      if fid == 0:
8994
        if ftype == TType.LIST:
9107
        if ftype == TType.LIST:
8995
          self.success = []
9108
          self.success = []
8996
          (_etype80, _size77) = iprot.readListBegin()
9109
          (_etype87, _size84) = iprot.readListBegin()
8997
          for _i81 in xrange(_size77):
9110
          for _i88 in xrange(_size84):
8998
            _elem82 = TrackLog()
9111
            _elem89 = TrackLog()
8999
            _elem82.read(iprot)
9112
            _elem89.read(iprot)
9000
            self.success.append(_elem82)
9113
            self.success.append(_elem89)
9001
          iprot.readListEnd()
9114
          iprot.readListEnd()
9002
        else:
9115
        else:
9003
          iprot.skip(ftype)
9116
          iprot.skip(ftype)
9004
      elif fid == 1:
9117
      elif fid == 1:
9005
        if ftype == TType.STRUCT:
9118
        if ftype == TType.STRUCT:
Line 9018... Line 9131...
9018
      return
9131
      return
9019
    oprot.writeStructBegin('getTrackLogsByUser_result')
9132
    oprot.writeStructBegin('getTrackLogsByUser_result')
9020
    if self.success != None:
9133
    if self.success != None:
9021
      oprot.writeFieldBegin('success', TType.LIST, 0)
9134
      oprot.writeFieldBegin('success', TType.LIST, 0)
9022
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9135
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9023
      for iter83 in self.success:
9136
      for iter90 in self.success:
9024
        iter83.write(oprot)
9137
        iter90.write(oprot)
9025
      oprot.writeListEnd()
9138
      oprot.writeListEnd()
9026
      oprot.writeFieldEnd()
9139
      oprot.writeFieldEnd()
9027
    if self.utx != None:
9140
    if self.utx != None:
9028
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9141
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9029
      self.utx.write(oprot)
9142
      self.utx.write(oprot)
Line 9160... Line 9273...
9160
      if ftype == TType.STOP:
9273
      if ftype == TType.STOP:
9161
        break
9274
        break
9162
      if fid == 0:
9275
      if fid == 0:
9163
        if ftype == TType.LIST:
9276
        if ftype == TType.LIST:
9164
          self.success = []
9277
          self.success = []
9165
          (_etype87, _size84) = iprot.readListBegin()
9278
          (_etype94, _size91) = iprot.readListBegin()
9166
          for _i88 in xrange(_size84):
9279
          for _i95 in xrange(_size91):
9167
            _elem89 = TrackLog()
9280
            _elem96 = TrackLog()
9168
            _elem89.read(iprot)
9281
            _elem96.read(iprot)
9169
            self.success.append(_elem89)
9282
            self.success.append(_elem96)
9170
          iprot.readListEnd()
9283
          iprot.readListEnd()
9171
        else:
9284
        else:
9172
          iprot.skip(ftype)
9285
          iprot.skip(ftype)
9173
      elif fid == 1:
9286
      elif fid == 1:
9174
        if ftype == TType.STRUCT:
9287
        if ftype == TType.STRUCT:
Line 9187... Line 9300...
9187
      return
9300
      return
9188
    oprot.writeStructBegin('getTrackLogs_result')
9301
    oprot.writeStructBegin('getTrackLogs_result')
9189
    if self.success != None:
9302
    if self.success != None:
9190
      oprot.writeFieldBegin('success', TType.LIST, 0)
9303
      oprot.writeFieldBegin('success', TType.LIST, 0)
9191
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9304
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9192
      for iter90 in self.success:
9305
      for iter97 in self.success:
9193
        iter90.write(oprot)
9306
        iter97.write(oprot)
9194
      oprot.writeListEnd()
9307
      oprot.writeListEnd()
9195
      oprot.writeFieldEnd()
9308
      oprot.writeFieldEnd()
9196
    if self.utx != None:
9309
    if self.utx != None:
9197
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9310
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9198
      self.utx.write(oprot)
9311
      self.utx.write(oprot)
Line 9679... Line 9792...
9679
      if ftype == TType.STOP:
9792
      if ftype == TType.STOP:
9680
        break
9793
        break
9681
      if fid == 0:
9794
      if fid == 0:
9682
        if ftype == TType.LIST:
9795
        if ftype == TType.LIST:
9683
          self.success = []
9796
          self.success = []
9684
          (_etype94, _size91) = iprot.readListBegin()
9797
          (_etype101, _size98) = iprot.readListBegin()
9685
          for _i95 in xrange(_size91):
9798
          for _i102 in xrange(_size98):
9686
            _elem96 = Cart()
9799
            _elem103 = Cart()
9687
            _elem96.read(iprot)
9800
            _elem103.read(iprot)
9688
            self.success.append(_elem96)
9801
            self.success.append(_elem103)
9689
          iprot.readListEnd()
9802
          iprot.readListEnd()
9690
        else:
9803
        else:
9691
          iprot.skip(ftype)
9804
          iprot.skip(ftype)
9692
      elif fid == 1:
9805
      elif fid == 1:
9693
        if ftype == TType.STRUCT:
9806
        if ftype == TType.STRUCT:
Line 9706... Line 9819...
9706
      return
9819
      return
9707
    oprot.writeStructBegin('getCartsForUser_result')
9820
    oprot.writeStructBegin('getCartsForUser_result')
9708
    if self.success != None:
9821
    if self.success != None:
9709
      oprot.writeFieldBegin('success', TType.LIST, 0)
9822
      oprot.writeFieldBegin('success', TType.LIST, 0)
9710
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9823
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9711
      for iter97 in self.success:
9824
      for iter104 in self.success:
9712
        iter97.write(oprot)
9825
        iter104.write(oprot)
9713
      oprot.writeListEnd()
9826
      oprot.writeListEnd()
9714
      oprot.writeFieldEnd()
9827
      oprot.writeFieldEnd()
9715
    if self.scx != None:
9828
    if self.scx != None:
9716
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9829
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9717
      self.scx.write(oprot)
9830
      self.scx.write(oprot)
Line 9812... Line 9925...
9812
      if ftype == TType.STOP:
9925
      if ftype == TType.STOP:
9813
        break
9926
        break
9814
      if fid == 0:
9927
      if fid == 0:
9815
        if ftype == TType.LIST:
9928
        if ftype == TType.LIST:
9816
          self.success = []
9929
          self.success = []
9817
          (_etype101, _size98) = iprot.readListBegin()
9930
          (_etype108, _size105) = iprot.readListBegin()
9818
          for _i102 in xrange(_size98):
9931
          for _i109 in xrange(_size105):
9819
            _elem103 = Cart()
9932
            _elem110 = Cart()
9820
            _elem103.read(iprot)
9933
            _elem110.read(iprot)
9821
            self.success.append(_elem103)
9934
            self.success.append(_elem110)
9822
          iprot.readListEnd()
9935
          iprot.readListEnd()
9823
        else:
9936
        else:
9824
          iprot.skip(ftype)
9937
          iprot.skip(ftype)
9825
      elif fid == 1:
9938
      elif fid == 1:
9826
        if ftype == TType.STRUCT:
9939
        if ftype == TType.STRUCT:
Line 9839... Line 9952...
9839
      return
9952
      return
9840
    oprot.writeStructBegin('getCartsByStatus_result')
9953
    oprot.writeStructBegin('getCartsByStatus_result')
9841
    if self.success != None:
9954
    if self.success != None:
9842
      oprot.writeFieldBegin('success', TType.LIST, 0)
9955
      oprot.writeFieldBegin('success', TType.LIST, 0)
9843
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9956
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9844
      for iter104 in self.success:
9957
      for iter111 in self.success:
9845
        iter104.write(oprot)
9958
        iter111.write(oprot)
9846
      oprot.writeListEnd()
9959
      oprot.writeListEnd()
9847
      oprot.writeFieldEnd()
9960
      oprot.writeFieldEnd()
9848
    if self.scx != None:
9961
    if self.scx != None:
9849
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9962
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9850
      self.scx.write(oprot)
9963
      self.scx.write(oprot)
Line 9969... Line 10082...
9969
      if ftype == TType.STOP:
10082
      if ftype == TType.STOP:
9970
        break
10083
        break
9971
      if fid == 0:
10084
      if fid == 0:
9972
        if ftype == TType.LIST:
10085
        if ftype == TType.LIST:
9973
          self.success = []
10086
          self.success = []
9974
          (_etype108, _size105) = iprot.readListBegin()
10087
          (_etype115, _size112) = iprot.readListBegin()
9975
          for _i109 in xrange(_size105):
10088
          for _i116 in xrange(_size112):
9976
            _elem110 = Cart()
10089
            _elem117 = Cart()
9977
            _elem110.read(iprot)
10090
            _elem117.read(iprot)
9978
            self.success.append(_elem110)
10091
            self.success.append(_elem117)
9979
          iprot.readListEnd()
10092
          iprot.readListEnd()
9980
        else:
10093
        else:
9981
          iprot.skip(ftype)
10094
          iprot.skip(ftype)
9982
      elif fid == 1:
10095
      elif fid == 1:
9983
        if ftype == TType.STRUCT:
10096
        if ftype == TType.STRUCT:
Line 9996... Line 10109...
9996
      return
10109
      return
9997
    oprot.writeStructBegin('getCartsByTime_result')
10110
    oprot.writeStructBegin('getCartsByTime_result')
9998
    if self.success != None:
10111
    if self.success != None:
9999
      oprot.writeFieldBegin('success', TType.LIST, 0)
10112
      oprot.writeFieldBegin('success', TType.LIST, 0)
10000
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10113
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10001
      for iter111 in self.success:
10114
      for iter118 in self.success:
10002
        iter111.write(oprot)
10115
        iter118.write(oprot)
10003
      oprot.writeListEnd()
10116
      oprot.writeListEnd()
10004
      oprot.writeFieldEnd()
10117
      oprot.writeFieldEnd()
10005
    if self.scx != None:
10118
    if self.scx != None:
10006
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10119
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10007
      self.scx.write(oprot)
10120
      self.scx.write(oprot)
Line 10804... Line 10917...
10804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10805
 
10918
 
10806
  def __ne__(self, other):
10919
  def __ne__(self, other):
10807
    return not (self == other)
10920
    return not (self == other)
10808
 
10921
 
-
 
10922
class applyCouponToCart_args:
-
 
10923
  """
-
 
10924
  Attributes:
-
 
10925
   - cartId
-
 
10926
   - couponCode
-
 
10927
   - totalPrice
-
 
10928
   - discountedPrice
-
 
10929
  """
-
 
10930
 
-
 
10931
  thrift_spec = (
-
 
10932
    None, # 0
-
 
10933
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
10934
    (2, TType.STRING, 'couponCode', None, None, ), # 2
-
 
10935
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
-
 
10936
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
-
 
10937
  )
-
 
10938
 
-
 
10939
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
-
 
10940
    self.cartId = cartId
-
 
10941
    self.couponCode = couponCode
-
 
10942
    self.totalPrice = totalPrice
-
 
10943
    self.discountedPrice = discountedPrice
-
 
10944
 
-
 
10945
  def read(self, iprot):
-
 
10946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10948
      return
-
 
10949
    iprot.readStructBegin()
-
 
10950
    while True:
-
 
10951
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10952
      if ftype == TType.STOP:
-
 
10953
        break
-
 
10954
      if fid == 1:
-
 
10955
        if ftype == TType.I64:
-
 
10956
          self.cartId = iprot.readI64();
-
 
10957
        else:
-
 
10958
          iprot.skip(ftype)
-
 
10959
      elif fid == 2:
-
 
10960
        if ftype == TType.STRING:
-
 
10961
          self.couponCode = iprot.readString();
-
 
10962
        else:
-
 
10963
          iprot.skip(ftype)
-
 
10964
      elif fid == 3:
-
 
10965
        if ftype == TType.DOUBLE:
-
 
10966
          self.totalPrice = iprot.readDouble();
-
 
10967
        else:
-
 
10968
          iprot.skip(ftype)
-
 
10969
      elif fid == 4:
-
 
10970
        if ftype == TType.DOUBLE:
-
 
10971
          self.discountedPrice = iprot.readDouble();
-
 
10972
        else:
-
 
10973
          iprot.skip(ftype)
-
 
10974
      else:
-
 
10975
        iprot.skip(ftype)
-
 
10976
      iprot.readFieldEnd()
-
 
10977
    iprot.readStructEnd()
-
 
10978
 
-
 
10979
  def write(self, oprot):
-
 
10980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10982
      return
-
 
10983
    oprot.writeStructBegin('applyCouponToCart_args')
-
 
10984
    if self.cartId != None:
-
 
10985
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
10986
      oprot.writeI64(self.cartId)
-
 
10987
      oprot.writeFieldEnd()
-
 
10988
    if self.couponCode != None:
-
 
10989
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
-
 
10990
      oprot.writeString(self.couponCode)
-
 
10991
      oprot.writeFieldEnd()
-
 
10992
    if self.totalPrice != None:
-
 
10993
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
-
 
10994
      oprot.writeDouble(self.totalPrice)
-
 
10995
      oprot.writeFieldEnd()
-
 
10996
    if self.discountedPrice != None:
-
 
10997
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
-
 
10998
      oprot.writeDouble(self.discountedPrice)
-
 
10999
      oprot.writeFieldEnd()
-
 
11000
    oprot.writeFieldStop()
-
 
11001
    oprot.writeStructEnd()
-
 
11002
 
-
 
11003
  def __repr__(self):
-
 
11004
    L = ['%s=%r' % (key, value)
-
 
11005
      for key, value in self.__dict__.iteritems()]
-
 
11006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11007
 
-
 
11008
  def __eq__(self, other):
-
 
11009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11010
 
-
 
11011
  def __ne__(self, other):
-
 
11012
    return not (self == other)
-
 
11013
 
-
 
11014
class applyCouponToCart_result:
-
 
11015
  """
-
 
11016
  Attributes:
-
 
11017
   - scx
-
 
11018
  """
-
 
11019
 
-
 
11020
  thrift_spec = (
-
 
11021
    None, # 0
-
 
11022
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
11023
  )
-
 
11024
 
-
 
11025
  def __init__(self, scx=None,):
-
 
11026
    self.scx = scx
-
 
11027
 
-
 
11028
  def read(self, iprot):
-
 
11029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11031
      return
-
 
11032
    iprot.readStructBegin()
-
 
11033
    while True:
-
 
11034
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11035
      if ftype == TType.STOP:
-
 
11036
        break
-
 
11037
      if fid == 1:
-
 
11038
        if ftype == TType.STRUCT:
-
 
11039
          self.scx = ShoppingCartException()
-
 
11040
          self.scx.read(iprot)
-
 
11041
        else:
-
 
11042
          iprot.skip(ftype)
-
 
11043
      else:
-
 
11044
        iprot.skip(ftype)
-
 
11045
      iprot.readFieldEnd()
-
 
11046
    iprot.readStructEnd()
-
 
11047
 
-
 
11048
  def write(self, oprot):
-
 
11049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11051
      return
-
 
11052
    oprot.writeStructBegin('applyCouponToCart_result')
-
 
11053
    if self.scx != None:
-
 
11054
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11055
      self.scx.write(oprot)
-
 
11056
      oprot.writeFieldEnd()
-
 
11057
    oprot.writeFieldStop()
-
 
11058
    oprot.writeStructEnd()
-
 
11059
 
-
 
11060
  def __repr__(self):
-
 
11061
    L = ['%s=%r' % (key, value)
-
 
11062
      for key, value in self.__dict__.iteritems()]
-
 
11063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11064
 
-
 
11065
  def __eq__(self, other):
-
 
11066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11067
 
-
 
11068
  def __ne__(self, other):
-
 
11069
    return not (self == other)
-
 
11070
 
-
 
11071
class removeCoupon_args:
-
 
11072
  """
-
 
11073
  Attributes:
-
 
11074
   - cartId
-
 
11075
  """
-
 
11076
 
-
 
11077
  thrift_spec = (
-
 
11078
    None, # 0
-
 
11079
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
11080
  )
-
 
11081
 
-
 
11082
  def __init__(self, cartId=None,):
-
 
11083
    self.cartId = cartId
-
 
11084
 
-
 
11085
  def read(self, iprot):
-
 
11086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11088
      return
-
 
11089
    iprot.readStructBegin()
-
 
11090
    while True:
-
 
11091
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11092
      if ftype == TType.STOP:
-
 
11093
        break
-
 
11094
      if fid == 1:
-
 
11095
        if ftype == TType.I64:
-
 
11096
          self.cartId = iprot.readI64();
-
 
11097
        else:
-
 
11098
          iprot.skip(ftype)
-
 
11099
      else:
-
 
11100
        iprot.skip(ftype)
-
 
11101
      iprot.readFieldEnd()
-
 
11102
    iprot.readStructEnd()
-
 
11103
 
-
 
11104
  def write(self, oprot):
-
 
11105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11107
      return
-
 
11108
    oprot.writeStructBegin('removeCoupon_args')
-
 
11109
    if self.cartId != None:
-
 
11110
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
11111
      oprot.writeI64(self.cartId)
-
 
11112
      oprot.writeFieldEnd()
-
 
11113
    oprot.writeFieldStop()
-
 
11114
    oprot.writeStructEnd()
-
 
11115
 
-
 
11116
  def __repr__(self):
-
 
11117
    L = ['%s=%r' % (key, value)
-
 
11118
      for key, value in self.__dict__.iteritems()]
-
 
11119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11120
 
-
 
11121
  def __eq__(self, other):
-
 
11122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11123
 
-
 
11124
  def __ne__(self, other):
-
 
11125
    return not (self == other)
-
 
11126
 
-
 
11127
class removeCoupon_result:
-
 
11128
  """
-
 
11129
  Attributes:
-
 
11130
   - scx
-
 
11131
  """
-
 
11132
 
-
 
11133
  thrift_spec = (
-
 
11134
    None, # 0
-
 
11135
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
11136
  )
-
 
11137
 
-
 
11138
  def __init__(self, scx=None,):
-
 
11139
    self.scx = scx
-
 
11140
 
-
 
11141
  def read(self, iprot):
-
 
11142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11144
      return
-
 
11145
    iprot.readStructBegin()
-
 
11146
    while True:
-
 
11147
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11148
      if ftype == TType.STOP:
-
 
11149
        break
-
 
11150
      if fid == 1:
-
 
11151
        if ftype == TType.STRUCT:
-
 
11152
          self.scx = ShoppingCartException()
-
 
11153
          self.scx.read(iprot)
-
 
11154
        else:
-
 
11155
          iprot.skip(ftype)
-
 
11156
      else:
-
 
11157
        iprot.skip(ftype)
-
 
11158
      iprot.readFieldEnd()
-
 
11159
    iprot.readStructEnd()
-
 
11160
 
-
 
11161
  def write(self, oprot):
-
 
11162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11164
      return
-
 
11165
    oprot.writeStructBegin('removeCoupon_result')
-
 
11166
    if self.scx != None:
-
 
11167
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11168
      self.scx.write(oprot)
-
 
11169
      oprot.writeFieldEnd()
-
 
11170
    oprot.writeFieldStop()
-
 
11171
    oprot.writeStructEnd()
-
 
11172
 
-
 
11173
  def __repr__(self):
-
 
11174
    L = ['%s=%r' % (key, value)
-
 
11175
      for key, value in self.__dict__.iteritems()]
-
 
11176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11177
 
-
 
11178
  def __eq__(self, other):
-
 
11179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11180
 
-
 
11181
  def __ne__(self, other):
-
 
11182
    return not (self == other)
-
 
11183
 
10809
class createOrders_args:
11184
class createOrders_args:
10810
  """
11185
  """
10811
  Attributes:
11186
  Attributes:
10812
   - cartId
11187
   - cartId
10813
  """
11188
  """
Line 11316... Line 11691...
11316
        else:
11691
        else:
11317
          iprot.skip(ftype)
11692
          iprot.skip(ftype)
11318
      elif fid == 2:
11693
      elif fid == 2:
11319
        if ftype == TType.MAP:
11694
        if ftype == TType.MAP:
11320
          self.items = {}
11695
          self.items = {}
11321
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
11696
          (_ktype120, _vtype121, _size119 ) = iprot.readMapBegin() 
11322
          for _i116 in xrange(_size112):
11697
          for _i123 in xrange(_size119):
11323
            _key117 = iprot.readI64();
11698
            _key124 = iprot.readI64();
11324
            _val118 = iprot.readDouble();
11699
            _val125 = iprot.readDouble();
11325
            self.items[_key117] = _val118
11700
            self.items[_key124] = _val125
11326
          iprot.readMapEnd()
11701
          iprot.readMapEnd()
11327
        else:
11702
        else:
11328
          iprot.skip(ftype)
11703
          iprot.skip(ftype)
11329
      else:
11704
      else:
11330
        iprot.skip(ftype)
11705
        iprot.skip(ftype)
Line 11341... Line 11716...
11341
      oprot.writeI64(self.cartId)
11716
      oprot.writeI64(self.cartId)
11342
      oprot.writeFieldEnd()
11717
      oprot.writeFieldEnd()
11343
    if self.items != None:
11718
    if self.items != None:
11344
      oprot.writeFieldBegin('items', TType.MAP, 2)
11719
      oprot.writeFieldBegin('items', TType.MAP, 2)
11345
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11720
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11346
      for kiter119,viter120 in self.items.items():
11721
      for kiter126,viter127 in self.items.items():
11347
        oprot.writeI64(kiter119)
11722
        oprot.writeI64(kiter126)
11348
        oprot.writeDouble(viter120)
11723
        oprot.writeDouble(viter127)
11349
      oprot.writeMapEnd()
11724
      oprot.writeMapEnd()
11350
      oprot.writeFieldEnd()
11725
      oprot.writeFieldEnd()
11351
    oprot.writeFieldStop()
11726
    oprot.writeFieldStop()
11352
    oprot.writeStructEnd()
11727
    oprot.writeStructEnd()
11353
 
11728
 
Line 12367... Line 12742...
12367
      if ftype == TType.STOP:
12742
      if ftype == TType.STOP:
12368
        break
12743
        break
12369
      if fid == 0:
12744
      if fid == 0:
12370
        if ftype == TType.LIST:
12745
        if ftype == TType.LIST:
12371
          self.success = []
12746
          self.success = []
12372
          (_etype124, _size121) = iprot.readListBegin()
12747
          (_etype131, _size128) = iprot.readListBegin()
12373
          for _i125 in xrange(_size121):
12748
          for _i132 in xrange(_size128):
12374
            _elem126 = User()
12749
            _elem133 = User()
12375
            _elem126.read(iprot)
12750
            _elem133.read(iprot)
12376
            self.success.append(_elem126)
12751
            self.success.append(_elem133)
12377
          iprot.readListEnd()
12752
          iprot.readListEnd()
12378
        else:
12753
        else:
12379
          iprot.skip(ftype)
12754
          iprot.skip(ftype)
12380
      else:
12755
      else:
12381
        iprot.skip(ftype)
12756
        iprot.skip(ftype)
Line 12388... Line 12763...
12388
      return
12763
      return
12389
    oprot.writeStructBegin('getAllUsers_result')
12764
    oprot.writeStructBegin('getAllUsers_result')
12390
    if self.success != None:
12765
    if self.success != None:
12391
      oprot.writeFieldBegin('success', TType.LIST, 0)
12766
      oprot.writeFieldBegin('success', TType.LIST, 0)
12392
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12767
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12393
      for iter127 in self.success:
12768
      for iter134 in self.success:
12394
        iter127.write(oprot)
12769
        iter134.write(oprot)
12395
      oprot.writeListEnd()
12770
      oprot.writeListEnd()
12396
      oprot.writeFieldEnd()
12771
      oprot.writeFieldEnd()
12397
    oprot.writeFieldStop()
12772
    oprot.writeFieldStop()
12398
    oprot.writeStructEnd()
12773
    oprot.writeStructEnd()
12399
 
12774