Subversion Repositories SmartDukaan

Rev

Rev 23310 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23310 Rev 23313
Line 1420... Line 1420...
1420
    Parameters:
1420
    Parameters:
1421
     - itemIds
1421
     - itemIds
1422
    """
1422
    """
1423
    pass
1423
    pass
1424
 
1424
 
1425
  def persistStateGstRate(self, stateGstRate):
1425
  def persistGstRate(self, stateGstRates):
1426
    """
1426
    """
1427
    Parameters:
1427
    Parameters:
1428
     - stateGstRate
1428
     - stateGstRates
1429
    """
1429
    """
1430
    pass
1430
    pass
1431
 
1431
 
1432
  def getHsnCodesByCategory(self, categoryId):
1432
  def getHsnCodesByCategory(self, categoryId):
1433
    """
1433
    """
Line 7598... Line 7598...
7598
    self._iprot.readMessageEnd()
7598
    self._iprot.readMessageEnd()
7599
    if result.success is not None:
7599
    if result.success is not None:
7600
      return result.success
7600
      return result.success
7601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
7601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
7602
 
7602
 
7603
  def persistStateGstRate(self, stateGstRate):
7603
  def persistGstRate(self, stateGstRates):
7604
    """
7604
    """
7605
    Parameters:
7605
    Parameters:
7606
     - stateGstRate
7606
     - stateGstRates
7607
    """
7607
    """
7608
    self.send_persistStateGstRate(stateGstRate)
7608
    self.send_persistGstRate(stateGstRates)
7609
    self.recv_persistStateGstRate()
7609
    self.recv_persistGstRate()
7610
 
7610
 
7611
  def send_persistStateGstRate(self, stateGstRate):
7611
  def send_persistGstRate(self, stateGstRates):
7612
    self._oprot.writeMessageBegin('persistStateGstRate', TMessageType.CALL, self._seqid)
7612
    self._oprot.writeMessageBegin('persistGstRate', TMessageType.CALL, self._seqid)
7613
    args = persistStateGstRate_args()
7613
    args = persistGstRate_args()
7614
    args.stateGstRate = stateGstRate
7614
    args.stateGstRates = stateGstRates
7615
    args.write(self._oprot)
7615
    args.write(self._oprot)
7616
    self._oprot.writeMessageEnd()
7616
    self._oprot.writeMessageEnd()
7617
    self._oprot.trans.flush()
7617
    self._oprot.trans.flush()
7618
 
7618
 
7619
  def recv_persistStateGstRate(self, ):
7619
  def recv_persistGstRate(self, ):
7620
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7620
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
7621
    if mtype == TMessageType.EXCEPTION:
7621
    if mtype == TMessageType.EXCEPTION:
7622
      x = TApplicationException()
7622
      x = TApplicationException()
7623
      x.read(self._iprot)
7623
      x.read(self._iprot)
7624
      self._iprot.readMessageEnd()
7624
      self._iprot.readMessageEnd()
7625
      raise x
7625
      raise x
7626
    result = persistStateGstRate_result()
7626
    result = persistGstRate_result()
7627
    result.read(self._iprot)
7627
    result.read(self._iprot)
7628
    self._iprot.readMessageEnd()
7628
    self._iprot.readMessageEnd()
7629
    return
7629
    return
7630
 
7630
 
7631
  def getHsnCodesByCategory(self, categoryId):
7631
  def getHsnCodesByCategory(self, categoryId):
Line 7896... Line 7896...
7896
    self._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalog
7896
    self._processMap["bulkUpdateCatalog"] = Processor.process_bulkUpdateCatalog
7897
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7897
    self._processMap["getWarrantyInfoForItem"] = Processor.process_getWarrantyInfoForItem
7898
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7898
    self._processMap["getWarrantyInfoForItemList"] = Processor.process_getWarrantyInfoForItemList
7899
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
7899
    self._processMap["getStateTaxRate"] = Processor.process_getStateTaxRate
7900
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
7900
    self._processMap["getIgstTaxRate"] = Processor.process_getIgstTaxRate
7901
    self._processMap["persistStateGstRate"] = Processor.process_persistStateGstRate
7901
    self._processMap["persistGstRate"] = Processor.process_persistGstRate
7902
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7902
    self._processMap["getHsnCodesByCategory"] = Processor.process_getHsnCodesByCategory
7903
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7903
    self._processMap["getAllFofoDeals"] = Processor.process_getAllFofoDeals
7904
 
7904
 
7905
  def process(self, iprot, oprot):
7905
  def process(self, iprot, oprot):
7906
    (name, type, seqid) = iprot.readMessageBegin()
7906
    (name, type, seqid) = iprot.readMessageBegin()
Line 10290... Line 10290...
10290
    oprot.writeMessageBegin("getIgstTaxRate", TMessageType.REPLY, seqid)
10290
    oprot.writeMessageBegin("getIgstTaxRate", TMessageType.REPLY, seqid)
10291
    result.write(oprot)
10291
    result.write(oprot)
10292
    oprot.writeMessageEnd()
10292
    oprot.writeMessageEnd()
10293
    oprot.trans.flush()
10293
    oprot.trans.flush()
10294
 
10294
 
10295
  def process_persistStateGstRate(self, seqid, iprot, oprot):
10295
  def process_persistGstRate(self, seqid, iprot, oprot):
10296
    args = persistStateGstRate_args()
10296
    args = persistGstRate_args()
10297
    args.read(iprot)
10297
    args.read(iprot)
10298
    iprot.readMessageEnd()
10298
    iprot.readMessageEnd()
10299
    result = persistStateGstRate_result()
10299
    result = persistGstRate_result()
10300
    self._handler.persistStateGstRate(args.stateGstRate)
10300
    self._handler.persistGstRate(args.stateGstRates)
10301
    oprot.writeMessageBegin("persistStateGstRate", TMessageType.REPLY, seqid)
10301
    oprot.writeMessageBegin("persistGstRate", TMessageType.REPLY, seqid)
10302
    result.write(oprot)
10302
    result.write(oprot)
10303
    oprot.writeMessageEnd()
10303
    oprot.writeMessageEnd()
10304
    oprot.trans.flush()
10304
    oprot.trans.flush()
10305
 
10305
 
10306
  def process_getHsnCodesByCategory(self, seqid, iprot, oprot):
10306
  def process_getHsnCodesByCategory(self, seqid, iprot, oprot):
Line 36139... Line 36139...
36139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36140
 
36140
 
36141
  def __ne__(self, other):
36141
  def __ne__(self, other):
36142
    return not (self == other)
36142
    return not (self == other)
36143
 
36143
 
36144
class persistStateGstRate_args:
36144
class persistGstRate_args:
36145
  """
36145
  """
36146
  Attributes:
36146
  Attributes:
36147
   - stateGstRate
36147
   - stateGstRates
36148
  """
36148
  """
36149
 
36149
 
36150
  thrift_spec = (
36150
  thrift_spec = (
36151
    None, # 0
36151
    None, # 0
36152
    (1, TType.STRUCT, 'stateGstRate', (StateGstRate, StateGstRate.thrift_spec), None, ), # 1
36152
    (1, TType.LIST, 'stateGstRates', (TType.STRUCT,(StateGstRate, StateGstRate.thrift_spec)), None, ), # 1
36153
  )
36153
  )
36154
 
36154
 
36155
  def __init__(self, stateGstRate=None,):
36155
  def __init__(self, stateGstRates=None,):
36156
    self.stateGstRate = stateGstRate
36156
    self.stateGstRates = stateGstRates
36157
 
36157
 
36158
  def read(self, iprot):
36158
  def read(self, iprot):
36159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
36159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
36160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
36160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
36161
      return
36161
      return
Line 36163... Line 36163...
36163
    while True:
36163
    while True:
36164
      (fname, ftype, fid) = iprot.readFieldBegin()
36164
      (fname, ftype, fid) = iprot.readFieldBegin()
36165
      if ftype == TType.STOP:
36165
      if ftype == TType.STOP:
36166
        break
36166
        break
36167
      if fid == 1:
36167
      if fid == 1:
36168
        if ftype == TType.STRUCT:
36168
        if ftype == TType.LIST:
36169
          self.stateGstRate = StateGstRate()
36169
          self.stateGstRates = []
-
 
36170
          (_etype1018, _size1015) = iprot.readListBegin()
-
 
36171
          for _i1019 in xrange(_size1015):
-
 
36172
            _elem1020 = StateGstRate()
-
 
36173
            _elem1020.read(iprot)
36170
          self.stateGstRate.read(iprot)
36174
            self.stateGstRates.append(_elem1020)
-
 
36175
          iprot.readListEnd()
36171
        else:
36176
        else:
36172
          iprot.skip(ftype)
36177
          iprot.skip(ftype)
36173
      else:
36178
      else:
36174
        iprot.skip(ftype)
36179
        iprot.skip(ftype)
36175
      iprot.readFieldEnd()
36180
      iprot.readFieldEnd()
Line 36177... Line 36182...
36177
 
36182
 
36178
  def write(self, oprot):
36183
  def write(self, oprot):
36179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36181
      return
36186
      return
36182
    oprot.writeStructBegin('persistStateGstRate_args')
36187
    oprot.writeStructBegin('persistGstRate_args')
36183
    if self.stateGstRate is not None:
36188
    if self.stateGstRates is not None:
36184
      oprot.writeFieldBegin('stateGstRate', TType.STRUCT, 1)
36189
      oprot.writeFieldBegin('stateGstRates', TType.LIST, 1)
-
 
36190
      oprot.writeListBegin(TType.STRUCT, len(self.stateGstRates))
-
 
36191
      for iter1021 in self.stateGstRates:
36185
      self.stateGstRate.write(oprot)
36192
        iter1021.write(oprot)
-
 
36193
      oprot.writeListEnd()
36186
      oprot.writeFieldEnd()
36194
      oprot.writeFieldEnd()
36187
    oprot.writeFieldStop()
36195
    oprot.writeFieldStop()
36188
    oprot.writeStructEnd()
36196
    oprot.writeStructEnd()
36189
 
36197
 
36190
  def validate(self):
36198
  def validate(self):
Line 36200... Line 36208...
36200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
36201
 
36209
 
36202
  def __ne__(self, other):
36210
  def __ne__(self, other):
36203
    return not (self == other)
36211
    return not (self == other)
36204
 
36212
 
36205
class persistStateGstRate_result:
36213
class persistGstRate_result:
36206
 
36214
 
36207
  thrift_spec = (
36215
  thrift_spec = (
36208
  )
36216
  )
36209
 
36217
 
36210
  def read(self, iprot):
36218
  def read(self, iprot):
Line 36223... Line 36231...
36223
 
36231
 
36224
  def write(self, oprot):
36232
  def write(self, oprot):
36225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
36226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36227
      return
36235
      return
36228
    oprot.writeStructBegin('persistStateGstRate_result')
36236
    oprot.writeStructBegin('persistGstRate_result')
36229
    oprot.writeFieldStop()
36237
    oprot.writeFieldStop()
36230
    oprot.writeStructEnd()
36238
    oprot.writeStructEnd()
36231
 
36239
 
36232
  def validate(self):
36240
  def validate(self):
36233
    return
36241
    return
Line 36330... Line 36338...
36330
      if ftype == TType.STOP:
36338
      if ftype == TType.STOP:
36331
        break
36339
        break
36332
      if fid == 0:
36340
      if fid == 0:
36333
        if ftype == TType.LIST:
36341
        if ftype == TType.LIST:
36334
          self.success = []
36342
          self.success = []
36335
          (_etype1018, _size1015) = iprot.readListBegin()
36343
          (_etype1025, _size1022) = iprot.readListBegin()
36336
          for _i1019 in xrange(_size1015):
36344
          for _i1026 in xrange(_size1022):
36337
            _elem1020 = CategoryHsnCode()
36345
            _elem1027 = CategoryHsnCode()
36338
            _elem1020.read(iprot)
36346
            _elem1027.read(iprot)
36339
            self.success.append(_elem1020)
36347
            self.success.append(_elem1027)
36340
          iprot.readListEnd()
36348
          iprot.readListEnd()
36341
        else:
36349
        else:
36342
          iprot.skip(ftype)
36350
          iprot.skip(ftype)
36343
      elif fid == 1:
36351
      elif fid == 1:
36344
        if ftype == TType.STRUCT:
36352
        if ftype == TType.STRUCT:
Line 36357... Line 36365...
36357
      return
36365
      return
36358
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36366
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36359
    if self.success is not None:
36367
    if self.success is not None:
36360
      oprot.writeFieldBegin('success', TType.LIST, 0)
36368
      oprot.writeFieldBegin('success', TType.LIST, 0)
36361
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36369
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36362
      for iter1021 in self.success:
36370
      for iter1028 in self.success:
36363
        iter1021.write(oprot)
36371
        iter1028.write(oprot)
36364
      oprot.writeListEnd()
36372
      oprot.writeListEnd()
36365
      oprot.writeFieldEnd()
36373
      oprot.writeFieldEnd()
36366
    if self.cex is not None:
36374
    if self.cex is not None:
36367
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36375
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36368
      self.cex.write(oprot)
36376
      self.cex.write(oprot)
Line 36407... Line 36415...
36407
      if ftype == TType.STOP:
36415
      if ftype == TType.STOP:
36408
        break
36416
        break
36409
      if fid == -1:
36417
      if fid == -1:
36410
        if ftype == TType.LIST:
36418
        if ftype == TType.LIST:
36411
          self.itemIds = []
36419
          self.itemIds = []
36412
          (_etype1025, _size1022) = iprot.readListBegin()
36420
          (_etype1032, _size1029) = iprot.readListBegin()
36413
          for _i1026 in xrange(_size1022):
36421
          for _i1033 in xrange(_size1029):
36414
            _elem1027 = iprot.readI64();
36422
            _elem1034 = iprot.readI64();
36415
            self.itemIds.append(_elem1027)
36423
            self.itemIds.append(_elem1034)
36416
          iprot.readListEnd()
36424
          iprot.readListEnd()
36417
        else:
36425
        else:
36418
          iprot.skip(ftype)
36426
          iprot.skip(ftype)
36419
      elif fid == -2:
36427
      elif fid == -2:
36420
        if ftype == TType.LIST:
36428
        if ftype == TType.LIST:
36421
          self.tagIds = []
36429
          self.tagIds = []
36422
          (_etype1031, _size1028) = iprot.readListBegin()
36430
          (_etype1038, _size1035) = iprot.readListBegin()
36423
          for _i1032 in xrange(_size1028):
36431
          for _i1039 in xrange(_size1035):
36424
            _elem1033 = iprot.readI64();
36432
            _elem1040 = iprot.readI64();
36425
            self.tagIds.append(_elem1033)
36433
            self.tagIds.append(_elem1040)
36426
          iprot.readListEnd()
36434
          iprot.readListEnd()
36427
        else:
36435
        else:
36428
          iprot.skip(ftype)
36436
          iprot.skip(ftype)
36429
      else:
36437
      else:
36430
        iprot.skip(ftype)
36438
        iprot.skip(ftype)
Line 36437... Line 36445...
36437
      return
36445
      return
36438
    oprot.writeStructBegin('getAllFofoDeals_args')
36446
    oprot.writeStructBegin('getAllFofoDeals_args')
36439
    if self.tagIds is not None:
36447
    if self.tagIds is not None:
36440
      oprot.writeFieldBegin('tagIds', TType.LIST, -2)
36448
      oprot.writeFieldBegin('tagIds', TType.LIST, -2)
36441
      oprot.writeListBegin(TType.I64, len(self.tagIds))
36449
      oprot.writeListBegin(TType.I64, len(self.tagIds))
36442
      for iter1034 in self.tagIds:
36450
      for iter1041 in self.tagIds:
36443
        oprot.writeI64(iter1034)
36451
        oprot.writeI64(iter1041)
36444
      oprot.writeListEnd()
36452
      oprot.writeListEnd()
36445
      oprot.writeFieldEnd()
36453
      oprot.writeFieldEnd()
36446
    if self.itemIds is not None:
36454
    if self.itemIds is not None:
36447
      oprot.writeFieldBegin('itemIds', TType.LIST, -1)
36455
      oprot.writeFieldBegin('itemIds', TType.LIST, -1)
36448
      oprot.writeListBegin(TType.I64, len(self.itemIds))
36456
      oprot.writeListBegin(TType.I64, len(self.itemIds))
36449
      for iter1035 in self.itemIds:
36457
      for iter1042 in self.itemIds:
36450
        oprot.writeI64(iter1035)
36458
        oprot.writeI64(iter1042)
36451
      oprot.writeListEnd()
36459
      oprot.writeListEnd()
36452
      oprot.writeFieldEnd()
36460
      oprot.writeFieldEnd()
36453
    oprot.writeFieldStop()
36461
    oprot.writeFieldStop()
36454
    oprot.writeStructEnd()
36462
    oprot.writeStructEnd()
36455
 
36463
 
Line 36491... Line 36499...
36491
      if ftype == TType.STOP:
36499
      if ftype == TType.STOP:
36492
        break
36500
        break
36493
      if fid == 0:
36501
      if fid == 0:
36494
        if ftype == TType.MAP:
36502
        if ftype == TType.MAP:
36495
          self.success = {}
36503
          self.success = {}
36496
          (_ktype1037, _vtype1038, _size1036 ) = iprot.readMapBegin() 
36504
          (_ktype1044, _vtype1045, _size1043 ) = iprot.readMapBegin() 
36497
          for _i1040 in xrange(_size1036):
36505
          for _i1047 in xrange(_size1043):
36498
            _key1041 = iprot.readI64();
36506
            _key1048 = iprot.readI64();
36499
            _val1042 = iprot.readDouble();
36507
            _val1049 = iprot.readDouble();
36500
            self.success[_key1041] = _val1042
36508
            self.success[_key1048] = _val1049
36501
          iprot.readMapEnd()
36509
          iprot.readMapEnd()
36502
        else:
36510
        else:
36503
          iprot.skip(ftype)
36511
          iprot.skip(ftype)
36504
      else:
36512
      else:
36505
        iprot.skip(ftype)
36513
        iprot.skip(ftype)
Line 36512... Line 36520...
36512
      return
36520
      return
36513
    oprot.writeStructBegin('getAllFofoDeals_result')
36521
    oprot.writeStructBegin('getAllFofoDeals_result')
36514
    if self.success is not None:
36522
    if self.success is not None:
36515
      oprot.writeFieldBegin('success', TType.MAP, 0)
36523
      oprot.writeFieldBegin('success', TType.MAP, 0)
36516
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
36524
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
36517
      for kiter1043,viter1044 in self.success.items():
36525
      for kiter1050,viter1051 in self.success.items():
36518
        oprot.writeI64(kiter1043)
36526
        oprot.writeI64(kiter1050)
36519
        oprot.writeDouble(viter1044)
36527
        oprot.writeDouble(viter1051)
36520
      oprot.writeMapEnd()
36528
      oprot.writeMapEnd()
36521
      oprot.writeFieldEnd()
36529
      oprot.writeFieldEnd()
36522
    oprot.writeFieldStop()
36530
    oprot.writeFieldStop()
36523
    oprot.writeStructEnd()
36531
    oprot.writeStructEnd()
36524
 
36532