Subversion Repositories SmartDukaan

Rev

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

Rev 9456 Rev 9482
Line 571... Line 571...
571
    pass
571
    pass
572
 
572
 
573
  def getLastUpdatedTimeForSnapdealInventory(self, ):
573
  def getLastUpdatedTimeForSnapdealInventory(self, ):
574
    pass
574
    pass
575
 
575
 
-
 
576
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
-
 
577
    """
-
 
578
    Parameters:
-
 
579
     - allamazonfbainventorysnapshot
-
 
580
    """
-
 
581
    pass
-
 
582
 
576
 
583
 
577
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
584
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
578
  def __init__(self, iprot, oprot=None):
585
  def __init__(self, iprot, oprot=None):
579
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
586
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
580
 
587
 
Line 2701... Line 2708...
2701
    self._iprot.readMessageEnd()
2708
    self._iprot.readMessageEnd()
2702
    if result.success is not None:
2709
    if result.success is not None:
2703
      return result.success
2710
      return result.success
2704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastUpdatedTimeForSnapdealInventory failed: unknown result");
2711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastUpdatedTimeForSnapdealInventory failed: unknown result");
2705
 
2712
 
-
 
2713
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
-
 
2714
    """
-
 
2715
    Parameters:
-
 
2716
     - allamazonfbainventorysnapshot
-
 
2717
    """
-
 
2718
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
-
 
2719
    self.recv_addOrUpdateAllAmazonFbaInventory()
-
 
2720
 
-
 
2721
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
-
 
2722
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
-
 
2723
    args = addOrUpdateAllAmazonFbaInventory_args()
-
 
2724
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
-
 
2725
    args.write(self._oprot)
-
 
2726
    self._oprot.writeMessageEnd()
-
 
2727
    self._oprot.trans.flush()
-
 
2728
 
-
 
2729
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
-
 
2730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2731
    if mtype == TMessageType.EXCEPTION:
-
 
2732
      x = TApplicationException()
-
 
2733
      x.read(self._iprot)
-
 
2734
      self._iprot.readMessageEnd()
-
 
2735
      raise x
-
 
2736
    result = addOrUpdateAllAmazonFbaInventory_result()
-
 
2737
    result.read(self._iprot)
-
 
2738
    self._iprot.readMessageEnd()
-
 
2739
    return
-
 
2740
 
2706
 
2741
 
2707
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2742
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2708
  def __init__(self, handler):
2743
  def __init__(self, handler):
2709
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2744
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2710
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2745
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
Line 2771... Line 2806...
2771
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
2806
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
2772
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2807
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2773
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2808
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2774
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
2809
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
2775
    self._processMap["getLastUpdatedTimeForSnapdealInventory"] = Processor.process_getLastUpdatedTimeForSnapdealInventory
2810
    self._processMap["getLastUpdatedTimeForSnapdealInventory"] = Processor.process_getLastUpdatedTimeForSnapdealInventory
-
 
2811
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
2776
 
2812
 
2777
  def process(self, iprot, oprot):
2813
  def process(self, iprot, oprot):
2778
    (name, type, seqid) = iprot.readMessageBegin()
2814
    (name, type, seqid) = iprot.readMessageBegin()
2779
    if name not in self._processMap:
2815
    if name not in self._processMap:
2780
      iprot.skip(TType.STRUCT)
2816
      iprot.skip(TType.STRUCT)
Line 3582... Line 3618...
3582
    oprot.writeMessageBegin("getLastUpdatedTimeForSnapdealInventory", TMessageType.REPLY, seqid)
3618
    oprot.writeMessageBegin("getLastUpdatedTimeForSnapdealInventory", TMessageType.REPLY, seqid)
3583
    result.write(oprot)
3619
    result.write(oprot)
3584
    oprot.writeMessageEnd()
3620
    oprot.writeMessageEnd()
3585
    oprot.trans.flush()
3621
    oprot.trans.flush()
3586
 
3622
 
-
 
3623
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
-
 
3624
    args = addOrUpdateAllAmazonFbaInventory_args()
-
 
3625
    args.read(iprot)
-
 
3626
    iprot.readMessageEnd()
-
 
3627
    result = addOrUpdateAllAmazonFbaInventory_result()
-
 
3628
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
-
 
3629
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
-
 
3630
    result.write(oprot)
-
 
3631
    oprot.writeMessageEnd()
-
 
3632
    oprot.trans.flush()
-
 
3633
 
3587
 
3634
 
3588
# HELPER FUNCTIONS AND STRUCTURES
3635
# HELPER FUNCTIONS AND STRUCTURES
3589
 
3636
 
3590
class addWarehouse_args:
3637
class addWarehouse_args:
3591
  """
3638
  """
Line 12175... Line 12222...
12175
    oprot.writeFieldStop()
12222
    oprot.writeFieldStop()
12176
    oprot.writeStructEnd()
12223
    oprot.writeStructEnd()
12177
 
12224
 
12178
  def validate(self):
12225
  def validate(self):
12179
    return
12226
    return
-
 
12227
 
-
 
12228
 
-
 
12229
  def __repr__(self):
-
 
12230
    L = ['%s=%r' % (key, value)
-
 
12231
      for key, value in self.__dict__.iteritems()]
-
 
12232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12233
 
-
 
12234
  def __eq__(self, other):
-
 
12235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12236
 
-
 
12237
  def __ne__(self, other):
-
 
12238
    return not (self == other)
-
 
12239
 
-
 
12240
class addOrUpdateAllAmazonFbaInventory_args:
-
 
12241
  """
-
 
12242
  Attributes:
-
 
12243
   - allamazonfbainventorysnapshot
-
 
12244
  """
-
 
12245
 
-
 
12246
  thrift_spec = None
-
 
12247
  def __init__(self, allamazonfbainventorysnapshot=None,):
-
 
12248
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
-
 
12249
 
-
 
12250
  def read(self, iprot):
-
 
12251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12253
      return
-
 
12254
    iprot.readStructBegin()
-
 
12255
    while True:
-
 
12256
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12257
      if ftype == TType.STOP:
-
 
12258
        break
-
 
12259
      if fid == -1:
-
 
12260
        if ftype == TType.LIST:
-
 
12261
          self.allamazonfbainventorysnapshot = []
-
 
12262
          (_etype247, _size244) = iprot.readListBegin()
-
 
12263
          for _i248 in xrange(_size244):
-
 
12264
            _elem249 = AmazonFbaInventorySnapshot()
-
 
12265
            _elem249.read(iprot)
-
 
12266
            self.allamazonfbainventorysnapshot.append(_elem249)
-
 
12267
          iprot.readListEnd()
-
 
12268
        else:
-
 
12269
          iprot.skip(ftype)
-
 
12270
      else:
-
 
12271
        iprot.skip(ftype)
-
 
12272
      iprot.readFieldEnd()
-
 
12273
    iprot.readStructEnd()
-
 
12274
 
-
 
12275
  def write(self, oprot):
-
 
12276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12278
      return
-
 
12279
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
-
 
12280
    if self.allamazonfbainventorysnapshot is not None:
-
 
12281
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
-
 
12282
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
-
 
12283
      for iter250 in self.allamazonfbainventorysnapshot:
-
 
12284
        iter250.write(oprot)
-
 
12285
      oprot.writeListEnd()
-
 
12286
      oprot.writeFieldEnd()
-
 
12287
    oprot.writeFieldStop()
-
 
12288
    oprot.writeStructEnd()
-
 
12289
 
-
 
12290
  def validate(self):
-
 
12291
    return
-
 
12292
 
-
 
12293
 
-
 
12294
  def __repr__(self):
-
 
12295
    L = ['%s=%r' % (key, value)
-
 
12296
      for key, value in self.__dict__.iteritems()]
-
 
12297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12298
 
-
 
12299
  def __eq__(self, other):
-
 
12300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12301
 
-
 
12302
  def __ne__(self, other):
-
 
12303
    return not (self == other)
-
 
12304
 
-
 
12305
class addOrUpdateAllAmazonFbaInventory_result:
-
 
12306
 
-
 
12307
  thrift_spec = (
-
 
12308
  )
-
 
12309
 
-
 
12310
  def read(self, iprot):
-
 
12311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12313
      return
-
 
12314
    iprot.readStructBegin()
-
 
12315
    while True:
-
 
12316
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12317
      if ftype == TType.STOP:
-
 
12318
        break
-
 
12319
      else:
-
 
12320
        iprot.skip(ftype)
-
 
12321
      iprot.readFieldEnd()
-
 
12322
    iprot.readStructEnd()
-
 
12323
 
-
 
12324
  def write(self, oprot):
-
 
12325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12327
      return
-
 
12328
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
-
 
12329
    oprot.writeFieldStop()
-
 
12330
    oprot.writeStructEnd()
-
 
12331
 
-
 
12332
  def validate(self):
-
 
12333
    return
12180
 
12334
 
12181
 
12335
 
12182
  def __repr__(self):
12336
  def __repr__(self):
12183
    L = ['%s=%r' % (key, value)
12337
    L = ['%s=%r' % (key, value)
12184
      for key, value in self.__dict__.iteritems()]
12338
      for key, value in self.__dict__.iteritems()]