Subversion Repositories SmartDukaan

Rev

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

Rev 22043 Rev 22452
Line 2807... Line 2807...
2807
     - offset
2807
     - offset
2808
     - limit
2808
     - limit
2809
    """
2809
    """
2810
    pass
2810
    pass
2811
 
2811
 
-
 
2812
  def markOrderForRegisteredGstInvoice(self, tranasction_ids):
-
 
2813
    """
-
 
2814
    Parameters:
-
 
2815
     - tranasction_ids
-
 
2816
    """
-
 
2817
    pass
-
 
2818
 
2812
 
2819
 
2813
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2820
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2814
  def __init__(self, iprot, oprot=None):
2821
  def __init__(self, iprot, oprot=None):
2815
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2822
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2816
 
2823
 
Line 13480... Line 13487...
13480
    self._iprot.readMessageEnd()
13487
    self._iprot.readMessageEnd()
13481
    if result.success is not None:
13488
    if result.success is not None:
13482
      return result.success
13489
      return result.success
13483
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaginatedRechargeOrders failed: unknown result");
13490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaginatedRechargeOrders failed: unknown result");
13484
 
13491
 
-
 
13492
  def markOrderForRegisteredGstInvoice(self, tranasction_ids):
-
 
13493
    """
-
 
13494
    Parameters:
-
 
13495
     - tranasction_ids
-
 
13496
    """
-
 
13497
    self.send_markOrderForRegisteredGstInvoice(tranasction_ids)
-
 
13498
    return self.recv_markOrderForRegisteredGstInvoice()
-
 
13499
 
-
 
13500
  def send_markOrderForRegisteredGstInvoice(self, tranasction_ids):
-
 
13501
    self._oprot.writeMessageBegin('markOrderForRegisteredGstInvoice', TMessageType.CALL, self._seqid)
-
 
13502
    args = markOrderForRegisteredGstInvoice_args()
-
 
13503
    args.tranasction_ids = tranasction_ids
-
 
13504
    args.write(self._oprot)
-
 
13505
    self._oprot.writeMessageEnd()
-
 
13506
    self._oprot.trans.flush()
-
 
13507
 
-
 
13508
  def recv_markOrderForRegisteredGstInvoice(self, ):
-
 
13509
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
13510
    if mtype == TMessageType.EXCEPTION:
-
 
13511
      x = TApplicationException()
-
 
13512
      x.read(self._iprot)
-
 
13513
      self._iprot.readMessageEnd()
-
 
13514
      raise x
-
 
13515
    result = markOrderForRegisteredGstInvoice_result()
-
 
13516
    result.read(self._iprot)
-
 
13517
    self._iprot.readMessageEnd()
-
 
13518
    if result.success is not None:
-
 
13519
      return result.success
-
 
13520
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderForRegisteredGstInvoice failed: unknown result");
-
 
13521
 
13485
 
13522
 
13486
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13523
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13487
  def __init__(self, handler):
13524
  def __init__(self, handler):
13488
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13525
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13489
    self._processMap["createTransaction"] = Processor.process_createTransaction
13526
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 13806... Line 13843...
13806
    self._processMap["getPendingAssociates"] = Processor.process_getPendingAssociates
13843
    self._processMap["getPendingAssociates"] = Processor.process_getPendingAssociates
13807
    self._processMap["getStatsForAssociates"] = Processor.process_getStatsForAssociates
13844
    self._processMap["getStatsForAssociates"] = Processor.process_getStatsForAssociates
13808
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13845
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13809
    self._processMap["creditUserWallet"] = Processor.process_creditUserWallet
13846
    self._processMap["creditUserWallet"] = Processor.process_creditUserWallet
13810
    self._processMap["getPaginatedRechargeOrders"] = Processor.process_getPaginatedRechargeOrders
13847
    self._processMap["getPaginatedRechargeOrders"] = Processor.process_getPaginatedRechargeOrders
-
 
13848
    self._processMap["markOrderForRegisteredGstInvoice"] = Processor.process_markOrderForRegisteredGstInvoice
13811
 
13849
 
13812
  def process(self, iprot, oprot):
13850
  def process(self, iprot, oprot):
13813
    (name, type, seqid) = iprot.readMessageBegin()
13851
    (name, type, seqid) = iprot.readMessageBegin()
13814
    if name not in self._processMap:
13852
    if name not in self._processMap:
13815
      iprot.skip(TType.STRUCT)
13853
      iprot.skip(TType.STRUCT)
Line 17781... Line 17819...
17781
    oprot.writeMessageBegin("getPaginatedRechargeOrders", TMessageType.REPLY, seqid)
17819
    oprot.writeMessageBegin("getPaginatedRechargeOrders", TMessageType.REPLY, seqid)
17782
    result.write(oprot)
17820
    result.write(oprot)
17783
    oprot.writeMessageEnd()
17821
    oprot.writeMessageEnd()
17784
    oprot.trans.flush()
17822
    oprot.trans.flush()
17785
 
17823
 
-
 
17824
  def process_markOrderForRegisteredGstInvoice(self, seqid, iprot, oprot):
-
 
17825
    args = markOrderForRegisteredGstInvoice_args()
-
 
17826
    args.read(iprot)
-
 
17827
    iprot.readMessageEnd()
-
 
17828
    result = markOrderForRegisteredGstInvoice_result()
-
 
17829
    result.success = self._handler.markOrderForRegisteredGstInvoice(args.tranasction_ids)
-
 
17830
    oprot.writeMessageBegin("markOrderForRegisteredGstInvoice", TMessageType.REPLY, seqid)
-
 
17831
    result.write(oprot)
-
 
17832
    oprot.writeMessageEnd()
-
 
17833
    oprot.trans.flush()
-
 
17834
 
17786
 
17835
 
17787
# HELPER FUNCTIONS AND STRUCTURES
17836
# HELPER FUNCTIONS AND STRUCTURES
17788
 
17837
 
17789
class createTransaction_args:
17838
class createTransaction_args:
17790
  """
17839
  """
Line 62450... Line 62499...
62450
      oprot.writeFieldEnd()
62499
      oprot.writeFieldEnd()
62451
    oprot.writeFieldStop()
62500
    oprot.writeFieldStop()
62452
    oprot.writeStructEnd()
62501
    oprot.writeStructEnd()
62453
 
62502
 
62454
  def validate(self):
62503
  def validate(self):
-
 
62504
    return
-
 
62505
 
-
 
62506
 
-
 
62507
  def __repr__(self):
-
 
62508
    L = ['%s=%r' % (key, value)
-
 
62509
      for key, value in self.__dict__.iteritems()]
-
 
62510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
62511
 
-
 
62512
  def __eq__(self, other):
-
 
62513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
62514
 
-
 
62515
  def __ne__(self, other):
-
 
62516
    return not (self == other)
-
 
62517
 
-
 
62518
class markOrderForRegisteredGstInvoice_args:
-
 
62519
  """
-
 
62520
  Attributes:
-
 
62521
   - tranasction_ids
-
 
62522
  """
-
 
62523
 
-
 
62524
  thrift_spec = None
-
 
62525
  def __init__(self, tranasction_ids=None,):
-
 
62526
    self.tranasction_ids = tranasction_ids
-
 
62527
 
-
 
62528
  def read(self, iprot):
-
 
62529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
62530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
62531
      return
-
 
62532
    iprot.readStructBegin()
-
 
62533
    while True:
-
 
62534
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
62535
      if ftype == TType.STOP:
-
 
62536
        break
-
 
62537
      if fid == -1:
-
 
62538
        if ftype == TType.LIST:
-
 
62539
          self.tranasction_ids = []
-
 
62540
          (_etype1556, _size1553) = iprot.readListBegin()
-
 
62541
          for _i1557 in xrange(_size1553):
-
 
62542
            _elem1558 = iprot.readI64();
-
 
62543
            self.tranasction_ids.append(_elem1558)
-
 
62544
          iprot.readListEnd()
-
 
62545
        else:
-
 
62546
          iprot.skip(ftype)
-
 
62547
      else:
-
 
62548
        iprot.skip(ftype)
-
 
62549
      iprot.readFieldEnd()
-
 
62550
    iprot.readStructEnd()
-
 
62551
 
-
 
62552
  def write(self, oprot):
-
 
62553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
62554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
62555
      return
-
 
62556
    oprot.writeStructBegin('markOrderForRegisteredGstInvoice_args')
-
 
62557
    if self.tranasction_ids is not None:
-
 
62558
      oprot.writeFieldBegin('tranasction_ids', TType.LIST, -1)
-
 
62559
      oprot.writeListBegin(TType.I64, len(self.tranasction_ids))
-
 
62560
      for iter1559 in self.tranasction_ids:
-
 
62561
        oprot.writeI64(iter1559)
-
 
62562
      oprot.writeListEnd()
-
 
62563
      oprot.writeFieldEnd()
-
 
62564
    oprot.writeFieldStop()
-
 
62565
    oprot.writeStructEnd()
-
 
62566
 
-
 
62567
  def validate(self):
-
 
62568
    return
-
 
62569
 
-
 
62570
 
-
 
62571
  def __repr__(self):
-
 
62572
    L = ['%s=%r' % (key, value)
-
 
62573
      for key, value in self.__dict__.iteritems()]
-
 
62574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
62575
 
-
 
62576
  def __eq__(self, other):
-
 
62577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
62578
 
-
 
62579
  def __ne__(self, other):
-
 
62580
    return not (self == other)
-
 
62581
 
-
 
62582
class markOrderForRegisteredGstInvoice_result:
-
 
62583
  """
-
 
62584
  Attributes:
-
 
62585
   - success
-
 
62586
  """
-
 
62587
 
-
 
62588
  thrift_spec = (
-
 
62589
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
62590
  )
-
 
62591
 
-
 
62592
  def __init__(self, success=None,):
-
 
62593
    self.success = success
-
 
62594
 
-
 
62595
  def read(self, iprot):
-
 
62596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
62597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
62598
      return
-
 
62599
    iprot.readStructBegin()
-
 
62600
    while True:
-
 
62601
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
62602
      if ftype == TType.STOP:
-
 
62603
        break
-
 
62604
      if fid == 0:
-
 
62605
        if ftype == TType.BOOL:
-
 
62606
          self.success = iprot.readBool();
-
 
62607
        else:
-
 
62608
          iprot.skip(ftype)
-
 
62609
      else:
-
 
62610
        iprot.skip(ftype)
-
 
62611
      iprot.readFieldEnd()
-
 
62612
    iprot.readStructEnd()
-
 
62613
 
-
 
62614
  def write(self, oprot):
-
 
62615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
62616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
62617
      return
-
 
62618
    oprot.writeStructBegin('markOrderForRegisteredGstInvoice_result')
-
 
62619
    if self.success is not None:
-
 
62620
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
62621
      oprot.writeBool(self.success)
-
 
62622
      oprot.writeFieldEnd()
-
 
62623
    oprot.writeFieldStop()
-
 
62624
    oprot.writeStructEnd()
-
 
62625
 
-
 
62626
  def validate(self):
62455
    return
62627
    return
62456
 
62628
 
62457
 
62629
 
62458
  def __repr__(self):
62630
  def __repr__(self):
62459
    L = ['%s=%r' % (key, value)
62631
    L = ['%s=%r' % (key, value)