Subversion Repositories SmartDukaan

Rev

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

Rev 17470 Rev 18041
Line 2227... Line 2227...
2227
     - orderId
2227
     - orderId
2228
     - splitOrderQty
2228
     - splitOrderQty
2229
    """
2229
    """
2230
    pass
2230
    pass
2231
 
2231
 
-
 
2232
  def moveOrdersToCorrectWarehouse(self, ):
-
 
2233
    pass
-
 
2234
 
2232
 
2235
 
2233
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2236
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2234
  def __init__(self, iprot, oprot=None):
2237
  def __init__(self, iprot, oprot=None):
2235
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2238
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2236
 
2239
 
Line 10549... Line 10552...
10549
    self._iprot.readMessageEnd()
10552
    self._iprot.readMessageEnd()
10550
    if result.success is not None:
10553
    if result.success is not None:
10551
      return result.success
10554
      return result.success
10552
    raise TApplicationException(TApplicationException.MISSING_RESULT, "splitBulkOrder failed: unknown result");
10555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "splitBulkOrder failed: unknown result");
10553
 
10556
 
-
 
10557
  def moveOrdersToCorrectWarehouse(self, ):
-
 
10558
    self.send_moveOrdersToCorrectWarehouse()
-
 
10559
    return self.recv_moveOrdersToCorrectWarehouse()
-
 
10560
 
-
 
10561
  def send_moveOrdersToCorrectWarehouse(self, ):
-
 
10562
    self._oprot.writeMessageBegin('moveOrdersToCorrectWarehouse', TMessageType.CALL, self._seqid)
-
 
10563
    args = moveOrdersToCorrectWarehouse_args()
-
 
10564
    args.write(self._oprot)
-
 
10565
    self._oprot.writeMessageEnd()
-
 
10566
    self._oprot.trans.flush()
-
 
10567
 
-
 
10568
  def recv_moveOrdersToCorrectWarehouse(self, ):
-
 
10569
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
10570
    if mtype == TMessageType.EXCEPTION:
-
 
10571
      x = TApplicationException()
-
 
10572
      x.read(self._iprot)
-
 
10573
      self._iprot.readMessageEnd()
-
 
10574
      raise x
-
 
10575
    result = moveOrdersToCorrectWarehouse_result()
-
 
10576
    result.read(self._iprot)
-
 
10577
    self._iprot.readMessageEnd()
-
 
10578
    if result.success is not None:
-
 
10579
      return result.success
-
 
10580
    raise TApplicationException(TApplicationException.MISSING_RESULT, "moveOrdersToCorrectWarehouse failed: unknown result");
-
 
10581
 
10554
 
10582
 
10555
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
10583
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
10556
  def __init__(self, handler):
10584
  def __init__(self, handler):
10557
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
10585
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
10558
    self._processMap["createTransaction"] = Processor.process_createTransaction
10586
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 10803... Line 10831...
10803
    self._processMap["getInvoiceFormatLogisticsTxnId"] = Processor.process_getInvoiceFormatLogisticsTxnId
10831
    self._processMap["getInvoiceFormatLogisticsTxnId"] = Processor.process_getInvoiceFormatLogisticsTxnId
10804
    self._processMap["createHomeShopOrder"] = Processor.process_createHomeShopOrder
10832
    self._processMap["createHomeShopOrder"] = Processor.process_createHomeShopOrder
10805
    self._processMap["getHomeShopOrder"] = Processor.process_getHomeShopOrder
10833
    self._processMap["getHomeShopOrder"] = Processor.process_getHomeShopOrder
10806
    self._processMap["homeShopOrderExists"] = Processor.process_homeShopOrderExists
10834
    self._processMap["homeShopOrderExists"] = Processor.process_homeShopOrderExists
10807
    self._processMap["splitBulkOrder"] = Processor.process_splitBulkOrder
10835
    self._processMap["splitBulkOrder"] = Processor.process_splitBulkOrder
-
 
10836
    self._processMap["moveOrdersToCorrectWarehouse"] = Processor.process_moveOrdersToCorrectWarehouse
10808
 
10837
 
10809
  def process(self, iprot, oprot):
10838
  def process(self, iprot, oprot):
10810
    (name, type, seqid) = iprot.readMessageBegin()
10839
    (name, type, seqid) = iprot.readMessageBegin()
10811
    if name not in self._processMap:
10840
    if name not in self._processMap:
10812
      iprot.skip(TType.STRUCT)
10841
      iprot.skip(TType.STRUCT)
Line 13920... Line 13949...
13920
    oprot.writeMessageBegin("splitBulkOrder", TMessageType.REPLY, seqid)
13949
    oprot.writeMessageBegin("splitBulkOrder", TMessageType.REPLY, seqid)
13921
    result.write(oprot)
13950
    result.write(oprot)
13922
    oprot.writeMessageEnd()
13951
    oprot.writeMessageEnd()
13923
    oprot.trans.flush()
13952
    oprot.trans.flush()
13924
 
13953
 
-
 
13954
  def process_moveOrdersToCorrectWarehouse(self, seqid, iprot, oprot):
-
 
13955
    args = moveOrdersToCorrectWarehouse_args()
-
 
13956
    args.read(iprot)
-
 
13957
    iprot.readMessageEnd()
-
 
13958
    result = moveOrdersToCorrectWarehouse_result()
-
 
13959
    result.success = self._handler.moveOrdersToCorrectWarehouse()
-
 
13960
    oprot.writeMessageBegin("moveOrdersToCorrectWarehouse", TMessageType.REPLY, seqid)
-
 
13961
    result.write(oprot)
-
 
13962
    oprot.writeMessageEnd()
-
 
13963
    oprot.trans.flush()
-
 
13964
 
13925
 
13965
 
13926
# HELPER FUNCTIONS AND STRUCTURES
13966
# HELPER FUNCTIONS AND STRUCTURES
13927
 
13967
 
13928
class createTransaction_args:
13968
class createTransaction_args:
13929
  """
13969
  """
Line 48397... Line 48437...
48397
      oprot.writeFieldEnd()
48437
      oprot.writeFieldEnd()
48398
    oprot.writeFieldStop()
48438
    oprot.writeFieldStop()
48399
    oprot.writeStructEnd()
48439
    oprot.writeStructEnd()
48400
 
48440
 
48401
  def validate(self):
48441
  def validate(self):
-
 
48442
    return
-
 
48443
 
-
 
48444
 
-
 
48445
  def __repr__(self):
-
 
48446
    L = ['%s=%r' % (key, value)
-
 
48447
      for key, value in self.__dict__.iteritems()]
-
 
48448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
48449
 
-
 
48450
  def __eq__(self, other):
-
 
48451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
48452
 
-
 
48453
  def __ne__(self, other):
-
 
48454
    return not (self == other)
-
 
48455
 
-
 
48456
class moveOrdersToCorrectWarehouse_args:
-
 
48457
 
-
 
48458
  thrift_spec = (
-
 
48459
  )
-
 
48460
 
-
 
48461
  def read(self, iprot):
-
 
48462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
48463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
48464
      return
-
 
48465
    iprot.readStructBegin()
-
 
48466
    while True:
-
 
48467
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
48468
      if ftype == TType.STOP:
-
 
48469
        break
-
 
48470
      else:
-
 
48471
        iprot.skip(ftype)
-
 
48472
      iprot.readFieldEnd()
-
 
48473
    iprot.readStructEnd()
-
 
48474
 
-
 
48475
  def write(self, oprot):
-
 
48476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
48477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
48478
      return
-
 
48479
    oprot.writeStructBegin('moveOrdersToCorrectWarehouse_args')
-
 
48480
    oprot.writeFieldStop()
-
 
48481
    oprot.writeStructEnd()
-
 
48482
 
-
 
48483
  def validate(self):
-
 
48484
    return
-
 
48485
 
-
 
48486
 
-
 
48487
  def __repr__(self):
-
 
48488
    L = ['%s=%r' % (key, value)
-
 
48489
      for key, value in self.__dict__.iteritems()]
-
 
48490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
48491
 
-
 
48492
  def __eq__(self, other):
-
 
48493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
48494
 
-
 
48495
  def __ne__(self, other):
-
 
48496
    return not (self == other)
-
 
48497
 
-
 
48498
class moveOrdersToCorrectWarehouse_result:
-
 
48499
  """
-
 
48500
  Attributes:
-
 
48501
   - success
-
 
48502
  """
-
 
48503
 
-
 
48504
  thrift_spec = (
-
 
48505
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
48506
  )
-
 
48507
 
-
 
48508
  def __init__(self, success=None,):
-
 
48509
    self.success = success
-
 
48510
 
-
 
48511
  def read(self, iprot):
-
 
48512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
48513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
48514
      return
-
 
48515
    iprot.readStructBegin()
-
 
48516
    while True:
-
 
48517
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
48518
      if ftype == TType.STOP:
-
 
48519
        break
-
 
48520
      if fid == 0:
-
 
48521
        if ftype == TType.STRING:
-
 
48522
          self.success = iprot.readString();
-
 
48523
        else:
-
 
48524
          iprot.skip(ftype)
-
 
48525
      else:
-
 
48526
        iprot.skip(ftype)
-
 
48527
      iprot.readFieldEnd()
-
 
48528
    iprot.readStructEnd()
-
 
48529
 
-
 
48530
  def write(self, oprot):
-
 
48531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
48532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
48533
      return
-
 
48534
    oprot.writeStructBegin('moveOrdersToCorrectWarehouse_result')
-
 
48535
    if self.success is not None:
-
 
48536
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
48537
      oprot.writeString(self.success)
-
 
48538
      oprot.writeFieldEnd()
-
 
48539
    oprot.writeFieldStop()
-
 
48540
    oprot.writeStructEnd()
-
 
48541
 
-
 
48542
  def validate(self):
48402
    return
48543
    return
48403
 
48544
 
48404
 
48545
 
48405
  def __repr__(self):
48546
  def __repr__(self):
48406
    L = ['%s=%r' % (key, value)
48547
    L = ['%s=%r' % (key, value)