Subversion Repositories SmartDukaan

Rev

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

Rev 11890 Rev 11980
Line 433... Line 433...
433
     - cartId
433
     - cartId
434
     - sourceId
434
     - sourceId
435
    """
435
    """
436
    pass
436
    pass
437
 
437
 
-
 
438
  def validateCartWithDealerCoupon(self, cartId, sourceId, dealCoupon):
-
 
439
    """
-
 
440
    Validates that:
-
 
441
    1. The checkout timestamp is greater than the updatedOn timestamp.
-
 
442
    2. All of the lines in the cart are active items.
-
 
443
    3. The estimate for any of the lines in cart doesn't change.
-
 
444
    If all three are true, returns empty string; else returns appropriate message.
-
 
445
 
-
 
446
    Parameters:
-
 
447
     - cartId
-
 
448
     - sourceId
-
 
449
     - dealCoupon
-
 
450
    """
-
 
451
    pass
-
 
452
 
438
  def mergeCart(self, fromCartId, toCartId):
453
  def mergeCart(self, fromCartId, toCartId):
439
    """
454
    """
440
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
455
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
441
 
456
 
442
    Parameters:
457
    Parameters:
Line 637... Line 652...
637
     - startDate
652
     - startDate
638
     - endDate
653
     - endDate
639
    """
654
    """
640
    pass
655
    pass
641
 
656
 
642
  def validateCartPlus(self, cartId, sourceId):
657
  def validateCartPlus(self, cartId, sourceId, dealerCoupon):
643
    """
658
    """
644
    This method is speciically used to avoid overloadaed calls to userClient
659
    This method is speciically used to avoid overloadaed calls to userClient
645
 
660
 
646
    Parameters:
661
    Parameters:
647
     - cartId
662
     - cartId
648
     - sourceId
663
     - sourceId
-
 
664
     - dealerCoupon
649
    """
665
    """
650
    pass
666
    pass
651
 
667
 
652
  def isPrivateDealUser(self, userId):
668
  def isPrivateDealUser(self, userId):
653
    """
669
    """
Line 2428... Line 2444...
2428
      return result.success
2444
      return result.success
2429
    if result.scex is not None:
2445
    if result.scex is not None:
2430
      raise result.scex
2446
      raise result.scex
2431
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
2447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
2432
 
2448
 
-
 
2449
  def validateCartWithDealerCoupon(self, cartId, sourceId, dealCoupon):
-
 
2450
    """
-
 
2451
    Validates that:
-
 
2452
    1. The checkout timestamp is greater than the updatedOn timestamp.
-
 
2453
    2. All of the lines in the cart are active items.
-
 
2454
    3. The estimate for any of the lines in cart doesn't change.
-
 
2455
    If all three are true, returns empty string; else returns appropriate message.
-
 
2456
 
-
 
2457
    Parameters:
-
 
2458
     - cartId
-
 
2459
     - sourceId
-
 
2460
     - dealCoupon
-
 
2461
    """
-
 
2462
    self.send_validateCartWithDealerCoupon(cartId, sourceId, dealCoupon)
-
 
2463
    return self.recv_validateCartWithDealerCoupon()
-
 
2464
 
-
 
2465
  def send_validateCartWithDealerCoupon(self, cartId, sourceId, dealCoupon):
-
 
2466
    self._oprot.writeMessageBegin('validateCartWithDealerCoupon', TMessageType.CALL, self._seqid)
-
 
2467
    args = validateCartWithDealerCoupon_args()
-
 
2468
    args.cartId = cartId
-
 
2469
    args.sourceId = sourceId
-
 
2470
    args.dealCoupon = dealCoupon
-
 
2471
    args.write(self._oprot)
-
 
2472
    self._oprot.writeMessageEnd()
-
 
2473
    self._oprot.trans.flush()
-
 
2474
 
-
 
2475
  def recv_validateCartWithDealerCoupon(self, ):
-
 
2476
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2477
    if mtype == TMessageType.EXCEPTION:
-
 
2478
      x = TApplicationException()
-
 
2479
      x.read(self._iprot)
-
 
2480
      self._iprot.readMessageEnd()
-
 
2481
      raise x
-
 
2482
    result = validateCartWithDealerCoupon_result()
-
 
2483
    result.read(self._iprot)
-
 
2484
    self._iprot.readMessageEnd()
-
 
2485
    if result.success is not None:
-
 
2486
      return result.success
-
 
2487
    if result.scex is not None:
-
 
2488
      raise result.scex
-
 
2489
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCartWithDealerCoupon failed: unknown result");
-
 
2490
 
2433
  def mergeCart(self, fromCartId, toCartId):
2491
  def mergeCart(self, fromCartId, toCartId):
2434
    """
2492
    """
2435
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
2493
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
2436
 
2494
 
2437
    Parameters:
2495
    Parameters:
Line 3099... Line 3157...
3099
    self._iprot.readMessageEnd()
3157
    self._iprot.readMessageEnd()
3100
    if result.success is not None:
3158
    if result.success is not None:
3101
      return result.success
3159
      return result.success
3102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
3160
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
3103
 
3161
 
3104
  def validateCartPlus(self, cartId, sourceId):
3162
  def validateCartPlus(self, cartId, sourceId, dealerCoupon):
3105
    """
3163
    """
3106
    This method is speciically used to avoid overloadaed calls to userClient
3164
    This method is speciically used to avoid overloadaed calls to userClient
3107
 
3165
 
3108
    Parameters:
3166
    Parameters:
3109
     - cartId
3167
     - cartId
3110
     - sourceId
3168
     - sourceId
-
 
3169
     - dealerCoupon
3111
    """
3170
    """
3112
    self.send_validateCartPlus(cartId, sourceId)
3171
    self.send_validateCartPlus(cartId, sourceId, dealerCoupon)
3113
    return self.recv_validateCartPlus()
3172
    return self.recv_validateCartPlus()
3114
 
3173
 
3115
  def send_validateCartPlus(self, cartId, sourceId):
3174
  def send_validateCartPlus(self, cartId, sourceId, dealerCoupon):
3116
    self._oprot.writeMessageBegin('validateCartPlus', TMessageType.CALL, self._seqid)
3175
    self._oprot.writeMessageBegin('validateCartPlus', TMessageType.CALL, self._seqid)
3117
    args = validateCartPlus_args()
3176
    args = validateCartPlus_args()
3118
    args.cartId = cartId
3177
    args.cartId = cartId
3119
    args.sourceId = sourceId
3178
    args.sourceId = sourceId
-
 
3179
    args.dealerCoupon = dealerCoupon
3120
    args.write(self._oprot)
3180
    args.write(self._oprot)
3121
    self._oprot.writeMessageEnd()
3181
    self._oprot.writeMessageEnd()
3122
    self._oprot.trans.flush()
3182
    self._oprot.trans.flush()
3123
 
3183
 
3124
  def recv_validateCartPlus(self, ):
3184
  def recv_validateCartPlus(self, ):
Line 3313... Line 3373...
3313
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3373
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3314
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3374
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3315
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
3375
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
3316
    self._processMap["createOrders"] = Processor.process_createOrders
3376
    self._processMap["createOrders"] = Processor.process_createOrders
3317
    self._processMap["validateCart"] = Processor.process_validateCart
3377
    self._processMap["validateCart"] = Processor.process_validateCart
-
 
3378
    self._processMap["validateCartWithDealerCoupon"] = Processor.process_validateCartWithDealerCoupon
3318
    self._processMap["mergeCart"] = Processor.process_mergeCart
3379
    self._processMap["mergeCart"] = Processor.process_mergeCart
3319
    self._processMap["checkOut"] = Processor.process_checkOut
3380
    self._processMap["checkOut"] = Processor.process_checkOut
3320
    self._processMap["resetCart"] = Processor.process_resetCart
3381
    self._processMap["resetCart"] = Processor.process_resetCart
3321
    self._processMap["getUserCount"] = Processor.process_getUserCount
3382
    self._processMap["getUserCount"] = Processor.process_getUserCount
3322
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
3383
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
Line 4082... Line 4143...
4082
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
4143
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
4083
    result.write(oprot)
4144
    result.write(oprot)
4084
    oprot.writeMessageEnd()
4145
    oprot.writeMessageEnd()
4085
    oprot.trans.flush()
4146
    oprot.trans.flush()
4086
 
4147
 
-
 
4148
  def process_validateCartWithDealerCoupon(self, seqid, iprot, oprot):
-
 
4149
    args = validateCartWithDealerCoupon_args()
-
 
4150
    args.read(iprot)
-
 
4151
    iprot.readMessageEnd()
-
 
4152
    result = validateCartWithDealerCoupon_result()
-
 
4153
    try:
-
 
4154
      result.success = self._handler.validateCartWithDealerCoupon(args.cartId, args.sourceId, args.dealCoupon)
-
 
4155
    except ShoppingCartException, scex:
-
 
4156
      result.scex = scex
-
 
4157
    oprot.writeMessageBegin("validateCartWithDealerCoupon", TMessageType.REPLY, seqid)
-
 
4158
    result.write(oprot)
-
 
4159
    oprot.writeMessageEnd()
-
 
4160
    oprot.trans.flush()
-
 
4161
 
4087
  def process_mergeCart(self, seqid, iprot, oprot):
4162
  def process_mergeCart(self, seqid, iprot, oprot):
4088
    args = mergeCart_args()
4163
    args = mergeCart_args()
4089
    args.read(iprot)
4164
    args.read(iprot)
4090
    iprot.readMessageEnd()
4165
    iprot.readMessageEnd()
4091
    result = mergeCart_result()
4166
    result = mergeCart_result()
Line 4322... Line 4397...
4322
    args = validateCartPlus_args()
4397
    args = validateCartPlus_args()
4323
    args.read(iprot)
4398
    args.read(iprot)
4324
    iprot.readMessageEnd()
4399
    iprot.readMessageEnd()
4325
    result = validateCartPlus_result()
4400
    result = validateCartPlus_result()
4326
    try:
4401
    try:
4327
      result.success = self._handler.validateCartPlus(args.cartId, args.sourceId)
4402
      result.success = self._handler.validateCartPlus(args.cartId, args.sourceId, args.dealerCoupon)
4328
    except ShoppingCartException, scex:
4403
    except ShoppingCartException, scex:
4329
      result.scex = scex
4404
      result.scex = scex
4330
    oprot.writeMessageBegin("validateCartPlus", TMessageType.REPLY, seqid)
4405
    oprot.writeMessageBegin("validateCartPlus", TMessageType.REPLY, seqid)
4331
    result.write(oprot)
4406
    result.write(oprot)
4332
    oprot.writeMessageEnd()
4407
    oprot.writeMessageEnd()
Line 11803... Line 11878...
11803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11804
 
11879
 
11805
  def __ne__(self, other):
11880
  def __ne__(self, other):
11806
    return not (self == other)
11881
    return not (self == other)
11807
 
11882
 
-
 
11883
class validateCartWithDealerCoupon_args:
-
 
11884
  """
-
 
11885
  Attributes:
-
 
11886
   - cartId
-
 
11887
   - sourceId
-
 
11888
   - dealCoupon
-
 
11889
  """
-
 
11890
 
-
 
11891
  thrift_spec = (
-
 
11892
    None, # 0
-
 
11893
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
11894
    (2, TType.I64, 'sourceId', None, None, ), # 2
-
 
11895
    (3, TType.STRING, 'dealCoupon', None, None, ), # 3
-
 
11896
  )
-
 
11897
 
-
 
11898
  def __init__(self, cartId=None, sourceId=None, dealCoupon=None,):
-
 
11899
    self.cartId = cartId
-
 
11900
    self.sourceId = sourceId
-
 
11901
    self.dealCoupon = dealCoupon
-
 
11902
 
-
 
11903
  def read(self, iprot):
-
 
11904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11906
      return
-
 
11907
    iprot.readStructBegin()
-
 
11908
    while True:
-
 
11909
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11910
      if ftype == TType.STOP:
-
 
11911
        break
-
 
11912
      if fid == 1:
-
 
11913
        if ftype == TType.I64:
-
 
11914
          self.cartId = iprot.readI64();
-
 
11915
        else:
-
 
11916
          iprot.skip(ftype)
-
 
11917
      elif fid == 2:
-
 
11918
        if ftype == TType.I64:
-
 
11919
          self.sourceId = iprot.readI64();
-
 
11920
        else:
-
 
11921
          iprot.skip(ftype)
-
 
11922
      elif fid == 3:
-
 
11923
        if ftype == TType.STRING:
-
 
11924
          self.dealCoupon = iprot.readString();
-
 
11925
        else:
-
 
11926
          iprot.skip(ftype)
-
 
11927
      else:
-
 
11928
        iprot.skip(ftype)
-
 
11929
      iprot.readFieldEnd()
-
 
11930
    iprot.readStructEnd()
-
 
11931
 
-
 
11932
  def write(self, oprot):
-
 
11933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
11934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
11935
      return
-
 
11936
    oprot.writeStructBegin('validateCartWithDealerCoupon_args')
-
 
11937
    if self.cartId is not None:
-
 
11938
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
11939
      oprot.writeI64(self.cartId)
-
 
11940
      oprot.writeFieldEnd()
-
 
11941
    if self.sourceId is not None:
-
 
11942
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
-
 
11943
      oprot.writeI64(self.sourceId)
-
 
11944
      oprot.writeFieldEnd()
-
 
11945
    if self.dealCoupon is not None:
-
 
11946
      oprot.writeFieldBegin('dealCoupon', TType.STRING, 3)
-
 
11947
      oprot.writeString(self.dealCoupon)
-
 
11948
      oprot.writeFieldEnd()
-
 
11949
    oprot.writeFieldStop()
-
 
11950
    oprot.writeStructEnd()
-
 
11951
 
-
 
11952
  def validate(self):
-
 
11953
    return
-
 
11954
 
-
 
11955
 
-
 
11956
  def __repr__(self):
-
 
11957
    L = ['%s=%r' % (key, value)
-
 
11958
      for key, value in self.__dict__.iteritems()]
-
 
11959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
11960
 
-
 
11961
  def __eq__(self, other):
-
 
11962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
11963
 
-
 
11964
  def __ne__(self, other):
-
 
11965
    return not (self == other)
-
 
11966
 
-
 
11967
class validateCartWithDealerCoupon_result:
-
 
11968
  """
-
 
11969
  Attributes:
-
 
11970
   - success
-
 
11971
   - scex
-
 
11972
  """
-
 
11973
 
-
 
11974
  thrift_spec = (
-
 
11975
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
-
 
11976
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
11977
  )
-
 
11978
 
-
 
11979
  def __init__(self, success=None, scex=None,):
-
 
11980
    self.success = success
-
 
11981
    self.scex = scex
-
 
11982
 
-
 
11983
  def read(self, iprot):
-
 
11984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
11985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
11986
      return
-
 
11987
    iprot.readStructBegin()
-
 
11988
    while True:
-
 
11989
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
11990
      if ftype == TType.STOP:
-
 
11991
        break
-
 
11992
      if fid == 0:
-
 
11993
        if ftype == TType.LIST:
-
 
11994
          self.success = []
-
 
11995
          (_etype177, _size174) = iprot.readListBegin()
-
 
11996
          for _i178 in xrange(_size174):
-
 
11997
            _elem179 = iprot.readString();
-
 
11998
            self.success.append(_elem179)
-
 
11999
          iprot.readListEnd()
-
 
12000
        else:
-
 
12001
          iprot.skip(ftype)
-
 
12002
      elif fid == 1:
-
 
12003
        if ftype == TType.STRUCT:
-
 
12004
          self.scex = ShoppingCartException()
-
 
12005
          self.scex.read(iprot)
-
 
12006
        else:
-
 
12007
          iprot.skip(ftype)
-
 
12008
      else:
-
 
12009
        iprot.skip(ftype)
-
 
12010
      iprot.readFieldEnd()
-
 
12011
    iprot.readStructEnd()
-
 
12012
 
-
 
12013
  def write(self, oprot):
-
 
12014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12016
      return
-
 
12017
    oprot.writeStructBegin('validateCartWithDealerCoupon_result')
-
 
12018
    if self.success is not None:
-
 
12019
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
12020
      oprot.writeListBegin(TType.STRING, len(self.success))
-
 
12021
      for iter180 in self.success:
-
 
12022
        oprot.writeString(iter180)
-
 
12023
      oprot.writeListEnd()
-
 
12024
      oprot.writeFieldEnd()
-
 
12025
    if self.scex is not None:
-
 
12026
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
-
 
12027
      self.scex.write(oprot)
-
 
12028
      oprot.writeFieldEnd()
-
 
12029
    oprot.writeFieldStop()
-
 
12030
    oprot.writeStructEnd()
-
 
12031
 
-
 
12032
  def validate(self):
-
 
12033
    return
-
 
12034
 
-
 
12035
 
-
 
12036
  def __repr__(self):
-
 
12037
    L = ['%s=%r' % (key, value)
-
 
12038
      for key, value in self.__dict__.iteritems()]
-
 
12039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12040
 
-
 
12041
  def __eq__(self, other):
-
 
12042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12043
 
-
 
12044
  def __ne__(self, other):
-
 
12045
    return not (self == other)
-
 
12046
 
11808
class mergeCart_args:
12047
class mergeCart_args:
11809
  """
12048
  """
11810
  Attributes:
12049
  Attributes:
11811
   - fromCartId
12050
   - fromCartId
11812
   - toCartId
12051
   - toCartId
Line 12083... Line 12322...
12083
        else:
12322
        else:
12084
          iprot.skip(ftype)
12323
          iprot.skip(ftype)
12085
      elif fid == 2:
12324
      elif fid == 2:
12086
        if ftype == TType.MAP:
12325
        if ftype == TType.MAP:
12087
          self.items = {}
12326
          self.items = {}
12088
          (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() 
12327
          (_ktype182, _vtype183, _size181 ) = iprot.readMapBegin() 
12089
          for _i178 in xrange(_size174):
12328
          for _i185 in xrange(_size181):
12090
            _key179 = iprot.readI64();
12329
            _key186 = iprot.readI64();
12091
            _val180 = iprot.readDouble();
12330
            _val187 = iprot.readDouble();
12092
            self.items[_key179] = _val180
12331
            self.items[_key186] = _val187
12093
          iprot.readMapEnd()
12332
          iprot.readMapEnd()
12094
        else:
12333
        else:
12095
          iprot.skip(ftype)
12334
          iprot.skip(ftype)
12096
      else:
12335
      else:
12097
        iprot.skip(ftype)
12336
        iprot.skip(ftype)
Line 12108... Line 12347...
12108
      oprot.writeI64(self.cartId)
12347
      oprot.writeI64(self.cartId)
12109
      oprot.writeFieldEnd()
12348
      oprot.writeFieldEnd()
12110
    if self.items is not None:
12349
    if self.items is not None:
12111
      oprot.writeFieldBegin('items', TType.MAP, 2)
12350
      oprot.writeFieldBegin('items', TType.MAP, 2)
12112
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
12351
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
12113
      for kiter181,viter182 in self.items.items():
12352
      for kiter188,viter189 in self.items.items():
12114
        oprot.writeI64(kiter181)
12353
        oprot.writeI64(kiter188)
12115
        oprot.writeDouble(viter182)
12354
        oprot.writeDouble(viter189)
12116
      oprot.writeMapEnd()
12355
      oprot.writeMapEnd()
12117
      oprot.writeFieldEnd()
12356
      oprot.writeFieldEnd()
12118
    oprot.writeFieldStop()
12357
    oprot.writeFieldStop()
12119
    oprot.writeStructEnd()
12358
    oprot.writeStructEnd()
12120
 
12359
 
Line 12431... Line 12670...
12431
      if ftype == TType.STOP:
12670
      if ftype == TType.STOP:
12432
        break
12671
        break
12433
      if fid == 0:
12672
      if fid == 0:
12434
        if ftype == TType.LIST:
12673
        if ftype == TType.LIST:
12435
          self.success = []
12674
          self.success = []
12436
          (_etype186, _size183) = iprot.readListBegin()
12675
          (_etype193, _size190) = iprot.readListBegin()
12437
          for _i187 in xrange(_size183):
12676
          for _i194 in xrange(_size190):
12438
            _elem188 = User()
12677
            _elem195 = User()
12439
            _elem188.read(iprot)
12678
            _elem195.read(iprot)
12440
            self.success.append(_elem188)
12679
            self.success.append(_elem195)
12441
          iprot.readListEnd()
12680
          iprot.readListEnd()
12442
        else:
12681
        else:
12443
          iprot.skip(ftype)
12682
          iprot.skip(ftype)
12444
      else:
12683
      else:
12445
        iprot.skip(ftype)
12684
        iprot.skip(ftype)
Line 12452... Line 12691...
12452
      return
12691
      return
12453
    oprot.writeStructBegin('getAllUsers_result')
12692
    oprot.writeStructBegin('getAllUsers_result')
12454
    if self.success is not None:
12693
    if self.success is not None:
12455
      oprot.writeFieldBegin('success', TType.LIST, 0)
12694
      oprot.writeFieldBegin('success', TType.LIST, 0)
12456
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12695
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12457
      for iter189 in self.success:
12696
      for iter196 in self.success:
12458
        iter189.write(oprot)
12697
        iter196.write(oprot)
12459
      oprot.writeListEnd()
12698
      oprot.writeListEnd()
12460
      oprot.writeFieldEnd()
12699
      oprot.writeFieldEnd()
12461
    oprot.writeFieldStop()
12700
    oprot.writeFieldStop()
12462
    oprot.writeStructEnd()
12701
    oprot.writeStructEnd()
12463
 
12702
 
Line 12562... Line 12801...
12562
      if ftype == TType.STOP:
12801
      if ftype == TType.STOP:
12563
        break
12802
        break
12564
      if fid == 0:
12803
      if fid == 0:
12565
        if ftype == TType.LIST:
12804
        if ftype == TType.LIST:
12566
          self.success = []
12805
          self.success = []
12567
          (_etype193, _size190) = iprot.readListBegin()
12806
          (_etype200, _size197) = iprot.readListBegin()
12568
          for _i194 in xrange(_size190):
12807
          for _i201 in xrange(_size197):
12569
            _elem195 = iprot.readI64();
12808
            _elem202 = iprot.readI64();
12570
            self.success.append(_elem195)
12809
            self.success.append(_elem202)
12571
          iprot.readListEnd()
12810
          iprot.readListEnd()
12572
        else:
12811
        else:
12573
          iprot.skip(ftype)
12812
          iprot.skip(ftype)
12574
      elif fid == 1:
12813
      elif fid == 1:
12575
        if ftype == TType.STRUCT:
12814
        if ftype == TType.STRUCT:
Line 12588... Line 12827...
12588
      return
12827
      return
12589
    oprot.writeStructBegin('getMyResearchItems_result')
12828
    oprot.writeStructBegin('getMyResearchItems_result')
12590
    if self.success is not None:
12829
    if self.success is not None:
12591
      oprot.writeFieldBegin('success', TType.LIST, 0)
12830
      oprot.writeFieldBegin('success', TType.LIST, 0)
12592
      oprot.writeListBegin(TType.I64, len(self.success))
12831
      oprot.writeListBegin(TType.I64, len(self.success))
12593
      for iter196 in self.success:
12832
      for iter203 in self.success:
12594
        oprot.writeI64(iter196)
12833
        oprot.writeI64(iter203)
12595
      oprot.writeListEnd()
12834
      oprot.writeListEnd()
12596
      oprot.writeFieldEnd()
12835
      oprot.writeFieldEnd()
12597
    if self.scx is not None:
12836
    if self.scx is not None:
12598
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12837
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12599
      self.scx.write(oprot)
12838
      self.scx.write(oprot)
Line 12979... Line 13218...
12979
      if ftype == TType.STOP:
13218
      if ftype == TType.STOP:
12980
        break
13219
        break
12981
      if fid == 0:
13220
      if fid == 0:
12982
        if ftype == TType.LIST:
13221
        if ftype == TType.LIST:
12983
          self.success = []
13222
          self.success = []
12984
          (_etype200, _size197) = iprot.readListBegin()
13223
          (_etype207, _size204) = iprot.readListBegin()
12985
          for _i201 in xrange(_size197):
13224
          for _i208 in xrange(_size204):
12986
            _elem202 = iprot.readI64();
13225
            _elem209 = iprot.readI64();
12987
            self.success.append(_elem202)
13226
            self.success.append(_elem209)
12988
          iprot.readListEnd()
13227
          iprot.readListEnd()
12989
        else:
13228
        else:
12990
          iprot.skip(ftype)
13229
          iprot.skip(ftype)
12991
      elif fid == 1:
13230
      elif fid == 1:
12992
        if ftype == TType.STRUCT:
13231
        if ftype == TType.STRUCT:
Line 13005... Line 13244...
13005
      return
13244
      return
13006
    oprot.writeStructBegin('getBrowseHistoryItems_result')
13245
    oprot.writeStructBegin('getBrowseHistoryItems_result')
13007
    if self.success is not None:
13246
    if self.success is not None:
13008
      oprot.writeFieldBegin('success', TType.LIST, 0)
13247
      oprot.writeFieldBegin('success', TType.LIST, 0)
13009
      oprot.writeListBegin(TType.I64, len(self.success))
13248
      oprot.writeListBegin(TType.I64, len(self.success))
13010
      for iter203 in self.success:
13249
      for iter210 in self.success:
13011
        oprot.writeI64(iter203)
13250
        oprot.writeI64(iter210)
13012
      oprot.writeListEnd()
13251
      oprot.writeListEnd()
13013
      oprot.writeFieldEnd()
13252
      oprot.writeFieldEnd()
13014
    if self.scx is not None:
13253
    if self.scx is not None:
13015
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13254
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13016
      self.scx.write(oprot)
13255
      self.scx.write(oprot)
Line 13695... Line 13934...
13695
      if ftype == TType.STOP:
13934
      if ftype == TType.STOP:
13696
        break
13935
        break
13697
      if fid == 0:
13936
      if fid == 0:
13698
        if ftype == TType.LIST:
13937
        if ftype == TType.LIST:
13699
          self.success = []
13938
          self.success = []
13700
          (_etype207, _size204) = iprot.readListBegin()
13939
          (_etype214, _size211) = iprot.readListBegin()
13701
          for _i208 in xrange(_size204):
13940
          for _i215 in xrange(_size211):
13702
            _elem209 = iprot.readString();
13941
            _elem216 = iprot.readString();
13703
            self.success.append(_elem209)
13942
            self.success.append(_elem216)
13704
          iprot.readListEnd()
13943
          iprot.readListEnd()
13705
        else:
13944
        else:
13706
          iprot.skip(ftype)
13945
          iprot.skip(ftype)
13707
      else:
13946
      else:
13708
        iprot.skip(ftype)
13947
        iprot.skip(ftype)
Line 13715... Line 13954...
13715
      return
13954
      return
13716
    oprot.writeStructBegin('getUserEmails_result')
13955
    oprot.writeStructBegin('getUserEmails_result')
13717
    if self.success is not None:
13956
    if self.success is not None:
13718
      oprot.writeFieldBegin('success', TType.LIST, 0)
13957
      oprot.writeFieldBegin('success', TType.LIST, 0)
13719
      oprot.writeListBegin(TType.STRING, len(self.success))
13958
      oprot.writeListBegin(TType.STRING, len(self.success))
13720
      for iter210 in self.success:
13959
      for iter217 in self.success:
13721
        oprot.writeString(iter210)
13960
        oprot.writeString(iter217)
13722
      oprot.writeListEnd()
13961
      oprot.writeListEnd()
13723
      oprot.writeFieldEnd()
13962
      oprot.writeFieldEnd()
13724
    oprot.writeFieldStop()
13963
    oprot.writeFieldStop()
13725
    oprot.writeStructEnd()
13964
    oprot.writeStructEnd()
13726
 
13965
 
Line 14370... Line 14609...
14370
      if ftype == TType.STOP:
14609
      if ftype == TType.STOP:
14371
        break
14610
        break
14372
      if fid == 0:
14611
      if fid == 0:
14373
        if ftype == TType.LIST:
14612
        if ftype == TType.LIST:
14374
          self.success = []
14613
          self.success = []
14375
          (_etype214, _size211) = iprot.readListBegin()
14614
          (_etype221, _size218) = iprot.readListBegin()
14376
          for _i215 in xrange(_size211):
14615
          for _i222 in xrange(_size218):
14377
            _elem216 = iprot.readI64();
14616
            _elem223 = iprot.readI64();
14378
            self.success.append(_elem216)
14617
            self.success.append(_elem223)
14379
          iprot.readListEnd()
14618
          iprot.readListEnd()
14380
        else:
14619
        else:
14381
          iprot.skip(ftype)
14620
          iprot.skip(ftype)
14382
      else:
14621
      else:
14383
        iprot.skip(ftype)
14622
        iprot.skip(ftype)
Line 14390... Line 14629...
14390
      return
14629
      return
14391
    oprot.writeStructBegin('getProductsAddedToCart_result')
14630
    oprot.writeStructBegin('getProductsAddedToCart_result')
14392
    if self.success is not None:
14631
    if self.success is not None:
14393
      oprot.writeFieldBegin('success', TType.LIST, 0)
14632
      oprot.writeFieldBegin('success', TType.LIST, 0)
14394
      oprot.writeListBegin(TType.I64, len(self.success))
14633
      oprot.writeListBegin(TType.I64, len(self.success))
14395
      for iter217 in self.success:
14634
      for iter224 in self.success:
14396
        oprot.writeI64(iter217)
14635
        oprot.writeI64(iter224)
14397
      oprot.writeListEnd()
14636
      oprot.writeListEnd()
14398
      oprot.writeFieldEnd()
14637
      oprot.writeFieldEnd()
14399
    oprot.writeFieldStop()
14638
    oprot.writeFieldStop()
14400
    oprot.writeStructEnd()
14639
    oprot.writeStructEnd()
14401
 
14640
 
Line 14417... Line 14656...
14417
class validateCartPlus_args:
14656
class validateCartPlus_args:
14418
  """
14657
  """
14419
  Attributes:
14658
  Attributes:
14420
   - cartId
14659
   - cartId
14421
   - sourceId
14660
   - sourceId
-
 
14661
   - dealerCoupon
14422
  """
14662
  """
14423
 
14663
 
14424
  thrift_spec = (
14664
  thrift_spec = (
14425
    None, # 0
14665
    None, # 0
14426
    (1, TType.I64, 'cartId', None, None, ), # 1
14666
    (1, TType.I64, 'cartId', None, None, ), # 1
14427
    (2, TType.I64, 'sourceId', None, None, ), # 2
14667
    (2, TType.I64, 'sourceId', None, None, ), # 2
-
 
14668
    (3, TType.STRING, 'dealerCoupon', None, None, ), # 3
14428
  )
14669
  )
14429
 
14670
 
14430
  def __init__(self, cartId=None, sourceId=None,):
14671
  def __init__(self, cartId=None, sourceId=None, dealerCoupon=None,):
14431
    self.cartId = cartId
14672
    self.cartId = cartId
14432
    self.sourceId = sourceId
14673
    self.sourceId = sourceId
-
 
14674
    self.dealerCoupon = dealerCoupon
14433
 
14675
 
14434
  def read(self, iprot):
14676
  def read(self, iprot):
14435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14437
      return
14679
      return
Line 14448... Line 14690...
14448
      elif fid == 2:
14690
      elif fid == 2:
14449
        if ftype == TType.I64:
14691
        if ftype == TType.I64:
14450
          self.sourceId = iprot.readI64();
14692
          self.sourceId = iprot.readI64();
14451
        else:
14693
        else:
14452
          iprot.skip(ftype)
14694
          iprot.skip(ftype)
-
 
14695
      elif fid == 3:
-
 
14696
        if ftype == TType.STRING:
-
 
14697
          self.dealerCoupon = iprot.readString();
-
 
14698
        else:
-
 
14699
          iprot.skip(ftype)
14453
      else:
14700
      else:
14454
        iprot.skip(ftype)
14701
        iprot.skip(ftype)
14455
      iprot.readFieldEnd()
14702
      iprot.readFieldEnd()
14456
    iprot.readStructEnd()
14703
    iprot.readStructEnd()
14457
 
14704
 
Line 14466... Line 14713...
14466
      oprot.writeFieldEnd()
14713
      oprot.writeFieldEnd()
14467
    if self.sourceId is not None:
14714
    if self.sourceId is not None:
14468
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
14715
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
14469
      oprot.writeI64(self.sourceId)
14716
      oprot.writeI64(self.sourceId)
14470
      oprot.writeFieldEnd()
14717
      oprot.writeFieldEnd()
-
 
14718
    if self.dealerCoupon is not None:
-
 
14719
      oprot.writeFieldBegin('dealerCoupon', TType.STRING, 3)
-
 
14720
      oprot.writeString(self.dealerCoupon)
-
 
14721
      oprot.writeFieldEnd()
14471
    oprot.writeFieldStop()
14722
    oprot.writeFieldStop()
14472
    oprot.writeStructEnd()
14723
    oprot.writeStructEnd()
14473
 
14724
 
14474
  def validate(self):
14725
  def validate(self):
14475
    return
14726
    return