Subversion Repositories SmartDukaan

Rev

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

Rev 7221 Rev 7410
Line 268... Line 268...
268
    Parameters:
268
    Parameters:
269
     - orderId
269
     - orderId
270
    """
270
    """
271
    pass
271
    pass
272
 
272
 
-
 
273
  def getWarehouseIdsForAgent(self, agentEmailId):
-
 
274
    """
-
 
275
    Parameters:
-
 
276
     - agentEmailId
-
 
277
    """
-
 
278
    pass
-
 
279
 
273
 
280
 
274
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
281
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
275
  def __init__(self, iprot, oprot=None):
282
  def __init__(self, iprot, oprot=None):
276
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
283
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
277
 
284
 
Line 1264... Line 1271...
1264
    self._iprot.readMessageEnd()
1271
    self._iprot.readMessageEnd()
1265
    if result.success is not None:
1272
    if result.success is not None:
1266
      return result.success
1273
      return result.success
1267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1274
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1268
 
1275
 
-
 
1276
  def getWarehouseIdsForAgent(self, agentEmailId):
-
 
1277
    """
-
 
1278
    Parameters:
-
 
1279
     - agentEmailId
-
 
1280
    """
-
 
1281
    self.send_getWarehouseIdsForAgent(agentEmailId)
-
 
1282
    return self.recv_getWarehouseIdsForAgent()
-
 
1283
 
-
 
1284
  def send_getWarehouseIdsForAgent(self, agentEmailId):
-
 
1285
    self._oprot.writeMessageBegin('getWarehouseIdsForAgent', TMessageType.CALL, self._seqid)
-
 
1286
    args = getWarehouseIdsForAgent_args()
-
 
1287
    args.agentEmailId = agentEmailId
-
 
1288
    args.write(self._oprot)
-
 
1289
    self._oprot.writeMessageEnd()
-
 
1290
    self._oprot.trans.flush()
-
 
1291
 
-
 
1292
  def recv_getWarehouseIdsForAgent(self, ):
-
 
1293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1294
    if mtype == TMessageType.EXCEPTION:
-
 
1295
      x = TApplicationException()
-
 
1296
      x.read(self._iprot)
-
 
1297
      self._iprot.readMessageEnd()
-
 
1298
      raise x
-
 
1299
    result = getWarehouseIdsForAgent_result()
-
 
1300
    result.read(self._iprot)
-
 
1301
    self._iprot.readMessageEnd()
-
 
1302
    if result.success is not None:
-
 
1303
      return result.success
-
 
1304
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
-
 
1305
 
1269
 
1306
 
1270
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1307
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1271
  def __init__(self, handler):
1308
  def __init__(self, handler):
1272
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1309
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1273
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1310
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
Line 1298... Line 1335...
1298
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
1335
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
1299
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1336
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1300
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1337
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1301
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
1338
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
1302
    self._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMail
1339
    self._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMail
-
 
1340
    self._processMap["getWarehouseIdsForAgent"] = Processor.process_getWarehouseIdsForAgent
1303
 
1341
 
1304
  def process(self, iprot, oprot):
1342
  def process(self, iprot, oprot):
1305
    (name, type, seqid) = iprot.readMessageBegin()
1343
    (name, type, seqid) = iprot.readMessageBegin()
1306
    if name not in self._processMap:
1344
    if name not in self._processMap:
1307
      iprot.skip(TType.STRUCT)
1345
      iprot.skip(TType.STRUCT)
Line 1710... Line 1748...
1710
    oprot.writeMessageBegin("getOrderDeliveryMail", TMessageType.REPLY, seqid)
1748
    oprot.writeMessageBegin("getOrderDeliveryMail", TMessageType.REPLY, seqid)
1711
    result.write(oprot)
1749
    result.write(oprot)
1712
    oprot.writeMessageEnd()
1750
    oprot.writeMessageEnd()
1713
    oprot.trans.flush()
1751
    oprot.trans.flush()
1714
 
1752
 
-
 
1753
  def process_getWarehouseIdsForAgent(self, seqid, iprot, oprot):
-
 
1754
    args = getWarehouseIdsForAgent_args()
-
 
1755
    args.read(iprot)
-
 
1756
    iprot.readMessageEnd()
-
 
1757
    result = getWarehouseIdsForAgent_result()
-
 
1758
    result.success = self._handler.getWarehouseIdsForAgent(args.agentEmailId)
-
 
1759
    oprot.writeMessageBegin("getWarehouseIdsForAgent", TMessageType.REPLY, seqid)
-
 
1760
    result.write(oprot)
-
 
1761
    oprot.writeMessageEnd()
-
 
1762
    oprot.trans.flush()
-
 
1763
 
1715
 
1764
 
1716
# HELPER FUNCTIONS AND STRUCTURES
1765
# HELPER FUNCTIONS AND STRUCTURES
1717
 
1766
 
1718
class saveUserEmailForSending_args:
1767
class saveUserEmailForSending_args:
1719
  """
1768
  """
Line 5808... Line 5857...
5808
      oprot.writeFieldEnd()
5857
      oprot.writeFieldEnd()
5809
    oprot.writeFieldStop()
5858
    oprot.writeFieldStop()
5810
    oprot.writeStructEnd()
5859
    oprot.writeStructEnd()
5811
 
5860
 
5812
  def validate(self):
5861
  def validate(self):
-
 
5862
    return
-
 
5863
 
-
 
5864
 
-
 
5865
  def __repr__(self):
-
 
5866
    L = ['%s=%r' % (key, value)
-
 
5867
      for key, value in self.__dict__.iteritems()]
-
 
5868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5869
 
-
 
5870
  def __eq__(self, other):
-
 
5871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5872
 
-
 
5873
  def __ne__(self, other):
-
 
5874
    return not (self == other)
-
 
5875
 
-
 
5876
class getWarehouseIdsForAgent_args:
-
 
5877
  """
-
 
5878
  Attributes:
-
 
5879
   - agentEmailId
-
 
5880
  """
-
 
5881
 
-
 
5882
  thrift_spec = (
-
 
5883
    None, # 0
-
 
5884
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
-
 
5885
  )
-
 
5886
 
-
 
5887
  def __init__(self, agentEmailId=None,):
-
 
5888
    self.agentEmailId = agentEmailId
-
 
5889
 
-
 
5890
  def read(self, iprot):
-
 
5891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5893
      return
-
 
5894
    iprot.readStructBegin()
-
 
5895
    while True:
-
 
5896
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5897
      if ftype == TType.STOP:
-
 
5898
        break
-
 
5899
      if fid == 1:
-
 
5900
        if ftype == TType.STRING:
-
 
5901
          self.agentEmailId = iprot.readString();
-
 
5902
        else:
-
 
5903
          iprot.skip(ftype)
-
 
5904
      else:
-
 
5905
        iprot.skip(ftype)
-
 
5906
      iprot.readFieldEnd()
-
 
5907
    iprot.readStructEnd()
-
 
5908
 
-
 
5909
  def write(self, oprot):
-
 
5910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5912
      return
-
 
5913
    oprot.writeStructBegin('getWarehouseIdsForAgent_args')
-
 
5914
    if self.agentEmailId is not None:
-
 
5915
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
-
 
5916
      oprot.writeString(self.agentEmailId)
-
 
5917
      oprot.writeFieldEnd()
-
 
5918
    oprot.writeFieldStop()
-
 
5919
    oprot.writeStructEnd()
-
 
5920
 
-
 
5921
  def validate(self):
-
 
5922
    return
-
 
5923
 
-
 
5924
 
-
 
5925
  def __repr__(self):
-
 
5926
    L = ['%s=%r' % (key, value)
-
 
5927
      for key, value in self.__dict__.iteritems()]
-
 
5928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5929
 
-
 
5930
  def __eq__(self, other):
-
 
5931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5932
 
-
 
5933
  def __ne__(self, other):
-
 
5934
    return not (self == other)
-
 
5935
 
-
 
5936
class getWarehouseIdsForAgent_result:
-
 
5937
  """
-
 
5938
  Attributes:
-
 
5939
   - success
-
 
5940
  """
-
 
5941
 
-
 
5942
  thrift_spec = (
-
 
5943
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
-
 
5944
  )
-
 
5945
 
-
 
5946
  def __init__(self, success=None,):
-
 
5947
    self.success = success
-
 
5948
 
-
 
5949
  def read(self, iprot):
-
 
5950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5952
      return
-
 
5953
    iprot.readStructBegin()
-
 
5954
    while True:
-
 
5955
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5956
      if ftype == TType.STOP:
-
 
5957
        break
-
 
5958
      if fid == 0:
-
 
5959
        if ftype == TType.LIST:
-
 
5960
          self.success = []
-
 
5961
          (_etype124, _size121) = iprot.readListBegin()
-
 
5962
          for _i125 in xrange(_size121):
-
 
5963
            _elem126 = iprot.readI64();
-
 
5964
            self.success.append(_elem126)
-
 
5965
          iprot.readListEnd()
-
 
5966
        else:
-
 
5967
          iprot.skip(ftype)
-
 
5968
      else:
-
 
5969
        iprot.skip(ftype)
-
 
5970
      iprot.readFieldEnd()
-
 
5971
    iprot.readStructEnd()
-
 
5972
 
-
 
5973
  def write(self, oprot):
-
 
5974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5976
      return
-
 
5977
    oprot.writeStructBegin('getWarehouseIdsForAgent_result')
-
 
5978
    if self.success is not None:
-
 
5979
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
5980
      oprot.writeListBegin(TType.I64, len(self.success))
-
 
5981
      for iter127 in self.success:
-
 
5982
        oprot.writeI64(iter127)
-
 
5983
      oprot.writeListEnd()
-
 
5984
      oprot.writeFieldEnd()
-
 
5985
    oprot.writeFieldStop()
-
 
5986
    oprot.writeStructEnd()
-
 
5987
 
-
 
5988
  def validate(self):
5813
    return
5989
    return
5814
 
5990
 
5815
 
5991
 
5816
  def __repr__(self):
5992
  def __repr__(self):
5817
    L = ['%s=%r' % (key, value)
5993
    L = ['%s=%r' % (key, value)