Subversion Repositories SmartDukaan

Rev

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

Rev 23144 Rev 23151
Line 622... Line 622...
622
 
622
 
623
    public Map<Long,Map<String,Long>> getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;
623
    public Map<Long,Map<String,Long>> getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;
624
 
624
 
625
    public StateGstRates getGstRatesByState(long stateId) throws CatalogServiceException, org.apache.thrift.TException;
625
    public StateGstRates getGstRatesByState(long stateId) throws CatalogServiceException, org.apache.thrift.TException;
626
 
626
 
627
    public Map<Integer,GstRate> getTotalTaxRate(List<Integer> itemIds, int stateId) throws org.apache.thrift.TException;
627
    public Map<Integer,GstRate> getStateTaxRate(List<Integer> itemIds, int stateId) throws org.apache.thrift.TException;
-
 
628
 
-
 
629
    public Map<Integer,Double> getIgstTaxRate(List<Integer> itemIds) throws org.apache.thrift.TException;
628
 
630
 
629
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
631
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
630
 
632
 
631
    public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
633
    public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
632
 
634
 
Line 1036... Line 1038...
1036
 
1038
 
1037
    public void getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItemList_call> resultHandler) throws org.apache.thrift.TException;
1039
    public void getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItemList_call> resultHandler) throws org.apache.thrift.TException;
1038
 
1040
 
1039
    public void getGstRatesByState(long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getGstRatesByState_call> resultHandler) throws org.apache.thrift.TException;
1041
    public void getGstRatesByState(long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getGstRatesByState_call> resultHandler) throws org.apache.thrift.TException;
1040
 
1042
 
1041
    public void getTotalTaxRate(List<Integer> itemIds, int stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTotalTaxRate_call> resultHandler) throws org.apache.thrift.TException;
1043
    public void getStateTaxRate(List<Integer> itemIds, int stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateTaxRate_call> resultHandler) throws org.apache.thrift.TException;
-
 
1044
 
-
 
1045
    public void getIgstTaxRate(List<Integer> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgstTaxRate_call> resultHandler) throws org.apache.thrift.TException;
1042
 
1046
 
1043
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException;
1047
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException;
1044
 
1048
 
1045
    public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;
1049
    public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;
1046
 
1050
 
Line 5815... Line 5819...
5815
        throw result.cex;
5819
        throw result.cex;
5816
      }
5820
      }
5817
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGstRatesByState failed: unknown result");
5821
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGstRatesByState failed: unknown result");
5818
    }
5822
    }
5819
 
5823
 
5820
    public Map<Integer,GstRate> getTotalTaxRate(List<Integer> itemIds, int stateId) throws org.apache.thrift.TException
5824
    public Map<Integer,GstRate> getStateTaxRate(List<Integer> itemIds, int stateId) throws org.apache.thrift.TException
5821
    {
5825
    {
5822
      send_getTotalTaxRate(itemIds, stateId);
5826
      send_getStateTaxRate(itemIds, stateId);
5823
      return recv_getTotalTaxRate();
5827
      return recv_getStateTaxRate();
5824
    }
5828
    }
5825
 
5829
 
5826
    public void send_getTotalTaxRate(List<Integer> itemIds, int stateId) throws org.apache.thrift.TException
5830
    public void send_getStateTaxRate(List<Integer> itemIds, int stateId) throws org.apache.thrift.TException
5827
    {
5831
    {
5828
      getTotalTaxRate_args args = new getTotalTaxRate_args();
5832
      getStateTaxRate_args args = new getStateTaxRate_args();
5829
      args.setItemIds(itemIds);
5833
      args.setItemIds(itemIds);
5830
      args.setStateId(stateId);
5834
      args.setStateId(stateId);
5831
      sendBase("getTotalTaxRate", args);
5835
      sendBase("getStateTaxRate", args);
5832
    }
5836
    }
5833
 
5837
 
5834
    public Map<Integer,GstRate> recv_getTotalTaxRate() throws org.apache.thrift.TException
5838
    public Map<Integer,GstRate> recv_getStateTaxRate() throws org.apache.thrift.TException
5835
    {
5839
    {
5836
      getTotalTaxRate_result result = new getTotalTaxRate_result();
5840
      getStateTaxRate_result result = new getStateTaxRate_result();
5837
      receiveBase(result, "getTotalTaxRate");
5841
      receiveBase(result, "getStateTaxRate");
5838
      if (result.isSetSuccess()) {
5842
      if (result.isSetSuccess()) {
5839
        return result.success;
5843
        return result.success;
5840
      }
5844
      }
5841
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTotalTaxRate failed: unknown result");
5845
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateTaxRate failed: unknown result");
-
 
5846
    }
-
 
5847
 
-
 
5848
    public Map<Integer,Double> getIgstTaxRate(List<Integer> itemIds) throws org.apache.thrift.TException
-
 
5849
    {
-
 
5850
      send_getIgstTaxRate(itemIds);
-
 
5851
      return recv_getIgstTaxRate();
-
 
5852
    }
-
 
5853
 
-
 
5854
    public void send_getIgstTaxRate(List<Integer> itemIds) throws org.apache.thrift.TException
-
 
5855
    {
-
 
5856
      getIgstTaxRate_args args = new getIgstTaxRate_args();
-
 
5857
      args.setItemIds(itemIds);
-
 
5858
      sendBase("getIgstTaxRate", args);
-
 
5859
    }
-
 
5860
 
-
 
5861
    public Map<Integer,Double> recv_getIgstTaxRate() throws org.apache.thrift.TException
-
 
5862
    {
-
 
5863
      getIgstTaxRate_result result = new getIgstTaxRate_result();
-
 
5864
      receiveBase(result, "getIgstTaxRate");
-
 
5865
      if (result.isSetSuccess()) {
-
 
5866
        return result.success;
-
 
5867
      }
-
 
5868
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
5842
    }
5869
    }
5843
 
5870
 
5844
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException
5871
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException
5845
    {
5872
    {
5846
      send_getInterStateGstRates();
5873
      send_getInterStateGstRates();
Line 12517... Line 12544...
12517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12544
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12518
        return (new Client(prot)).recv_getGstRatesByState();
12545
        return (new Client(prot)).recv_getGstRatesByState();
12519
      }
12546
      }
12520
    }
12547
    }
12521
 
12548
 
12522
    public void getTotalTaxRate(List<Integer> itemIds, int stateId, org.apache.thrift.async.AsyncMethodCallback<getTotalTaxRate_call> resultHandler) throws org.apache.thrift.TException {
12549
    public void getStateTaxRate(List<Integer> itemIds, int stateId, org.apache.thrift.async.AsyncMethodCallback<getStateTaxRate_call> resultHandler) throws org.apache.thrift.TException {
12523
      checkReady();
12550
      checkReady();
12524
      getTotalTaxRate_call method_call = new getTotalTaxRate_call(itemIds, stateId, resultHandler, this, ___protocolFactory, ___transport);
12551
      getStateTaxRate_call method_call = new getStateTaxRate_call(itemIds, stateId, resultHandler, this, ___protocolFactory, ___transport);
12525
      this.___currentMethod = method_call;
12552
      this.___currentMethod = method_call;
12526
      ___manager.call(method_call);
12553
      ___manager.call(method_call);
12527
    }
12554
    }
12528
 
12555
 
12529
    public static class getTotalTaxRate_call extends org.apache.thrift.async.TAsyncMethodCall {
12556
    public static class getStateTaxRate_call extends org.apache.thrift.async.TAsyncMethodCall {
12530
      private List<Integer> itemIds;
12557
      private List<Integer> itemIds;
12531
      private int stateId;
12558
      private int stateId;
12532
      public getTotalTaxRate_call(List<Integer> itemIds, int stateId, org.apache.thrift.async.AsyncMethodCallback<getTotalTaxRate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
12559
      public getStateTaxRate_call(List<Integer> itemIds, int stateId, org.apache.thrift.async.AsyncMethodCallback<getStateTaxRate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
12533
        super(client, protocolFactory, transport, resultHandler, false);
12560
        super(client, protocolFactory, transport, resultHandler, false);
12534
        this.itemIds = itemIds;
12561
        this.itemIds = itemIds;
12535
        this.stateId = stateId;
12562
        this.stateId = stateId;
12536
      }
12563
      }
12537
 
12564
 
12538
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
12565
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
12539
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTotalTaxRate", org.apache.thrift.protocol.TMessageType.CALL, 0));
12566
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStateTaxRate", org.apache.thrift.protocol.TMessageType.CALL, 0));
12540
        getTotalTaxRate_args args = new getTotalTaxRate_args();
12567
        getStateTaxRate_args args = new getStateTaxRate_args();
12541
        args.setItemIds(itemIds);
12568
        args.setItemIds(itemIds);
12542
        args.setStateId(stateId);
12569
        args.setStateId(stateId);
12543
        args.write(prot);
12570
        args.write(prot);
12544
        prot.writeMessageEnd();
12571
        prot.writeMessageEnd();
12545
      }
12572
      }
Line 12548... Line 12575...
12548
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
12575
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
12549
          throw new IllegalStateException("Method call not finished!");
12576
          throw new IllegalStateException("Method call not finished!");
12550
        }
12577
        }
12551
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
12578
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
12552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12579
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12553
        return (new Client(prot)).recv_getTotalTaxRate();
12580
        return (new Client(prot)).recv_getStateTaxRate();
-
 
12581
      }
-
 
12582
    }
-
 
12583
 
-
 
12584
    public void getIgstTaxRate(List<Integer> itemIds, org.apache.thrift.async.AsyncMethodCallback<getIgstTaxRate_call> resultHandler) throws org.apache.thrift.TException {
-
 
12585
      checkReady();
-
 
12586
      getIgstTaxRate_call method_call = new getIgstTaxRate_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
12587
      this.___currentMethod = method_call;
-
 
12588
      ___manager.call(method_call);
-
 
12589
    }
-
 
12590
 
-
 
12591
    public static class getIgstTaxRate_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12592
      private List<Integer> itemIds;
-
 
12593
      public getIgstTaxRate_call(List<Integer> itemIds, org.apache.thrift.async.AsyncMethodCallback<getIgstTaxRate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
12594
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12595
        this.itemIds = itemIds;
-
 
12596
      }
-
 
12597
 
-
 
12598
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12599
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgstTaxRate", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12600
        getIgstTaxRate_args args = new getIgstTaxRate_args();
-
 
12601
        args.setItemIds(itemIds);
-
 
12602
        args.write(prot);
-
 
12603
        prot.writeMessageEnd();
-
 
12604
      }
-
 
12605
 
-
 
12606
      public Map<Integer,Double> getResult() throws org.apache.thrift.TException {
-
 
12607
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12608
          throw new IllegalStateException("Method call not finished!");
-
 
12609
        }
-
 
12610
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12611
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12612
        return (new Client(prot)).recv_getIgstTaxRate();
12554
      }
12613
      }
12555
    }
12614
    }
12556
 
12615
 
12557
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException {
12616
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException {
12558
      checkReady();
12617
      checkReady();
Line 12862... Line 12921...
12862
      processMap.put("updateItemPricing", new updateItemPricing());
12921
      processMap.put("updateItemPricing", new updateItemPricing());
12863
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
12922
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
12864
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12923
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12865
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12924
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12866
      processMap.put("getGstRatesByState", new getGstRatesByState());
12925
      processMap.put("getGstRatesByState", new getGstRatesByState());
12867
      processMap.put("getTotalTaxRate", new getTotalTaxRate());
12926
      processMap.put("getStateTaxRate", new getStateTaxRate());
-
 
12927
      processMap.put("getIgstTaxRate", new getIgstTaxRate());
12868
      processMap.put("getInterStateGstRates", new getInterStateGstRates());
12928
      processMap.put("getInterStateGstRates", new getInterStateGstRates());
12869
      processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());
12929
      processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());
12870
      processMap.put("getAllFofoDeals", new getAllFofoDeals());
12930
      processMap.put("getAllFofoDeals", new getAllFofoDeals());
12871
      return processMap;
12931
      return processMap;
12872
    }
12932
    }
Line 16352... Line 16412...
16352
        }
16412
        }
16353
        return result;
16413
        return result;
16354
      }
16414
      }
16355
    }
16415
    }
16356
 
16416
 
16357
    private static class getTotalTaxRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTotalTaxRate_args> {
16417
    private static class getStateTaxRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStateTaxRate_args> {
16358
      public getTotalTaxRate() {
16418
      public getStateTaxRate() {
16359
        super("getTotalTaxRate");
16419
        super("getStateTaxRate");
16360
      }
16420
      }
16361
 
16421
 
16362
      protected getTotalTaxRate_args getEmptyArgsInstance() {
16422
      protected getStateTaxRate_args getEmptyArgsInstance() {
16363
        return new getTotalTaxRate_args();
16423
        return new getStateTaxRate_args();
16364
      }
16424
      }
16365
 
16425
 
16366
      protected getTotalTaxRate_result getResult(I iface, getTotalTaxRate_args args) throws org.apache.thrift.TException {
16426
      protected getStateTaxRate_result getResult(I iface, getStateTaxRate_args args) throws org.apache.thrift.TException {
16367
        getTotalTaxRate_result result = new getTotalTaxRate_result();
16427
        getStateTaxRate_result result = new getStateTaxRate_result();
16368
        result.success = iface.getTotalTaxRate(args.itemIds, args.stateId);
16428
        result.success = iface.getStateTaxRate(args.itemIds, args.stateId);
-
 
16429
        return result;
-
 
16430
      }
-
 
16431
    }
-
 
16432
 
-
 
16433
    private static class getIgstTaxRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgstTaxRate_args> {
-
 
16434
      public getIgstTaxRate() {
-
 
16435
        super("getIgstTaxRate");
-
 
16436
      }
-
 
16437
 
-
 
16438
      protected getIgstTaxRate_args getEmptyArgsInstance() {
-
 
16439
        return new getIgstTaxRate_args();
-
 
16440
      }
-
 
16441
 
-
 
16442
      protected getIgstTaxRate_result getResult(I iface, getIgstTaxRate_args args) throws org.apache.thrift.TException {
-
 
16443
        getIgstTaxRate_result result = new getIgstTaxRate_result();
-
 
16444
        result.success = iface.getIgstTaxRate(args.itemIds);
16369
        return result;
16445
        return result;
16370
      }
16446
      }
16371
    }
16447
    }
16372
 
16448
 
16373
    private static class getInterStateGstRates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInterStateGstRates_args> {
16449
    private static class getInterStateGstRates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInterStateGstRates_args> {
Line 145527... Line 145603...
145527
      }
145603
      }
145528
    }
145604
    }
145529
 
145605
 
145530
  }
145606
  }
145531
 
145607
 
145532
  public static class getTotalTaxRate_args implements org.apache.thrift.TBase<getTotalTaxRate_args, getTotalTaxRate_args._Fields>, java.io.Serializable, Cloneable   {
145608
  public static class getStateTaxRate_args implements org.apache.thrift.TBase<getStateTaxRate_args, getStateTaxRate_args._Fields>, java.io.Serializable, Cloneable   {
145533
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTotalTaxRate_args");
145609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateTaxRate_args");
145534
 
145610
 
145535
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
145611
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
145536
    private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I32, (short)2);
145612
    private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I32, (short)2);
145537
 
145613
 
145538
    private List<Integer> itemIds; // required
145614
    private List<Integer> itemIds; // required
Line 145610... Line 145686...
145610
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
145686
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
145611
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
145687
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
145612
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145688
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
145689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
145614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
145690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
145615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTotalTaxRate_args.class, metaDataMap);
145691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateTaxRate_args.class, metaDataMap);
145616
    }
145692
    }
145617
 
145693
 
145618
    public getTotalTaxRate_args() {
145694
    public getStateTaxRate_args() {
145619
    }
145695
    }
145620
 
145696
 
145621
    public getTotalTaxRate_args(
145697
    public getStateTaxRate_args(
145622
      List<Integer> itemIds,
145698
      List<Integer> itemIds,
145623
      int stateId)
145699
      int stateId)
145624
    {
145700
    {
145625
      this();
145701
      this();
145626
      this.itemIds = itemIds;
145702
      this.itemIds = itemIds;
Line 145629... Line 145705...
145629
    }
145705
    }
145630
 
145706
 
145631
    /**
145707
    /**
145632
     * Performs a deep copy on <i>other</i>.
145708
     * Performs a deep copy on <i>other</i>.
145633
     */
145709
     */
145634
    public getTotalTaxRate_args(getTotalTaxRate_args other) {
145710
    public getStateTaxRate_args(getStateTaxRate_args other) {
145635
      __isset_bit_vector.clear();
145711
      __isset_bit_vector.clear();
145636
      __isset_bit_vector.or(other.__isset_bit_vector);
145712
      __isset_bit_vector.or(other.__isset_bit_vector);
145637
      if (other.isSetItemIds()) {
145713
      if (other.isSetItemIds()) {
145638
        List<Integer> __this__itemIds = new ArrayList<Integer>();
145714
        List<Integer> __this__itemIds = new ArrayList<Integer>();
145639
        for (Integer other_element : other.itemIds) {
145715
        for (Integer other_element : other.itemIds) {
Line 145642... Line 145718...
145642
        this.itemIds = __this__itemIds;
145718
        this.itemIds = __this__itemIds;
145643
      }
145719
      }
145644
      this.stateId = other.stateId;
145720
      this.stateId = other.stateId;
145645
    }
145721
    }
145646
 
145722
 
145647
    public getTotalTaxRate_args deepCopy() {
145723
    public getStateTaxRate_args deepCopy() {
145648
      return new getTotalTaxRate_args(this);
145724
      return new getStateTaxRate_args(this);
145649
    }
145725
    }
145650
 
145726
 
145651
    @Override
145727
    @Override
145652
    public void clear() {
145728
    public void clear() {
145653
      this.itemIds = null;
145729
      this.itemIds = null;
Line 145765... Line 145841...
145765
 
145841
 
145766
    @Override
145842
    @Override
145767
    public boolean equals(Object that) {
145843
    public boolean equals(Object that) {
145768
      if (that == null)
145844
      if (that == null)
145769
        return false;
145845
        return false;
145770
      if (that instanceof getTotalTaxRate_args)
145846
      if (that instanceof getStateTaxRate_args)
145771
        return this.equals((getTotalTaxRate_args)that);
145847
        return this.equals((getStateTaxRate_args)that);
145772
      return false;
145848
      return false;
145773
    }
145849
    }
145774
 
145850
 
145775
    public boolean equals(getTotalTaxRate_args that) {
145851
    public boolean equals(getStateTaxRate_args that) {
145776
      if (that == null)
145852
      if (that == null)
145777
        return false;
145853
        return false;
145778
 
145854
 
145779
      boolean this_present_itemIds = true && this.isSetItemIds();
145855
      boolean this_present_itemIds = true && this.isSetItemIds();
145780
      boolean that_present_itemIds = true && that.isSetItemIds();
145856
      boolean that_present_itemIds = true && that.isSetItemIds();
Line 145800... Line 145876...
145800
    @Override
145876
    @Override
145801
    public int hashCode() {
145877
    public int hashCode() {
145802
      return 0;
145878
      return 0;
145803
    }
145879
    }
145804
 
145880
 
145805
    public int compareTo(getTotalTaxRate_args other) {
145881
    public int compareTo(getStateTaxRate_args other) {
145806
      if (!getClass().equals(other.getClass())) {
145882
      if (!getClass().equals(other.getClass())) {
145807
        return getClass().getName().compareTo(other.getClass().getName());
145883
        return getClass().getName().compareTo(other.getClass().getName());
145808
      }
145884
      }
145809
 
145885
 
145810
      int lastComparison = 0;
145886
      int lastComparison = 0;
145811
      getTotalTaxRate_args typedOther = (getTotalTaxRate_args)other;
145887
      getStateTaxRate_args typedOther = (getStateTaxRate_args)other;
145812
 
145888
 
145813
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
145889
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
145814
      if (lastComparison != 0) {
145890
      if (lastComparison != 0) {
145815
        return lastComparison;
145891
        return lastComparison;
145816
      }
145892
      }
Line 145904... Line 145980...
145904
      oprot.writeStructEnd();
145980
      oprot.writeStructEnd();
145905
    }
145981
    }
145906
 
145982
 
145907
    @Override
145983
    @Override
145908
    public String toString() {
145984
    public String toString() {
145909
      StringBuilder sb = new StringBuilder("getTotalTaxRate_args(");
145985
      StringBuilder sb = new StringBuilder("getStateTaxRate_args(");
145910
      boolean first = true;
145986
      boolean first = true;
145911
 
145987
 
145912
      sb.append("itemIds:");
145988
      sb.append("itemIds:");
145913
      if (this.itemIds == null) {
145989
      if (this.itemIds == null) {
145914
        sb.append("null");
145990
        sb.append("null");
Line 145946... Line 146022...
145946
      }
146022
      }
145947
    }
146023
    }
145948
 
146024
 
145949
  }
146025
  }
145950
 
146026
 
145951
  public static class getTotalTaxRate_result implements org.apache.thrift.TBase<getTotalTaxRate_result, getTotalTaxRate_result._Fields>, java.io.Serializable, Cloneable   {
146027
  public static class getStateTaxRate_result implements org.apache.thrift.TBase<getStateTaxRate_result, getStateTaxRate_result._Fields>, java.io.Serializable, Cloneable   {
145952
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTotalTaxRate_result");
146028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateTaxRate_result");
145953
 
146029
 
145954
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
146030
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
145955
 
146031
 
145956
    private Map<Integer,GstRate> success; // required
146032
    private Map<Integer,GstRate> success; // required
145957
 
146033
 
Line 146021... Line 146097...
146021
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
146097
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
146022
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
146098
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
146023
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
146099
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
146024
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GstRate.class))));
146100
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GstRate.class))));
146025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
146101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
146026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTotalTaxRate_result.class, metaDataMap);
146102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateTaxRate_result.class, metaDataMap);
146027
    }
146103
    }
146028
 
146104
 
146029
    public getTotalTaxRate_result() {
146105
    public getStateTaxRate_result() {
146030
    }
146106
    }
146031
 
146107
 
146032
    public getTotalTaxRate_result(
146108
    public getStateTaxRate_result(
146033
      Map<Integer,GstRate> success)
146109
      Map<Integer,GstRate> success)
146034
    {
146110
    {
146035
      this();
146111
      this();
146036
      this.success = success;
146112
      this.success = success;
146037
    }
146113
    }
146038
 
146114
 
146039
    /**
146115
    /**
146040
     * Performs a deep copy on <i>other</i>.
146116
     * Performs a deep copy on <i>other</i>.
146041
     */
146117
     */
146042
    public getTotalTaxRate_result(getTotalTaxRate_result other) {
146118
    public getStateTaxRate_result(getStateTaxRate_result other) {
146043
      if (other.isSetSuccess()) {
146119
      if (other.isSetSuccess()) {
146044
        Map<Integer,GstRate> __this__success = new HashMap<Integer,GstRate>();
146120
        Map<Integer,GstRate> __this__success = new HashMap<Integer,GstRate>();
146045
        for (Map.Entry<Integer, GstRate> other_element : other.success.entrySet()) {
146121
        for (Map.Entry<Integer, GstRate> other_element : other.success.entrySet()) {
146046
 
146122
 
146047
          Integer other_element_key = other_element.getKey();
146123
          Integer other_element_key = other_element.getKey();
Line 146055... Line 146131...
146055
        }
146131
        }
146056
        this.success = __this__success;
146132
        this.success = __this__success;
146057
      }
146133
      }
146058
    }
146134
    }
146059
 
146135
 
146060
    public getTotalTaxRate_result deepCopy() {
146136
    public getStateTaxRate_result deepCopy() {
146061
      return new getTotalTaxRate_result(this);
146137
      return new getStateTaxRate_result(this);
146062
    }
146138
    }
146063
 
146139
 
146064
    @Override
146140
    @Override
146065
    public void clear() {
146141
    public void clear() {
146066
      this.success = null;
146142
      this.success = null;
Line 146137... Line 146213...
146137
 
146213
 
146138
    @Override
146214
    @Override
146139
    public boolean equals(Object that) {
146215
    public boolean equals(Object that) {
146140
      if (that == null)
146216
      if (that == null)
146141
        return false;
146217
        return false;
146142
      if (that instanceof getTotalTaxRate_result)
146218
      if (that instanceof getStateTaxRate_result)
146143
        return this.equals((getTotalTaxRate_result)that);
146219
        return this.equals((getStateTaxRate_result)that);
146144
      return false;
146220
      return false;
146145
    }
146221
    }
146146
 
146222
 
146147
    public boolean equals(getTotalTaxRate_result that) {
146223
    public boolean equals(getStateTaxRate_result that) {
146148
      if (that == null)
146224
      if (that == null)
146149
        return false;
146225
        return false;
146150
 
146226
 
146151
      boolean this_present_success = true && this.isSetSuccess();
146227
      boolean this_present_success = true && this.isSetSuccess();
146152
      boolean that_present_success = true && that.isSetSuccess();
146228
      boolean that_present_success = true && that.isSetSuccess();
Line 146163... Line 146239...
146163
    @Override
146239
    @Override
146164
    public int hashCode() {
146240
    public int hashCode() {
146165
      return 0;
146241
      return 0;
146166
    }
146242
    }
146167
 
146243
 
146168
    public int compareTo(getTotalTaxRate_result other) {
146244
    public int compareTo(getStateTaxRate_result other) {
146169
      if (!getClass().equals(other.getClass())) {
146245
      if (!getClass().equals(other.getClass())) {
146170
        return getClass().getName().compareTo(other.getClass().getName());
146246
        return getClass().getName().compareTo(other.getClass().getName());
146171
      }
146247
      }
146172
 
146248
 
146173
      int lastComparison = 0;
146249
      int lastComparison = 0;
146174
      getTotalTaxRate_result typedOther = (getTotalTaxRate_result)other;
146250
      getStateTaxRate_result typedOther = (getStateTaxRate_result)other;
146175
 
146251
 
146176
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
146252
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
146177
      if (lastComparison != 0) {
146253
      if (lastComparison != 0) {
146178
        return lastComparison;
146254
        return lastComparison;
146179
      }
146255
      }
Line 146249... Line 146325...
146249
      oprot.writeStructEnd();
146325
      oprot.writeStructEnd();
146250
    }
146326
    }
146251
 
146327
 
146252
    @Override
146328
    @Override
146253
    public String toString() {
146329
    public String toString() {
146254
      StringBuilder sb = new StringBuilder("getTotalTaxRate_result(");
146330
      StringBuilder sb = new StringBuilder("getStateTaxRate_result(");
-
 
146331
      boolean first = true;
-
 
146332
 
-
 
146333
      sb.append("success:");
-
 
146334
      if (this.success == null) {
-
 
146335
        sb.append("null");
-
 
146336
      } else {
-
 
146337
        sb.append(this.success);
-
 
146338
      }
-
 
146339
      first = false;
-
 
146340
      sb.append(")");
-
 
146341
      return sb.toString();
-
 
146342
    }
-
 
146343
 
-
 
146344
    public void validate() throws org.apache.thrift.TException {
-
 
146345
      // check for required fields
-
 
146346
    }
-
 
146347
 
-
 
146348
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
146349
      try {
-
 
146350
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
146351
      } catch (org.apache.thrift.TException te) {
-
 
146352
        throw new java.io.IOException(te);
-
 
146353
      }
-
 
146354
    }
-
 
146355
 
-
 
146356
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
146357
      try {
-
 
146358
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
146359
      } catch (org.apache.thrift.TException te) {
-
 
146360
        throw new java.io.IOException(te);
-
 
146361
      }
-
 
146362
    }
-
 
146363
 
-
 
146364
  }
-
 
146365
 
-
 
146366
  public static class getIgstTaxRate_args implements org.apache.thrift.TBase<getIgstTaxRate_args, getIgstTaxRate_args._Fields>, java.io.Serializable, Cloneable   {
-
 
146367
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgstTaxRate_args");
-
 
146368
 
-
 
146369
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
146370
 
-
 
146371
    private List<Integer> itemIds; // required
-
 
146372
 
-
 
146373
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
146374
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
146375
      ITEM_IDS((short)1, "itemIds");
-
 
146376
 
-
 
146377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
146378
 
-
 
146379
      static {
-
 
146380
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
146381
          byName.put(field.getFieldName(), field);
-
 
146382
        }
-
 
146383
      }
-
 
146384
 
-
 
146385
      /**
-
 
146386
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
146387
       */
-
 
146388
      public static _Fields findByThriftId(int fieldId) {
-
 
146389
        switch(fieldId) {
-
 
146390
          case 1: // ITEM_IDS
-
 
146391
            return ITEM_IDS;
-
 
146392
          default:
-
 
146393
            return null;
-
 
146394
        }
-
 
146395
      }
-
 
146396
 
-
 
146397
      /**
-
 
146398
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
146399
       * if it is not found.
-
 
146400
       */
-
 
146401
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
146402
        _Fields fields = findByThriftId(fieldId);
-
 
146403
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
146404
        return fields;
-
 
146405
      }
-
 
146406
 
-
 
146407
      /**
-
 
146408
       * Find the _Fields constant that matches name, or null if its not found.
-
 
146409
       */
-
 
146410
      public static _Fields findByName(String name) {
-
 
146411
        return byName.get(name);
-
 
146412
      }
-
 
146413
 
-
 
146414
      private final short _thriftId;
-
 
146415
      private final String _fieldName;
-
 
146416
 
-
 
146417
      _Fields(short thriftId, String fieldName) {
-
 
146418
        _thriftId = thriftId;
-
 
146419
        _fieldName = fieldName;
-
 
146420
      }
-
 
146421
 
-
 
146422
      public short getThriftFieldId() {
-
 
146423
        return _thriftId;
-
 
146424
      }
-
 
146425
 
-
 
146426
      public String getFieldName() {
-
 
146427
        return _fieldName;
-
 
146428
      }
-
 
146429
    }
-
 
146430
 
-
 
146431
    // isset id assignments
-
 
146432
 
-
 
146433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
146434
    static {
-
 
146435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
146436
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146437
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
146438
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
-
 
146439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
146440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgstTaxRate_args.class, metaDataMap);
-
 
146441
    }
-
 
146442
 
-
 
146443
    public getIgstTaxRate_args() {
-
 
146444
    }
-
 
146445
 
-
 
146446
    public getIgstTaxRate_args(
-
 
146447
      List<Integer> itemIds)
-
 
146448
    {
-
 
146449
      this();
-
 
146450
      this.itemIds = itemIds;
-
 
146451
    }
-
 
146452
 
-
 
146453
    /**
-
 
146454
     * Performs a deep copy on <i>other</i>.
-
 
146455
     */
-
 
146456
    public getIgstTaxRate_args(getIgstTaxRate_args other) {
-
 
146457
      if (other.isSetItemIds()) {
-
 
146458
        List<Integer> __this__itemIds = new ArrayList<Integer>();
-
 
146459
        for (Integer other_element : other.itemIds) {
-
 
146460
          __this__itemIds.add(other_element);
-
 
146461
        }
-
 
146462
        this.itemIds = __this__itemIds;
-
 
146463
      }
-
 
146464
    }
-
 
146465
 
-
 
146466
    public getIgstTaxRate_args deepCopy() {
-
 
146467
      return new getIgstTaxRate_args(this);
-
 
146468
    }
-
 
146469
 
-
 
146470
    @Override
-
 
146471
    public void clear() {
-
 
146472
      this.itemIds = null;
-
 
146473
    }
-
 
146474
 
-
 
146475
    public int getItemIdsSize() {
-
 
146476
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
146477
    }
-
 
146478
 
-
 
146479
    public java.util.Iterator<Integer> getItemIdsIterator() {
-
 
146480
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
146481
    }
-
 
146482
 
-
 
146483
    public void addToItemIds(int elem) {
-
 
146484
      if (this.itemIds == null) {
-
 
146485
        this.itemIds = new ArrayList<Integer>();
-
 
146486
      }
-
 
146487
      this.itemIds.add(elem);
-
 
146488
    }
-
 
146489
 
-
 
146490
    public List<Integer> getItemIds() {
-
 
146491
      return this.itemIds;
-
 
146492
    }
-
 
146493
 
-
 
146494
    public void setItemIds(List<Integer> itemIds) {
-
 
146495
      this.itemIds = itemIds;
-
 
146496
    }
-
 
146497
 
-
 
146498
    public void unsetItemIds() {
-
 
146499
      this.itemIds = null;
-
 
146500
    }
-
 
146501
 
-
 
146502
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
146503
    public boolean isSetItemIds() {
-
 
146504
      return this.itemIds != null;
-
 
146505
    }
-
 
146506
 
-
 
146507
    public void setItemIdsIsSet(boolean value) {
-
 
146508
      if (!value) {
-
 
146509
        this.itemIds = null;
-
 
146510
      }
-
 
146511
    }
-
 
146512
 
-
 
146513
    public void setFieldValue(_Fields field, Object value) {
-
 
146514
      switch (field) {
-
 
146515
      case ITEM_IDS:
-
 
146516
        if (value == null) {
-
 
146517
          unsetItemIds();
-
 
146518
        } else {
-
 
146519
          setItemIds((List<Integer>)value);
-
 
146520
        }
-
 
146521
        break;
-
 
146522
 
-
 
146523
      }
-
 
146524
    }
-
 
146525
 
-
 
146526
    public Object getFieldValue(_Fields field) {
-
 
146527
      switch (field) {
-
 
146528
      case ITEM_IDS:
-
 
146529
        return getItemIds();
-
 
146530
 
-
 
146531
      }
-
 
146532
      throw new IllegalStateException();
-
 
146533
    }
-
 
146534
 
-
 
146535
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
146536
    public boolean isSet(_Fields field) {
-
 
146537
      if (field == null) {
-
 
146538
        throw new IllegalArgumentException();
-
 
146539
      }
-
 
146540
 
-
 
146541
      switch (field) {
-
 
146542
      case ITEM_IDS:
-
 
146543
        return isSetItemIds();
-
 
146544
      }
-
 
146545
      throw new IllegalStateException();
-
 
146546
    }
-
 
146547
 
-
 
146548
    @Override
-
 
146549
    public boolean equals(Object that) {
-
 
146550
      if (that == null)
-
 
146551
        return false;
-
 
146552
      if (that instanceof getIgstTaxRate_args)
-
 
146553
        return this.equals((getIgstTaxRate_args)that);
-
 
146554
      return false;
-
 
146555
    }
-
 
146556
 
-
 
146557
    public boolean equals(getIgstTaxRate_args that) {
-
 
146558
      if (that == null)
-
 
146559
        return false;
-
 
146560
 
-
 
146561
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
146562
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
146563
      if (this_present_itemIds || that_present_itemIds) {
-
 
146564
        if (!(this_present_itemIds && that_present_itemIds))
-
 
146565
          return false;
-
 
146566
        if (!this.itemIds.equals(that.itemIds))
-
 
146567
          return false;
-
 
146568
      }
-
 
146569
 
-
 
146570
      return true;
-
 
146571
    }
-
 
146572
 
-
 
146573
    @Override
-
 
146574
    public int hashCode() {
-
 
146575
      return 0;
-
 
146576
    }
-
 
146577
 
-
 
146578
    public int compareTo(getIgstTaxRate_args other) {
-
 
146579
      if (!getClass().equals(other.getClass())) {
-
 
146580
        return getClass().getName().compareTo(other.getClass().getName());
-
 
146581
      }
-
 
146582
 
-
 
146583
      int lastComparison = 0;
-
 
146584
      getIgstTaxRate_args typedOther = (getIgstTaxRate_args)other;
-
 
146585
 
-
 
146586
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
146587
      if (lastComparison != 0) {
-
 
146588
        return lastComparison;
-
 
146589
      }
-
 
146590
      if (isSetItemIds()) {
-
 
146591
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
146592
        if (lastComparison != 0) {
-
 
146593
          return lastComparison;
-
 
146594
        }
-
 
146595
      }
-
 
146596
      return 0;
-
 
146597
    }
-
 
146598
 
-
 
146599
    public _Fields fieldForId(int fieldId) {
-
 
146600
      return _Fields.findByThriftId(fieldId);
-
 
146601
    }
-
 
146602
 
-
 
146603
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
146604
      org.apache.thrift.protocol.TField field;
-
 
146605
      iprot.readStructBegin();
-
 
146606
      while (true)
-
 
146607
      {
-
 
146608
        field = iprot.readFieldBegin();
-
 
146609
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
146610
          break;
-
 
146611
        }
-
 
146612
        switch (field.id) {
-
 
146613
          case 1: // ITEM_IDS
-
 
146614
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
146615
              {
-
 
146616
                org.apache.thrift.protocol.TList _list567 = iprot.readListBegin();
-
 
146617
                this.itemIds = new ArrayList<Integer>(_list567.size);
-
 
146618
                for (int _i568 = 0; _i568 < _list567.size; ++_i568)
-
 
146619
                {
-
 
146620
                  int _elem569; // required
-
 
146621
                  _elem569 = iprot.readI32();
-
 
146622
                  this.itemIds.add(_elem569);
-
 
146623
                }
-
 
146624
                iprot.readListEnd();
-
 
146625
              }
-
 
146626
            } else { 
-
 
146627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
146628
            }
-
 
146629
            break;
-
 
146630
          default:
-
 
146631
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
146632
        }
-
 
146633
        iprot.readFieldEnd();
-
 
146634
      }
-
 
146635
      iprot.readStructEnd();
-
 
146636
      validate();
-
 
146637
    }
-
 
146638
 
-
 
146639
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
146640
      validate();
-
 
146641
 
-
 
146642
      oprot.writeStructBegin(STRUCT_DESC);
-
 
146643
      if (this.itemIds != null) {
-
 
146644
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
146645
        {
-
 
146646
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.itemIds.size()));
-
 
146647
          for (int _iter570 : this.itemIds)
-
 
146648
          {
-
 
146649
            oprot.writeI32(_iter570);
-
 
146650
          }
-
 
146651
          oprot.writeListEnd();
-
 
146652
        }
-
 
146653
        oprot.writeFieldEnd();
-
 
146654
      }
-
 
146655
      oprot.writeFieldStop();
-
 
146656
      oprot.writeStructEnd();
-
 
146657
    }
-
 
146658
 
-
 
146659
    @Override
-
 
146660
    public String toString() {
-
 
146661
      StringBuilder sb = new StringBuilder("getIgstTaxRate_args(");
-
 
146662
      boolean first = true;
-
 
146663
 
-
 
146664
      sb.append("itemIds:");
-
 
146665
      if (this.itemIds == null) {
-
 
146666
        sb.append("null");
-
 
146667
      } else {
-
 
146668
        sb.append(this.itemIds);
-
 
146669
      }
-
 
146670
      first = false;
-
 
146671
      sb.append(")");
-
 
146672
      return sb.toString();
-
 
146673
    }
-
 
146674
 
-
 
146675
    public void validate() throws org.apache.thrift.TException {
-
 
146676
      // check for required fields
-
 
146677
    }
-
 
146678
 
-
 
146679
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
146680
      try {
-
 
146681
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
146682
      } catch (org.apache.thrift.TException te) {
-
 
146683
        throw new java.io.IOException(te);
-
 
146684
      }
-
 
146685
    }
-
 
146686
 
-
 
146687
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
146688
      try {
-
 
146689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
146690
      } catch (org.apache.thrift.TException te) {
-
 
146691
        throw new java.io.IOException(te);
-
 
146692
      }
-
 
146693
    }
-
 
146694
 
-
 
146695
  }
-
 
146696
 
-
 
146697
  public static class getIgstTaxRate_result implements org.apache.thrift.TBase<getIgstTaxRate_result, getIgstTaxRate_result._Fields>, java.io.Serializable, Cloneable   {
-
 
146698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgstTaxRate_result");
-
 
146699
 
-
 
146700
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
146701
 
-
 
146702
    private Map<Integer,Double> success; // required
-
 
146703
 
-
 
146704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
146705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
146706
      SUCCESS((short)0, "success");
-
 
146707
 
-
 
146708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
146709
 
-
 
146710
      static {
-
 
146711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
146712
          byName.put(field.getFieldName(), field);
-
 
146713
        }
-
 
146714
      }
-
 
146715
 
-
 
146716
      /**
-
 
146717
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
146718
       */
-
 
146719
      public static _Fields findByThriftId(int fieldId) {
-
 
146720
        switch(fieldId) {
-
 
146721
          case 0: // SUCCESS
-
 
146722
            return SUCCESS;
-
 
146723
          default:
-
 
146724
            return null;
-
 
146725
        }
-
 
146726
      }
-
 
146727
 
-
 
146728
      /**
-
 
146729
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
146730
       * if it is not found.
-
 
146731
       */
-
 
146732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
146733
        _Fields fields = findByThriftId(fieldId);
-
 
146734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
146735
        return fields;
-
 
146736
      }
-
 
146737
 
-
 
146738
      /**
-
 
146739
       * Find the _Fields constant that matches name, or null if its not found.
-
 
146740
       */
-
 
146741
      public static _Fields findByName(String name) {
-
 
146742
        return byName.get(name);
-
 
146743
      }
-
 
146744
 
-
 
146745
      private final short _thriftId;
-
 
146746
      private final String _fieldName;
-
 
146747
 
-
 
146748
      _Fields(short thriftId, String fieldName) {
-
 
146749
        _thriftId = thriftId;
-
 
146750
        _fieldName = fieldName;
-
 
146751
      }
-
 
146752
 
-
 
146753
      public short getThriftFieldId() {
-
 
146754
        return _thriftId;
-
 
146755
      }
-
 
146756
 
-
 
146757
      public String getFieldName() {
-
 
146758
        return _fieldName;
-
 
146759
      }
-
 
146760
    }
-
 
146761
 
-
 
146762
    // isset id assignments
-
 
146763
 
-
 
146764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
146765
    static {
-
 
146766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
146767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146768
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
146769
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
-
 
146770
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
-
 
146771
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
146772
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgstTaxRate_result.class, metaDataMap);
-
 
146773
    }
-
 
146774
 
-
 
146775
    public getIgstTaxRate_result() {
-
 
146776
    }
-
 
146777
 
-
 
146778
    public getIgstTaxRate_result(
-
 
146779
      Map<Integer,Double> success)
-
 
146780
    {
-
 
146781
      this();
-
 
146782
      this.success = success;
-
 
146783
    }
-
 
146784
 
-
 
146785
    /**
-
 
146786
     * Performs a deep copy on <i>other</i>.
-
 
146787
     */
-
 
146788
    public getIgstTaxRate_result(getIgstTaxRate_result other) {
-
 
146789
      if (other.isSetSuccess()) {
-
 
146790
        Map<Integer,Double> __this__success = new HashMap<Integer,Double>();
-
 
146791
        for (Map.Entry<Integer, Double> other_element : other.success.entrySet()) {
-
 
146792
 
-
 
146793
          Integer other_element_key = other_element.getKey();
-
 
146794
          Double other_element_value = other_element.getValue();
-
 
146795
 
-
 
146796
          Integer __this__success_copy_key = other_element_key;
-
 
146797
 
-
 
146798
          Double __this__success_copy_value = other_element_value;
-
 
146799
 
-
 
146800
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
146801
        }
-
 
146802
        this.success = __this__success;
-
 
146803
      }
-
 
146804
    }
-
 
146805
 
-
 
146806
    public getIgstTaxRate_result deepCopy() {
-
 
146807
      return new getIgstTaxRate_result(this);
-
 
146808
    }
-
 
146809
 
-
 
146810
    @Override
-
 
146811
    public void clear() {
-
 
146812
      this.success = null;
-
 
146813
    }
-
 
146814
 
-
 
146815
    public int getSuccessSize() {
-
 
146816
      return (this.success == null) ? 0 : this.success.size();
-
 
146817
    }
-
 
146818
 
-
 
146819
    public void putToSuccess(int key, double val) {
-
 
146820
      if (this.success == null) {
-
 
146821
        this.success = new HashMap<Integer,Double>();
-
 
146822
      }
-
 
146823
      this.success.put(key, val);
-
 
146824
    }
-
 
146825
 
-
 
146826
    public Map<Integer,Double> getSuccess() {
-
 
146827
      return this.success;
-
 
146828
    }
-
 
146829
 
-
 
146830
    public void setSuccess(Map<Integer,Double> success) {
-
 
146831
      this.success = success;
-
 
146832
    }
-
 
146833
 
-
 
146834
    public void unsetSuccess() {
-
 
146835
      this.success = null;
-
 
146836
    }
-
 
146837
 
-
 
146838
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
146839
    public boolean isSetSuccess() {
-
 
146840
      return this.success != null;
-
 
146841
    }
-
 
146842
 
-
 
146843
    public void setSuccessIsSet(boolean value) {
-
 
146844
      if (!value) {
-
 
146845
        this.success = null;
-
 
146846
      }
-
 
146847
    }
-
 
146848
 
-
 
146849
    public void setFieldValue(_Fields field, Object value) {
-
 
146850
      switch (field) {
-
 
146851
      case SUCCESS:
-
 
146852
        if (value == null) {
-
 
146853
          unsetSuccess();
-
 
146854
        } else {
-
 
146855
          setSuccess((Map<Integer,Double>)value);
-
 
146856
        }
-
 
146857
        break;
-
 
146858
 
-
 
146859
      }
-
 
146860
    }
-
 
146861
 
-
 
146862
    public Object getFieldValue(_Fields field) {
-
 
146863
      switch (field) {
-
 
146864
      case SUCCESS:
-
 
146865
        return getSuccess();
-
 
146866
 
-
 
146867
      }
-
 
146868
      throw new IllegalStateException();
-
 
146869
    }
-
 
146870
 
-
 
146871
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
146872
    public boolean isSet(_Fields field) {
-
 
146873
      if (field == null) {
-
 
146874
        throw new IllegalArgumentException();
-
 
146875
      }
-
 
146876
 
-
 
146877
      switch (field) {
-
 
146878
      case SUCCESS:
-
 
146879
        return isSetSuccess();
-
 
146880
      }
-
 
146881
      throw new IllegalStateException();
-
 
146882
    }
-
 
146883
 
-
 
146884
    @Override
-
 
146885
    public boolean equals(Object that) {
-
 
146886
      if (that == null)
-
 
146887
        return false;
-
 
146888
      if (that instanceof getIgstTaxRate_result)
-
 
146889
        return this.equals((getIgstTaxRate_result)that);
-
 
146890
      return false;
-
 
146891
    }
-
 
146892
 
-
 
146893
    public boolean equals(getIgstTaxRate_result that) {
-
 
146894
      if (that == null)
-
 
146895
        return false;
-
 
146896
 
-
 
146897
      boolean this_present_success = true && this.isSetSuccess();
-
 
146898
      boolean that_present_success = true && that.isSetSuccess();
-
 
146899
      if (this_present_success || that_present_success) {
-
 
146900
        if (!(this_present_success && that_present_success))
-
 
146901
          return false;
-
 
146902
        if (!this.success.equals(that.success))
-
 
146903
          return false;
-
 
146904
      }
-
 
146905
 
-
 
146906
      return true;
-
 
146907
    }
-
 
146908
 
-
 
146909
    @Override
-
 
146910
    public int hashCode() {
-
 
146911
      return 0;
-
 
146912
    }
-
 
146913
 
-
 
146914
    public int compareTo(getIgstTaxRate_result other) {
-
 
146915
      if (!getClass().equals(other.getClass())) {
-
 
146916
        return getClass().getName().compareTo(other.getClass().getName());
-
 
146917
      }
-
 
146918
 
-
 
146919
      int lastComparison = 0;
-
 
146920
      getIgstTaxRate_result typedOther = (getIgstTaxRate_result)other;
-
 
146921
 
-
 
146922
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
146923
      if (lastComparison != 0) {
-
 
146924
        return lastComparison;
-
 
146925
      }
-
 
146926
      if (isSetSuccess()) {
-
 
146927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
146928
        if (lastComparison != 0) {
-
 
146929
          return lastComparison;
-
 
146930
        }
-
 
146931
      }
-
 
146932
      return 0;
-
 
146933
    }
-
 
146934
 
-
 
146935
    public _Fields fieldForId(int fieldId) {
-
 
146936
      return _Fields.findByThriftId(fieldId);
-
 
146937
    }
-
 
146938
 
-
 
146939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
146940
      org.apache.thrift.protocol.TField field;
-
 
146941
      iprot.readStructBegin();
-
 
146942
      while (true)
-
 
146943
      {
-
 
146944
        field = iprot.readFieldBegin();
-
 
146945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
146946
          break;
-
 
146947
        }
-
 
146948
        switch (field.id) {
-
 
146949
          case 0: // SUCCESS
-
 
146950
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
146951
              {
-
 
146952
                org.apache.thrift.protocol.TMap _map571 = iprot.readMapBegin();
-
 
146953
                this.success = new HashMap<Integer,Double>(2*_map571.size);
-
 
146954
                for (int _i572 = 0; _i572 < _map571.size; ++_i572)
-
 
146955
                {
-
 
146956
                  int _key573; // required
-
 
146957
                  double _val574; // required
-
 
146958
                  _key573 = iprot.readI32();
-
 
146959
                  _val574 = iprot.readDouble();
-
 
146960
                  this.success.put(_key573, _val574);
-
 
146961
                }
-
 
146962
                iprot.readMapEnd();
-
 
146963
              }
-
 
146964
            } else { 
-
 
146965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
146966
            }
-
 
146967
            break;
-
 
146968
          default:
-
 
146969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
146970
        }
-
 
146971
        iprot.readFieldEnd();
-
 
146972
      }
-
 
146973
      iprot.readStructEnd();
-
 
146974
      validate();
-
 
146975
    }
-
 
146976
 
-
 
146977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
146978
      oprot.writeStructBegin(STRUCT_DESC);
-
 
146979
 
-
 
146980
      if (this.isSetSuccess()) {
-
 
146981
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
146982
        {
-
 
146983
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
-
 
146984
          for (Map.Entry<Integer, Double> _iter575 : this.success.entrySet())
-
 
146985
          {
-
 
146986
            oprot.writeI32(_iter575.getKey());
-
 
146987
            oprot.writeDouble(_iter575.getValue());
-
 
146988
          }
-
 
146989
          oprot.writeMapEnd();
-
 
146990
        }
-
 
146991
        oprot.writeFieldEnd();
-
 
146992
      }
-
 
146993
      oprot.writeFieldStop();
-
 
146994
      oprot.writeStructEnd();
-
 
146995
    }
-
 
146996
 
-
 
146997
    @Override
-
 
146998
    public String toString() {
-
 
146999
      StringBuilder sb = new StringBuilder("getIgstTaxRate_result(");
146255
      boolean first = true;
147000
      boolean first = true;
146256
 
147001
 
146257
      sb.append("success:");
147002
      sb.append("success:");
146258
      if (this.success == null) {
147003
      if (this.success == null) {
146259
        sb.append("null");
147004
        sb.append("null");
Line 146808... Line 147553...
146808
        }
147553
        }
146809
        switch (field.id) {
147554
        switch (field.id) {
146810
          case 0: // SUCCESS
147555
          case 0: // SUCCESS
146811
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
147556
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
146812
              {
147557
              {
146813
                org.apache.thrift.protocol.TMap _map567 = iprot.readMapBegin();
147558
                org.apache.thrift.protocol.TMap _map576 = iprot.readMapBegin();
146814
                this.success = new HashMap<String,GstRate>(2*_map567.size);
147559
                this.success = new HashMap<String,GstRate>(2*_map576.size);
146815
                for (int _i568 = 0; _i568 < _map567.size; ++_i568)
147560
                for (int _i577 = 0; _i577 < _map576.size; ++_i577)
146816
                {
147561
                {
146817
                  String _key569; // required
147562
                  String _key578; // required
146818
                  GstRate _val570; // required
147563
                  GstRate _val579; // required
146819
                  _key569 = iprot.readString();
147564
                  _key578 = iprot.readString();
146820
                  _val570 = new GstRate();
147565
                  _val579 = new GstRate();
146821
                  _val570.read(iprot);
147566
                  _val579.read(iprot);
146822
                  this.success.put(_key569, _val570);
147567
                  this.success.put(_key578, _val579);
146823
                }
147568
                }
146824
                iprot.readMapEnd();
147569
                iprot.readMapEnd();
146825
              }
147570
              }
146826
            } else { 
147571
            } else { 
146827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
147572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 146849... Line 147594...
146849
 
147594
 
146850
      if (this.isSetSuccess()) {
147595
      if (this.isSetSuccess()) {
146851
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
147596
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
146852
        {
147597
        {
146853
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
147598
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
146854
          for (Map.Entry<String, GstRate> _iter571 : this.success.entrySet())
147599
          for (Map.Entry<String, GstRate> _iter580 : this.success.entrySet())
146855
          {
147600
          {
146856
            oprot.writeString(_iter571.getKey());
147601
            oprot.writeString(_iter580.getKey());
146857
            _iter571.getValue().write(oprot);
147602
            _iter580.getValue().write(oprot);
146858
          }
147603
          }
146859
          oprot.writeMapEnd();
147604
          oprot.writeMapEnd();
146860
        }
147605
        }
146861
        oprot.writeFieldEnd();
147606
        oprot.writeFieldEnd();
146862
      } else if (this.isSetCex()) {
147607
      } else if (this.isSetCex()) {
Line 147524... Line 148269...
147524
        }
148269
        }
147525
        switch (field.id) {
148270
        switch (field.id) {
147526
          case 0: // SUCCESS
148271
          case 0: // SUCCESS
147527
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
148272
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
147528
              {
148273
              {
147529
                org.apache.thrift.protocol.TList _list572 = iprot.readListBegin();
148274
                org.apache.thrift.protocol.TList _list581 = iprot.readListBegin();
147530
                this.success = new ArrayList<CategoryHsnCode>(_list572.size);
148275
                this.success = new ArrayList<CategoryHsnCode>(_list581.size);
147531
                for (int _i573 = 0; _i573 < _list572.size; ++_i573)
148276
                for (int _i582 = 0; _i582 < _list581.size; ++_i582)
147532
                {
148277
                {
147533
                  CategoryHsnCode _elem574; // required
148278
                  CategoryHsnCode _elem583; // required
147534
                  _elem574 = new CategoryHsnCode();
148279
                  _elem583 = new CategoryHsnCode();
147535
                  _elem574.read(iprot);
148280
                  _elem583.read(iprot);
147536
                  this.success.add(_elem574);
148281
                  this.success.add(_elem583);
147537
                }
148282
                }
147538
                iprot.readListEnd();
148283
                iprot.readListEnd();
147539
              }
148284
              }
147540
            } else { 
148285
            } else { 
147541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
148286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 147563... Line 148308...
147563
 
148308
 
147564
      if (this.isSetSuccess()) {
148309
      if (this.isSetSuccess()) {
147565
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
148310
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
147566
        {
148311
        {
147567
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
148312
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
147568
          for (CategoryHsnCode _iter575 : this.success)
148313
          for (CategoryHsnCode _iter584 : this.success)
147569
          {
148314
          {
147570
            _iter575.write(oprot);
148315
            _iter584.write(oprot);
147571
          }
148316
          }
147572
          oprot.writeListEnd();
148317
          oprot.writeListEnd();
147573
        }
148318
        }
147574
        oprot.writeFieldEnd();
148319
        oprot.writeFieldEnd();
147575
      } else if (this.isSetCex()) {
148320
      } else if (this.isSetCex()) {
Line 147963... Line 148708...
147963
        }
148708
        }
147964
        switch (field.id) {
148709
        switch (field.id) {
147965
          case -1: // ITEM_IDS
148710
          case -1: // ITEM_IDS
147966
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
148711
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
147967
              {
148712
              {
147968
                org.apache.thrift.protocol.TList _list576 = iprot.readListBegin();
148713
                org.apache.thrift.protocol.TList _list585 = iprot.readListBegin();
147969
                this.itemIds = new ArrayList<Long>(_list576.size);
148714
                this.itemIds = new ArrayList<Long>(_list585.size);
147970
                for (int _i577 = 0; _i577 < _list576.size; ++_i577)
148715
                for (int _i586 = 0; _i586 < _list585.size; ++_i586)
147971
                {
148716
                {
147972
                  long _elem578; // required
148717
                  long _elem587; // required
147973
                  _elem578 = iprot.readI64();
148718
                  _elem587 = iprot.readI64();
147974
                  this.itemIds.add(_elem578);
148719
                  this.itemIds.add(_elem587);
147975
                }
148720
                }
147976
                iprot.readListEnd();
148721
                iprot.readListEnd();
147977
              }
148722
              }
147978
            } else { 
148723
            } else { 
147979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
148724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
147980
            }
148725
            }
147981
            break;
148726
            break;
147982
          case -2: // TAG_IDS
148727
          case -2: // TAG_IDS
147983
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
148728
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
147984
              {
148729
              {
147985
                org.apache.thrift.protocol.TList _list579 = iprot.readListBegin();
148730
                org.apache.thrift.protocol.TList _list588 = iprot.readListBegin();
147986
                this.tagIds = new ArrayList<Long>(_list579.size);
148731
                this.tagIds = new ArrayList<Long>(_list588.size);
147987
                for (int _i580 = 0; _i580 < _list579.size; ++_i580)
148732
                for (int _i589 = 0; _i589 < _list588.size; ++_i589)
147988
                {
148733
                {
147989
                  long _elem581; // required
148734
                  long _elem590; // required
147990
                  _elem581 = iprot.readI64();
148735
                  _elem590 = iprot.readI64();
147991
                  this.tagIds.add(_elem581);
148736
                  this.tagIds.add(_elem590);
147992
                }
148737
                }
147993
                iprot.readListEnd();
148738
                iprot.readListEnd();
147994
              }
148739
              }
147995
            } else { 
148740
            } else { 
147996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
148741
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 148011... Line 148756...
148011
      oprot.writeStructBegin(STRUCT_DESC);
148756
      oprot.writeStructBegin(STRUCT_DESC);
148012
      if (this.tagIds != null) {
148757
      if (this.tagIds != null) {
148013
        oprot.writeFieldBegin(TAG_IDS_FIELD_DESC);
148758
        oprot.writeFieldBegin(TAG_IDS_FIELD_DESC);
148014
        {
148759
        {
148015
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.tagIds.size()));
148760
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.tagIds.size()));
148016
          for (long _iter582 : this.tagIds)
148761
          for (long _iter591 : this.tagIds)
148017
          {
148762
          {
148018
            oprot.writeI64(_iter582);
148763
            oprot.writeI64(_iter591);
148019
          }
148764
          }
148020
          oprot.writeListEnd();
148765
          oprot.writeListEnd();
148021
        }
148766
        }
148022
        oprot.writeFieldEnd();
148767
        oprot.writeFieldEnd();
148023
      }
148768
      }
148024
      if (this.itemIds != null) {
148769
      if (this.itemIds != null) {
148025
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
148770
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
148026
        {
148771
        {
148027
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
148772
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
148028
          for (long _iter583 : this.itemIds)
148773
          for (long _iter592 : this.itemIds)
148029
          {
148774
          {
148030
            oprot.writeI64(_iter583);
148775
            oprot.writeI64(_iter592);
148031
          }
148776
          }
148032
          oprot.writeListEnd();
148777
          oprot.writeListEnd();
148033
        }
148778
        }
148034
        oprot.writeFieldEnd();
148779
        oprot.writeFieldEnd();
148035
      }
148780
      }
Line 148336... Line 149081...
148336
        }
149081
        }
148337
        switch (field.id) {
149082
        switch (field.id) {
148338
          case 0: // SUCCESS
149083
          case 0: // SUCCESS
148339
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
149084
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
148340
              {
149085
              {
148341
                org.apache.thrift.protocol.TMap _map584 = iprot.readMapBegin();
149086
                org.apache.thrift.protocol.TMap _map593 = iprot.readMapBegin();
148342
                this.success = new HashMap<Long,Double>(2*_map584.size);
149087
                this.success = new HashMap<Long,Double>(2*_map593.size);
148343
                for (int _i585 = 0; _i585 < _map584.size; ++_i585)
149088
                for (int _i594 = 0; _i594 < _map593.size; ++_i594)
148344
                {
149089
                {
148345
                  long _key586; // required
149090
                  long _key595; // required
148346
                  double _val587; // required
149091
                  double _val596; // required
148347
                  _key586 = iprot.readI64();
149092
                  _key595 = iprot.readI64();
148348
                  _val587 = iprot.readDouble();
149093
                  _val596 = iprot.readDouble();
148349
                  this.success.put(_key586, _val587);
149094
                  this.success.put(_key595, _val596);
148350
                }
149095
                }
148351
                iprot.readMapEnd();
149096
                iprot.readMapEnd();
148352
              }
149097
              }
148353
            } else { 
149098
            } else { 
148354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
149099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 148368... Line 149113...
148368
 
149113
 
148369
      if (this.isSetSuccess()) {
149114
      if (this.isSetSuccess()) {
148370
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
149115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
148371
        {
149116
        {
148372
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
149117
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
148373
          for (Map.Entry<Long, Double> _iter588 : this.success.entrySet())
149118
          for (Map.Entry<Long, Double> _iter597 : this.success.entrySet())
148374
          {
149119
          {
148375
            oprot.writeI64(_iter588.getKey());
149120
            oprot.writeI64(_iter597.getKey());
148376
            oprot.writeDouble(_iter588.getValue());
149121
            oprot.writeDouble(_iter597.getValue());
148377
          }
149122
          }
148378
          oprot.writeMapEnd();
149123
          oprot.writeMapEnd();
148379
        }
149124
        }
148380
        oprot.writeFieldEnd();
149125
        oprot.writeFieldEnd();
148381
      }
149126
      }