Subversion Repositories SmartDukaan

Rev

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

Rev 9861 Rev 9895
Line 1039... Line 1039...
1039
    Parameters:
1039
    Parameters:
1040
     - itemHoldMap
1040
     - itemHoldMap
1041
    """
1041
    """
1042
    pass
1042
    pass
1043
 
1043
 
-
 
1044
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
-
 
1045
    """
-
 
1046
    Parameters:
-
 
1047
     - item_id
-
 
1048
     - vendor_id
-
 
1049
     - nlc
-
 
1050
    """
-
 
1051
    pass
-
 
1052
 
1044
 
1053
 
1045
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1054
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1046
  def __init__(self, iprot, oprot=None):
1055
  def __init__(self, iprot, oprot=None):
1047
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1056
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1048
 
1057
 
Line 5439... Line 5448...
5439
    result = updateItemHoldInventory_result()
5448
    result = updateItemHoldInventory_result()
5440
    result.read(self._iprot)
5449
    result.read(self._iprot)
5441
    self._iprot.readMessageEnd()
5450
    self._iprot.readMessageEnd()
5442
    return
5451
    return
5443
 
5452
 
-
 
5453
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
-
 
5454
    """
-
 
5455
    Parameters:
-
 
5456
     - item_id
-
 
5457
     - vendor_id
-
 
5458
     - nlc
-
 
5459
    """
-
 
5460
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
-
 
5461
    self.recv_updateNlcAtMarketplaces()
-
 
5462
 
-
 
5463
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
-
 
5464
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
-
 
5465
    args = updateNlcAtMarketplaces_args()
-
 
5466
    args.item_id = item_id
-
 
5467
    args.vendor_id = vendor_id
-
 
5468
    args.nlc = nlc
-
 
5469
    args.write(self._oprot)
-
 
5470
    self._oprot.writeMessageEnd()
-
 
5471
    self._oprot.trans.flush()
-
 
5472
 
-
 
5473
  def recv_updateNlcAtMarketplaces(self, ):
-
 
5474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5475
    if mtype == TMessageType.EXCEPTION:
-
 
5476
      x = TApplicationException()
-
 
5477
      x.read(self._iprot)
-
 
5478
      self._iprot.readMessageEnd()
-
 
5479
      raise x
-
 
5480
    result = updateNlcAtMarketplaces_result()
-
 
5481
    result.read(self._iprot)
-
 
5482
    self._iprot.readMessageEnd()
-
 
5483
    return
-
 
5484
 
5444
 
5485
 
5445
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5486
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5446
  def __init__(self, handler):
5487
  def __init__(self, handler):
5447
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5488
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5448
    self._processMap["addItem"] = Processor.process_addItem
5489
    self._processMap["addItem"] = Processor.process_addItem
Line 5586... Line 5627...
5586
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
5627
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
5587
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5628
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5588
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5629
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5589
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5630
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5590
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
5631
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
-
 
5632
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
5591
 
5633
 
5592
  def process(self, iprot, oprot):
5634
  def process(self, iprot, oprot):
5593
    (name, type, seqid) = iprot.readMessageBegin()
5635
    (name, type, seqid) = iprot.readMessageBegin()
5594
    if name not in self._processMap:
5636
    if name not in self._processMap:
5595
      iprot.skip(TType.STRUCT)
5637
      iprot.skip(TType.STRUCT)
Line 7304... Line 7346...
7304
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
7346
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
7305
    result.write(oprot)
7347
    result.write(oprot)
7306
    oprot.writeMessageEnd()
7348
    oprot.writeMessageEnd()
7307
    oprot.trans.flush()
7349
    oprot.trans.flush()
7308
 
7350
 
-
 
7351
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
-
 
7352
    args = updateNlcAtMarketplaces_args()
-
 
7353
    args.read(iprot)
-
 
7354
    iprot.readMessageEnd()
-
 
7355
    result = updateNlcAtMarketplaces_result()
-
 
7356
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
-
 
7357
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
-
 
7358
    result.write(oprot)
-
 
7359
    oprot.writeMessageEnd()
-
 
7360
    oprot.trans.flush()
-
 
7361
 
7309
 
7362
 
7310
# HELPER FUNCTIONS AND STRUCTURES
7363
# HELPER FUNCTIONS AND STRUCTURES
7311
 
7364
 
7312
class addItem_args:
7365
class addItem_args:
7313
  """
7366
  """
Line 25501... Line 25554...
25501
    oprot.writeFieldStop()
25554
    oprot.writeFieldStop()
25502
    oprot.writeStructEnd()
25555
    oprot.writeStructEnd()
25503
 
25556
 
25504
  def validate(self):
25557
  def validate(self):
25505
    return
25558
    return
-
 
25559
 
-
 
25560
 
-
 
25561
  def __repr__(self):
-
 
25562
    L = ['%s=%r' % (key, value)
-
 
25563
      for key, value in self.__dict__.iteritems()]
-
 
25564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25565
 
-
 
25566
  def __eq__(self, other):
-
 
25567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25568
 
-
 
25569
  def __ne__(self, other):
-
 
25570
    return not (self == other)
-
 
25571
 
-
 
25572
class updateNlcAtMarketplaces_args:
-
 
25573
  """
-
 
25574
  Attributes:
-
 
25575
   - item_id
-
 
25576
   - vendor_id
-
 
25577
   - nlc
-
 
25578
  """
-
 
25579
 
-
 
25580
  thrift_spec = None
-
 
25581
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
-
 
25582
    self.item_id = item_id
-
 
25583
    self.vendor_id = vendor_id
-
 
25584
    self.nlc = nlc
-
 
25585
 
-
 
25586
  def read(self, iprot):
-
 
25587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25589
      return
-
 
25590
    iprot.readStructBegin()
-
 
25591
    while True:
-
 
25592
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25593
      if ftype == TType.STOP:
-
 
25594
        break
-
 
25595
      if fid == 1:
-
 
25596
        if ftype == TType.I64:
-
 
25597
          self.item_id = iprot.readI64();
-
 
25598
        else:
-
 
25599
          iprot.skip(ftype)
-
 
25600
      elif fid == 2:
-
 
25601
        if ftype == TType.I64:
-
 
25602
          self.vendor_id = iprot.readI64();
-
 
25603
        else:
-
 
25604
          iprot.skip(ftype)
-
 
25605
      elif fid == -1:
-
 
25606
        if ftype == TType.DOUBLE:
-
 
25607
          self.nlc = iprot.readDouble();
-
 
25608
        else:
-
 
25609
          iprot.skip(ftype)
-
 
25610
      else:
-
 
25611
        iprot.skip(ftype)
-
 
25612
      iprot.readFieldEnd()
-
 
25613
    iprot.readStructEnd()
-
 
25614
 
-
 
25615
  def write(self, oprot):
-
 
25616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25618
      return
-
 
25619
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
-
 
25620
    if self.nlc is not None:
-
 
25621
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
-
 
25622
      oprot.writeDouble(self.nlc)
-
 
25623
      oprot.writeFieldEnd()
-
 
25624
    if self.item_id is not None:
-
 
25625
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
25626
      oprot.writeI64(self.item_id)
-
 
25627
      oprot.writeFieldEnd()
-
 
25628
    if self.vendor_id is not None:
-
 
25629
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
-
 
25630
      oprot.writeI64(self.vendor_id)
-
 
25631
      oprot.writeFieldEnd()
-
 
25632
    oprot.writeFieldStop()
-
 
25633
    oprot.writeStructEnd()
-
 
25634
 
-
 
25635
  def validate(self):
-
 
25636
    return
-
 
25637
 
-
 
25638
 
-
 
25639
  def __repr__(self):
-
 
25640
    L = ['%s=%r' % (key, value)
-
 
25641
      for key, value in self.__dict__.iteritems()]
-
 
25642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25643
 
-
 
25644
  def __eq__(self, other):
-
 
25645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25646
 
-
 
25647
  def __ne__(self, other):
-
 
25648
    return not (self == other)
-
 
25649
 
-
 
25650
class updateNlcAtMarketplaces_result:
-
 
25651
 
-
 
25652
  thrift_spec = (
-
 
25653
  )
-
 
25654
 
-
 
25655
  def read(self, iprot):
-
 
25656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25658
      return
-
 
25659
    iprot.readStructBegin()
-
 
25660
    while True:
-
 
25661
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25662
      if ftype == TType.STOP:
-
 
25663
        break
-
 
25664
      else:
-
 
25665
        iprot.skip(ftype)
-
 
25666
      iprot.readFieldEnd()
-
 
25667
    iprot.readStructEnd()
-
 
25668
 
-
 
25669
  def write(self, oprot):
-
 
25670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25672
      return
-
 
25673
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
-
 
25674
    oprot.writeFieldStop()
-
 
25675
    oprot.writeStructEnd()
-
 
25676
 
-
 
25677
  def validate(self):
-
 
25678
    return
25506
 
25679
 
25507
 
25680
 
25508
  def __repr__(self):
25681
  def __repr__(self):
25509
    L = ['%s=%r' % (key, value)
25682
    L = ['%s=%r' % (key, value)
25510
      for key, value in self.__dict__.iteritems()]
25683
      for key, value in self.__dict__.iteritems()]