Subversion Repositories SmartDukaan

Rev

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

Rev 6805 Rev 6821
Line 562... Line 562...
562
     - offset
562
     - offset
563
     - limit
563
     - limit
564
    """
564
    """
565
    pass
565
    pass
566
 
566
 
-
 
567
  def getAllAliveItems(self, ):
-
 
568
    pass
-
 
569
 
567
  def getInsuranceAmount(self, itemId, insurerId, quantity):
570
  def getInsuranceAmount(self, itemId, insurerId, quantity):
568
    """
571
    """
569
    This method returns the insurance amount needed to insure the given item for a given quantity.
572
    This method returns the insurance amount needed to insure the given item for a given quantity.
570
 
573
 
571
    Parameters:
574
    Parameters:
Line 2814... Line 2817...
2814
    self._iprot.readMessageEnd()
2817
    self._iprot.readMessageEnd()
2815
    if result.success is not None:
2818
    if result.success is not None:
2816
      return result.success
2819
      return result.success
2817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2820
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2818
 
2821
 
-
 
2822
  def getAllAliveItems(self, ):
-
 
2823
    self.send_getAllAliveItems()
-
 
2824
    return self.recv_getAllAliveItems()
-
 
2825
 
-
 
2826
  def send_getAllAliveItems(self, ):
-
 
2827
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
-
 
2828
    args = getAllAliveItems_args()
-
 
2829
    args.write(self._oprot)
-
 
2830
    self._oprot.writeMessageEnd()
-
 
2831
    self._oprot.trans.flush()
-
 
2832
 
-
 
2833
  def recv_getAllAliveItems(self, ):
-
 
2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2835
    if mtype == TMessageType.EXCEPTION:
-
 
2836
      x = TApplicationException()
-
 
2837
      x.read(self._iprot)
-
 
2838
      self._iprot.readMessageEnd()
-
 
2839
      raise x
-
 
2840
    result = getAllAliveItems_result()
-
 
2841
    result.read(self._iprot)
-
 
2842
    self._iprot.readMessageEnd()
-
 
2843
    if result.success is not None:
-
 
2844
      return result.success
-
 
2845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
-
 
2846
 
2819
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2847
  def getInsuranceAmount(self, itemId, insurerId, quantity):
2820
    """
2848
    """
2821
    This method returns the insurance amount needed to insure the given item for a given quantity.
2849
    This method returns the insurance amount needed to insure the given item for a given quantity.
2822
 
2850
 
2823
    Parameters:
2851
    Parameters:
Line 2953... Line 2981...
2953
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
2981
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
2954
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
2982
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
2955
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
2983
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
2956
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
2984
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
2957
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
2985
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
-
 
2986
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
2958
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
2987
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
2959
    self._processMap["getInsurer"] = Processor.process_getInsurer
2988
    self._processMap["getInsurer"] = Processor.process_getInsurer
2960
 
2989
 
2961
  def process(self, iprot, oprot):
2990
  def process(self, iprot, oprot):
2962
    (name, type, seqid) = iprot.readMessageBegin()
2991
    (name, type, seqid) = iprot.readMessageBegin()
Line 3841... Line 3870...
3841
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3870
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
3842
    result.write(oprot)
3871
    result.write(oprot)
3843
    oprot.writeMessageEnd()
3872
    oprot.writeMessageEnd()
3844
    oprot.trans.flush()
3873
    oprot.trans.flush()
3845
 
3874
 
-
 
3875
  def process_getAllAliveItems(self, seqid, iprot, oprot):
-
 
3876
    args = getAllAliveItems_args()
-
 
3877
    args.read(iprot)
-
 
3878
    iprot.readMessageEnd()
-
 
3879
    result = getAllAliveItems_result()
-
 
3880
    result.success = self._handler.getAllAliveItems()
-
 
3881
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
-
 
3882
    result.write(oprot)
-
 
3883
    oprot.writeMessageEnd()
-
 
3884
    oprot.trans.flush()
-
 
3885
 
3846
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
3886
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
3847
    args = getInsuranceAmount_args()
3887
    args = getInsuranceAmount_args()
3848
    args.read(iprot)
3888
    args.read(iprot)
3849
    iprot.readMessageEnd()
3889
    iprot.readMessageEnd()
3850
    result = getInsuranceAmount_result()
3890
    result = getInsuranceAmount_result()
Line 13063... Line 13103...
13063
      oprot.writeListEnd()
13103
      oprot.writeListEnd()
13064
      oprot.writeFieldEnd()
13104
      oprot.writeFieldEnd()
13065
    oprot.writeFieldStop()
13105
    oprot.writeFieldStop()
13066
    oprot.writeStructEnd()
13106
    oprot.writeStructEnd()
13067
 
13107
 
-
 
13108
  def validate(self):
-
 
13109
    return
-
 
13110
 
-
 
13111
 
-
 
13112
  def __repr__(self):
-
 
13113
    L = ['%s=%r' % (key, value)
-
 
13114
      for key, value in self.__dict__.iteritems()]
-
 
13115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13116
 
-
 
13117
  def __eq__(self, other):
-
 
13118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13119
 
-
 
13120
  def __ne__(self, other):
-
 
13121
    return not (self == other)
-
 
13122
 
-
 
13123
class getAllAliveItems_args:
-
 
13124
 
-
 
13125
  thrift_spec = (
-
 
13126
  )
-
 
13127
 
-
 
13128
  def read(self, iprot):
-
 
13129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13131
      return
-
 
13132
    iprot.readStructBegin()
-
 
13133
    while True:
-
 
13134
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13135
      if ftype == TType.STOP:
-
 
13136
        break
-
 
13137
      else:
-
 
13138
        iprot.skip(ftype)
-
 
13139
      iprot.readFieldEnd()
-
 
13140
    iprot.readStructEnd()
-
 
13141
 
-
 
13142
  def write(self, oprot):
-
 
13143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13145
      return
-
 
13146
    oprot.writeStructBegin('getAllAliveItems_args')
-
 
13147
    oprot.writeFieldStop()
-
 
13148
    oprot.writeStructEnd()
-
 
13149
 
-
 
13150
  def validate(self):
-
 
13151
    return
-
 
13152
 
-
 
13153
 
-
 
13154
  def __repr__(self):
-
 
13155
    L = ['%s=%r' % (key, value)
-
 
13156
      for key, value in self.__dict__.iteritems()]
-
 
13157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13158
 
-
 
13159
  def __eq__(self, other):
-
 
13160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13161
 
-
 
13162
  def __ne__(self, other):
-
 
13163
    return not (self == other)
-
 
13164
 
-
 
13165
class getAllAliveItems_result:
-
 
13166
  """
-
 
13167
  Attributes:
-
 
13168
   - success
-
 
13169
  """
-
 
13170
 
-
 
13171
  thrift_spec = (
-
 
13172
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
-
 
13173
  )
-
 
13174
 
-
 
13175
  def __init__(self, success=None,):
-
 
13176
    self.success = success
-
 
13177
 
-
 
13178
  def read(self, iprot):
-
 
13179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13181
      return
-
 
13182
    iprot.readStructBegin()
-
 
13183
    while True:
-
 
13184
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13185
      if ftype == TType.STOP:
-
 
13186
        break
-
 
13187
      if fid == 0:
-
 
13188
        if ftype == TType.LIST:
-
 
13189
          self.success = []
-
 
13190
          (_etype257, _size254) = iprot.readListBegin()
-
 
13191
          for _i258 in xrange(_size254):
-
 
13192
            _elem259 = Item()
-
 
13193
            _elem259.read(iprot)
-
 
13194
            self.success.append(_elem259)
-
 
13195
          iprot.readListEnd()
-
 
13196
        else:
-
 
13197
          iprot.skip(ftype)
-
 
13198
      else:
-
 
13199
        iprot.skip(ftype)
-
 
13200
      iprot.readFieldEnd()
-
 
13201
    iprot.readStructEnd()
-
 
13202
 
-
 
13203
  def write(self, oprot):
-
 
13204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13206
      return
-
 
13207
    oprot.writeStructBegin('getAllAliveItems_result')
-
 
13208
    if self.success is not None:
-
 
13209
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
13210
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
13211
      for iter260 in self.success:
-
 
13212
        iter260.write(oprot)
-
 
13213
      oprot.writeListEnd()
-
 
13214
      oprot.writeFieldEnd()
-
 
13215
    oprot.writeFieldStop()
-
 
13216
    oprot.writeStructEnd()
-
 
13217
 
13068
  def validate(self):
13218
  def validate(self):
13069
    return
13219
    return
13070
 
13220
 
13071
 
13221
 
13072
  def __repr__(self):
13222
  def __repr__(self):