Subversion Repositories SmartDukaan

Rev

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

Rev 6736 Rev 7092
Line 122... Line 122...
122
    Parameters:
122
    Parameters:
123
     - couponCode
123
     - couponCode
124
    """
124
    """
125
    pass
125
    pass
126
 
126
 
-
 
127
  def getAllCouponsByPromotionId(self, promotionId):
-
 
128
    """
-
 
129
    Parameters:
-
 
130
     - promotionId
-
 
131
    """
-
 
132
    pass
-
 
133
 
127
  def getActiveCoupons(self, ):
134
  def getActiveCoupons(self, ):
128
    """
135
    """
129
    Returns a list of active coupons
136
    Returns a list of active coupons
130
    """
137
    """
131
    pass
138
    pass
Line 661... Line 668...
661
    self._iprot.readMessageEnd()
668
    self._iprot.readMessageEnd()
662
    if result.pex is not None:
669
    if result.pex is not None:
663
      raise result.pex
670
      raise result.pex
664
    return
671
    return
665
 
672
 
-
 
673
  def getAllCouponsByPromotionId(self, promotionId):
-
 
674
    """
-
 
675
    Parameters:
-
 
676
     - promotionId
-
 
677
    """
-
 
678
    self.send_getAllCouponsByPromotionId(promotionId)
-
 
679
    return self.recv_getAllCouponsByPromotionId()
-
 
680
 
-
 
681
  def send_getAllCouponsByPromotionId(self, promotionId):
-
 
682
    self._oprot.writeMessageBegin('getAllCouponsByPromotionId', TMessageType.CALL, self._seqid)
-
 
683
    args = getAllCouponsByPromotionId_args()
-
 
684
    args.promotionId = promotionId
-
 
685
    args.write(self._oprot)
-
 
686
    self._oprot.writeMessageEnd()
-
 
687
    self._oprot.trans.flush()
-
 
688
 
-
 
689
  def recv_getAllCouponsByPromotionId(self, ):
-
 
690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
691
    if mtype == TMessageType.EXCEPTION:
-
 
692
      x = TApplicationException()
-
 
693
      x.read(self._iprot)
-
 
694
      self._iprot.readMessageEnd()
-
 
695
      raise x
-
 
696
    result = getAllCouponsByPromotionId_result()
-
 
697
    result.read(self._iprot)
-
 
698
    self._iprot.readMessageEnd()
-
 
699
    if result.success is not None:
-
 
700
      return result.success
-
 
701
    if result.pex is not None:
-
 
702
      raise result.pex
-
 
703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCouponsByPromotionId failed: unknown result");
-
 
704
 
666
  def getActiveCoupons(self, ):
705
  def getActiveCoupons(self, ):
667
    """
706
    """
668
    Returns a list of active coupons
707
    Returns a list of active coupons
669
    """
708
    """
670
    self.send_getActiveCoupons()
709
    self.send_getActiveCoupons()
Line 975... Line 1014...
975
    self._processMap["applyRechargeCoupon"] = Processor.process_applyRechargeCoupon
1014
    self._processMap["applyRechargeCoupon"] = Processor.process_applyRechargeCoupon
976
    self._processMap["trackCouponUsage"] = Processor.process_trackCouponUsage
1015
    self._processMap["trackCouponUsage"] = Processor.process_trackCouponUsage
977
    self._processMap["getCouponUsageCountByUser"] = Processor.process_getCouponUsageCountByUser
1016
    self._processMap["getCouponUsageCountByUser"] = Processor.process_getCouponUsageCountByUser
978
    self._processMap["getActiveCodes"] = Processor.process_getActiveCodes
1017
    self._processMap["getActiveCodes"] = Processor.process_getActiveCodes
979
    self._processMap["deleteCoupon"] = Processor.process_deleteCoupon
1018
    self._processMap["deleteCoupon"] = Processor.process_deleteCoupon
-
 
1019
    self._processMap["getAllCouponsByPromotionId"] = Processor.process_getAllCouponsByPromotionId
980
    self._processMap["getActiveCoupons"] = Processor.process_getActiveCoupons
1020
    self._processMap["getActiveCoupons"] = Processor.process_getActiveCoupons
981
    self._processMap["createCoupon"] = Processor.process_createCoupon
1021
    self._processMap["createCoupon"] = Processor.process_createCoupon
982
    self._processMap["getSuccessfulPaymentCountForCoupon"] = Processor.process_getSuccessfulPaymentCountForCoupon
1022
    self._processMap["getSuccessfulPaymentCountForCoupon"] = Processor.process_getSuccessfulPaymentCountForCoupon
983
    self._processMap["getRuleDocString"] = Processor.process_getRuleDocString
1023
    self._processMap["getRuleDocString"] = Processor.process_getRuleDocString
984
    self._processMap["getItemDiscountMap"] = Processor.process_getItemDiscountMap
1024
    self._processMap["getItemDiscountMap"] = Processor.process_getItemDiscountMap
Line 1196... Line 1236...
1196
    oprot.writeMessageBegin("deleteCoupon", TMessageType.REPLY, seqid)
1236
    oprot.writeMessageBegin("deleteCoupon", TMessageType.REPLY, seqid)
1197
    result.write(oprot)
1237
    result.write(oprot)
1198
    oprot.writeMessageEnd()
1238
    oprot.writeMessageEnd()
1199
    oprot.trans.flush()
1239
    oprot.trans.flush()
1200
 
1240
 
-
 
1241
  def process_getAllCouponsByPromotionId(self, seqid, iprot, oprot):
-
 
1242
    args = getAllCouponsByPromotionId_args()
-
 
1243
    args.read(iprot)
-
 
1244
    iprot.readMessageEnd()
-
 
1245
    result = getAllCouponsByPromotionId_result()
-
 
1246
    try:
-
 
1247
      result.success = self._handler.getAllCouponsByPromotionId(args.promotionId)
-
 
1248
    except PromotionException, pex:
-
 
1249
      result.pex = pex
-
 
1250
    oprot.writeMessageBegin("getAllCouponsByPromotionId", TMessageType.REPLY, seqid)
-
 
1251
    result.write(oprot)
-
 
1252
    oprot.writeMessageEnd()
-
 
1253
    oprot.trans.flush()
-
 
1254
 
1201
  def process_getActiveCoupons(self, seqid, iprot, oprot):
1255
  def process_getActiveCoupons(self, seqid, iprot, oprot):
1202
    args = getActiveCoupons_args()
1256
    args = getActiveCoupons_args()
1203
    args.read(iprot)
1257
    args.read(iprot)
1204
    iprot.readMessageEnd()
1258
    iprot.readMessageEnd()
1205
    result = getActiveCoupons_result()
1259
    result = getActiveCoupons_result()
Line 3257... Line 3311...
3257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3258
 
3312
 
3259
  def __ne__(self, other):
3313
  def __ne__(self, other):
3260
    return not (self == other)
3314
    return not (self == other)
3261
 
3315
 
3262
class getActiveCoupons_args:
3316
class getAllCouponsByPromotionId_args:
-
 
3317
  """
-
 
3318
  Attributes:
-
 
3319
   - promotionId
-
 
3320
  """
3263
 
3321
 
3264
  thrift_spec = (
3322
  thrift_spec = (
-
 
3323
    None, # 0
-
 
3324
    (1, TType.I64, 'promotionId', None, None, ), # 1
3265
  )
3325
  )
3266
 
3326
 
-
 
3327
  def __init__(self, promotionId=None,):
-
 
3328
    self.promotionId = promotionId
-
 
3329
 
3267
  def read(self, iprot):
3330
  def read(self, iprot):
3268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3270
      return
3333
      return
3271
    iprot.readStructBegin()
3334
    iprot.readStructBegin()
3272
    while True:
3335
    while True:
3273
      (fname, ftype, fid) = iprot.readFieldBegin()
3336
      (fname, ftype, fid) = iprot.readFieldBegin()
3274
      if ftype == TType.STOP:
3337
      if ftype == TType.STOP:
3275
        break
3338
        break
-
 
3339
      if fid == 1:
-
 
3340
        if ftype == TType.I64:
-
 
3341
          self.promotionId = iprot.readI64();
-
 
3342
        else:
-
 
3343
          iprot.skip(ftype)
3276
      else:
3344
      else:
3277
        iprot.skip(ftype)
3345
        iprot.skip(ftype)
3278
      iprot.readFieldEnd()
3346
      iprot.readFieldEnd()
3279
    iprot.readStructEnd()
3347
    iprot.readStructEnd()
3280
 
3348
 
3281
  def write(self, oprot):
3349
  def write(self, oprot):
3282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3284
      return
3352
      return
3285
    oprot.writeStructBegin('getActiveCoupons_args')
3353
    oprot.writeStructBegin('getAllCouponsByPromotionId_args')
-
 
3354
    if self.promotionId is not None:
-
 
3355
      oprot.writeFieldBegin('promotionId', TType.I64, 1)
-
 
3356
      oprot.writeI64(self.promotionId)
-
 
3357
      oprot.writeFieldEnd()
3286
    oprot.writeFieldStop()
3358
    oprot.writeFieldStop()
3287
    oprot.writeStructEnd()
3359
    oprot.writeStructEnd()
3288
 
3360
 
3289
  def validate(self):
3361
  def validate(self):
3290
    return
3362
    return
Line 3299... Line 3371...
3299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3300
 
3372
 
3301
  def __ne__(self, other):
3373
  def __ne__(self, other):
3302
    return not (self == other)
3374
    return not (self == other)
3303
 
3375
 
3304
class getActiveCoupons_result:
3376
class getAllCouponsByPromotionId_result:
3305
  """
3377
  """
3306
  Attributes:
3378
  Attributes:
3307
   - success
3379
   - success
3308
   - pex
3380
   - pex
3309
  """
3381
  """
Line 3350... Line 3422...
3350
 
3422
 
3351
  def write(self, oprot):
3423
  def write(self, oprot):
3352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3354
      return
3426
      return
3355
    oprot.writeStructBegin('getActiveCoupons_result')
3427
    oprot.writeStructBegin('getAllCouponsByPromotionId_result')
3356
    if self.success is not None:
3428
    if self.success is not None:
3357
      oprot.writeFieldBegin('success', TType.LIST, 0)
3429
      oprot.writeFieldBegin('success', TType.LIST, 0)
3358
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3430
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3359
      for iter59 in self.success:
3431
      for iter59 in self.success:
3360
        iter59.write(oprot)
3432
        iter59.write(oprot)
Line 3380... Line 3452...
3380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3381
 
3453
 
3382
  def __ne__(self, other):
3454
  def __ne__(self, other):
3383
    return not (self == other)
3455
    return not (self == other)
3384
 
3456
 
-
 
3457
class getActiveCoupons_args:
-
 
3458
 
-
 
3459
  thrift_spec = (
-
 
3460
  )
-
 
3461
 
-
 
3462
  def read(self, iprot):
-
 
3463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3465
      return
-
 
3466
    iprot.readStructBegin()
-
 
3467
    while True:
-
 
3468
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3469
      if ftype == TType.STOP:
-
 
3470
        break
-
 
3471
      else:
-
 
3472
        iprot.skip(ftype)
-
 
3473
      iprot.readFieldEnd()
-
 
3474
    iprot.readStructEnd()
-
 
3475
 
-
 
3476
  def write(self, oprot):
-
 
3477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3479
      return
-
 
3480
    oprot.writeStructBegin('getActiveCoupons_args')
-
 
3481
    oprot.writeFieldStop()
-
 
3482
    oprot.writeStructEnd()
-
 
3483
 
-
 
3484
  def validate(self):
-
 
3485
    return
-
 
3486
 
-
 
3487
 
-
 
3488
  def __repr__(self):
-
 
3489
    L = ['%s=%r' % (key, value)
-
 
3490
      for key, value in self.__dict__.iteritems()]
-
 
3491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3492
 
-
 
3493
  def __eq__(self, other):
-
 
3494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3495
 
-
 
3496
  def __ne__(self, other):
-
 
3497
    return not (self == other)
-
 
3498
 
-
 
3499
class getActiveCoupons_result:
-
 
3500
  """
-
 
3501
  Attributes:
-
 
3502
   - success
-
 
3503
   - pex
-
 
3504
  """
-
 
3505
 
-
 
3506
  thrift_spec = (
-
 
3507
    (0, TType.LIST, 'success', (TType.STRUCT,(Coupon, Coupon.thrift_spec)), None, ), # 0
-
 
3508
    (1, TType.STRUCT, 'pex', (PromotionException, PromotionException.thrift_spec), None, ), # 1
-
 
3509
  )
-
 
3510
 
-
 
3511
  def __init__(self, success=None, pex=None,):
-
 
3512
    self.success = success
-
 
3513
    self.pex = pex
-
 
3514
 
-
 
3515
  def read(self, iprot):
-
 
3516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3518
      return
-
 
3519
    iprot.readStructBegin()
-
 
3520
    while True:
-
 
3521
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3522
      if ftype == TType.STOP:
-
 
3523
        break
-
 
3524
      if fid == 0:
-
 
3525
        if ftype == TType.LIST:
-
 
3526
          self.success = []
-
 
3527
          (_etype63, _size60) = iprot.readListBegin()
-
 
3528
          for _i64 in xrange(_size60):
-
 
3529
            _elem65 = Coupon()
-
 
3530
            _elem65.read(iprot)
-
 
3531
            self.success.append(_elem65)
-
 
3532
          iprot.readListEnd()
-
 
3533
        else:
-
 
3534
          iprot.skip(ftype)
-
 
3535
      elif fid == 1:
-
 
3536
        if ftype == TType.STRUCT:
-
 
3537
          self.pex = PromotionException()
-
 
3538
          self.pex.read(iprot)
-
 
3539
        else:
-
 
3540
          iprot.skip(ftype)
-
 
3541
      else:
-
 
3542
        iprot.skip(ftype)
-
 
3543
      iprot.readFieldEnd()
-
 
3544
    iprot.readStructEnd()
-
 
3545
 
-
 
3546
  def write(self, oprot):
-
 
3547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3549
      return
-
 
3550
    oprot.writeStructBegin('getActiveCoupons_result')
-
 
3551
    if self.success is not None:
-
 
3552
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
3553
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
3554
      for iter66 in self.success:
-
 
3555
        iter66.write(oprot)
-
 
3556
      oprot.writeListEnd()
-
 
3557
      oprot.writeFieldEnd()
-
 
3558
    if self.pex is not None:
-
 
3559
      oprot.writeFieldBegin('pex', TType.STRUCT, 1)
-
 
3560
      self.pex.write(oprot)
-
 
3561
      oprot.writeFieldEnd()
-
 
3562
    oprot.writeFieldStop()
-
 
3563
    oprot.writeStructEnd()
-
 
3564
 
-
 
3565
  def validate(self):
-
 
3566
    return
-
 
3567
 
-
 
3568
 
-
 
3569
  def __repr__(self):
-
 
3570
    L = ['%s=%r' % (key, value)
-
 
3571
      for key, value in self.__dict__.iteritems()]
-
 
3572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3573
 
-
 
3574
  def __eq__(self, other):
-
 
3575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3576
 
-
 
3577
  def __ne__(self, other):
-
 
3578
    return not (self == other)
-
 
3579
 
3385
class createCoupon_args:
3580
class createCoupon_args:
3386
  """
3581
  """
3387
  Attributes:
3582
  Attributes:
3388
   - promotionId
3583
   - promotionId
3389
   - couponCode
3584
   - couponCode
Line 3837... Line 4032...
3837
      if ftype == TType.STOP:
4032
      if ftype == TType.STOP:
3838
        break
4033
        break
3839
      if fid == 1:
4034
      if fid == 1:
3840
        if ftype == TType.LIST:
4035
        if ftype == TType.LIST:
3841
          self.itemIds = []
4036
          self.itemIds = []
3842
          (_etype63, _size60) = iprot.readListBegin()
4037
          (_etype70, _size67) = iprot.readListBegin()
3843
          for _i64 in xrange(_size60):
4038
          for _i71 in xrange(_size67):
3844
            _elem65 = iprot.readI64();
4039
            _elem72 = iprot.readI64();
3845
            self.itemIds.append(_elem65)
4040
            self.itemIds.append(_elem72)
3846
          iprot.readListEnd()
4041
          iprot.readListEnd()
3847
        else:
4042
        else:
3848
          iprot.skip(ftype)
4043
          iprot.skip(ftype)
3849
      else:
4044
      else:
3850
        iprot.skip(ftype)
4045
        iprot.skip(ftype)
Line 3857... Line 4052...
3857
      return
4052
      return
3858
    oprot.writeStructBegin('getItemDiscountMap_args')
4053
    oprot.writeStructBegin('getItemDiscountMap_args')
3859
    if self.itemIds is not None:
4054
    if self.itemIds is not None:
3860
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
4055
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
3861
      oprot.writeListBegin(TType.I64, len(self.itemIds))
4056
      oprot.writeListBegin(TType.I64, len(self.itemIds))
3862
      for iter66 in self.itemIds:
4057
      for iter73 in self.itemIds:
3863
        oprot.writeI64(iter66)
4058
        oprot.writeI64(iter73)
3864
      oprot.writeListEnd()
4059
      oprot.writeListEnd()
3865
      oprot.writeFieldEnd()
4060
      oprot.writeFieldEnd()
3866
    oprot.writeFieldStop()
4061
    oprot.writeFieldStop()
3867
    oprot.writeStructEnd()
4062
    oprot.writeStructEnd()
3868
 
4063
 
Line 3907... Line 4102...
3907
      if ftype == TType.STOP:
4102
      if ftype == TType.STOP:
3908
        break
4103
        break
3909
      if fid == 0:
4104
      if fid == 0:
3910
        if ftype == TType.LIST:
4105
        if ftype == TType.LIST:
3911
          self.success = []
4106
          self.success = []
3912
          (_etype70, _size67) = iprot.readListBegin()
4107
          (_etype77, _size74) = iprot.readListBegin()
3913
          for _i71 in xrange(_size67):
4108
          for _i78 in xrange(_size74):
3914
            _elem72 = ItemCouponDiscount()
4109
            _elem79 = ItemCouponDiscount()
3915
            _elem72.read(iprot)
4110
            _elem79.read(iprot)
3916
            self.success.append(_elem72)
4111
            self.success.append(_elem79)
3917
          iprot.readListEnd()
4112
          iprot.readListEnd()
3918
        else:
4113
        else:
3919
          iprot.skip(ftype)
4114
          iprot.skip(ftype)
3920
      elif fid == 1:
4115
      elif fid == 1:
3921
        if ftype == TType.STRUCT:
4116
        if ftype == TType.STRUCT:
Line 3934... Line 4129...
3934
      return
4129
      return
3935
    oprot.writeStructBegin('getItemDiscountMap_result')
4130
    oprot.writeStructBegin('getItemDiscountMap_result')
3936
    if self.success is not None:
4131
    if self.success is not None:
3937
      oprot.writeFieldBegin('success', TType.LIST, 0)
4132
      oprot.writeFieldBegin('success', TType.LIST, 0)
3938
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3939
      for iter73 in self.success:
4134
      for iter80 in self.success:
3940
        iter73.write(oprot)
4135
        iter80.write(oprot)
3941
      oprot.writeListEnd()
4136
      oprot.writeListEnd()
3942
      oprot.writeFieldEnd()
4137
      oprot.writeFieldEnd()
3943
    if self.pex is not None:
4138
    if self.pex is not None:
3944
      oprot.writeFieldBegin('pex', TType.STRUCT, 1)
4139
      oprot.writeFieldBegin('pex', TType.STRUCT, 1)
3945
      self.pex.write(oprot)
4140
      self.pex.write(oprot)
Line 4045... Line 4240...
4045
      if ftype == TType.STOP:
4240
      if ftype == TType.STOP:
4046
        break
4241
        break
4047
      if fid == 0:
4242
      if fid == 0:
4048
        if ftype == TType.MAP:
4243
        if ftype == TType.MAP:
4049
          self.success = {}
4244
          self.success = {}
4050
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
4245
          (_ktype82, _vtype83, _size81 ) = iprot.readMapBegin() 
4051
          for _i78 in xrange(_size74):
4246
          for _i85 in xrange(_size81):
4052
            _key79 = iprot.readString();
4247
            _key86 = iprot.readString();
4053
            _val80 = iprot.readDouble();
4248
            _val87 = iprot.readDouble();
4054
            self.success[_key79] = _val80
4249
            self.success[_key86] = _val87
4055
          iprot.readMapEnd()
4250
          iprot.readMapEnd()
4056
        else:
4251
        else:
4057
          iprot.skip(ftype)
4252
          iprot.skip(ftype)
4058
      else:
4253
      else:
4059
        iprot.skip(ftype)
4254
        iprot.skip(ftype)
Line 4066... Line 4261...
4066
      return
4261
      return
4067
    oprot.writeStructBegin('getDiscountsForEntity_result')
4262
    oprot.writeStructBegin('getDiscountsForEntity_result')
4068
    if self.success is not None:
4263
    if self.success is not None:
4069
      oprot.writeFieldBegin('success', TType.MAP, 0)
4264
      oprot.writeFieldBegin('success', TType.MAP, 0)
4070
      oprot.writeMapBegin(TType.STRING, TType.DOUBLE, len(self.success))
4265
      oprot.writeMapBegin(TType.STRING, TType.DOUBLE, len(self.success))
4071
      for kiter81,viter82 in self.success.items():
4266
      for kiter88,viter89 in self.success.items():
4072
        oprot.writeString(kiter81)
4267
        oprot.writeString(kiter88)
4073
        oprot.writeDouble(viter82)
4268
        oprot.writeDouble(viter89)
4074
      oprot.writeMapEnd()
4269
      oprot.writeMapEnd()
4075
      oprot.writeFieldEnd()
4270
      oprot.writeFieldEnd()
4076
    oprot.writeFieldStop()
4271
    oprot.writeFieldStop()
4077
    oprot.writeStructEnd()
4272
    oprot.writeStructEnd()
4078
 
4273