Subversion Repositories SmartDukaan

Rev

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

Rev 23143 Rev 23148
Line 1412... Line 1412...
1412
    Parameters:
1412
    Parameters:
1413
     - stateId
1413
     - stateId
1414
    """
1414
    """
1415
    pass
1415
    pass
1416
 
1416
 
1417
  def getTotalTaxRate(self, itemIds, stateId):
1417
  def getStateTaxRate(self, itemIds, stateId):
1418
    """
1418
    """
1419
    Parameters:
1419
    Parameters:
1420
     - itemIds
1420
     - itemIds
1421
     - stateId
1421
     - stateId
1422
    """
1422
    """
1423
    pass
1423
    pass
1424
 
1424
 
-
 
1425
  def getIgstTaxRate(self, itemIds):
-
 
1426
    """
-
 
1427
    Parameters:
-
 
1428
     - itemIds
-
 
1429
    """
-
 
1430
    pass
-
 
1431
 
1425
  def getInterStateGstRates(self, ):
1432
  def getInterStateGstRates(self, ):
1426
    pass
1433
    pass
1427
 
1434
 
1428
  def getHsnCodesByCategory(self, categoryId):
1435
  def getHsnCodesByCategory(self, categoryId):
1429
    """
1436
    """
Line 7564... Line 7571...
7564
      return result.success
7571
      return result.success
7565
    if result.cex is not None:
7572
    if result.cex is not None:
7566
      raise result.cex
7573
      raise result.cex
7567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getGstRatesByState failed: unknown result");
7574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getGstRatesByState failed: unknown result");
7568
 
7575
 
7569
  def getTotalTaxRate(self, itemIds, stateId):
7576
  def getStateTaxRate(self, itemIds, stateId):
7570
    """
7577
    """
7571
    Parameters:
7578
    Parameters:
7572
     - itemIds
7579
     - itemIds
7573
     - stateId
7580
     - stateId
7574
    """
7581
    """
7575
    self.send_getTotalTaxRate(itemIds, stateId)
7582
    self.send_getStateTaxRate(itemIds, stateId)
7576
    return self.recv_getTotalTaxRate()
7583
    return self.recv_getStateTaxRate()
7577
 
7584
 
7578
  def send_getTotalTaxRate(self, itemIds, stateId):
7585
  def send_getStateTaxRate(self, itemIds, stateId):
7579
    self._oprot.writeMessageBegin('getTotalTaxRate', TMessageType.CALL, self._seqid)
7586
    self._oprot.writeMessageBegin('getStateTaxRate', TMessageType.CALL, self._seqid)
7580
    args = getTotalTaxRate_args()
7587
    args = getStateTaxRate_args()
7581
    args.itemIds = itemIds
7588
    args.itemIds = itemIds
7582
    args.stateId = stateId
7589
    args.stateId = stateId
7583
    args.write(self._oprot)
7590
    args.write(self._oprot)
7584
    self._oprot.writeMessageEnd()
7591
    self._oprot.writeMessageEnd()
7585
    self._oprot.trans.flush()
7592
    self._oprot.trans.flush()
7586
 
7593
 
7587
  def recv_getTotalTaxRate(self, ):
7594
  def recv_getStateTaxRate(self, ):
7588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7595
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7589
    if mtype == TMessageType.EXCEPTION:
7596
    if mtype == TMessageType.EXCEPTION:
7590
      x = TApplicationException()
7597
      x = TApplicationException()
7591
      x.read(self._iprot)
7598
      x.read(self._iprot)
7592
      self._iprot.readMessageEnd()
7599
      self._iprot.readMessageEnd()
7593
      raise x
7600
      raise x
7594
    result = getTotalTaxRate_result()
7601
    result = getStateTaxRate_result()
7595
    result.read(self._iprot)
7602
    result.read(self._iprot)
7596
    self._iprot.readMessageEnd()
7603
    self._iprot.readMessageEnd()
7597
    if result.success is not None:
7604
    if result.success is not None:
7598
      return result.success
7605
      return result.success
7599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTotalTaxRate failed: unknown result");
7606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateTaxRate failed: unknown result");
-
 
7607
 
-
 
7608
  def getIgstTaxRate(self, itemIds):
-
 
7609
    """
-
 
7610
    Parameters:
-
 
7611
     - itemIds
-
 
7612
    """
-
 
7613
    self.send_getIgstTaxRate(itemIds)
-
 
7614
    return self.recv_getIgstTaxRate()
-
 
7615
 
-
 
7616
  def send_getIgstTaxRate(self, itemIds):
-
 
7617
    self._oprot.writeMessageBegin('getIgstTaxRate', TMessageType.CALL, self._seqid)
-
 
7618
    args = getIgstTaxRate_args()
-
 
7619
    args.itemIds = itemIds
-
 
7620
    args.write(self._oprot)
-
 
7621
    self._oprot.writeMessageEnd()
-
 
7622
    self._oprot.trans.flush()
-
 
7623
 
-
 
7624
  def recv_getIgstTaxRate(self, ):
-
 
7625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7626
    if mtype == TMessageType.EXCEPTION:
-
 
7627
      x = TApplicationException()
-
 
7628
      x.read(self._iprot)
-
 
7629
      self._iprot.readMessageEnd()
-
 
7630
      raise x
-
 
7631
    result = getIgstTaxRate_result()
-
 
7632
    result.read(self._iprot)
-
 
7633
    self._iprot.readMessageEnd()
-
 
7634
    if result.success is not None:
-
 
7635
      return result.success
-
 
7636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
7600
 
7637
 
7601
  def getInterStateGstRates(self, ):
7638
  def getInterStateGstRates(self, ):
7602
    self.send_getInterStateGstRates()
7639
    self.send_getInterStateGstRates()
7603
    return self.recv_getInterStateGstRates()
7640
    return self.recv_getInterStateGstRates()
7604
 
7641
 
Line 7892... Line 7929...
7892
    self._processMap["updateItemPricing"] = Processor.process_updateItemPricing
7929
    self._processMap["updateItemPricing"] = Processor.process_updateItemPricing
7893
    self._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalog
7930
    self._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalog
7894
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7931
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7895
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7932
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7896
    self._processMap["getGstRatesByState"] = Processor.process_getGstRatesByState
7933
    self._processMap["getGstRatesByState"] = Processor.process_getGstRatesByState
7897
    self._processMap["getTotalTaxRate"] = Processor.process_getTotalTaxRate
7934
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
-
 
7935
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
7898
    self._processMap["getInterStateGstRates"] = Processor.process_getInterStateGstRates
7936
    self._processMap["getInterStateGstRates"] = Processor.process_getInterStateGstRates
7899
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7937
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7900
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7938
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7901
 
7939
 
7902
  def process(self, iprot, oprot):
7940
  def process(self, iprot, oprot):
Line 10279... Line 10317...
10279
    oprot.writeMessageBegin("getGstRatesByState", TMessageType.REPLY, seqid)
10317
    oprot.writeMessageBegin("getGstRatesByState", TMessageType.REPLY, seqid)
10280
    result.write(oprot)
10318
    result.write(oprot)
10281
    oprot.writeMessageEnd()
10319
    oprot.writeMessageEnd()
10282
    oprot.trans.flush()
10320
    oprot.trans.flush()
10283
 
10321
 
10284
  def process_getTotalTaxRate(self, seqid, iprot, oprot):
10322
  def process_getStateTaxRate(self, seqid, iprot, oprot):
10285
    args = getTotalTaxRate_args()
10323
    args = getStateTaxRate_args()
10286
    args.read(iprot)
10324
    args.read(iprot)
10287
    iprot.readMessageEnd()
10325
    iprot.readMessageEnd()
10288
    result = getTotalTaxRate_result()
10326
    result = getStateTaxRate_result()
10289
    result.success = self._handler.getTotalTaxRate(args.itemIds, args.stateId)
10327
    result.success = self._handler.getStateTaxRate(args.itemIds, args.stateId)
10290
    oprot.writeMessageBegin("getTotalTaxRate", TMessageType.REPLY, seqid)
10328
    oprot.writeMessageBegin("getStateTaxRate", TMessageType.REPLY, seqid)
-
 
10329
    result.write(oprot)
-
 
10330
    oprot.writeMessageEnd()
-
 
10331
    oprot.trans.flush()
-
 
10332
 
-
 
10333
  def process_getIgstTaxRate(self, seqid, iprot, oprot):
-
 
10334
    args = getIgstTaxRate_args()
-
 
10335
    args.read(iprot)
-
 
10336
    iprot.readMessageEnd()
-
 
10337
    result = getIgstTaxRate_result()
-
 
10338
    result.success = self._handler.getIgstTaxRate(args.itemIds)
-
 
10339
    oprot.writeMessageBegin("getIgstTaxRate", TMessageType.REPLY, seqid)
10291
    result.write(oprot)
10340
    result.write(oprot)
10292
    oprot.writeMessageEnd()
10341
    oprot.writeMessageEnd()
10293
    oprot.trans.flush()
10342
    oprot.trans.flush()
10294
 
10343
 
10295
  def process_getInterStateGstRates(self, seqid, iprot, oprot):
10344
  def process_getInterStateGstRates(self, seqid, iprot, oprot):
Line 35988... Line 36037...
35988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
35989
 
36038
 
35990
  def __ne__(self, other):
36039
  def __ne__(self, other):
35991
    return not (self == other)
36040
    return not (self == other)
35992
 
36041
 
35993
class getTotalTaxRate_args:
36042
class getStateTaxRate_args:
35994
  """
36043
  """
35995
  Attributes:
36044
  Attributes:
35996
   - itemIds
36045
   - itemIds
35997
   - stateId
36046
   - stateId
35998
  """
36047
  """
Line 36038... Line 36087...
36038
 
36087
 
36039
  def write(self, oprot):
36088
  def write(self, oprot):
36040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36042
      return
36091
      return
36043
    oprot.writeStructBegin('getTotalTaxRate_args')
36092
    oprot.writeStructBegin('getStateTaxRate_args')
36044
    if self.itemIds is not None:
36093
    if self.itemIds is not None:
36045
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
36094
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
36046
      oprot.writeListBegin(TType.I32, len(self.itemIds))
36095
      oprot.writeListBegin(TType.I32, len(self.itemIds))
36047
      for iter989 in self.itemIds:
36096
      for iter989 in self.itemIds:
36048
        oprot.writeI32(iter989)
36097
        oprot.writeI32(iter989)
Line 36068... Line 36117...
36068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36069
 
36118
 
36070
  def __ne__(self, other):
36119
  def __ne__(self, other):
36071
    return not (self == other)
36120
    return not (self == other)
36072
 
36121
 
36073
class getTotalTaxRate_result:
36122
class getStateTaxRate_result:
36074
  """
36123
  """
36075
  Attributes:
36124
  Attributes:
36076
   - success
36125
   - success
36077
  """
36126
  """
36078
 
36127
 
Line 36111... Line 36160...
36111
 
36160
 
36112
  def write(self, oprot):
36161
  def write(self, oprot):
36113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36115
      return
36164
      return
36116
    oprot.writeStructBegin('getTotalTaxRate_result')
36165
    oprot.writeStructBegin('getStateTaxRate_result')
36117
    if self.success is not None:
36166
    if self.success is not None:
36118
      oprot.writeFieldBegin('success', TType.MAP, 0)
36167
      oprot.writeFieldBegin('success', TType.MAP, 0)
36119
      oprot.writeMapBegin(TType.I32, TType.STRUCT, len(self.success))
36168
      oprot.writeMapBegin(TType.I32, TType.STRUCT, len(self.success))
36120
      for kiter997,viter998 in self.success.items():
36169
      for kiter997,viter998 in self.success.items():
36121
        oprot.writeI32(kiter997)
36170
        oprot.writeI32(kiter997)
Line 36138... Line 36187...
36138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36139
 
36188
 
36140
  def __ne__(self, other):
36189
  def __ne__(self, other):
36141
    return not (self == other)
36190
    return not (self == other)
36142
 
36191
 
-
 
36192
class getIgstTaxRate_args:
-
 
36193
  """
-
 
36194
  Attributes:
-
 
36195
   - itemIds
-
 
36196
  """
-
 
36197
 
-
 
36198
  thrift_spec = (
-
 
36199
    None, # 0
-
 
36200
    (1, TType.LIST, 'itemIds', (TType.I32,None), None, ), # 1
-
 
36201
  )
-
 
36202
 
-
 
36203
  def __init__(self, itemIds=None,):
-
 
36204
    self.itemIds = itemIds
-
 
36205
 
-
 
36206
  def read(self, iprot):
-
 
36207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36209
      return
-
 
36210
    iprot.readStructBegin()
-
 
36211
    while True:
-
 
36212
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36213
      if ftype == TType.STOP:
-
 
36214
        break
-
 
36215
      if fid == 1:
-
 
36216
        if ftype == TType.LIST:
-
 
36217
          self.itemIds = []
-
 
36218
          (_etype1002, _size999) = iprot.readListBegin()
-
 
36219
          for _i1003 in xrange(_size999):
-
 
36220
            _elem1004 = iprot.readI32();
-
 
36221
            self.itemIds.append(_elem1004)
-
 
36222
          iprot.readListEnd()
-
 
36223
        else:
-
 
36224
          iprot.skip(ftype)
-
 
36225
      else:
-
 
36226
        iprot.skip(ftype)
-
 
36227
      iprot.readFieldEnd()
-
 
36228
    iprot.readStructEnd()
-
 
36229
 
-
 
36230
  def write(self, oprot):
-
 
36231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36233
      return
-
 
36234
    oprot.writeStructBegin('getIgstTaxRate_args')
-
 
36235
    if self.itemIds is not None:
-
 
36236
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
-
 
36237
      oprot.writeListBegin(TType.I32, len(self.itemIds))
-
 
36238
      for iter1005 in self.itemIds:
-
 
36239
        oprot.writeI32(iter1005)
-
 
36240
      oprot.writeListEnd()
-
 
36241
      oprot.writeFieldEnd()
-
 
36242
    oprot.writeFieldStop()
-
 
36243
    oprot.writeStructEnd()
-
 
36244
 
-
 
36245
  def validate(self):
-
 
36246
    return
-
 
36247
 
-
 
36248
 
-
 
36249
  def __repr__(self):
-
 
36250
    L = ['%s=%r' % (key, value)
-
 
36251
      for key, value in self.__dict__.iteritems()]
-
 
36252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36253
 
-
 
36254
  def __eq__(self, other):
-
 
36255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36256
 
-
 
36257
  def __ne__(self, other):
-
 
36258
    return not (self == other)
-
 
36259
 
-
 
36260
class getIgstTaxRate_result:
-
 
36261
  """
-
 
36262
  Attributes:
-
 
36263
   - success
-
 
36264
  """
-
 
36265
 
-
 
36266
  thrift_spec = (
-
 
36267
    (0, TType.MAP, 'success', (TType.I32,None,TType.DOUBLE,None), None, ), # 0
-
 
36268
  )
-
 
36269
 
-
 
36270
  def __init__(self, success=None,):
-
 
36271
    self.success = success
-
 
36272
 
-
 
36273
  def read(self, iprot):
-
 
36274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36276
      return
-
 
36277
    iprot.readStructBegin()
-
 
36278
    while True:
-
 
36279
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36280
      if ftype == TType.STOP:
-
 
36281
        break
-
 
36282
      if fid == 0:
-
 
36283
        if ftype == TType.MAP:
-
 
36284
          self.success = {}
-
 
36285
          (_ktype1007, _vtype1008, _size1006 ) = iprot.readMapBegin() 
-
 
36286
          for _i1010 in xrange(_size1006):
-
 
36287
            _key1011 = iprot.readI32();
-
 
36288
            _val1012 = iprot.readDouble();
-
 
36289
            self.success[_key1011] = _val1012
-
 
36290
          iprot.readMapEnd()
-
 
36291
        else:
-
 
36292
          iprot.skip(ftype)
-
 
36293
      else:
-
 
36294
        iprot.skip(ftype)
-
 
36295
      iprot.readFieldEnd()
-
 
36296
    iprot.readStructEnd()
-
 
36297
 
-
 
36298
  def write(self, oprot):
-
 
36299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36301
      return
-
 
36302
    oprot.writeStructBegin('getIgstTaxRate_result')
-
 
36303
    if self.success is not None:
-
 
36304
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
36305
      oprot.writeMapBegin(TType.I32, TType.DOUBLE, len(self.success))
-
 
36306
      for kiter1013,viter1014 in self.success.items():
-
 
36307
        oprot.writeI32(kiter1013)
-
 
36308
        oprot.writeDouble(viter1014)
-
 
36309
      oprot.writeMapEnd()
-
 
36310
      oprot.writeFieldEnd()
-
 
36311
    oprot.writeFieldStop()
-
 
36312
    oprot.writeStructEnd()
-
 
36313
 
-
 
36314
  def validate(self):
-
 
36315
    return
-
 
36316
 
-
 
36317
 
-
 
36318
  def __repr__(self):
-
 
36319
    L = ['%s=%r' % (key, value)
-
 
36320
      for key, value in self.__dict__.iteritems()]
-
 
36321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36322
 
-
 
36323
  def __eq__(self, other):
-
 
36324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36325
 
-
 
36326
  def __ne__(self, other):
-
 
36327
    return not (self == other)
-
 
36328
 
36143
class getInterStateGstRates_args:
36329
class getInterStateGstRates_args:
36144
 
36330
 
36145
  thrift_spec = (
36331
  thrift_spec = (
36146
  )
36332
  )
36147
 
36333
 
Line 36208... Line 36394...
36208
      if ftype == TType.STOP:
36394
      if ftype == TType.STOP:
36209
        break
36395
        break
36210
      if fid == 0:
36396
      if fid == 0:
36211
        if ftype == TType.MAP:
36397
        if ftype == TType.MAP:
36212
          self.success = {}
36398
          self.success = {}
36213
          (_ktype1000, _vtype1001, _size999 ) = iprot.readMapBegin() 
36399
          (_ktype1016, _vtype1017, _size1015 ) = iprot.readMapBegin() 
36214
          for _i1003 in xrange(_size999):
36400
          for _i1019 in xrange(_size1015):
36215
            _key1004 = iprot.readString();
36401
            _key1020 = iprot.readString();
36216
            _val1005 = GstRate()
36402
            _val1021 = GstRate()
36217
            _val1005.read(iprot)
36403
            _val1021.read(iprot)
36218
            self.success[_key1004] = _val1005
36404
            self.success[_key1020] = _val1021
36219
          iprot.readMapEnd()
36405
          iprot.readMapEnd()
36220
        else:
36406
        else:
36221
          iprot.skip(ftype)
36407
          iprot.skip(ftype)
36222
      elif fid == 1:
36408
      elif fid == 1:
36223
        if ftype == TType.STRUCT:
36409
        if ftype == TType.STRUCT:
Line 36236... Line 36422...
36236
      return
36422
      return
36237
    oprot.writeStructBegin('getInterStateGstRates_result')
36423
    oprot.writeStructBegin('getInterStateGstRates_result')
36238
    if self.success is not None:
36424
    if self.success is not None:
36239
      oprot.writeFieldBegin('success', TType.MAP, 0)
36425
      oprot.writeFieldBegin('success', TType.MAP, 0)
36240
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
36426
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
36241
      for kiter1006,viter1007 in self.success.items():
36427
      for kiter1022,viter1023 in self.success.items():
36242
        oprot.writeString(kiter1006)
36428
        oprot.writeString(kiter1022)
36243
        viter1007.write(oprot)
36429
        viter1023.write(oprot)
36244
      oprot.writeMapEnd()
36430
      oprot.writeMapEnd()
36245
      oprot.writeFieldEnd()
36431
      oprot.writeFieldEnd()
36246
    if self.cex is not None:
36432
    if self.cex is not None:
36247
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36433
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36248
      self.cex.write(oprot)
36434
      self.cex.write(oprot)
Line 36351... Line 36537...
36351
      if ftype == TType.STOP:
36537
      if ftype == TType.STOP:
36352
        break
36538
        break
36353
      if fid == 0:
36539
      if fid == 0:
36354
        if ftype == TType.LIST:
36540
        if ftype == TType.LIST:
36355
          self.success = []
36541
          self.success = []
36356
          (_etype1011, _size1008) = iprot.readListBegin()
36542
          (_etype1027, _size1024) = iprot.readListBegin()
36357
          for _i1012 in xrange(_size1008):
36543
          for _i1028 in xrange(_size1024):
36358
            _elem1013 = CategoryHsnCode()
36544
            _elem1029 = CategoryHsnCode()
36359
            _elem1013.read(iprot)
36545
            _elem1029.read(iprot)
36360
            self.success.append(_elem1013)
36546
            self.success.append(_elem1029)
36361
          iprot.readListEnd()
36547
          iprot.readListEnd()
36362
        else:
36548
        else:
36363
          iprot.skip(ftype)
36549
          iprot.skip(ftype)
36364
      elif fid == 1:
36550
      elif fid == 1:
36365
        if ftype == TType.STRUCT:
36551
        if ftype == TType.STRUCT:
Line 36378... Line 36564...
36378
      return
36564
      return
36379
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36565
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36380
    if self.success is not None:
36566
    if self.success is not None:
36381
      oprot.writeFieldBegin('success', TType.LIST, 0)
36567
      oprot.writeFieldBegin('success', TType.LIST, 0)
36382
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36568
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36383
      for iter1014 in self.success:
36569
      for iter1030 in self.success:
36384
        iter1014.write(oprot)
36570
        iter1030.write(oprot)
36385
      oprot.writeListEnd()
36571
      oprot.writeListEnd()
36386
      oprot.writeFieldEnd()
36572
      oprot.writeFieldEnd()
36387
    if self.cex is not None:
36573
    if self.cex is not None:
36388
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36574
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36389
      self.cex.write(oprot)
36575
      self.cex.write(oprot)
Line 36428... Line 36614...
36428
      if ftype == TType.STOP:
36614
      if ftype == TType.STOP:
36429
        break
36615
        break
36430
      if fid == -1:
36616
      if fid == -1:
36431
        if ftype == TType.LIST:
36617
        if ftype == TType.LIST:
36432
          self.itemIds = []
36618
          self.itemIds = []
36433
          (_etype1018, _size1015) = iprot.readListBegin()
36619
          (_etype1034, _size1031) = iprot.readListBegin()
36434
          for _i1019 in xrange(_size1015):
36620
          for _i1035 in xrange(_size1031):
36435
            _elem1020 = iprot.readI64();
36621
            _elem1036 = iprot.readI64();
36436
            self.itemIds.append(_elem1020)
36622
            self.itemIds.append(_elem1036)
36437
          iprot.readListEnd()
36623
          iprot.readListEnd()
36438
        else:
36624
        else:
36439
          iprot.skip(ftype)
36625
          iprot.skip(ftype)
36440
      elif fid == -2:
36626
      elif fid == -2:
36441
        if ftype == TType.LIST:
36627
        if ftype == TType.LIST:
36442
          self.tagIds = []
36628
          self.tagIds = []
36443
          (_etype1024, _size1021) = iprot.readListBegin()
36629
          (_etype1040, _size1037) = iprot.readListBegin()
36444
          for _i1025 in xrange(_size1021):
36630
          for _i1041 in xrange(_size1037):
36445
            _elem1026 = iprot.readI64();
36631
            _elem1042 = iprot.readI64();
36446
            self.tagIds.append(_elem1026)
36632
            self.tagIds.append(_elem1042)
36447
          iprot.readListEnd()
36633
          iprot.readListEnd()
36448
        else:
36634
        else:
36449
          iprot.skip(ftype)
36635
          iprot.skip(ftype)
36450
      else:
36636
      else:
36451
        iprot.skip(ftype)
36637
        iprot.skip(ftype)
Line 36458... Line 36644...
36458
      return
36644
      return
36459
    oprot.writeStructBegin('getAllFofoDeals_args')
36645
    oprot.writeStructBegin('getAllFofoDeals_args')
36460
    if self.tagIds is not None:
36646
    if self.tagIds is not None:
36461
      oprot.writeFieldBegin('tagIds', TType.LIST, -2)
36647
      oprot.writeFieldBegin('tagIds', TType.LIST, -2)
36462
      oprot.writeListBegin(TType.I64, len(self.tagIds))
36648
      oprot.writeListBegin(TType.I64, len(self.tagIds))
36463
      for iter1027 in self.tagIds:
36649
      for iter1043 in self.tagIds:
36464
        oprot.writeI64(iter1027)
36650
        oprot.writeI64(iter1043)
36465
      oprot.writeListEnd()
36651
      oprot.writeListEnd()
36466
      oprot.writeFieldEnd()
36652
      oprot.writeFieldEnd()
36467
    if self.itemIds is not None:
36653
    if self.itemIds is not None:
36468
      oprot.writeFieldBegin('itemIds', TType.LIST, -1)
36654
      oprot.writeFieldBegin('itemIds', TType.LIST, -1)
36469
      oprot.writeListBegin(TType.I64, len(self.itemIds))
36655
      oprot.writeListBegin(TType.I64, len(self.itemIds))
36470
      for iter1028 in self.itemIds:
36656
      for iter1044 in self.itemIds:
36471
        oprot.writeI64(iter1028)
36657
        oprot.writeI64(iter1044)
36472
      oprot.writeListEnd()
36658
      oprot.writeListEnd()
36473
      oprot.writeFieldEnd()
36659
      oprot.writeFieldEnd()
36474
    oprot.writeFieldStop()
36660
    oprot.writeFieldStop()
36475
    oprot.writeStructEnd()
36661
    oprot.writeStructEnd()
36476
 
36662
 
Line 36512... Line 36698...
36512
      if ftype == TType.STOP:
36698
      if ftype == TType.STOP:
36513
        break
36699
        break
36514
      if fid == 0:
36700
      if fid == 0:
36515
        if ftype == TType.MAP:
36701
        if ftype == TType.MAP:
36516
          self.success = {}
36702
          self.success = {}
36517
          (_ktype1030, _vtype1031, _size1029 ) = iprot.readMapBegin() 
36703
          (_ktype1046, _vtype1047, _size1045 ) = iprot.readMapBegin() 
36518
          for _i1033 in xrange(_size1029):
36704
          for _i1049 in xrange(_size1045):
36519
            _key1034 = iprot.readI64();
36705
            _key1050 = iprot.readI64();
36520
            _val1035 = iprot.readDouble();
36706
            _val1051 = iprot.readDouble();
36521
            self.success[_key1034] = _val1035
36707
            self.success[_key1050] = _val1051
36522
          iprot.readMapEnd()
36708
          iprot.readMapEnd()
36523
        else:
36709
        else:
36524
          iprot.skip(ftype)
36710
          iprot.skip(ftype)
36525
      else:
36711
      else:
36526
        iprot.skip(ftype)
36712
        iprot.skip(ftype)
Line 36533... Line 36719...
36533
      return
36719
      return
36534
    oprot.writeStructBegin('getAllFofoDeals_result')
36720
    oprot.writeStructBegin('getAllFofoDeals_result')
36535
    if self.success is not None:
36721
    if self.success is not None:
36536
      oprot.writeFieldBegin('success', TType.MAP, 0)
36722
      oprot.writeFieldBegin('success', TType.MAP, 0)
36537
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
36723
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
36538
      for kiter1036,viter1037 in self.success.items():
36724
      for kiter1052,viter1053 in self.success.items():
36539
        oprot.writeI64(kiter1036)
36725
        oprot.writeI64(kiter1052)
36540
        oprot.writeDouble(viter1037)
36726
        oprot.writeDouble(viter1053)
36541
      oprot.writeMapEnd()
36727
      oprot.writeMapEnd()
36542
      oprot.writeFieldEnd()
36728
      oprot.writeFieldEnd()
36543
    oprot.writeFieldStop()
36729
    oprot.writeFieldStop()
36544
    oprot.writeStructEnd()
36730
    oprot.writeStructEnd()
36545
 
36731