Subversion Repositories SmartDukaan

Rev

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

Rev 7256 Rev 7265
Line 671... Line 671...
671
    Parameters:
671
    Parameters:
672
     - itemId
672
     - itemId
673
    """
673
    """
674
    pass
674
    pass
675
 
675
 
-
 
676
  def updateStorePricing(self, sp):
-
 
677
    """
-
 
678
    Parameters:
-
 
679
     - sp
-
 
680
    """
-
 
681
    pass
-
 
682
 
676
 
683
 
677
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
684
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
678
  def __init__(self, iprot, oprot=None):
685
  def __init__(self, iprot, oprot=None):
679
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
686
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
680
 
687
 
Line 3383... Line 3390...
3383
    self._iprot.readMessageEnd()
3390
    self._iprot.readMessageEnd()
3384
    if result.success is not None:
3391
    if result.success is not None:
3385
      return result.success
3392
      return result.success
3386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
3393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
3387
 
3394
 
-
 
3395
  def updateStorePricing(self, sp):
-
 
3396
    """
-
 
3397
    Parameters:
-
 
3398
     - sp
-
 
3399
    """
-
 
3400
    self.send_updateStorePricing(sp)
-
 
3401
    self.recv_updateStorePricing()
-
 
3402
 
-
 
3403
  def send_updateStorePricing(self, sp):
-
 
3404
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
-
 
3405
    args = updateStorePricing_args()
-
 
3406
    args.sp = sp
-
 
3407
    args.write(self._oprot)
-
 
3408
    self._oprot.writeMessageEnd()
-
 
3409
    self._oprot.trans.flush()
-
 
3410
 
-
 
3411
  def recv_updateStorePricing(self, ):
-
 
3412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3413
    if mtype == TMessageType.EXCEPTION:
-
 
3414
      x = TApplicationException()
-
 
3415
      x.read(self._iprot)
-
 
3416
      self._iprot.readMessageEnd()
-
 
3417
      raise x
-
 
3418
    result = updateStorePricing_result()
-
 
3419
    result.read(self._iprot)
-
 
3420
    self._iprot.readMessageEnd()
-
 
3421
    return
-
 
3422
 
3388
 
3423
 
3389
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3424
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3390
  def __init__(self, handler):
3425
  def __init__(self, handler):
3391
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3426
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3392
    self._processMap["addItem"] = Processor.process_addItem
3427
    self._processMap["addItem"] = Processor.process_addItem
Line 3472... Line 3507...
3472
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
3507
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
3473
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
3508
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
3474
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3509
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3475
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
3510
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
3476
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
3511
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
-
 
3512
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
3477
 
3513
 
3478
  def process(self, iprot, oprot):
3514
  def process(self, iprot, oprot):
3479
    (name, type, seqid) = iprot.readMessageBegin()
3515
    (name, type, seqid) = iprot.readMessageBegin()
3480
    if name not in self._processMap:
3516
    if name not in self._processMap:
3481
      iprot.skip(TType.STRUCT)
3517
      iprot.skip(TType.STRUCT)
Line 4531... Line 4567...
4531
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
4567
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
4532
    result.write(oprot)
4568
    result.write(oprot)
4533
    oprot.writeMessageEnd()
4569
    oprot.writeMessageEnd()
4534
    oprot.trans.flush()
4570
    oprot.trans.flush()
4535
 
4571
 
-
 
4572
  def process_updateStorePricing(self, seqid, iprot, oprot):
-
 
4573
    args = updateStorePricing_args()
-
 
4574
    args.read(iprot)
-
 
4575
    iprot.readMessageEnd()
-
 
4576
    result = updateStorePricing_result()
-
 
4577
    self._handler.updateStorePricing(args.sp)
-
 
4578
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
-
 
4579
    result.write(oprot)
-
 
4580
    oprot.writeMessageEnd()
-
 
4581
    oprot.trans.flush()
-
 
4582
 
4536
 
4583
 
4537
# HELPER FUNCTIONS AND STRUCTURES
4584
# HELPER FUNCTIONS AND STRUCTURES
4538
 
4585
 
4539
class addItem_args:
4586
class addItem_args:
4540
  """
4587
  """
Line 15708... Line 15755...
15708
    oprot.writeFieldStop()
15755
    oprot.writeFieldStop()
15709
    oprot.writeStructEnd()
15756
    oprot.writeStructEnd()
15710
 
15757
 
15711
  def validate(self):
15758
  def validate(self):
15712
    return
15759
    return
-
 
15760
 
-
 
15761
 
-
 
15762
  def __repr__(self):
-
 
15763
    L = ['%s=%r' % (key, value)
-
 
15764
      for key, value in self.__dict__.iteritems()]
-
 
15765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15766
 
-
 
15767
  def __eq__(self, other):
-
 
15768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15769
 
-
 
15770
  def __ne__(self, other):
-
 
15771
    return not (self == other)
-
 
15772
 
-
 
15773
class updateStorePricing_args:
-
 
15774
  """
-
 
15775
  Attributes:
-
 
15776
   - sp
-
 
15777
  """
-
 
15778
 
-
 
15779
  thrift_spec = (
-
 
15780
    None, # 0
-
 
15781
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
-
 
15782
  )
-
 
15783
 
-
 
15784
  def __init__(self, sp=None,):
-
 
15785
    self.sp = sp
-
 
15786
 
-
 
15787
  def read(self, iprot):
-
 
15788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15790
      return
-
 
15791
    iprot.readStructBegin()
-
 
15792
    while True:
-
 
15793
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15794
      if ftype == TType.STOP:
-
 
15795
        break
-
 
15796
      if fid == 1:
-
 
15797
        if ftype == TType.STRUCT:
-
 
15798
          self.sp = StorePricing()
-
 
15799
          self.sp.read(iprot)
-
 
15800
        else:
-
 
15801
          iprot.skip(ftype)
-
 
15802
      else:
-
 
15803
        iprot.skip(ftype)
-
 
15804
      iprot.readFieldEnd()
-
 
15805
    iprot.readStructEnd()
-
 
15806
 
-
 
15807
  def write(self, oprot):
-
 
15808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15810
      return
-
 
15811
    oprot.writeStructBegin('updateStorePricing_args')
-
 
15812
    if self.sp is not None:
-
 
15813
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
-
 
15814
      self.sp.write(oprot)
-
 
15815
      oprot.writeFieldEnd()
-
 
15816
    oprot.writeFieldStop()
-
 
15817
    oprot.writeStructEnd()
-
 
15818
 
-
 
15819
  def validate(self):
-
 
15820
    return
-
 
15821
 
-
 
15822
 
-
 
15823
  def __repr__(self):
-
 
15824
    L = ['%s=%r' % (key, value)
-
 
15825
      for key, value in self.__dict__.iteritems()]
-
 
15826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
15827
 
-
 
15828
  def __eq__(self, other):
-
 
15829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
15830
 
-
 
15831
  def __ne__(self, other):
-
 
15832
    return not (self == other)
-
 
15833
 
-
 
15834
class updateStorePricing_result:
-
 
15835
 
-
 
15836
  thrift_spec = (
-
 
15837
  )
-
 
15838
 
-
 
15839
  def read(self, iprot):
-
 
15840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
15841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
15842
      return
-
 
15843
    iprot.readStructBegin()
-
 
15844
    while True:
-
 
15845
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
15846
      if ftype == TType.STOP:
-
 
15847
        break
-
 
15848
      else:
-
 
15849
        iprot.skip(ftype)
-
 
15850
      iprot.readFieldEnd()
-
 
15851
    iprot.readStructEnd()
-
 
15852
 
-
 
15853
  def write(self, oprot):
-
 
15854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
15855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
15856
      return
-
 
15857
    oprot.writeStructBegin('updateStorePricing_result')
-
 
15858
    oprot.writeFieldStop()
-
 
15859
    oprot.writeStructEnd()
-
 
15860
 
-
 
15861
  def validate(self):
-
 
15862
    return
15713
 
15863
 
15714
 
15864
 
15715
  def __repr__(self):
15865
  def __repr__(self):
15716
    L = ['%s=%r' % (key, value)
15866
    L = ['%s=%r' % (key, value)
15717
      for key, value in self.__dict__.iteritems()]
15867
      for key, value in self.__dict__.iteritems()]