Subversion Repositories SmartDukaan

Rev

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

Rev 6503 Rev 7049
Line 93... Line 93...
93
     * @param txnId
93
     * @param txnId
94
     */
94
     */
95
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
95
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
96
 
96
 
97
    /**
97
    /**
-
 
98
     * Get payments for a recharge transaction id. Will raise exception.
-
 
99
     * 
-
 
100
     * 
-
 
101
     * @param txnId
-
 
102
     */
-
 
103
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
-
 
104
 
-
 
105
    /**
98
     * Get successful payment for a transaction. Will raise exception.
106
     * Get successful payment for a transaction. Will raise exception.
99
     * 
107
     * 
100
     * 
108
     * 
101
     * @param txnId
109
     * @param txnId
102
     */
110
     */
Line 240... Line 248...
240
 
248
 
241
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
249
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
242
 
250
 
243
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
251
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
244
 
252
 
-
 
253
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException;
-
 
254
 
245
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
255
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
246
 
256
 
247
    public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException;
257
    public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException;
248
 
258
 
249
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
259
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
Line 506... Line 516...
506
        throw result.pe;
516
        throw result.pe;
507
      }
517
      }
508
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
518
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
509
    }
519
    }
510
 
520
 
-
 
521
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
-
 
522
    {
-
 
523
      send_getPaymentForRechargeTxnId(txnId);
-
 
524
      return recv_getPaymentForRechargeTxnId();
-
 
525
    }
-
 
526
 
-
 
527
    public void send_getPaymentForRechargeTxnId(long txnId) throws org.apache.thrift.TException
-
 
528
    {
-
 
529
      getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
-
 
530
      args.setTxnId(txnId);
-
 
531
      sendBase("getPaymentForRechargeTxnId", args);
-
 
532
    }
-
 
533
 
-
 
534
    public List<Payment> recv_getPaymentForRechargeTxnId() throws PaymentException, org.apache.thrift.TException
-
 
535
    {
-
 
536
      getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
-
 
537
      receiveBase(result, "getPaymentForRechargeTxnId");
-
 
538
      if (result.isSetSuccess()) {
-
 
539
        return result.success;
-
 
540
      }
-
 
541
      if (result.pe != null) {
-
 
542
        throw result.pe;
-
 
543
      }
-
 
544
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForRechargeTxnId failed: unknown result");
-
 
545
    }
-
 
546
 
511
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
547
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
512
    {
548
    {
513
      send_getSuccessfulPaymentForTxnId(txnId);
549
      send_getSuccessfulPaymentForTxnId(txnId);
514
      return recv_getSuccessfulPaymentForTxnId();
550
      return recv_getSuccessfulPaymentForTxnId();
515
    }
551
    }
Line 1137... Line 1173...
1137
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1173
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1138
        return (new Client(prot)).recv_getPaymentForTxnId();
1174
        return (new Client(prot)).recv_getPaymentForTxnId();
1139
      }
1175
      }
1140
    }
1176
    }
1141
 
1177
 
-
 
1178
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException {
-
 
1179
      checkReady();
-
 
1180
      getPaymentForRechargeTxnId_call method_call = new getPaymentForRechargeTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1181
      this.___currentMethod = method_call;
-
 
1182
      ___manager.call(method_call);
-
 
1183
    }
-
 
1184
 
-
 
1185
    public static class getPaymentForRechargeTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1186
      private long txnId;
-
 
1187
      public getPaymentForRechargeTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_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 {
-
 
1188
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1189
        this.txnId = txnId;
-
 
1190
      }
-
 
1191
 
-
 
1192
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1193
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForRechargeTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1194
        getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
-
 
1195
        args.setTxnId(txnId);
-
 
1196
        args.write(prot);
-
 
1197
        prot.writeMessageEnd();
-
 
1198
      }
-
 
1199
 
-
 
1200
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
1201
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1202
          throw new IllegalStateException("Method call not finished!");
-
 
1203
        }
-
 
1204
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1205
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1206
        return (new Client(prot)).recv_getPaymentForRechargeTxnId();
-
 
1207
      }
-
 
1208
    }
-
 
1209
 
1142
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1210
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1143
      checkReady();
1211
      checkReady();
1144
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1212
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1145
      this.___currentMethod = method_call;
1213
      this.___currentMethod = method_call;
1146
      ___manager.call(method_call);
1214
      ___manager.call(method_call);
Line 1605... Line 1673...
1605
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
1673
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
1606
      processMap.put("getPaymentGateway", new getPaymentGateway());
1674
      processMap.put("getPaymentGateway", new getPaymentGateway());
1607
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
1675
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
1608
      processMap.put("getPayment", new getPayment());
1676
      processMap.put("getPayment", new getPayment());
1609
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
1677
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
-
 
1678
      processMap.put("getPaymentForRechargeTxnId", new getPaymentForRechargeTxnId());
1610
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
1679
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
1611
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1680
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1612
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1681
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1613
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
1682
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
1614
      processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
1683
      processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
Line 1781... Line 1850...
1781
        }
1850
        }
1782
        return result;
1851
        return result;
1783
      }
1852
      }
1784
    }
1853
    }
1785
 
1854
 
-
 
1855
    private static class getPaymentForRechargeTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForRechargeTxnId_args> {
-
 
1856
      public getPaymentForRechargeTxnId() {
-
 
1857
        super("getPaymentForRechargeTxnId");
-
 
1858
      }
-
 
1859
 
-
 
1860
      protected getPaymentForRechargeTxnId_args getEmptyArgsInstance() {
-
 
1861
        return new getPaymentForRechargeTxnId_args();
-
 
1862
      }
-
 
1863
 
-
 
1864
      protected getPaymentForRechargeTxnId_result getResult(I iface, getPaymentForRechargeTxnId_args args) throws org.apache.thrift.TException {
-
 
1865
        getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
-
 
1866
        try {
-
 
1867
          result.success = iface.getPaymentForRechargeTxnId(args.txnId);
-
 
1868
        } catch (PaymentException pe) {
-
 
1869
          result.pe = pe;
-
 
1870
        }
-
 
1871
        return result;
-
 
1872
      }
-
 
1873
    }
-
 
1874
 
1786
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
1875
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
1787
      public getSuccessfulPaymentForTxnId() {
1876
      public getSuccessfulPaymentForTxnId() {
1788
        super("getSuccessfulPaymentForTxnId");
1877
        super("getSuccessfulPaymentForTxnId");
1789
      }
1878
      }
1790
 
1879
 
Line 8619... Line 8708...
8619
      }
8708
      }
8620
    }
8709
    }
8621
 
8710
 
8622
  }
8711
  }
8623
 
8712
 
-
 
8713
  public static class getPaymentForRechargeTxnId_args implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_args, getPaymentForRechargeTxnId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_args");
-
 
8715
 
-
 
8716
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
8717
 
-
 
8718
    private long txnId; // required
-
 
8719
 
-
 
8720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8722
      TXN_ID((short)1, "txnId");
-
 
8723
 
-
 
8724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8725
 
-
 
8726
      static {
-
 
8727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8728
          byName.put(field.getFieldName(), field);
-
 
8729
        }
-
 
8730
      }
-
 
8731
 
-
 
8732
      /**
-
 
8733
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8734
       */
-
 
8735
      public static _Fields findByThriftId(int fieldId) {
-
 
8736
        switch(fieldId) {
-
 
8737
          case 1: // TXN_ID
-
 
8738
            return TXN_ID;
-
 
8739
          default:
-
 
8740
            return null;
-
 
8741
        }
-
 
8742
      }
-
 
8743
 
-
 
8744
      /**
-
 
8745
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8746
       * if it is not found.
-
 
8747
       */
-
 
8748
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8749
        _Fields fields = findByThriftId(fieldId);
-
 
8750
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8751
        return fields;
-
 
8752
      }
-
 
8753
 
-
 
8754
      /**
-
 
8755
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8756
       */
-
 
8757
      public static _Fields findByName(String name) {
-
 
8758
        return byName.get(name);
-
 
8759
      }
-
 
8760
 
-
 
8761
      private final short _thriftId;
-
 
8762
      private final String _fieldName;
-
 
8763
 
-
 
8764
      _Fields(short thriftId, String fieldName) {
-
 
8765
        _thriftId = thriftId;
-
 
8766
        _fieldName = fieldName;
-
 
8767
      }
-
 
8768
 
-
 
8769
      public short getThriftFieldId() {
-
 
8770
        return _thriftId;
-
 
8771
      }
-
 
8772
 
-
 
8773
      public String getFieldName() {
-
 
8774
        return _fieldName;
-
 
8775
      }
-
 
8776
    }
-
 
8777
 
-
 
8778
    // isset id assignments
-
 
8779
    private static final int __TXNID_ISSET_ID = 0;
-
 
8780
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8781
 
-
 
8782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8783
    static {
-
 
8784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8785
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_args.class, metaDataMap);
-
 
8789
    }
-
 
8790
 
-
 
8791
    public getPaymentForRechargeTxnId_args() {
-
 
8792
    }
-
 
8793
 
-
 
8794
    public getPaymentForRechargeTxnId_args(
-
 
8795
      long txnId)
-
 
8796
    {
-
 
8797
      this();
-
 
8798
      this.txnId = txnId;
-
 
8799
      setTxnIdIsSet(true);
-
 
8800
    }
-
 
8801
 
-
 
8802
    /**
-
 
8803
     * Performs a deep copy on <i>other</i>.
-
 
8804
     */
-
 
8805
    public getPaymentForRechargeTxnId_args(getPaymentForRechargeTxnId_args other) {
-
 
8806
      __isset_bit_vector.clear();
-
 
8807
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8808
      this.txnId = other.txnId;
-
 
8809
    }
-
 
8810
 
-
 
8811
    public getPaymentForRechargeTxnId_args deepCopy() {
-
 
8812
      return new getPaymentForRechargeTxnId_args(this);
-
 
8813
    }
-
 
8814
 
-
 
8815
    @Override
-
 
8816
    public void clear() {
-
 
8817
      setTxnIdIsSet(false);
-
 
8818
      this.txnId = 0;
-
 
8819
    }
-
 
8820
 
-
 
8821
    public long getTxnId() {
-
 
8822
      return this.txnId;
-
 
8823
    }
-
 
8824
 
-
 
8825
    public void setTxnId(long txnId) {
-
 
8826
      this.txnId = txnId;
-
 
8827
      setTxnIdIsSet(true);
-
 
8828
    }
-
 
8829
 
-
 
8830
    public void unsetTxnId() {
-
 
8831
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
-
 
8832
    }
-
 
8833
 
-
 
8834
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
-
 
8835
    public boolean isSetTxnId() {
-
 
8836
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
-
 
8837
    }
-
 
8838
 
-
 
8839
    public void setTxnIdIsSet(boolean value) {
-
 
8840
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
-
 
8841
    }
-
 
8842
 
-
 
8843
    public void setFieldValue(_Fields field, Object value) {
-
 
8844
      switch (field) {
-
 
8845
      case TXN_ID:
-
 
8846
        if (value == null) {
-
 
8847
          unsetTxnId();
-
 
8848
        } else {
-
 
8849
          setTxnId((Long)value);
-
 
8850
        }
-
 
8851
        break;
-
 
8852
 
-
 
8853
      }
-
 
8854
    }
-
 
8855
 
-
 
8856
    public Object getFieldValue(_Fields field) {
-
 
8857
      switch (field) {
-
 
8858
      case TXN_ID:
-
 
8859
        return Long.valueOf(getTxnId());
-
 
8860
 
-
 
8861
      }
-
 
8862
      throw new IllegalStateException();
-
 
8863
    }
-
 
8864
 
-
 
8865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8866
    public boolean isSet(_Fields field) {
-
 
8867
      if (field == null) {
-
 
8868
        throw new IllegalArgumentException();
-
 
8869
      }
-
 
8870
 
-
 
8871
      switch (field) {
-
 
8872
      case TXN_ID:
-
 
8873
        return isSetTxnId();
-
 
8874
      }
-
 
8875
      throw new IllegalStateException();
-
 
8876
    }
-
 
8877
 
-
 
8878
    @Override
-
 
8879
    public boolean equals(Object that) {
-
 
8880
      if (that == null)
-
 
8881
        return false;
-
 
8882
      if (that instanceof getPaymentForRechargeTxnId_args)
-
 
8883
        return this.equals((getPaymentForRechargeTxnId_args)that);
-
 
8884
      return false;
-
 
8885
    }
-
 
8886
 
-
 
8887
    public boolean equals(getPaymentForRechargeTxnId_args that) {
-
 
8888
      if (that == null)
-
 
8889
        return false;
-
 
8890
 
-
 
8891
      boolean this_present_txnId = true;
-
 
8892
      boolean that_present_txnId = true;
-
 
8893
      if (this_present_txnId || that_present_txnId) {
-
 
8894
        if (!(this_present_txnId && that_present_txnId))
-
 
8895
          return false;
-
 
8896
        if (this.txnId != that.txnId)
-
 
8897
          return false;
-
 
8898
      }
-
 
8899
 
-
 
8900
      return true;
-
 
8901
    }
-
 
8902
 
-
 
8903
    @Override
-
 
8904
    public int hashCode() {
-
 
8905
      return 0;
-
 
8906
    }
-
 
8907
 
-
 
8908
    public int compareTo(getPaymentForRechargeTxnId_args other) {
-
 
8909
      if (!getClass().equals(other.getClass())) {
-
 
8910
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8911
      }
-
 
8912
 
-
 
8913
      int lastComparison = 0;
-
 
8914
      getPaymentForRechargeTxnId_args typedOther = (getPaymentForRechargeTxnId_args)other;
-
 
8915
 
-
 
8916
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
-
 
8917
      if (lastComparison != 0) {
-
 
8918
        return lastComparison;
-
 
8919
      }
-
 
8920
      if (isSetTxnId()) {
-
 
8921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
-
 
8922
        if (lastComparison != 0) {
-
 
8923
          return lastComparison;
-
 
8924
        }
-
 
8925
      }
-
 
8926
      return 0;
-
 
8927
    }
-
 
8928
 
-
 
8929
    public _Fields fieldForId(int fieldId) {
-
 
8930
      return _Fields.findByThriftId(fieldId);
-
 
8931
    }
-
 
8932
 
-
 
8933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8934
      org.apache.thrift.protocol.TField field;
-
 
8935
      iprot.readStructBegin();
-
 
8936
      while (true)
-
 
8937
      {
-
 
8938
        field = iprot.readFieldBegin();
-
 
8939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8940
          break;
-
 
8941
        }
-
 
8942
        switch (field.id) {
-
 
8943
          case 1: // TXN_ID
-
 
8944
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8945
              this.txnId = iprot.readI64();
-
 
8946
              setTxnIdIsSet(true);
-
 
8947
            } else { 
-
 
8948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8949
            }
-
 
8950
            break;
-
 
8951
          default:
-
 
8952
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8953
        }
-
 
8954
        iprot.readFieldEnd();
-
 
8955
      }
-
 
8956
      iprot.readStructEnd();
-
 
8957
      validate();
-
 
8958
    }
-
 
8959
 
-
 
8960
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8961
      validate();
-
 
8962
 
-
 
8963
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8964
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
-
 
8965
      oprot.writeI64(this.txnId);
-
 
8966
      oprot.writeFieldEnd();
-
 
8967
      oprot.writeFieldStop();
-
 
8968
      oprot.writeStructEnd();
-
 
8969
    }
-
 
8970
 
-
 
8971
    @Override
-
 
8972
    public String toString() {
-
 
8973
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_args(");
-
 
8974
      boolean first = true;
-
 
8975
 
-
 
8976
      sb.append("txnId:");
-
 
8977
      sb.append(this.txnId);
-
 
8978
      first = false;
-
 
8979
      sb.append(")");
-
 
8980
      return sb.toString();
-
 
8981
    }
-
 
8982
 
-
 
8983
    public void validate() throws org.apache.thrift.TException {
-
 
8984
      // check for required fields
-
 
8985
    }
-
 
8986
 
-
 
8987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8988
      try {
-
 
8989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8990
      } catch (org.apache.thrift.TException te) {
-
 
8991
        throw new java.io.IOException(te);
-
 
8992
      }
-
 
8993
    }
-
 
8994
 
-
 
8995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8996
      try {
-
 
8997
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8998
        __isset_bit_vector = new BitSet(1);
-
 
8999
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9000
      } catch (org.apache.thrift.TException te) {
-
 
9001
        throw new java.io.IOException(te);
-
 
9002
      }
-
 
9003
    }
-
 
9004
 
-
 
9005
  }
-
 
9006
 
-
 
9007
  public static class getPaymentForRechargeTxnId_result implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_result, getPaymentForRechargeTxnId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9008
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_result");
-
 
9009
 
-
 
9010
    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);
-
 
9011
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
9012
 
-
 
9013
    private List<Payment> success; // required
-
 
9014
    private PaymentException pe; // required
-
 
9015
 
-
 
9016
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9017
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9018
      SUCCESS((short)0, "success"),
-
 
9019
      PE((short)1, "pe");
-
 
9020
 
-
 
9021
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9022
 
-
 
9023
      static {
-
 
9024
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9025
          byName.put(field.getFieldName(), field);
-
 
9026
        }
-
 
9027
      }
-
 
9028
 
-
 
9029
      /**
-
 
9030
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9031
       */
-
 
9032
      public static _Fields findByThriftId(int fieldId) {
-
 
9033
        switch(fieldId) {
-
 
9034
          case 0: // SUCCESS
-
 
9035
            return SUCCESS;
-
 
9036
          case 1: // PE
-
 
9037
            return PE;
-
 
9038
          default:
-
 
9039
            return null;
-
 
9040
        }
-
 
9041
      }
-
 
9042
 
-
 
9043
      /**
-
 
9044
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9045
       * if it is not found.
-
 
9046
       */
-
 
9047
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9048
        _Fields fields = findByThriftId(fieldId);
-
 
9049
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9050
        return fields;
-
 
9051
      }
-
 
9052
 
-
 
9053
      /**
-
 
9054
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9055
       */
-
 
9056
      public static _Fields findByName(String name) {
-
 
9057
        return byName.get(name);
-
 
9058
      }
-
 
9059
 
-
 
9060
      private final short _thriftId;
-
 
9061
      private final String _fieldName;
-
 
9062
 
-
 
9063
      _Fields(short thriftId, String fieldName) {
-
 
9064
        _thriftId = thriftId;
-
 
9065
        _fieldName = fieldName;
-
 
9066
      }
-
 
9067
 
-
 
9068
      public short getThriftFieldId() {
-
 
9069
        return _thriftId;
-
 
9070
      }
-
 
9071
 
-
 
9072
      public String getFieldName() {
-
 
9073
        return _fieldName;
-
 
9074
      }
-
 
9075
    }
-
 
9076
 
-
 
9077
    // isset id assignments
-
 
9078
 
-
 
9079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9080
    static {
-
 
9081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9082
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9083
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
9084
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
-
 
9085
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
9087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_result.class, metaDataMap);
-
 
9089
    }
-
 
9090
 
-
 
9091
    public getPaymentForRechargeTxnId_result() {
-
 
9092
    }
-
 
9093
 
-
 
9094
    public getPaymentForRechargeTxnId_result(
-
 
9095
      List<Payment> success,
-
 
9096
      PaymentException pe)
-
 
9097
    {
-
 
9098
      this();
-
 
9099
      this.success = success;
-
 
9100
      this.pe = pe;
-
 
9101
    }
-
 
9102
 
-
 
9103
    /**
-
 
9104
     * Performs a deep copy on <i>other</i>.
-
 
9105
     */
-
 
9106
    public getPaymentForRechargeTxnId_result(getPaymentForRechargeTxnId_result other) {
-
 
9107
      if (other.isSetSuccess()) {
-
 
9108
        List<Payment> __this__success = new ArrayList<Payment>();
-
 
9109
        for (Payment other_element : other.success) {
-
 
9110
          __this__success.add(new Payment(other_element));
-
 
9111
        }
-
 
9112
        this.success = __this__success;
-
 
9113
      }
-
 
9114
      if (other.isSetPe()) {
-
 
9115
        this.pe = new PaymentException(other.pe);
-
 
9116
      }
-
 
9117
    }
-
 
9118
 
-
 
9119
    public getPaymentForRechargeTxnId_result deepCopy() {
-
 
9120
      return new getPaymentForRechargeTxnId_result(this);
-
 
9121
    }
-
 
9122
 
-
 
9123
    @Override
-
 
9124
    public void clear() {
-
 
9125
      this.success = null;
-
 
9126
      this.pe = null;
-
 
9127
    }
-
 
9128
 
-
 
9129
    public int getSuccessSize() {
-
 
9130
      return (this.success == null) ? 0 : this.success.size();
-
 
9131
    }
-
 
9132
 
-
 
9133
    public java.util.Iterator<Payment> getSuccessIterator() {
-
 
9134
      return (this.success == null) ? null : this.success.iterator();
-
 
9135
    }
-
 
9136
 
-
 
9137
    public void addToSuccess(Payment elem) {
-
 
9138
      if (this.success == null) {
-
 
9139
        this.success = new ArrayList<Payment>();
-
 
9140
      }
-
 
9141
      this.success.add(elem);
-
 
9142
    }
-
 
9143
 
-
 
9144
    public List<Payment> getSuccess() {
-
 
9145
      return this.success;
-
 
9146
    }
-
 
9147
 
-
 
9148
    public void setSuccess(List<Payment> success) {
-
 
9149
      this.success = success;
-
 
9150
    }
-
 
9151
 
-
 
9152
    public void unsetSuccess() {
-
 
9153
      this.success = null;
-
 
9154
    }
-
 
9155
 
-
 
9156
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9157
    public boolean isSetSuccess() {
-
 
9158
      return this.success != null;
-
 
9159
    }
-
 
9160
 
-
 
9161
    public void setSuccessIsSet(boolean value) {
-
 
9162
      if (!value) {
-
 
9163
        this.success = null;
-
 
9164
      }
-
 
9165
    }
-
 
9166
 
-
 
9167
    public PaymentException getPe() {
-
 
9168
      return this.pe;
-
 
9169
    }
-
 
9170
 
-
 
9171
    public void setPe(PaymentException pe) {
-
 
9172
      this.pe = pe;
-
 
9173
    }
-
 
9174
 
-
 
9175
    public void unsetPe() {
-
 
9176
      this.pe = null;
-
 
9177
    }
-
 
9178
 
-
 
9179
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
9180
    public boolean isSetPe() {
-
 
9181
      return this.pe != null;
-
 
9182
    }
-
 
9183
 
-
 
9184
    public void setPeIsSet(boolean value) {
-
 
9185
      if (!value) {
-
 
9186
        this.pe = null;
-
 
9187
      }
-
 
9188
    }
-
 
9189
 
-
 
9190
    public void setFieldValue(_Fields field, Object value) {
-
 
9191
      switch (field) {
-
 
9192
      case SUCCESS:
-
 
9193
        if (value == null) {
-
 
9194
          unsetSuccess();
-
 
9195
        } else {
-
 
9196
          setSuccess((List<Payment>)value);
-
 
9197
        }
-
 
9198
        break;
-
 
9199
 
-
 
9200
      case PE:
-
 
9201
        if (value == null) {
-
 
9202
          unsetPe();
-
 
9203
        } else {
-
 
9204
          setPe((PaymentException)value);
-
 
9205
        }
-
 
9206
        break;
-
 
9207
 
-
 
9208
      }
-
 
9209
    }
-
 
9210
 
-
 
9211
    public Object getFieldValue(_Fields field) {
-
 
9212
      switch (field) {
-
 
9213
      case SUCCESS:
-
 
9214
        return getSuccess();
-
 
9215
 
-
 
9216
      case PE:
-
 
9217
        return getPe();
-
 
9218
 
-
 
9219
      }
-
 
9220
      throw new IllegalStateException();
-
 
9221
    }
-
 
9222
 
-
 
9223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9224
    public boolean isSet(_Fields field) {
-
 
9225
      if (field == null) {
-
 
9226
        throw new IllegalArgumentException();
-
 
9227
      }
-
 
9228
 
-
 
9229
      switch (field) {
-
 
9230
      case SUCCESS:
-
 
9231
        return isSetSuccess();
-
 
9232
      case PE:
-
 
9233
        return isSetPe();
-
 
9234
      }
-
 
9235
      throw new IllegalStateException();
-
 
9236
    }
-
 
9237
 
-
 
9238
    @Override
-
 
9239
    public boolean equals(Object that) {
-
 
9240
      if (that == null)
-
 
9241
        return false;
-
 
9242
      if (that instanceof getPaymentForRechargeTxnId_result)
-
 
9243
        return this.equals((getPaymentForRechargeTxnId_result)that);
-
 
9244
      return false;
-
 
9245
    }
-
 
9246
 
-
 
9247
    public boolean equals(getPaymentForRechargeTxnId_result that) {
-
 
9248
      if (that == null)
-
 
9249
        return false;
-
 
9250
 
-
 
9251
      boolean this_present_success = true && this.isSetSuccess();
-
 
9252
      boolean that_present_success = true && that.isSetSuccess();
-
 
9253
      if (this_present_success || that_present_success) {
-
 
9254
        if (!(this_present_success && that_present_success))
-
 
9255
          return false;
-
 
9256
        if (!this.success.equals(that.success))
-
 
9257
          return false;
-
 
9258
      }
-
 
9259
 
-
 
9260
      boolean this_present_pe = true && this.isSetPe();
-
 
9261
      boolean that_present_pe = true && that.isSetPe();
-
 
9262
      if (this_present_pe || that_present_pe) {
-
 
9263
        if (!(this_present_pe && that_present_pe))
-
 
9264
          return false;
-
 
9265
        if (!this.pe.equals(that.pe))
-
 
9266
          return false;
-
 
9267
      }
-
 
9268
 
-
 
9269
      return true;
-
 
9270
    }
-
 
9271
 
-
 
9272
    @Override
-
 
9273
    public int hashCode() {
-
 
9274
      return 0;
-
 
9275
    }
-
 
9276
 
-
 
9277
    public int compareTo(getPaymentForRechargeTxnId_result other) {
-
 
9278
      if (!getClass().equals(other.getClass())) {
-
 
9279
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9280
      }
-
 
9281
 
-
 
9282
      int lastComparison = 0;
-
 
9283
      getPaymentForRechargeTxnId_result typedOther = (getPaymentForRechargeTxnId_result)other;
-
 
9284
 
-
 
9285
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9286
      if (lastComparison != 0) {
-
 
9287
        return lastComparison;
-
 
9288
      }
-
 
9289
      if (isSetSuccess()) {
-
 
9290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9291
        if (lastComparison != 0) {
-
 
9292
          return lastComparison;
-
 
9293
        }
-
 
9294
      }
-
 
9295
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
9296
      if (lastComparison != 0) {
-
 
9297
        return lastComparison;
-
 
9298
      }
-
 
9299
      if (isSetPe()) {
-
 
9300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
9301
        if (lastComparison != 0) {
-
 
9302
          return lastComparison;
-
 
9303
        }
-
 
9304
      }
-
 
9305
      return 0;
-
 
9306
    }
-
 
9307
 
-
 
9308
    public _Fields fieldForId(int fieldId) {
-
 
9309
      return _Fields.findByThriftId(fieldId);
-
 
9310
    }
-
 
9311
 
-
 
9312
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9313
      org.apache.thrift.protocol.TField field;
-
 
9314
      iprot.readStructBegin();
-
 
9315
      while (true)
-
 
9316
      {
-
 
9317
        field = iprot.readFieldBegin();
-
 
9318
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9319
          break;
-
 
9320
        }
-
 
9321
        switch (field.id) {
-
 
9322
          case 0: // SUCCESS
-
 
9323
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
9324
              {
-
 
9325
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
-
 
9326
                this.success = new ArrayList<Payment>(_list32.size);
-
 
9327
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
-
 
9328
                {
-
 
9329
                  Payment _elem34; // required
-
 
9330
                  _elem34 = new Payment();
-
 
9331
                  _elem34.read(iprot);
-
 
9332
                  this.success.add(_elem34);
-
 
9333
                }
-
 
9334
                iprot.readListEnd();
-
 
9335
              }
-
 
9336
            } else { 
-
 
9337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9338
            }
-
 
9339
            break;
-
 
9340
          case 1: // PE
-
 
9341
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
9342
              this.pe = new PaymentException();
-
 
9343
              this.pe.read(iprot);
-
 
9344
            } else { 
-
 
9345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9346
            }
-
 
9347
            break;
-
 
9348
          default:
-
 
9349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9350
        }
-
 
9351
        iprot.readFieldEnd();
-
 
9352
      }
-
 
9353
      iprot.readStructEnd();
-
 
9354
      validate();
-
 
9355
    }
-
 
9356
 
-
 
9357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9358
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9359
 
-
 
9360
      if (this.isSetSuccess()) {
-
 
9361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9362
        {
-
 
9363
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
9364
          for (Payment _iter35 : this.success)
-
 
9365
          {
-
 
9366
            _iter35.write(oprot);
-
 
9367
          }
-
 
9368
          oprot.writeListEnd();
-
 
9369
        }
-
 
9370
        oprot.writeFieldEnd();
-
 
9371
      } else if (this.isSetPe()) {
-
 
9372
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
9373
        this.pe.write(oprot);
-
 
9374
        oprot.writeFieldEnd();
-
 
9375
      }
-
 
9376
      oprot.writeFieldStop();
-
 
9377
      oprot.writeStructEnd();
-
 
9378
    }
-
 
9379
 
-
 
9380
    @Override
-
 
9381
    public String toString() {
-
 
9382
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_result(");
-
 
9383
      boolean first = true;
-
 
9384
 
-
 
9385
      sb.append("success:");
-
 
9386
      if (this.success == null) {
-
 
9387
        sb.append("null");
-
 
9388
      } else {
-
 
9389
        sb.append(this.success);
-
 
9390
      }
-
 
9391
      first = false;
-
 
9392
      if (!first) sb.append(", ");
-
 
9393
      sb.append("pe:");
-
 
9394
      if (this.pe == null) {
-
 
9395
        sb.append("null");
-
 
9396
      } else {
-
 
9397
        sb.append(this.pe);
-
 
9398
      }
-
 
9399
      first = false;
-
 
9400
      sb.append(")");
-
 
9401
      return sb.toString();
-
 
9402
    }
-
 
9403
 
-
 
9404
    public void validate() throws org.apache.thrift.TException {
-
 
9405
      // check for required fields
-
 
9406
    }
-
 
9407
 
-
 
9408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9409
      try {
-
 
9410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9411
      } catch (org.apache.thrift.TException te) {
-
 
9412
        throw new java.io.IOException(te);
-
 
9413
      }
-
 
9414
    }
-
 
9415
 
-
 
9416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9417
      try {
-
 
9418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9419
      } catch (org.apache.thrift.TException te) {
-
 
9420
        throw new java.io.IOException(te);
-
 
9421
      }
-
 
9422
    }
-
 
9423
 
-
 
9424
  }
-
 
9425
 
8624
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
9426
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8625
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
9427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
8626
 
9428
 
8627
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
9429
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
8628
 
9430
 
Line 10386... Line 11188...
10386
            }
11188
            }
10387
            break;
11189
            break;
10388
          case 12: // ATTRIBUTES
11190
          case 12: // ATTRIBUTES
10389
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11191
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10390
              {
11192
              {
10391
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
11193
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
10392
                this.attributes = new ArrayList<Attribute>(_list32.size);
11194
                this.attributes = new ArrayList<Attribute>(_list36.size);
10393
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
11195
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
10394
                {
11196
                {
10395
                  Attribute _elem34; // required
11197
                  Attribute _elem38; // required
10396
                  _elem34 = new Attribute();
11198
                  _elem38 = new Attribute();
10397
                  _elem34.read(iprot);
11199
                  _elem38.read(iprot);
10398
                  this.attributes.add(_elem34);
11200
                  this.attributes.add(_elem38);
10399
                }
11201
                }
10400
                iprot.readListEnd();
11202
                iprot.readListEnd();
10401
              }
11203
              }
10402
            } else { 
11204
            } else { 
10403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 10471... Line 11273...
10471
      }
11273
      }
10472
      if (this.attributes != null) {
11274
      if (this.attributes != null) {
10473
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
11275
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
10474
        {
11276
        {
10475
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
11277
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
10476
          for (Attribute _iter35 : this.attributes)
11278
          for (Attribute _iter39 : this.attributes)
10477
          {
11279
          {
10478
            _iter35.write(oprot);
11280
            _iter39.write(oprot);
10479
          }
11281
          }
10480
          oprot.writeListEnd();
11282
          oprot.writeListEnd();
10481
        }
11283
        }
10482
        oprot.writeFieldEnd();
11284
        oprot.writeFieldEnd();
10483
      }
11285
      }
Line 11438... Line 12240...
11438
        }
12240
        }
11439
        switch (field.id) {
12241
        switch (field.id) {
11440
          case 0: // SUCCESS
12242
          case 0: // SUCCESS
11441
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12243
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11442
              {
12244
              {
11443
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
12245
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
11444
                this.success = new ArrayList<Double>(_list36.size);
12246
                this.success = new ArrayList<Double>(_list40.size);
11445
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
12247
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
11446
                {
12248
                {
11447
                  double _elem38; // required
12249
                  double _elem42; // required
11448
                  _elem38 = iprot.readDouble();
12250
                  _elem42 = iprot.readDouble();
11449
                  this.success.add(_elem38);
12251
                  this.success.add(_elem42);
11450
                }
12252
                }
11451
                iprot.readListEnd();
12253
                iprot.readListEnd();
11452
              }
12254
              }
11453
            } else { 
12255
            } else { 
11454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 11468... Line 12270...
11468
 
12270
 
11469
      if (this.isSetSuccess()) {
12271
      if (this.isSetSuccess()) {
11470
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12272
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11471
        {
12273
        {
11472
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
12274
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
11473
          for (double _iter39 : this.success)
12275
          for (double _iter43 : this.success)
11474
          {
12276
          {
11475
            oprot.writeDouble(_iter39);
12277
            oprot.writeDouble(_iter43);
11476
          }
12278
          }
11477
          oprot.writeListEnd();
12279
          oprot.writeListEnd();
11478
        }
12280
        }
11479
        oprot.writeFieldEnd();
12281
        oprot.writeFieldEnd();
11480
      }
12282
      }
Line 17630... Line 18432...
17630
        }
18432
        }
17631
        switch (field.id) {
18433
        switch (field.id) {
17632
          case 0: // SUCCESS
18434
          case 0: // SUCCESS
17633
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18435
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17634
              {
18436
              {
17635
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
18437
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
17636
                this.success = new ArrayList<Long>(_list40.size);
18438
                this.success = new ArrayList<Long>(_list44.size);
17637
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
18439
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
17638
                {
18440
                {
17639
                  long _elem42; // required
18441
                  long _elem46; // required
17640
                  _elem42 = iprot.readI64();
18442
                  _elem46 = iprot.readI64();
17641
                  this.success.add(_elem42);
18443
                  this.success.add(_elem46);
17642
                }
18444
                }
17643
                iprot.readListEnd();
18445
                iprot.readListEnd();
17644
              }
18446
              }
17645
            } else { 
18447
            } else { 
17646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 17660... Line 18462...
17660
 
18462
 
17661
      if (this.isSetSuccess()) {
18463
      if (this.isSetSuccess()) {
17662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18464
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17663
        {
18465
        {
17664
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
18466
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
17665
          for (long _iter43 : this.success)
18467
          for (long _iter47 : this.success)
17666
          {
18468
          {
17667
            oprot.writeI64(_iter43);
18469
            oprot.writeI64(_iter47);
17668
          }
18470
          }
17669
          oprot.writeListEnd();
18471
          oprot.writeListEnd();
17670
        }
18472
        }
17671
        oprot.writeFieldEnd();
18473
        oprot.writeFieldEnd();
17672
      }
18474
      }