Subversion Repositories SmartDukaan

Rev

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

Rev 23152 Rev 23306
Line 1427... Line 1427...
1427
    Parameters:
1427
    Parameters:
1428
     - itemIds
1428
     - itemIds
1429
    """
1429
    """
1430
    pass
1430
    pass
1431
 
1431
 
-
 
1432
  def persistStateGstRate(self, stateGstRate):
-
 
1433
    """
-
 
1434
    Parameters:
-
 
1435
     - stateGstRate
-
 
1436
    """
-
 
1437
    pass
-
 
1438
 
1432
  def getInterStateGstRates(self, ):
1439
  def getInterStateGstRates(self, ):
1433
    pass
1440
    pass
1434
 
1441
 
1435
  def getHsnCodesByCategory(self, categoryId):
1442
  def getHsnCodesByCategory(self, categoryId):
1436
    """
1443
    """
Line 7633... Line 7640...
7633
    self._iprot.readMessageEnd()
7640
    self._iprot.readMessageEnd()
7634
    if result.success is not None:
7641
    if result.success is not None:
7635
      return result.success
7642
      return result.success
7636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
7643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
7637
 
7644
 
-
 
7645
  def persistStateGstRate(self, stateGstRate):
-
 
7646
    """
-
 
7647
    Parameters:
-
 
7648
     - stateGstRate
-
 
7649
    """
-
 
7650
    self.send_persistStateGstRate(stateGstRate)
-
 
7651
    self.recv_persistStateGstRate()
-
 
7652
 
-
 
7653
  def send_persistStateGstRate(self, stateGstRate):
-
 
7654
    self._oprot.writeMessageBegin('persistStateGstRate', TMessageType.CALL, self._seqid)
-
 
7655
    args = persistStateGstRate_args()
-
 
7656
    args.stateGstRate = stateGstRate
-
 
7657
    args.write(self._oprot)
-
 
7658
    self._oprot.writeMessageEnd()
-
 
7659
    self._oprot.trans.flush()
-
 
7660
 
-
 
7661
  def recv_persistStateGstRate(self, ):
-
 
7662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7663
    if mtype == TMessageType.EXCEPTION:
-
 
7664
      x = TApplicationException()
-
 
7665
      x.read(self._iprot)
-
 
7666
      self._iprot.readMessageEnd()
-
 
7667
      raise x
-
 
7668
    result = persistStateGstRate_result()
-
 
7669
    result.read(self._iprot)
-
 
7670
    self._iprot.readMessageEnd()
-
 
7671
    return
-
 
7672
 
7638
  def getInterStateGstRates(self, ):
7673
  def getInterStateGstRates(self, ):
7639
    self.send_getInterStateGstRates()
7674
    self.send_getInterStateGstRates()
7640
    return self.recv_getInterStateGstRates()
7675
    return self.recv_getInterStateGstRates()
7641
 
7676
 
7642
  def send_getInterStateGstRates(self, ):
7677
  def send_getInterStateGstRates(self, ):
Line 7931... Line 7966...
7931
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7966
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7932
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7967
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7933
    self._processMap["getGstRatesByState"] = Processor.process_getGstRatesByState
7968
    self._processMap["getGstRatesByState"] = Processor.process_getGstRatesByState
7934
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
7969
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
7935
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
7970
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
-
 
7971
    self._processMap["persistStateGstRate"] = Processor.process_persistStateGstRate
7936
    self._processMap["getInterStateGstRates"] = Processor.process_getInterStateGstRates
7972
    self._processMap["getInterStateGstRates"] = Processor.process_getInterStateGstRates
7937
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7973
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7938
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7974
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7939
 
7975
 
7940
  def process(self, iprot, oprot):
7976
  def process(self, iprot, oprot):
Line 10339... Line 10375...
10339
    oprot.writeMessageBegin("getIgstTaxRate", TMessageType.REPLY, seqid)
10375
    oprot.writeMessageBegin("getIgstTaxRate", TMessageType.REPLY, seqid)
10340
    result.write(oprot)
10376
    result.write(oprot)
10341
    oprot.writeMessageEnd()
10377
    oprot.writeMessageEnd()
10342
    oprot.trans.flush()
10378
    oprot.trans.flush()
10343
 
10379
 
-
 
10380
  def process_persistStateGstRate(self, seqid, iprot, oprot):
-
 
10381
    args = persistStateGstRate_args()
-
 
10382
    args.read(iprot)
-
 
10383
    iprot.readMessageEnd()
-
 
10384
    result = persistStateGstRate_result()
-
 
10385
    self._handler.persistStateGstRate(args.stateGstRate)
-
 
10386
    oprot.writeMessageBegin("persistStateGstRate", TMessageType.REPLY, seqid)
-
 
10387
    result.write(oprot)
-
 
10388
    oprot.writeMessageEnd()
-
 
10389
    oprot.trans.flush()
-
 
10390
 
10344
  def process_getInterStateGstRates(self, seqid, iprot, oprot):
10391
  def process_getInterStateGstRates(self, seqid, iprot, oprot):
10345
    args = getInterStateGstRates_args()
10392
    args = getInterStateGstRates_args()
10346
    args.read(iprot)
10393
    args.read(iprot)
10347
    iprot.readMessageEnd()
10394
    iprot.readMessageEnd()
10348
    result = getInterStateGstRates_result()
10395
    result = getInterStateGstRates_result()
Line 36311... Line 36358...
36311
    oprot.writeFieldStop()
36358
    oprot.writeFieldStop()
36312
    oprot.writeStructEnd()
36359
    oprot.writeStructEnd()
36313
 
36360
 
36314
  def validate(self):
36361
  def validate(self):
36315
    return
36362
    return
-
 
36363
 
-
 
36364
 
-
 
36365
  def __repr__(self):
-
 
36366
    L = ['%s=%r' % (key, value)
-
 
36367
      for key, value in self.__dict__.iteritems()]
-
 
36368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36369
 
-
 
36370
  def __eq__(self, other):
-
 
36371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36372
 
-
 
36373
  def __ne__(self, other):
-
 
36374
    return not (self == other)
-
 
36375
 
-
 
36376
class persistStateGstRate_args:
-
 
36377
  """
-
 
36378
  Attributes:
-
 
36379
   - stateGstRate
-
 
36380
  """
-
 
36381
 
-
 
36382
  thrift_spec = (
-
 
36383
    None, # 0
-
 
36384
    (1, TType.STRUCT, 'stateGstRate', (StateGstRate, StateGstRate.thrift_spec), None, ), # 1
-
 
36385
  )
-
 
36386
 
-
 
36387
  def __init__(self, stateGstRate=None,):
-
 
36388
    self.stateGstRate = stateGstRate
-
 
36389
 
-
 
36390
  def read(self, iprot):
-
 
36391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36393
      return
-
 
36394
    iprot.readStructBegin()
-
 
36395
    while True:
-
 
36396
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36397
      if ftype == TType.STOP:
-
 
36398
        break
-
 
36399
      if fid == 1:
-
 
36400
        if ftype == TType.STRUCT:
-
 
36401
          self.stateGstRate = StateGstRate()
-
 
36402
          self.stateGstRate.read(iprot)
-
 
36403
        else:
-
 
36404
          iprot.skip(ftype)
-
 
36405
      else:
-
 
36406
        iprot.skip(ftype)
-
 
36407
      iprot.readFieldEnd()
-
 
36408
    iprot.readStructEnd()
-
 
36409
 
-
 
36410
  def write(self, oprot):
-
 
36411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36413
      return
-
 
36414
    oprot.writeStructBegin('persistStateGstRate_args')
-
 
36415
    if self.stateGstRate is not None:
-
 
36416
      oprot.writeFieldBegin('stateGstRate', TType.STRUCT, 1)
-
 
36417
      self.stateGstRate.write(oprot)
-
 
36418
      oprot.writeFieldEnd()
-
 
36419
    oprot.writeFieldStop()
-
 
36420
    oprot.writeStructEnd()
-
 
36421
 
-
 
36422
  def validate(self):
-
 
36423
    return
-
 
36424
 
-
 
36425
 
-
 
36426
  def __repr__(self):
-
 
36427
    L = ['%s=%r' % (key, value)
-
 
36428
      for key, value in self.__dict__.iteritems()]
-
 
36429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36430
 
-
 
36431
  def __eq__(self, other):
-
 
36432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36433
 
-
 
36434
  def __ne__(self, other):
-
 
36435
    return not (self == other)
-
 
36436
 
-
 
36437
class persistStateGstRate_result:
-
 
36438
 
-
 
36439
  thrift_spec = (
-
 
36440
  )
-
 
36441
 
-
 
36442
  def read(self, iprot):
-
 
36443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36445
      return
-
 
36446
    iprot.readStructBegin()
-
 
36447
    while True:
-
 
36448
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36449
      if ftype == TType.STOP:
-
 
36450
        break
-
 
36451
      else:
-
 
36452
        iprot.skip(ftype)
-
 
36453
      iprot.readFieldEnd()
-
 
36454
    iprot.readStructEnd()
-
 
36455
 
-
 
36456
  def write(self, oprot):
-
 
36457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36459
      return
-
 
36460
    oprot.writeStructBegin('persistStateGstRate_result')
-
 
36461
    oprot.writeFieldStop()
-
 
36462
    oprot.writeStructEnd()
-
 
36463
 
-
 
36464
  def validate(self):
-
 
36465
    return
36316
 
36466
 
36317
 
36467
 
36318
  def __repr__(self):
36468
  def __repr__(self):
36319
    L = ['%s=%r' % (key, value)
36469
    L = ['%s=%r' % (key, value)
36320
      for key, value in self.__dict__.iteritems()]
36470
      for key, value in self.__dict__.iteritems()]