Subversion Repositories SmartDukaan

Rev

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

Rev 22452 Rev 22749
Line 2814... Line 2814...
2814
    Parameters:
2814
    Parameters:
2815
     - tranasction_ids
2815
     - tranasction_ids
2816
    """
2816
    """
2817
    pass
2817
    pass
2818
 
2818
 
-
 
2819
  def isShipmentCod(self, logisticsTransactionId):
-
 
2820
    """
-
 
2821
    Parameters:
-
 
2822
     - logisticsTransactionId
-
 
2823
    """
-
 
2824
    pass
-
 
2825
 
2819
 
2826
 
2820
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2827
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821
  def __init__(self, iprot, oprot=None):
2828
  def __init__(self, iprot, oprot=None):
2822
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2829
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2823
 
2830
 
Line 13517... Line 13524...
13517
    self._iprot.readMessageEnd()
13524
    self._iprot.readMessageEnd()
13518
    if result.success is not None:
13525
    if result.success is not None:
13519
      return result.success
13526
      return result.success
13520
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderForRegisteredGstInvoice failed: unknown result");
13527
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderForRegisteredGstInvoice failed: unknown result");
13521
 
13528
 
-
 
13529
  def isShipmentCod(self, logisticsTransactionId):
-
 
13530
    """
-
 
13531
    Parameters:
-
 
13532
     - logisticsTransactionId
-
 
13533
    """
-
 
13534
    self.send_isShipmentCod(logisticsTransactionId)
-
 
13535
    return self.recv_isShipmentCod()
-
 
13536
 
-
 
13537
  def send_isShipmentCod(self, logisticsTransactionId):
-
 
13538
    self._oprot.writeMessageBegin('isShipmentCod', TMessageType.CALL, self._seqid)
-
 
13539
    args = isShipmentCod_args()
-
 
13540
    args.logisticsTransactionId = logisticsTransactionId
-
 
13541
    args.write(self._oprot)
-
 
13542
    self._oprot.writeMessageEnd()
-
 
13543
    self._oprot.trans.flush()
-
 
13544
 
-
 
13545
  def recv_isShipmentCod(self, ):
-
 
13546
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
13547
    if mtype == TMessageType.EXCEPTION:
-
 
13548
      x = TApplicationException()
-
 
13549
      x.read(self._iprot)
-
 
13550
      self._iprot.readMessageEnd()
-
 
13551
      raise x
-
 
13552
    result = isShipmentCod_result()
-
 
13553
    result.read(self._iprot)
-
 
13554
    self._iprot.readMessageEnd()
-
 
13555
    if result.success is not None:
-
 
13556
      return result.success
-
 
13557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isShipmentCod failed: unknown result");
-
 
13558
 
13522
 
13559
 
13523
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13560
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13524
  def __init__(self, handler):
13561
  def __init__(self, handler):
13525
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13562
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13526
    self._processMap["createTransaction"] = Processor.process_createTransaction
13563
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 13844... Line 13881...
13844
    self._processMap["getStatsForAssociates"] = Processor.process_getStatsForAssociates
13881
    self._processMap["getStatsForAssociates"] = Processor.process_getStatsForAssociates
13845
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13882
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13846
    self._processMap["creditUserWallet"] = Processor.process_creditUserWallet
13883
    self._processMap["creditUserWallet"] = Processor.process_creditUserWallet
13847
    self._processMap["getPaginatedRechargeOrders"] = Processor.process_getPaginatedRechargeOrders
13884
    self._processMap["getPaginatedRechargeOrders"] = Processor.process_getPaginatedRechargeOrders
13848
    self._processMap["markOrderForRegisteredGstInvoice"] = Processor.process_markOrderForRegisteredGstInvoice
13885
    self._processMap["markOrderForRegisteredGstInvoice"] = Processor.process_markOrderForRegisteredGstInvoice
-
 
13886
    self._processMap["isShipmentCod"] = Processor.process_isShipmentCod
13849
 
13887
 
13850
  def process(self, iprot, oprot):
13888
  def process(self, iprot, oprot):
13851
    (name, type, seqid) = iprot.readMessageBegin()
13889
    (name, type, seqid) = iprot.readMessageBegin()
13852
    if name not in self._processMap:
13890
    if name not in self._processMap:
13853
      iprot.skip(TType.STRUCT)
13891
      iprot.skip(TType.STRUCT)
Line 17830... Line 17868...
17830
    oprot.writeMessageBegin("markOrderForRegisteredGstInvoice", TMessageType.REPLY, seqid)
17868
    oprot.writeMessageBegin("markOrderForRegisteredGstInvoice", TMessageType.REPLY, seqid)
17831
    result.write(oprot)
17869
    result.write(oprot)
17832
    oprot.writeMessageEnd()
17870
    oprot.writeMessageEnd()
17833
    oprot.trans.flush()
17871
    oprot.trans.flush()
17834
 
17872
 
-
 
17873
  def process_isShipmentCod(self, seqid, iprot, oprot):
-
 
17874
    args = isShipmentCod_args()
-
 
17875
    args.read(iprot)
-
 
17876
    iprot.readMessageEnd()
-
 
17877
    result = isShipmentCod_result()
-
 
17878
    result.success = self._handler.isShipmentCod(args.logisticsTransactionId)
-
 
17879
    oprot.writeMessageBegin("isShipmentCod", TMessageType.REPLY, seqid)
-
 
17880
    result.write(oprot)
-
 
17881
    oprot.writeMessageEnd()
-
 
17882
    oprot.trans.flush()
-
 
17883
 
17835
 
17884
 
17836
# HELPER FUNCTIONS AND STRUCTURES
17885
# HELPER FUNCTIONS AND STRUCTURES
17837
 
17886
 
17838
class createTransaction_args:
17887
class createTransaction_args:
17839
  """
17888
  """
Line 62619... Line 62668...
62619
    if self.success is not None:
62668
    if self.success is not None:
62620
      oprot.writeFieldBegin('success', TType.BOOL, 0)
62669
      oprot.writeFieldBegin('success', TType.BOOL, 0)
62621
      oprot.writeBool(self.success)
62670
      oprot.writeBool(self.success)
62622
      oprot.writeFieldEnd()
62671
      oprot.writeFieldEnd()
62623
    oprot.writeFieldStop()
62672
    oprot.writeFieldStop()
-
 
62673
    oprot.writeStructEnd()
-
 
62674
 
-
 
62675
  def validate(self):
-
 
62676
    return
-
 
62677
 
-
 
62678
 
-
 
62679
  def __repr__(self):
-
 
62680
    L = ['%s=%r' % (key, value)
-
 
62681
      for key, value in self.__dict__.iteritems()]
-
 
62682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
62683
 
-
 
62684
  def __eq__(self, other):
-
 
62685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
62686
 
-
 
62687
  def __ne__(self, other):
-
 
62688
    return not (self == other)
-
 
62689
 
-
 
62690
class isShipmentCod_args:
-
 
62691
  """
-
 
62692
  Attributes:
-
 
62693
   - logisticsTransactionId
-
 
62694
  """
-
 
62695
 
-
 
62696
  thrift_spec = (
-
 
62697
    None, # 0
-
 
62698
    (1, TType.I64, 'logisticsTransactionId', None, None, ), # 1
-
 
62699
  )
-
 
62700
 
-
 
62701
  def __init__(self, logisticsTransactionId=None,):
-
 
62702
    self.logisticsTransactionId = logisticsTransactionId
-
 
62703
 
-
 
62704
  def read(self, iprot):
-
 
62705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
62706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
62707
      return
-
 
62708
    iprot.readStructBegin()
-
 
62709
    while True:
-
 
62710
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
62711
      if ftype == TType.STOP:
-
 
62712
        break
-
 
62713
      if fid == 1:
-
 
62714
        if ftype == TType.I64:
-
 
62715
          self.logisticsTransactionId = iprot.readI64();
-
 
62716
        else:
-
 
62717
          iprot.skip(ftype)
-
 
62718
      else:
-
 
62719
        iprot.skip(ftype)
-
 
62720
      iprot.readFieldEnd()
-
 
62721
    iprot.readStructEnd()
-
 
62722
 
-
 
62723
  def write(self, oprot):
-
 
62724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
62725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
62726
      return
-
 
62727
    oprot.writeStructBegin('isShipmentCod_args')
-
 
62728
    if self.logisticsTransactionId is not None:
-
 
62729
      oprot.writeFieldBegin('logisticsTransactionId', TType.I64, 1)
-
 
62730
      oprot.writeI64(self.logisticsTransactionId)
-
 
62731
      oprot.writeFieldEnd()
-
 
62732
    oprot.writeFieldStop()
-
 
62733
    oprot.writeStructEnd()
-
 
62734
 
-
 
62735
  def validate(self):
-
 
62736
    return
-
 
62737
 
-
 
62738
 
-
 
62739
  def __repr__(self):
-
 
62740
    L = ['%s=%r' % (key, value)
-
 
62741
      for key, value in self.__dict__.iteritems()]
-
 
62742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
62743
 
-
 
62744
  def __eq__(self, other):
-
 
62745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
62746
 
-
 
62747
  def __ne__(self, other):
-
 
62748
    return not (self == other)
-
 
62749
 
-
 
62750
class isShipmentCod_result:
-
 
62751
  """
-
 
62752
  Attributes:
-
 
62753
   - success
-
 
62754
  """
-
 
62755
 
-
 
62756
  thrift_spec = (
-
 
62757
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
62758
  )
-
 
62759
 
-
 
62760
  def __init__(self, success=None,):
-
 
62761
    self.success = success
-
 
62762
 
-
 
62763
  def read(self, iprot):
-
 
62764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
62765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
62766
      return
-
 
62767
    iprot.readStructBegin()
-
 
62768
    while True:
-
 
62769
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
62770
      if ftype == TType.STOP:
-
 
62771
        break
-
 
62772
      if fid == 0:
-
 
62773
        if ftype == TType.BOOL:
-
 
62774
          self.success = iprot.readBool();
-
 
62775
        else:
-
 
62776
          iprot.skip(ftype)
-
 
62777
      else:
-
 
62778
        iprot.skip(ftype)
-
 
62779
      iprot.readFieldEnd()
-
 
62780
    iprot.readStructEnd()
-
 
62781
 
-
 
62782
  def write(self, oprot):
-
 
62783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
62784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
62785
      return
-
 
62786
    oprot.writeStructBegin('isShipmentCod_result')
-
 
62787
    if self.success is not None:
-
 
62788
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
62789
      oprot.writeBool(self.success)
-
 
62790
      oprot.writeFieldEnd()
-
 
62791
    oprot.writeFieldStop()
62624
    oprot.writeStructEnd()
62792
    oprot.writeStructEnd()
62625
 
62793
 
62626
  def validate(self):
62794
  def validate(self):
62627
    return
62795
    return
62628
 
62796