Subversion Repositories SmartDukaan

Rev

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

Rev 3578 Rev 4008
Line 48... Line 48...
48
 
48
 
49
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
49
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
50
 
50
 
51
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
51
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
52
 
52
 
53
    public void processCODTxn(long transactionId) throws org.apache.thrift.TException;
-
 
54
 
-
 
55
    public void processPaymentFailure(long paymentId) throws org.apache.thrift.TException;
-
 
56
 
-
 
57
  }
53
  }
58
 
54
 
59
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
55
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
60
 
56
 
61
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
57
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
Line 82... Line 78...
82
 
78
 
83
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
79
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
84
 
80
 
85
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
81
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
86
 
82
 
87
    public void processCODTxn(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processCODTxn_call> resultHandler) throws org.apache.thrift.TException;
-
 
88
 
-
 
89
    public void processPaymentFailure(long paymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processPaymentFailure_call> resultHandler) throws org.apache.thrift.TException;
-
 
90
 
-
 
91
  }
83
  }
92
 
84
 
93
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
85
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
94
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
86
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
95
      public Factory() {}
87
      public Factory() {}
Line 397... Line 389...
397
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
389
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
398
      receiveBase(result, "updateLastEmailProcessedTimestamp");
390
      receiveBase(result, "updateLastEmailProcessedTimestamp");
399
      return;
391
      return;
400
    }
392
    }
401
 
393
 
402
    public void processCODTxn(long transactionId) throws org.apache.thrift.TException
-
 
403
    {
-
 
404
      send_processCODTxn(transactionId);
-
 
405
    }
-
 
406
 
-
 
407
    public void send_processCODTxn(long transactionId) throws org.apache.thrift.TException
-
 
408
    {
-
 
409
      processCODTxn_args args = new processCODTxn_args();
-
 
410
      args.setTransactionId(transactionId);
-
 
411
      sendBase("processCODTxn", args);
-
 
412
    }
-
 
413
 
-
 
414
    public void processPaymentFailure(long paymentId) throws org.apache.thrift.TException
-
 
415
    {
-
 
416
      send_processPaymentFailure(paymentId);
-
 
417
    }
-
 
418
 
-
 
419
    public void send_processPaymentFailure(long paymentId) throws org.apache.thrift.TException
-
 
420
    {
-
 
421
      processPaymentFailure_args args = new processPaymentFailure_args();
-
 
422
      args.setPaymentId(paymentId);
-
 
423
      sendBase("processPaymentFailure", args);
-
 
424
    }
-
 
425
 
-
 
426
  }
394
  }
427
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
395
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
428
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
396
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
429
      private org.apache.thrift.async.TAsyncClientManager clientManager;
397
      private org.apache.thrift.async.TAsyncClientManager clientManager;
430
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
398
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 861... Line 829...
861
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
829
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
862
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
830
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
863
      }
831
      }
864
    }
832
    }
865
 
833
 
866
    public void processCODTxn(long transactionId, org.apache.thrift.async.AsyncMethodCallback<processCODTxn_call> resultHandler) throws org.apache.thrift.TException {
-
 
867
      checkReady();
-
 
868
      processCODTxn_call method_call = new processCODTxn_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
-
 
869
      this.___currentMethod = method_call;
-
 
870
      ___manager.call(method_call);
-
 
871
    }
-
 
872
 
-
 
873
    public static class processCODTxn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
874
      private long transactionId;
-
 
875
      public processCODTxn_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<processCODTxn_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 {
-
 
876
        super(client, protocolFactory, transport, resultHandler, true);
-
 
877
        this.transactionId = transactionId;
-
 
878
      }
-
 
879
 
-
 
880
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
881
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCODTxn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
882
        processCODTxn_args args = new processCODTxn_args();
-
 
883
        args.setTransactionId(transactionId);
-
 
884
        args.write(prot);
-
 
885
        prot.writeMessageEnd();
-
 
886
      }
-
 
887
 
-
 
888
      public void getResult() throws org.apache.thrift.TException {
-
 
889
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
890
          throw new IllegalStateException("Method call not finished!");
-
 
891
        }
-
 
892
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
893
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
894
      }
-
 
895
    }
-
 
896
 
-
 
897
    public void processPaymentFailure(long paymentId, org.apache.thrift.async.AsyncMethodCallback<processPaymentFailure_call> resultHandler) throws org.apache.thrift.TException {
-
 
898
      checkReady();
-
 
899
      processPaymentFailure_call method_call = new processPaymentFailure_call(paymentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
900
      this.___currentMethod = method_call;
-
 
901
      ___manager.call(method_call);
-
 
902
    }
-
 
903
 
-
 
904
    public static class processPaymentFailure_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
905
      private long paymentId;
-
 
906
      public processPaymentFailure_call(long paymentId, org.apache.thrift.async.AsyncMethodCallback<processPaymentFailure_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 {
-
 
907
        super(client, protocolFactory, transport, resultHandler, true);
-
 
908
        this.paymentId = paymentId;
-
 
909
      }
-
 
910
 
-
 
911
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
912
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processPaymentFailure", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
913
        processPaymentFailure_args args = new processPaymentFailure_args();
-
 
914
        args.setPaymentId(paymentId);
-
 
915
        args.write(prot);
-
 
916
        prot.writeMessageEnd();
-
 
917
      }
-
 
918
 
-
 
919
      public void getResult() throws org.apache.thrift.TException {
-
 
920
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
921
          throw new IllegalStateException("Method call not finished!");
-
 
922
        }
-
 
923
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
924
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
925
      }
-
 
926
    }
-
 
927
 
-
 
928
  }
834
  }
929
 
835
 
930
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
836
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
931
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
837
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
932
    public Processor(I iface) {
838
    public Processor(I iface) {
Line 949... Line 855...
949
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
855
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
950
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
856
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
951
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
857
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
952
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
858
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
953
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
859
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
954
      processMap.put("processCODTxn", new processCODTxn());
-
 
955
      processMap.put("processPaymentFailure", new processPaymentFailure());
-
 
956
      return processMap;
860
      return processMap;
957
    }
861
    }
958
 
862
 
959
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
863
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
960
      public getTickets() {
864
      public getTickets() {
Line 1165... Line 1069...
1165
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1069
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1166
        return result;
1070
        return result;
1167
      }
1071
      }
1168
    }
1072
    }
1169
 
1073
 
1170
    private static class processCODTxn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processCODTxn_args> {
-
 
1171
      public processCODTxn() {
-
 
1172
        super("processCODTxn");
-
 
1173
      }
-
 
1174
 
-
 
1175
      protected processCODTxn_args getEmptyArgsInstance() {
-
 
1176
        return new processCODTxn_args();
-
 
1177
      }
-
 
1178
 
-
 
1179
      protected org.apache.thrift.TBase getResult(I iface, processCODTxn_args args) throws org.apache.thrift.TException {
-
 
1180
        iface.processCODTxn(args.transactionId);
-
 
1181
        return null;
-
 
1182
      }
-
 
1183
    }
-
 
1184
 
-
 
1185
    private static class processPaymentFailure<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processPaymentFailure_args> {
-
 
1186
      public processPaymentFailure() {
-
 
1187
        super("processPaymentFailure");
-
 
1188
      }
-
 
1189
 
-
 
1190
      protected processPaymentFailure_args getEmptyArgsInstance() {
-
 
1191
        return new processPaymentFailure_args();
-
 
1192
      }
-
 
1193
 
-
 
1194
      protected org.apache.thrift.TBase getResult(I iface, processPaymentFailure_args args) throws org.apache.thrift.TException {
-
 
1195
        iface.processPaymentFailure(args.paymentId);
-
 
1196
        return null;
-
 
1197
      }
-
 
1198
    }
-
 
1199
 
-
 
1200
  }
1074
  }
1201
 
1075
 
1202
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1076
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1204
 
1078
 
Line 8842... Line 8716...
8842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8716
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8843
      } catch (org.apache.thrift.TException te) {
8717
      } catch (org.apache.thrift.TException te) {
8844
        throw new java.io.IOException(te);
8718
        throw new java.io.IOException(te);
8845
      }
8719
      }
8846
    }
8720
    }
8847
 
-
 
8848
  }
-
 
8849
 
-
 
8850
  public static class processCODTxn_args implements org.apache.thrift.TBase<processCODTxn_args, processCODTxn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCODTxn_args");
-
 
8852
 
-
 
8853
    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);
-
 
8854
 
-
 
8855
    private long transactionId; // required
-
 
8856
 
-
 
8857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8859
      TRANSACTION_ID((short)1, "transactionId");
-
 
8860
 
-
 
8861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8862
 
-
 
8863
      static {
-
 
8864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8865
          byName.put(field.getFieldName(), field);
-
 
8866
        }
-
 
8867
      }
-
 
8868
 
-
 
8869
      /**
-
 
8870
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8871
       */
-
 
8872
      public static _Fields findByThriftId(int fieldId) {
-
 
8873
        switch(fieldId) {
-
 
8874
          case 1: // TRANSACTION_ID
-
 
8875
            return TRANSACTION_ID;
-
 
8876
          default:
-
 
8877
            return null;
-
 
8878
        }
-
 
8879
      }
-
 
8880
 
-
 
8881
      /**
-
 
8882
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8883
       * if it is not found.
-
 
8884
       */
-
 
8885
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8886
        _Fields fields = findByThriftId(fieldId);
-
 
8887
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8888
        return fields;
-
 
8889
      }
-
 
8890
 
-
 
8891
      /**
-
 
8892
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8893
       */
-
 
8894
      public static _Fields findByName(String name) {
-
 
8895
        return byName.get(name);
-
 
8896
      }
-
 
8897
 
-
 
8898
      private final short _thriftId;
-
 
8899
      private final String _fieldName;
-
 
8900
 
-
 
8901
      _Fields(short thriftId, String fieldName) {
-
 
8902
        _thriftId = thriftId;
-
 
8903
        _fieldName = fieldName;
-
 
8904
      }
-
 
8905
 
-
 
8906
      public short getThriftFieldId() {
-
 
8907
        return _thriftId;
-
 
8908
      }
-
 
8909
 
-
 
8910
      public String getFieldName() {
-
 
8911
        return _fieldName;
-
 
8912
      }
-
 
8913
    }
-
 
8914
 
-
 
8915
    // isset id assignments
-
 
8916
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
8917
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8918
 
-
 
8919
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8920
    static {
-
 
8921
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8922
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCODTxn_args.class, metaDataMap);
-
 
8926
    }
-
 
8927
 
-
 
8928
    public processCODTxn_args() {
-
 
8929
    }
-
 
8930
 
-
 
8931
    public processCODTxn_args(
-
 
8932
      long transactionId)
-
 
8933
    {
-
 
8934
      this();
-
 
8935
      this.transactionId = transactionId;
-
 
8936
      setTransactionIdIsSet(true);
-
 
8937
    }
-
 
8938
 
-
 
8939
    /**
-
 
8940
     * Performs a deep copy on <i>other</i>.
-
 
8941
     */
-
 
8942
    public processCODTxn_args(processCODTxn_args other) {
-
 
8943
      __isset_bit_vector.clear();
-
 
8944
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8945
      this.transactionId = other.transactionId;
-
 
8946
    }
-
 
8947
 
-
 
8948
    public processCODTxn_args deepCopy() {
-
 
8949
      return new processCODTxn_args(this);
-
 
8950
    }
-
 
8951
 
-
 
8952
    @Override
-
 
8953
    public void clear() {
-
 
8954
      setTransactionIdIsSet(false);
-
 
8955
      this.transactionId = 0;
-
 
8956
    }
-
 
8957
 
-
 
8958
    public long getTransactionId() {
-
 
8959
      return this.transactionId;
-
 
8960
    }
-
 
8961
 
-
 
8962
    public void setTransactionId(long transactionId) {
-
 
8963
      this.transactionId = transactionId;
-
 
8964
      setTransactionIdIsSet(true);
-
 
8965
    }
-
 
8966
 
-
 
8967
    public void unsetTransactionId() {
-
 
8968
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
8969
    }
-
 
8970
 
-
 
8971
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
-
 
8972
    public boolean isSetTransactionId() {
-
 
8973
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
8974
    }
-
 
8975
 
-
 
8976
    public void setTransactionIdIsSet(boolean value) {
-
 
8977
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
8978
    }
-
 
8979
 
-
 
8980
    public void setFieldValue(_Fields field, Object value) {
-
 
8981
      switch (field) {
-
 
8982
      case TRANSACTION_ID:
-
 
8983
        if (value == null) {
-
 
8984
          unsetTransactionId();
-
 
8985
        } else {
-
 
8986
          setTransactionId((Long)value);
-
 
8987
        }
-
 
8988
        break;
-
 
8989
 
-
 
8990
      }
-
 
8991
    }
-
 
8992
 
-
 
8993
    public Object getFieldValue(_Fields field) {
-
 
8994
      switch (field) {
-
 
8995
      case TRANSACTION_ID:
-
 
8996
        return Long.valueOf(getTransactionId());
-
 
8997
 
-
 
8998
      }
-
 
8999
      throw new IllegalStateException();
-
 
9000
    }
-
 
9001
 
-
 
9002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9003
    public boolean isSet(_Fields field) {
-
 
9004
      if (field == null) {
-
 
9005
        throw new IllegalArgumentException();
-
 
9006
      }
-
 
9007
 
-
 
9008
      switch (field) {
-
 
9009
      case TRANSACTION_ID:
-
 
9010
        return isSetTransactionId();
-
 
9011
      }
-
 
9012
      throw new IllegalStateException();
-
 
9013
    }
-
 
9014
 
-
 
9015
    @Override
-
 
9016
    public boolean equals(Object that) {
-
 
9017
      if (that == null)
-
 
9018
        return false;
-
 
9019
      if (that instanceof processCODTxn_args)
-
 
9020
        return this.equals((processCODTxn_args)that);
-
 
9021
      return false;
-
 
9022
    }
-
 
9023
 
-
 
9024
    public boolean equals(processCODTxn_args that) {
-
 
9025
      if (that == null)
-
 
9026
        return false;
-
 
9027
 
-
 
9028
      boolean this_present_transactionId = true;
-
 
9029
      boolean that_present_transactionId = true;
-
 
9030
      if (this_present_transactionId || that_present_transactionId) {
-
 
9031
        if (!(this_present_transactionId && that_present_transactionId))
-
 
9032
          return false;
-
 
9033
        if (this.transactionId != that.transactionId)
-
 
9034
          return false;
-
 
9035
      }
-
 
9036
 
-
 
9037
      return true;
-
 
9038
    }
-
 
9039
 
-
 
9040
    @Override
-
 
9041
    public int hashCode() {
-
 
9042
      return 0;
-
 
9043
    }
-
 
9044
 
-
 
9045
    public int compareTo(processCODTxn_args other) {
-
 
9046
      if (!getClass().equals(other.getClass())) {
-
 
9047
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9048
      }
-
 
9049
 
-
 
9050
      int lastComparison = 0;
-
 
9051
      processCODTxn_args typedOther = (processCODTxn_args)other;
-
 
9052
 
-
 
9053
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
-
 
9054
      if (lastComparison != 0) {
-
 
9055
        return lastComparison;
-
 
9056
      }
-
 
9057
      if (isSetTransactionId()) {
-
 
9058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
-
 
9059
        if (lastComparison != 0) {
-
 
9060
          return lastComparison;
-
 
9061
        }
-
 
9062
      }
-
 
9063
      return 0;
-
 
9064
    }
-
 
9065
 
-
 
9066
    public _Fields fieldForId(int fieldId) {
-
 
9067
      return _Fields.findByThriftId(fieldId);
-
 
9068
    }
-
 
9069
 
-
 
9070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9071
      org.apache.thrift.protocol.TField field;
-
 
9072
      iprot.readStructBegin();
-
 
9073
      while (true)
-
 
9074
      {
-
 
9075
        field = iprot.readFieldBegin();
-
 
9076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9077
          break;
-
 
9078
        }
-
 
9079
        switch (field.id) {
-
 
9080
          case 1: // TRANSACTION_ID
-
 
9081
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
9082
              this.transactionId = iprot.readI64();
-
 
9083
              setTransactionIdIsSet(true);
-
 
9084
            } else { 
-
 
9085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9086
            }
-
 
9087
            break;
-
 
9088
          default:
-
 
9089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9090
        }
-
 
9091
        iprot.readFieldEnd();
-
 
9092
      }
-
 
9093
      iprot.readStructEnd();
-
 
9094
      validate();
-
 
9095
    }
-
 
9096
 
-
 
9097
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9098
      validate();
-
 
9099
 
-
 
9100
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9101
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
9102
      oprot.writeI64(this.transactionId);
-
 
9103
      oprot.writeFieldEnd();
-
 
9104
      oprot.writeFieldStop();
-
 
9105
      oprot.writeStructEnd();
-
 
9106
    }
-
 
9107
 
-
 
9108
    @Override
-
 
9109
    public String toString() {
-
 
9110
      StringBuilder sb = new StringBuilder("processCODTxn_args(");
-
 
9111
      boolean first = true;
-
 
9112
 
-
 
9113
      sb.append("transactionId:");
-
 
9114
      sb.append(this.transactionId);
-
 
9115
      first = false;
-
 
9116
      sb.append(")");
-
 
9117
      return sb.toString();
-
 
9118
    }
-
 
9119
 
-
 
9120
    public void validate() throws org.apache.thrift.TException {
-
 
9121
      // check for required fields
-
 
9122
    }
-
 
9123
 
-
 
9124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9125
      try {
-
 
9126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9127
      } catch (org.apache.thrift.TException te) {
-
 
9128
        throw new java.io.IOException(te);
-
 
9129
      }
-
 
9130
    }
-
 
9131
 
-
 
9132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9133
      try {
-
 
9134
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
9135
        __isset_bit_vector = new BitSet(1);
-
 
9136
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9137
      } catch (org.apache.thrift.TException te) {
-
 
9138
        throw new java.io.IOException(te);
-
 
9139
      }
-
 
9140
    }
-
 
9141
 
-
 
9142
  }
-
 
9143
 
-
 
9144
  public static class processPaymentFailure_args implements org.apache.thrift.TBase<processPaymentFailure_args, processPaymentFailure_args._Fields>, java.io.Serializable, Cloneable   {
-
 
9145
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processPaymentFailure_args");
-
 
9146
 
-
 
9147
    private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
9148
 
-
 
9149
    private long paymentId; // required
-
 
9150
 
-
 
9151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9153
      PAYMENT_ID((short)1, "paymentId");
-
 
9154
 
-
 
9155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9156
 
-
 
9157
      static {
-
 
9158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9159
          byName.put(field.getFieldName(), field);
-
 
9160
        }
-
 
9161
      }
-
 
9162
 
-
 
9163
      /**
-
 
9164
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9165
       */
-
 
9166
      public static _Fields findByThriftId(int fieldId) {
-
 
9167
        switch(fieldId) {
-
 
9168
          case 1: // PAYMENT_ID
-
 
9169
            return PAYMENT_ID;
-
 
9170
          default:
-
 
9171
            return null;
-
 
9172
        }
-
 
9173
      }
-
 
9174
 
-
 
9175
      /**
-
 
9176
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9177
       * if it is not found.
-
 
9178
       */
-
 
9179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9180
        _Fields fields = findByThriftId(fieldId);
-
 
9181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9182
        return fields;
-
 
9183
      }
-
 
9184
 
-
 
9185
      /**
-
 
9186
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9187
       */
-
 
9188
      public static _Fields findByName(String name) {
-
 
9189
        return byName.get(name);
-
 
9190
      }
-
 
9191
 
-
 
9192
      private final short _thriftId;
-
 
9193
      private final String _fieldName;
-
 
9194
 
-
 
9195
      _Fields(short thriftId, String fieldName) {
-
 
9196
        _thriftId = thriftId;
-
 
9197
        _fieldName = fieldName;
-
 
9198
      }
-
 
9199
 
-
 
9200
      public short getThriftFieldId() {
-
 
9201
        return _thriftId;
-
 
9202
      }
-
 
9203
 
-
 
9204
      public String getFieldName() {
-
 
9205
        return _fieldName;
-
 
9206
      }
-
 
9207
    }
-
 
9208
 
-
 
9209
    // isset id assignments
-
 
9210
    private static final int __PAYMENTID_ISSET_ID = 0;
-
 
9211
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9212
 
-
 
9213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9214
    static {
-
 
9215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9216
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processPaymentFailure_args.class, metaDataMap);
-
 
9220
    }
-
 
9221
 
-
 
9222
    public processPaymentFailure_args() {
-
 
9223
    }
-
 
9224
 
-
 
9225
    public processPaymentFailure_args(
-
 
9226
      long paymentId)
-
 
9227
    {
-
 
9228
      this();
-
 
9229
      this.paymentId = paymentId;
-
 
9230
      setPaymentIdIsSet(true);
-
 
9231
    }
-
 
9232
 
-
 
9233
    /**
-
 
9234
     * Performs a deep copy on <i>other</i>.
-
 
9235
     */
-
 
9236
    public processPaymentFailure_args(processPaymentFailure_args other) {
-
 
9237
      __isset_bit_vector.clear();
-
 
9238
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9239
      this.paymentId = other.paymentId;
-
 
9240
    }
-
 
9241
 
-
 
9242
    public processPaymentFailure_args deepCopy() {
-
 
9243
      return new processPaymentFailure_args(this);
-
 
9244
    }
-
 
9245
 
-
 
9246
    @Override
-
 
9247
    public void clear() {
-
 
9248
      setPaymentIdIsSet(false);
-
 
9249
      this.paymentId = 0;
-
 
9250
    }
-
 
9251
 
-
 
9252
    public long getPaymentId() {
-
 
9253
      return this.paymentId;
-
 
9254
    }
-
 
9255
 
-
 
9256
    public void setPaymentId(long paymentId) {
-
 
9257
      this.paymentId = paymentId;
-
 
9258
      setPaymentIdIsSet(true);
-
 
9259
    }
-
 
9260
 
-
 
9261
    public void unsetPaymentId() {
-
 
9262
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
-
 
9263
    }
-
 
9264
 
-
 
9265
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
-
 
9266
    public boolean isSetPaymentId() {
-
 
9267
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
-
 
9268
    }
-
 
9269
 
-
 
9270
    public void setPaymentIdIsSet(boolean value) {
-
 
9271
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
-
 
9272
    }
-
 
9273
 
-
 
9274
    public void setFieldValue(_Fields field, Object value) {
-
 
9275
      switch (field) {
-
 
9276
      case PAYMENT_ID:
-
 
9277
        if (value == null) {
-
 
9278
          unsetPaymentId();
-
 
9279
        } else {
-
 
9280
          setPaymentId((Long)value);
-
 
9281
        }
-
 
9282
        break;
-
 
9283
 
-
 
9284
      }
-
 
9285
    }
-
 
9286
 
-
 
9287
    public Object getFieldValue(_Fields field) {
-
 
9288
      switch (field) {
-
 
9289
      case PAYMENT_ID:
-
 
9290
        return Long.valueOf(getPaymentId());
-
 
9291
 
-
 
9292
      }
-
 
9293
      throw new IllegalStateException();
-
 
9294
    }
-
 
9295
 
-
 
9296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9297
    public boolean isSet(_Fields field) {
-
 
9298
      if (field == null) {
-
 
9299
        throw new IllegalArgumentException();
-
 
9300
      }
-
 
9301
 
-
 
9302
      switch (field) {
-
 
9303
      case PAYMENT_ID:
-
 
9304
        return isSetPaymentId();
-
 
9305
      }
-
 
9306
      throw new IllegalStateException();
-
 
9307
    }
-
 
9308
 
-
 
9309
    @Override
-
 
9310
    public boolean equals(Object that) {
-
 
9311
      if (that == null)
-
 
9312
        return false;
-
 
9313
      if (that instanceof processPaymentFailure_args)
-
 
9314
        return this.equals((processPaymentFailure_args)that);
-
 
9315
      return false;
-
 
9316
    }
-
 
9317
 
-
 
9318
    public boolean equals(processPaymentFailure_args that) {
-
 
9319
      if (that == null)
-
 
9320
        return false;
-
 
9321
 
-
 
9322
      boolean this_present_paymentId = true;
-
 
9323
      boolean that_present_paymentId = true;
-
 
9324
      if (this_present_paymentId || that_present_paymentId) {
-
 
9325
        if (!(this_present_paymentId && that_present_paymentId))
-
 
9326
          return false;
-
 
9327
        if (this.paymentId != that.paymentId)
-
 
9328
          return false;
-
 
9329
      }
-
 
9330
 
-
 
9331
      return true;
-
 
9332
    }
-
 
9333
 
-
 
9334
    @Override
-
 
9335
    public int hashCode() {
-
 
9336
      return 0;
-
 
9337
    }
-
 
9338
 
-
 
9339
    public int compareTo(processPaymentFailure_args other) {
-
 
9340
      if (!getClass().equals(other.getClass())) {
-
 
9341
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9342
      }
-
 
9343
 
-
 
9344
      int lastComparison = 0;
-
 
9345
      processPaymentFailure_args typedOther = (processPaymentFailure_args)other;
-
 
9346
 
-
 
9347
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
-
 
9348
      if (lastComparison != 0) {
-
 
9349
        return lastComparison;
-
 
9350
      }
-
 
9351
      if (isSetPaymentId()) {
-
 
9352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
-
 
9353
        if (lastComparison != 0) {
-
 
9354
          return lastComparison;
-
 
9355
        }
-
 
9356
      }
-
 
9357
      return 0;
-
 
9358
    }
-
 
9359
 
-
 
9360
    public _Fields fieldForId(int fieldId) {
-
 
9361
      return _Fields.findByThriftId(fieldId);
-
 
9362
    }
-
 
9363
 
-
 
9364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9365
      org.apache.thrift.protocol.TField field;
-
 
9366
      iprot.readStructBegin();
-
 
9367
      while (true)
-
 
9368
      {
-
 
9369
        field = iprot.readFieldBegin();
-
 
9370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9371
          break;
-
 
9372
        }
-
 
9373
        switch (field.id) {
-
 
9374
          case 1: // PAYMENT_ID
-
 
9375
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
9376
              this.paymentId = iprot.readI64();
-
 
9377
              setPaymentIdIsSet(true);
-
 
9378
            } else { 
-
 
9379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9380
            }
-
 
9381
            break;
-
 
9382
          default:
-
 
9383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9384
        }
-
 
9385
        iprot.readFieldEnd();
-
 
9386
      }
-
 
9387
      iprot.readStructEnd();
-
 
9388
      validate();
-
 
9389
    }
-
 
9390
 
-
 
9391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9392
      validate();
-
 
9393
 
-
 
9394
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9395
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
-
 
9396
      oprot.writeI64(this.paymentId);
-
 
9397
      oprot.writeFieldEnd();
-
 
9398
      oprot.writeFieldStop();
-
 
9399
      oprot.writeStructEnd();
-
 
9400
    }
-
 
9401
 
-
 
9402
    @Override
-
 
9403
    public String toString() {
-
 
9404
      StringBuilder sb = new StringBuilder("processPaymentFailure_args(");
-
 
9405
      boolean first = true;
-
 
9406
 
-
 
9407
      sb.append("paymentId:");
-
 
9408
      sb.append(this.paymentId);
-
 
9409
      first = false;
-
 
9410
      sb.append(")");
-
 
9411
      return sb.toString();
-
 
9412
    }
-
 
9413
 
-
 
9414
    public void validate() throws org.apache.thrift.TException {
-
 
9415
      // check for required fields
-
 
9416
    }
-
 
9417
 
-
 
9418
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9419
      try {
-
 
9420
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9421
      } catch (org.apache.thrift.TException te) {
-
 
9422
        throw new java.io.IOException(te);
-
 
9423
      }
-
 
9424
    }
-
 
9425
 
-
 
9426
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9427
      try {
-
 
9428
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
9429
        __isset_bit_vector = new BitSet(1);
-
 
9430
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9431
      } catch (org.apache.thrift.TException te) {
-
 
9432
        throw new java.io.IOException(te);
-
 
9433
      }
-
 
9434
    }
-
 
9435
 
8721
 
9436
  }
8722
  }
9437
 
8723
 
9438
}
8724
}