Subversion Repositories SmartDukaan

Rev

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

Rev 6788 Rev 7221
Line 261... Line 261...
261
    Parameters:
261
    Parameters:
262
     - orderId
262
     - orderId
263
    """
263
    """
264
    pass
264
    pass
265
 
265
 
-
 
266
  def getOrderDeliveryMail(self, orderId):
-
 
267
    """
-
 
268
    Parameters:
-
 
269
     - orderId
-
 
270
    """
-
 
271
    pass
-
 
272
 
266
 
273
 
267
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
274
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
268
  def __init__(self, iprot, oprot=None):
275
  def __init__(self, iprot, oprot=None):
269
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
276
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
270
 
277
 
Line 1227... Line 1234...
1227
    self._iprot.readMessageEnd()
1234
    self._iprot.readMessageEnd()
1228
    if result.success is not None:
1235
    if result.success is not None:
1229
      return result.success
1236
      return result.success
1230
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
1237
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
1231
 
1238
 
-
 
1239
  def getOrderDeliveryMail(self, orderId):
-
 
1240
    """
-
 
1241
    Parameters:
-
 
1242
     - orderId
-
 
1243
    """
-
 
1244
    self.send_getOrderDeliveryMail(orderId)
-
 
1245
    return self.recv_getOrderDeliveryMail()
-
 
1246
 
-
 
1247
  def send_getOrderDeliveryMail(self, orderId):
-
 
1248
    self._oprot.writeMessageBegin('getOrderDeliveryMail', TMessageType.CALL, self._seqid)
-
 
1249
    args = getOrderDeliveryMail_args()
-
 
1250
    args.orderId = orderId
-
 
1251
    args.write(self._oprot)
-
 
1252
    self._oprot.writeMessageEnd()
-
 
1253
    self._oprot.trans.flush()
-
 
1254
 
-
 
1255
  def recv_getOrderDeliveryMail(self, ):
-
 
1256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1257
    if mtype == TMessageType.EXCEPTION:
-
 
1258
      x = TApplicationException()
-
 
1259
      x.read(self._iprot)
-
 
1260
      self._iprot.readMessageEnd()
-
 
1261
      raise x
-
 
1262
    result = getOrderDeliveryMail_result()
-
 
1263
    result.read(self._iprot)
-
 
1264
    self._iprot.readMessageEnd()
-
 
1265
    if result.success is not None:
-
 
1266
      return result.success
-
 
1267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
-
 
1268
 
1232
 
1269
 
1233
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1270
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1234
  def __init__(self, handler):
1271
  def __init__(self, handler):
1235
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1272
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1236
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1273
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
Line 1260... Line 1297...
1260
    self._processMap["saveQuickLink"] = Processor.process_saveQuickLink
1297
    self._processMap["saveQuickLink"] = Processor.process_saveQuickLink
1261
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
1298
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
1262
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1299
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1263
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1300
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1264
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
1301
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
-
 
1302
    self._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMail
1265
 
1303
 
1266
  def process(self, iprot, oprot):
1304
  def process(self, iprot, oprot):
1267
    (name, type, seqid) = iprot.readMessageBegin()
1305
    (name, type, seqid) = iprot.readMessageBegin()
1268
    if name not in self._processMap:
1306
    if name not in self._processMap:
1269
      iprot.skip(TType.STRUCT)
1307
      iprot.skip(TType.STRUCT)
Line 1661... Line 1699...
1661
    oprot.writeMessageBegin("getOrderConfirmationMail", TMessageType.REPLY, seqid)
1699
    oprot.writeMessageBegin("getOrderConfirmationMail", TMessageType.REPLY, seqid)
1662
    result.write(oprot)
1700
    result.write(oprot)
1663
    oprot.writeMessageEnd()
1701
    oprot.writeMessageEnd()
1664
    oprot.trans.flush()
1702
    oprot.trans.flush()
1665
 
1703
 
-
 
1704
  def process_getOrderDeliveryMail(self, seqid, iprot, oprot):
-
 
1705
    args = getOrderDeliveryMail_args()
-
 
1706
    args.read(iprot)
-
 
1707
    iprot.readMessageEnd()
-
 
1708
    result = getOrderDeliveryMail_result()
-
 
1709
    result.success = self._handler.getOrderDeliveryMail(args.orderId)
-
 
1710
    oprot.writeMessageBegin("getOrderDeliveryMail", TMessageType.REPLY, seqid)
-
 
1711
    result.write(oprot)
-
 
1712
    oprot.writeMessageEnd()
-
 
1713
    oprot.trans.flush()
-
 
1714
 
1666
 
1715
 
1667
# HELPER FUNCTIONS AND STRUCTURES
1716
# HELPER FUNCTIONS AND STRUCTURES
1668
 
1717
 
1669
class saveUserEmailForSending_args:
1718
class saveUserEmailForSending_args:
1670
  """
1719
  """
Line 5637... Line 5686...
5637
    if self.success is not None:
5686
    if self.success is not None:
5638
      oprot.writeFieldBegin('success', TType.STRING, 0)
5687
      oprot.writeFieldBegin('success', TType.STRING, 0)
5639
      oprot.writeString(self.success)
5688
      oprot.writeString(self.success)
5640
      oprot.writeFieldEnd()
5689
      oprot.writeFieldEnd()
5641
    oprot.writeFieldStop()
5690
    oprot.writeFieldStop()
-
 
5691
    oprot.writeStructEnd()
-
 
5692
 
-
 
5693
  def validate(self):
-
 
5694
    return
-
 
5695
 
-
 
5696
 
-
 
5697
  def __repr__(self):
-
 
5698
    L = ['%s=%r' % (key, value)
-
 
5699
      for key, value in self.__dict__.iteritems()]
-
 
5700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5701
 
-
 
5702
  def __eq__(self, other):
-
 
5703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5704
 
-
 
5705
  def __ne__(self, other):
-
 
5706
    return not (self == other)
-
 
5707
 
-
 
5708
class getOrderDeliveryMail_args:
-
 
5709
  """
-
 
5710
  Attributes:
-
 
5711
   - orderId
-
 
5712
  """
-
 
5713
 
-
 
5714
  thrift_spec = (
-
 
5715
    None, # 0
-
 
5716
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
5717
  )
-
 
5718
 
-
 
5719
  def __init__(self, orderId=None,):
-
 
5720
    self.orderId = orderId
-
 
5721
 
-
 
5722
  def read(self, iprot):
-
 
5723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5725
      return
-
 
5726
    iprot.readStructBegin()
-
 
5727
    while True:
-
 
5728
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5729
      if ftype == TType.STOP:
-
 
5730
        break
-
 
5731
      if fid == 1:
-
 
5732
        if ftype == TType.I64:
-
 
5733
          self.orderId = iprot.readI64();
-
 
5734
        else:
-
 
5735
          iprot.skip(ftype)
-
 
5736
      else:
-
 
5737
        iprot.skip(ftype)
-
 
5738
      iprot.readFieldEnd()
-
 
5739
    iprot.readStructEnd()
-
 
5740
 
-
 
5741
  def write(self, oprot):
-
 
5742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5744
      return
-
 
5745
    oprot.writeStructBegin('getOrderDeliveryMail_args')
-
 
5746
    if self.orderId is not None:
-
 
5747
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
5748
      oprot.writeI64(self.orderId)
-
 
5749
      oprot.writeFieldEnd()
-
 
5750
    oprot.writeFieldStop()
-
 
5751
    oprot.writeStructEnd()
-
 
5752
 
-
 
5753
  def validate(self):
-
 
5754
    return
-
 
5755
 
-
 
5756
 
-
 
5757
  def __repr__(self):
-
 
5758
    L = ['%s=%r' % (key, value)
-
 
5759
      for key, value in self.__dict__.iteritems()]
-
 
5760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5761
 
-
 
5762
  def __eq__(self, other):
-
 
5763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5764
 
-
 
5765
  def __ne__(self, other):
-
 
5766
    return not (self == other)
-
 
5767
 
-
 
5768
class getOrderDeliveryMail_result:
-
 
5769
  """
-
 
5770
  Attributes:
-
 
5771
   - success
-
 
5772
  """
-
 
5773
 
-
 
5774
  thrift_spec = (
-
 
5775
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
5776
  )
-
 
5777
 
-
 
5778
  def __init__(self, success=None,):
-
 
5779
    self.success = success
-
 
5780
 
-
 
5781
  def read(self, iprot):
-
 
5782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5784
      return
-
 
5785
    iprot.readStructBegin()
-
 
5786
    while True:
-
 
5787
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5788
      if ftype == TType.STOP:
-
 
5789
        break
-
 
5790
      if fid == 0:
-
 
5791
        if ftype == TType.STRING:
-
 
5792
          self.success = iprot.readString();
-
 
5793
        else:
-
 
5794
          iprot.skip(ftype)
-
 
5795
      else:
-
 
5796
        iprot.skip(ftype)
-
 
5797
      iprot.readFieldEnd()
-
 
5798
    iprot.readStructEnd()
-
 
5799
 
-
 
5800
  def write(self, oprot):
-
 
5801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5803
      return
-
 
5804
    oprot.writeStructBegin('getOrderDeliveryMail_result')
-
 
5805
    if self.success is not None:
-
 
5806
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
5807
      oprot.writeString(self.success)
-
 
5808
      oprot.writeFieldEnd()
-
 
5809
    oprot.writeFieldStop()
5642
    oprot.writeStructEnd()
5810
    oprot.writeStructEnd()
5643
 
5811
 
5644
  def validate(self):
5812
  def validate(self):
5645
    return
5813
    return
5646
 
5814