Subversion Repositories SmartDukaan

Rev

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

Rev 5864 Rev 6322
Line 255... Line 255...
255
     - startDatetime
255
     - startDatetime
256
     - endDatetime
256
     - endDatetime
257
    """
257
    """
258
    pass
258
    pass
259
 
259
 
-
 
260
  def getOrderConfirmationMail(self, orderId):
-
 
261
    """
-
 
262
    Parameters:
-
 
263
     - orderId
-
 
264
    """
-
 
265
    pass
-
 
266
 
260
 
267
 
261
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
268
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
262
  def __init__(self, iprot, oprot=None):
269
  def __init__(self, iprot, oprot=None):
263
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
270
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
264
 
271
 
Line 1193... Line 1200...
1193
      return result.success
1200
      return result.success
1194
    if result.hse is not None:
1201
    if result.hse is not None:
1195
      raise result.hse
1202
      raise result.hse
1196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
1203
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
1197
 
1204
 
-
 
1205
  def getOrderConfirmationMail(self, orderId):
-
 
1206
    """
-
 
1207
    Parameters:
-
 
1208
     - orderId
-
 
1209
    """
-
 
1210
    self.send_getOrderConfirmationMail(orderId)
-
 
1211
    return self.recv_getOrderConfirmationMail()
-
 
1212
 
-
 
1213
  def send_getOrderConfirmationMail(self, orderId):
-
 
1214
    self._oprot.writeMessageBegin('getOrderConfirmationMail', TMessageType.CALL, self._seqid)
-
 
1215
    args = getOrderConfirmationMail_args()
-
 
1216
    args.orderId = orderId
-
 
1217
    args.write(self._oprot)
-
 
1218
    self._oprot.writeMessageEnd()
-
 
1219
    self._oprot.trans.flush()
-
 
1220
 
-
 
1221
  def recv_getOrderConfirmationMail(self, ):
-
 
1222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1223
    if mtype == TMessageType.EXCEPTION:
-
 
1224
      x = TApplicationException()
-
 
1225
      x.read(self._iprot)
-
 
1226
      self._iprot.readMessageEnd()
-
 
1227
      raise x
-
 
1228
    result = getOrderConfirmationMail_result()
-
 
1229
    result.read(self._iprot)
-
 
1230
    self._iprot.readMessageEnd()
-
 
1231
    if result.success is not None:
-
 
1232
      return result.success
-
 
1233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
-
 
1234
 
1198
 
1235
 
1199
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1236
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1200
  def __init__(self, handler):
1237
  def __init__(self, handler):
1201
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1238
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1202
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1239
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
Line 1225... Line 1262...
1225
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
1262
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
1226
    self._processMap["saveQuickLink"] = Processor.process_saveQuickLink
1263
    self._processMap["saveQuickLink"] = Processor.process_saveQuickLink
1227
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
1264
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
1228
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1265
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1229
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1266
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
-
 
1267
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
1230
 
1268
 
1231
  def process(self, iprot, oprot):
1269
  def process(self, iprot, oprot):
1232
    (name, type, seqid) = iprot.readMessageBegin()
1270
    (name, type, seqid) = iprot.readMessageBegin()
1233
    if name not in self._processMap:
1271
    if name not in self._processMap:
1234
      iprot.skip(TType.STRUCT)
1272
      iprot.skip(TType.STRUCT)
Line 1615... Line 1653...
1615
    oprot.writeMessageBegin("getEmailsForNotificationsSent", TMessageType.REPLY, seqid)
1653
    oprot.writeMessageBegin("getEmailsForNotificationsSent", TMessageType.REPLY, seqid)
1616
    result.write(oprot)
1654
    result.write(oprot)
1617
    oprot.writeMessageEnd()
1655
    oprot.writeMessageEnd()
1618
    oprot.trans.flush()
1656
    oprot.trans.flush()
1619
 
1657
 
-
 
1658
  def process_getOrderConfirmationMail(self, seqid, iprot, oprot):
-
 
1659
    args = getOrderConfirmationMail_args()
-
 
1660
    args.read(iprot)
-
 
1661
    iprot.readMessageEnd()
-
 
1662
    result = getOrderConfirmationMail_result()
-
 
1663
    result.success = self._handler.getOrderConfirmationMail(args.orderId)
-
 
1664
    oprot.writeMessageBegin("getOrderConfirmationMail", TMessageType.REPLY, seqid)
-
 
1665
    result.write(oprot)
-
 
1666
    oprot.writeMessageEnd()
-
 
1667
    oprot.trans.flush()
-
 
1668
 
1620
 
1669
 
1621
# HELPER FUNCTIONS AND STRUCTURES
1670
# HELPER FUNCTIONS AND STRUCTURES
1622
 
1671
 
1623
class saveUserEmailForSending_args:
1672
class saveUserEmailForSending_args:
1624
  """
1673
  """
Line 5487... Line 5536...
5487
      oprot.writeFieldEnd()
5536
      oprot.writeFieldEnd()
5488
    oprot.writeFieldStop()
5537
    oprot.writeFieldStop()
5489
    oprot.writeStructEnd()
5538
    oprot.writeStructEnd()
5490
 
5539
 
5491
  def validate(self):
5540
  def validate(self):
-
 
5541
    return
-
 
5542
 
-
 
5543
 
-
 
5544
  def __repr__(self):
-
 
5545
    L = ['%s=%r' % (key, value)
-
 
5546
      for key, value in self.__dict__.iteritems()]
-
 
5547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5548
 
-
 
5549
  def __eq__(self, other):
-
 
5550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5551
 
-
 
5552
  def __ne__(self, other):
-
 
5553
    return not (self == other)
-
 
5554
 
-
 
5555
class getOrderConfirmationMail_args:
-
 
5556
  """
-
 
5557
  Attributes:
-
 
5558
   - orderId
-
 
5559
  """
-
 
5560
 
-
 
5561
  thrift_spec = (
-
 
5562
    None, # 0
-
 
5563
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
5564
  )
-
 
5565
 
-
 
5566
  def __init__(self, orderId=None,):
-
 
5567
    self.orderId = orderId
-
 
5568
 
-
 
5569
  def read(self, iprot):
-
 
5570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5572
      return
-
 
5573
    iprot.readStructBegin()
-
 
5574
    while True:
-
 
5575
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5576
      if ftype == TType.STOP:
-
 
5577
        break
-
 
5578
      if fid == 1:
-
 
5579
        if ftype == TType.I64:
-
 
5580
          self.orderId = iprot.readI64();
-
 
5581
        else:
-
 
5582
          iprot.skip(ftype)
-
 
5583
      else:
-
 
5584
        iprot.skip(ftype)
-
 
5585
      iprot.readFieldEnd()
-
 
5586
    iprot.readStructEnd()
-
 
5587
 
-
 
5588
  def write(self, oprot):
-
 
5589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5591
      return
-
 
5592
    oprot.writeStructBegin('getOrderConfirmationMail_args')
-
 
5593
    if self.orderId is not None:
-
 
5594
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
5595
      oprot.writeI64(self.orderId)
-
 
5596
      oprot.writeFieldEnd()
-
 
5597
    oprot.writeFieldStop()
-
 
5598
    oprot.writeStructEnd()
-
 
5599
 
-
 
5600
  def validate(self):
-
 
5601
    return
-
 
5602
 
-
 
5603
 
-
 
5604
  def __repr__(self):
-
 
5605
    L = ['%s=%r' % (key, value)
-
 
5606
      for key, value in self.__dict__.iteritems()]
-
 
5607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5608
 
-
 
5609
  def __eq__(self, other):
-
 
5610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5611
 
-
 
5612
  def __ne__(self, other):
-
 
5613
    return not (self == other)
-
 
5614
 
-
 
5615
class getOrderConfirmationMail_result:
-
 
5616
  """
-
 
5617
  Attributes:
-
 
5618
   - success
-
 
5619
  """
-
 
5620
 
-
 
5621
  thrift_spec = (
-
 
5622
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
5623
  )
-
 
5624
 
-
 
5625
  def __init__(self, success=None,):
-
 
5626
    self.success = success
-
 
5627
 
-
 
5628
  def read(self, iprot):
-
 
5629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5631
      return
-
 
5632
    iprot.readStructBegin()
-
 
5633
    while True:
-
 
5634
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5635
      if ftype == TType.STOP:
-
 
5636
        break
-
 
5637
      if fid == 0:
-
 
5638
        if ftype == TType.STRING:
-
 
5639
          self.success = iprot.readString();
-
 
5640
        else:
-
 
5641
          iprot.skip(ftype)
-
 
5642
      else:
-
 
5643
        iprot.skip(ftype)
-
 
5644
      iprot.readFieldEnd()
-
 
5645
    iprot.readStructEnd()
-
 
5646
 
-
 
5647
  def write(self, oprot):
-
 
5648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5650
      return
-
 
5651
    oprot.writeStructBegin('getOrderConfirmationMail_result')
-
 
5652
    if self.success is not None:
-
 
5653
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
5654
      oprot.writeString(self.success)
-
 
5655
      oprot.writeFieldEnd()
-
 
5656
    oprot.writeFieldStop()
-
 
5657
    oprot.writeStructEnd()
-
 
5658
 
-
 
5659
  def validate(self):
5492
    return
5660
    return
5493
 
5661
 
5494
 
5662
 
5495
  def __repr__(self):
5663
  def __repr__(self):
5496
    L = ['%s=%r' % (key, value)
5664
    L = ['%s=%r' % (key, value)