Subversion Repositories SmartDukaan

Rev

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

Rev 9776 Rev 9779
Line 1008... Line 1008...
1008
    Parameters:
1008
    Parameters:
1009
     - marketPlaceItem
1009
     - marketPlaceItem
1010
    """
1010
    """
1011
    pass
1011
    pass
1012
 
1012
 
-
 
1013
  def getCostingForMarketplace(self, source, item_id):
-
 
1014
    """
-
 
1015
    Parameters:
-
 
1016
     - source
-
 
1017
     - item_id
-
 
1018
    """
-
 
1019
    pass
-
 
1020
 
1013
  def getMarketPlaceItemsForPriceUpdate(self, source):
1021
  def getMarketPlaceItemsForPriceUpdate(self, source):
1014
    """
1022
    """
1015
    Parameters:
1023
    Parameters:
1016
     - source
1024
     - source
1017
    """
1025
    """
Line 5301... Line 5309...
5301
    self._iprot.readMessageEnd()
5309
    self._iprot.readMessageEnd()
5302
    if result.success is not None:
5310
    if result.success is not None:
5303
      return result.success
5311
      return result.success
5304
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5305
 
5313
 
-
 
5314
  def getCostingForMarketplace(self, source, item_id):
-
 
5315
    """
-
 
5316
    Parameters:
-
 
5317
     - source
-
 
5318
     - item_id
-
 
5319
    """
-
 
5320
    self.send_getCostingForMarketplace(source, item_id)
-
 
5321
    return self.recv_getCostingForMarketplace()
-
 
5322
 
-
 
5323
  def send_getCostingForMarketplace(self, source, item_id):
-
 
5324
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
-
 
5325
    args = getCostingForMarketplace_args()
-
 
5326
    args.source = source
-
 
5327
    args.item_id = item_id
-
 
5328
    args.write(self._oprot)
-
 
5329
    self._oprot.writeMessageEnd()
-
 
5330
    self._oprot.trans.flush()
-
 
5331
 
-
 
5332
  def recv_getCostingForMarketplace(self, ):
-
 
5333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5334
    if mtype == TMessageType.EXCEPTION:
-
 
5335
      x = TApplicationException()
-
 
5336
      x.read(self._iprot)
-
 
5337
      self._iprot.readMessageEnd()
-
 
5338
      raise x
-
 
5339
    result = getCostingForMarketplace_result()
-
 
5340
    result.read(self._iprot)
-
 
5341
    self._iprot.readMessageEnd()
-
 
5342
    if result.success is not None:
-
 
5343
      return result.success
-
 
5344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
-
 
5345
 
5306
  def getMarketPlaceItemsForPriceUpdate(self, source):
5346
  def getMarketPlaceItemsForPriceUpdate(self, source):
5307
    """
5347
    """
5308
    Parameters:
5348
    Parameters:
5309
     - source
5349
     - source
5310
    """
5350
    """
Line 5504... Line 5544...
5504
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
5544
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
5505
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
5545
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
5506
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
5546
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
5507
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5547
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5508
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
5548
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
-
 
5549
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5509
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5550
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5510
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5551
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5511
 
5552
 
5512
  def process(self, iprot, oprot):
5553
  def process(self, iprot, oprot):
5513
    (name, type, seqid) = iprot.readMessageBegin()
5554
    (name, type, seqid) = iprot.readMessageBegin()
Line 7180... Line 7221...
7180
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
7221
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
7181
    result.write(oprot)
7222
    result.write(oprot)
7182
    oprot.writeMessageEnd()
7223
    oprot.writeMessageEnd()
7183
    oprot.trans.flush()
7224
    oprot.trans.flush()
7184
 
7225
 
-
 
7226
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
-
 
7227
    args = getCostingForMarketplace_args()
-
 
7228
    args.read(iprot)
-
 
7229
    iprot.readMessageEnd()
-
 
7230
    result = getCostingForMarketplace_result()
-
 
7231
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
-
 
7232
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
-
 
7233
    result.write(oprot)
-
 
7234
    oprot.writeMessageEnd()
-
 
7235
    oprot.trans.flush()
-
 
7236
 
7185
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
7237
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
7186
    args = getMarketPlaceItemsForPriceUpdate_args()
7238
    args = getMarketPlaceItemsForPriceUpdate_args()
7187
    args.read(iprot)
7239
    args.read(iprot)
7188
    iprot.readMessageEnd()
7240
    iprot.readMessageEnd()
7189
    result = getMarketPlaceItemsForPriceUpdate_result()
7241
    result = getMarketPlaceItemsForPriceUpdate_result()
Line 24892... Line 24944...
24892
      oprot.writeFieldEnd()
24944
      oprot.writeFieldEnd()
24893
    oprot.writeFieldStop()
24945
    oprot.writeFieldStop()
24894
    oprot.writeStructEnd()
24946
    oprot.writeStructEnd()
24895
 
24947
 
24896
  def validate(self):
24948
  def validate(self):
-
 
24949
    return
-
 
24950
 
-
 
24951
 
-
 
24952
  def __repr__(self):
-
 
24953
    L = ['%s=%r' % (key, value)
-
 
24954
      for key, value in self.__dict__.iteritems()]
-
 
24955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
24956
 
-
 
24957
  def __eq__(self, other):
-
 
24958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
24959
 
-
 
24960
  def __ne__(self, other):
-
 
24961
    return not (self == other)
-
 
24962
 
-
 
24963
class getCostingForMarketplace_args:
-
 
24964
  """
-
 
24965
  Attributes:
-
 
24966
   - source
-
 
24967
   - item_id
-
 
24968
  """
-
 
24969
 
-
 
24970
  thrift_spec = (
-
 
24971
    None, # 0
-
 
24972
    (1, TType.I64, 'source', None, None, ), # 1
-
 
24973
    (2, TType.I64, 'item_id', None, None, ), # 2
-
 
24974
  )
-
 
24975
 
-
 
24976
  def __init__(self, source=None, item_id=None,):
-
 
24977
    self.source = source
-
 
24978
    self.item_id = item_id
-
 
24979
 
-
 
24980
  def read(self, iprot):
-
 
24981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
24982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
24983
      return
-
 
24984
    iprot.readStructBegin()
-
 
24985
    while True:
-
 
24986
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
24987
      if ftype == TType.STOP:
-
 
24988
        break
-
 
24989
      if fid == 1:
-
 
24990
        if ftype == TType.I64:
-
 
24991
          self.source = iprot.readI64();
-
 
24992
        else:
-
 
24993
          iprot.skip(ftype)
-
 
24994
      elif fid == 2:
-
 
24995
        if ftype == TType.I64:
-
 
24996
          self.item_id = iprot.readI64();
-
 
24997
        else:
-
 
24998
          iprot.skip(ftype)
-
 
24999
      else:
-
 
25000
        iprot.skip(ftype)
-
 
25001
      iprot.readFieldEnd()
-
 
25002
    iprot.readStructEnd()
-
 
25003
 
-
 
25004
  def write(self, oprot):
-
 
25005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25007
      return
-
 
25008
    oprot.writeStructBegin('getCostingForMarketplace_args')
-
 
25009
    if self.source is not None:
-
 
25010
      oprot.writeFieldBegin('source', TType.I64, 1)
-
 
25011
      oprot.writeI64(self.source)
-
 
25012
      oprot.writeFieldEnd()
-
 
25013
    if self.item_id is not None:
-
 
25014
      oprot.writeFieldBegin('item_id', TType.I64, 2)
-
 
25015
      oprot.writeI64(self.item_id)
-
 
25016
      oprot.writeFieldEnd()
-
 
25017
    oprot.writeFieldStop()
-
 
25018
    oprot.writeStructEnd()
-
 
25019
 
-
 
25020
  def validate(self):
-
 
25021
    return
-
 
25022
 
-
 
25023
 
-
 
25024
  def __repr__(self):
-
 
25025
    L = ['%s=%r' % (key, value)
-
 
25026
      for key, value in self.__dict__.iteritems()]
-
 
25027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25028
 
-
 
25029
  def __eq__(self, other):
-
 
25030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25031
 
-
 
25032
  def __ne__(self, other):
-
 
25033
    return not (self == other)
-
 
25034
 
-
 
25035
class getCostingForMarketplace_result:
-
 
25036
  """
-
 
25037
  Attributes:
-
 
25038
   - success
-
 
25039
  """
-
 
25040
 
-
 
25041
  thrift_spec = (
-
 
25042
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
-
 
25043
  )
-
 
25044
 
-
 
25045
  def __init__(self, success=None,):
-
 
25046
    self.success = success
-
 
25047
 
-
 
25048
  def read(self, iprot):
-
 
25049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25051
      return
-
 
25052
    iprot.readStructBegin()
-
 
25053
    while True:
-
 
25054
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25055
      if ftype == TType.STOP:
-
 
25056
        break
-
 
25057
      if fid == 0:
-
 
25058
        if ftype == TType.STRUCT:
-
 
25059
          self.success = MarketplacePercentage()
-
 
25060
          self.success.read(iprot)
-
 
25061
        else:
-
 
25062
          iprot.skip(ftype)
-
 
25063
      else:
-
 
25064
        iprot.skip(ftype)
-
 
25065
      iprot.readFieldEnd()
-
 
25066
    iprot.readStructEnd()
-
 
25067
 
-
 
25068
  def write(self, oprot):
-
 
25069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25071
      return
-
 
25072
    oprot.writeStructBegin('getCostingForMarketplace_result')
-
 
25073
    if self.success is not None:
-
 
25074
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
25075
      self.success.write(oprot)
-
 
25076
      oprot.writeFieldEnd()
-
 
25077
    oprot.writeFieldStop()
-
 
25078
    oprot.writeStructEnd()
-
 
25079
 
-
 
25080
  def validate(self):
24897
    return
25081
    return
24898
 
25082
 
24899
 
25083
 
24900
  def __repr__(self):
25084
  def __repr__(self):
24901
    L = ['%s=%r' % (key, value)
25085
    L = ['%s=%r' % (key, value)