Subversion Repositories SmartDukaan

Rev

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

Rev 23306 Rev 23310
Line 1405... Line 1405...
1405
     - catalogItemIds
1405
     - catalogItemIds
1406
     - itemCondition
1406
     - itemCondition
1407
    """
1407
    """
1408
    pass
1408
    pass
1409
 
1409
 
1410
  def getGstRatesByState(self, stateId):
-
 
1411
    """
-
 
1412
    Parameters:
-
 
1413
     - stateId
-
 
1414
    """
-
 
1415
    pass
-
 
1416
 
-
 
1417
  def getStateTaxRate(self, itemIds, stateId):
1410
  def getStateTaxRate(self, itemIds, stateId):
1418
    """
1411
    """
1419
    Parameters:
1412
    Parameters:
1420
     - itemIds
1413
     - itemIds
1421
     - stateId
1414
     - stateId
Line 1434... Line 1427...
1434
    Parameters:
1427
    Parameters:
1435
     - stateGstRate
1428
     - stateGstRate
1436
    """
1429
    """
1437
    pass
1430
    pass
1438
 
1431
 
1439
  def getInterStateGstRates(self, ):
-
 
1440
    pass
-
 
1441
 
-
 
1442
  def getHsnCodesByCategory(self, categoryId):
1432
  def getHsnCodesByCategory(self, categoryId):
1443
    """
1433
    """
1444
    Parameters:
1434
    Parameters:
1445
     - categoryId
1435
     - categoryId
1446
    """
1436
    """
Line 7546... Line 7536...
7546
      return result.success
7536
      return result.success
7547
    if result.cex is not None:
7537
    if result.cex is not None:
7548
      raise result.cex
7538
      raise result.cex
7549
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarrantyInfoForItemList failed: unknown result");
7539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarrantyInfoForItemList failed: unknown result");
7550
 
7540
 
7551
  def getGstRatesByState(self, stateId):
-
 
7552
    """
-
 
7553
    Parameters:
-
 
7554
     - stateId
-
 
7555
    """
-
 
7556
    self.send_getGstRatesByState(stateId)
-
 
7557
    return self.recv_getGstRatesByState()
-
 
7558
 
-
 
7559
  def send_getGstRatesByState(self, stateId):
-
 
7560
    self._oprot.writeMessageBegin('getGstRatesByState', TMessageType.CALL, self._seqid)
-
 
7561
    args = getGstRatesByState_args()
-
 
7562
    args.stateId = stateId
-
 
7563
    args.write(self._oprot)
-
 
7564
    self._oprot.writeMessageEnd()
-
 
7565
    self._oprot.trans.flush()
-
 
7566
 
-
 
7567
  def recv_getGstRatesByState(self, ):
-
 
7568
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7569
    if mtype == TMessageType.EXCEPTION:
-
 
7570
      x = TApplicationException()
-
 
7571
      x.read(self._iprot)
-
 
7572
      self._iprot.readMessageEnd()
-
 
7573
      raise x
-
 
7574
    result = getGstRatesByState_result()
-
 
7575
    result.read(self._iprot)
-
 
7576
    self._iprot.readMessageEnd()
-
 
7577
    if result.success is not None:
-
 
7578
      return result.success
-
 
7579
    if result.cex is not None:
-
 
7580
      raise result.cex
-
 
7581
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getGstRatesByState failed: unknown result");
-
 
7582
 
-
 
7583
  def getStateTaxRate(self, itemIds, stateId):
7541
  def getStateTaxRate(self, itemIds, stateId):
7584
    """
7542
    """
7585
    Parameters:
7543
    Parameters:
7586
     - itemIds
7544
     - itemIds
7587
     - stateId
7545
     - stateId
Line 7668... Line 7626...
7668
    result = persistStateGstRate_result()
7626
    result = persistStateGstRate_result()
7669
    result.read(self._iprot)
7627
    result.read(self._iprot)
7670
    self._iprot.readMessageEnd()
7628
    self._iprot.readMessageEnd()
7671
    return
7629
    return
7672
 
7630
 
7673
  def getInterStateGstRates(self, ):
-
 
7674
    self.send_getInterStateGstRates()
-
 
7675
    return self.recv_getInterStateGstRates()
-
 
7676
 
-
 
7677
  def send_getInterStateGstRates(self, ):
-
 
7678
    self._oprot.writeMessageBegin('getInterStateGstRates', TMessageType.CALL, self._seqid)
-
 
7679
    args = getInterStateGstRates_args()
-
 
7680
    args.write(self._oprot)
-
 
7681
    self._oprot.writeMessageEnd()
-
 
7682
    self._oprot.trans.flush()
-
 
7683
 
-
 
7684
  def recv_getInterStateGstRates(self, ):
-
 
7685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7686
    if mtype == TMessageType.EXCEPTION:
-
 
7687
      x = TApplicationException()
-
 
7688
      x.read(self._iprot)
-
 
7689
      self._iprot.readMessageEnd()
-
 
7690
      raise x
-
 
7691
    result = getInterStateGstRates_result()
-
 
7692
    result.read(self._iprot)
-
 
7693
    self._iprot.readMessageEnd()
-
 
7694
    if result.success is not None:
-
 
7695
      return result.success
-
 
7696
    if result.cex is not None:
-
 
7697
      raise result.cex
-
 
7698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInterStateGstRates failed: unknown result");
-
 
7699
 
-
 
7700
  def getHsnCodesByCategory(self, categoryId):
7631
  def getHsnCodesByCategory(self, categoryId):
7701
    """
7632
    """
7702
    Parameters:
7633
    Parameters:
7703
     - categoryId
7634
     - categoryId
7704
    """
7635
    """
Line 7963... Line 7894...
7963
    self._processMap["getCartByValue"] = Processor.process_getCartByValue
7894
    self._processMap["getCartByValue"] = Processor.process_getCartByValue
7964
    self._processMap["updateItemPricing"] = Processor.process_updateItemPricing
7895
    self._processMap["updateItemPricing"] = Processor.process_updateItemPricing
7965
    self._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalog
7896
    self._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalog
7966
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7897
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7967
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7898
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7968
    self._processMap["getGstRatesByState"] = Processor.process_getGstRatesByState
-
 
7969
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
7899
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
7970
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
7900
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
7971
    self._processMap["persistStateGstRate"] = Processor.process_persistStateGstRate
7901
    self._processMap["persistStateGstRate"] = Processor.process_persistStateGstRate
7972
    self._processMap["getInterStateGstRates"] = Processor.process_getInterStateGstRates
-
 
7973
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7902
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7974
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7903
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7975
 
7904
 
7976
  def process(self, iprot, oprot):
7905
  def process(self, iprot, oprot):
7977
    (name, type, seqid) = iprot.readMessageBegin()
7906
    (name, type, seqid) = iprot.readMessageBegin()
Line 10339... Line 10268...
10339
    oprot.writeMessageBegin("getWarrantyInfoForItemList", TMessageType.REPLY, seqid)
10268
    oprot.writeMessageBegin("getWarrantyInfoForItemList", TMessageType.REPLY, seqid)
10340
    result.write(oprot)
10269
    result.write(oprot)
10341
    oprot.writeMessageEnd()
10270
    oprot.writeMessageEnd()
10342
    oprot.trans.flush()
10271
    oprot.trans.flush()
10343
 
10272
 
10344
  def process_getGstRatesByState(self, seqid, iprot, oprot):
-
 
10345
    args = getGstRatesByState_args()
-
 
10346
    args.read(iprot)
-
 
10347
    iprot.readMessageEnd()
-
 
10348
    result = getGstRatesByState_result()
-
 
10349
    try:
-
 
10350
      result.success = self._handler.getGstRatesByState(args.stateId)
-
 
10351
    except CatalogServiceException, cex:
-
 
10352
      result.cex = cex
-
 
10353
    oprot.writeMessageBegin("getGstRatesByState", TMessageType.REPLY, seqid)
-
 
10354
    result.write(oprot)
-
 
10355
    oprot.writeMessageEnd()
-
 
10356
    oprot.trans.flush()
-
 
10357
 
-
 
10358
  def process_getStateTaxRate(self, seqid, iprot, oprot):
10273
  def process_getStateTaxRate(self, seqid, iprot, oprot):
10359
    args = getStateTaxRate_args()
10274
    args = getStateTaxRate_args()
10360
    args.read(iprot)
10275
    args.read(iprot)
10361
    iprot.readMessageEnd()
10276
    iprot.readMessageEnd()
10362
    result = getStateTaxRate_result()
10277
    result = getStateTaxRate_result()
Line 10386... Line 10301...
10386
    oprot.writeMessageBegin("persistStateGstRate", TMessageType.REPLY, seqid)
10301
    oprot.writeMessageBegin("persistStateGstRate", TMessageType.REPLY, seqid)
10387
    result.write(oprot)
10302
    result.write(oprot)
10388
    oprot.writeMessageEnd()
10303
    oprot.writeMessageEnd()
10389
    oprot.trans.flush()
10304
    oprot.trans.flush()
10390
 
10305
 
10391
  def process_getInterStateGstRates(self, seqid, iprot, oprot):
-
 
10392
    args = getInterStateGstRates_args()
-
 
10393
    args.read(iprot)
-
 
10394
    iprot.readMessageEnd()
-
 
10395
    result = getInterStateGstRates_result()
-
 
10396
    try:
-
 
10397
      result.success = self._handler.getInterStateGstRates()
-
 
10398
    except CatalogServiceException, cex:
-
 
10399
      result.cex = cex
-
 
10400
    oprot.writeMessageBegin("getInterStateGstRates", TMessageType.REPLY, seqid)
-
 
10401
    result.write(oprot)
-
 
10402
    oprot.writeMessageEnd()
-
 
10403
    oprot.trans.flush()
-
 
10404
 
-
 
10405
  def process_getHsnCodesByCategory(self, seqid, iprot, oprot):
10306
  def process_getHsnCodesByCategory(self, seqid, iprot, oprot):
10406
    args = getHsnCodesByCategory_args()
10307
    args = getHsnCodesByCategory_args()
10407
    args.read(iprot)
10308
    args.read(iprot)
10408
    iprot.readMessageEnd()
10309
    iprot.readMessageEnd()
10409
    result = getHsnCodesByCategory_result()
10310
    result = getHsnCodesByCategory_result()
Line 35951... Line 35852...
35951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
35852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
35952
 
35853
 
35953
  def __ne__(self, other):
35854
  def __ne__(self, other):
35954
    return not (self == other)
35855
    return not (self == other)
35955
 
35856
 
35956
class getGstRatesByState_args:
-
 
35957
  """
-
 
35958
  Attributes:
-
 
35959
   - stateId
-
 
35960
  """
-
 
35961
 
-
 
35962
  thrift_spec = (
-
 
35963
    None, # 0
-
 
35964
    (1, TType.I64, 'stateId', None, None, ), # 1
-
 
35965
  )
-
 
35966
 
-
 
35967
  def __init__(self, stateId=None,):
-
 
35968
    self.stateId = stateId
-
 
35969
 
-
 
35970
  def read(self, iprot):
-
 
35971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35973
      return
-
 
35974
    iprot.readStructBegin()
-
 
35975
    while True:
-
 
35976
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35977
      if ftype == TType.STOP:
-
 
35978
        break
-
 
35979
      if fid == 1:
-
 
35980
        if ftype == TType.I64:
-
 
35981
          self.stateId = iprot.readI64();
-
 
35982
        else:
-
 
35983
          iprot.skip(ftype)
-
 
35984
      else:
-
 
35985
        iprot.skip(ftype)
-
 
35986
      iprot.readFieldEnd()
-
 
35987
    iprot.readStructEnd()
-
 
35988
 
-
 
35989
  def write(self, oprot):
-
 
35990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35992
      return
-
 
35993
    oprot.writeStructBegin('getGstRatesByState_args')
-
 
35994
    if self.stateId is not None:
-
 
35995
      oprot.writeFieldBegin('stateId', TType.I64, 1)
-
 
35996
      oprot.writeI64(self.stateId)
-
 
35997
      oprot.writeFieldEnd()
-
 
35998
    oprot.writeFieldStop()
-
 
35999
    oprot.writeStructEnd()
-
 
36000
 
-
 
36001
  def validate(self):
-
 
36002
    return
-
 
36003
 
-
 
36004
 
-
 
36005
  def __repr__(self):
-
 
36006
    L = ['%s=%r' % (key, value)
-
 
36007
      for key, value in self.__dict__.iteritems()]
-
 
36008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36009
 
-
 
36010
  def __eq__(self, other):
-
 
36011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36012
 
-
 
36013
  def __ne__(self, other):
-
 
36014
    return not (self == other)
-
 
36015
 
-
 
36016
class getGstRatesByState_result:
-
 
36017
  """
-
 
36018
  Attributes:
-
 
36019
   - success
-
 
36020
   - cex
-
 
36021
  """
-
 
36022
 
-
 
36023
  thrift_spec = (
-
 
36024
    (0, TType.STRUCT, 'success', (StateGstRates, StateGstRates.thrift_spec), None, ), # 0
-
 
36025
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
-
 
36026
  )
-
 
36027
 
-
 
36028
  def __init__(self, success=None, cex=None,):
-
 
36029
    self.success = success
-
 
36030
    self.cex = cex
-
 
36031
 
-
 
36032
  def read(self, iprot):
-
 
36033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36035
      return
-
 
36036
    iprot.readStructBegin()
-
 
36037
    while True:
-
 
36038
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36039
      if ftype == TType.STOP:
-
 
36040
        break
-
 
36041
      if fid == 0:
-
 
36042
        if ftype == TType.STRUCT:
-
 
36043
          self.success = StateGstRates()
-
 
36044
          self.success.read(iprot)
-
 
36045
        else:
-
 
36046
          iprot.skip(ftype)
-
 
36047
      elif fid == 1:
-
 
36048
        if ftype == TType.STRUCT:
-
 
36049
          self.cex = CatalogServiceException()
-
 
36050
          self.cex.read(iprot)
-
 
36051
        else:
-
 
36052
          iprot.skip(ftype)
-
 
36053
      else:
-
 
36054
        iprot.skip(ftype)
-
 
36055
      iprot.readFieldEnd()
-
 
36056
    iprot.readStructEnd()
-
 
36057
 
-
 
36058
  def write(self, oprot):
-
 
36059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36061
      return
-
 
36062
    oprot.writeStructBegin('getGstRatesByState_result')
-
 
36063
    if self.success is not None:
-
 
36064
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
36065
      self.success.write(oprot)
-
 
36066
      oprot.writeFieldEnd()
-
 
36067
    if self.cex is not None:
-
 
36068
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
-
 
36069
      self.cex.write(oprot)
-
 
36070
      oprot.writeFieldEnd()
-
 
36071
    oprot.writeFieldStop()
-
 
36072
    oprot.writeStructEnd()
-
 
36073
 
-
 
36074
  def validate(self):
-
 
36075
    return
-
 
36076
 
-
 
36077
 
-
 
36078
  def __repr__(self):
-
 
36079
    L = ['%s=%r' % (key, value)
-
 
36080
      for key, value in self.__dict__.iteritems()]
-
 
36081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36082
 
-
 
36083
  def __eq__(self, other):
-
 
36084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36085
 
-
 
36086
  def __ne__(self, other):
-
 
36087
    return not (self == other)
-
 
36088
 
-
 
36089
class getStateTaxRate_args:
35857
class getStateTaxRate_args:
36090
  """
35858
  """
36091
  Attributes:
35859
  Attributes:
36092
   - itemIds
35860
   - itemIds
36093
   - stateId
35861
   - stateId
Line 36474... Line 36242...
36474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36475
 
36243
 
36476
  def __ne__(self, other):
36244
  def __ne__(self, other):
36477
    return not (self == other)
36245
    return not (self == other)
36478
 
36246
 
36479
class getInterStateGstRates_args:
-
 
36480
 
-
 
36481
  thrift_spec = (
-
 
36482
  )
-
 
36483
 
-
 
36484
  def read(self, iprot):
-
 
36485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36487
      return
-
 
36488
    iprot.readStructBegin()
-
 
36489
    while True:
-
 
36490
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36491
      if ftype == TType.STOP:
-
 
36492
        break
-
 
36493
      else:
-
 
36494
        iprot.skip(ftype)
-
 
36495
      iprot.readFieldEnd()
-
 
36496
    iprot.readStructEnd()
-
 
36497
 
-
 
36498
  def write(self, oprot):
-
 
36499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36501
      return
-
 
36502
    oprot.writeStructBegin('getInterStateGstRates_args')
-
 
36503
    oprot.writeFieldStop()
-
 
36504
    oprot.writeStructEnd()
-
 
36505
 
-
 
36506
  def validate(self):
-
 
36507
    return
-
 
36508
 
-
 
36509
 
-
 
36510
  def __repr__(self):
-
 
36511
    L = ['%s=%r' % (key, value)
-
 
36512
      for key, value in self.__dict__.iteritems()]
-
 
36513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36514
 
-
 
36515
  def __eq__(self, other):
-
 
36516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36517
 
-
 
36518
  def __ne__(self, other):
-
 
36519
    return not (self == other)
-
 
36520
 
-
 
36521
class getInterStateGstRates_result:
-
 
36522
  """
-
 
36523
  Attributes:
-
 
36524
   - success
-
 
36525
   - cex
-
 
36526
  """
-
 
36527
 
-
 
36528
  thrift_spec = (
-
 
36529
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(GstRate, GstRate.thrift_spec)), None, ), # 0
-
 
36530
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
-
 
36531
  )
-
 
36532
 
-
 
36533
  def __init__(self, success=None, cex=None,):
-
 
36534
    self.success = success
-
 
36535
    self.cex = cex
-
 
36536
 
-
 
36537
  def read(self, iprot):
-
 
36538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36540
      return
-
 
36541
    iprot.readStructBegin()
-
 
36542
    while True:
-
 
36543
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36544
      if ftype == TType.STOP:
-
 
36545
        break
-
 
36546
      if fid == 0:
-
 
36547
        if ftype == TType.MAP:
-
 
36548
          self.success = {}
-
 
36549
          (_ktype1016, _vtype1017, _size1015 ) = iprot.readMapBegin() 
-
 
36550
          for _i1019 in xrange(_size1015):
-
 
36551
            _key1020 = iprot.readString();
-
 
36552
            _val1021 = GstRate()
-
 
36553
            _val1021.read(iprot)
-
 
36554
            self.success[_key1020] = _val1021
-
 
36555
          iprot.readMapEnd()
-
 
36556
        else:
-
 
36557
          iprot.skip(ftype)
-
 
36558
      elif fid == 1:
-
 
36559
        if ftype == TType.STRUCT:
-
 
36560
          self.cex = CatalogServiceException()
-
 
36561
          self.cex.read(iprot)
-
 
36562
        else:
-
 
36563
          iprot.skip(ftype)
-
 
36564
      else:
-
 
36565
        iprot.skip(ftype)
-
 
36566
      iprot.readFieldEnd()
-
 
36567
    iprot.readStructEnd()
-
 
36568
 
-
 
36569
  def write(self, oprot):
-
 
36570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36572
      return
-
 
36573
    oprot.writeStructBegin('getInterStateGstRates_result')
-
 
36574
    if self.success is not None:
-
 
36575
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
36576
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
-
 
36577
      for kiter1022,viter1023 in self.success.items():
-
 
36578
        oprot.writeString(kiter1022)
-
 
36579
        viter1023.write(oprot)
-
 
36580
      oprot.writeMapEnd()
-
 
36581
      oprot.writeFieldEnd()
-
 
36582
    if self.cex is not None:
-
 
36583
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
-
 
36584
      self.cex.write(oprot)
-
 
36585
      oprot.writeFieldEnd()
-
 
36586
    oprot.writeFieldStop()
-
 
36587
    oprot.writeStructEnd()
-
 
36588
 
-
 
36589
  def validate(self):
-
 
36590
    return
-
 
36591
 
-
 
36592
 
-
 
36593
  def __repr__(self):
-
 
36594
    L = ['%s=%r' % (key, value)
-
 
36595
      for key, value in self.__dict__.iteritems()]
-
 
36596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36597
 
-
 
36598
  def __eq__(self, other):
-
 
36599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36600
 
-
 
36601
  def __ne__(self, other):
-
 
36602
    return not (self == other)
-
 
36603
 
-
 
36604
class getHsnCodesByCategory_args:
36247
class getHsnCodesByCategory_args:
36605
  """
36248
  """
36606
  Attributes:
36249
  Attributes:
36607
   - categoryId
36250
   - categoryId
36608
  """
36251
  """
Line 36687... Line 36330...
36687
      if ftype == TType.STOP:
36330
      if ftype == TType.STOP:
36688
        break
36331
        break
36689
      if fid == 0:
36332
      if fid == 0:
36690
        if ftype == TType.LIST:
36333
        if ftype == TType.LIST:
36691
          self.success = []
36334
          self.success = []
36692
          (_etype1027, _size1024) = iprot.readListBegin()
36335
          (_etype1018, _size1015) = iprot.readListBegin()
36693
          for _i1028 in xrange(_size1024):
36336
          for _i1019 in xrange(_size1015):
36694
            _elem1029 = CategoryHsnCode()
36337
            _elem1020 = CategoryHsnCode()
36695
            _elem1029.read(iprot)
36338
            _elem1020.read(iprot)
36696
            self.success.append(_elem1029)
36339
            self.success.append(_elem1020)
36697
          iprot.readListEnd()
36340
          iprot.readListEnd()
36698
        else:
36341
        else:
36699
          iprot.skip(ftype)
36342
          iprot.skip(ftype)
36700
      elif fid == 1:
36343
      elif fid == 1:
36701
        if ftype == TType.STRUCT:
36344
        if ftype == TType.STRUCT:
Line 36714... Line 36357...
36714
      return
36357
      return
36715
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36358
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36716
    if self.success is not None:
36359
    if self.success is not None:
36717
      oprot.writeFieldBegin('success', TType.LIST, 0)
36360
      oprot.writeFieldBegin('success', TType.LIST, 0)
36718
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36361
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36719
      for iter1030 in self.success:
36362
      for iter1021 in self.success:
36720
        iter1030.write(oprot)
36363
        iter1021.write(oprot)
36721
      oprot.writeListEnd()
36364
      oprot.writeListEnd()
36722
      oprot.writeFieldEnd()
36365
      oprot.writeFieldEnd()
36723
    if self.cex is not None:
36366
    if self.cex is not None:
36724
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36367
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36725
      self.cex.write(oprot)
36368
      self.cex.write(oprot)
Line 36764... Line 36407...
36764
      if ftype == TType.STOP:
36407
      if ftype == TType.STOP:
36765
        break
36408
        break
36766
      if fid == -1:
36409
      if fid == -1:
36767
        if ftype == TType.LIST:
36410
        if ftype == TType.LIST:
36768
          self.itemIds = []
36411
          self.itemIds = []
36769
          (_etype1034, _size1031) = iprot.readListBegin()
36412
          (_etype1025, _size1022) = iprot.readListBegin()
36770
          for _i1035 in xrange(_size1031):
36413
          for _i1026 in xrange(_size1022):
36771
            _elem1036 = iprot.readI64();
36414
            _elem1027 = iprot.readI64();
36772
            self.itemIds.append(_elem1036)
36415
            self.itemIds.append(_elem1027)
36773
          iprot.readListEnd()
36416
          iprot.readListEnd()
36774
        else:
36417
        else:
36775
          iprot.skip(ftype)
36418
          iprot.skip(ftype)
36776
      elif fid == -2:
36419
      elif fid == -2:
36777
        if ftype == TType.LIST:
36420
        if ftype == TType.LIST:
36778
          self.tagIds = []
36421
          self.tagIds = []
36779
          (_etype1040, _size1037) = iprot.readListBegin()
36422
          (_etype1031, _size1028) = iprot.readListBegin()
36780
          for _i1041 in xrange(_size1037):
36423
          for _i1032 in xrange(_size1028):
36781
            _elem1042 = iprot.readI64();
36424
            _elem1033 = iprot.readI64();
36782
            self.tagIds.append(_elem1042)
36425
            self.tagIds.append(_elem1033)
36783
          iprot.readListEnd()
36426
          iprot.readListEnd()
36784
        else:
36427
        else:
36785
          iprot.skip(ftype)
36428
          iprot.skip(ftype)
36786
      else:
36429
      else:
36787
        iprot.skip(ftype)
36430
        iprot.skip(ftype)
Line 36794... Line 36437...
36794
      return
36437
      return
36795
    oprot.writeStructBegin('getAllFofoDeals_args')
36438
    oprot.writeStructBegin('getAllFofoDeals_args')
36796
    if self.tagIds is not None:
36439
    if self.tagIds is not None:
36797
      oprot.writeFieldBegin('tagIds', TType.LIST, -2)
36440
      oprot.writeFieldBegin('tagIds', TType.LIST, -2)
36798
      oprot.writeListBegin(TType.I64, len(self.tagIds))
36441
      oprot.writeListBegin(TType.I64, len(self.tagIds))
36799
      for iter1043 in self.tagIds:
36442
      for iter1034 in self.tagIds:
36800
        oprot.writeI64(iter1043)
36443
        oprot.writeI64(iter1034)
36801
      oprot.writeListEnd()
36444
      oprot.writeListEnd()
36802
      oprot.writeFieldEnd()
36445
      oprot.writeFieldEnd()
36803
    if self.itemIds is not None:
36446
    if self.itemIds is not None:
36804
      oprot.writeFieldBegin('itemIds', TType.LIST, -1)
36447
      oprot.writeFieldBegin('itemIds', TType.LIST, -1)
36805
      oprot.writeListBegin(TType.I64, len(self.itemIds))
36448
      oprot.writeListBegin(TType.I64, len(self.itemIds))
36806
      for iter1044 in self.itemIds:
36449
      for iter1035 in self.itemIds:
36807
        oprot.writeI64(iter1044)
36450
        oprot.writeI64(iter1035)
36808
      oprot.writeListEnd()
36451
      oprot.writeListEnd()
36809
      oprot.writeFieldEnd()
36452
      oprot.writeFieldEnd()
36810
    oprot.writeFieldStop()
36453
    oprot.writeFieldStop()
36811
    oprot.writeStructEnd()
36454
    oprot.writeStructEnd()
36812
 
36455
 
Line 36848... Line 36491...
36848
      if ftype == TType.STOP:
36491
      if ftype == TType.STOP:
36849
        break
36492
        break
36850
      if fid == 0:
36493
      if fid == 0:
36851
        if ftype == TType.MAP:
36494
        if ftype == TType.MAP:
36852
          self.success = {}
36495
          self.success = {}
36853
          (_ktype1046, _vtype1047, _size1045 ) = iprot.readMapBegin() 
36496
          (_ktype1037, _vtype1038, _size1036 ) = iprot.readMapBegin() 
36854
          for _i1049 in xrange(_size1045):
36497
          for _i1040 in xrange(_size1036):
36855
            _key1050 = iprot.readI64();
36498
            _key1041 = iprot.readI64();
36856
            _val1051 = iprot.readDouble();
36499
            _val1042 = iprot.readDouble();
36857
            self.success[_key1050] = _val1051
36500
            self.success[_key1041] = _val1042
36858
          iprot.readMapEnd()
36501
          iprot.readMapEnd()
36859
        else:
36502
        else:
36860
          iprot.skip(ftype)
36503
          iprot.skip(ftype)
36861
      else:
36504
      else:
36862
        iprot.skip(ftype)
36505
        iprot.skip(ftype)
Line 36869... Line 36512...
36869
      return
36512
      return
36870
    oprot.writeStructBegin('getAllFofoDeals_result')
36513
    oprot.writeStructBegin('getAllFofoDeals_result')
36871
    if self.success is not None:
36514
    if self.success is not None:
36872
      oprot.writeFieldBegin('success', TType.MAP, 0)
36515
      oprot.writeFieldBegin('success', TType.MAP, 0)
36873
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
36516
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
36874
      for kiter1052,viter1053 in self.success.items():
36517
      for kiter1043,viter1044 in self.success.items():
36875
        oprot.writeI64(kiter1052)
36518
        oprot.writeI64(kiter1043)
36876
        oprot.writeDouble(viter1053)
36519
        oprot.writeDouble(viter1044)
36877
      oprot.writeMapEnd()
36520
      oprot.writeMapEnd()
36878
      oprot.writeFieldEnd()
36521
      oprot.writeFieldEnd()
36879
    oprot.writeFieldStop()
36522
    oprot.writeFieldStop()
36880
    oprot.writeStructEnd()
36523
    oprot.writeStructEnd()
36881
 
36524