Subversion Repositories SmartDukaan

Rev

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

Rev 6371 Rev 6389
Line 898... Line 898...
898
     */
898
     */
899
    public List<RechargeDenomination> getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType) throws TransactionServiceException, org.apache.thrift.TException;
899
    public List<RechargeDenomination> getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType) throws TransactionServiceException, org.apache.thrift.TException;
900
 
900
 
901
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException;
901
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable) throws org.apache.thrift.TException;
902
 
902
 
-
 
903
    public List<EmiScheme> getAvailableEmiSchemes() throws org.apache.thrift.TException;
-
 
904
 
-
 
905
    public Map<Long,Long> getMiscCharges(long transactionId) throws org.apache.thrift.TException;
-
 
906
 
903
  }
907
  }
904
 
908
 
905
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
909
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
906
 
910
 
907
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
911
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1192... Line 1196...
1192
 
1196
 
1193
    public void getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeDenominations_call> resultHandler) throws org.apache.thrift.TException;
1197
    public void getRechargeDenominations(long operatorId, String circleCode, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeDenominations_call> resultHandler) throws org.apache.thrift.TException;
1194
 
1198
 
1195
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAvailabilityStatus_call> resultHandler) throws org.apache.thrift.TException;
1199
    public void updateAvailabilityStatus(long operatorId, long circleId, boolean isAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAvailabilityStatus_call> resultHandler) throws org.apache.thrift.TException;
1196
 
1200
 
-
 
1201
    public void getAvailableEmiSchemes(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAvailableEmiSchemes_call> resultHandler) throws org.apache.thrift.TException;
-
 
1202
 
-
 
1203
    public void getMiscCharges(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMiscCharges_call> resultHandler) throws org.apache.thrift.TException;
-
 
1204
 
1197
  }
1205
  }
1198
 
1206
 
1199
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1207
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1200
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1208
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1201
      public Factory() {}
1209
      public Factory() {}
Line 4871... Line 4879...
4871
      updateAvailabilityStatus_result result = new updateAvailabilityStatus_result();
4879
      updateAvailabilityStatus_result result = new updateAvailabilityStatus_result();
4872
      receiveBase(result, "updateAvailabilityStatus");
4880
      receiveBase(result, "updateAvailabilityStatus");
4873
      return;
4881
      return;
4874
    }
4882
    }
4875
 
4883
 
-
 
4884
    public List<EmiScheme> getAvailableEmiSchemes() throws org.apache.thrift.TException
-
 
4885
    {
-
 
4886
      send_getAvailableEmiSchemes();
-
 
4887
      return recv_getAvailableEmiSchemes();
-
 
4888
    }
-
 
4889
 
-
 
4890
    public void send_getAvailableEmiSchemes() throws org.apache.thrift.TException
-
 
4891
    {
-
 
4892
      getAvailableEmiSchemes_args args = new getAvailableEmiSchemes_args();
-
 
4893
      sendBase("getAvailableEmiSchemes", args);
-
 
4894
    }
-
 
4895
 
-
 
4896
    public List<EmiScheme> recv_getAvailableEmiSchemes() throws org.apache.thrift.TException
-
 
4897
    {
-
 
4898
      getAvailableEmiSchemes_result result = new getAvailableEmiSchemes_result();
-
 
4899
      receiveBase(result, "getAvailableEmiSchemes");
-
 
4900
      if (result.isSetSuccess()) {
-
 
4901
        return result.success;
-
 
4902
      }
-
 
4903
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAvailableEmiSchemes failed: unknown result");
-
 
4904
    }
-
 
4905
 
-
 
4906
    public Map<Long,Long> getMiscCharges(long transactionId) throws org.apache.thrift.TException
-
 
4907
    {
-
 
4908
      send_getMiscCharges(transactionId);
-
 
4909
      return recv_getMiscCharges();
-
 
4910
    }
-
 
4911
 
-
 
4912
    public void send_getMiscCharges(long transactionId) throws org.apache.thrift.TException
-
 
4913
    {
-
 
4914
      getMiscCharges_args args = new getMiscCharges_args();
-
 
4915
      args.setTransactionId(transactionId);
-
 
4916
      sendBase("getMiscCharges", args);
-
 
4917
    }
-
 
4918
 
-
 
4919
    public Map<Long,Long> recv_getMiscCharges() throws org.apache.thrift.TException
-
 
4920
    {
-
 
4921
      getMiscCharges_result result = new getMiscCharges_result();
-
 
4922
      receiveBase(result, "getMiscCharges");
-
 
4923
      if (result.isSetSuccess()) {
-
 
4924
        return result.success;
-
 
4925
      }
-
 
4926
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMiscCharges failed: unknown result");
-
 
4927
    }
-
 
4928
 
4876
  }
4929
  }
4877
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4930
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4878
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4931
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4879
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4932
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4880
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4933
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9955... Line 10008...
9955
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10008
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9956
        (new Client(prot)).recv_updateAvailabilityStatus();
10009
        (new Client(prot)).recv_updateAvailabilityStatus();
9957
      }
10010
      }
9958
    }
10011
    }
9959
 
10012
 
-
 
10013
    public void getAvailableEmiSchemes(org.apache.thrift.async.AsyncMethodCallback<getAvailableEmiSchemes_call> resultHandler) throws org.apache.thrift.TException {
-
 
10014
      checkReady();
-
 
10015
      getAvailableEmiSchemes_call method_call = new getAvailableEmiSchemes_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
10016
      this.___currentMethod = method_call;
-
 
10017
      ___manager.call(method_call);
-
 
10018
    }
-
 
10019
 
-
 
10020
    public static class getAvailableEmiSchemes_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10021
      public getAvailableEmiSchemes_call(org.apache.thrift.async.AsyncMethodCallback<getAvailableEmiSchemes_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 {
-
 
10022
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10023
      }
-
 
10024
 
-
 
10025
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10026
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAvailableEmiSchemes", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10027
        getAvailableEmiSchemes_args args = new getAvailableEmiSchemes_args();
-
 
10028
        args.write(prot);
-
 
10029
        prot.writeMessageEnd();
-
 
10030
      }
-
 
10031
 
-
 
10032
      public List<EmiScheme> getResult() throws org.apache.thrift.TException {
-
 
10033
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10034
          throw new IllegalStateException("Method call not finished!");
-
 
10035
        }
-
 
10036
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10037
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10038
        return (new Client(prot)).recv_getAvailableEmiSchemes();
-
 
10039
      }
-
 
10040
    }
-
 
10041
 
-
 
10042
    public void getMiscCharges(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getMiscCharges_call> resultHandler) throws org.apache.thrift.TException {
-
 
10043
      checkReady();
-
 
10044
      getMiscCharges_call method_call = new getMiscCharges_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10045
      this.___currentMethod = method_call;
-
 
10046
      ___manager.call(method_call);
-
 
10047
    }
-
 
10048
 
-
 
10049
    public static class getMiscCharges_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10050
      private long transactionId;
-
 
10051
      public getMiscCharges_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getMiscCharges_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 {
-
 
10052
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10053
        this.transactionId = transactionId;
-
 
10054
      }
-
 
10055
 
-
 
10056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMiscCharges", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10058
        getMiscCharges_args args = new getMiscCharges_args();
-
 
10059
        args.setTransactionId(transactionId);
-
 
10060
        args.write(prot);
-
 
10061
        prot.writeMessageEnd();
-
 
10062
      }
-
 
10063
 
-
 
10064
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
-
 
10065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10066
          throw new IllegalStateException("Method call not finished!");
-
 
10067
        }
-
 
10068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10070
        return (new Client(prot)).recv_getMiscCharges();
-
 
10071
      }
-
 
10072
    }
-
 
10073
 
9960
  }
10074
  }
9961
 
10075
 
9962
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10076
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9963
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10077
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9964
    public Processor(I iface) {
10078
    public Processor(I iface) {
Line 10113... Line 10227...
10113
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
10227
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
10114
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
10228
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
10115
      processMap.put("getPlansForOperator", new getPlansForOperator());
10229
      processMap.put("getPlansForOperator", new getPlansForOperator());
10116
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
10230
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
10117
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
10231
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
-
 
10232
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
-
 
10233
      processMap.put("getMiscCharges", new getMiscCharges());
10118
      return processMap;
10234
      return processMap;
10119
    }
10235
    }
10120
 
10236
 
10121
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10237
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10122
      public createTransaction() {
10238
      public createTransaction() {
Line 12858... Line 12974...
12858
        iface.updateAvailabilityStatus(args.operatorId, args.circleId, args.isAvailable);
12974
        iface.updateAvailabilityStatus(args.operatorId, args.circleId, args.isAvailable);
12859
        return result;
12975
        return result;
12860
      }
12976
      }
12861
    }
12977
    }
12862
 
12978
 
-
 
12979
    private static class getAvailableEmiSchemes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAvailableEmiSchemes_args> {
-
 
12980
      public getAvailableEmiSchemes() {
-
 
12981
        super("getAvailableEmiSchemes");
-
 
12982
      }
-
 
12983
 
-
 
12984
      protected getAvailableEmiSchemes_args getEmptyArgsInstance() {
-
 
12985
        return new getAvailableEmiSchemes_args();
-
 
12986
      }
-
 
12987
 
-
 
12988
      protected getAvailableEmiSchemes_result getResult(I iface, getAvailableEmiSchemes_args args) throws org.apache.thrift.TException {
-
 
12989
        getAvailableEmiSchemes_result result = new getAvailableEmiSchemes_result();
-
 
12990
        result.success = iface.getAvailableEmiSchemes();
-
 
12991
        return result;
-
 
12992
      }
-
 
12993
    }
-
 
12994
 
-
 
12995
    private static class getMiscCharges<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMiscCharges_args> {
-
 
12996
      public getMiscCharges() {
-
 
12997
        super("getMiscCharges");
-
 
12998
      }
-
 
12999
 
-
 
13000
      protected getMiscCharges_args getEmptyArgsInstance() {
-
 
13001
        return new getMiscCharges_args();
-
 
13002
      }
-
 
13003
 
-
 
13004
      protected getMiscCharges_result getResult(I iface, getMiscCharges_args args) throws org.apache.thrift.TException {
-
 
13005
        getMiscCharges_result result = new getMiscCharges_result();
-
 
13006
        result.success = iface.getMiscCharges(args.transactionId);
-
 
13007
        return result;
-
 
13008
      }
-
 
13009
    }
-
 
13010
 
12863
  }
13011
  }
12864
 
13012
 
12865
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13013
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12866
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12867
 
13015
 
Line 118423... Line 118571...
118423
      sb.append(")");
118571
      sb.append(")");
118424
      return sb.toString();
118572
      return sb.toString();
118425
    }
118573
    }
118426
 
118574
 
118427
    public void validate() throws org.apache.thrift.TException {
118575
    public void validate() throws org.apache.thrift.TException {
-
 
118576
      // check for required fields
-
 
118577
    }
-
 
118578
 
-
 
118579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
118580
      try {
-
 
118581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
118582
      } catch (org.apache.thrift.TException te) {
-
 
118583
        throw new java.io.IOException(te);
-
 
118584
      }
-
 
118585
    }
-
 
118586
 
-
 
118587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
118588
      try {
-
 
118589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
118590
      } catch (org.apache.thrift.TException te) {
-
 
118591
        throw new java.io.IOException(te);
-
 
118592
      }
-
 
118593
    }
-
 
118594
 
-
 
118595
  }
-
 
118596
 
-
 
118597
  public static class getAvailableEmiSchemes_args implements org.apache.thrift.TBase<getAvailableEmiSchemes_args, getAvailableEmiSchemes_args._Fields>, java.io.Serializable, Cloneable   {
-
 
118598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAvailableEmiSchemes_args");
-
 
118599
 
-
 
118600
 
-
 
118601
 
-
 
118602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
118603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
118604
;
-
 
118605
 
-
 
118606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
118607
 
-
 
118608
      static {
-
 
118609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
118610
          byName.put(field.getFieldName(), field);
-
 
118611
        }
-
 
118612
      }
-
 
118613
 
-
 
118614
      /**
-
 
118615
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
118616
       */
-
 
118617
      public static _Fields findByThriftId(int fieldId) {
-
 
118618
        switch(fieldId) {
-
 
118619
          default:
-
 
118620
            return null;
-
 
118621
        }
-
 
118622
      }
-
 
118623
 
-
 
118624
      /**
-
 
118625
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
118626
       * if it is not found.
-
 
118627
       */
-
 
118628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
118629
        _Fields fields = findByThriftId(fieldId);
-
 
118630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
118631
        return fields;
-
 
118632
      }
-
 
118633
 
-
 
118634
      /**
-
 
118635
       * Find the _Fields constant that matches name, or null if its not found.
-
 
118636
       */
-
 
118637
      public static _Fields findByName(String name) {
-
 
118638
        return byName.get(name);
-
 
118639
      }
-
 
118640
 
-
 
118641
      private final short _thriftId;
-
 
118642
      private final String _fieldName;
-
 
118643
 
-
 
118644
      _Fields(short thriftId, String fieldName) {
-
 
118645
        _thriftId = thriftId;
-
 
118646
        _fieldName = fieldName;
-
 
118647
      }
-
 
118648
 
-
 
118649
      public short getThriftFieldId() {
-
 
118650
        return _thriftId;
-
 
118651
      }
-
 
118652
 
-
 
118653
      public String getFieldName() {
-
 
118654
        return _fieldName;
-
 
118655
      }
-
 
118656
    }
-
 
118657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
118658
    static {
-
 
118659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
118660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
118661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAvailableEmiSchemes_args.class, metaDataMap);
-
 
118662
    }
-
 
118663
 
-
 
118664
    public getAvailableEmiSchemes_args() {
-
 
118665
    }
-
 
118666
 
-
 
118667
    /**
-
 
118668
     * Performs a deep copy on <i>other</i>.
-
 
118669
     */
-
 
118670
    public getAvailableEmiSchemes_args(getAvailableEmiSchemes_args other) {
-
 
118671
    }
-
 
118672
 
-
 
118673
    public getAvailableEmiSchemes_args deepCopy() {
-
 
118674
      return new getAvailableEmiSchemes_args(this);
-
 
118675
    }
-
 
118676
 
-
 
118677
    @Override
-
 
118678
    public void clear() {
-
 
118679
    }
-
 
118680
 
-
 
118681
    public void setFieldValue(_Fields field, Object value) {
-
 
118682
      switch (field) {
-
 
118683
      }
-
 
118684
    }
-
 
118685
 
-
 
118686
    public Object getFieldValue(_Fields field) {
-
 
118687
      switch (field) {
-
 
118688
      }
-
 
118689
      throw new IllegalStateException();
-
 
118690
    }
-
 
118691
 
-
 
118692
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118693
    public boolean isSet(_Fields field) {
-
 
118694
      if (field == null) {
-
 
118695
        throw new IllegalArgumentException();
-
 
118696
      }
-
 
118697
 
-
 
118698
      switch (field) {
-
 
118699
      }
-
 
118700
      throw new IllegalStateException();
-
 
118701
    }
-
 
118702
 
-
 
118703
    @Override
-
 
118704
    public boolean equals(Object that) {
-
 
118705
      if (that == null)
-
 
118706
        return false;
-
 
118707
      if (that instanceof getAvailableEmiSchemes_args)
-
 
118708
        return this.equals((getAvailableEmiSchemes_args)that);
-
 
118709
      return false;
-
 
118710
    }
-
 
118711
 
-
 
118712
    public boolean equals(getAvailableEmiSchemes_args that) {
-
 
118713
      if (that == null)
-
 
118714
        return false;
-
 
118715
 
-
 
118716
      return true;
-
 
118717
    }
-
 
118718
 
-
 
118719
    @Override
-
 
118720
    public int hashCode() {
-
 
118721
      return 0;
-
 
118722
    }
-
 
118723
 
-
 
118724
    public int compareTo(getAvailableEmiSchemes_args other) {
-
 
118725
      if (!getClass().equals(other.getClass())) {
-
 
118726
        return getClass().getName().compareTo(other.getClass().getName());
-
 
118727
      }
-
 
118728
 
-
 
118729
      int lastComparison = 0;
-
 
118730
      getAvailableEmiSchemes_args typedOther = (getAvailableEmiSchemes_args)other;
-
 
118731
 
-
 
118732
      return 0;
-
 
118733
    }
-
 
118734
 
-
 
118735
    public _Fields fieldForId(int fieldId) {
-
 
118736
      return _Fields.findByThriftId(fieldId);
-
 
118737
    }
-
 
118738
 
-
 
118739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
118740
      org.apache.thrift.protocol.TField field;
-
 
118741
      iprot.readStructBegin();
-
 
118742
      while (true)
-
 
118743
      {
-
 
118744
        field = iprot.readFieldBegin();
-
 
118745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
118746
          break;
-
 
118747
        }
-
 
118748
        switch (field.id) {
-
 
118749
          default:
-
 
118750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118751
        }
-
 
118752
        iprot.readFieldEnd();
-
 
118753
      }
-
 
118754
      iprot.readStructEnd();
-
 
118755
      validate();
-
 
118756
    }
-
 
118757
 
-
 
118758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
118759
      validate();
-
 
118760
 
-
 
118761
      oprot.writeStructBegin(STRUCT_DESC);
-
 
118762
      oprot.writeFieldStop();
-
 
118763
      oprot.writeStructEnd();
-
 
118764
    }
-
 
118765
 
-
 
118766
    @Override
-
 
118767
    public String toString() {
-
 
118768
      StringBuilder sb = new StringBuilder("getAvailableEmiSchemes_args(");
-
 
118769
      boolean first = true;
-
 
118770
 
-
 
118771
      sb.append(")");
-
 
118772
      return sb.toString();
-
 
118773
    }
-
 
118774
 
-
 
118775
    public void validate() throws org.apache.thrift.TException {
-
 
118776
      // check for required fields
-
 
118777
    }
-
 
118778
 
-
 
118779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
118780
      try {
-
 
118781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
118782
      } catch (org.apache.thrift.TException te) {
-
 
118783
        throw new java.io.IOException(te);
-
 
118784
      }
-
 
118785
    }
-
 
118786
 
-
 
118787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
118788
      try {
-
 
118789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
118790
      } catch (org.apache.thrift.TException te) {
-
 
118791
        throw new java.io.IOException(te);
-
 
118792
      }
-
 
118793
    }
-
 
118794
 
-
 
118795
  }
-
 
118796
 
-
 
118797
  public static class getAvailableEmiSchemes_result implements org.apache.thrift.TBase<getAvailableEmiSchemes_result, getAvailableEmiSchemes_result._Fields>, java.io.Serializable, Cloneable   {
-
 
118798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAvailableEmiSchemes_result");
-
 
118799
 
-
 
118800
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
118801
 
-
 
118802
    private List<EmiScheme> success; // required
-
 
118803
 
-
 
118804
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
118805
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
118806
      SUCCESS((short)0, "success");
-
 
118807
 
-
 
118808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
118809
 
-
 
118810
      static {
-
 
118811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
118812
          byName.put(field.getFieldName(), field);
-
 
118813
        }
-
 
118814
      }
-
 
118815
 
-
 
118816
      /**
-
 
118817
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
118818
       */
-
 
118819
      public static _Fields findByThriftId(int fieldId) {
-
 
118820
        switch(fieldId) {
-
 
118821
          case 0: // SUCCESS
-
 
118822
            return SUCCESS;
-
 
118823
          default:
-
 
118824
            return null;
-
 
118825
        }
-
 
118826
      }
-
 
118827
 
-
 
118828
      /**
-
 
118829
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
118830
       * if it is not found.
-
 
118831
       */
-
 
118832
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
118833
        _Fields fields = findByThriftId(fieldId);
-
 
118834
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
118835
        return fields;
-
 
118836
      }
-
 
118837
 
-
 
118838
      /**
-
 
118839
       * Find the _Fields constant that matches name, or null if its not found.
-
 
118840
       */
-
 
118841
      public static _Fields findByName(String name) {
-
 
118842
        return byName.get(name);
-
 
118843
      }
-
 
118844
 
-
 
118845
      private final short _thriftId;
-
 
118846
      private final String _fieldName;
-
 
118847
 
-
 
118848
      _Fields(short thriftId, String fieldName) {
-
 
118849
        _thriftId = thriftId;
-
 
118850
        _fieldName = fieldName;
-
 
118851
      }
-
 
118852
 
-
 
118853
      public short getThriftFieldId() {
-
 
118854
        return _thriftId;
-
 
118855
      }
-
 
118856
 
-
 
118857
      public String getFieldName() {
-
 
118858
        return _fieldName;
-
 
118859
      }
-
 
118860
    }
-
 
118861
 
-
 
118862
    // isset id assignments
-
 
118863
 
-
 
118864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
118865
    static {
-
 
118866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
118867
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118868
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
118869
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EmiScheme.class))));
-
 
118870
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
118871
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAvailableEmiSchemes_result.class, metaDataMap);
-
 
118872
    }
-
 
118873
 
-
 
118874
    public getAvailableEmiSchemes_result() {
-
 
118875
    }
-
 
118876
 
-
 
118877
    public getAvailableEmiSchemes_result(
-
 
118878
      List<EmiScheme> success)
-
 
118879
    {
-
 
118880
      this();
-
 
118881
      this.success = success;
-
 
118882
    }
-
 
118883
 
-
 
118884
    /**
-
 
118885
     * Performs a deep copy on <i>other</i>.
-
 
118886
     */
-
 
118887
    public getAvailableEmiSchemes_result(getAvailableEmiSchemes_result other) {
-
 
118888
      if (other.isSetSuccess()) {
-
 
118889
        List<EmiScheme> __this__success = new ArrayList<EmiScheme>();
-
 
118890
        for (EmiScheme other_element : other.success) {
-
 
118891
          __this__success.add(new EmiScheme(other_element));
-
 
118892
        }
-
 
118893
        this.success = __this__success;
-
 
118894
      }
-
 
118895
    }
-
 
118896
 
-
 
118897
    public getAvailableEmiSchemes_result deepCopy() {
-
 
118898
      return new getAvailableEmiSchemes_result(this);
-
 
118899
    }
-
 
118900
 
-
 
118901
    @Override
-
 
118902
    public void clear() {
-
 
118903
      this.success = null;
-
 
118904
    }
-
 
118905
 
-
 
118906
    public int getSuccessSize() {
-
 
118907
      return (this.success == null) ? 0 : this.success.size();
-
 
118908
    }
-
 
118909
 
-
 
118910
    public java.util.Iterator<EmiScheme> getSuccessIterator() {
-
 
118911
      return (this.success == null) ? null : this.success.iterator();
-
 
118912
    }
-
 
118913
 
-
 
118914
    public void addToSuccess(EmiScheme elem) {
-
 
118915
      if (this.success == null) {
-
 
118916
        this.success = new ArrayList<EmiScheme>();
-
 
118917
      }
-
 
118918
      this.success.add(elem);
-
 
118919
    }
-
 
118920
 
-
 
118921
    public List<EmiScheme> getSuccess() {
-
 
118922
      return this.success;
-
 
118923
    }
-
 
118924
 
-
 
118925
    public void setSuccess(List<EmiScheme> success) {
-
 
118926
      this.success = success;
-
 
118927
    }
-
 
118928
 
-
 
118929
    public void unsetSuccess() {
-
 
118930
      this.success = null;
-
 
118931
    }
-
 
118932
 
-
 
118933
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
118934
    public boolean isSetSuccess() {
-
 
118935
      return this.success != null;
-
 
118936
    }
-
 
118937
 
-
 
118938
    public void setSuccessIsSet(boolean value) {
-
 
118939
      if (!value) {
-
 
118940
        this.success = null;
-
 
118941
      }
-
 
118942
    }
-
 
118943
 
-
 
118944
    public void setFieldValue(_Fields field, Object value) {
-
 
118945
      switch (field) {
-
 
118946
      case SUCCESS:
-
 
118947
        if (value == null) {
-
 
118948
          unsetSuccess();
-
 
118949
        } else {
-
 
118950
          setSuccess((List<EmiScheme>)value);
-
 
118951
        }
-
 
118952
        break;
-
 
118953
 
-
 
118954
      }
-
 
118955
    }
-
 
118956
 
-
 
118957
    public Object getFieldValue(_Fields field) {
-
 
118958
      switch (field) {
-
 
118959
      case SUCCESS:
-
 
118960
        return getSuccess();
-
 
118961
 
-
 
118962
      }
-
 
118963
      throw new IllegalStateException();
-
 
118964
    }
-
 
118965
 
-
 
118966
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118967
    public boolean isSet(_Fields field) {
-
 
118968
      if (field == null) {
-
 
118969
        throw new IllegalArgumentException();
-
 
118970
      }
-
 
118971
 
-
 
118972
      switch (field) {
-
 
118973
      case SUCCESS:
-
 
118974
        return isSetSuccess();
-
 
118975
      }
-
 
118976
      throw new IllegalStateException();
-
 
118977
    }
-
 
118978
 
-
 
118979
    @Override
-
 
118980
    public boolean equals(Object that) {
-
 
118981
      if (that == null)
-
 
118982
        return false;
-
 
118983
      if (that instanceof getAvailableEmiSchemes_result)
-
 
118984
        return this.equals((getAvailableEmiSchemes_result)that);
-
 
118985
      return false;
-
 
118986
    }
-
 
118987
 
-
 
118988
    public boolean equals(getAvailableEmiSchemes_result that) {
-
 
118989
      if (that == null)
-
 
118990
        return false;
-
 
118991
 
-
 
118992
      boolean this_present_success = true && this.isSetSuccess();
-
 
118993
      boolean that_present_success = true && that.isSetSuccess();
-
 
118994
      if (this_present_success || that_present_success) {
-
 
118995
        if (!(this_present_success && that_present_success))
-
 
118996
          return false;
-
 
118997
        if (!this.success.equals(that.success))
-
 
118998
          return false;
-
 
118999
      }
-
 
119000
 
-
 
119001
      return true;
-
 
119002
    }
-
 
119003
 
-
 
119004
    @Override
-
 
119005
    public int hashCode() {
-
 
119006
      return 0;
-
 
119007
    }
-
 
119008
 
-
 
119009
    public int compareTo(getAvailableEmiSchemes_result other) {
-
 
119010
      if (!getClass().equals(other.getClass())) {
-
 
119011
        return getClass().getName().compareTo(other.getClass().getName());
-
 
119012
      }
-
 
119013
 
-
 
119014
      int lastComparison = 0;
-
 
119015
      getAvailableEmiSchemes_result typedOther = (getAvailableEmiSchemes_result)other;
-
 
119016
 
-
 
119017
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
119018
      if (lastComparison != 0) {
-
 
119019
        return lastComparison;
-
 
119020
      }
-
 
119021
      if (isSetSuccess()) {
-
 
119022
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
119023
        if (lastComparison != 0) {
-
 
119024
          return lastComparison;
-
 
119025
        }
-
 
119026
      }
-
 
119027
      return 0;
-
 
119028
    }
-
 
119029
 
-
 
119030
    public _Fields fieldForId(int fieldId) {
-
 
119031
      return _Fields.findByThriftId(fieldId);
-
 
119032
    }
-
 
119033
 
-
 
119034
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
119035
      org.apache.thrift.protocol.TField field;
-
 
119036
      iprot.readStructBegin();
-
 
119037
      while (true)
-
 
119038
      {
-
 
119039
        field = iprot.readFieldBegin();
-
 
119040
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
119041
          break;
-
 
119042
        }
-
 
119043
        switch (field.id) {
-
 
119044
          case 0: // SUCCESS
-
 
119045
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
119046
              {
-
 
119047
                org.apache.thrift.protocol.TList _list401 = iprot.readListBegin();
-
 
119048
                this.success = new ArrayList<EmiScheme>(_list401.size);
-
 
119049
                for (int _i402 = 0; _i402 < _list401.size; ++_i402)
-
 
119050
                {
-
 
119051
                  EmiScheme _elem403; // required
-
 
119052
                  _elem403 = new EmiScheme();
-
 
119053
                  _elem403.read(iprot);
-
 
119054
                  this.success.add(_elem403);
-
 
119055
                }
-
 
119056
                iprot.readListEnd();
-
 
119057
              }
-
 
119058
            } else { 
-
 
119059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119060
            }
-
 
119061
            break;
-
 
119062
          default:
-
 
119063
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119064
        }
-
 
119065
        iprot.readFieldEnd();
-
 
119066
      }
-
 
119067
      iprot.readStructEnd();
-
 
119068
      validate();
-
 
119069
    }
-
 
119070
 
-
 
119071
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
119072
      oprot.writeStructBegin(STRUCT_DESC);
-
 
119073
 
-
 
119074
      if (this.isSetSuccess()) {
-
 
119075
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
119076
        {
-
 
119077
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
119078
          for (EmiScheme _iter404 : this.success)
-
 
119079
          {
-
 
119080
            _iter404.write(oprot);
-
 
119081
          }
-
 
119082
          oprot.writeListEnd();
-
 
119083
        }
-
 
119084
        oprot.writeFieldEnd();
-
 
119085
      }
-
 
119086
      oprot.writeFieldStop();
-
 
119087
      oprot.writeStructEnd();
-
 
119088
    }
-
 
119089
 
-
 
119090
    @Override
-
 
119091
    public String toString() {
-
 
119092
      StringBuilder sb = new StringBuilder("getAvailableEmiSchemes_result(");
-
 
119093
      boolean first = true;
-
 
119094
 
-
 
119095
      sb.append("success:");
-
 
119096
      if (this.success == null) {
-
 
119097
        sb.append("null");
-
 
119098
      } else {
-
 
119099
        sb.append(this.success);
-
 
119100
      }
-
 
119101
      first = false;
-
 
119102
      sb.append(")");
-
 
119103
      return sb.toString();
-
 
119104
    }
-
 
119105
 
-
 
119106
    public void validate() throws org.apache.thrift.TException {
-
 
119107
      // check for required fields
-
 
119108
    }
-
 
119109
 
-
 
119110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
119111
      try {
-
 
119112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
119113
      } catch (org.apache.thrift.TException te) {
-
 
119114
        throw new java.io.IOException(te);
-
 
119115
      }
-
 
119116
    }
-
 
119117
 
-
 
119118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
119119
      try {
-
 
119120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
119121
      } catch (org.apache.thrift.TException te) {
-
 
119122
        throw new java.io.IOException(te);
-
 
119123
      }
-
 
119124
    }
-
 
119125
 
-
 
119126
  }
-
 
119127
 
-
 
119128
  public static class getMiscCharges_args implements org.apache.thrift.TBase<getMiscCharges_args, getMiscCharges_args._Fields>, java.io.Serializable, Cloneable   {
-
 
119129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMiscCharges_args");
-
 
119130
 
-
 
119131
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
119132
 
-
 
119133
    private long transactionId; // required
-
 
119134
 
-
 
119135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
119136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
119137
      TRANSACTION_ID((short)1, "transactionId");
-
 
119138
 
-
 
119139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
119140
 
-
 
119141
      static {
-
 
119142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
119143
          byName.put(field.getFieldName(), field);
-
 
119144
        }
-
 
119145
      }
-
 
119146
 
-
 
119147
      /**
-
 
119148
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
119149
       */
-
 
119150
      public static _Fields findByThriftId(int fieldId) {
-
 
119151
        switch(fieldId) {
-
 
119152
          case 1: // TRANSACTION_ID
-
 
119153
            return TRANSACTION_ID;
-
 
119154
          default:
-
 
119155
            return null;
-
 
119156
        }
-
 
119157
      }
-
 
119158
 
-
 
119159
      /**
-
 
119160
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
119161
       * if it is not found.
-
 
119162
       */
-
 
119163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
119164
        _Fields fields = findByThriftId(fieldId);
-
 
119165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
119166
        return fields;
-
 
119167
      }
-
 
119168
 
-
 
119169
      /**
-
 
119170
       * Find the _Fields constant that matches name, or null if its not found.
-
 
119171
       */
-
 
119172
      public static _Fields findByName(String name) {
-
 
119173
        return byName.get(name);
-
 
119174
      }
-
 
119175
 
-
 
119176
      private final short _thriftId;
-
 
119177
      private final String _fieldName;
-
 
119178
 
-
 
119179
      _Fields(short thriftId, String fieldName) {
-
 
119180
        _thriftId = thriftId;
-
 
119181
        _fieldName = fieldName;
-
 
119182
      }
-
 
119183
 
-
 
119184
      public short getThriftFieldId() {
-
 
119185
        return _thriftId;
-
 
119186
      }
-
 
119187
 
-
 
119188
      public String getFieldName() {
-
 
119189
        return _fieldName;
-
 
119190
      }
-
 
119191
    }
-
 
119192
 
-
 
119193
    // isset id assignments
-
 
119194
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
119195
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
119196
 
-
 
119197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
119198
    static {
-
 
119199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
119200
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
119201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
119202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
119203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMiscCharges_args.class, metaDataMap);
-
 
119204
    }
-
 
119205
 
-
 
119206
    public getMiscCharges_args() {
-
 
119207
    }
-
 
119208
 
-
 
119209
    public getMiscCharges_args(
-
 
119210
      long transactionId)
-
 
119211
    {
-
 
119212
      this();
-
 
119213
      this.transactionId = transactionId;
-
 
119214
      setTransactionIdIsSet(true);
-
 
119215
    }
-
 
119216
 
-
 
119217
    /**
-
 
119218
     * Performs a deep copy on <i>other</i>.
-
 
119219
     */
-
 
119220
    public getMiscCharges_args(getMiscCharges_args other) {
-
 
119221
      __isset_bit_vector.clear();
-
 
119222
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
119223
      this.transactionId = other.transactionId;
-
 
119224
    }
-
 
119225
 
-
 
119226
    public getMiscCharges_args deepCopy() {
-
 
119227
      return new getMiscCharges_args(this);
-
 
119228
    }
-
 
119229
 
-
 
119230
    @Override
-
 
119231
    public void clear() {
-
 
119232
      setTransactionIdIsSet(false);
-
 
119233
      this.transactionId = 0;
-
 
119234
    }
-
 
119235
 
-
 
119236
    public long getTransactionId() {
-
 
119237
      return this.transactionId;
-
 
119238
    }
-
 
119239
 
-
 
119240
    public void setTransactionId(long transactionId) {
-
 
119241
      this.transactionId = transactionId;
-
 
119242
      setTransactionIdIsSet(true);
-
 
119243
    }
-
 
119244
 
-
 
119245
    public void unsetTransactionId() {
-
 
119246
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
119247
    }
-
 
119248
 
-
 
119249
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
-
 
119250
    public boolean isSetTransactionId() {
-
 
119251
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
119252
    }
-
 
119253
 
-
 
119254
    public void setTransactionIdIsSet(boolean value) {
-
 
119255
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
119256
    }
-
 
119257
 
-
 
119258
    public void setFieldValue(_Fields field, Object value) {
-
 
119259
      switch (field) {
-
 
119260
      case TRANSACTION_ID:
-
 
119261
        if (value == null) {
-
 
119262
          unsetTransactionId();
-
 
119263
        } else {
-
 
119264
          setTransactionId((Long)value);
-
 
119265
        }
-
 
119266
        break;
-
 
119267
 
-
 
119268
      }
-
 
119269
    }
-
 
119270
 
-
 
119271
    public Object getFieldValue(_Fields field) {
-
 
119272
      switch (field) {
-
 
119273
      case TRANSACTION_ID:
-
 
119274
        return Long.valueOf(getTransactionId());
-
 
119275
 
-
 
119276
      }
-
 
119277
      throw new IllegalStateException();
-
 
119278
    }
-
 
119279
 
-
 
119280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
119281
    public boolean isSet(_Fields field) {
-
 
119282
      if (field == null) {
-
 
119283
        throw new IllegalArgumentException();
-
 
119284
      }
-
 
119285
 
-
 
119286
      switch (field) {
-
 
119287
      case TRANSACTION_ID:
-
 
119288
        return isSetTransactionId();
-
 
119289
      }
-
 
119290
      throw new IllegalStateException();
-
 
119291
    }
-
 
119292
 
-
 
119293
    @Override
-
 
119294
    public boolean equals(Object that) {
-
 
119295
      if (that == null)
-
 
119296
        return false;
-
 
119297
      if (that instanceof getMiscCharges_args)
-
 
119298
        return this.equals((getMiscCharges_args)that);
-
 
119299
      return false;
-
 
119300
    }
-
 
119301
 
-
 
119302
    public boolean equals(getMiscCharges_args that) {
-
 
119303
      if (that == null)
-
 
119304
        return false;
-
 
119305
 
-
 
119306
      boolean this_present_transactionId = true;
-
 
119307
      boolean that_present_transactionId = true;
-
 
119308
      if (this_present_transactionId || that_present_transactionId) {
-
 
119309
        if (!(this_present_transactionId && that_present_transactionId))
-
 
119310
          return false;
-
 
119311
        if (this.transactionId != that.transactionId)
-
 
119312
          return false;
-
 
119313
      }
-
 
119314
 
-
 
119315
      return true;
-
 
119316
    }
-
 
119317
 
-
 
119318
    @Override
-
 
119319
    public int hashCode() {
-
 
119320
      return 0;
-
 
119321
    }
-
 
119322
 
-
 
119323
    public int compareTo(getMiscCharges_args other) {
-
 
119324
      if (!getClass().equals(other.getClass())) {
-
 
119325
        return getClass().getName().compareTo(other.getClass().getName());
-
 
119326
      }
-
 
119327
 
-
 
119328
      int lastComparison = 0;
-
 
119329
      getMiscCharges_args typedOther = (getMiscCharges_args)other;
-
 
119330
 
-
 
119331
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
-
 
119332
      if (lastComparison != 0) {
-
 
119333
        return lastComparison;
-
 
119334
      }
-
 
119335
      if (isSetTransactionId()) {
-
 
119336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
-
 
119337
        if (lastComparison != 0) {
-
 
119338
          return lastComparison;
-
 
119339
        }
-
 
119340
      }
-
 
119341
      return 0;
-
 
119342
    }
-
 
119343
 
-
 
119344
    public _Fields fieldForId(int fieldId) {
-
 
119345
      return _Fields.findByThriftId(fieldId);
-
 
119346
    }
-
 
119347
 
-
 
119348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
119349
      org.apache.thrift.protocol.TField field;
-
 
119350
      iprot.readStructBegin();
-
 
119351
      while (true)
-
 
119352
      {
-
 
119353
        field = iprot.readFieldBegin();
-
 
119354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
119355
          break;
-
 
119356
        }
-
 
119357
        switch (field.id) {
-
 
119358
          case 1: // TRANSACTION_ID
-
 
119359
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
119360
              this.transactionId = iprot.readI64();
-
 
119361
              setTransactionIdIsSet(true);
-
 
119362
            } else { 
-
 
119363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119364
            }
-
 
119365
            break;
-
 
119366
          default:
-
 
119367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119368
        }
-
 
119369
        iprot.readFieldEnd();
-
 
119370
      }
-
 
119371
      iprot.readStructEnd();
-
 
119372
      validate();
-
 
119373
    }
-
 
119374
 
-
 
119375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
119376
      validate();
-
 
119377
 
-
 
119378
      oprot.writeStructBegin(STRUCT_DESC);
-
 
119379
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
119380
      oprot.writeI64(this.transactionId);
-
 
119381
      oprot.writeFieldEnd();
-
 
119382
      oprot.writeFieldStop();
-
 
119383
      oprot.writeStructEnd();
-
 
119384
    }
-
 
119385
 
-
 
119386
    @Override
-
 
119387
    public String toString() {
-
 
119388
      StringBuilder sb = new StringBuilder("getMiscCharges_args(");
-
 
119389
      boolean first = true;
-
 
119390
 
-
 
119391
      sb.append("transactionId:");
-
 
119392
      sb.append(this.transactionId);
-
 
119393
      first = false;
-
 
119394
      sb.append(")");
-
 
119395
      return sb.toString();
-
 
119396
    }
-
 
119397
 
-
 
119398
    public void validate() throws org.apache.thrift.TException {
-
 
119399
      // check for required fields
-
 
119400
    }
-
 
119401
 
-
 
119402
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
119403
      try {
-
 
119404
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
119405
      } catch (org.apache.thrift.TException te) {
-
 
119406
        throw new java.io.IOException(te);
-
 
119407
      }
-
 
119408
    }
-
 
119409
 
-
 
119410
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
119411
      try {
-
 
119412
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
119413
        __isset_bit_vector = new BitSet(1);
-
 
119414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
119415
      } catch (org.apache.thrift.TException te) {
-
 
119416
        throw new java.io.IOException(te);
-
 
119417
      }
-
 
119418
    }
-
 
119419
 
-
 
119420
  }
-
 
119421
 
-
 
119422
  public static class getMiscCharges_result implements org.apache.thrift.TBase<getMiscCharges_result, getMiscCharges_result._Fields>, java.io.Serializable, Cloneable   {
-
 
119423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMiscCharges_result");
-
 
119424
 
-
 
119425
    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);
-
 
119426
 
-
 
119427
    private Map<Long,Long> success; // required
-
 
119428
 
-
 
119429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
119430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
119431
      SUCCESS((short)0, "success");
-
 
119432
 
-
 
119433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
119434
 
-
 
119435
      static {
-
 
119436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
119437
          byName.put(field.getFieldName(), field);
-
 
119438
        }
-
 
119439
      }
-
 
119440
 
-
 
119441
      /**
-
 
119442
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
119443
       */
-
 
119444
      public static _Fields findByThriftId(int fieldId) {
-
 
119445
        switch(fieldId) {
-
 
119446
          case 0: // SUCCESS
-
 
119447
            return SUCCESS;
-
 
119448
          default:
-
 
119449
            return null;
-
 
119450
        }
-
 
119451
      }
-
 
119452
 
-
 
119453
      /**
-
 
119454
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
119455
       * if it is not found.
-
 
119456
       */
-
 
119457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
119458
        _Fields fields = findByThriftId(fieldId);
-
 
119459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
119460
        return fields;
-
 
119461
      }
-
 
119462
 
-
 
119463
      /**
-
 
119464
       * Find the _Fields constant that matches name, or null if its not found.
-
 
119465
       */
-
 
119466
      public static _Fields findByName(String name) {
-
 
119467
        return byName.get(name);
-
 
119468
      }
-
 
119469
 
-
 
119470
      private final short _thriftId;
-
 
119471
      private final String _fieldName;
-
 
119472
 
-
 
119473
      _Fields(short thriftId, String fieldName) {
-
 
119474
        _thriftId = thriftId;
-
 
119475
        _fieldName = fieldName;
-
 
119476
      }
-
 
119477
 
-
 
119478
      public short getThriftFieldId() {
-
 
119479
        return _thriftId;
-
 
119480
      }
-
 
119481
 
-
 
119482
      public String getFieldName() {
-
 
119483
        return _fieldName;
-
 
119484
      }
-
 
119485
    }
-
 
119486
 
-
 
119487
    // isset id assignments
-
 
119488
 
-
 
119489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
119490
    static {
-
 
119491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
119492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
119493
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
119494
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
119495
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
119496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
119497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMiscCharges_result.class, metaDataMap);
-
 
119498
    }
-
 
119499
 
-
 
119500
    public getMiscCharges_result() {
-
 
119501
    }
-
 
119502
 
-
 
119503
    public getMiscCharges_result(
-
 
119504
      Map<Long,Long> success)
-
 
119505
    {
-
 
119506
      this();
-
 
119507
      this.success = success;
-
 
119508
    }
-
 
119509
 
-
 
119510
    /**
-
 
119511
     * Performs a deep copy on <i>other</i>.
-
 
119512
     */
-
 
119513
    public getMiscCharges_result(getMiscCharges_result other) {
-
 
119514
      if (other.isSetSuccess()) {
-
 
119515
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
119516
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
119517
 
-
 
119518
          Long other_element_key = other_element.getKey();
-
 
119519
          Long other_element_value = other_element.getValue();
-
 
119520
 
-
 
119521
          Long __this__success_copy_key = other_element_key;
-
 
119522
 
-
 
119523
          Long __this__success_copy_value = other_element_value;
-
 
119524
 
-
 
119525
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
119526
        }
-
 
119527
        this.success = __this__success;
-
 
119528
      }
-
 
119529
    }
-
 
119530
 
-
 
119531
    public getMiscCharges_result deepCopy() {
-
 
119532
      return new getMiscCharges_result(this);
-
 
119533
    }
-
 
119534
 
-
 
119535
    @Override
-
 
119536
    public void clear() {
-
 
119537
      this.success = null;
-
 
119538
    }
-
 
119539
 
-
 
119540
    public int getSuccessSize() {
-
 
119541
      return (this.success == null) ? 0 : this.success.size();
-
 
119542
    }
-
 
119543
 
-
 
119544
    public void putToSuccess(long key, long val) {
-
 
119545
      if (this.success == null) {
-
 
119546
        this.success = new HashMap<Long,Long>();
-
 
119547
      }
-
 
119548
      this.success.put(key, val);
-
 
119549
    }
-
 
119550
 
-
 
119551
    public Map<Long,Long> getSuccess() {
-
 
119552
      return this.success;
-
 
119553
    }
-
 
119554
 
-
 
119555
    public void setSuccess(Map<Long,Long> success) {
-
 
119556
      this.success = success;
-
 
119557
    }
-
 
119558
 
-
 
119559
    public void unsetSuccess() {
-
 
119560
      this.success = null;
-
 
119561
    }
-
 
119562
 
-
 
119563
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
119564
    public boolean isSetSuccess() {
-
 
119565
      return this.success != null;
-
 
119566
    }
-
 
119567
 
-
 
119568
    public void setSuccessIsSet(boolean value) {
-
 
119569
      if (!value) {
-
 
119570
        this.success = null;
-
 
119571
      }
-
 
119572
    }
-
 
119573
 
-
 
119574
    public void setFieldValue(_Fields field, Object value) {
-
 
119575
      switch (field) {
-
 
119576
      case SUCCESS:
-
 
119577
        if (value == null) {
-
 
119578
          unsetSuccess();
-
 
119579
        } else {
-
 
119580
          setSuccess((Map<Long,Long>)value);
-
 
119581
        }
-
 
119582
        break;
-
 
119583
 
-
 
119584
      }
-
 
119585
    }
-
 
119586
 
-
 
119587
    public Object getFieldValue(_Fields field) {
-
 
119588
      switch (field) {
-
 
119589
      case SUCCESS:
-
 
119590
        return getSuccess();
-
 
119591
 
-
 
119592
      }
-
 
119593
      throw new IllegalStateException();
-
 
119594
    }
-
 
119595
 
-
 
119596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
119597
    public boolean isSet(_Fields field) {
-
 
119598
      if (field == null) {
-
 
119599
        throw new IllegalArgumentException();
-
 
119600
      }
-
 
119601
 
-
 
119602
      switch (field) {
-
 
119603
      case SUCCESS:
-
 
119604
        return isSetSuccess();
-
 
119605
      }
-
 
119606
      throw new IllegalStateException();
-
 
119607
    }
-
 
119608
 
-
 
119609
    @Override
-
 
119610
    public boolean equals(Object that) {
-
 
119611
      if (that == null)
-
 
119612
        return false;
-
 
119613
      if (that instanceof getMiscCharges_result)
-
 
119614
        return this.equals((getMiscCharges_result)that);
-
 
119615
      return false;
-
 
119616
    }
-
 
119617
 
-
 
119618
    public boolean equals(getMiscCharges_result that) {
-
 
119619
      if (that == null)
-
 
119620
        return false;
-
 
119621
 
-
 
119622
      boolean this_present_success = true && this.isSetSuccess();
-
 
119623
      boolean that_present_success = true && that.isSetSuccess();
-
 
119624
      if (this_present_success || that_present_success) {
-
 
119625
        if (!(this_present_success && that_present_success))
-
 
119626
          return false;
-
 
119627
        if (!this.success.equals(that.success))
-
 
119628
          return false;
-
 
119629
      }
-
 
119630
 
-
 
119631
      return true;
-
 
119632
    }
-
 
119633
 
-
 
119634
    @Override
-
 
119635
    public int hashCode() {
-
 
119636
      return 0;
-
 
119637
    }
-
 
119638
 
-
 
119639
    public int compareTo(getMiscCharges_result other) {
-
 
119640
      if (!getClass().equals(other.getClass())) {
-
 
119641
        return getClass().getName().compareTo(other.getClass().getName());
-
 
119642
      }
-
 
119643
 
-
 
119644
      int lastComparison = 0;
-
 
119645
      getMiscCharges_result typedOther = (getMiscCharges_result)other;
-
 
119646
 
-
 
119647
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
119648
      if (lastComparison != 0) {
-
 
119649
        return lastComparison;
-
 
119650
      }
-
 
119651
      if (isSetSuccess()) {
-
 
119652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
119653
        if (lastComparison != 0) {
-
 
119654
          return lastComparison;
-
 
119655
        }
-
 
119656
      }
-
 
119657
      return 0;
-
 
119658
    }
-
 
119659
 
-
 
119660
    public _Fields fieldForId(int fieldId) {
-
 
119661
      return _Fields.findByThriftId(fieldId);
-
 
119662
    }
-
 
119663
 
-
 
119664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
119665
      org.apache.thrift.protocol.TField field;
-
 
119666
      iprot.readStructBegin();
-
 
119667
      while (true)
-
 
119668
      {
-
 
119669
        field = iprot.readFieldBegin();
-
 
119670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
119671
          break;
-
 
119672
        }
-
 
119673
        switch (field.id) {
-
 
119674
          case 0: // SUCCESS
-
 
119675
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
119676
              {
-
 
119677
                org.apache.thrift.protocol.TMap _map405 = iprot.readMapBegin();
-
 
119678
                this.success = new HashMap<Long,Long>(2*_map405.size);
-
 
119679
                for (int _i406 = 0; _i406 < _map405.size; ++_i406)
-
 
119680
                {
-
 
119681
                  long _key407; // required
-
 
119682
                  long _val408; // required
-
 
119683
                  _key407 = iprot.readI64();
-
 
119684
                  _val408 = iprot.readI64();
-
 
119685
                  this.success.put(_key407, _val408);
-
 
119686
                }
-
 
119687
                iprot.readMapEnd();
-
 
119688
              }
-
 
119689
            } else { 
-
 
119690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119691
            }
-
 
119692
            break;
-
 
119693
          default:
-
 
119694
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119695
        }
-
 
119696
        iprot.readFieldEnd();
-
 
119697
      }
-
 
119698
      iprot.readStructEnd();
-
 
119699
      validate();
-
 
119700
    }
-
 
119701
 
-
 
119702
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
119703
      oprot.writeStructBegin(STRUCT_DESC);
-
 
119704
 
-
 
119705
      if (this.isSetSuccess()) {
-
 
119706
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
119707
        {
-
 
119708
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
119709
          for (Map.Entry<Long, Long> _iter409 : this.success.entrySet())
-
 
119710
          {
-
 
119711
            oprot.writeI64(_iter409.getKey());
-
 
119712
            oprot.writeI64(_iter409.getValue());
-
 
119713
          }
-
 
119714
          oprot.writeMapEnd();
-
 
119715
        }
-
 
119716
        oprot.writeFieldEnd();
-
 
119717
      }
-
 
119718
      oprot.writeFieldStop();
-
 
119719
      oprot.writeStructEnd();
-
 
119720
    }
-
 
119721
 
-
 
119722
    @Override
-
 
119723
    public String toString() {
-
 
119724
      StringBuilder sb = new StringBuilder("getMiscCharges_result(");
-
 
119725
      boolean first = true;
-
 
119726
 
-
 
119727
      sb.append("success:");
-
 
119728
      if (this.success == null) {
-
 
119729
        sb.append("null");
-
 
119730
      } else {
-
 
119731
        sb.append(this.success);
-
 
119732
      }
-
 
119733
      first = false;
-
 
119734
      sb.append(")");
-
 
119735
      return sb.toString();
-
 
119736
    }
-
 
119737
 
-
 
119738
    public void validate() throws org.apache.thrift.TException {
118428
      // check for required fields
119739
      // check for required fields
118429
    }
119740
    }
118430
 
119741
 
118431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
119742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
118432
      try {
119743
      try {