Subversion Repositories SmartDukaan

Rev

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

Rev 5713 Rev 5833
Line 1248... Line 1248...
1248
     - toDate
1248
     - toDate
1249
     - onlyCod
1249
     - onlyCod
1250
    """
1250
    """
1251
    pass
1251
    pass
1252
 
1252
 
-
 
1253
  def getOrderAttributeValue(self, orderId, attributeName):
-
 
1254
    """
-
 
1255
    Parameters:
-
 
1256
     - orderId
-
 
1257
     - attributeName
-
 
1258
    """
-
 
1259
    pass
-
 
1260
 
1253
  def acceptOrderForItem(self, itemId, quantity, fulfilmentWarehouseId, billingWarehouseId):
1261
  def acceptOrderForItem(self, itemId, quantity, fulfilmentWarehouseId, billingWarehouseId):
1254
    """
1262
    """
1255
    Accepts appropriate order for an item in a given billingWarehouse. Usually
1263
    Accepts appropriate order for an item in a given billingWarehouse. Usually
1256
    invoked while scanning IN of items.
1264
    invoked while scanning IN of items.
1257
 
1265
 
Line 5568... Line 5576...
5568
    self._iprot.readMessageEnd()
5576
    self._iprot.readMessageEnd()
5569
    if result.success is not None:
5577
    if result.success is not None:
5570
      return result.success
5578
      return result.success
5571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersCollectionAtStore failed: unknown result");
5579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersCollectionAtStore failed: unknown result");
5572
 
5580
 
-
 
5581
  def getOrderAttributeValue(self, orderId, attributeName):
-
 
5582
    """
-
 
5583
    Parameters:
-
 
5584
     - orderId
-
 
5585
     - attributeName
-
 
5586
    """
-
 
5587
    self.send_getOrderAttributeValue(orderId, attributeName)
-
 
5588
    return self.recv_getOrderAttributeValue()
-
 
5589
 
-
 
5590
  def send_getOrderAttributeValue(self, orderId, attributeName):
-
 
5591
    self._oprot.writeMessageBegin('getOrderAttributeValue', TMessageType.CALL, self._seqid)
-
 
5592
    args = getOrderAttributeValue_args()
-
 
5593
    args.orderId = orderId
-
 
5594
    args.attributeName = attributeName
-
 
5595
    args.write(self._oprot)
-
 
5596
    self._oprot.writeMessageEnd()
-
 
5597
    self._oprot.trans.flush()
-
 
5598
 
-
 
5599
  def recv_getOrderAttributeValue(self, ):
-
 
5600
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5601
    if mtype == TMessageType.EXCEPTION:
-
 
5602
      x = TApplicationException()
-
 
5603
      x.read(self._iprot)
-
 
5604
      self._iprot.readMessageEnd()
-
 
5605
      raise x
-
 
5606
    result = getOrderAttributeValue_result()
-
 
5607
    result.read(self._iprot)
-
 
5608
    self._iprot.readMessageEnd()
-
 
5609
    if result.success is not None:
-
 
5610
      return result.success
-
 
5611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderAttributeValue failed: unknown result");
-
 
5612
 
5573
  def acceptOrderForItem(self, itemId, quantity, fulfilmentWarehouseId, billingWarehouseId):
5613
  def acceptOrderForItem(self, itemId, quantity, fulfilmentWarehouseId, billingWarehouseId):
5574
    """
5614
    """
5575
    Accepts appropriate order for an item in a given billingWarehouse. Usually
5615
    Accepts appropriate order for an item in a given billingWarehouse. Usually
5576
    invoked while scanning IN of items.
5616
    invoked while scanning IN of items.
5577
 
5617
 
Line 5732... Line 5772...
5732
    self._processMap["setOrderAttributes"] = Processor.process_setOrderAttributes
5772
    self._processMap["setOrderAttributes"] = Processor.process_setOrderAttributes
5733
    self._processMap["setOrderAttributeForTransaction"] = Processor.process_setOrderAttributeForTransaction
5773
    self._processMap["setOrderAttributeForTransaction"] = Processor.process_setOrderAttributeForTransaction
5734
    self._processMap["getReceivePendingOrders"] = Processor.process_getReceivePendingOrders
5774
    self._processMap["getReceivePendingOrders"] = Processor.process_getReceivePendingOrders
5735
    self._processMap["getReceivedAtStoreOrders"] = Processor.process_getReceivedAtStoreOrders
5775
    self._processMap["getReceivedAtStoreOrders"] = Processor.process_getReceivedAtStoreOrders
5736
    self._processMap["getOrdersCollectionAtStore"] = Processor.process_getOrdersCollectionAtStore
5776
    self._processMap["getOrdersCollectionAtStore"] = Processor.process_getOrdersCollectionAtStore
-
 
5777
    self._processMap["getOrderAttributeValue"] = Processor.process_getOrderAttributeValue
5737
    self._processMap["acceptOrderForItem"] = Processor.process_acceptOrderForItem
5778
    self._processMap["acceptOrderForItem"] = Processor.process_acceptOrderForItem
5738
 
5779
 
5739
  def process(self, iprot, oprot):
5780
  def process(self, iprot, oprot):
5740
    (name, type, seqid) = iprot.readMessageBegin()
5781
    (name, type, seqid) = iprot.readMessageBegin()
5741
    if name not in self._processMap:
5782
    if name not in self._processMap:
Line 7375... Line 7416...
7375
    oprot.writeMessageBegin("getOrdersCollectionAtStore", TMessageType.REPLY, seqid)
7416
    oprot.writeMessageBegin("getOrdersCollectionAtStore", TMessageType.REPLY, seqid)
7376
    result.write(oprot)
7417
    result.write(oprot)
7377
    oprot.writeMessageEnd()
7418
    oprot.writeMessageEnd()
7378
    oprot.trans.flush()
7419
    oprot.trans.flush()
7379
 
7420
 
-
 
7421
  def process_getOrderAttributeValue(self, seqid, iprot, oprot):
-
 
7422
    args = getOrderAttributeValue_args()
-
 
7423
    args.read(iprot)
-
 
7424
    iprot.readMessageEnd()
-
 
7425
    result = getOrderAttributeValue_result()
-
 
7426
    result.success = self._handler.getOrderAttributeValue(args.orderId, args.attributeName)
-
 
7427
    oprot.writeMessageBegin("getOrderAttributeValue", TMessageType.REPLY, seqid)
-
 
7428
    result.write(oprot)
-
 
7429
    oprot.writeMessageEnd()
-
 
7430
    oprot.trans.flush()
-
 
7431
 
7380
  def process_acceptOrderForItem(self, seqid, iprot, oprot):
7432
  def process_acceptOrderForItem(self, seqid, iprot, oprot):
7381
    args = acceptOrderForItem_args()
7433
    args = acceptOrderForItem_args()
7382
    args.read(iprot)
7434
    args.read(iprot)
7383
    iprot.readMessageEnd()
7435
    iprot.readMessageEnd()
7384
    result = acceptOrderForItem_result()
7436
    result = acceptOrderForItem_result()
Line 24903... Line 24955...
24903
      oprot.writeFieldEnd()
24955
      oprot.writeFieldEnd()
24904
    oprot.writeFieldStop()
24956
    oprot.writeFieldStop()
24905
    oprot.writeStructEnd()
24957
    oprot.writeStructEnd()
24906
 
24958
 
24907
  def validate(self):
24959
  def validate(self):
-
 
24960
    return
-
 
24961
 
-
 
24962
 
-
 
24963
  def __repr__(self):
-
 
24964
    L = ['%s=%r' % (key, value)
-
 
24965
      for key, value in self.__dict__.iteritems()]
-
 
24966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
24967
 
-
 
24968
  def __eq__(self, other):
-
 
24969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
24970
 
-
 
24971
  def __ne__(self, other):
-
 
24972
    return not (self == other)
-
 
24973
 
-
 
24974
class getOrderAttributeValue_args:
-
 
24975
  """
-
 
24976
  Attributes:
-
 
24977
   - orderId
-
 
24978
   - attributeName
-
 
24979
  """
-
 
24980
 
-
 
24981
  thrift_spec = None
-
 
24982
  def __init__(self, orderId=None, attributeName=None,):
-
 
24983
    self.orderId = orderId
-
 
24984
    self.attributeName = attributeName
-
 
24985
 
-
 
24986
  def read(self, iprot):
-
 
24987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
24988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
24989
      return
-
 
24990
    iprot.readStructBegin()
-
 
24991
    while True:
-
 
24992
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
24993
      if ftype == TType.STOP:
-
 
24994
        break
-
 
24995
      if fid == 1:
-
 
24996
        if ftype == TType.I64:
-
 
24997
          self.orderId = iprot.readI64();
-
 
24998
        else:
-
 
24999
          iprot.skip(ftype)
-
 
25000
      elif fid == -1:
-
 
25001
        if ftype == TType.STRING:
-
 
25002
          self.attributeName = iprot.readString();
-
 
25003
        else:
-
 
25004
          iprot.skip(ftype)
-
 
25005
      else:
-
 
25006
        iprot.skip(ftype)
-
 
25007
      iprot.readFieldEnd()
-
 
25008
    iprot.readStructEnd()
-
 
25009
 
-
 
25010
  def write(self, oprot):
-
 
25011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25013
      return
-
 
25014
    oprot.writeStructBegin('getOrderAttributeValue_args')
-
 
25015
    if self.attributeName is not None:
-
 
25016
      oprot.writeFieldBegin('attributeName', TType.STRING, -1)
-
 
25017
      oprot.writeString(self.attributeName)
-
 
25018
      oprot.writeFieldEnd()
-
 
25019
    if self.orderId is not None:
-
 
25020
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
25021
      oprot.writeI64(self.orderId)
-
 
25022
      oprot.writeFieldEnd()
-
 
25023
    oprot.writeFieldStop()
-
 
25024
    oprot.writeStructEnd()
-
 
25025
 
-
 
25026
  def validate(self):
-
 
25027
    return
-
 
25028
 
-
 
25029
 
-
 
25030
  def __repr__(self):
-
 
25031
    L = ['%s=%r' % (key, value)
-
 
25032
      for key, value in self.__dict__.iteritems()]
-
 
25033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25034
 
-
 
25035
  def __eq__(self, other):
-
 
25036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25037
 
-
 
25038
  def __ne__(self, other):
-
 
25039
    return not (self == other)
-
 
25040
 
-
 
25041
class getOrderAttributeValue_result:
-
 
25042
  """
-
 
25043
  Attributes:
-
 
25044
   - success
-
 
25045
  """
-
 
25046
 
-
 
25047
  thrift_spec = (
-
 
25048
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
25049
  )
-
 
25050
 
-
 
25051
  def __init__(self, success=None,):
-
 
25052
    self.success = success
-
 
25053
 
-
 
25054
  def read(self, iprot):
-
 
25055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25057
      return
-
 
25058
    iprot.readStructBegin()
-
 
25059
    while True:
-
 
25060
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25061
      if ftype == TType.STOP:
-
 
25062
        break
-
 
25063
      if fid == 0:
-
 
25064
        if ftype == TType.STRING:
-
 
25065
          self.success = iprot.readString();
-
 
25066
        else:
-
 
25067
          iprot.skip(ftype)
-
 
25068
      else:
-
 
25069
        iprot.skip(ftype)
-
 
25070
      iprot.readFieldEnd()
-
 
25071
    iprot.readStructEnd()
-
 
25072
 
-
 
25073
  def write(self, oprot):
-
 
25074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25076
      return
-
 
25077
    oprot.writeStructBegin('getOrderAttributeValue_result')
-
 
25078
    if self.success is not None:
-
 
25079
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
25080
      oprot.writeString(self.success)
-
 
25081
      oprot.writeFieldEnd()
-
 
25082
    oprot.writeFieldStop()
-
 
25083
    oprot.writeStructEnd()
-
 
25084
 
-
 
25085
  def validate(self):
24908
    return
25086
    return
24909
 
25087
 
24910
 
25088
 
24911
  def __repr__(self):
25089
  def __repr__(self):
24912
    L = ['%s=%r' % (key, value)
25090
    L = ['%s=%r' % (key, value)