Subversion Repositories SmartDukaan

Rev

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

Rev 6433 Rev 6507
Line 902... Line 902...
902
 
902
 
903
    public List<EmiScheme> getAvailableEmiSchemes() throws org.apache.thrift.TException;
903
    public List<EmiScheme> getAvailableEmiSchemes() throws org.apache.thrift.TException;
904
 
904
 
905
    public Map<Long,Double> getMiscCharges(long transactionId) throws org.apache.thrift.TException;
905
    public Map<Long,Double> getMiscCharges(long transactionId) throws org.apache.thrift.TException;
906
 
906
 
-
 
907
    public boolean refundRechargeOrder(long rechargeOrderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
908
 
907
  }
909
  }
908
 
910
 
909
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
911
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
910
 
912
 
911
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
913
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1200... Line 1202...
1200
 
1202
 
1201
    public void getAvailableEmiSchemes(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAvailableEmiSchemes_call> resultHandler) throws org.apache.thrift.TException;
1203
    public void getAvailableEmiSchemes(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAvailableEmiSchemes_call> resultHandler) throws org.apache.thrift.TException;
1202
 
1204
 
1203
    public void getMiscCharges(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMiscCharges_call> resultHandler) throws org.apache.thrift.TException;
1205
    public void getMiscCharges(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMiscCharges_call> resultHandler) throws org.apache.thrift.TException;
1204
 
1206
 
-
 
1207
    public void refundRechargeOrder(long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundRechargeOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1208
 
1205
  }
1209
  }
1206
 
1210
 
1207
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1211
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1208
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1212
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1209
      public Factory() {}
1213
      public Factory() {}
Line 4924... Line 4928...
4924
        return result.success;
4928
        return result.success;
4925
      }
4929
      }
4926
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMiscCharges failed: unknown result");
4930
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMiscCharges failed: unknown result");
4927
    }
4931
    }
4928
 
4932
 
-
 
4933
    public boolean refundRechargeOrder(long rechargeOrderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
4934
    {
-
 
4935
      send_refundRechargeOrder(rechargeOrderId);
-
 
4936
      return recv_refundRechargeOrder();
-
 
4937
    }
-
 
4938
 
-
 
4939
    public void send_refundRechargeOrder(long rechargeOrderId) throws org.apache.thrift.TException
-
 
4940
    {
-
 
4941
      refundRechargeOrder_args args = new refundRechargeOrder_args();
-
 
4942
      args.setRechargeOrderId(rechargeOrderId);
-
 
4943
      sendBase("refundRechargeOrder", args);
-
 
4944
    }
-
 
4945
 
-
 
4946
    public boolean recv_refundRechargeOrder() throws TransactionServiceException, org.apache.thrift.TException
-
 
4947
    {
-
 
4948
      refundRechargeOrder_result result = new refundRechargeOrder_result();
-
 
4949
      receiveBase(result, "refundRechargeOrder");
-
 
4950
      if (result.isSetSuccess()) {
-
 
4951
        return result.success;
-
 
4952
      }
-
 
4953
      if (result.ex != null) {
-
 
4954
        throw result.ex;
-
 
4955
      }
-
 
4956
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundRechargeOrder failed: unknown result");
-
 
4957
    }
-
 
4958
 
4929
  }
4959
  }
4930
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4960
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4931
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4961
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4932
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4962
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4933
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4963
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10069... Line 10099...
10069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10099
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10070
        return (new Client(prot)).recv_getMiscCharges();
10100
        return (new Client(prot)).recv_getMiscCharges();
10071
      }
10101
      }
10072
    }
10102
    }
10073
 
10103
 
-
 
10104
    public void refundRechargeOrder(long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<refundRechargeOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
10105
      checkReady();
-
 
10106
      refundRechargeOrder_call method_call = new refundRechargeOrder_call(rechargeOrderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10107
      this.___currentMethod = method_call;
-
 
10108
      ___manager.call(method_call);
-
 
10109
    }
-
 
10110
 
-
 
10111
    public static class refundRechargeOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10112
      private long rechargeOrderId;
-
 
10113
      public refundRechargeOrder_call(long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<refundRechargeOrder_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 {
-
 
10114
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10115
        this.rechargeOrderId = rechargeOrderId;
-
 
10116
      }
-
 
10117
 
-
 
10118
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10119
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundRechargeOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10120
        refundRechargeOrder_args args = new refundRechargeOrder_args();
-
 
10121
        args.setRechargeOrderId(rechargeOrderId);
-
 
10122
        args.write(prot);
-
 
10123
        prot.writeMessageEnd();
-
 
10124
      }
-
 
10125
 
-
 
10126
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
10127
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10128
          throw new IllegalStateException("Method call not finished!");
-
 
10129
        }
-
 
10130
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10131
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10132
        return (new Client(prot)).recv_refundRechargeOrder();
-
 
10133
      }
-
 
10134
    }
-
 
10135
 
10074
  }
10136
  }
10075
 
10137
 
10076
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10138
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10077
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10139
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10078
    public Processor(I iface) {
10140
    public Processor(I iface) {
Line 10229... Line 10291...
10229
      processMap.put("getPlansForOperator", new getPlansForOperator());
10291
      processMap.put("getPlansForOperator", new getPlansForOperator());
10230
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
10292
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
10231
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
10293
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
10232
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
10294
      processMap.put("getAvailableEmiSchemes", new getAvailableEmiSchemes());
10233
      processMap.put("getMiscCharges", new getMiscCharges());
10295
      processMap.put("getMiscCharges", new getMiscCharges());
-
 
10296
      processMap.put("refundRechargeOrder", new refundRechargeOrder());
10234
      return processMap;
10297
      return processMap;
10235
    }
10298
    }
10236
 
10299
 
10237
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10300
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10238
      public createTransaction() {
10301
      public createTransaction() {
Line 13006... Line 13069...
13006
        result.success = iface.getMiscCharges(args.transactionId);
13069
        result.success = iface.getMiscCharges(args.transactionId);
13007
        return result;
13070
        return result;
13008
      }
13071
      }
13009
    }
13072
    }
13010
 
13073
 
-
 
13074
    private static class refundRechargeOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundRechargeOrder_args> {
-
 
13075
      public refundRechargeOrder() {
-
 
13076
        super("refundRechargeOrder");
-
 
13077
      }
-
 
13078
 
-
 
13079
      protected refundRechargeOrder_args getEmptyArgsInstance() {
-
 
13080
        return new refundRechargeOrder_args();
-
 
13081
      }
-
 
13082
 
-
 
13083
      protected refundRechargeOrder_result getResult(I iface, refundRechargeOrder_args args) throws org.apache.thrift.TException {
-
 
13084
        refundRechargeOrder_result result = new refundRechargeOrder_result();
-
 
13085
        try {
-
 
13086
          result.success = iface.refundRechargeOrder(args.rechargeOrderId);
-
 
13087
          result.setSuccessIsSet(true);
-
 
13088
        } catch (TransactionServiceException ex) {
-
 
13089
          result.ex = ex;
-
 
13090
        }
-
 
13091
        return result;
-
 
13092
      }
-
 
13093
    }
-
 
13094
 
13011
  }
13095
  }
13012
 
13096
 
13013
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13097
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13015
 
13099
 
Line 76774... Line 76858...
76774
      }
76858
      }
76775
    }
76859
    }
76776
 
76860
 
76777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
76861
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
76778
      try {
76862
      try {
-
 
76863
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
76864
        __isset_bit_vector = new BitSet(1);
76779
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
76865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
76780
      } catch (org.apache.thrift.TException te) {
76866
      } catch (org.apache.thrift.TException te) {
76781
        throw new java.io.IOException(te);
76867
        throw new java.io.IOException(te);
76782
      }
76868
      }
76783
    }
76869
    }
Line 119738... Line 119824...
119738
      }
119824
      }
119739
      first = false;
119825
      first = false;
119740
      sb.append(")");
119826
      sb.append(")");
119741
      return sb.toString();
119827
      return sb.toString();
119742
    }
119828
    }
-
 
119829
 
-
 
119830
    public void validate() throws org.apache.thrift.TException {
-
 
119831
      // check for required fields
-
 
119832
    }
-
 
119833
 
-
 
119834
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
119835
      try {
-
 
119836
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
119837
      } catch (org.apache.thrift.TException te) {
-
 
119838
        throw new java.io.IOException(te);
-
 
119839
      }
-
 
119840
    }
-
 
119841
 
-
 
119842
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
119843
      try {
-
 
119844
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
119845
      } catch (org.apache.thrift.TException te) {
-
 
119846
        throw new java.io.IOException(te);
-
 
119847
      }
-
 
119848
    }
-
 
119849
 
-
 
119850
  }
-
 
119851
 
-
 
119852
  public static class refundRechargeOrder_args implements org.apache.thrift.TBase<refundRechargeOrder_args, refundRechargeOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
119853
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundRechargeOrder_args");
-
 
119854
 
-
 
119855
    private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
119856
 
-
 
119857
    private long rechargeOrderId; // required
-
 
119858
 
-
 
119859
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
119860
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
119861
      RECHARGE_ORDER_ID((short)1, "rechargeOrderId");
-
 
119862
 
-
 
119863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
119864
 
-
 
119865
      static {
-
 
119866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
119867
          byName.put(field.getFieldName(), field);
-
 
119868
        }
-
 
119869
      }
-
 
119870
 
-
 
119871
      /**
-
 
119872
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
119873
       */
-
 
119874
      public static _Fields findByThriftId(int fieldId) {
-
 
119875
        switch(fieldId) {
-
 
119876
          case 1: // RECHARGE_ORDER_ID
-
 
119877
            return RECHARGE_ORDER_ID;
-
 
119878
          default:
-
 
119879
            return null;
-
 
119880
        }
-
 
119881
      }
-
 
119882
 
-
 
119883
      /**
-
 
119884
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
119885
       * if it is not found.
-
 
119886
       */
-
 
119887
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
119888
        _Fields fields = findByThriftId(fieldId);
-
 
119889
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
119890
        return fields;
-
 
119891
      }
-
 
119892
 
-
 
119893
      /**
-
 
119894
       * Find the _Fields constant that matches name, or null if its not found.
-
 
119895
       */
-
 
119896
      public static _Fields findByName(String name) {
-
 
119897
        return byName.get(name);
-
 
119898
      }
-
 
119899
 
-
 
119900
      private final short _thriftId;
-
 
119901
      private final String _fieldName;
-
 
119902
 
-
 
119903
      _Fields(short thriftId, String fieldName) {
-
 
119904
        _thriftId = thriftId;
-
 
119905
        _fieldName = fieldName;
-
 
119906
      }
-
 
119907
 
-
 
119908
      public short getThriftFieldId() {
-
 
119909
        return _thriftId;
-
 
119910
      }
-
 
119911
 
-
 
119912
      public String getFieldName() {
-
 
119913
        return _fieldName;
-
 
119914
      }
-
 
119915
    }
-
 
119916
 
-
 
119917
    // isset id assignments
-
 
119918
    private static final int __RECHARGEORDERID_ISSET_ID = 0;
-
 
119919
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
119920
 
-
 
119921
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
119922
    static {
-
 
119923
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
119924
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
119925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
119926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
119927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundRechargeOrder_args.class, metaDataMap);
-
 
119928
    }
-
 
119929
 
-
 
119930
    public refundRechargeOrder_args() {
-
 
119931
    }
-
 
119932
 
-
 
119933
    public refundRechargeOrder_args(
-
 
119934
      long rechargeOrderId)
-
 
119935
    {
-
 
119936
      this();
-
 
119937
      this.rechargeOrderId = rechargeOrderId;
-
 
119938
      setRechargeOrderIdIsSet(true);
-
 
119939
    }
-
 
119940
 
-
 
119941
    /**
-
 
119942
     * Performs a deep copy on <i>other</i>.
-
 
119943
     */
-
 
119944
    public refundRechargeOrder_args(refundRechargeOrder_args other) {
-
 
119945
      __isset_bit_vector.clear();
-
 
119946
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
119947
      this.rechargeOrderId = other.rechargeOrderId;
-
 
119948
    }
-
 
119949
 
-
 
119950
    public refundRechargeOrder_args deepCopy() {
-
 
119951
      return new refundRechargeOrder_args(this);
-
 
119952
    }
-
 
119953
 
-
 
119954
    @Override
-
 
119955
    public void clear() {
-
 
119956
      setRechargeOrderIdIsSet(false);
-
 
119957
      this.rechargeOrderId = 0;
-
 
119958
    }
-
 
119959
 
-
 
119960
    public long getRechargeOrderId() {
-
 
119961
      return this.rechargeOrderId;
-
 
119962
    }
-
 
119963
 
-
 
119964
    public void setRechargeOrderId(long rechargeOrderId) {
-
 
119965
      this.rechargeOrderId = rechargeOrderId;
-
 
119966
      setRechargeOrderIdIsSet(true);
-
 
119967
    }
-
 
119968
 
-
 
119969
    public void unsetRechargeOrderId() {
-
 
119970
      __isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
-
 
119971
    }
-
 
119972
 
-
 
119973
    /** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
-
 
119974
    public boolean isSetRechargeOrderId() {
-
 
119975
      return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
-
 
119976
    }
-
 
119977
 
-
 
119978
    public void setRechargeOrderIdIsSet(boolean value) {
-
 
119979
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
-
 
119980
    }
-
 
119981
 
-
 
119982
    public void setFieldValue(_Fields field, Object value) {
-
 
119983
      switch (field) {
-
 
119984
      case RECHARGE_ORDER_ID:
-
 
119985
        if (value == null) {
-
 
119986
          unsetRechargeOrderId();
-
 
119987
        } else {
-
 
119988
          setRechargeOrderId((Long)value);
-
 
119989
        }
-
 
119990
        break;
-
 
119991
 
-
 
119992
      }
-
 
119993
    }
-
 
119994
 
-
 
119995
    public Object getFieldValue(_Fields field) {
-
 
119996
      switch (field) {
-
 
119997
      case RECHARGE_ORDER_ID:
-
 
119998
        return Long.valueOf(getRechargeOrderId());
-
 
119999
 
-
 
120000
      }
-
 
120001
      throw new IllegalStateException();
-
 
120002
    }
-
 
120003
 
-
 
120004
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
120005
    public boolean isSet(_Fields field) {
-
 
120006
      if (field == null) {
-
 
120007
        throw new IllegalArgumentException();
-
 
120008
      }
-
 
120009
 
-
 
120010
      switch (field) {
-
 
120011
      case RECHARGE_ORDER_ID:
-
 
120012
        return isSetRechargeOrderId();
-
 
120013
      }
-
 
120014
      throw new IllegalStateException();
-
 
120015
    }
-
 
120016
 
-
 
120017
    @Override
-
 
120018
    public boolean equals(Object that) {
-
 
120019
      if (that == null)
-
 
120020
        return false;
-
 
120021
      if (that instanceof refundRechargeOrder_args)
-
 
120022
        return this.equals((refundRechargeOrder_args)that);
-
 
120023
      return false;
-
 
120024
    }
-
 
120025
 
-
 
120026
    public boolean equals(refundRechargeOrder_args that) {
-
 
120027
      if (that == null)
-
 
120028
        return false;
-
 
120029
 
-
 
120030
      boolean this_present_rechargeOrderId = true;
-
 
120031
      boolean that_present_rechargeOrderId = true;
-
 
120032
      if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
-
 
120033
        if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
-
 
120034
          return false;
-
 
120035
        if (this.rechargeOrderId != that.rechargeOrderId)
-
 
120036
          return false;
-
 
120037
      }
-
 
120038
 
-
 
120039
      return true;
-
 
120040
    }
-
 
120041
 
-
 
120042
    @Override
-
 
120043
    public int hashCode() {
-
 
120044
      return 0;
-
 
120045
    }
-
 
120046
 
-
 
120047
    public int compareTo(refundRechargeOrder_args other) {
-
 
120048
      if (!getClass().equals(other.getClass())) {
-
 
120049
        return getClass().getName().compareTo(other.getClass().getName());
-
 
120050
      }
-
 
120051
 
-
 
120052
      int lastComparison = 0;
-
 
120053
      refundRechargeOrder_args typedOther = (refundRechargeOrder_args)other;
-
 
120054
 
-
 
120055
      lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
-
 
120056
      if (lastComparison != 0) {
-
 
120057
        return lastComparison;
-
 
120058
      }
-
 
120059
      if (isSetRechargeOrderId()) {
-
 
120060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
-
 
120061
        if (lastComparison != 0) {
-
 
120062
          return lastComparison;
-
 
120063
        }
-
 
120064
      }
-
 
120065
      return 0;
-
 
120066
    }
-
 
120067
 
-
 
120068
    public _Fields fieldForId(int fieldId) {
-
 
120069
      return _Fields.findByThriftId(fieldId);
-
 
120070
    }
-
 
120071
 
-
 
120072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
120073
      org.apache.thrift.protocol.TField field;
-
 
120074
      iprot.readStructBegin();
-
 
120075
      while (true)
-
 
120076
      {
-
 
120077
        field = iprot.readFieldBegin();
-
 
120078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
120079
          break;
-
 
120080
        }
-
 
120081
        switch (field.id) {
-
 
120082
          case 1: // RECHARGE_ORDER_ID
-
 
120083
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
120084
              this.rechargeOrderId = iprot.readI64();
-
 
120085
              setRechargeOrderIdIsSet(true);
-
 
120086
            } else { 
-
 
120087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120088
            }
-
 
120089
            break;
-
 
120090
          default:
-
 
120091
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120092
        }
-
 
120093
        iprot.readFieldEnd();
-
 
120094
      }
-
 
120095
      iprot.readStructEnd();
-
 
120096
      validate();
-
 
120097
    }
-
 
120098
 
-
 
120099
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
120100
      validate();
-
 
120101
 
-
 
120102
      oprot.writeStructBegin(STRUCT_DESC);
-
 
120103
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
-
 
120104
      oprot.writeI64(this.rechargeOrderId);
-
 
120105
      oprot.writeFieldEnd();
-
 
120106
      oprot.writeFieldStop();
-
 
120107
      oprot.writeStructEnd();
-
 
120108
    }
-
 
120109
 
-
 
120110
    @Override
-
 
120111
    public String toString() {
-
 
120112
      StringBuilder sb = new StringBuilder("refundRechargeOrder_args(");
-
 
120113
      boolean first = true;
-
 
120114
 
-
 
120115
      sb.append("rechargeOrderId:");
-
 
120116
      sb.append(this.rechargeOrderId);
-
 
120117
      first = false;
-
 
120118
      sb.append(")");
-
 
120119
      return sb.toString();
-
 
120120
    }
-
 
120121
 
-
 
120122
    public void validate() throws org.apache.thrift.TException {
-
 
120123
      // check for required fields
-
 
120124
    }
-
 
120125
 
-
 
120126
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
120127
      try {
-
 
120128
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
120129
      } catch (org.apache.thrift.TException te) {
-
 
120130
        throw new java.io.IOException(te);
-
 
120131
      }
-
 
120132
    }
-
 
120133
 
-
 
120134
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
120135
      try {
-
 
120136
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
120137
        __isset_bit_vector = new BitSet(1);
-
 
120138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
120139
      } catch (org.apache.thrift.TException te) {
-
 
120140
        throw new java.io.IOException(te);
-
 
120141
      }
-
 
120142
    }
-
 
120143
 
-
 
120144
  }
-
 
120145
 
-
 
120146
  public static class refundRechargeOrder_result implements org.apache.thrift.TBase<refundRechargeOrder_result, refundRechargeOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
120147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundRechargeOrder_result");
-
 
120148
 
-
 
120149
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
120150
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
120151
 
-
 
120152
    private boolean success; // required
-
 
120153
    private TransactionServiceException ex; // required
-
 
120154
 
-
 
120155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
120156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
120157
      SUCCESS((short)0, "success"),
-
 
120158
      EX((short)1, "ex");
-
 
120159
 
-
 
120160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
120161
 
-
 
120162
      static {
-
 
120163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
120164
          byName.put(field.getFieldName(), field);
-
 
120165
        }
-
 
120166
      }
-
 
120167
 
-
 
120168
      /**
-
 
120169
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
120170
       */
-
 
120171
      public static _Fields findByThriftId(int fieldId) {
-
 
120172
        switch(fieldId) {
-
 
120173
          case 0: // SUCCESS
-
 
120174
            return SUCCESS;
-
 
120175
          case 1: // EX
-
 
120176
            return EX;
-
 
120177
          default:
-
 
120178
            return null;
-
 
120179
        }
-
 
120180
      }
-
 
120181
 
-
 
120182
      /**
-
 
120183
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
120184
       * if it is not found.
-
 
120185
       */
-
 
120186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
120187
        _Fields fields = findByThriftId(fieldId);
-
 
120188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
120189
        return fields;
-
 
120190
      }
-
 
120191
 
-
 
120192
      /**
-
 
120193
       * Find the _Fields constant that matches name, or null if its not found.
-
 
120194
       */
-
 
120195
      public static _Fields findByName(String name) {
-
 
120196
        return byName.get(name);
-
 
120197
      }
-
 
120198
 
-
 
120199
      private final short _thriftId;
-
 
120200
      private final String _fieldName;
-
 
120201
 
-
 
120202
      _Fields(short thriftId, String fieldName) {
-
 
120203
        _thriftId = thriftId;
-
 
120204
        _fieldName = fieldName;
-
 
120205
      }
-
 
120206
 
-
 
120207
      public short getThriftFieldId() {
-
 
120208
        return _thriftId;
-
 
120209
      }
-
 
120210
 
-
 
120211
      public String getFieldName() {
-
 
120212
        return _fieldName;
-
 
120213
      }
-
 
120214
    }
-
 
120215
 
-
 
120216
    // isset id assignments
-
 
120217
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
120218
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
120219
 
-
 
120220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
120221
    static {
-
 
120222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
120223
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
120225
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
120227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
120228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundRechargeOrder_result.class, metaDataMap);
-
 
120229
    }
-
 
120230
 
-
 
120231
    public refundRechargeOrder_result() {
-
 
120232
    }
-
 
120233
 
-
 
120234
    public refundRechargeOrder_result(
-
 
120235
      boolean success,
-
 
120236
      TransactionServiceException ex)
-
 
120237
    {
-
 
120238
      this();
-
 
120239
      this.success = success;
-
 
120240
      setSuccessIsSet(true);
-
 
120241
      this.ex = ex;
-
 
120242
    }
-
 
120243
 
-
 
120244
    /**
-
 
120245
     * Performs a deep copy on <i>other</i>.
-
 
120246
     */
-
 
120247
    public refundRechargeOrder_result(refundRechargeOrder_result other) {
-
 
120248
      __isset_bit_vector.clear();
-
 
120249
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
120250
      this.success = other.success;
-
 
120251
      if (other.isSetEx()) {
-
 
120252
        this.ex = new TransactionServiceException(other.ex);
-
 
120253
      }
-
 
120254
    }
-
 
120255
 
-
 
120256
    public refundRechargeOrder_result deepCopy() {
-
 
120257
      return new refundRechargeOrder_result(this);
-
 
120258
    }
-
 
120259
 
-
 
120260
    @Override
-
 
120261
    public void clear() {
-
 
120262
      setSuccessIsSet(false);
-
 
120263
      this.success = false;
-
 
120264
      this.ex = null;
-
 
120265
    }
-
 
120266
 
-
 
120267
    public boolean isSuccess() {
-
 
120268
      return this.success;
-
 
120269
    }
-
 
120270
 
-
 
120271
    public void setSuccess(boolean success) {
-
 
120272
      this.success = success;
-
 
120273
      setSuccessIsSet(true);
-
 
120274
    }
-
 
120275
 
-
 
120276
    public void unsetSuccess() {
-
 
120277
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
120278
    }
-
 
120279
 
-
 
120280
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
120281
    public boolean isSetSuccess() {
-
 
120282
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
120283
    }
-
 
120284
 
-
 
120285
    public void setSuccessIsSet(boolean value) {
-
 
120286
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
120287
    }
-
 
120288
 
-
 
120289
    public TransactionServiceException getEx() {
-
 
120290
      return this.ex;
-
 
120291
    }
-
 
120292
 
-
 
120293
    public void setEx(TransactionServiceException ex) {
-
 
120294
      this.ex = ex;
-
 
120295
    }
-
 
120296
 
-
 
120297
    public void unsetEx() {
-
 
120298
      this.ex = null;
-
 
120299
    }
-
 
120300
 
-
 
120301
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
120302
    public boolean isSetEx() {
-
 
120303
      return this.ex != null;
-
 
120304
    }
-
 
120305
 
-
 
120306
    public void setExIsSet(boolean value) {
-
 
120307
      if (!value) {
-
 
120308
        this.ex = null;
-
 
120309
      }
-
 
120310
    }
-
 
120311
 
-
 
120312
    public void setFieldValue(_Fields field, Object value) {
-
 
120313
      switch (field) {
-
 
120314
      case SUCCESS:
-
 
120315
        if (value == null) {
-
 
120316
          unsetSuccess();
-
 
120317
        } else {
-
 
120318
          setSuccess((Boolean)value);
-
 
120319
        }
-
 
120320
        break;
-
 
120321
 
-
 
120322
      case EX:
-
 
120323
        if (value == null) {
-
 
120324
          unsetEx();
-
 
120325
        } else {
-
 
120326
          setEx((TransactionServiceException)value);
-
 
120327
        }
-
 
120328
        break;
-
 
120329
 
-
 
120330
      }
-
 
120331
    }
-
 
120332
 
-
 
120333
    public Object getFieldValue(_Fields field) {
-
 
120334
      switch (field) {
-
 
120335
      case SUCCESS:
-
 
120336
        return Boolean.valueOf(isSuccess());
-
 
120337
 
-
 
120338
      case EX:
-
 
120339
        return getEx();
-
 
120340
 
-
 
120341
      }
-
 
120342
      throw new IllegalStateException();
-
 
120343
    }
-
 
120344
 
-
 
120345
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
120346
    public boolean isSet(_Fields field) {
-
 
120347
      if (field == null) {
-
 
120348
        throw new IllegalArgumentException();
-
 
120349
      }
-
 
120350
 
-
 
120351
      switch (field) {
-
 
120352
      case SUCCESS:
-
 
120353
        return isSetSuccess();
-
 
120354
      case EX:
-
 
120355
        return isSetEx();
-
 
120356
      }
-
 
120357
      throw new IllegalStateException();
-
 
120358
    }
-
 
120359
 
-
 
120360
    @Override
-
 
120361
    public boolean equals(Object that) {
-
 
120362
      if (that == null)
-
 
120363
        return false;
-
 
120364
      if (that instanceof refundRechargeOrder_result)
-
 
120365
        return this.equals((refundRechargeOrder_result)that);
-
 
120366
      return false;
-
 
120367
    }
-
 
120368
 
-
 
120369
    public boolean equals(refundRechargeOrder_result that) {
-
 
120370
      if (that == null)
-
 
120371
        return false;
-
 
120372
 
-
 
120373
      boolean this_present_success = true;
-
 
120374
      boolean that_present_success = true;
-
 
120375
      if (this_present_success || that_present_success) {
-
 
120376
        if (!(this_present_success && that_present_success))
-
 
120377
          return false;
-
 
120378
        if (this.success != that.success)
-
 
120379
          return false;
-
 
120380
      }
-
 
120381
 
-
 
120382
      boolean this_present_ex = true && this.isSetEx();
-
 
120383
      boolean that_present_ex = true && that.isSetEx();
-
 
120384
      if (this_present_ex || that_present_ex) {
-
 
120385
        if (!(this_present_ex && that_present_ex))
-
 
120386
          return false;
-
 
120387
        if (!this.ex.equals(that.ex))
-
 
120388
          return false;
-
 
120389
      }
-
 
120390
 
-
 
120391
      return true;
-
 
120392
    }
-
 
120393
 
-
 
120394
    @Override
-
 
120395
    public int hashCode() {
-
 
120396
      return 0;
-
 
120397
    }
-
 
120398
 
-
 
120399
    public int compareTo(refundRechargeOrder_result other) {
-
 
120400
      if (!getClass().equals(other.getClass())) {
-
 
120401
        return getClass().getName().compareTo(other.getClass().getName());
-
 
120402
      }
-
 
120403
 
-
 
120404
      int lastComparison = 0;
-
 
120405
      refundRechargeOrder_result typedOther = (refundRechargeOrder_result)other;
-
 
120406
 
-
 
120407
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
120408
      if (lastComparison != 0) {
-
 
120409
        return lastComparison;
-
 
120410
      }
-
 
120411
      if (isSetSuccess()) {
-
 
120412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
120413
        if (lastComparison != 0) {
-
 
120414
          return lastComparison;
-
 
120415
        }
-
 
120416
      }
-
 
120417
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
120418
      if (lastComparison != 0) {
-
 
120419
        return lastComparison;
-
 
120420
      }
-
 
120421
      if (isSetEx()) {
-
 
120422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
120423
        if (lastComparison != 0) {
-
 
120424
          return lastComparison;
-
 
120425
        }
-
 
120426
      }
-
 
120427
      return 0;
-
 
120428
    }
-
 
120429
 
-
 
120430
    public _Fields fieldForId(int fieldId) {
-
 
120431
      return _Fields.findByThriftId(fieldId);
-
 
120432
    }
-
 
120433
 
-
 
120434
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
120435
      org.apache.thrift.protocol.TField field;
-
 
120436
      iprot.readStructBegin();
-
 
120437
      while (true)
-
 
120438
      {
-
 
120439
        field = iprot.readFieldBegin();
-
 
120440
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
120441
          break;
-
 
120442
        }
-
 
120443
        switch (field.id) {
-
 
120444
          case 0: // SUCCESS
-
 
120445
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
120446
              this.success = iprot.readBool();
-
 
120447
              setSuccessIsSet(true);
-
 
120448
            } else { 
-
 
120449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120450
            }
-
 
120451
            break;
-
 
120452
          case 1: // EX
-
 
120453
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
120454
              this.ex = new TransactionServiceException();
-
 
120455
              this.ex.read(iprot);
-
 
120456
            } else { 
-
 
120457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120458
            }
-
 
120459
            break;
-
 
120460
          default:
-
 
120461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120462
        }
-
 
120463
        iprot.readFieldEnd();
-
 
120464
      }
-
 
120465
      iprot.readStructEnd();
-
 
120466
      validate();
-
 
120467
    }
-
 
120468
 
-
 
120469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
120470
      oprot.writeStructBegin(STRUCT_DESC);
-
 
120471
 
-
 
120472
      if (this.isSetSuccess()) {
-
 
120473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
120474
        oprot.writeBool(this.success);
-
 
120475
        oprot.writeFieldEnd();
-
 
120476
      } else if (this.isSetEx()) {
-
 
120477
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
120478
        this.ex.write(oprot);
-
 
120479
        oprot.writeFieldEnd();
-
 
120480
      }
-
 
120481
      oprot.writeFieldStop();
-
 
120482
      oprot.writeStructEnd();
-
 
120483
    }
-
 
120484
 
-
 
120485
    @Override
-
 
120486
    public String toString() {
-
 
120487
      StringBuilder sb = new StringBuilder("refundRechargeOrder_result(");
-
 
120488
      boolean first = true;
-
 
120489
 
-
 
120490
      sb.append("success:");
-
 
120491
      sb.append(this.success);
-
 
120492
      first = false;
-
 
120493
      if (!first) sb.append(", ");
-
 
120494
      sb.append("ex:");
-
 
120495
      if (this.ex == null) {
-
 
120496
        sb.append("null");
-
 
120497
      } else {
-
 
120498
        sb.append(this.ex);
-
 
120499
      }
-
 
120500
      first = false;
-
 
120501
      sb.append(")");
-
 
120502
      return sb.toString();
-
 
120503
    }
119743
 
120504
 
119744
    public void validate() throws org.apache.thrift.TException {
120505
    public void validate() throws org.apache.thrift.TException {
119745
      // check for required fields
120506
      // check for required fields
119746
    }
120507
    }
119747
 
120508