Subversion Repositories SmartDukaan

Rev

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

Rev 22754 Rev 23069
Line 2821... Line 2821...
2821
    Parameters:
2821
    Parameters:
2822
     - logisticsTransactionId
2822
     - logisticsTransactionId
2823
    """
2823
    """
2824
    pass
2824
    pass
2825
 
2825
 
-
 
2826
  def getInTransitOrdersOnDate(self, closingDate):
-
 
2827
    """
-
 
2828
    Parameters:
-
 
2829
     - closingDate
-
 
2830
    """
-
 
2831
    pass
-
 
2832
 
-
 
2833
  def getInTransitOrdersOnDateByItemId(self, closingDate, itemId):
-
 
2834
    """
-
 
2835
    Parameters:
-
 
2836
     - closingDate
-
 
2837
     - itemId
-
 
2838
    """
-
 
2839
    pass
-
 
2840
 
2826
 
2841
 
2827
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2842
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2828
  def __init__(self, iprot, oprot=None):
2843
  def __init__(self, iprot, oprot=None):
2829
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2844
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2830
 
2845
 
Line 13554... Line 13569...
13554
    self._iprot.readMessageEnd()
13569
    self._iprot.readMessageEnd()
13555
    if result.success is not None:
13570
    if result.success is not None:
13556
      return result.success
13571
      return result.success
13557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isShipmentCod failed: unknown result");
13572
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isShipmentCod failed: unknown result");
13558
 
13573
 
-
 
13574
  def getInTransitOrdersOnDate(self, closingDate):
-
 
13575
    """
-
 
13576
    Parameters:
-
 
13577
     - closingDate
-
 
13578
    """
-
 
13579
    self.send_getInTransitOrdersOnDate(closingDate)
-
 
13580
    return self.recv_getInTransitOrdersOnDate()
-
 
13581
 
-
 
13582
  def send_getInTransitOrdersOnDate(self, closingDate):
-
 
13583
    self._oprot.writeMessageBegin('getInTransitOrdersOnDate', TMessageType.CALL, self._seqid)
-
 
13584
    args = getInTransitOrdersOnDate_args()
-
 
13585
    args.closingDate = closingDate
-
 
13586
    args.write(self._oprot)
-
 
13587
    self._oprot.writeMessageEnd()
-
 
13588
    self._oprot.trans.flush()
-
 
13589
 
-
 
13590
  def recv_getInTransitOrdersOnDate(self, ):
-
 
13591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
13592
    if mtype == TMessageType.EXCEPTION:
-
 
13593
      x = TApplicationException()
-
 
13594
      x.read(self._iprot)
-
 
13595
      self._iprot.readMessageEnd()
-
 
13596
      raise x
-
 
13597
    result = getInTransitOrdersOnDate_result()
-
 
13598
    result.read(self._iprot)
-
 
13599
    self._iprot.readMessageEnd()
-
 
13600
    if result.success is not None:
-
 
13601
      return result.success
-
 
13602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitOrdersOnDate failed: unknown result");
-
 
13603
 
-
 
13604
  def getInTransitOrdersOnDateByItemId(self, closingDate, itemId):
-
 
13605
    """
-
 
13606
    Parameters:
-
 
13607
     - closingDate
-
 
13608
     - itemId
-
 
13609
    """
-
 
13610
    self.send_getInTransitOrdersOnDateByItemId(closingDate, itemId)
-
 
13611
    return self.recv_getInTransitOrdersOnDateByItemId()
-
 
13612
 
-
 
13613
  def send_getInTransitOrdersOnDateByItemId(self, closingDate, itemId):
-
 
13614
    self._oprot.writeMessageBegin('getInTransitOrdersOnDateByItemId', TMessageType.CALL, self._seqid)
-
 
13615
    args = getInTransitOrdersOnDateByItemId_args()
-
 
13616
    args.closingDate = closingDate
-
 
13617
    args.itemId = itemId
-
 
13618
    args.write(self._oprot)
-
 
13619
    self._oprot.writeMessageEnd()
-
 
13620
    self._oprot.trans.flush()
-
 
13621
 
-
 
13622
  def recv_getInTransitOrdersOnDateByItemId(self, ):
-
 
13623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
13624
    if mtype == TMessageType.EXCEPTION:
-
 
13625
      x = TApplicationException()
-
 
13626
      x.read(self._iprot)
-
 
13627
      self._iprot.readMessageEnd()
-
 
13628
      raise x
-
 
13629
    result = getInTransitOrdersOnDateByItemId_result()
-
 
13630
    result.read(self._iprot)
-
 
13631
    self._iprot.readMessageEnd()
-
 
13632
    if result.success is not None:
-
 
13633
      return result.success
-
 
13634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitOrdersOnDateByItemId failed: unknown result");
-
 
13635
 
13559
 
13636
 
13560
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13637
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13561
  def __init__(self, handler):
13638
  def __init__(self, handler):
13562
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13639
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13563
    self._processMap["createTransaction"] = Processor.process_createTransaction
13640
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 13882... Line 13959...
13882
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13959
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13883
    self._processMap["creditUserWallet"] = Processor.process_creditUserWallet
13960
    self._processMap["creditUserWallet"] = Processor.process_creditUserWallet
13884
    self._processMap["getPaginatedRechargeOrders"] = Processor.process_getPaginatedRechargeOrders
13961
    self._processMap["getPaginatedRechargeOrders"] = Processor.process_getPaginatedRechargeOrders
13885
    self._processMap["markOrderForRegisteredGstInvoice"] = Processor.process_markOrderForRegisteredGstInvoice
13962
    self._processMap["markOrderForRegisteredGstInvoice"] = Processor.process_markOrderForRegisteredGstInvoice
13886
    self._processMap["isShipmentCod"] = Processor.process_isShipmentCod
13963
    self._processMap["isShipmentCod"] = Processor.process_isShipmentCod
-
 
13964
    self._processMap["getInTransitOrdersOnDate"] = Processor.process_getInTransitOrdersOnDate
-
 
13965
    self._processMap["getInTransitOrdersOnDateByItemId"] = Processor.process_getInTransitOrdersOnDateByItemId
13887
 
13966
 
13888
  def process(self, iprot, oprot):
13967
  def process(self, iprot, oprot):
13889
    (name, type, seqid) = iprot.readMessageBegin()
13968
    (name, type, seqid) = iprot.readMessageBegin()
13890
    if name not in self._processMap:
13969
    if name not in self._processMap:
13891
      iprot.skip(TType.STRUCT)
13970
      iprot.skip(TType.STRUCT)
Line 17879... Line 17958...
17879
    oprot.writeMessageBegin("isShipmentCod", TMessageType.REPLY, seqid)
17958
    oprot.writeMessageBegin("isShipmentCod", TMessageType.REPLY, seqid)
17880
    result.write(oprot)
17959
    result.write(oprot)
17881
    oprot.writeMessageEnd()
17960
    oprot.writeMessageEnd()
17882
    oprot.trans.flush()
17961
    oprot.trans.flush()
17883
 
17962
 
-
 
17963
  def process_getInTransitOrdersOnDate(self, seqid, iprot, oprot):
-
 
17964
    args = getInTransitOrdersOnDate_args()
-
 
17965
    args.read(iprot)
-
 
17966
    iprot.readMessageEnd()
-
 
17967
    result = getInTransitOrdersOnDate_result()
-
 
17968
    result.success = self._handler.getInTransitOrdersOnDate(args.closingDate)
-
 
17969
    oprot.writeMessageBegin("getInTransitOrdersOnDate", TMessageType.REPLY, seqid)
-
 
17970
    result.write(oprot)
-
 
17971
    oprot.writeMessageEnd()
-
 
17972
    oprot.trans.flush()
-
 
17973
 
-
 
17974
  def process_getInTransitOrdersOnDateByItemId(self, seqid, iprot, oprot):
-
 
17975
    args = getInTransitOrdersOnDateByItemId_args()
-
 
17976
    args.read(iprot)
-
 
17977
    iprot.readMessageEnd()
-
 
17978
    result = getInTransitOrdersOnDateByItemId_result()
-
 
17979
    result.success = self._handler.getInTransitOrdersOnDateByItemId(args.closingDate, args.itemId)
-
 
17980
    oprot.writeMessageBegin("getInTransitOrdersOnDateByItemId", TMessageType.REPLY, seqid)
-
 
17981
    result.write(oprot)
-
 
17982
    oprot.writeMessageEnd()
-
 
17983
    oprot.trans.flush()
-
 
17984
 
17884
 
17985
 
17885
# HELPER FUNCTIONS AND STRUCTURES
17986
# HELPER FUNCTIONS AND STRUCTURES
17886
 
17987
 
17887
class createTransaction_args:
17988
class createTransaction_args:
17888
  """
17989
  """
Line 62790... Line 62891...
62790
      oprot.writeFieldEnd()
62891
      oprot.writeFieldEnd()
62791
    oprot.writeFieldStop()
62892
    oprot.writeFieldStop()
62792
    oprot.writeStructEnd()
62893
    oprot.writeStructEnd()
62793
 
62894
 
62794
  def validate(self):
62895
  def validate(self):
-
 
62896
    return
-
 
62897
 
-
 
62898
 
-
 
62899
  def __repr__(self):
-
 
62900
    L = ['%s=%r' % (key, value)
-
 
62901
      for key, value in self.__dict__.iteritems()]
-
 
62902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
62903
 
-
 
62904
  def __eq__(self, other):
-
 
62905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
62906
 
-
 
62907
  def __ne__(self, other):
-
 
62908
    return not (self == other)
-
 
62909
 
-
 
62910
class getInTransitOrdersOnDate_args:
-
 
62911
  """
-
 
62912
  Attributes:
-
 
62913
   - closingDate
-
 
62914
  """
-
 
62915
 
-
 
62916
  thrift_spec = (
-
 
62917
    None, # 0
-
 
62918
    (1, TType.I64, 'closingDate', None, None, ), # 1
-
 
62919
  )
-
 
62920
 
-
 
62921
  def __init__(self, closingDate=None,):
-
 
62922
    self.closingDate = closingDate
-
 
62923
 
-
 
62924
  def read(self, iprot):
-
 
62925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
62926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
62927
      return
-
 
62928
    iprot.readStructBegin()
-
 
62929
    while True:
-
 
62930
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
62931
      if ftype == TType.STOP:
-
 
62932
        break
-
 
62933
      if fid == 1:
-
 
62934
        if ftype == TType.I64:
-
 
62935
          self.closingDate = iprot.readI64();
-
 
62936
        else:
-
 
62937
          iprot.skip(ftype)
-
 
62938
      else:
-
 
62939
        iprot.skip(ftype)
-
 
62940
      iprot.readFieldEnd()
-
 
62941
    iprot.readStructEnd()
-
 
62942
 
-
 
62943
  def write(self, oprot):
-
 
62944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
62945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
62946
      return
-
 
62947
    oprot.writeStructBegin('getInTransitOrdersOnDate_args')
-
 
62948
    if self.closingDate is not None:
-
 
62949
      oprot.writeFieldBegin('closingDate', TType.I64, 1)
-
 
62950
      oprot.writeI64(self.closingDate)
-
 
62951
      oprot.writeFieldEnd()
-
 
62952
    oprot.writeFieldStop()
-
 
62953
    oprot.writeStructEnd()
-
 
62954
 
-
 
62955
  def validate(self):
-
 
62956
    return
-
 
62957
 
-
 
62958
 
-
 
62959
  def __repr__(self):
-
 
62960
    L = ['%s=%r' % (key, value)
-
 
62961
      for key, value in self.__dict__.iteritems()]
-
 
62962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
62963
 
-
 
62964
  def __eq__(self, other):
-
 
62965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
62966
 
-
 
62967
  def __ne__(self, other):
-
 
62968
    return not (self == other)
-
 
62969
 
-
 
62970
class getInTransitOrdersOnDate_result:
-
 
62971
  """
-
 
62972
  Attributes:
-
 
62973
   - success
-
 
62974
  """
-
 
62975
 
-
 
62976
  thrift_spec = (
-
 
62977
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
62978
  )
-
 
62979
 
-
 
62980
  def __init__(self, success=None,):
-
 
62981
    self.success = success
-
 
62982
 
-
 
62983
  def read(self, iprot):
-
 
62984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
62985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
62986
      return
-
 
62987
    iprot.readStructBegin()
-
 
62988
    while True:
-
 
62989
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
62990
      if ftype == TType.STOP:
-
 
62991
        break
-
 
62992
      if fid == 0:
-
 
62993
        if ftype == TType.LIST:
-
 
62994
          self.success = []
-
 
62995
          (_etype1563, _size1560) = iprot.readListBegin()
-
 
62996
          for _i1564 in xrange(_size1560):
-
 
62997
            _elem1565 = Order()
-
 
62998
            _elem1565.read(iprot)
-
 
62999
            self.success.append(_elem1565)
-
 
63000
          iprot.readListEnd()
-
 
63001
        else:
-
 
63002
          iprot.skip(ftype)
-
 
63003
      else:
-
 
63004
        iprot.skip(ftype)
-
 
63005
      iprot.readFieldEnd()
-
 
63006
    iprot.readStructEnd()
-
 
63007
 
-
 
63008
  def write(self, oprot):
-
 
63009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
63010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
63011
      return
-
 
63012
    oprot.writeStructBegin('getInTransitOrdersOnDate_result')
-
 
63013
    if self.success is not None:
-
 
63014
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
63015
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
63016
      for iter1566 in self.success:
-
 
63017
        iter1566.write(oprot)
-
 
63018
      oprot.writeListEnd()
-
 
63019
      oprot.writeFieldEnd()
-
 
63020
    oprot.writeFieldStop()
-
 
63021
    oprot.writeStructEnd()
-
 
63022
 
-
 
63023
  def validate(self):
-
 
63024
    return
-
 
63025
 
-
 
63026
 
-
 
63027
  def __repr__(self):
-
 
63028
    L = ['%s=%r' % (key, value)
-
 
63029
      for key, value in self.__dict__.iteritems()]
-
 
63030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
63031
 
-
 
63032
  def __eq__(self, other):
-
 
63033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
63034
 
-
 
63035
  def __ne__(self, other):
-
 
63036
    return not (self == other)
-
 
63037
 
-
 
63038
class getInTransitOrdersOnDateByItemId_args:
-
 
63039
  """
-
 
63040
  Attributes:
-
 
63041
   - closingDate
-
 
63042
   - itemId
-
 
63043
  """
-
 
63044
 
-
 
63045
  thrift_spec = (
-
 
63046
    None, # 0
-
 
63047
    (1, TType.I64, 'closingDate', None, None, ), # 1
-
 
63048
    (2, TType.I64, 'itemId', None, None, ), # 2
-
 
63049
  )
-
 
63050
 
-
 
63051
  def __init__(self, closingDate=None, itemId=None,):
-
 
63052
    self.closingDate = closingDate
-
 
63053
    self.itemId = itemId
-
 
63054
 
-
 
63055
  def read(self, iprot):
-
 
63056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
63057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
63058
      return
-
 
63059
    iprot.readStructBegin()
-
 
63060
    while True:
-
 
63061
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
63062
      if ftype == TType.STOP:
-
 
63063
        break
-
 
63064
      if fid == 1:
-
 
63065
        if ftype == TType.I64:
-
 
63066
          self.closingDate = iprot.readI64();
-
 
63067
        else:
-
 
63068
          iprot.skip(ftype)
-
 
63069
      elif fid == 2:
-
 
63070
        if ftype == TType.I64:
-
 
63071
          self.itemId = iprot.readI64();
-
 
63072
        else:
-
 
63073
          iprot.skip(ftype)
-
 
63074
      else:
-
 
63075
        iprot.skip(ftype)
-
 
63076
      iprot.readFieldEnd()
-
 
63077
    iprot.readStructEnd()
-
 
63078
 
-
 
63079
  def write(self, oprot):
-
 
63080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
63081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
63082
      return
-
 
63083
    oprot.writeStructBegin('getInTransitOrdersOnDateByItemId_args')
-
 
63084
    if self.closingDate is not None:
-
 
63085
      oprot.writeFieldBegin('closingDate', TType.I64, 1)
-
 
63086
      oprot.writeI64(self.closingDate)
-
 
63087
      oprot.writeFieldEnd()
-
 
63088
    if self.itemId is not None:
-
 
63089
      oprot.writeFieldBegin('itemId', TType.I64, 2)
-
 
63090
      oprot.writeI64(self.itemId)
-
 
63091
      oprot.writeFieldEnd()
-
 
63092
    oprot.writeFieldStop()
-
 
63093
    oprot.writeStructEnd()
-
 
63094
 
-
 
63095
  def validate(self):
-
 
63096
    return
-
 
63097
 
-
 
63098
 
-
 
63099
  def __repr__(self):
-
 
63100
    L = ['%s=%r' % (key, value)
-
 
63101
      for key, value in self.__dict__.iteritems()]
-
 
63102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
63103
 
-
 
63104
  def __eq__(self, other):
-
 
63105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
63106
 
-
 
63107
  def __ne__(self, other):
-
 
63108
    return not (self == other)
-
 
63109
 
-
 
63110
class getInTransitOrdersOnDateByItemId_result:
-
 
63111
  """
-
 
63112
  Attributes:
-
 
63113
   - success
-
 
63114
  """
-
 
63115
 
-
 
63116
  thrift_spec = (
-
 
63117
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
63118
  )
-
 
63119
 
-
 
63120
  def __init__(self, success=None,):
-
 
63121
    self.success = success
-
 
63122
 
-
 
63123
  def read(self, iprot):
-
 
63124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
63125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
63126
      return
-
 
63127
    iprot.readStructBegin()
-
 
63128
    while True:
-
 
63129
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
63130
      if ftype == TType.STOP:
-
 
63131
        break
-
 
63132
      if fid == 0:
-
 
63133
        if ftype == TType.LIST:
-
 
63134
          self.success = []
-
 
63135
          (_etype1570, _size1567) = iprot.readListBegin()
-
 
63136
          for _i1571 in xrange(_size1567):
-
 
63137
            _elem1572 = Order()
-
 
63138
            _elem1572.read(iprot)
-
 
63139
            self.success.append(_elem1572)
-
 
63140
          iprot.readListEnd()
-
 
63141
        else:
-
 
63142
          iprot.skip(ftype)
-
 
63143
      else:
-
 
63144
        iprot.skip(ftype)
-
 
63145
      iprot.readFieldEnd()
-
 
63146
    iprot.readStructEnd()
-
 
63147
 
-
 
63148
  def write(self, oprot):
-
 
63149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
63150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
63151
      return
-
 
63152
    oprot.writeStructBegin('getInTransitOrdersOnDateByItemId_result')
-
 
63153
    if self.success is not None:
-
 
63154
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
63155
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
63156
      for iter1573 in self.success:
-
 
63157
        iter1573.write(oprot)
-
 
63158
      oprot.writeListEnd()
-
 
63159
      oprot.writeFieldEnd()
-
 
63160
    oprot.writeFieldStop()
-
 
63161
    oprot.writeStructEnd()
-
 
63162
 
-
 
63163
  def validate(self):
62795
    return
63164
    return
62796
 
63165
 
62797
 
63166
 
62798
  def __repr__(self):
63167
  def __repr__(self):
62799
    L = ['%s=%r' % (key, value)
63168
    L = ['%s=%r' % (key, value)