Subversion Repositories SmartDukaan

Rev

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

Rev 7265 Rev 7272
Line 664... Line 664...
664
    Parameters:
664
    Parameters:
665
     - freebieItem
665
     - freebieItem
666
    """
666
    """
667
    pass
667
    pass
668
 
668
 
-
 
669
  def addOrUpdateBrandInfo(self, brandInfo):
-
 
670
    """
-
 
671
    Parameters:
-
 
672
     - brandInfo
-
 
673
    """
-
 
674
    pass
-
 
675
 
-
 
676
  def getBrandInfo(self, ):
-
 
677
    pass
-
 
678
 
669
  def getStorePricing(self, itemId):
679
  def getStorePricing(self, itemId):
670
    """
680
    """
671
    Parameters:
681
    Parameters:
672
     - itemId
682
     - itemId
673
    """
683
    """
Line 3360... Line 3370...
3360
    result = addOrUpdateFreebieForItem_result()
3370
    result = addOrUpdateFreebieForItem_result()
3361
    result.read(self._iprot)
3371
    result.read(self._iprot)
3362
    self._iprot.readMessageEnd()
3372
    self._iprot.readMessageEnd()
3363
    return
3373
    return
3364
 
3374
 
-
 
3375
  def addOrUpdateBrandInfo(self, brandInfo):
-
 
3376
    """
-
 
3377
    Parameters:
-
 
3378
     - brandInfo
-
 
3379
    """
-
 
3380
    self.send_addOrUpdateBrandInfo(brandInfo)
-
 
3381
    self.recv_addOrUpdateBrandInfo()
-
 
3382
 
-
 
3383
  def send_addOrUpdateBrandInfo(self, brandInfo):
-
 
3384
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
-
 
3385
    args = addOrUpdateBrandInfo_args()
-
 
3386
    args.brandInfo = brandInfo
-
 
3387
    args.write(self._oprot)
-
 
3388
    self._oprot.writeMessageEnd()
-
 
3389
    self._oprot.trans.flush()
-
 
3390
 
-
 
3391
  def recv_addOrUpdateBrandInfo(self, ):
-
 
3392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3393
    if mtype == TMessageType.EXCEPTION:
-
 
3394
      x = TApplicationException()
-
 
3395
      x.read(self._iprot)
-
 
3396
      self._iprot.readMessageEnd()
-
 
3397
      raise x
-
 
3398
    result = addOrUpdateBrandInfo_result()
-
 
3399
    result.read(self._iprot)
-
 
3400
    self._iprot.readMessageEnd()
-
 
3401
    return
-
 
3402
 
-
 
3403
  def getBrandInfo(self, ):
-
 
3404
    self.send_getBrandInfo()
-
 
3405
    return self.recv_getBrandInfo()
-
 
3406
 
-
 
3407
  def send_getBrandInfo(self, ):
-
 
3408
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
-
 
3409
    args = getBrandInfo_args()
-
 
3410
    args.write(self._oprot)
-
 
3411
    self._oprot.writeMessageEnd()
-
 
3412
    self._oprot.trans.flush()
-
 
3413
 
-
 
3414
  def recv_getBrandInfo(self, ):
-
 
3415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3416
    if mtype == TMessageType.EXCEPTION:
-
 
3417
      x = TApplicationException()
-
 
3418
      x.read(self._iprot)
-
 
3419
      self._iprot.readMessageEnd()
-
 
3420
      raise x
-
 
3421
    result = getBrandInfo_result()
-
 
3422
    result.read(self._iprot)
-
 
3423
    self._iprot.readMessageEnd()
-
 
3424
    if result.success is not None:
-
 
3425
      return result.success
-
 
3426
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
-
 
3427
 
3365
  def getStorePricing(self, itemId):
3428
  def getStorePricing(self, itemId):
3366
    """
3429
    """
3367
    Parameters:
3430
    Parameters:
3368
     - itemId
3431
     - itemId
3369
    """
3432
    """
Line 3506... Line 3569...
3506
    self._processMap["getInsurer"] = Processor.process_getInsurer
3569
    self._processMap["getInsurer"] = Processor.process_getInsurer
3507
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
3570
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
3508
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
3571
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
3509
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3572
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3510
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
3573
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
-
 
3574
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
-
 
3575
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
3511
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
3576
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
3512
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
3577
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
3513
 
3578
 
3514
  def process(self, iprot, oprot):
3579
  def process(self, iprot, oprot):
3515
    (name, type, seqid) = iprot.readMessageBegin()
3580
    (name, type, seqid) = iprot.readMessageBegin()
Line 4556... Line 4621...
4556
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
4621
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
4557
    result.write(oprot)
4622
    result.write(oprot)
4558
    oprot.writeMessageEnd()
4623
    oprot.writeMessageEnd()
4559
    oprot.trans.flush()
4624
    oprot.trans.flush()
4560
 
4625
 
-
 
4626
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
-
 
4627
    args = addOrUpdateBrandInfo_args()
-
 
4628
    args.read(iprot)
-
 
4629
    iprot.readMessageEnd()
-
 
4630
    result = addOrUpdateBrandInfo_result()
-
 
4631
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
-
 
4632
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
-
 
4633
    result.write(oprot)
-
 
4634
    oprot.writeMessageEnd()
-
 
4635
    oprot.trans.flush()
-
 
4636
 
-
 
4637
  def process_getBrandInfo(self, seqid, iprot, oprot):
-
 
4638
    args = getBrandInfo_args()
-
 
4639
    args.read(iprot)
-
 
4640
    iprot.readMessageEnd()
-
 
4641
    result = getBrandInfo_result()
-
 
4642
    result.success = self._handler.getBrandInfo()
-
 
4643
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
-
 
4644
    result.write(oprot)
-
 
4645
    oprot.writeMessageEnd()
-
 
4646
    oprot.trans.flush()
-
 
4647
 
4561
  def process_getStorePricing(self, seqid, iprot, oprot):
4648
  def process_getStorePricing(self, seqid, iprot, oprot):
4562
    args = getStorePricing_args()
4649
    args = getStorePricing_args()
4563
    args.read(iprot)
4650
    args.read(iprot)
4564
    iprot.readMessageEnd()
4651
    iprot.readMessageEnd()
4565
    result = getStorePricing_result()
4652
    result = getStorePricing_result()
Line 15635... Line 15722...
15635
    oprot.writeFieldStop()
15722
    oprot.writeFieldStop()
15636
    oprot.writeStructEnd()
15723
    oprot.writeStructEnd()
15637
 
15724
 
15638
  def validate(self):
15725
  def validate(self):
15639
    return
15726
    return
-
 
15727
 
-
 
15728
 
-
 
15729
  def __repr__(self):
-
 
15730
    L = ['%s=%r' % (key, value)
-
 
15731
      for key, value in self.__dict__.iteritems()]
-
 
15732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15733
 
-
 
15734
  def __eq__(self, other):
-
 
15735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15736
 
-
 
15737
  def __ne__(self, other):
-
 
15738
    return not (self == other)
-
 
15739
 
-
 
15740
class addOrUpdateBrandInfo_args:
-
 
15741
  """
-
 
15742
  Attributes:
-
 
15743
   - brandInfo
-
 
15744
  """
-
 
15745
 
-
 
15746
  thrift_spec = (
-
 
15747
    None, # 0
-
 
15748
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
-
 
15749
  )
-
 
15750
 
-
 
15751
  def __init__(self, brandInfo=None,):
-
 
15752
    self.brandInfo = brandInfo
-
 
15753
 
-
 
15754
  def read(self, iprot):
-
 
15755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15757
      return
-
 
15758
    iprot.readStructBegin()
-
 
15759
    while True:
-
 
15760
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15761
      if ftype == TType.STOP:
-
 
15762
        break
-
 
15763
      if fid == 1:
-
 
15764
        if ftype == TType.STRUCT:
-
 
15765
          self.brandInfo = BrandInfo()
-
 
15766
          self.brandInfo.read(iprot)
-
 
15767
        else:
-
 
15768
          iprot.skip(ftype)
-
 
15769
      else:
-
 
15770
        iprot.skip(ftype)
-
 
15771
      iprot.readFieldEnd()
-
 
15772
    iprot.readStructEnd()
-
 
15773
 
-
 
15774
  def write(self, oprot):
-
 
15775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15777
      return
-
 
15778
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
-
 
15779
    if self.brandInfo is not None:
-
 
15780
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
-
 
15781
      self.brandInfo.write(oprot)
-
 
15782
      oprot.writeFieldEnd()
-
 
15783
    oprot.writeFieldStop()
-
 
15784
    oprot.writeStructEnd()
-
 
15785
 
-
 
15786
  def validate(self):
-
 
15787
    return
-
 
15788
 
-
 
15789
 
-
 
15790
  def __repr__(self):
-
 
15791
    L = ['%s=%r' % (key, value)
-
 
15792
      for key, value in self.__dict__.iteritems()]
-
 
15793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15794
 
-
 
15795
  def __eq__(self, other):
-
 
15796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15797
 
-
 
15798
  def __ne__(self, other):
-
 
15799
    return not (self == other)
-
 
15800
 
-
 
15801
class addOrUpdateBrandInfo_result:
-
 
15802
 
-
 
15803
  thrift_spec = (
-
 
15804
  )
-
 
15805
 
-
 
15806
  def read(self, iprot):
-
 
15807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15809
      return
-
 
15810
    iprot.readStructBegin()
-
 
15811
    while True:
-
 
15812
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15813
      if ftype == TType.STOP:
-
 
15814
        break
-
 
15815
      else:
-
 
15816
        iprot.skip(ftype)
-
 
15817
      iprot.readFieldEnd()
-
 
15818
    iprot.readStructEnd()
-
 
15819
 
-
 
15820
  def write(self, oprot):
-
 
15821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15823
      return
-
 
15824
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
-
 
15825
    oprot.writeFieldStop()
-
 
15826
    oprot.writeStructEnd()
-
 
15827
 
-
 
15828
  def validate(self):
-
 
15829
    return
-
 
15830
 
-
 
15831
 
-
 
15832
  def __repr__(self):
-
 
15833
    L = ['%s=%r' % (key, value)
-
 
15834
      for key, value in self.__dict__.iteritems()]
-
 
15835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15836
 
-
 
15837
  def __eq__(self, other):
-
 
15838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15839
 
-
 
15840
  def __ne__(self, other):
-
 
15841
    return not (self == other)
-
 
15842
 
-
 
15843
class getBrandInfo_args:
-
 
15844
 
-
 
15845
  thrift_spec = (
-
 
15846
  )
-
 
15847
 
-
 
15848
  def read(self, iprot):
-
 
15849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15851
      return
-
 
15852
    iprot.readStructBegin()
-
 
15853
    while True:
-
 
15854
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15855
      if ftype == TType.STOP:
-
 
15856
        break
-
 
15857
      else:
-
 
15858
        iprot.skip(ftype)
-
 
15859
      iprot.readFieldEnd()
-
 
15860
    iprot.readStructEnd()
-
 
15861
 
-
 
15862
  def write(self, oprot):
-
 
15863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15865
      return
-
 
15866
    oprot.writeStructBegin('getBrandInfo_args')
-
 
15867
    oprot.writeFieldStop()
-
 
15868
    oprot.writeStructEnd()
-
 
15869
 
-
 
15870
  def validate(self):
-
 
15871
    return
-
 
15872
 
-
 
15873
 
-
 
15874
  def __repr__(self):
-
 
15875
    L = ['%s=%r' % (key, value)
-
 
15876
      for key, value in self.__dict__.iteritems()]
-
 
15877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15878
 
-
 
15879
  def __eq__(self, other):
-
 
15880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15881
 
-
 
15882
  def __ne__(self, other):
-
 
15883
    return not (self == other)
-
 
15884
 
-
 
15885
class getBrandInfo_result:
-
 
15886
  """
-
 
15887
  Attributes:
-
 
15888
   - success
-
 
15889
  """
-
 
15890
 
-
 
15891
  thrift_spec = (
-
 
15892
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
-
 
15893
  )
-
 
15894
 
-
 
15895
  def __init__(self, success=None,):
-
 
15896
    self.success = success
-
 
15897
 
-
 
15898
  def read(self, iprot):
-
 
15899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15901
      return
-
 
15902
    iprot.readStructBegin()
-
 
15903
    while True:
-
 
15904
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15905
      if ftype == TType.STOP:
-
 
15906
        break
-
 
15907
      if fid == 0:
-
 
15908
        if ftype == TType.MAP:
-
 
15909
          self.success = {}
-
 
15910
          (_ktype299, _vtype300, _size298 ) = iprot.readMapBegin() 
-
 
15911
          for _i302 in xrange(_size298):
-
 
15912
            _key303 = iprot.readString();
-
 
15913
            _val304 = BrandInfo()
-
 
15914
            _val304.read(iprot)
-
 
15915
            self.success[_key303] = _val304
-
 
15916
          iprot.readMapEnd()
-
 
15917
        else:
-
 
15918
          iprot.skip(ftype)
-
 
15919
      else:
-
 
15920
        iprot.skip(ftype)
-
 
15921
      iprot.readFieldEnd()
-
 
15922
    iprot.readStructEnd()
-
 
15923
 
-
 
15924
  def write(self, oprot):
-
 
15925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15927
      return
-
 
15928
    oprot.writeStructBegin('getBrandInfo_result')
-
 
15929
    if self.success is not None:
-
 
15930
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
15931
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
-
 
15932
      for kiter305,viter306 in self.success.items():
-
 
15933
        oprot.writeString(kiter305)
-
 
15934
        viter306.write(oprot)
-
 
15935
      oprot.writeMapEnd()
-
 
15936
      oprot.writeFieldEnd()
-
 
15937
    oprot.writeFieldStop()
-
 
15938
    oprot.writeStructEnd()
-
 
15939
 
-
 
15940
  def validate(self):
-
 
15941
    return
15640
 
15942
 
15641
 
15943
 
15642
  def __repr__(self):
15944
  def __repr__(self):
15643
    L = ['%s=%r' % (key, value)
15945
    L = ['%s=%r' % (key, value)
15644
      for key, value in self.__dict__.iteritems()]
15946
      for key, value in self.__dict__.iteritems()]