Subversion Repositories SmartDukaan

Rev

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

Rev 3374 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.payments;
6
package in.shop2020.payments;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class PaymentService {
23
public class PaymentService {
27
 
24
 
28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
29
 
26
 
30
    /**
27
    /**
Line 34... Line 31...
34
     * @param userId
31
     * @param userId
35
     * @param amount
32
     * @param amount
36
     * @param gatewayId
33
     * @param gatewayId
37
     * @param txnId
34
     * @param txnId
38
     */
35
     */
39
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, TException;
36
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
40
 
37
 
41
    /**
38
    /**
42
     * get payment for user. If status and gateway are null, it is ignored. Same for times as well.
39
     * get payment for user. If status and gateway are null, it is ignored. Same for times as well.
43
     * 
40
     * 
44
     * 
41
     * 
Line 46... Line 43...
46
     * @param fromTime
43
     * @param fromTime
47
     * @param toTime
44
     * @param toTime
48
     * @param status
45
     * @param status
49
     * @param gatewayId
46
     * @param gatewayId
50
     */
47
     */
51
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException;
48
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
52
 
49
 
53
    /**
50
    /**
54
     * get all payments for user. If gatewayId is 0, then it is ignored while filtering.
51
     * get all payments for user. If gatewayId is 0, then it is ignored while filtering.
55
     * 
52
     * 
56
     * 
53
     * 
57
     * @param fromTime
54
     * @param fromTime
58
     * @param toTime
55
     * @param toTime
59
     * @param status
56
     * @param status
60
     * @param gatewayId
57
     * @param gatewayId
61
     */
58
     */
62
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException;
59
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
63
 
60
 
64
    /**
61
    /**
65
     * Get a particular gateway
62
     * Get a particular gateway
66
     * 
63
     * 
67
     * 
64
     * 
68
     * @param id
65
     * @param id
69
     */
66
     */
70
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, TException;
67
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
71
 
68
 
72
    /**
69
    /**
73
     * Get a particular payment info
70
     * Get a particular payment info
74
     * 
71
     * 
75
     * 
72
     * 
76
     * @param id
73
     * @param id
77
     */
74
     */
78
    public Payment getPayment(long id) throws PaymentException, TException;
75
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
79
 
76
 
80
    /**
77
    /**
81
     * Get a particular payment for a transaction. Will raise exception.
78
     * Get a particular payment for a transaction. Will raise exception.
82
     * 
79
     * 
83
     * 
80
     * 
84
     * @param txnId
81
     * @param txnId
85
     */
82
     */
86
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, TException;
83
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
87
 
84
 
88
    /**
85
    /**
89
     * mark payment successful and store parameters
86
     * mark payment successful and store parameters
90
     * 
87
     * 
91
     * 
88
     * 
Line 100... Line 97...
100
     * @param errorCode
97
     * @param errorCode
101
     * @param status
98
     * @param status
102
     * @param gatewayTxnDate
99
     * @param gatewayTxnDate
103
     * @param attributes
100
     * @param attributes
104
     */
101
     */
105
    public boolean 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) throws PaymentException, TException;
102
    public boolean 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) throws PaymentException, org.apache.thrift.TException;
106
 
103
 
107
    /**
104
    /**
108
     * Returns the minimum and maximum amounts among successful payments.
105
     * Returns the minimum and maximum amounts among successful payments.
109
     * List contains two double values, first minimum and second maximum amount.
106
     * List contains two double values, first minimum and second maximum amount.
110
     */
107
     */
111
    public List<Double> getSuccessfulPaymentsAmountRange() throws TException;
108
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
112
 
109
 
113
    /**
110
    /**
114
     * Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
111
     * Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
115
     * 
112
     * 
116
     * @param merchantPaymentId
113
     * @param merchantPaymentId
117
     */
114
     */
118
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, TException;
115
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
119
 
116
 
120
    /**
117
    /**
121
     * Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
118
     * Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
122
     * 
119
     * 
123
     * @param merchantPaymentId
120
     * @param merchantPaymentId
124
     */
121
     */
125
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, TException;
122
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
126
 
123
 
127
    /**
124
    /**
128
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
125
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
129
     * In case of any processing error, an exception is raised.
126
     * In case of any processing error, an exception is raised.
130
     * 
127
     * 
131
     * @param merchantPaymentId
128
     * @param merchantPaymentId
132
     */
129
     */
133
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, TException;
130
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
134
 
131
 
135
    /**
132
    /**
136
     * Create a refund of the given amount corresponding to the given order to be processed through the same
133
     * Create a refund of the given amount corresponding to the given order to be processed through the same
137
     * payment gateway which processed the payment for the corresponding transaction.
134
     * payment gateway which processed the payment for the corresponding transaction.
138
     * Returns the id of the newly created Refund.
135
     * Returns the id of the newly created Refund.
139
     * 
136
     * 
140
     * @param orderId
137
     * @param orderId
141
     * @param merchantTxnId
138
     * @param merchantTxnId
142
     * @param amount
139
     * @param amount
143
     */
140
     */
144
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, TException;
141
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
145
 
142
 
146
    /**
143
    /**
147
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
144
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
148
     * transaction. If the capture attempt failed, the payment is marked as failed.
145
     * transaction. If the capture attempt failed, the payment is marked as failed.
149
     * 
146
     * 
150
     * @param merchantTxnId
147
     * @param merchantTxnId
151
     */
148
     */
-
 
149
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
-
 
150
 
-
 
151
  }
-
 
152
 
-
 
153
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
-
 
154
 
-
 
155
    public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
156
 
-
 
157
    public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
158
 
-
 
159
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayments_call> resultHandler) throws org.apache.thrift.TException;
-
 
160
 
-
 
161
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
-
 
162
 
-
 
163
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
164
 
-
 
165
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
-
 
166
 
152
    public boolean capturePayment(long merchantTxnId) throws PaymentException, TException;
167
    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;
-
 
168
 
-
 
169
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
-
 
170
 
-
 
171
    public void captureEbsPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.captureEbsPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
172
 
-
 
173
    public void captureHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.captureHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
174
 
-
 
175
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
176
 
-
 
177
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
-
 
178
 
-
 
179
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
153
 
180
 
154
  }
181
  }
155
 
182
 
156
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
183
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
-
 
184
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
157
    public Client(TProtocol prot)
185
      public Factory() {}
-
 
186
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
-
 
187
        return new Client(prot);
158
    {
188
      }
-
 
189
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
159
      this(prot, prot);
190
        return new Client(iprot, oprot);
-
 
191
      }
160
    }
192
    }
161
 
193
 
162
    public Client(TProtocol iprot, TProtocol oprot)
194
    public Client(org.apache.thrift.protocol.TProtocol prot)
163
    {
195
    {
-
 
196
      super(prot, prot);
-
 
197
    }
-
 
198
 
-
 
199
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
164
      super(iprot, oprot);
200
      super(iprot, oprot);
165
    }
201
    }
166
 
202
 
167
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, TException
203
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException
168
    {
204
    {
169
      send_createPayment(userId, amount, gatewayId, txnId);
205
      send_createPayment(userId, amount, gatewayId, txnId);
170
      return recv_createPayment();
206
      return recv_createPayment();
171
    }
207
    }
172
 
208
 
173
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws TException
209
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws org.apache.thrift.TException
174
    {
210
    {
175
      oprot_.writeMessageBegin(new TMessage("createPayment", TMessageType.CALL, seqid_));
-
 
176
      createPayment_args args = new createPayment_args();
211
      createPayment_args args = new createPayment_args();
177
      args.userId = userId;
212
      args.setUserId(userId);
178
      args.amount = amount;
213
      args.setAmount(amount);
179
      args.gatewayId = gatewayId;
214
      args.setGatewayId(gatewayId);
180
      args.txnId = txnId;
215
      args.setTxnId(txnId);
181
      args.write(oprot_);
-
 
182
      oprot_.writeMessageEnd();
216
      sendBase("createPayment", args);
183
      oprot_.getTransport().flush();
-
 
184
    }
217
    }
185
 
218
 
186
    public long recv_createPayment() throws PaymentException, TException
219
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
187
    {
220
    {
188
      TMessage msg = iprot_.readMessageBegin();
-
 
189
      if (msg.type == TMessageType.EXCEPTION) {
-
 
190
        TApplicationException x = TApplicationException.read(iprot_);
-
 
191
        iprot_.readMessageEnd();
-
 
192
        throw x;
-
 
193
      }
-
 
194
      createPayment_result result = new createPayment_result();
221
      createPayment_result result = new createPayment_result();
195
      result.read(iprot_);
222
      receiveBase(result, "createPayment");
196
      iprot_.readMessageEnd();
-
 
197
      if (result.isSetSuccess()) {
223
      if (result.isSetSuccess()) {
198
        return result.success;
224
        return result.success;
199
      }
225
      }
200
      if (result.pe != null) {
226
      if (result.pe != null) {
201
        throw result.pe;
227
        throw result.pe;
202
      }
228
      }
203
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
229
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
204
    }
230
    }
205
 
231
 
206
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException
232
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
207
    {
233
    {
208
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
234
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
209
      return recv_getPaymentsForUser();
235
      return recv_getPaymentsForUser();
210
    }
236
    }
211
 
237
 
212
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws TException
238
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
213
    {
239
    {
214
      oprot_.writeMessageBegin(new TMessage("getPaymentsForUser", TMessageType.CALL, seqid_));
-
 
215
      getPaymentsForUser_args args = new getPaymentsForUser_args();
240
      getPaymentsForUser_args args = new getPaymentsForUser_args();
216
      args.userId = userId;
241
      args.setUserId(userId);
217
      args.fromTime = fromTime;
242
      args.setFromTime(fromTime);
218
      args.toTime = toTime;
243
      args.setToTime(toTime);
219
      args.status = status;
244
      args.setStatus(status);
220
      args.gatewayId = gatewayId;
245
      args.setGatewayId(gatewayId);
221
      args.write(oprot_);
-
 
222
      oprot_.writeMessageEnd();
-
 
223
      oprot_.getTransport().flush();
246
      sendBase("getPaymentsForUser", args);
224
    }
247
    }
225
 
248
 
226
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, TException
249
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
227
    {
250
    {
228
      TMessage msg = iprot_.readMessageBegin();
-
 
229
      if (msg.type == TMessageType.EXCEPTION) {
-
 
230
        TApplicationException x = TApplicationException.read(iprot_);
-
 
231
        iprot_.readMessageEnd();
-
 
232
        throw x;
-
 
233
      }
-
 
234
      getPaymentsForUser_result result = new getPaymentsForUser_result();
251
      getPaymentsForUser_result result = new getPaymentsForUser_result();
235
      result.read(iprot_);
252
      receiveBase(result, "getPaymentsForUser");
236
      iprot_.readMessageEnd();
-
 
237
      if (result.isSetSuccess()) {
253
      if (result.isSetSuccess()) {
238
        return result.success;
254
        return result.success;
239
      }
255
      }
240
      if (result.pe != null) {
256
      if (result.pe != null) {
241
        throw result.pe;
257
        throw result.pe;
242
      }
258
      }
243
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
259
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
244
    }
260
    }
245
 
261
 
246
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException
262
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
247
    {
263
    {
248
      send_getPayments(fromTime, toTime, status, gatewayId);
264
      send_getPayments(fromTime, toTime, status, gatewayId);
249
      return recv_getPayments();
265
      return recv_getPayments();
250
    }
266
    }
251
 
267
 
252
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws TException
268
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
253
    {
269
    {
254
      oprot_.writeMessageBegin(new TMessage("getPayments", TMessageType.CALL, seqid_));
-
 
255
      getPayments_args args = new getPayments_args();
270
      getPayments_args args = new getPayments_args();
256
      args.fromTime = fromTime;
271
      args.setFromTime(fromTime);
257
      args.toTime = toTime;
272
      args.setToTime(toTime);
258
      args.status = status;
273
      args.setStatus(status);
259
      args.gatewayId = gatewayId;
274
      args.setGatewayId(gatewayId);
260
      args.write(oprot_);
-
 
261
      oprot_.writeMessageEnd();
-
 
262
      oprot_.getTransport().flush();
275
      sendBase("getPayments", args);
263
    }
276
    }
264
 
277
 
265
    public List<Payment> recv_getPayments() throws PaymentException, TException
278
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
266
    {
279
    {
267
      TMessage msg = iprot_.readMessageBegin();
-
 
268
      if (msg.type == TMessageType.EXCEPTION) {
-
 
269
        TApplicationException x = TApplicationException.read(iprot_);
-
 
270
        iprot_.readMessageEnd();
-
 
271
        throw x;
-
 
272
      }
-
 
273
      getPayments_result result = new getPayments_result();
280
      getPayments_result result = new getPayments_result();
274
      result.read(iprot_);
281
      receiveBase(result, "getPayments");
275
      iprot_.readMessageEnd();
-
 
276
      if (result.isSetSuccess()) {
282
      if (result.isSetSuccess()) {
277
        return result.success;
283
        return result.success;
278
      }
284
      }
279
      if (result.pe != null) {
285
      if (result.pe != null) {
280
        throw result.pe;
286
        throw result.pe;
281
      }
287
      }
282
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
283
    }
289
    }
284
 
290
 
285
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, TException
291
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
286
    {
292
    {
287
      send_getPaymentGateway(id);
293
      send_getPaymentGateway(id);
288
      return recv_getPaymentGateway();
294
      return recv_getPaymentGateway();
289
    }
295
    }
290
 
296
 
291
    public void send_getPaymentGateway(long id) throws TException
297
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
292
    {
298
    {
293
      oprot_.writeMessageBegin(new TMessage("getPaymentGateway", TMessageType.CALL, seqid_));
-
 
294
      getPaymentGateway_args args = new getPaymentGateway_args();
299
      getPaymentGateway_args args = new getPaymentGateway_args();
295
      args.id = id;
300
      args.setId(id);
296
      args.write(oprot_);
-
 
297
      oprot_.writeMessageEnd();
-
 
298
      oprot_.getTransport().flush();
301
      sendBase("getPaymentGateway", args);
299
    }
302
    }
300
 
303
 
301
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, TException
304
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
302
    {
305
    {
303
      TMessage msg = iprot_.readMessageBegin();
-
 
304
      if (msg.type == TMessageType.EXCEPTION) {
-
 
305
        TApplicationException x = TApplicationException.read(iprot_);
-
 
306
        iprot_.readMessageEnd();
-
 
307
        throw x;
-
 
308
      }
-
 
309
      getPaymentGateway_result result = new getPaymentGateway_result();
306
      getPaymentGateway_result result = new getPaymentGateway_result();
310
      result.read(iprot_);
-
 
311
      iprot_.readMessageEnd();
307
      receiveBase(result, "getPaymentGateway");
312
      if (result.isSetSuccess()) {
308
      if (result.isSetSuccess()) {
313
        return result.success;
309
        return result.success;
314
      }
310
      }
315
      if (result.pe != null) {
311
      if (result.pe != null) {
316
        throw result.pe;
312
        throw result.pe;
317
      }
313
      }
318
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
314
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
319
    }
315
    }
320
 
316
 
321
    public Payment getPayment(long id) throws PaymentException, TException
317
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
322
    {
318
    {
323
      send_getPayment(id);
319
      send_getPayment(id);
324
      return recv_getPayment();
320
      return recv_getPayment();
325
    }
321
    }
326
 
322
 
327
    public void send_getPayment(long id) throws TException
323
    public void send_getPayment(long id) throws org.apache.thrift.TException
328
    {
324
    {
329
      oprot_.writeMessageBegin(new TMessage("getPayment", TMessageType.CALL, seqid_));
-
 
330
      getPayment_args args = new getPayment_args();
325
      getPayment_args args = new getPayment_args();
331
      args.id = id;
326
      args.setId(id);
332
      args.write(oprot_);
-
 
333
      oprot_.writeMessageEnd();
-
 
334
      oprot_.getTransport().flush();
327
      sendBase("getPayment", args);
335
    }
328
    }
336
 
329
 
337
    public Payment recv_getPayment() throws PaymentException, TException
330
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
338
    {
331
    {
339
      TMessage msg = iprot_.readMessageBegin();
-
 
340
      if (msg.type == TMessageType.EXCEPTION) {
-
 
341
        TApplicationException x = TApplicationException.read(iprot_);
-
 
342
        iprot_.readMessageEnd();
-
 
343
        throw x;
-
 
344
      }
-
 
345
      getPayment_result result = new getPayment_result();
332
      getPayment_result result = new getPayment_result();
346
      result.read(iprot_);
333
      receiveBase(result, "getPayment");
347
      iprot_.readMessageEnd();
-
 
348
      if (result.isSetSuccess()) {
334
      if (result.isSetSuccess()) {
349
        return result.success;
335
        return result.success;
350
      }
336
      }
351
      if (result.pe != null) {
337
      if (result.pe != null) {
352
        throw result.pe;
338
        throw result.pe;
353
      }
339
      }
354
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
355
    }
341
    }
356
 
342
 
357
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, TException
343
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
358
    {
344
    {
359
      send_getPaymentForTxnId(txnId);
345
      send_getPaymentForTxnId(txnId);
360
      return recv_getPaymentForTxnId();
346
      return recv_getPaymentForTxnId();
361
    }
347
    }
362
 
348
 
363
    public void send_getPaymentForTxnId(long txnId) throws TException
349
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
364
    {
350
    {
365
      oprot_.writeMessageBegin(new TMessage("getPaymentForTxnId", TMessageType.CALL, seqid_));
-
 
366
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
351
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
367
      args.txnId = txnId;
352
      args.setTxnId(txnId);
368
      args.write(oprot_);
-
 
369
      oprot_.writeMessageEnd();
-
 
370
      oprot_.getTransport().flush();
353
      sendBase("getPaymentForTxnId", args);
371
    }
354
    }
372
 
355
 
373
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, TException
356
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
374
    {
357
    {
375
      TMessage msg = iprot_.readMessageBegin();
-
 
376
      if (msg.type == TMessageType.EXCEPTION) {
-
 
377
        TApplicationException x = TApplicationException.read(iprot_);
-
 
378
        iprot_.readMessageEnd();
-
 
379
        throw x;
-
 
380
      }
-
 
381
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
358
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
382
      result.read(iprot_);
-
 
383
      iprot_.readMessageEnd();
359
      receiveBase(result, "getPaymentForTxnId");
384
      if (result.isSetSuccess()) {
360
      if (result.isSetSuccess()) {
385
        return result.success;
361
        return result.success;
386
      }
362
      }
387
      if (result.pe != null) {
363
      if (result.pe != null) {
388
        throw result.pe;
364
        throw result.pe;
389
      }
365
      }
390
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
366
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
391
    }
367
    }
392
 
368
 
393
    public boolean 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) throws PaymentException, TException
369
    public boolean 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) throws PaymentException, org.apache.thrift.TException
394
    {
370
    {
395
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
371
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
396
      return recv_updatePaymentDetails();
372
      return recv_updatePaymentDetails();
397
    }
373
    }
398
 
374
 
399
    public void send_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) throws TException
375
    public void send_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) throws org.apache.thrift.TException
400
    {
376
    {
401
      oprot_.writeMessageBegin(new TMessage("updatePaymentDetails", TMessageType.CALL, seqid_));
-
 
402
      updatePaymentDetails_args args = new updatePaymentDetails_args();
377
      updatePaymentDetails_args args = new updatePaymentDetails_args();
403
      args.id = id;
378
      args.setId(id);
404
      args.gatewayPaymentId = gatewayPaymentId;
379
      args.setGatewayPaymentId(gatewayPaymentId);
405
      args.sessionId = sessionId;
380
      args.setSessionId(sessionId);
406
      args.gatewayTxnStatus = gatewayTxnStatus;
381
      args.setGatewayTxnStatus(gatewayTxnStatus);
407
      args.description = description;
382
      args.setDescription(description);
408
      args.gatewayTxnId = gatewayTxnId;
383
      args.setGatewayTxnId(gatewayTxnId);
409
      args.authCode = authCode;
384
      args.setAuthCode(authCode);
410
      args.referenceCode = referenceCode;
385
      args.setReferenceCode(referenceCode);
411
      args.errorCode = errorCode;
386
      args.setErrorCode(errorCode);
412
      args.status = status;
387
      args.setStatus(status);
413
      args.gatewayTxnDate = gatewayTxnDate;
388
      args.setGatewayTxnDate(gatewayTxnDate);
414
      args.attributes = attributes;
389
      args.setAttributes(attributes);
415
      args.write(oprot_);
-
 
416
      oprot_.writeMessageEnd();
-
 
417
      oprot_.getTransport().flush();
390
      sendBase("updatePaymentDetails", args);
418
    }
391
    }
419
 
392
 
420
    public boolean recv_updatePaymentDetails() throws PaymentException, TException
393
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
421
    {
394
    {
422
      TMessage msg = iprot_.readMessageBegin();
-
 
423
      if (msg.type == TMessageType.EXCEPTION) {
-
 
424
        TApplicationException x = TApplicationException.read(iprot_);
-
 
425
        iprot_.readMessageEnd();
-
 
426
        throw x;
-
 
427
      }
-
 
428
      updatePaymentDetails_result result = new updatePaymentDetails_result();
395
      updatePaymentDetails_result result = new updatePaymentDetails_result();
429
      result.read(iprot_);
396
      receiveBase(result, "updatePaymentDetails");
430
      iprot_.readMessageEnd();
-
 
431
      if (result.isSetSuccess()) {
397
      if (result.isSetSuccess()) {
432
        return result.success;
398
        return result.success;
433
      }
399
      }
434
      if (result.pe != null) {
400
      if (result.pe != null) {
435
        throw result.pe;
401
        throw result.pe;
436
      }
402
      }
437
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
403
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
438
    }
404
    }
439
 
405
 
440
    public List<Double> getSuccessfulPaymentsAmountRange() throws TException
406
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
441
    {
407
    {
442
      send_getSuccessfulPaymentsAmountRange();
408
      send_getSuccessfulPaymentsAmountRange();
443
      return recv_getSuccessfulPaymentsAmountRange();
409
      return recv_getSuccessfulPaymentsAmountRange();
444
    }
410
    }
445
 
411
 
446
    public void send_getSuccessfulPaymentsAmountRange() throws TException
412
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
447
    {
413
    {
448
      oprot_.writeMessageBegin(new TMessage("getSuccessfulPaymentsAmountRange", TMessageType.CALL, seqid_));
-
 
449
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
414
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
450
      args.write(oprot_);
-
 
451
      oprot_.writeMessageEnd();
-
 
452
      oprot_.getTransport().flush();
415
      sendBase("getSuccessfulPaymentsAmountRange", args);
453
    }
416
    }
454
 
417
 
455
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws TException
418
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
456
    {
419
    {
457
      TMessage msg = iprot_.readMessageBegin();
-
 
458
      if (msg.type == TMessageType.EXCEPTION) {
-
 
459
        TApplicationException x = TApplicationException.read(iprot_);
-
 
460
        iprot_.readMessageEnd();
-
 
461
        throw x;
-
 
462
      }
-
 
463
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
420
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
464
      result.read(iprot_);
-
 
465
      iprot_.readMessageEnd();
421
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
466
      if (result.isSetSuccess()) {
422
      if (result.isSetSuccess()) {
467
        return result.success;
423
        return result.success;
468
      }
424
      }
469
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
425
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
470
    }
426
    }
471
 
427
 
472
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, TException
428
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
473
    {
429
    {
474
      send_captureEbsPayment(merchantPaymentId);
430
      send_captureEbsPayment(merchantPaymentId);
475
      return recv_captureEbsPayment();
431
      return recv_captureEbsPayment();
476
    }
432
    }
477
 
433
 
478
    public void send_captureEbsPayment(long merchantPaymentId) throws TException
434
    public void send_captureEbsPayment(long merchantPaymentId) throws org.apache.thrift.TException
479
    {
435
    {
480
      oprot_.writeMessageBegin(new TMessage("captureEbsPayment", TMessageType.CALL, seqid_));
-
 
481
      captureEbsPayment_args args = new captureEbsPayment_args();
436
      captureEbsPayment_args args = new captureEbsPayment_args();
482
      args.merchantPaymentId = merchantPaymentId;
437
      args.setMerchantPaymentId(merchantPaymentId);
483
      args.write(oprot_);
-
 
484
      oprot_.writeMessageEnd();
438
      sendBase("captureEbsPayment", args);
485
      oprot_.getTransport().flush();
-
 
486
    }
439
    }
487
 
440
 
488
    public Map<String,String> recv_captureEbsPayment() throws PaymentException, TException
441
    public Map<String,String> recv_captureEbsPayment() throws PaymentException, org.apache.thrift.TException
489
    {
442
    {
490
      TMessage msg = iprot_.readMessageBegin();
-
 
491
      if (msg.type == TMessageType.EXCEPTION) {
-
 
492
        TApplicationException x = TApplicationException.read(iprot_);
-
 
493
        iprot_.readMessageEnd();
-
 
494
        throw x;
-
 
495
      }
-
 
496
      captureEbsPayment_result result = new captureEbsPayment_result();
443
      captureEbsPayment_result result = new captureEbsPayment_result();
497
      result.read(iprot_);
-
 
498
      iprot_.readMessageEnd();
444
      receiveBase(result, "captureEbsPayment");
499
      if (result.isSetSuccess()) {
445
      if (result.isSetSuccess()) {
500
        return result.success;
446
        return result.success;
501
      }
447
      }
502
      if (result.pe != null) {
448
      if (result.pe != null) {
503
        throw result.pe;
449
        throw result.pe;
504
      }
450
      }
505
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "captureEbsPayment failed: unknown result");
451
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "captureEbsPayment failed: unknown result");
506
    }
452
    }
507
 
453
 
508
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, TException
454
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
509
    {
455
    {
510
      send_captureHdfcPayment(merchantPaymentId);
456
      send_captureHdfcPayment(merchantPaymentId);
511
      return recv_captureHdfcPayment();
457
      return recv_captureHdfcPayment();
512
    }
458
    }
513
 
459
 
514
    public void send_captureHdfcPayment(long merchantPaymentId) throws TException
460
    public void send_captureHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
515
    {
461
    {
516
      oprot_.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.CALL, seqid_));
-
 
517
      captureHdfcPayment_args args = new captureHdfcPayment_args();
462
      captureHdfcPayment_args args = new captureHdfcPayment_args();
518
      args.merchantPaymentId = merchantPaymentId;
463
      args.setMerchantPaymentId(merchantPaymentId);
519
      args.write(oprot_);
-
 
520
      oprot_.writeMessageEnd();
464
      sendBase("captureHdfcPayment", args);
521
      oprot_.getTransport().flush();
-
 
522
    }
465
    }
523
 
466
 
524
    public Map<String,String> recv_captureHdfcPayment() throws PaymentException, TException
467
    public Map<String,String> recv_captureHdfcPayment() throws PaymentException, org.apache.thrift.TException
525
    {
468
    {
526
      TMessage msg = iprot_.readMessageBegin();
-
 
527
      if (msg.type == TMessageType.EXCEPTION) {
-
 
528
        TApplicationException x = TApplicationException.read(iprot_);
-
 
529
        iprot_.readMessageEnd();
-
 
530
        throw x;
-
 
531
      }
-
 
532
      captureHdfcPayment_result result = new captureHdfcPayment_result();
469
      captureHdfcPayment_result result = new captureHdfcPayment_result();
533
      result.read(iprot_);
470
      receiveBase(result, "captureHdfcPayment");
534
      iprot_.readMessageEnd();
-
 
535
      if (result.isSetSuccess()) {
471
      if (result.isSetSuccess()) {
536
        return result.success;
472
        return result.success;
537
      }
473
      }
538
      if (result.pe != null) {
474
      if (result.pe != null) {
539
        throw result.pe;
475
        throw result.pe;
540
      }
476
      }
541
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
477
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
542
    }
478
    }
543
 
479
 
544
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, TException
480
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
545
    {
481
    {
546
      send_initializeHdfcPayment(merchantPaymentId);
482
      send_initializeHdfcPayment(merchantPaymentId);
547
      return recv_initializeHdfcPayment();
483
      return recv_initializeHdfcPayment();
548
    }
484
    }
549
 
485
 
550
    public void send_initializeHdfcPayment(long merchantPaymentId) throws TException
486
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
551
    {
487
    {
552
      oprot_.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.CALL, seqid_));
-
 
553
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
488
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
554
      args.merchantPaymentId = merchantPaymentId;
489
      args.setMerchantPaymentId(merchantPaymentId);
555
      args.write(oprot_);
-
 
556
      oprot_.writeMessageEnd();
490
      sendBase("initializeHdfcPayment", args);
557
      oprot_.getTransport().flush();
-
 
558
    }
491
    }
559
 
492
 
560
    public String recv_initializeHdfcPayment() throws PaymentException, TException
493
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
561
    {
494
    {
562
      TMessage msg = iprot_.readMessageBegin();
-
 
563
      if (msg.type == TMessageType.EXCEPTION) {
-
 
564
        TApplicationException x = TApplicationException.read(iprot_);
-
 
565
        iprot_.readMessageEnd();
-
 
566
        throw x;
-
 
567
      }
-
 
568
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
495
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
569
      result.read(iprot_);
496
      receiveBase(result, "initializeHdfcPayment");
570
      iprot_.readMessageEnd();
-
 
571
      if (result.isSetSuccess()) {
497
      if (result.isSetSuccess()) {
572
        return result.success;
498
        return result.success;
573
      }
499
      }
574
      if (result.pe != null) {
500
      if (result.pe != null) {
575
        throw result.pe;
501
        throw result.pe;
576
      }
502
      }
577
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
503
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
578
    }
504
    }
579
 
505
 
580
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, TException
506
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
581
    {
507
    {
582
      send_createRefund(orderId, merchantTxnId, amount);
508
      send_createRefund(orderId, merchantTxnId, amount);
583
      return recv_createRefund();
509
      return recv_createRefund();
584
    }
510
    }
585
 
511
 
586
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws TException
512
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
587
    {
513
    {
588
      oprot_.writeMessageBegin(new TMessage("createRefund", TMessageType.CALL, seqid_));
-
 
589
      createRefund_args args = new createRefund_args();
514
      createRefund_args args = new createRefund_args();
590
      args.orderId = orderId;
515
      args.setOrderId(orderId);
591
      args.merchantTxnId = merchantTxnId;
516
      args.setMerchantTxnId(merchantTxnId);
592
      args.amount = amount;
517
      args.setAmount(amount);
593
      args.write(oprot_);
-
 
594
      oprot_.writeMessageEnd();
518
      sendBase("createRefund", args);
595
      oprot_.getTransport().flush();
-
 
596
    }
519
    }
597
 
520
 
598
    public long recv_createRefund() throws PaymentException, TException
521
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
599
    {
522
    {
600
      TMessage msg = iprot_.readMessageBegin();
-
 
601
      if (msg.type == TMessageType.EXCEPTION) {
-
 
602
        TApplicationException x = TApplicationException.read(iprot_);
-
 
603
        iprot_.readMessageEnd();
-
 
604
        throw x;
-
 
605
      }
-
 
606
      createRefund_result result = new createRefund_result();
523
      createRefund_result result = new createRefund_result();
607
      result.read(iprot_);
524
      receiveBase(result, "createRefund");
608
      iprot_.readMessageEnd();
-
 
609
      if (result.isSetSuccess()) {
525
      if (result.isSetSuccess()) {
610
        return result.success;
526
        return result.success;
611
      }
527
      }
612
      if (result.pe != null) {
528
      if (result.pe != null) {
613
        throw result.pe;
529
        throw result.pe;
614
      }
530
      }
615
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
531
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
616
    }
532
    }
617
 
533
 
618
    public boolean capturePayment(long merchantTxnId) throws PaymentException, TException
534
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
619
    {
535
    {
620
      send_capturePayment(merchantTxnId);
536
      send_capturePayment(merchantTxnId);
621
      return recv_capturePayment();
537
      return recv_capturePayment();
622
    }
538
    }
623
 
539
 
624
    public void send_capturePayment(long merchantTxnId) throws TException
540
    public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
625
    {
541
    {
626
      oprot_.writeMessageBegin(new TMessage("capturePayment", TMessageType.CALL, seqid_));
-
 
627
      capturePayment_args args = new capturePayment_args();
542
      capturePayment_args args = new capturePayment_args();
628
      args.merchantTxnId = merchantTxnId;
543
      args.setMerchantTxnId(merchantTxnId);
629
      args.write(oprot_);
-
 
630
      oprot_.writeMessageEnd();
-
 
631
      oprot_.getTransport().flush();
544
      sendBase("capturePayment", args);
632
    }
545
    }
633
 
546
 
634
    public boolean recv_capturePayment() throws PaymentException, TException
547
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
635
    {
548
    {
636
      TMessage msg = iprot_.readMessageBegin();
-
 
637
      if (msg.type == TMessageType.EXCEPTION) {
-
 
638
        TApplicationException x = TApplicationException.read(iprot_);
-
 
639
        iprot_.readMessageEnd();
-
 
640
        throw x;
-
 
641
      }
-
 
642
      capturePayment_result result = new capturePayment_result();
549
      capturePayment_result result = new capturePayment_result();
643
      result.read(iprot_);
550
      receiveBase(result, "capturePayment");
644
      iprot_.readMessageEnd();
-
 
645
      if (result.isSetSuccess()) {
551
      if (result.isSetSuccess()) {
646
        return result.success;
552
        return result.success;
647
      }
553
      }
648
      if (result.pe != null) {
554
      if (result.pe != null) {
649
        throw result.pe;
555
        throw result.pe;
650
      }
556
      }
651
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
652
    }
558
    }
653
 
559
 
654
  }
560
  }
655
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
561
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
656
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
562
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
657
    public Processor(Iface iface)
-
 
658
    {
-
 
659
      super(iface);
-
 
660
      iface_ = iface;
-
 
661
      processMap_.put("createPayment", new createPayment());
-
 
662
      processMap_.put("getPaymentsForUser", new getPaymentsForUser());
563
      private org.apache.thrift.async.TAsyncClientManager clientManager;
663
      processMap_.put("getPayments", new getPayments());
-
 
664
      processMap_.put("getPaymentGateway", new getPaymentGateway());
564
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
665
      processMap_.put("getPayment", new getPayment());
-
 
666
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
-
 
667
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
-
 
668
      processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
565
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
669
      processMap_.put("captureEbsPayment", new captureEbsPayment());
-
 
670
      processMap_.put("captureHdfcPayment", new captureHdfcPayment());
-
 
671
      processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
-
 
672
      processMap_.put("createRefund", new createRefund());
566
        this.clientManager = clientManager;
673
      processMap_.put("capturePayment", new capturePayment());
567
        this.protocolFactory = protocolFactory;
674
    }
568
      }
675
 
-
 
676
    private Iface iface_;
-
 
677
 
-
 
678
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
569
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
679
    {
-
 
680
      TMessage msg = iprot.readMessageBegin();
-
 
681
      ProcessFunction fn = processMap_.get(msg.name);
-
 
682
      if (fn == null) {
-
 
683
        TProtocolUtil.skip(iprot, TType.STRUCT);
-
 
684
        iprot.readMessageEnd();
-
 
685
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
686
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
570
        return new AsyncClient(protocolFactory, clientManager, transport);
687
        x.write(oprot);
-
 
688
        oprot.writeMessageEnd();
-
 
689
        oprot.getTransport().flush();
-
 
690
        return true;
-
 
691
      }
571
      }
692
      fn.process(msg.seqid, iprot, oprot);
-
 
693
      return true;
-
 
694
    }
572
    }
695
 
573
 
-
 
574
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
-
 
575
      super(protocolFactory, clientManager, transport);
-
 
576
    }
-
 
577
 
-
 
578
    public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
579
      checkReady();
-
 
580
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
581
      this.___currentMethod = method_call;
-
 
582
      ___manager.call(method_call);
-
 
583
    }
-
 
584
 
696
    private class createPayment implements ProcessFunction {
585
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
586
      private long userId;
-
 
587
      private double amount;
-
 
588
      private long gatewayId;
-
 
589
      private long txnId;
697
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
590
      public createPayment_call(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_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 {
-
 
591
        super(client, protocolFactory, transport, resultHandler, false);
-
 
592
        this.userId = userId;
-
 
593
        this.amount = amount;
-
 
594
        this.gatewayId = gatewayId;
-
 
595
        this.txnId = txnId;
698
      {
596
      }
-
 
597
 
-
 
598
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
599
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
699
        createPayment_args args = new createPayment_args();
600
        createPayment_args args = new createPayment_args();
-
 
601
        args.setUserId(userId);
-
 
602
        args.setAmount(amount);
-
 
603
        args.setGatewayId(gatewayId);
-
 
604
        args.setTxnId(txnId);
-
 
605
        args.write(prot);
-
 
606
        prot.writeMessageEnd();
-
 
607
      }
-
 
608
 
-
 
609
      public long getResult() throws PaymentException, org.apache.thrift.TException {
-
 
610
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
611
          throw new IllegalStateException("Method call not finished!");
-
 
612
        }
-
 
613
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
614
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
615
        return (new Client(prot)).recv_createPayment();
-
 
616
      }
-
 
617
    }
-
 
618
 
-
 
619
    public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
620
      checkReady();
-
 
621
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-
 
622
      this.___currentMethod = method_call;
-
 
623
      ___manager.call(method_call);
-
 
624
    }
-
 
625
 
-
 
626
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
627
      private long userId;
-
 
628
      private long fromTime;
-
 
629
      private long toTime;
-
 
630
      private PaymentStatus status;
-
 
631
      private long gatewayId;
-
 
632
      public getPaymentsForUser_call(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsForUser_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 {
-
 
633
        super(client, protocolFactory, transport, resultHandler, false);
-
 
634
        this.userId = userId;
-
 
635
        this.fromTime = fromTime;
-
 
636
        this.toTime = toTime;
-
 
637
        this.status = status;
-
 
638
        this.gatewayId = gatewayId;
-
 
639
      }
-
 
640
 
-
 
641
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
642
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
643
        getPaymentsForUser_args args = new getPaymentsForUser_args();
-
 
644
        args.setUserId(userId);
-
 
645
        args.setFromTime(fromTime);
-
 
646
        args.setToTime(toTime);
-
 
647
        args.setStatus(status);
-
 
648
        args.setGatewayId(gatewayId);
-
 
649
        args.write(prot);
-
 
650
        prot.writeMessageEnd();
-
 
651
      }
-
 
652
 
-
 
653
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
654
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
655
          throw new IllegalStateException("Method call not finished!");
-
 
656
        }
-
 
657
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
658
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
659
        return (new Client(prot)).recv_getPaymentsForUser();
-
 
660
      }
-
 
661
    }
-
 
662
 
-
 
663
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
-
 
664
      checkReady();
-
 
665
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-
 
666
      this.___currentMethod = method_call;
-
 
667
      ___manager.call(method_call);
-
 
668
    }
-
 
669
 
-
 
670
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
671
      private long fromTime;
-
 
672
      private long toTime;
-
 
673
      private PaymentStatus status;
-
 
674
      private long gatewayId;
-
 
675
      public getPayments_call(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_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 {
-
 
676
        super(client, protocolFactory, transport, resultHandler, false);
-
 
677
        this.fromTime = fromTime;
-
 
678
        this.toTime = toTime;
-
 
679
        this.status = status;
-
 
680
        this.gatewayId = gatewayId;
-
 
681
      }
-
 
682
 
-
 
683
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
684
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
685
        getPayments_args args = new getPayments_args();
-
 
686
        args.setFromTime(fromTime);
-
 
687
        args.setToTime(toTime);
-
 
688
        args.setStatus(status);
-
 
689
        args.setGatewayId(gatewayId);
-
 
690
        args.write(prot);
-
 
691
        prot.writeMessageEnd();
-
 
692
      }
-
 
693
 
-
 
694
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
695
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
696
          throw new IllegalStateException("Method call not finished!");
-
 
697
        }
-
 
698
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
699
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
700
        return (new Client(prot)).recv_getPayments();
-
 
701
      }
-
 
702
    }
-
 
703
 
-
 
704
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
-
 
705
      checkReady();
-
 
706
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
707
      this.___currentMethod = method_call;
-
 
708
      ___manager.call(method_call);
-
 
709
    }
-
 
710
 
-
 
711
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
712
      private long id;
-
 
713
      public getPaymentGateway_call(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_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 {
-
 
714
        super(client, protocolFactory, transport, resultHandler, false);
-
 
715
        this.id = id;
-
 
716
      }
-
 
717
 
-
 
718
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
719
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
720
        getPaymentGateway_args args = new getPaymentGateway_args();
-
 
721
        args.setId(id);
-
 
722
        args.write(prot);
-
 
723
        prot.writeMessageEnd();
-
 
724
      }
-
 
725
 
-
 
726
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
-
 
727
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
728
          throw new IllegalStateException("Method call not finished!");
-
 
729
        }
-
 
730
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
731
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
732
        return (new Client(prot)).recv_getPaymentGateway();
-
 
733
      }
-
 
734
    }
-
 
735
 
-
 
736
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
737
      checkReady();
-
 
738
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
739
      this.___currentMethod = method_call;
-
 
740
      ___manager.call(method_call);
-
 
741
    }
-
 
742
 
-
 
743
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
744
      private long id;
-
 
745
      public getPayment_call(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_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 {
-
 
746
        super(client, protocolFactory, transport, resultHandler, false);
-
 
747
        this.id = id;
-
 
748
      }
-
 
749
 
-
 
750
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
751
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
752
        getPayment_args args = new getPayment_args();
-
 
753
        args.setId(id);
-
 
754
        args.write(prot);
-
 
755
        prot.writeMessageEnd();
-
 
756
      }
-
 
757
 
-
 
758
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
-
 
759
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
760
          throw new IllegalStateException("Method call not finished!");
-
 
761
        }
-
 
762
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
763
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
764
        return (new Client(prot)).recv_getPayment();
-
 
765
      }
-
 
766
    }
-
 
767
 
-
 
768
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
-
 
769
      checkReady();
-
 
770
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
771
      this.___currentMethod = method_call;
-
 
772
      ___manager.call(method_call);
-
 
773
    }
-
 
774
 
-
 
775
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
776
      private long txnId;
-
 
777
      public getPaymentForTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_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 {
-
 
778
        super(client, protocolFactory, transport, resultHandler, false);
-
 
779
        this.txnId = txnId;
-
 
780
      }
-
 
781
 
-
 
782
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
783
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
784
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
-
 
785
        args.setTxnId(txnId);
-
 
786
        args.write(prot);
-
 
787
        prot.writeMessageEnd();
-
 
788
      }
-
 
789
 
-
 
790
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
791
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
792
          throw new IllegalStateException("Method call not finished!");
-
 
793
        }
-
 
794
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
795
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
796
        return (new Client(prot)).recv_getPaymentForTxnId();
-
 
797
      }
-
 
798
    }
-
 
799
 
-
 
800
    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<updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
801
      checkReady();
-
 
802
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
-
 
803
      this.___currentMethod = method_call;
-
 
804
      ___manager.call(method_call);
-
 
805
    }
-
 
806
 
-
 
807
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
808
      private long id;
-
 
809
      private String gatewayPaymentId;
-
 
810
      private String sessionId;
-
 
811
      private String gatewayTxnStatus;
-
 
812
      private String description;
-
 
813
      private String gatewayTxnId;
-
 
814
      private String authCode;
-
 
815
      private String referenceCode;
-
 
816
      private String errorCode;
-
 
817
      private PaymentStatus status;
-
 
818
      private String gatewayTxnDate;
-
 
819
      private List<Attribute> attributes;
-
 
820
      public updatePaymentDetails_call(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<updatePaymentDetails_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 {
-
 
821
        super(client, protocolFactory, transport, resultHandler, false);
-
 
822
        this.id = id;
-
 
823
        this.gatewayPaymentId = gatewayPaymentId;
-
 
824
        this.sessionId = sessionId;
-
 
825
        this.gatewayTxnStatus = gatewayTxnStatus;
-
 
826
        this.description = description;
-
 
827
        this.gatewayTxnId = gatewayTxnId;
-
 
828
        this.authCode = authCode;
-
 
829
        this.referenceCode = referenceCode;
-
 
830
        this.errorCode = errorCode;
-
 
831
        this.status = status;
-
 
832
        this.gatewayTxnDate = gatewayTxnDate;
-
 
833
        this.attributes = attributes;
-
 
834
      }
-
 
835
 
-
 
836
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
837
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
838
        updatePaymentDetails_args args = new updatePaymentDetails_args();
-
 
839
        args.setId(id);
-
 
840
        args.setGatewayPaymentId(gatewayPaymentId);
-
 
841
        args.setSessionId(sessionId);
-
 
842
        args.setGatewayTxnStatus(gatewayTxnStatus);
-
 
843
        args.setDescription(description);
-
 
844
        args.setGatewayTxnId(gatewayTxnId);
-
 
845
        args.setAuthCode(authCode);
-
 
846
        args.setReferenceCode(referenceCode);
-
 
847
        args.setErrorCode(errorCode);
-
 
848
        args.setStatus(status);
-
 
849
        args.setGatewayTxnDate(gatewayTxnDate);
-
 
850
        args.setAttributes(attributes);
-
 
851
        args.write(prot);
-
 
852
        prot.writeMessageEnd();
-
 
853
      }
-
 
854
 
-
 
855
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
-
 
856
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
857
          throw new IllegalStateException("Method call not finished!");
-
 
858
        }
-
 
859
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
860
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
861
        return (new Client(prot)).recv_updatePaymentDetails();
-
 
862
      }
-
 
863
    }
-
 
864
 
-
 
865
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
-
 
866
      checkReady();
-
 
867
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
868
      this.___currentMethod = method_call;
-
 
869
      ___manager.call(method_call);
-
 
870
    }
-
 
871
 
-
 
872
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
700
        args.read(iprot);
873
      public getSuccessfulPaymentsAmountRange_call(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_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 {
-
 
874
        super(client, protocolFactory, transport, resultHandler, false);
-
 
875
      }
-
 
876
 
-
 
877
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
878
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
879
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
-
 
880
        args.write(prot);
-
 
881
        prot.writeMessageEnd();
-
 
882
      }
-
 
883
 
-
 
884
      public List<Double> getResult() throws org.apache.thrift.TException {
-
 
885
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
886
          throw new IllegalStateException("Method call not finished!");
-
 
887
        }
-
 
888
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
889
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
890
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
-
 
891
      }
-
 
892
    }
-
 
893
 
-
 
894
    public void captureEbsPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureEbsPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
895
      checkReady();
-
 
896
      captureEbsPayment_call method_call = new captureEbsPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
897
      this.___currentMethod = method_call;
-
 
898
      ___manager.call(method_call);
-
 
899
    }
-
 
900
 
-
 
901
    public static class captureEbsPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
902
      private long merchantPaymentId;
-
 
903
      public captureEbsPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureEbsPayment_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 {
-
 
904
        super(client, protocolFactory, transport, resultHandler, false);
-
 
905
        this.merchantPaymentId = merchantPaymentId;
-
 
906
      }
-
 
907
 
-
 
908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("captureEbsPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
910
        captureEbsPayment_args args = new captureEbsPayment_args();
-
 
911
        args.setMerchantPaymentId(merchantPaymentId);
-
 
912
        args.write(prot);
-
 
913
        prot.writeMessageEnd();
-
 
914
      }
-
 
915
 
-
 
916
      public Map<String,String> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
918
          throw new IllegalStateException("Method call not finished!");
-
 
919
        }
-
 
920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
922
        return (new Client(prot)).recv_captureEbsPayment();
-
 
923
      }
-
 
924
    }
-
 
925
 
-
 
926
    public void captureHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
927
      checkReady();
-
 
928
      captureHdfcPayment_call method_call = new captureHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
929
      this.___currentMethod = method_call;
-
 
930
      ___manager.call(method_call);
-
 
931
    }
-
 
932
 
-
 
933
    public static class captureHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
934
      private long merchantPaymentId;
-
 
935
      public captureHdfcPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureHdfcPayment_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 {
-
 
936
        super(client, protocolFactory, transport, resultHandler, false);
-
 
937
        this.merchantPaymentId = merchantPaymentId;
-
 
938
      }
-
 
939
 
-
 
940
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
941
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("captureHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
942
        captureHdfcPayment_args args = new captureHdfcPayment_args();
-
 
943
        args.setMerchantPaymentId(merchantPaymentId);
-
 
944
        args.write(prot);
-
 
945
        prot.writeMessageEnd();
-
 
946
      }
-
 
947
 
-
 
948
      public Map<String,String> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
950
          throw new IllegalStateException("Method call not finished!");
-
 
951
        }
-
 
952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
954
        return (new Client(prot)).recv_captureHdfcPayment();
-
 
955
      }
-
 
956
    }
-
 
957
 
-
 
958
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
959
      checkReady();
-
 
960
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
961
      this.___currentMethod = method_call;
-
 
962
      ___manager.call(method_call);
-
 
963
    }
-
 
964
 
-
 
965
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
966
      private long merchantPaymentId;
701
        iprot.readMessageEnd();
967
      public initializeHdfcPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_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 {
-
 
968
        super(client, protocolFactory, transport, resultHandler, false);
-
 
969
        this.merchantPaymentId = merchantPaymentId;
-
 
970
      }
-
 
971
 
-
 
972
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
973
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
974
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
-
 
975
        args.setMerchantPaymentId(merchantPaymentId);
-
 
976
        args.write(prot);
-
 
977
        prot.writeMessageEnd();
-
 
978
      }
-
 
979
 
-
 
980
      public String getResult() throws PaymentException, org.apache.thrift.TException {
-
 
981
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
982
          throw new IllegalStateException("Method call not finished!");
-
 
983
        }
-
 
984
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
985
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
986
        return (new Client(prot)).recv_initializeHdfcPayment();
-
 
987
      }
-
 
988
    }
-
 
989
 
-
 
990
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
-
 
991
      checkReady();
-
 
992
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
-
 
993
      this.___currentMethod = method_call;
-
 
994
      ___manager.call(method_call);
-
 
995
    }
-
 
996
 
-
 
997
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
998
      private long orderId;
-
 
999
      private long merchantTxnId;
-
 
1000
      private double amount;
-
 
1001
      public createRefund_call(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_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 {
-
 
1002
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1003
        this.orderId = orderId;
-
 
1004
        this.merchantTxnId = merchantTxnId;
-
 
1005
        this.amount = amount;
-
 
1006
      }
-
 
1007
 
-
 
1008
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1009
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1010
        createRefund_args args = new createRefund_args();
-
 
1011
        args.setOrderId(orderId);
-
 
1012
        args.setMerchantTxnId(merchantTxnId);
-
 
1013
        args.setAmount(amount);
-
 
1014
        args.write(prot);
-
 
1015
        prot.writeMessageEnd();
-
 
1016
      }
-
 
1017
 
-
 
1018
      public long getResult() throws PaymentException, org.apache.thrift.TException {
-
 
1019
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1020
          throw new IllegalStateException("Method call not finished!");
-
 
1021
        }
-
 
1022
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1023
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1024
        return (new Client(prot)).recv_createRefund();
-
 
1025
      }
-
 
1026
    }
-
 
1027
 
-
 
1028
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
1029
      checkReady();
-
 
1030
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1031
      this.___currentMethod = method_call;
-
 
1032
      ___manager.call(method_call);
-
 
1033
    }
-
 
1034
 
-
 
1035
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1036
      private long merchantTxnId;
-
 
1037
      public capturePayment_call(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_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 {
-
 
1038
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1039
        this.merchantTxnId = merchantTxnId;
-
 
1040
      }
-
 
1041
 
-
 
1042
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1043
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1044
        capturePayment_args args = new capturePayment_args();
-
 
1045
        args.setMerchantTxnId(merchantTxnId);
-
 
1046
        args.write(prot);
-
 
1047
        prot.writeMessageEnd();
-
 
1048
      }
-
 
1049
 
-
 
1050
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
-
 
1051
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1052
          throw new IllegalStateException("Method call not finished!");
-
 
1053
        }
-
 
1054
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1055
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1056
        return (new Client(prot)).recv_capturePayment();
-
 
1057
      }
-
 
1058
    }
-
 
1059
 
-
 
1060
  }
-
 
1061
 
-
 
1062
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
-
 
1063
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
1064
    public Processor(I iface) {
-
 
1065
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
1066
    }
-
 
1067
 
-
 
1068
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
1069
      super(iface, getProcessMap(processMap));
-
 
1070
    }
-
 
1071
 
-
 
1072
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
1073
      processMap.put("createPayment", new createPayment());
-
 
1074
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
-
 
1075
      processMap.put("getPayments", new getPayments());
-
 
1076
      processMap.put("getPaymentGateway", new getPaymentGateway());
-
 
1077
      processMap.put("getPayment", new getPayment());
-
 
1078
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
-
 
1079
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
-
 
1080
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
-
 
1081
      processMap.put("captureEbsPayment", new captureEbsPayment());
-
 
1082
      processMap.put("captureHdfcPayment", new captureHdfcPayment());
-
 
1083
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
-
 
1084
      processMap.put("createRefund", new createRefund());
-
 
1085
      processMap.put("capturePayment", new capturePayment());
-
 
1086
      return processMap;
-
 
1087
    }
-
 
1088
 
-
 
1089
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
-
 
1090
      public createPayment() {
-
 
1091
        super("createPayment");
-
 
1092
      }
-
 
1093
 
-
 
1094
      protected createPayment_args getEmptyArgsInstance() {
-
 
1095
        return new createPayment_args();
-
 
1096
      }
-
 
1097
 
-
 
1098
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
702
        createPayment_result result = new createPayment_result();
1099
        createPayment_result result = new createPayment_result();
703
        try {
1100
        try {
704
          result.success = iface_.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
1101
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
705
          result.setSuccessIsSet(true);
1102
          result.setSuccessIsSet(true);
706
        } catch (PaymentException pe) {
1103
        } catch (PaymentException pe) {
707
          result.pe = pe;
1104
          result.pe = pe;
708
        } catch (Throwable th) {
-
 
709
          LOGGER.error("Internal error processing createPayment", th);
-
 
710
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createPayment");
-
 
711
          oprot.writeMessageBegin(new TMessage("createPayment", TMessageType.EXCEPTION, seqid));
-
 
712
          x.write(oprot);
-
 
713
          oprot.writeMessageEnd();
-
 
714
          oprot.getTransport().flush();
-
 
715
          return;
-
 
716
        }
1105
        }
717
        oprot.writeMessageBegin(new TMessage("createPayment", TMessageType.REPLY, seqid));
-
 
718
        result.write(oprot);
1106
        return result;
719
        oprot.writeMessageEnd();
-
 
720
        oprot.getTransport().flush();
-
 
721
      }
1107
      }
722
 
-
 
723
    }
1108
    }
724
 
1109
 
725
    private class getPaymentsForUser implements ProcessFunction {
1110
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
726
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1111
      public getPaymentsForUser() {
-
 
1112
        super("getPaymentsForUser");
727
      {
1113
      }
-
 
1114
 
728
        getPaymentsForUser_args args = new getPaymentsForUser_args();
1115
      protected getPaymentsForUser_args getEmptyArgsInstance() {
729
        args.read(iprot);
1116
        return new getPaymentsForUser_args();
730
        iprot.readMessageEnd();
1117
      }
-
 
1118
 
-
 
1119
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
731
        getPaymentsForUser_result result = new getPaymentsForUser_result();
1120
        getPaymentsForUser_result result = new getPaymentsForUser_result();
732
        try {
1121
        try {
733
          result.success = iface_.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
1122
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
734
        } catch (PaymentException pe) {
1123
        } catch (PaymentException pe) {
735
          result.pe = pe;
1124
          result.pe = pe;
736
        } catch (Throwable th) {
-
 
737
          LOGGER.error("Internal error processing getPaymentsForUser", th);
-
 
738
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPaymentsForUser");
-
 
739
          oprot.writeMessageBegin(new TMessage("getPaymentsForUser", TMessageType.EXCEPTION, seqid));
-
 
740
          x.write(oprot);
-
 
741
          oprot.writeMessageEnd();
-
 
742
          oprot.getTransport().flush();
-
 
743
          return;
-
 
744
        }
1125
        }
745
        oprot.writeMessageBegin(new TMessage("getPaymentsForUser", TMessageType.REPLY, seqid));
-
 
746
        result.write(oprot);
1126
        return result;
747
        oprot.writeMessageEnd();
-
 
748
        oprot.getTransport().flush();
-
 
749
      }
1127
      }
750
 
-
 
751
    }
1128
    }
752
 
1129
 
753
    private class getPayments implements ProcessFunction {
1130
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
754
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1131
      public getPayments() {
-
 
1132
        super("getPayments");
755
      {
1133
      }
-
 
1134
 
756
        getPayments_args args = new getPayments_args();
1135
      protected getPayments_args getEmptyArgsInstance() {
757
        args.read(iprot);
1136
        return new getPayments_args();
758
        iprot.readMessageEnd();
1137
      }
-
 
1138
 
-
 
1139
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
759
        getPayments_result result = new getPayments_result();
1140
        getPayments_result result = new getPayments_result();
760
        try {
1141
        try {
761
          result.success = iface_.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
1142
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
762
        } catch (PaymentException pe) {
1143
        } catch (PaymentException pe) {
763
          result.pe = pe;
1144
          result.pe = pe;
764
        } catch (Throwable th) {
-
 
765
          LOGGER.error("Internal error processing getPayments", th);
-
 
766
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPayments");
-
 
767
          oprot.writeMessageBegin(new TMessage("getPayments", TMessageType.EXCEPTION, seqid));
-
 
768
          x.write(oprot);
-
 
769
          oprot.writeMessageEnd();
-
 
770
          oprot.getTransport().flush();
-
 
771
          return;
-
 
772
        }
1145
        }
773
        oprot.writeMessageBegin(new TMessage("getPayments", TMessageType.REPLY, seqid));
-
 
774
        result.write(oprot);
1146
        return result;
775
        oprot.writeMessageEnd();
-
 
776
        oprot.getTransport().flush();
-
 
777
      }
1147
      }
778
 
-
 
779
    }
1148
    }
780
 
1149
 
781
    private class getPaymentGateway implements ProcessFunction {
1150
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
782
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1151
      public getPaymentGateway() {
-
 
1152
        super("getPaymentGateway");
783
      {
1153
      }
-
 
1154
 
784
        getPaymentGateway_args args = new getPaymentGateway_args();
1155
      protected getPaymentGateway_args getEmptyArgsInstance() {
785
        args.read(iprot);
1156
        return new getPaymentGateway_args();
786
        iprot.readMessageEnd();
1157
      }
-
 
1158
 
-
 
1159
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
787
        getPaymentGateway_result result = new getPaymentGateway_result();
1160
        getPaymentGateway_result result = new getPaymentGateway_result();
788
        try {
1161
        try {
789
          result.success = iface_.getPaymentGateway(args.id);
1162
          result.success = iface.getPaymentGateway(args.id);
790
        } catch (PaymentException pe) {
1163
        } catch (PaymentException pe) {
791
          result.pe = pe;
1164
          result.pe = pe;
792
        } catch (Throwable th) {
-
 
793
          LOGGER.error("Internal error processing getPaymentGateway", th);
-
 
794
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPaymentGateway");
-
 
795
          oprot.writeMessageBegin(new TMessage("getPaymentGateway", TMessageType.EXCEPTION, seqid));
-
 
796
          x.write(oprot);
-
 
797
          oprot.writeMessageEnd();
-
 
798
          oprot.getTransport().flush();
-
 
799
          return;
-
 
800
        }
1165
        }
801
        oprot.writeMessageBegin(new TMessage("getPaymentGateway", TMessageType.REPLY, seqid));
-
 
802
        result.write(oprot);
1166
        return result;
803
        oprot.writeMessageEnd();
-
 
804
        oprot.getTransport().flush();
-
 
805
      }
1167
      }
806
 
-
 
807
    }
1168
    }
808
 
1169
 
809
    private class getPayment implements ProcessFunction {
1170
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
810
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1171
      public getPayment() {
-
 
1172
        super("getPayment");
811
      {
1173
      }
-
 
1174
 
812
        getPayment_args args = new getPayment_args();
1175
      protected getPayment_args getEmptyArgsInstance() {
813
        args.read(iprot);
1176
        return new getPayment_args();
814
        iprot.readMessageEnd();
1177
      }
-
 
1178
 
-
 
1179
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
815
        getPayment_result result = new getPayment_result();
1180
        getPayment_result result = new getPayment_result();
816
        try {
1181
        try {
817
          result.success = iface_.getPayment(args.id);
1182
          result.success = iface.getPayment(args.id);
818
        } catch (PaymentException pe) {
1183
        } catch (PaymentException pe) {
819
          result.pe = pe;
1184
          result.pe = pe;
820
        } catch (Throwable th) {
-
 
821
          LOGGER.error("Internal error processing getPayment", th);
-
 
822
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPayment");
-
 
823
          oprot.writeMessageBegin(new TMessage("getPayment", TMessageType.EXCEPTION, seqid));
-
 
824
          x.write(oprot);
-
 
825
          oprot.writeMessageEnd();
-
 
826
          oprot.getTransport().flush();
-
 
827
          return;
-
 
828
        }
1185
        }
829
        oprot.writeMessageBegin(new TMessage("getPayment", TMessageType.REPLY, seqid));
-
 
830
        result.write(oprot);
1186
        return result;
831
        oprot.writeMessageEnd();
-
 
832
        oprot.getTransport().flush();
-
 
833
      }
1187
      }
834
 
-
 
835
    }
1188
    }
836
 
1189
 
837
    private class getPaymentForTxnId implements ProcessFunction {
1190
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
838
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1191
      public getPaymentForTxnId() {
-
 
1192
        super("getPaymentForTxnId");
839
      {
1193
      }
-
 
1194
 
840
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
1195
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
841
        args.read(iprot);
1196
        return new getPaymentForTxnId_args();
842
        iprot.readMessageEnd();
1197
      }
-
 
1198
 
-
 
1199
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
843
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
1200
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
844
        try {
1201
        try {
845
          result.success = iface_.getPaymentForTxnId(args.txnId);
1202
          result.success = iface.getPaymentForTxnId(args.txnId);
846
        } catch (PaymentException pe) {
1203
        } catch (PaymentException pe) {
847
          result.pe = pe;
1204
          result.pe = pe;
848
        } catch (Throwable th) {
-
 
849
          LOGGER.error("Internal error processing getPaymentForTxnId", th);
-
 
850
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPaymentForTxnId");
-
 
851
          oprot.writeMessageBegin(new TMessage("getPaymentForTxnId", TMessageType.EXCEPTION, seqid));
-
 
852
          x.write(oprot);
-
 
853
          oprot.writeMessageEnd();
-
 
854
          oprot.getTransport().flush();
-
 
855
          return;
-
 
856
        }
1205
        }
857
        oprot.writeMessageBegin(new TMessage("getPaymentForTxnId", TMessageType.REPLY, seqid));
-
 
858
        result.write(oprot);
1206
        return result;
859
        oprot.writeMessageEnd();
-
 
860
        oprot.getTransport().flush();
-
 
861
      }
1207
      }
862
 
-
 
863
    }
1208
    }
864
 
1209
 
865
    private class updatePaymentDetails implements ProcessFunction {
1210
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
866
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1211
      public updatePaymentDetails() {
-
 
1212
        super("updatePaymentDetails");
867
      {
1213
      }
-
 
1214
 
868
        updatePaymentDetails_args args = new updatePaymentDetails_args();
1215
      protected updatePaymentDetails_args getEmptyArgsInstance() {
869
        args.read(iprot);
1216
        return new updatePaymentDetails_args();
870
        iprot.readMessageEnd();
1217
      }
-
 
1218
 
-
 
1219
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
871
        updatePaymentDetails_result result = new updatePaymentDetails_result();
1220
        updatePaymentDetails_result result = new updatePaymentDetails_result();
872
        try {
1221
        try {
873
          result.success = iface_.updatePaymentDetails(args.id, args.gatewayPaymentId, args.sessionId, args.gatewayTxnStatus, args.description, args.gatewayTxnId, args.authCode, args.referenceCode, args.errorCode, args.status, args.gatewayTxnDate, args.attributes);
1222
          result.success = iface.updatePaymentDetails(args.id, args.gatewayPaymentId, args.sessionId, args.gatewayTxnStatus, args.description, args.gatewayTxnId, args.authCode, args.referenceCode, args.errorCode, args.status, args.gatewayTxnDate, args.attributes);
874
          result.setSuccessIsSet(true);
1223
          result.setSuccessIsSet(true);
875
        } catch (PaymentException pe) {
1224
        } catch (PaymentException pe) {
876
          result.pe = pe;
1225
          result.pe = pe;
877
        } catch (Throwable th) {
-
 
878
          LOGGER.error("Internal error processing updatePaymentDetails", th);
-
 
879
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updatePaymentDetails");
-
 
880
          oprot.writeMessageBegin(new TMessage("updatePaymentDetails", TMessageType.EXCEPTION, seqid));
-
 
881
          x.write(oprot);
-
 
882
          oprot.writeMessageEnd();
-
 
883
          oprot.getTransport().flush();
-
 
884
          return;
-
 
885
        }
1226
        }
886
        oprot.writeMessageBegin(new TMessage("updatePaymentDetails", TMessageType.REPLY, seqid));
-
 
887
        result.write(oprot);
1227
        return result;
888
        oprot.writeMessageEnd();
-
 
889
        oprot.getTransport().flush();
-
 
890
      }
1228
      }
891
 
-
 
892
    }
1229
    }
893
 
1230
 
-
 
1231
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
894
    private class getSuccessfulPaymentsAmountRange implements ProcessFunction {
1232
      public getSuccessfulPaymentsAmountRange() {
895
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1233
        super("getSuccessfulPaymentsAmountRange");
896
      {
1234
      }
-
 
1235
 
897
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
1236
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
898
        args.read(iprot);
-
 
899
        iprot.readMessageEnd();
-
 
900
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
-
 
901
        result.success = iface_.getSuccessfulPaymentsAmountRange();
1237
        return new getSuccessfulPaymentsAmountRange_args();
902
        oprot.writeMessageBegin(new TMessage("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid));
-
 
903
        result.write(oprot);
-
 
904
        oprot.writeMessageEnd();
-
 
905
        oprot.getTransport().flush();
-
 
906
      }
1238
      }
907
 
1239
 
-
 
1240
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
-
 
1241
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
-
 
1242
        result.success = iface.getSuccessfulPaymentsAmountRange();
-
 
1243
        return result;
-
 
1244
      }
908
    }
1245
    }
909
 
1246
 
910
    private class captureEbsPayment implements ProcessFunction {
1247
    private static class captureEbsPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, captureEbsPayment_args> {
911
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1248
      public captureEbsPayment() {
-
 
1249
        super("captureEbsPayment");
912
      {
1250
      }
-
 
1251
 
913
        captureEbsPayment_args args = new captureEbsPayment_args();
1252
      protected captureEbsPayment_args getEmptyArgsInstance() {
914
        args.read(iprot);
1253
        return new captureEbsPayment_args();
915
        iprot.readMessageEnd();
1254
      }
-
 
1255
 
-
 
1256
      protected captureEbsPayment_result getResult(I iface, captureEbsPayment_args args) throws org.apache.thrift.TException {
916
        captureEbsPayment_result result = new captureEbsPayment_result();
1257
        captureEbsPayment_result result = new captureEbsPayment_result();
917
        try {
1258
        try {
918
          result.success = iface_.captureEbsPayment(args.merchantPaymentId);
1259
          result.success = iface.captureEbsPayment(args.merchantPaymentId);
919
        } catch (PaymentException pe) {
1260
        } catch (PaymentException pe) {
920
          result.pe = pe;
1261
          result.pe = pe;
921
        } catch (Throwable th) {
-
 
922
          LOGGER.error("Internal error processing captureEbsPayment", th);
-
 
923
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing captureEbsPayment");
-
 
924
          oprot.writeMessageBegin(new TMessage("captureEbsPayment", TMessageType.EXCEPTION, seqid));
-
 
925
          x.write(oprot);
-
 
926
          oprot.writeMessageEnd();
-
 
927
          oprot.getTransport().flush();
-
 
928
          return;
-
 
929
        }
1262
        }
930
        oprot.writeMessageBegin(new TMessage("captureEbsPayment", TMessageType.REPLY, seqid));
-
 
931
        result.write(oprot);
1263
        return result;
932
        oprot.writeMessageEnd();
-
 
933
        oprot.getTransport().flush();
-
 
934
      }
1264
      }
935
 
-
 
936
    }
1265
    }
937
 
1266
 
938
    private class captureHdfcPayment implements ProcessFunction {
1267
    private static class captureHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, captureHdfcPayment_args> {
939
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1268
      public captureHdfcPayment() {
-
 
1269
        super("captureHdfcPayment");
940
      {
1270
      }
-
 
1271
 
941
        captureHdfcPayment_args args = new captureHdfcPayment_args();
1272
      protected captureHdfcPayment_args getEmptyArgsInstance() {
942
        args.read(iprot);
1273
        return new captureHdfcPayment_args();
943
        iprot.readMessageEnd();
1274
      }
-
 
1275
 
-
 
1276
      protected captureHdfcPayment_result getResult(I iface, captureHdfcPayment_args args) throws org.apache.thrift.TException {
944
        captureHdfcPayment_result result = new captureHdfcPayment_result();
1277
        captureHdfcPayment_result result = new captureHdfcPayment_result();
945
        try {
1278
        try {
946
          result.success = iface_.captureHdfcPayment(args.merchantPaymentId);
1279
          result.success = iface.captureHdfcPayment(args.merchantPaymentId);
947
        } catch (PaymentException pe) {
1280
        } catch (PaymentException pe) {
948
          result.pe = pe;
1281
          result.pe = pe;
949
        } catch (Throwable th) {
-
 
950
          LOGGER.error("Internal error processing captureHdfcPayment", th);
-
 
951
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing captureHdfcPayment");
-
 
952
          oprot.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.EXCEPTION, seqid));
-
 
953
          x.write(oprot);
-
 
954
          oprot.writeMessageEnd();
-
 
955
          oprot.getTransport().flush();
-
 
956
          return;
-
 
957
        }
1282
        }
958
        oprot.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.REPLY, seqid));
-
 
959
        result.write(oprot);
1283
        return result;
960
        oprot.writeMessageEnd();
-
 
961
        oprot.getTransport().flush();
-
 
962
      }
1284
      }
963
 
-
 
964
    }
1285
    }
965
 
1286
 
966
    private class initializeHdfcPayment implements ProcessFunction {
1287
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
967
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1288
      public initializeHdfcPayment() {
-
 
1289
        super("initializeHdfcPayment");
968
      {
1290
      }
-
 
1291
 
969
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1292
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
970
        args.read(iprot);
1293
        return new initializeHdfcPayment_args();
971
        iprot.readMessageEnd();
1294
      }
-
 
1295
 
-
 
1296
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
972
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
1297
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
973
        try {
1298
        try {
974
          result.success = iface_.initializeHdfcPayment(args.merchantPaymentId);
1299
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
975
        } catch (PaymentException pe) {
1300
        } catch (PaymentException pe) {
976
          result.pe = pe;
1301
          result.pe = pe;
977
        } catch (Throwable th) {
-
 
978
          LOGGER.error("Internal error processing initializeHdfcPayment", th);
-
 
979
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing initializeHdfcPayment");
-
 
980
          oprot.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.EXCEPTION, seqid));
-
 
981
          x.write(oprot);
-
 
982
          oprot.writeMessageEnd();
-
 
983
          oprot.getTransport().flush();
-
 
984
          return;
-
 
985
        }
1302
        }
986
        oprot.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.REPLY, seqid));
-
 
987
        result.write(oprot);
1303
        return result;
988
        oprot.writeMessageEnd();
-
 
989
        oprot.getTransport().flush();
-
 
990
      }
1304
      }
991
 
-
 
992
    }
1305
    }
993
 
1306
 
994
    private class createRefund implements ProcessFunction {
1307
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
995
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1308
      public createRefund() {
-
 
1309
        super("createRefund");
996
      {
1310
      }
-
 
1311
 
997
        createRefund_args args = new createRefund_args();
1312
      protected createRefund_args getEmptyArgsInstance() {
998
        args.read(iprot);
1313
        return new createRefund_args();
999
        iprot.readMessageEnd();
1314
      }
-
 
1315
 
-
 
1316
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
1000
        createRefund_result result = new createRefund_result();
1317
        createRefund_result result = new createRefund_result();
1001
        try {
1318
        try {
1002
          result.success = iface_.createRefund(args.orderId, args.merchantTxnId, args.amount);
1319
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
1003
          result.setSuccessIsSet(true);
1320
          result.setSuccessIsSet(true);
1004
        } catch (PaymentException pe) {
1321
        } catch (PaymentException pe) {
1005
          result.pe = pe;
1322
          result.pe = pe;
1006
        } catch (Throwable th) {
-
 
1007
          LOGGER.error("Internal error processing createRefund", th);
-
 
1008
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createRefund");
-
 
1009
          oprot.writeMessageBegin(new TMessage("createRefund", TMessageType.EXCEPTION, seqid));
-
 
1010
          x.write(oprot);
-
 
1011
          oprot.writeMessageEnd();
-
 
1012
          oprot.getTransport().flush();
-
 
1013
          return;
-
 
1014
        }
1323
        }
1015
        oprot.writeMessageBegin(new TMessage("createRefund", TMessageType.REPLY, seqid));
-
 
1016
        result.write(oprot);
1324
        return result;
1017
        oprot.writeMessageEnd();
-
 
1018
        oprot.getTransport().flush();
-
 
1019
      }
1325
      }
1020
 
-
 
1021
    }
1326
    }
1022
 
1327
 
1023
    private class capturePayment implements ProcessFunction {
1328
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
1024
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1329
      public capturePayment() {
-
 
1330
        super("capturePayment");
1025
      {
1331
      }
-
 
1332
 
1026
        capturePayment_args args = new capturePayment_args();
1333
      protected capturePayment_args getEmptyArgsInstance() {
1027
        args.read(iprot);
1334
        return new capturePayment_args();
1028
        iprot.readMessageEnd();
1335
      }
-
 
1336
 
-
 
1337
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
1029
        capturePayment_result result = new capturePayment_result();
1338
        capturePayment_result result = new capturePayment_result();
1030
        try {
1339
        try {
1031
          result.success = iface_.capturePayment(args.merchantTxnId);
1340
          result.success = iface.capturePayment(args.merchantTxnId);
1032
          result.setSuccessIsSet(true);
1341
          result.setSuccessIsSet(true);
1033
        } catch (PaymentException pe) {
1342
        } catch (PaymentException pe) {
1034
          result.pe = pe;
1343
          result.pe = pe;
1035
        } catch (Throwable th) {
-
 
1036
          LOGGER.error("Internal error processing capturePayment", th);
-
 
1037
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing capturePayment");
-
 
1038
          oprot.writeMessageBegin(new TMessage("capturePayment", TMessageType.EXCEPTION, seqid));
-
 
1039
          x.write(oprot);
-
 
1040
          oprot.writeMessageEnd();
-
 
1041
          oprot.getTransport().flush();
-
 
1042
          return;
-
 
1043
        }
1344
        }
1044
        oprot.writeMessageBegin(new TMessage("capturePayment", TMessageType.REPLY, seqid));
-
 
1045
        result.write(oprot);
1345
        return result;
1046
        oprot.writeMessageEnd();
-
 
1047
        oprot.getTransport().flush();
-
 
1048
      }
1346
      }
1049
 
-
 
1050
    }
1347
    }
1051
 
1348
 
1052
  }
1349
  }
1053
 
1350
 
1054
  public static class createPayment_args implements TBase<createPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPayment_args>   {
1351
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
1055
    private static final TStruct STRUCT_DESC = new TStruct("createPayment_args");
1352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
1056
 
1353
 
1057
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
1354
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
1058
    private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)2);
1355
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
1059
    private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)3);
1356
    private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)3);
1060
    private static final TField TXN_ID_FIELD_DESC = new TField("txnId", TType.I64, (short)4);
1357
    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)4);
1061
 
1358
 
1062
    private long userId;
1359
    private long userId; // required
1063
    private double amount;
1360
    private double amount; // required
1064
    private long gatewayId;
1361
    private long gatewayId; // required
1065
    private long txnId;
1362
    private long txnId; // required
1066
 
1363
 
1067
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1364
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1068
    public enum _Fields implements TFieldIdEnum {
1365
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1069
      USER_ID((short)1, "userId"),
1366
      USER_ID((short)1, "userId"),
1070
      AMOUNT((short)2, "amount"),
1367
      AMOUNT((short)2, "amount"),
1071
      GATEWAY_ID((short)3, "gatewayId"),
1368
      GATEWAY_ID((short)3, "gatewayId"),
1072
      TXN_ID((short)4, "txnId");
1369
      TXN_ID((short)4, "txnId");
1073
 
1370
 
1074
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1076
 
1372
 
1077
      static {
1373
      static {
1078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1079
          byId.put((int)field._thriftId, field);
-
 
1080
          byName.put(field.getFieldName(), field);
1375
          byName.put(field.getFieldName(), field);
1081
        }
1376
        }
1082
      }
1377
      }
1083
 
1378
 
1084
      /**
1379
      /**
1085
       * Find the _Fields constant that matches fieldId, or null if its not found.
1380
       * Find the _Fields constant that matches fieldId, or null if its not found.
1086
       */
1381
       */
1087
      public static _Fields findByThriftId(int fieldId) {
1382
      public static _Fields findByThriftId(int fieldId) {
1088
        return byId.get(fieldId);
1383
        switch(fieldId) {
-
 
1384
          case 1: // USER_ID
-
 
1385
            return USER_ID;
-
 
1386
          case 2: // AMOUNT
-
 
1387
            return AMOUNT;
-
 
1388
          case 3: // GATEWAY_ID
-
 
1389
            return GATEWAY_ID;
-
 
1390
          case 4: // TXN_ID
-
 
1391
            return TXN_ID;
-
 
1392
          default:
-
 
1393
            return null;
-
 
1394
        }
1089
      }
1395
      }
1090
 
1396
 
1091
      /**
1397
      /**
1092
       * Find the _Fields constant that matches fieldId, throwing an exception
1398
       * Find the _Fields constant that matches fieldId, throwing an exception
1093
       * if it is not found.
1399
       * if it is not found.
Line 1127... Line 1433...
1127
    private static final int __AMOUNT_ISSET_ID = 1;
1433
    private static final int __AMOUNT_ISSET_ID = 1;
1128
    private static final int __GATEWAYID_ISSET_ID = 2;
1434
    private static final int __GATEWAYID_ISSET_ID = 2;
1129
    private static final int __TXNID_ISSET_ID = 3;
1435
    private static final int __TXNID_ISSET_ID = 3;
1130
    private BitSet __isset_bit_vector = new BitSet(4);
1436
    private BitSet __isset_bit_vector = new BitSet(4);
1131
 
1437
 
1132
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1438
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
1134
          new FieldValueMetaData(TType.I64)));
-
 
1135
      put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT, 
-
 
1136
          new FieldValueMetaData(TType.DOUBLE)));
-
 
1137
      put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT, 
-
 
1138
          new FieldValueMetaData(TType.I64)));
-
 
1139
      put(_Fields.TXN_ID, new FieldMetaData("txnId", TFieldRequirementType.DEFAULT, 
-
 
1140
          new FieldValueMetaData(TType.I64)));
-
 
1141
    }});
-
 
1142
 
-
 
1143
    static {
1439
    static {
-
 
1440
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1441
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1443
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
1445
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1447
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1144
      FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
1450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
1145
    }
1451
    }
1146
 
1452
 
1147
    public createPayment_args() {
1453
    public createPayment_args() {
1148
    }
1454
    }
1149
 
1455
 
Line 1178... Line 1484...
1178
 
1484
 
1179
    public createPayment_args deepCopy() {
1485
    public createPayment_args deepCopy() {
1180
      return new createPayment_args(this);
1486
      return new createPayment_args(this);
1181
    }
1487
    }
1182
 
1488
 
1183
    @Deprecated
1489
    @Override
1184
    public createPayment_args clone() {
1490
    public void clear() {
-
 
1491
      setUserIdIsSet(false);
-
 
1492
      this.userId = 0;
-
 
1493
      setAmountIsSet(false);
-
 
1494
      this.amount = 0.0;
1185
      return new createPayment_args(this);
1495
      setGatewayIdIsSet(false);
-
 
1496
      this.gatewayId = 0;
-
 
1497
      setTxnIdIsSet(false);
-
 
1498
      this.txnId = 0;
1186
    }
1499
    }
1187
 
1500
 
1188
    public long getUserId() {
1501
    public long getUserId() {
1189
      return this.userId;
1502
      return this.userId;
1190
    }
1503
    }
1191
 
1504
 
1192
    public createPayment_args setUserId(long userId) {
1505
    public void setUserId(long userId) {
1193
      this.userId = userId;
1506
      this.userId = userId;
1194
      setUserIdIsSet(true);
1507
      setUserIdIsSet(true);
1195
      return this;
-
 
1196
    }
1508
    }
1197
 
1509
 
1198
    public void unsetUserId() {
1510
    public void unsetUserId() {
1199
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1511
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1200
    }
1512
    }
1201
 
1513
 
1202
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
1514
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1203
    public boolean isSetUserId() {
1515
    public boolean isSetUserId() {
1204
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1516
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1205
    }
1517
    }
1206
 
1518
 
1207
    public void setUserIdIsSet(boolean value) {
1519
    public void setUserIdIsSet(boolean value) {
Line 1210... Line 1522...
1210
 
1522
 
1211
    public double getAmount() {
1523
    public double getAmount() {
1212
      return this.amount;
1524
      return this.amount;
1213
    }
1525
    }
1214
 
1526
 
1215
    public createPayment_args setAmount(double amount) {
1527
    public void setAmount(double amount) {
1216
      this.amount = amount;
1528
      this.amount = amount;
1217
      setAmountIsSet(true);
1529
      setAmountIsSet(true);
1218
      return this;
-
 
1219
    }
1530
    }
1220
 
1531
 
1221
    public void unsetAmount() {
1532
    public void unsetAmount() {
1222
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
1533
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
1223
    }
1534
    }
1224
 
1535
 
1225
    /** Returns true if field amount is set (has been asigned a value) and false otherwise */
1536
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
1226
    public boolean isSetAmount() {
1537
    public boolean isSetAmount() {
1227
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
1538
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
1228
    }
1539
    }
1229
 
1540
 
1230
    public void setAmountIsSet(boolean value) {
1541
    public void setAmountIsSet(boolean value) {
Line 1233... Line 1544...
1233
 
1544
 
1234
    public long getGatewayId() {
1545
    public long getGatewayId() {
1235
      return this.gatewayId;
1546
      return this.gatewayId;
1236
    }
1547
    }
1237
 
1548
 
1238
    public createPayment_args setGatewayId(long gatewayId) {
1549
    public void setGatewayId(long gatewayId) {
1239
      this.gatewayId = gatewayId;
1550
      this.gatewayId = gatewayId;
1240
      setGatewayIdIsSet(true);
1551
      setGatewayIdIsSet(true);
1241
      return this;
-
 
1242
    }
1552
    }
1243
 
1553
 
1244
    public void unsetGatewayId() {
1554
    public void unsetGatewayId() {
1245
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
1555
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
1246
    }
1556
    }
1247
 
1557
 
1248
    /** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
1558
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
1249
    public boolean isSetGatewayId() {
1559
    public boolean isSetGatewayId() {
1250
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
1560
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
1251
    }
1561
    }
1252
 
1562
 
1253
    public void setGatewayIdIsSet(boolean value) {
1563
    public void setGatewayIdIsSet(boolean value) {
Line 1256... Line 1566...
1256
 
1566
 
1257
    public long getTxnId() {
1567
    public long getTxnId() {
1258
      return this.txnId;
1568
      return this.txnId;
1259
    }
1569
    }
1260
 
1570
 
1261
    public createPayment_args setTxnId(long txnId) {
1571
    public void setTxnId(long txnId) {
1262
      this.txnId = txnId;
1572
      this.txnId = txnId;
1263
      setTxnIdIsSet(true);
1573
      setTxnIdIsSet(true);
1264
      return this;
-
 
1265
    }
1574
    }
1266
 
1575
 
1267
    public void unsetTxnId() {
1576
    public void unsetTxnId() {
1268
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
1577
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
1269
    }
1578
    }
1270
 
1579
 
1271
    /** Returns true if field txnId is set (has been asigned a value) and false otherwise */
1580
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
1272
    public boolean isSetTxnId() {
1581
    public boolean isSetTxnId() {
1273
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
1582
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
1274
    }
1583
    }
1275
 
1584
 
1276
    public void setTxnIdIsSet(boolean value) {
1585
    public void setTxnIdIsSet(boolean value) {
Line 1312... Line 1621...
1312
        break;
1621
        break;
1313
 
1622
 
1314
      }
1623
      }
1315
    }
1624
    }
1316
 
1625
 
1317
    public void setFieldValue(int fieldID, Object value) {
-
 
1318
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1319
    }
-
 
1320
 
-
 
1321
    public Object getFieldValue(_Fields field) {
1626
    public Object getFieldValue(_Fields field) {
1322
      switch (field) {
1627
      switch (field) {
1323
      case USER_ID:
1628
      case USER_ID:
1324
        return new Long(getUserId());
1629
        return Long.valueOf(getUserId());
1325
 
1630
 
1326
      case AMOUNT:
1631
      case AMOUNT:
1327
        return new Double(getAmount());
1632
        return Double.valueOf(getAmount());
1328
 
1633
 
1329
      case GATEWAY_ID:
1634
      case GATEWAY_ID:
1330
        return new Long(getGatewayId());
1635
        return Long.valueOf(getGatewayId());
1331
 
1636
 
1332
      case TXN_ID:
1637
      case TXN_ID:
1333
        return new Long(getTxnId());
1638
        return Long.valueOf(getTxnId());
1334
 
1639
 
1335
      }
1640
      }
1336
      throw new IllegalStateException();
1641
      throw new IllegalStateException();
1337
    }
1642
    }
1338
 
1643
 
1339
    public Object getFieldValue(int fieldId) {
-
 
1340
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1341
    }
-
 
1342
 
-
 
1343
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1344
    public boolean isSet(_Fields field) {
1645
    public boolean isSet(_Fields field) {
-
 
1646
      if (field == null) {
-
 
1647
        throw new IllegalArgumentException();
-
 
1648
      }
-
 
1649
 
1345
      switch (field) {
1650
      switch (field) {
1346
      case USER_ID:
1651
      case USER_ID:
1347
        return isSetUserId();
1652
        return isSetUserId();
1348
      case AMOUNT:
1653
      case AMOUNT:
1349
        return isSetAmount();
1654
        return isSetAmount();
Line 1353... Line 1658...
1353
        return isSetTxnId();
1658
        return isSetTxnId();
1354
      }
1659
      }
1355
      throw new IllegalStateException();
1660
      throw new IllegalStateException();
1356
    }
1661
    }
1357
 
1662
 
1358
    public boolean isSet(int fieldID) {
-
 
1359
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1360
    }
-
 
1361
 
-
 
1362
    @Override
1663
    @Override
1363
    public boolean equals(Object that) {
1664
    public boolean equals(Object that) {
1364
      if (that == null)
1665
      if (that == null)
1365
        return false;
1666
        return false;
1366
      if (that instanceof createPayment_args)
1667
      if (that instanceof createPayment_args)
Line 1422... Line 1723...
1422
      }
1723
      }
1423
 
1724
 
1424
      int lastComparison = 0;
1725
      int lastComparison = 0;
1425
      createPayment_args typedOther = (createPayment_args)other;
1726
      createPayment_args typedOther = (createPayment_args)other;
1426
 
1727
 
1427
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
1728
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1428
      if (lastComparison != 0) {
1729
      if (lastComparison != 0) {
1429
        return lastComparison;
1730
        return lastComparison;
1430
      }
1731
      }
-
 
1732
      if (isSetUserId()) {
1431
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
1733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
1432
      if (lastComparison != 0) {
1734
        if (lastComparison != 0) {
1433
        return lastComparison;
1735
          return lastComparison;
-
 
1736
        }
1434
      }
1737
      }
1435
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
1738
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
1436
      if (lastComparison != 0) {
1739
      if (lastComparison != 0) {
1437
        return lastComparison;
1740
        return lastComparison;
1438
      }
1741
      }
-
 
1742
      if (isSetAmount()) {
1439
      lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
1743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
1440
      if (lastComparison != 0) {
1744
        if (lastComparison != 0) {
1441
        return lastComparison;
1745
          return lastComparison;
-
 
1746
        }
1442
      }
1747
      }
1443
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
1748
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
1444
      if (lastComparison != 0) {
1749
      if (lastComparison != 0) {
1445
        return lastComparison;
1750
        return lastComparison;
1446
      }
1751
      }
-
 
1752
      if (isSetGatewayId()) {
1447
      lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
1753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
1448
      if (lastComparison != 0) {
1754
        if (lastComparison != 0) {
1449
        return lastComparison;
1755
          return lastComparison;
-
 
1756
        }
1450
      }
1757
      }
1451
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(isSetTxnId());
1758
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
1452
      if (lastComparison != 0) {
1759
      if (lastComparison != 0) {
1453
        return lastComparison;
1760
        return lastComparison;
1454
      }
1761
      }
-
 
1762
      if (isSetTxnId()) {
1455
      lastComparison = TBaseHelper.compareTo(txnId, typedOther.txnId);
1763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
1456
      if (lastComparison != 0) {
1764
        if (lastComparison != 0) {
1457
        return lastComparison;
1765
          return lastComparison;
-
 
1766
        }
1458
      }
1767
      }
1459
      return 0;
1768
      return 0;
1460
    }
1769
    }
1461
 
1770
 
-
 
1771
    public _Fields fieldForId(int fieldId) {
-
 
1772
      return _Fields.findByThriftId(fieldId);
-
 
1773
    }
-
 
1774
 
1462
    public void read(TProtocol iprot) throws TException {
1775
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1463
      TField field;
1776
      org.apache.thrift.protocol.TField field;
1464
      iprot.readStructBegin();
1777
      iprot.readStructBegin();
1465
      while (true)
1778
      while (true)
1466
      {
1779
      {
1467
        field = iprot.readFieldBegin();
1780
        field = iprot.readFieldBegin();
1468
        if (field.type == TType.STOP) { 
1781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1469
          break;
1782
          break;
1470
        }
1783
        }
1471
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1472
        if (fieldId == null) {
-
 
1473
          TProtocolUtil.skip(iprot, field.type);
-
 
1474
        } else {
-
 
1475
          switch (fieldId) {
1784
        switch (field.id) {
1476
            case USER_ID:
1785
          case 1: // USER_ID
1477
              if (field.type == TType.I64) {
1786
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1478
                this.userId = iprot.readI64();
1787
              this.userId = iprot.readI64();
1479
                setUserIdIsSet(true);
1788
              setUserIdIsSet(true);
1480
              } else { 
1789
            } else { 
1481
                TProtocolUtil.skip(iprot, field.type);
1790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1482
              }
1791
            }
1483
              break;
1792
            break;
1484
            case AMOUNT:
1793
          case 2: // AMOUNT
1485
              if (field.type == TType.DOUBLE) {
1794
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1486
                this.amount = iprot.readDouble();
1795
              this.amount = iprot.readDouble();
1487
                setAmountIsSet(true);
1796
              setAmountIsSet(true);
1488
              } else { 
1797
            } else { 
1489
                TProtocolUtil.skip(iprot, field.type);
1798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1490
              }
1799
            }
1491
              break;
1800
            break;
1492
            case GATEWAY_ID:
1801
          case 3: // GATEWAY_ID
1493
              if (field.type == TType.I64) {
1802
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1494
                this.gatewayId = iprot.readI64();
1803
              this.gatewayId = iprot.readI64();
1495
                setGatewayIdIsSet(true);
1804
              setGatewayIdIsSet(true);
1496
              } else { 
1805
            } else { 
1497
                TProtocolUtil.skip(iprot, field.type);
1806
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1498
              }
1807
            }
1499
              break;
1808
            break;
1500
            case TXN_ID:
1809
          case 4: // TXN_ID
1501
              if (field.type == TType.I64) {
1810
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1502
                this.txnId = iprot.readI64();
1811
              this.txnId = iprot.readI64();
1503
                setTxnIdIsSet(true);
1812
              setTxnIdIsSet(true);
1504
              } else { 
1813
            } else { 
1505
                TProtocolUtil.skip(iprot, field.type);
1814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1506
              }
1815
            }
1507
              break;
1816
            break;
1508
          }
1817
          default:
1509
          iprot.readFieldEnd();
1818
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1510
        }
1819
        }
-
 
1820
        iprot.readFieldEnd();
1511
      }
1821
      }
1512
      iprot.readStructEnd();
1822
      iprot.readStructEnd();
1513
      validate();
1823
      validate();
1514
    }
1824
    }
1515
 
1825
 
1516
    public void write(TProtocol oprot) throws TException {
1826
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1517
      validate();
1827
      validate();
1518
 
1828
 
1519
      oprot.writeStructBegin(STRUCT_DESC);
1829
      oprot.writeStructBegin(STRUCT_DESC);
1520
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1830
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1521
      oprot.writeI64(this.userId);
1831
      oprot.writeI64(this.userId);
Line 1555... Line 1865...
1555
      first = false;
1865
      first = false;
1556
      sb.append(")");
1866
      sb.append(")");
1557
      return sb.toString();
1867
      return sb.toString();
1558
    }
1868
    }
1559
 
1869
 
1560
    public void validate() throws TException {
1870
    public void validate() throws org.apache.thrift.TException {
1561
      // check for required fields
1871
      // check for required fields
1562
    }
1872
    }
1563
 
1873
 
-
 
1874
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1875
      try {
-
 
1876
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1877
      } catch (org.apache.thrift.TException te) {
-
 
1878
        throw new java.io.IOException(te);
-
 
1879
      }
-
 
1880
    }
-
 
1881
 
-
 
1882
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1883
      try {
-
 
1884
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1885
      } catch (org.apache.thrift.TException te) {
-
 
1886
        throw new java.io.IOException(te);
-
 
1887
      }
-
 
1888
    }
-
 
1889
 
1564
  }
1890
  }
1565
 
1891
 
1566
  public static class createPayment_result implements TBase<createPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPayment_result>   {
1892
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
1567
    private static final TStruct STRUCT_DESC = new TStruct("createPayment_result");
1893
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
1568
 
1894
 
1569
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
1895
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
1570
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
1896
    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);
1571
 
1897
 
1572
    private long success;
1898
    private long success; // required
1573
    private PaymentException pe;
1899
    private PaymentException pe; // required
1574
 
1900
 
1575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1901
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1576
    public enum _Fields implements TFieldIdEnum {
1902
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1577
      SUCCESS((short)0, "success"),
1903
      SUCCESS((short)0, "success"),
1578
      PE((short)1, "pe");
1904
      PE((short)1, "pe");
1579
 
1905
 
1580
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1582
 
1907
 
1583
      static {
1908
      static {
1584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1585
          byId.put((int)field._thriftId, field);
-
 
1586
          byName.put(field.getFieldName(), field);
1910
          byName.put(field.getFieldName(), field);
1587
        }
1911
        }
1588
      }
1912
      }
1589
 
1913
 
1590
      /**
1914
      /**
1591
       * Find the _Fields constant that matches fieldId, or null if its not found.
1915
       * Find the _Fields constant that matches fieldId, or null if its not found.
1592
       */
1916
       */
1593
      public static _Fields findByThriftId(int fieldId) {
1917
      public static _Fields findByThriftId(int fieldId) {
1594
        return byId.get(fieldId);
1918
        switch(fieldId) {
-
 
1919
          case 0: // SUCCESS
-
 
1920
            return SUCCESS;
-
 
1921
          case 1: // PE
-
 
1922
            return PE;
-
 
1923
          default:
-
 
1924
            return null;
-
 
1925
        }
1595
      }
1926
      }
1596
 
1927
 
1597
      /**
1928
      /**
1598
       * Find the _Fields constant that matches fieldId, throwing an exception
1929
       * Find the _Fields constant that matches fieldId, throwing an exception
1599
       * if it is not found.
1930
       * if it is not found.
Line 1630... Line 1961...
1630
 
1961
 
1631
    // isset id assignments
1962
    // isset id assignments
1632
    private static final int __SUCCESS_ISSET_ID = 0;
1963
    private static final int __SUCCESS_ISSET_ID = 0;
1633
    private BitSet __isset_bit_vector = new BitSet(1);
1964
    private BitSet __isset_bit_vector = new BitSet(1);
1634
 
1965
 
1635
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1966
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1636
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1637
          new FieldValueMetaData(TType.I64)));
-
 
1638
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
1639
          new FieldValueMetaData(TType.STRUCT)));
-
 
1640
    }});
-
 
1641
 
-
 
1642
    static {
1967
    static {
-
 
1968
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1969
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1971
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
1973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1643
      FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
1974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
1644
    }
1975
    }
1645
 
1976
 
1646
    public createPayment_result() {
1977
    public createPayment_result() {
1647
    }
1978
    }
1648
 
1979
 
Line 1670... Line 2001...
1670
 
2001
 
1671
    public createPayment_result deepCopy() {
2002
    public createPayment_result deepCopy() {
1672
      return new createPayment_result(this);
2003
      return new createPayment_result(this);
1673
    }
2004
    }
1674
 
2005
 
1675
    @Deprecated
2006
    @Override
1676
    public createPayment_result clone() {
2007
    public void clear() {
1677
      return new createPayment_result(this);
2008
      setSuccessIsSet(false);
-
 
2009
      this.success = 0;
-
 
2010
      this.pe = null;
1678
    }
2011
    }
1679
 
2012
 
1680
    public long getSuccess() {
2013
    public long getSuccess() {
1681
      return this.success;
2014
      return this.success;
1682
    }
2015
    }
1683
 
2016
 
1684
    public createPayment_result setSuccess(long success) {
2017
    public void setSuccess(long success) {
1685
      this.success = success;
2018
      this.success = success;
1686
      setSuccessIsSet(true);
2019
      setSuccessIsSet(true);
1687
      return this;
-
 
1688
    }
2020
    }
1689
 
2021
 
1690
    public void unsetSuccess() {
2022
    public void unsetSuccess() {
1691
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2023
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1692
    }
2024
    }
1693
 
2025
 
1694
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
2026
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1695
    public boolean isSetSuccess() {
2027
    public boolean isSetSuccess() {
1696
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2028
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1697
    }
2029
    }
1698
 
2030
 
1699
    public void setSuccessIsSet(boolean value) {
2031
    public void setSuccessIsSet(boolean value) {
Line 1702... Line 2034...
1702
 
2034
 
1703
    public PaymentException getPe() {
2035
    public PaymentException getPe() {
1704
      return this.pe;
2036
      return this.pe;
1705
    }
2037
    }
1706
 
2038
 
1707
    public createPayment_result setPe(PaymentException pe) {
2039
    public void setPe(PaymentException pe) {
1708
      this.pe = pe;
2040
      this.pe = pe;
1709
      return this;
-
 
1710
    }
2041
    }
1711
 
2042
 
1712
    public void unsetPe() {
2043
    public void unsetPe() {
1713
      this.pe = null;
2044
      this.pe = null;
1714
    }
2045
    }
1715
 
2046
 
1716
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
2047
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
1717
    public boolean isSetPe() {
2048
    public boolean isSetPe() {
1718
      return this.pe != null;
2049
      return this.pe != null;
1719
    }
2050
    }
1720
 
2051
 
1721
    public void setPeIsSet(boolean value) {
2052
    public void setPeIsSet(boolean value) {
Line 1743... Line 2074...
1743
        break;
2074
        break;
1744
 
2075
 
1745
      }
2076
      }
1746
    }
2077
    }
1747
 
2078
 
1748
    public void setFieldValue(int fieldID, Object value) {
-
 
1749
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1750
    }
-
 
1751
 
-
 
1752
    public Object getFieldValue(_Fields field) {
2079
    public Object getFieldValue(_Fields field) {
1753
      switch (field) {
2080
      switch (field) {
1754
      case SUCCESS:
2081
      case SUCCESS:
1755
        return new Long(getSuccess());
2082
        return Long.valueOf(getSuccess());
1756
 
2083
 
1757
      case PE:
2084
      case PE:
1758
        return getPe();
2085
        return getPe();
1759
 
2086
 
1760
      }
2087
      }
1761
      throw new IllegalStateException();
2088
      throw new IllegalStateException();
1762
    }
2089
    }
1763
 
2090
 
1764
    public Object getFieldValue(int fieldId) {
-
 
1765
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1766
    }
-
 
1767
 
-
 
1768
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2091
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1769
    public boolean isSet(_Fields field) {
2092
    public boolean isSet(_Fields field) {
-
 
2093
      if (field == null) {
-
 
2094
        throw new IllegalArgumentException();
-
 
2095
      }
-
 
2096
 
1770
      switch (field) {
2097
      switch (field) {
1771
      case SUCCESS:
2098
      case SUCCESS:
1772
        return isSetSuccess();
2099
        return isSetSuccess();
1773
      case PE:
2100
      case PE:
1774
        return isSetPe();
2101
        return isSetPe();
1775
      }
2102
      }
1776
      throw new IllegalStateException();
2103
      throw new IllegalStateException();
1777
    }
2104
    }
1778
 
2105
 
1779
    public boolean isSet(int fieldID) {
-
 
1780
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1781
    }
-
 
1782
 
-
 
1783
    @Override
2106
    @Override
1784
    public boolean equals(Object that) {
2107
    public boolean equals(Object that) {
1785
      if (that == null)
2108
      if (that == null)
1786
        return false;
2109
        return false;
1787
      if (that instanceof createPayment_result)
2110
      if (that instanceof createPayment_result)
Line 1825... Line 2148...
1825
      }
2148
      }
1826
 
2149
 
1827
      int lastComparison = 0;
2150
      int lastComparison = 0;
1828
      createPayment_result typedOther = (createPayment_result)other;
2151
      createPayment_result typedOther = (createPayment_result)other;
1829
 
2152
 
1830
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2153
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1831
      if (lastComparison != 0) {
2154
      if (lastComparison != 0) {
1832
        return lastComparison;
2155
        return lastComparison;
1833
      }
2156
      }
-
 
2157
      if (isSetSuccess()) {
1834
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
2158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1835
      if (lastComparison != 0) {
2159
        if (lastComparison != 0) {
1836
        return lastComparison;
2160
          return lastComparison;
-
 
2161
        }
1837
      }
2162
      }
1838
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
2163
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
1839
      if (lastComparison != 0) {
2164
      if (lastComparison != 0) {
1840
        return lastComparison;
2165
        return lastComparison;
1841
      }
2166
      }
-
 
2167
      if (isSetPe()) {
1842
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
2168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
1843
      if (lastComparison != 0) {
2169
        if (lastComparison != 0) {
1844
        return lastComparison;
2170
          return lastComparison;
-
 
2171
        }
1845
      }
2172
      }
1846
      return 0;
2173
      return 0;
1847
    }
2174
    }
1848
 
2175
 
-
 
2176
    public _Fields fieldForId(int fieldId) {
-
 
2177
      return _Fields.findByThriftId(fieldId);
-
 
2178
    }
-
 
2179
 
1849
    public void read(TProtocol iprot) throws TException {
2180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1850
      TField field;
2181
      org.apache.thrift.protocol.TField field;
1851
      iprot.readStructBegin();
2182
      iprot.readStructBegin();
1852
      while (true)
2183
      while (true)
1853
      {
2184
      {
1854
        field = iprot.readFieldBegin();
2185
        field = iprot.readFieldBegin();
1855
        if (field.type == TType.STOP) { 
2186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1856
          break;
2187
          break;
1857
        }
2188
        }
1858
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1859
        if (fieldId == null) {
-
 
1860
          TProtocolUtil.skip(iprot, field.type);
-
 
1861
        } else {
-
 
1862
          switch (fieldId) {
2189
        switch (field.id) {
1863
            case SUCCESS:
2190
          case 0: // SUCCESS
1864
              if (field.type == TType.I64) {
2191
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1865
                this.success = iprot.readI64();
2192
              this.success = iprot.readI64();
1866
                setSuccessIsSet(true);
2193
              setSuccessIsSet(true);
1867
              } else { 
2194
            } else { 
1868
                TProtocolUtil.skip(iprot, field.type);
2195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1869
              }
2196
            }
1870
              break;
2197
            break;
1871
            case PE:
2198
          case 1: // PE
1872
              if (field.type == TType.STRUCT) {
2199
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1873
                this.pe = new PaymentException();
2200
              this.pe = new PaymentException();
1874
                this.pe.read(iprot);
2201
              this.pe.read(iprot);
1875
              } else { 
2202
            } else { 
1876
                TProtocolUtil.skip(iprot, field.type);
2203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1877
              }
2204
            }
1878
              break;
2205
            break;
1879
          }
2206
          default:
1880
          iprot.readFieldEnd();
2207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1881
        }
2208
        }
-
 
2209
        iprot.readFieldEnd();
1882
      }
2210
      }
1883
      iprot.readStructEnd();
2211
      iprot.readStructEnd();
1884
      validate();
2212
      validate();
1885
    }
2213
    }
1886
 
2214
 
1887
    public void write(TProtocol oprot) throws TException {
2215
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1888
      oprot.writeStructBegin(STRUCT_DESC);
2216
      oprot.writeStructBegin(STRUCT_DESC);
1889
 
2217
 
1890
      if (this.isSetSuccess()) {
2218
      if (this.isSetSuccess()) {
1891
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1892
        oprot.writeI64(this.success);
2220
        oprot.writeI64(this.success);
Line 1918... Line 2246...
1918
      first = false;
2246
      first = false;
1919
      sb.append(")");
2247
      sb.append(")");
1920
      return sb.toString();
2248
      return sb.toString();
1921
    }
2249
    }
1922
 
2250
 
1923
    public void validate() throws TException {
2251
    public void validate() throws org.apache.thrift.TException {
1924
      // check for required fields
2252
      // check for required fields
1925
    }
2253
    }
1926
 
2254
 
-
 
2255
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2256
      try {
-
 
2257
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2258
      } catch (org.apache.thrift.TException te) {
-
 
2259
        throw new java.io.IOException(te);
-
 
2260
      }
-
 
2261
    }
-
 
2262
 
-
 
2263
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2264
      try {
-
 
2265
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2266
      } catch (org.apache.thrift.TException te) {
-
 
2267
        throw new java.io.IOException(te);
-
 
2268
      }
-
 
2269
    }
-
 
2270
 
1927
  }
2271
  }
1928
 
2272
 
1929
  public static class getPaymentsForUser_args implements TBase<getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentsForUser_args>   {
2273
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
1930
    private static final TStruct STRUCT_DESC = new TStruct("getPaymentsForUser_args");
2274
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
1931
 
2275
 
1932
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
2276
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
1933
    private static final TField FROM_TIME_FIELD_DESC = new TField("fromTime", TType.I64, (short)2);
2277
    private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)2);
1934
    private static final TField TO_TIME_FIELD_DESC = new TField("toTime", TType.I64, (short)3);
2278
    private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)3);
1935
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
2279
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)4);
1936
    private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)5);
2280
    private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)5);
1937
 
2281
 
1938
    private long userId;
2282
    private long userId; // required
1939
    private long fromTime;
2283
    private long fromTime; // required
1940
    private long toTime;
2284
    private long toTime; // required
1941
    private PaymentStatus status;
2285
    private PaymentStatus status; // required
1942
    private long gatewayId;
2286
    private long gatewayId; // required
1943
 
2287
 
1944
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1945
    public enum _Fields implements TFieldIdEnum {
2289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1946
      USER_ID((short)1, "userId"),
2290
      USER_ID((short)1, "userId"),
1947
      FROM_TIME((short)2, "fromTime"),
2291
      FROM_TIME((short)2, "fromTime"),
1948
      TO_TIME((short)3, "toTime"),
2292
      TO_TIME((short)3, "toTime"),
1949
      /**
2293
      /**
1950
       * 
2294
       * 
1951
       * @see PaymentStatus
2295
       * @see PaymentStatus
1952
       */
2296
       */
1953
      STATUS((short)4, "status"),
2297
      STATUS((short)4, "status"),
1954
      GATEWAY_ID((short)5, "gatewayId");
2298
      GATEWAY_ID((short)5, "gatewayId");
1955
 
2299
 
1956
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1958
 
2301
 
1959
      static {
2302
      static {
1960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1961
          byId.put((int)field._thriftId, field);
-
 
1962
          byName.put(field.getFieldName(), field);
2304
          byName.put(field.getFieldName(), field);
1963
        }
2305
        }
1964
      }
2306
      }
1965
 
2307
 
1966
      /**
2308
      /**
1967
       * Find the _Fields constant that matches fieldId, or null if its not found.
2309
       * Find the _Fields constant that matches fieldId, or null if its not found.
1968
       */
2310
       */
1969
      public static _Fields findByThriftId(int fieldId) {
2311
      public static _Fields findByThriftId(int fieldId) {
1970
        return byId.get(fieldId);
2312
        switch(fieldId) {
-
 
2313
          case 1: // USER_ID
-
 
2314
            return USER_ID;
-
 
2315
          case 2: // FROM_TIME
-
 
2316
            return FROM_TIME;
-
 
2317
          case 3: // TO_TIME
-
 
2318
            return TO_TIME;
-
 
2319
          case 4: // STATUS
-
 
2320
            return STATUS;
-
 
2321
          case 5: // GATEWAY_ID
-
 
2322
            return GATEWAY_ID;
-
 
2323
          default:
-
 
2324
            return null;
-
 
2325
        }
1971
      }
2326
      }
1972
 
2327
 
1973
      /**
2328
      /**
1974
       * Find the _Fields constant that matches fieldId, throwing an exception
2329
       * Find the _Fields constant that matches fieldId, throwing an exception
1975
       * if it is not found.
2330
       * if it is not found.
Line 2009... Line 2364...
2009
    private static final int __FROMTIME_ISSET_ID = 1;
2364
    private static final int __FROMTIME_ISSET_ID = 1;
2010
    private static final int __TOTIME_ISSET_ID = 2;
2365
    private static final int __TOTIME_ISSET_ID = 2;
2011
    private static final int __GATEWAYID_ISSET_ID = 3;
2366
    private static final int __GATEWAYID_ISSET_ID = 3;
2012
    private BitSet __isset_bit_vector = new BitSet(4);
2367
    private BitSet __isset_bit_vector = new BitSet(4);
2013
 
2368
 
2014
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2369
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2015
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
2016
          new FieldValueMetaData(TType.I64)));
-
 
2017
      put(_Fields.FROM_TIME, new FieldMetaData("fromTime", TFieldRequirementType.DEFAULT, 
-
 
2018
          new FieldValueMetaData(TType.I64)));
-
 
2019
      put(_Fields.TO_TIME, new FieldMetaData("toTime", TFieldRequirementType.DEFAULT, 
-
 
2020
          new FieldValueMetaData(TType.I64)));
-
 
2021
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
2022
          new EnumMetaData(TType.ENUM, PaymentStatus.class)));
-
 
2023
      put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT, 
-
 
2024
          new FieldValueMetaData(TType.I64)));
-
 
2025
    }});
-
 
2026
 
-
 
2027
    static {
2370
    static {
-
 
2371
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2372
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2374
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2375
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2376
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2378
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2379
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
-
 
2380
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2382
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2028
      FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
2383
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
2029
    }
2384
    }
2030
 
2385
 
2031
    public getPaymentsForUser_args() {
2386
    public getPaymentsForUser_args() {
2032
    }
2387
    }
2033
 
2388
 
Line 2067... Line 2422...
2067
 
2422
 
2068
    public getPaymentsForUser_args deepCopy() {
2423
    public getPaymentsForUser_args deepCopy() {
2069
      return new getPaymentsForUser_args(this);
2424
      return new getPaymentsForUser_args(this);
2070
    }
2425
    }
2071
 
2426
 
2072
    @Deprecated
2427
    @Override
2073
    public getPaymentsForUser_args clone() {
2428
    public void clear() {
-
 
2429
      setUserIdIsSet(false);
-
 
2430
      this.userId = 0;
-
 
2431
      setFromTimeIsSet(false);
-
 
2432
      this.fromTime = 0;
-
 
2433
      setToTimeIsSet(false);
-
 
2434
      this.toTime = 0;
-
 
2435
      this.status = null;
2074
      return new getPaymentsForUser_args(this);
2436
      setGatewayIdIsSet(false);
-
 
2437
      this.gatewayId = 0;
2075
    }
2438
    }
2076
 
2439
 
2077
    public long getUserId() {
2440
    public long getUserId() {
2078
      return this.userId;
2441
      return this.userId;
2079
    }
2442
    }
2080
 
2443
 
2081
    public getPaymentsForUser_args setUserId(long userId) {
2444
    public void setUserId(long userId) {
2082
      this.userId = userId;
2445
      this.userId = userId;
2083
      setUserIdIsSet(true);
2446
      setUserIdIsSet(true);
2084
      return this;
-
 
2085
    }
2447
    }
2086
 
2448
 
2087
    public void unsetUserId() {
2449
    public void unsetUserId() {
2088
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2450
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2089
    }
2451
    }
2090
 
2452
 
2091
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
2453
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2092
    public boolean isSetUserId() {
2454
    public boolean isSetUserId() {
2093
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2455
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2094
    }
2456
    }
2095
 
2457
 
2096
    public void setUserIdIsSet(boolean value) {
2458
    public void setUserIdIsSet(boolean value) {
Line 2099... Line 2461...
2099
 
2461
 
2100
    public long getFromTime() {
2462
    public long getFromTime() {
2101
      return this.fromTime;
2463
      return this.fromTime;
2102
    }
2464
    }
2103
 
2465
 
2104
    public getPaymentsForUser_args setFromTime(long fromTime) {
2466
    public void setFromTime(long fromTime) {
2105
      this.fromTime = fromTime;
2467
      this.fromTime = fromTime;
2106
      setFromTimeIsSet(true);
2468
      setFromTimeIsSet(true);
2107
      return this;
-
 
2108
    }
2469
    }
2109
 
2470
 
2110
    public void unsetFromTime() {
2471
    public void unsetFromTime() {
2111
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
2472
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
2112
    }
2473
    }
2113
 
2474
 
2114
    /** Returns true if field fromTime is set (has been asigned a value) and false otherwise */
2475
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
2115
    public boolean isSetFromTime() {
2476
    public boolean isSetFromTime() {
2116
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
2477
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
2117
    }
2478
    }
2118
 
2479
 
2119
    public void setFromTimeIsSet(boolean value) {
2480
    public void setFromTimeIsSet(boolean value) {
Line 2122... Line 2483...
2122
 
2483
 
2123
    public long getToTime() {
2484
    public long getToTime() {
2124
      return this.toTime;
2485
      return this.toTime;
2125
    }
2486
    }
2126
 
2487
 
2127
    public getPaymentsForUser_args setToTime(long toTime) {
2488
    public void setToTime(long toTime) {
2128
      this.toTime = toTime;
2489
      this.toTime = toTime;
2129
      setToTimeIsSet(true);
2490
      setToTimeIsSet(true);
2130
      return this;
-
 
2131
    }
2491
    }
2132
 
2492
 
2133
    public void unsetToTime() {
2493
    public void unsetToTime() {
2134
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
2494
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
2135
    }
2495
    }
2136
 
2496
 
2137
    /** Returns true if field toTime is set (has been asigned a value) and false otherwise */
2497
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
2138
    public boolean isSetToTime() {
2498
    public boolean isSetToTime() {
2139
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
2499
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
2140
    }
2500
    }
2141
 
2501
 
2142
    public void setToTimeIsSet(boolean value) {
2502
    public void setToTimeIsSet(boolean value) {
Line 2153... Line 2513...
2153
 
2513
 
2154
    /**
2514
    /**
2155
     * 
2515
     * 
2156
     * @see PaymentStatus
2516
     * @see PaymentStatus
2157
     */
2517
     */
2158
    public getPaymentsForUser_args setStatus(PaymentStatus status) {
2518
    public void setStatus(PaymentStatus status) {
2159
      this.status = status;
2519
      this.status = status;
2160
      return this;
-
 
2161
    }
2520
    }
2162
 
2521
 
2163
    public void unsetStatus() {
2522
    public void unsetStatus() {
2164
      this.status = null;
2523
      this.status = null;
2165
    }
2524
    }
2166
 
2525
 
2167
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
2526
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
2168
    public boolean isSetStatus() {
2527
    public boolean isSetStatus() {
2169
      return this.status != null;
2528
      return this.status != null;
2170
    }
2529
    }
2171
 
2530
 
2172
    public void setStatusIsSet(boolean value) {
2531
    public void setStatusIsSet(boolean value) {
Line 2177... Line 2536...
2177
 
2536
 
2178
    public long getGatewayId() {
2537
    public long getGatewayId() {
2179
      return this.gatewayId;
2538
      return this.gatewayId;
2180
    }
2539
    }
2181
 
2540
 
2182
    public getPaymentsForUser_args setGatewayId(long gatewayId) {
2541
    public void setGatewayId(long gatewayId) {
2183
      this.gatewayId = gatewayId;
2542
      this.gatewayId = gatewayId;
2184
      setGatewayIdIsSet(true);
2543
      setGatewayIdIsSet(true);
2185
      return this;
-
 
2186
    }
2544
    }
2187
 
2545
 
2188
    public void unsetGatewayId() {
2546
    public void unsetGatewayId() {
2189
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
2547
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
2190
    }
2548
    }
2191
 
2549
 
2192
    /** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
2550
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
2193
    public boolean isSetGatewayId() {
2551
    public boolean isSetGatewayId() {
2194
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
2552
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
2195
    }
2553
    }
2196
 
2554
 
2197
    public void setGatewayIdIsSet(boolean value) {
2555
    public void setGatewayIdIsSet(boolean value) {
Line 2241... Line 2599...
2241
        break;
2599
        break;
2242
 
2600
 
2243
      }
2601
      }
2244
    }
2602
    }
2245
 
2603
 
2246
    public void setFieldValue(int fieldID, Object value) {
-
 
2247
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2248
    }
-
 
2249
 
-
 
2250
    public Object getFieldValue(_Fields field) {
2604
    public Object getFieldValue(_Fields field) {
2251
      switch (field) {
2605
      switch (field) {
2252
      case USER_ID:
2606
      case USER_ID:
2253
        return new Long(getUserId());
2607
        return Long.valueOf(getUserId());
2254
 
2608
 
2255
      case FROM_TIME:
2609
      case FROM_TIME:
2256
        return new Long(getFromTime());
2610
        return Long.valueOf(getFromTime());
2257
 
2611
 
2258
      case TO_TIME:
2612
      case TO_TIME:
2259
        return new Long(getToTime());
2613
        return Long.valueOf(getToTime());
2260
 
2614
 
2261
      case STATUS:
2615
      case STATUS:
2262
        return getStatus();
2616
        return getStatus();
2263
 
2617
 
2264
      case GATEWAY_ID:
2618
      case GATEWAY_ID:
2265
        return new Long(getGatewayId());
2619
        return Long.valueOf(getGatewayId());
2266
 
2620
 
2267
      }
2621
      }
2268
      throw new IllegalStateException();
2622
      throw new IllegalStateException();
2269
    }
2623
    }
2270
 
2624
 
2271
    public Object getFieldValue(int fieldId) {
-
 
2272
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2273
    }
-
 
2274
 
-
 
2275
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2625
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2276
    public boolean isSet(_Fields field) {
2626
    public boolean isSet(_Fields field) {
-
 
2627
      if (field == null) {
-
 
2628
        throw new IllegalArgumentException();
-
 
2629
      }
-
 
2630
 
2277
      switch (field) {
2631
      switch (field) {
2278
      case USER_ID:
2632
      case USER_ID:
2279
        return isSetUserId();
2633
        return isSetUserId();
2280
      case FROM_TIME:
2634
      case FROM_TIME:
2281
        return isSetFromTime();
2635
        return isSetFromTime();
Line 2287... Line 2641...
2287
        return isSetGatewayId();
2641
        return isSetGatewayId();
2288
      }
2642
      }
2289
      throw new IllegalStateException();
2643
      throw new IllegalStateException();
2290
    }
2644
    }
2291
 
2645
 
2292
    public boolean isSet(int fieldID) {
-
 
2293
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2294
    }
-
 
2295
 
-
 
2296
    @Override
2646
    @Override
2297
    public boolean equals(Object that) {
2647
    public boolean equals(Object that) {
2298
      if (that == null)
2648
      if (that == null)
2299
        return false;
2649
        return false;
2300
      if (that instanceof getPaymentsForUser_args)
2650
      if (that instanceof getPaymentsForUser_args)
Line 2365... Line 2715...
2365
      }
2715
      }
2366
 
2716
 
2367
      int lastComparison = 0;
2717
      int lastComparison = 0;
2368
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
2718
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
2369
 
2719
 
2370
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
2720
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
2371
      if (lastComparison != 0) {
2721
      if (lastComparison != 0) {
2372
        return lastComparison;
2722
        return lastComparison;
2373
      }
2723
      }
-
 
2724
      if (isSetUserId()) {
2374
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
2725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
2375
      if (lastComparison != 0) {
2726
        if (lastComparison != 0) {
2376
        return lastComparison;
2727
          return lastComparison;
-
 
2728
        }
2377
      }
2729
      }
2378
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(isSetFromTime());
2730
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
2379
      if (lastComparison != 0) {
2731
      if (lastComparison != 0) {
2380
        return lastComparison;
2732
        return lastComparison;
2381
      }
2733
      }
-
 
2734
      if (isSetFromTime()) {
2382
      lastComparison = TBaseHelper.compareTo(fromTime, typedOther.fromTime);
2735
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
2383
      if (lastComparison != 0) {
2736
        if (lastComparison != 0) {
2384
        return lastComparison;
2737
          return lastComparison;
-
 
2738
        }
2385
      }
2739
      }
2386
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(isSetToTime());
2740
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
2387
      if (lastComparison != 0) {
2741
      if (lastComparison != 0) {
2388
        return lastComparison;
2742
        return lastComparison;
2389
      }
2743
      }
-
 
2744
      if (isSetToTime()) {
2390
      lastComparison = TBaseHelper.compareTo(toTime, typedOther.toTime);
2745
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
2391
      if (lastComparison != 0) {
2746
        if (lastComparison != 0) {
2392
        return lastComparison;
2747
          return lastComparison;
-
 
2748
        }
2393
      }
2749
      }
2394
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
2750
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
2395
      if (lastComparison != 0) {
2751
      if (lastComparison != 0) {
2396
        return lastComparison;
2752
        return lastComparison;
2397
      }
2753
      }
-
 
2754
      if (isSetStatus()) {
2398
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
2755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
2399
      if (lastComparison != 0) {
2756
        if (lastComparison != 0) {
2400
        return lastComparison;
2757
          return lastComparison;
-
 
2758
        }
2401
      }
2759
      }
2402
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
2760
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
2403
      if (lastComparison != 0) {
2761
      if (lastComparison != 0) {
2404
        return lastComparison;
2762
        return lastComparison;
2405
      }
2763
      }
-
 
2764
      if (isSetGatewayId()) {
2406
      lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
2765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
2407
      if (lastComparison != 0) {
2766
        if (lastComparison != 0) {
2408
        return lastComparison;
2767
          return lastComparison;
-
 
2768
        }
2409
      }
2769
      }
2410
      return 0;
2770
      return 0;
2411
    }
2771
    }
2412
 
2772
 
-
 
2773
    public _Fields fieldForId(int fieldId) {
-
 
2774
      return _Fields.findByThriftId(fieldId);
-
 
2775
    }
-
 
2776
 
2413
    public void read(TProtocol iprot) throws TException {
2777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2414
      TField field;
2778
      org.apache.thrift.protocol.TField field;
2415
      iprot.readStructBegin();
2779
      iprot.readStructBegin();
2416
      while (true)
2780
      while (true)
2417
      {
2781
      {
2418
        field = iprot.readFieldBegin();
2782
        field = iprot.readFieldBegin();
2419
        if (field.type == TType.STOP) { 
2783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2420
          break;
2784
          break;
2421
        }
2785
        }
2422
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2423
        if (fieldId == null) {
-
 
2424
          TProtocolUtil.skip(iprot, field.type);
-
 
2425
        } else {
-
 
2426
          switch (fieldId) {
2786
        switch (field.id) {
2427
            case USER_ID:
2787
          case 1: // USER_ID
2428
              if (field.type == TType.I64) {
2788
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2429
                this.userId = iprot.readI64();
2789
              this.userId = iprot.readI64();
2430
                setUserIdIsSet(true);
2790
              setUserIdIsSet(true);
2431
              } else { 
2791
            } else { 
2432
                TProtocolUtil.skip(iprot, field.type);
2792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2433
              }
2793
            }
2434
              break;
2794
            break;
2435
            case FROM_TIME:
2795
          case 2: // FROM_TIME
2436
              if (field.type == TType.I64) {
2796
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2437
                this.fromTime = iprot.readI64();
2797
              this.fromTime = iprot.readI64();
2438
                setFromTimeIsSet(true);
2798
              setFromTimeIsSet(true);
2439
              } else { 
2799
            } else { 
2440
                TProtocolUtil.skip(iprot, field.type);
2800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2441
              }
2801
            }
2442
              break;
2802
            break;
2443
            case TO_TIME:
2803
          case 3: // TO_TIME
2444
              if (field.type == TType.I64) {
2804
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2445
                this.toTime = iprot.readI64();
2805
              this.toTime = iprot.readI64();
2446
                setToTimeIsSet(true);
2806
              setToTimeIsSet(true);
2447
              } else { 
2807
            } else { 
2448
                TProtocolUtil.skip(iprot, field.type);
2808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2449
              }
2809
            }
2450
              break;
2810
            break;
2451
            case STATUS:
2811
          case 4: // STATUS
2452
              if (field.type == TType.I32) {
2812
            if (field.type == org.apache.thrift.protocol.TType.I32) {
2453
                this.status = PaymentStatus.findByValue(iprot.readI32());
2813
              this.status = PaymentStatus.findByValue(iprot.readI32());
2454
              } else { 
2814
            } else { 
2455
                TProtocolUtil.skip(iprot, field.type);
2815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2456
              }
2816
            }
2457
              break;
2817
            break;
2458
            case GATEWAY_ID:
2818
          case 5: // GATEWAY_ID
2459
              if (field.type == TType.I64) {
2819
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2460
                this.gatewayId = iprot.readI64();
2820
              this.gatewayId = iprot.readI64();
2461
                setGatewayIdIsSet(true);
2821
              setGatewayIdIsSet(true);
2462
              } else { 
2822
            } else { 
2463
                TProtocolUtil.skip(iprot, field.type);
2823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2464
              }
2824
            }
2465
              break;
2825
            break;
2466
          }
2826
          default:
2467
          iprot.readFieldEnd();
2827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2468
        }
2828
        }
-
 
2829
        iprot.readFieldEnd();
2469
      }
2830
      }
2470
      iprot.readStructEnd();
2831
      iprot.readStructEnd();
2471
      validate();
2832
      validate();
2472
    }
2833
    }
2473
 
2834
 
2474
    public void write(TProtocol oprot) throws TException {
2835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2475
      validate();
2836
      validate();
2476
 
2837
 
2477
      oprot.writeStructBegin(STRUCT_DESC);
2838
      oprot.writeStructBegin(STRUCT_DESC);
2478
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2839
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2479
      oprot.writeI64(this.userId);
2840
      oprot.writeI64(this.userId);
Line 2515... Line 2876...
2515
      if (!first) sb.append(", ");
2876
      if (!first) sb.append(", ");
2516
      sb.append("status:");
2877
      sb.append("status:");
2517
      if (this.status == null) {
2878
      if (this.status == null) {
2518
        sb.append("null");
2879
        sb.append("null");
2519
      } else {
2880
      } else {
2520
        String status_name = status.name();
-
 
2521
        if (status_name != null) {
-
 
2522
          sb.append(status_name);
-
 
2523
          sb.append(" (");
-
 
2524
        }
-
 
2525
        sb.append(this.status);
2881
        sb.append(this.status);
2526
        if (status_name != null) {
-
 
2527
          sb.append(")");
-
 
2528
        }
-
 
2529
      }
2882
      }
2530
      first = false;
2883
      first = false;
2531
      if (!first) sb.append(", ");
2884
      if (!first) sb.append(", ");
2532
      sb.append("gatewayId:");
2885
      sb.append("gatewayId:");
2533
      sb.append(this.gatewayId);
2886
      sb.append(this.gatewayId);
2534
      first = false;
2887
      first = false;
2535
      sb.append(")");
2888
      sb.append(")");
2536
      return sb.toString();
2889
      return sb.toString();
2537
    }
2890
    }
2538
 
2891
 
2539
    public void validate() throws TException {
2892
    public void validate() throws org.apache.thrift.TException {
2540
      // check for required fields
2893
      // check for required fields
2541
    }
2894
    }
2542
 
2895
 
-
 
2896
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2897
      try {
-
 
2898
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2899
      } catch (org.apache.thrift.TException te) {
-
 
2900
        throw new java.io.IOException(te);
-
 
2901
      }
-
 
2902
    }
-
 
2903
 
-
 
2904
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2905
      try {
-
 
2906
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2907
      } catch (org.apache.thrift.TException te) {
-
 
2908
        throw new java.io.IOException(te);
-
 
2909
      }
-
 
2910
    }
-
 
2911
 
2543
  }
2912
  }
2544
 
2913
 
2545
  public static class getPaymentsForUser_result implements TBase<getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentsForUser_result>   {
2914
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
2546
    private static final TStruct STRUCT_DESC = new TStruct("getPaymentsForUser_result");
2915
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
2547
 
2916
 
2548
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
2917
    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);
2549
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
2918
    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);
2550
 
2919
 
2551
    private List<Payment> success;
2920
    private List<Payment> success; // required
2552
    private PaymentException pe;
2921
    private PaymentException pe; // required
2553
 
2922
 
2554
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2923
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2555
    public enum _Fields implements TFieldIdEnum {
2924
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2556
      SUCCESS((short)0, "success"),
2925
      SUCCESS((short)0, "success"),
2557
      PE((short)1, "pe");
2926
      PE((short)1, "pe");
2558
 
2927
 
2559
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2561
 
2929
 
2562
      static {
2930
      static {
2563
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2564
          byId.put((int)field._thriftId, field);
-
 
2565
          byName.put(field.getFieldName(), field);
2932
          byName.put(field.getFieldName(), field);
2566
        }
2933
        }
2567
      }
2934
      }
2568
 
2935
 
2569
      /**
2936
      /**
2570
       * Find the _Fields constant that matches fieldId, or null if its not found.
2937
       * Find the _Fields constant that matches fieldId, or null if its not found.
2571
       */
2938
       */
2572
      public static _Fields findByThriftId(int fieldId) {
2939
      public static _Fields findByThriftId(int fieldId) {
2573
        return byId.get(fieldId);
2940
        switch(fieldId) {
-
 
2941
          case 0: // SUCCESS
-
 
2942
            return SUCCESS;
-
 
2943
          case 1: // PE
-
 
2944
            return PE;
-
 
2945
          default:
-
 
2946
            return null;
-
 
2947
        }
2574
      }
2948
      }
2575
 
2949
 
2576
      /**
2950
      /**
2577
       * Find the _Fields constant that matches fieldId, throwing an exception
2951
       * Find the _Fields constant that matches fieldId, throwing an exception
2578
       * if it is not found.
2952
       * if it is not found.
Line 2607... Line 2981...
2607
      }
2981
      }
2608
    }
2982
    }
2609
 
2983
 
2610
    // isset id assignments
2984
    // isset id assignments
2611
 
2985
 
2612
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2613
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2614
          new ListMetaData(TType.LIST, 
-
 
2615
              new StructMetaData(TType.STRUCT, Payment.class))));
-
 
2616
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
2617
          new FieldValueMetaData(TType.STRUCT)));
-
 
2618
    }});
-
 
2619
 
-
 
2620
    static {
2987
    static {
-
 
2988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2989
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2990
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
2991
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
-
 
2992
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2993
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
2994
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2621
      FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
2995
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
2622
    }
2996
    }
2623
 
2997
 
2624
    public getPaymentsForUser_result() {
2998
    public getPaymentsForUser_result() {
2625
    }
2999
    }
2626
 
3000
 
Line 2651... Line 3025...
2651
 
3025
 
2652
    public getPaymentsForUser_result deepCopy() {
3026
    public getPaymentsForUser_result deepCopy() {
2653
      return new getPaymentsForUser_result(this);
3027
      return new getPaymentsForUser_result(this);
2654
    }
3028
    }
2655
 
3029
 
2656
    @Deprecated
3030
    @Override
2657
    public getPaymentsForUser_result clone() {
3031
    public void clear() {
2658
      return new getPaymentsForUser_result(this);
3032
      this.success = null;
-
 
3033
      this.pe = null;
2659
    }
3034
    }
2660
 
3035
 
2661
    public int getSuccessSize() {
3036
    public int getSuccessSize() {
2662
      return (this.success == null) ? 0 : this.success.size();
3037
      return (this.success == null) ? 0 : this.success.size();
2663
    }
3038
    }
Line 2675... Line 3050...
2675
 
3050
 
2676
    public List<Payment> getSuccess() {
3051
    public List<Payment> getSuccess() {
2677
      return this.success;
3052
      return this.success;
2678
    }
3053
    }
2679
 
3054
 
2680
    public getPaymentsForUser_result setSuccess(List<Payment> success) {
3055
    public void setSuccess(List<Payment> success) {
2681
      this.success = success;
3056
      this.success = success;
2682
      return this;
-
 
2683
    }
3057
    }
2684
 
3058
 
2685
    public void unsetSuccess() {
3059
    public void unsetSuccess() {
2686
      this.success = null;
3060
      this.success = null;
2687
    }
3061
    }
2688
 
3062
 
2689
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
3063
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690
    public boolean isSetSuccess() {
3064
    public boolean isSetSuccess() {
2691
      return this.success != null;
3065
      return this.success != null;
2692
    }
3066
    }
2693
 
3067
 
2694
    public void setSuccessIsSet(boolean value) {
3068
    public void setSuccessIsSet(boolean value) {
Line 2699... Line 3073...
2699
 
3073
 
2700
    public PaymentException getPe() {
3074
    public PaymentException getPe() {
2701
      return this.pe;
3075
      return this.pe;
2702
    }
3076
    }
2703
 
3077
 
2704
    public getPaymentsForUser_result setPe(PaymentException pe) {
3078
    public void setPe(PaymentException pe) {
2705
      this.pe = pe;
3079
      this.pe = pe;
2706
      return this;
-
 
2707
    }
3080
    }
2708
 
3081
 
2709
    public void unsetPe() {
3082
    public void unsetPe() {
2710
      this.pe = null;
3083
      this.pe = null;
2711
    }
3084
    }
2712
 
3085
 
2713
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
3086
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2714
    public boolean isSetPe() {
3087
    public boolean isSetPe() {
2715
      return this.pe != null;
3088
      return this.pe != null;
2716
    }
3089
    }
2717
 
3090
 
2718
    public void setPeIsSet(boolean value) {
3091
    public void setPeIsSet(boolean value) {
Line 2740... Line 3113...
2740
        break;
3113
        break;
2741
 
3114
 
2742
      }
3115
      }
2743
    }
3116
    }
2744
 
3117
 
2745
    public void setFieldValue(int fieldID, Object value) {
-
 
2746
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2747
    }
-
 
2748
 
-
 
2749
    public Object getFieldValue(_Fields field) {
3118
    public Object getFieldValue(_Fields field) {
2750
      switch (field) {
3119
      switch (field) {
2751
      case SUCCESS:
3120
      case SUCCESS:
2752
        return getSuccess();
3121
        return getSuccess();
2753
 
3122
 
Line 2756... Line 3125...
2756
 
3125
 
2757
      }
3126
      }
2758
      throw new IllegalStateException();
3127
      throw new IllegalStateException();
2759
    }
3128
    }
2760
 
3129
 
2761
    public Object getFieldValue(int fieldId) {
-
 
2762
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2763
    }
-
 
2764
 
-
 
2765
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2766
    public boolean isSet(_Fields field) {
3131
    public boolean isSet(_Fields field) {
-
 
3132
      if (field == null) {
-
 
3133
        throw new IllegalArgumentException();
-
 
3134
      }
-
 
3135
 
2767
      switch (field) {
3136
      switch (field) {
2768
      case SUCCESS:
3137
      case SUCCESS:
2769
        return isSetSuccess();
3138
        return isSetSuccess();
2770
      case PE:
3139
      case PE:
2771
        return isSetPe();
3140
        return isSetPe();
2772
      }
3141
      }
2773
      throw new IllegalStateException();
3142
      throw new IllegalStateException();
2774
    }
3143
    }
2775
 
3144
 
2776
    public boolean isSet(int fieldID) {
-
 
2777
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2778
    }
-
 
2779
 
-
 
2780
    @Override
3145
    @Override
2781
    public boolean equals(Object that) {
3146
    public boolean equals(Object that) {
2782
      if (that == null)
3147
      if (that == null)
2783
        return false;
3148
        return false;
2784
      if (that instanceof getPaymentsForUser_result)
3149
      if (that instanceof getPaymentsForUser_result)
Line 2822... Line 3187...
2822
      }
3187
      }
2823
 
3188
 
2824
      int lastComparison = 0;
3189
      int lastComparison = 0;
2825
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
3190
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
2826
 
3191
 
2827
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
3192
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2828
      if (lastComparison != 0) {
3193
      if (lastComparison != 0) {
2829
        return lastComparison;
3194
        return lastComparison;
2830
      }
3195
      }
-
 
3196
      if (isSetSuccess()) {
2831
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
3197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2832
      if (lastComparison != 0) {
3198
        if (lastComparison != 0) {
2833
        return lastComparison;
3199
          return lastComparison;
-
 
3200
        }
2834
      }
3201
      }
2835
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
3202
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2836
      if (lastComparison != 0) {
3203
      if (lastComparison != 0) {
2837
        return lastComparison;
3204
        return lastComparison;
2838
      }
3205
      }
-
 
3206
      if (isSetPe()) {
2839
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
3207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
2840
      if (lastComparison != 0) {
3208
        if (lastComparison != 0) {
2841
        return lastComparison;
3209
          return lastComparison;
-
 
3210
        }
2842
      }
3211
      }
2843
      return 0;
3212
      return 0;
2844
    }
3213
    }
2845
 
3214
 
-
 
3215
    public _Fields fieldForId(int fieldId) {
-
 
3216
      return _Fields.findByThriftId(fieldId);
-
 
3217
    }
-
 
3218
 
2846
    public void read(TProtocol iprot) throws TException {
3219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2847
      TField field;
3220
      org.apache.thrift.protocol.TField field;
2848
      iprot.readStructBegin();
3221
      iprot.readStructBegin();
2849
      while (true)
3222
      while (true)
2850
      {
3223
      {
2851
        field = iprot.readFieldBegin();
3224
        field = iprot.readFieldBegin();
2852
        if (field.type == TType.STOP) { 
3225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2853
          break;
3226
          break;
2854
        }
3227
        }
2855
        _Fields fieldId = _Fields.findByThriftId(field.id);
3228
        switch (field.id) {
2856
        if (fieldId == null) {
3229
          case 0: // SUCCESS
2857
          TProtocolUtil.skip(iprot, field.type);
3230
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2858
        } else {
3231
              {
2859
          switch (fieldId) {
3232
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
2860
            case SUCCESS:
3233
                this.success = new ArrayList<Payment>(_list12.size);
2861
              if (field.type == TType.LIST) {
3234
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
2862
                {
3235
                {
2863
                  TList _list12 = iprot.readListBegin();
-
 
2864
                  this.success = new ArrayList<Payment>(_list12.size);
-
 
2865
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
-
 
2866
                  {
-
 
2867
                    Payment _elem14;
3236
                  Payment _elem14; // required
2868
                    _elem14 = new Payment();
3237
                  _elem14 = new Payment();
2869
                    _elem14.read(iprot);
3238
                  _elem14.read(iprot);
2870
                    this.success.add(_elem14);
3239
                  this.success.add(_elem14);
2871
                  }
-
 
2872
                  iprot.readListEnd();
-
 
2873
                }
3240
                }
2874
              } else { 
3241
                iprot.readListEnd();
2875
                TProtocolUtil.skip(iprot, field.type);
-
 
2876
              }
3242
              }
-
 
3243
            } else { 
-
 
3244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3245
            }
2877
              break;
3246
            break;
2878
            case PE:
3247
          case 1: // PE
2879
              if (field.type == TType.STRUCT) {
3248
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2880
                this.pe = new PaymentException();
3249
              this.pe = new PaymentException();
2881
                this.pe.read(iprot);
3250
              this.pe.read(iprot);
2882
              } else { 
3251
            } else { 
2883
                TProtocolUtil.skip(iprot, field.type);
3252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2884
              }
3253
            }
2885
              break;
3254
            break;
2886
          }
3255
          default:
2887
          iprot.readFieldEnd();
3256
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2888
        }
3257
        }
-
 
3258
        iprot.readFieldEnd();
2889
      }
3259
      }
2890
      iprot.readStructEnd();
3260
      iprot.readStructEnd();
2891
      validate();
3261
      validate();
2892
    }
3262
    }
2893
 
3263
 
2894
    public void write(TProtocol oprot) throws TException {
3264
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2895
      oprot.writeStructBegin(STRUCT_DESC);
3265
      oprot.writeStructBegin(STRUCT_DESC);
2896
 
3266
 
2897
      if (this.isSetSuccess()) {
3267
      if (this.isSetSuccess()) {
2898
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3268
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2899
        {
3269
        {
2900
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3270
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2901
          for (Payment _iter15 : this.success)
3271
          for (Payment _iter15 : this.success)
2902
          {
3272
          {
2903
            _iter15.write(oprot);
3273
            _iter15.write(oprot);
2904
          }
3274
          }
2905
          oprot.writeListEnd();
3275
          oprot.writeListEnd();
Line 2936... Line 3306...
2936
      first = false;
3306
      first = false;
2937
      sb.append(")");
3307
      sb.append(")");
2938
      return sb.toString();
3308
      return sb.toString();
2939
    }
3309
    }
2940
 
3310
 
2941
    public void validate() throws TException {
3311
    public void validate() throws org.apache.thrift.TException {
2942
      // check for required fields
3312
      // check for required fields
2943
    }
3313
    }
2944
 
3314
 
-
 
3315
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3316
      try {
-
 
3317
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3318
      } catch (org.apache.thrift.TException te) {
-
 
3319
        throw new java.io.IOException(te);
-
 
3320
      }
-
 
3321
    }
-
 
3322
 
-
 
3323
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3324
      try {
-
 
3325
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3326
      } catch (org.apache.thrift.TException te) {
-
 
3327
        throw new java.io.IOException(te);
-
 
3328
      }
-
 
3329
    }
-
 
3330
 
2945
  }
3331
  }
2946
 
3332
 
2947
  public static class getPayments_args implements TBase<getPayments_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPayments_args>   {
3333
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
2948
    private static final TStruct STRUCT_DESC = new TStruct("getPayments_args");
3334
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
2949
 
3335
 
2950
    private static final TField FROM_TIME_FIELD_DESC = new TField("fromTime", TType.I64, (short)1);
3336
    private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)1);
2951
    private static final TField TO_TIME_FIELD_DESC = new TField("toTime", TType.I64, (short)2);
3337
    private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)2);
2952
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3);
3338
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
2953
    private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)4);
3339
    private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)4);
2954
 
3340
 
2955
    private long fromTime;
3341
    private long fromTime; // required
2956
    private long toTime;
3342
    private long toTime; // required
2957
    private PaymentStatus status;
3343
    private PaymentStatus status; // required
2958
    private long gatewayId;
3344
    private long gatewayId; // required
2959
 
3345
 
2960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2961
    public enum _Fields implements TFieldIdEnum {
3347
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2962
      FROM_TIME((short)1, "fromTime"),
3348
      FROM_TIME((short)1, "fromTime"),
2963
      TO_TIME((short)2, "toTime"),
3349
      TO_TIME((short)2, "toTime"),
2964
      /**
3350
      /**
2965
       * 
3351
       * 
2966
       * @see PaymentStatus
3352
       * @see PaymentStatus
2967
       */
3353
       */
2968
      STATUS((short)3, "status"),
3354
      STATUS((short)3, "status"),
2969
      GATEWAY_ID((short)4, "gatewayId");
3355
      GATEWAY_ID((short)4, "gatewayId");
2970
 
3356
 
2971
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2973
 
3358
 
2974
      static {
3359
      static {
2975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2976
          byId.put((int)field._thriftId, field);
-
 
2977
          byName.put(field.getFieldName(), field);
3361
          byName.put(field.getFieldName(), field);
2978
        }
3362
        }
2979
      }
3363
      }
2980
 
3364
 
2981
      /**
3365
      /**
2982
       * Find the _Fields constant that matches fieldId, or null if its not found.
3366
       * Find the _Fields constant that matches fieldId, or null if its not found.
2983
       */
3367
       */
2984
      public static _Fields findByThriftId(int fieldId) {
3368
      public static _Fields findByThriftId(int fieldId) {
2985
        return byId.get(fieldId);
3369
        switch(fieldId) {
-
 
3370
          case 1: // FROM_TIME
-
 
3371
            return FROM_TIME;
-
 
3372
          case 2: // TO_TIME
-
 
3373
            return TO_TIME;
-
 
3374
          case 3: // STATUS
-
 
3375
            return STATUS;
-
 
3376
          case 4: // GATEWAY_ID
-
 
3377
            return GATEWAY_ID;
-
 
3378
          default:
-
 
3379
            return null;
-
 
3380
        }
2986
      }
3381
      }
2987
 
3382
 
2988
      /**
3383
      /**
2989
       * Find the _Fields constant that matches fieldId, throwing an exception
3384
       * Find the _Fields constant that matches fieldId, throwing an exception
2990
       * if it is not found.
3385
       * if it is not found.
Line 3023... Line 3418...
3023
    private static final int __FROMTIME_ISSET_ID = 0;
3418
    private static final int __FROMTIME_ISSET_ID = 0;
3024
    private static final int __TOTIME_ISSET_ID = 1;
3419
    private static final int __TOTIME_ISSET_ID = 1;
3025
    private static final int __GATEWAYID_ISSET_ID = 2;
3420
    private static final int __GATEWAYID_ISSET_ID = 2;
3026
    private BitSet __isset_bit_vector = new BitSet(3);
3421
    private BitSet __isset_bit_vector = new BitSet(3);
3027
 
3422
 
3028
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3029
      put(_Fields.FROM_TIME, new FieldMetaData("fromTime", TFieldRequirementType.DEFAULT, 
-
 
3030
          new FieldValueMetaData(TType.I64)));
-
 
3031
      put(_Fields.TO_TIME, new FieldMetaData("toTime", TFieldRequirementType.DEFAULT, 
-
 
3032
          new FieldValueMetaData(TType.I64)));
-
 
3033
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
3034
          new EnumMetaData(TType.ENUM, PaymentStatus.class)));
-
 
3035
      put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT, 
-
 
3036
          new FieldValueMetaData(TType.I64)));
-
 
3037
    }});
-
 
3038
 
-
 
3039
    static {
3424
    static {
-
 
3425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3426
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3427
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3428
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3430
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3431
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
-
 
3432
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3040
      FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
3435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
3041
    }
3436
    }
3042
 
3437
 
3043
    public getPayments_args() {
3438
    public getPayments_args() {
3044
    }
3439
    }
3045
 
3440
 
Line 3075... Line 3470...
3075
 
3470
 
3076
    public getPayments_args deepCopy() {
3471
    public getPayments_args deepCopy() {
3077
      return new getPayments_args(this);
3472
      return new getPayments_args(this);
3078
    }
3473
    }
3079
 
3474
 
3080
    @Deprecated
3475
    @Override
3081
    public getPayments_args clone() {
3476
    public void clear() {
-
 
3477
      setFromTimeIsSet(false);
-
 
3478
      this.fromTime = 0;
-
 
3479
      setToTimeIsSet(false);
-
 
3480
      this.toTime = 0;
-
 
3481
      this.status = null;
3082
      return new getPayments_args(this);
3482
      setGatewayIdIsSet(false);
-
 
3483
      this.gatewayId = 0;
3083
    }
3484
    }
3084
 
3485
 
3085
    public long getFromTime() {
3486
    public long getFromTime() {
3086
      return this.fromTime;
3487
      return this.fromTime;
3087
    }
3488
    }
3088
 
3489
 
3089
    public getPayments_args setFromTime(long fromTime) {
3490
    public void setFromTime(long fromTime) {
3090
      this.fromTime = fromTime;
3491
      this.fromTime = fromTime;
3091
      setFromTimeIsSet(true);
3492
      setFromTimeIsSet(true);
3092
      return this;
-
 
3093
    }
3493
    }
3094
 
3494
 
3095
    public void unsetFromTime() {
3495
    public void unsetFromTime() {
3096
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
3496
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
3097
    }
3497
    }
3098
 
3498
 
3099
    /** Returns true if field fromTime is set (has been asigned a value) and false otherwise */
3499
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
3100
    public boolean isSetFromTime() {
3500
    public boolean isSetFromTime() {
3101
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
3501
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
3102
    }
3502
    }
3103
 
3503
 
3104
    public void setFromTimeIsSet(boolean value) {
3504
    public void setFromTimeIsSet(boolean value) {
Line 3107... Line 3507...
3107
 
3507
 
3108
    public long getToTime() {
3508
    public long getToTime() {
3109
      return this.toTime;
3509
      return this.toTime;
3110
    }
3510
    }
3111
 
3511
 
3112
    public getPayments_args setToTime(long toTime) {
3512
    public void setToTime(long toTime) {
3113
      this.toTime = toTime;
3513
      this.toTime = toTime;
3114
      setToTimeIsSet(true);
3514
      setToTimeIsSet(true);
3115
      return this;
-
 
3116
    }
3515
    }
3117
 
3516
 
3118
    public void unsetToTime() {
3517
    public void unsetToTime() {
3119
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
3518
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
3120
    }
3519
    }
3121
 
3520
 
3122
    /** Returns true if field toTime is set (has been asigned a value) and false otherwise */
3521
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
3123
    public boolean isSetToTime() {
3522
    public boolean isSetToTime() {
3124
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
3523
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
3125
    }
3524
    }
3126
 
3525
 
3127
    public void setToTimeIsSet(boolean value) {
3526
    public void setToTimeIsSet(boolean value) {
Line 3138... Line 3537...
3138
 
3537
 
3139
    /**
3538
    /**
3140
     * 
3539
     * 
3141
     * @see PaymentStatus
3540
     * @see PaymentStatus
3142
     */
3541
     */
3143
    public getPayments_args setStatus(PaymentStatus status) {
3542
    public void setStatus(PaymentStatus status) {
3144
      this.status = status;
3543
      this.status = status;
3145
      return this;
-
 
3146
    }
3544
    }
3147
 
3545
 
3148
    public void unsetStatus() {
3546
    public void unsetStatus() {
3149
      this.status = null;
3547
      this.status = null;
3150
    }
3548
    }
3151
 
3549
 
3152
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
3550
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
3153
    public boolean isSetStatus() {
3551
    public boolean isSetStatus() {
3154
      return this.status != null;
3552
      return this.status != null;
3155
    }
3553
    }
3156
 
3554
 
3157
    public void setStatusIsSet(boolean value) {
3555
    public void setStatusIsSet(boolean value) {
Line 3162... Line 3560...
3162
 
3560
 
3163
    public long getGatewayId() {
3561
    public long getGatewayId() {
3164
      return this.gatewayId;
3562
      return this.gatewayId;
3165
    }
3563
    }
3166
 
3564
 
3167
    public getPayments_args setGatewayId(long gatewayId) {
3565
    public void setGatewayId(long gatewayId) {
3168
      this.gatewayId = gatewayId;
3566
      this.gatewayId = gatewayId;
3169
      setGatewayIdIsSet(true);
3567
      setGatewayIdIsSet(true);
3170
      return this;
-
 
3171
    }
3568
    }
3172
 
3569
 
3173
    public void unsetGatewayId() {
3570
    public void unsetGatewayId() {
3174
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
3571
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
3175
    }
3572
    }
3176
 
3573
 
3177
    /** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
3574
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
3178
    public boolean isSetGatewayId() {
3575
    public boolean isSetGatewayId() {
3179
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
3576
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
3180
    }
3577
    }
3181
 
3578
 
3182
    public void setGatewayIdIsSet(boolean value) {
3579
    public void setGatewayIdIsSet(boolean value) {
Line 3218... Line 3615...
3218
        break;
3615
        break;
3219
 
3616
 
3220
      }
3617
      }
3221
    }
3618
    }
3222
 
3619
 
3223
    public void setFieldValue(int fieldID, Object value) {
-
 
3224
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3225
    }
-
 
3226
 
-
 
3227
    public Object getFieldValue(_Fields field) {
3620
    public Object getFieldValue(_Fields field) {
3228
      switch (field) {
3621
      switch (field) {
3229
      case FROM_TIME:
3622
      case FROM_TIME:
3230
        return new Long(getFromTime());
3623
        return Long.valueOf(getFromTime());
3231
 
3624
 
3232
      case TO_TIME:
3625
      case TO_TIME:
3233
        return new Long(getToTime());
3626
        return Long.valueOf(getToTime());
3234
 
3627
 
3235
      case STATUS:
3628
      case STATUS:
3236
        return getStatus();
3629
        return getStatus();
3237
 
3630
 
3238
      case GATEWAY_ID:
3631
      case GATEWAY_ID:
3239
        return new Long(getGatewayId());
3632
        return Long.valueOf(getGatewayId());
3240
 
3633
 
3241
      }
3634
      }
3242
      throw new IllegalStateException();
3635
      throw new IllegalStateException();
3243
    }
3636
    }
3244
 
3637
 
3245
    public Object getFieldValue(int fieldId) {
-
 
3246
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3247
    }
-
 
3248
 
-
 
3249
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3250
    public boolean isSet(_Fields field) {
3639
    public boolean isSet(_Fields field) {
-
 
3640
      if (field == null) {
-
 
3641
        throw new IllegalArgumentException();
-
 
3642
      }
-
 
3643
 
3251
      switch (field) {
3644
      switch (field) {
3252
      case FROM_TIME:
3645
      case FROM_TIME:
3253
        return isSetFromTime();
3646
        return isSetFromTime();
3254
      case TO_TIME:
3647
      case TO_TIME:
3255
        return isSetToTime();
3648
        return isSetToTime();
Line 3259... Line 3652...
3259
        return isSetGatewayId();
3652
        return isSetGatewayId();
3260
      }
3653
      }
3261
      throw new IllegalStateException();
3654
      throw new IllegalStateException();
3262
    }
3655
    }
3263
 
3656
 
3264
    public boolean isSet(int fieldID) {
-
 
3265
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3266
    }
-
 
3267
 
-
 
3268
    @Override
3657
    @Override
3269
    public boolean equals(Object that) {
3658
    public boolean equals(Object that) {
3270
      if (that == null)
3659
      if (that == null)
3271
        return false;
3660
        return false;
3272
      if (that instanceof getPayments_args)
3661
      if (that instanceof getPayments_args)
Line 3328... Line 3717...
3328
      }
3717
      }
3329
 
3718
 
3330
      int lastComparison = 0;
3719
      int lastComparison = 0;
3331
      getPayments_args typedOther = (getPayments_args)other;
3720
      getPayments_args typedOther = (getPayments_args)other;
3332
 
3721
 
3333
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(isSetFromTime());
3722
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
3334
      if (lastComparison != 0) {
3723
      if (lastComparison != 0) {
3335
        return lastComparison;
3724
        return lastComparison;
3336
      }
3725
      }
-
 
3726
      if (isSetFromTime()) {
3337
      lastComparison = TBaseHelper.compareTo(fromTime, typedOther.fromTime);
3727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
3338
      if (lastComparison != 0) {
3728
        if (lastComparison != 0) {
3339
        return lastComparison;
3729
          return lastComparison;
-
 
3730
        }
3340
      }
3731
      }
3341
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(isSetToTime());
3732
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
3342
      if (lastComparison != 0) {
3733
      if (lastComparison != 0) {
3343
        return lastComparison;
3734
        return lastComparison;
3344
      }
3735
      }
-
 
3736
      if (isSetToTime()) {
3345
      lastComparison = TBaseHelper.compareTo(toTime, typedOther.toTime);
3737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
3346
      if (lastComparison != 0) {
3738
        if (lastComparison != 0) {
3347
        return lastComparison;
3739
          return lastComparison;
-
 
3740
        }
3348
      }
3741
      }
3349
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
3742
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
3350
      if (lastComparison != 0) {
3743
      if (lastComparison != 0) {
3351
        return lastComparison;
3744
        return lastComparison;
3352
      }
3745
      }
-
 
3746
      if (isSetStatus()) {
3353
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
3747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3354
      if (lastComparison != 0) {
3748
        if (lastComparison != 0) {
3355
        return lastComparison;
3749
          return lastComparison;
-
 
3750
        }
3356
      }
3751
      }
3357
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
3752
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
3358
      if (lastComparison != 0) {
3753
      if (lastComparison != 0) {
3359
        return lastComparison;
3754
        return lastComparison;
3360
      }
3755
      }
-
 
3756
      if (isSetGatewayId()) {
3361
      lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
3757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3362
      if (lastComparison != 0) {
3758
        if (lastComparison != 0) {
3363
        return lastComparison;
3759
          return lastComparison;
-
 
3760
        }
3364
      }
3761
      }
3365
      return 0;
3762
      return 0;
3366
    }
3763
    }
3367
 
3764
 
-
 
3765
    public _Fields fieldForId(int fieldId) {
-
 
3766
      return _Fields.findByThriftId(fieldId);
-
 
3767
    }
-
 
3768
 
3368
    public void read(TProtocol iprot) throws TException {
3769
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3369
      TField field;
3770
      org.apache.thrift.protocol.TField field;
3370
      iprot.readStructBegin();
3771
      iprot.readStructBegin();
3371
      while (true)
3772
      while (true)
3372
      {
3773
      {
3373
        field = iprot.readFieldBegin();
3774
        field = iprot.readFieldBegin();
3374
        if (field.type == TType.STOP) { 
3775
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3375
          break;
3776
          break;
3376
        }
3777
        }
3377
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3378
        if (fieldId == null) {
-
 
3379
          TProtocolUtil.skip(iprot, field.type);
-
 
3380
        } else {
-
 
3381
          switch (fieldId) {
3778
        switch (field.id) {
3382
            case FROM_TIME:
3779
          case 1: // FROM_TIME
3383
              if (field.type == TType.I64) {
3780
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3384
                this.fromTime = iprot.readI64();
3781
              this.fromTime = iprot.readI64();
3385
                setFromTimeIsSet(true);
3782
              setFromTimeIsSet(true);
3386
              } else { 
3783
            } else { 
3387
                TProtocolUtil.skip(iprot, field.type);
3784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3388
              }
3785
            }
3389
              break;
3786
            break;
3390
            case TO_TIME:
3787
          case 2: // TO_TIME
3391
              if (field.type == TType.I64) {
3788
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3392
                this.toTime = iprot.readI64();
3789
              this.toTime = iprot.readI64();
3393
                setToTimeIsSet(true);
3790
              setToTimeIsSet(true);
3394
              } else { 
3791
            } else { 
3395
                TProtocolUtil.skip(iprot, field.type);
3792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3396
              }
3793
            }
3397
              break;
3794
            break;
3398
            case STATUS:
3795
          case 3: // STATUS
3399
              if (field.type == TType.I32) {
3796
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3400
                this.status = PaymentStatus.findByValue(iprot.readI32());
3797
              this.status = PaymentStatus.findByValue(iprot.readI32());
3401
              } else { 
3798
            } else { 
3402
                TProtocolUtil.skip(iprot, field.type);
3799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3403
              }
3800
            }
3404
              break;
3801
            break;
3405
            case GATEWAY_ID:
3802
          case 4: // GATEWAY_ID
3406
              if (field.type == TType.I64) {
3803
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3407
                this.gatewayId = iprot.readI64();
3804
              this.gatewayId = iprot.readI64();
3408
                setGatewayIdIsSet(true);
3805
              setGatewayIdIsSet(true);
3409
              } else { 
3806
            } else { 
3410
                TProtocolUtil.skip(iprot, field.type);
3807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3411
              }
3808
            }
3412
              break;
3809
            break;
3413
          }
3810
          default:
3414
          iprot.readFieldEnd();
3811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3415
        }
3812
        }
-
 
3813
        iprot.readFieldEnd();
3416
      }
3814
      }
3417
      iprot.readStructEnd();
3815
      iprot.readStructEnd();
3418
      validate();
3816
      validate();
3419
    }
3817
    }
3420
 
3818
 
3421
    public void write(TProtocol oprot) throws TException {
3819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3422
      validate();
3820
      validate();
3423
 
3821
 
3424
      oprot.writeStructBegin(STRUCT_DESC);
3822
      oprot.writeStructBegin(STRUCT_DESC);
3425
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
3823
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
3426
      oprot.writeI64(this.fromTime);
3824
      oprot.writeI64(this.fromTime);
Line 3455... Line 3853...
3455
      if (!first) sb.append(", ");
3853
      if (!first) sb.append(", ");
3456
      sb.append("status:");
3854
      sb.append("status:");
3457
      if (this.status == null) {
3855
      if (this.status == null) {
3458
        sb.append("null");
3856
        sb.append("null");
3459
      } else {
3857
      } else {
3460
        String status_name = status.name();
-
 
3461
        if (status_name != null) {
-
 
3462
          sb.append(status_name);
-
 
3463
          sb.append(" (");
-
 
3464
        }
-
 
3465
        sb.append(this.status);
3858
        sb.append(this.status);
3466
        if (status_name != null) {
-
 
3467
          sb.append(")");
-
 
3468
        }
-
 
3469
      }
3859
      }
3470
      first = false;
3860
      first = false;
3471
      if (!first) sb.append(", ");
3861
      if (!first) sb.append(", ");
3472
      sb.append("gatewayId:");
3862
      sb.append("gatewayId:");
3473
      sb.append(this.gatewayId);
3863
      sb.append(this.gatewayId);
3474
      first = false;
3864
      first = false;
3475
      sb.append(")");
3865
      sb.append(")");
3476
      return sb.toString();
3866
      return sb.toString();
3477
    }
3867
    }
3478
 
3868
 
3479
    public void validate() throws TException {
3869
    public void validate() throws org.apache.thrift.TException {
3480
      // check for required fields
3870
      // check for required fields
3481
    }
3871
    }
3482
 
3872
 
-
 
3873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3874
      try {
-
 
3875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3876
      } catch (org.apache.thrift.TException te) {
-
 
3877
        throw new java.io.IOException(te);
-
 
3878
      }
-
 
3879
    }
-
 
3880
 
-
 
3881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3882
      try {
-
 
3883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3884
      } catch (org.apache.thrift.TException te) {
-
 
3885
        throw new java.io.IOException(te);
-
 
3886
      }
-
 
3887
    }
-
 
3888
 
3483
  }
3889
  }
3484
 
3890
 
3485
  public static class getPayments_result implements TBase<getPayments_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPayments_result>   {
3891
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
3486
    private static final TStruct STRUCT_DESC = new TStruct("getPayments_result");
3892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
3487
 
3893
 
3488
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
3894
    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);
3489
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
3895
    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);
3490
 
3896
 
3491
    private List<Payment> success;
3897
    private List<Payment> success; // required
3492
    private PaymentException pe;
3898
    private PaymentException pe; // required
3493
 
3899
 
3494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3495
    public enum _Fields implements TFieldIdEnum {
3901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3496
      SUCCESS((short)0, "success"),
3902
      SUCCESS((short)0, "success"),
3497
      PE((short)1, "pe");
3903
      PE((short)1, "pe");
3498
 
3904
 
3499
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3501
 
3906
 
3502
      static {
3907
      static {
3503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3504
          byId.put((int)field._thriftId, field);
-
 
3505
          byName.put(field.getFieldName(), field);
3909
          byName.put(field.getFieldName(), field);
3506
        }
3910
        }
3507
      }
3911
      }
3508
 
3912
 
3509
      /**
3913
      /**
3510
       * Find the _Fields constant that matches fieldId, or null if its not found.
3914
       * Find the _Fields constant that matches fieldId, or null if its not found.
3511
       */
3915
       */
3512
      public static _Fields findByThriftId(int fieldId) {
3916
      public static _Fields findByThriftId(int fieldId) {
3513
        return byId.get(fieldId);
3917
        switch(fieldId) {
-
 
3918
          case 0: // SUCCESS
-
 
3919
            return SUCCESS;
-
 
3920
          case 1: // PE
-
 
3921
            return PE;
-
 
3922
          default:
-
 
3923
            return null;
-
 
3924
        }
3514
      }
3925
      }
3515
 
3926
 
3516
      /**
3927
      /**
3517
       * Find the _Fields constant that matches fieldId, throwing an exception
3928
       * Find the _Fields constant that matches fieldId, throwing an exception
3518
       * if it is not found.
3929
       * if it is not found.
Line 3547... Line 3958...
3547
      }
3958
      }
3548
    }
3959
    }
3549
 
3960
 
3550
    // isset id assignments
3961
    // isset id assignments
3551
 
3962
 
3552
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3963
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3553
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3554
          new ListMetaData(TType.LIST, 
-
 
3555
              new StructMetaData(TType.STRUCT, Payment.class))));
-
 
3556
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
3557
          new FieldValueMetaData(TType.STRUCT)));
-
 
3558
    }});
-
 
3559
 
-
 
3560
    static {
3964
    static {
-
 
3965
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3966
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3967
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
3968
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
-
 
3969
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
3971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3561
      FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
3972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
3562
    }
3973
    }
3563
 
3974
 
3564
    public getPayments_result() {
3975
    public getPayments_result() {
3565
    }
3976
    }
3566
 
3977
 
Line 3591... Line 4002...
3591
 
4002
 
3592
    public getPayments_result deepCopy() {
4003
    public getPayments_result deepCopy() {
3593
      return new getPayments_result(this);
4004
      return new getPayments_result(this);
3594
    }
4005
    }
3595
 
4006
 
3596
    @Deprecated
4007
    @Override
3597
    public getPayments_result clone() {
4008
    public void clear() {
3598
      return new getPayments_result(this);
4009
      this.success = null;
-
 
4010
      this.pe = null;
3599
    }
4011
    }
3600
 
4012
 
3601
    public int getSuccessSize() {
4013
    public int getSuccessSize() {
3602
      return (this.success == null) ? 0 : this.success.size();
4014
      return (this.success == null) ? 0 : this.success.size();
3603
    }
4015
    }
Line 3615... Line 4027...
3615
 
4027
 
3616
    public List<Payment> getSuccess() {
4028
    public List<Payment> getSuccess() {
3617
      return this.success;
4029
      return this.success;
3618
    }
4030
    }
3619
 
4031
 
3620
    public getPayments_result setSuccess(List<Payment> success) {
4032
    public void setSuccess(List<Payment> success) {
3621
      this.success = success;
4033
      this.success = success;
3622
      return this;
-
 
3623
    }
4034
    }
3624
 
4035
 
3625
    public void unsetSuccess() {
4036
    public void unsetSuccess() {
3626
      this.success = null;
4037
      this.success = null;
3627
    }
4038
    }
3628
 
4039
 
3629
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
4040
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3630
    public boolean isSetSuccess() {
4041
    public boolean isSetSuccess() {
3631
      return this.success != null;
4042
      return this.success != null;
3632
    }
4043
    }
3633
 
4044
 
3634
    public void setSuccessIsSet(boolean value) {
4045
    public void setSuccessIsSet(boolean value) {
Line 3639... Line 4050...
3639
 
4050
 
3640
    public PaymentException getPe() {
4051
    public PaymentException getPe() {
3641
      return this.pe;
4052
      return this.pe;
3642
    }
4053
    }
3643
 
4054
 
3644
    public getPayments_result setPe(PaymentException pe) {
4055
    public void setPe(PaymentException pe) {
3645
      this.pe = pe;
4056
      this.pe = pe;
3646
      return this;
-
 
3647
    }
4057
    }
3648
 
4058
 
3649
    public void unsetPe() {
4059
    public void unsetPe() {
3650
      this.pe = null;
4060
      this.pe = null;
3651
    }
4061
    }
3652
 
4062
 
3653
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
4063
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
3654
    public boolean isSetPe() {
4064
    public boolean isSetPe() {
3655
      return this.pe != null;
4065
      return this.pe != null;
3656
    }
4066
    }
3657
 
4067
 
3658
    public void setPeIsSet(boolean value) {
4068
    public void setPeIsSet(boolean value) {
Line 3680... Line 4090...
3680
        break;
4090
        break;
3681
 
4091
 
3682
      }
4092
      }
3683
    }
4093
    }
3684
 
4094
 
3685
    public void setFieldValue(int fieldID, Object value) {
-
 
3686
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3687
    }
-
 
3688
 
-
 
3689
    public Object getFieldValue(_Fields field) {
4095
    public Object getFieldValue(_Fields field) {
3690
      switch (field) {
4096
      switch (field) {
3691
      case SUCCESS:
4097
      case SUCCESS:
3692
        return getSuccess();
4098
        return getSuccess();
3693
 
4099
 
Line 3696... Line 4102...
3696
 
4102
 
3697
      }
4103
      }
3698
      throw new IllegalStateException();
4104
      throw new IllegalStateException();
3699
    }
4105
    }
3700
 
4106
 
3701
    public Object getFieldValue(int fieldId) {
-
 
3702
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3703
    }
-
 
3704
 
-
 
3705
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4107
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3706
    public boolean isSet(_Fields field) {
4108
    public boolean isSet(_Fields field) {
-
 
4109
      if (field == null) {
-
 
4110
        throw new IllegalArgumentException();
-
 
4111
      }
-
 
4112
 
3707
      switch (field) {
4113
      switch (field) {
3708
      case SUCCESS:
4114
      case SUCCESS:
3709
        return isSetSuccess();
4115
        return isSetSuccess();
3710
      case PE:
4116
      case PE:
3711
        return isSetPe();
4117
        return isSetPe();
3712
      }
4118
      }
3713
      throw new IllegalStateException();
4119
      throw new IllegalStateException();
3714
    }
4120
    }
3715
 
4121
 
3716
    public boolean isSet(int fieldID) {
-
 
3717
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3718
    }
-
 
3719
 
-
 
3720
    @Override
4122
    @Override
3721
    public boolean equals(Object that) {
4123
    public boolean equals(Object that) {
3722
      if (that == null)
4124
      if (that == null)
3723
        return false;
4125
        return false;
3724
      if (that instanceof getPayments_result)
4126
      if (that instanceof getPayments_result)
Line 3762... Line 4164...
3762
      }
4164
      }
3763
 
4165
 
3764
      int lastComparison = 0;
4166
      int lastComparison = 0;
3765
      getPayments_result typedOther = (getPayments_result)other;
4167
      getPayments_result typedOther = (getPayments_result)other;
3766
 
4168
 
3767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
4169
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3768
      if (lastComparison != 0) {
4170
      if (lastComparison != 0) {
3769
        return lastComparison;
4171
        return lastComparison;
3770
      }
4172
      }
-
 
4173
      if (isSetSuccess()) {
3771
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
4174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3772
      if (lastComparison != 0) {
4175
        if (lastComparison != 0) {
3773
        return lastComparison;
4176
          return lastComparison;
-
 
4177
        }
3774
      }
4178
      }
3775
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
4179
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3776
      if (lastComparison != 0) {
4180
      if (lastComparison != 0) {
3777
        return lastComparison;
4181
        return lastComparison;
3778
      }
4182
      }
-
 
4183
      if (isSetPe()) {
3779
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
4184
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3780
      if (lastComparison != 0) {
4185
        if (lastComparison != 0) {
3781
        return lastComparison;
4186
          return lastComparison;
-
 
4187
        }
3782
      }
4188
      }
3783
      return 0;
4189
      return 0;
3784
    }
4190
    }
3785
 
4191
 
-
 
4192
    public _Fields fieldForId(int fieldId) {
-
 
4193
      return _Fields.findByThriftId(fieldId);
-
 
4194
    }
-
 
4195
 
3786
    public void read(TProtocol iprot) throws TException {
4196
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3787
      TField field;
4197
      org.apache.thrift.protocol.TField field;
3788
      iprot.readStructBegin();
4198
      iprot.readStructBegin();
3789
      while (true)
4199
      while (true)
3790
      {
4200
      {
3791
        field = iprot.readFieldBegin();
4201
        field = iprot.readFieldBegin();
3792
        if (field.type == TType.STOP) { 
4202
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3793
          break;
4203
          break;
3794
        }
4204
        }
3795
        _Fields fieldId = _Fields.findByThriftId(field.id);
4205
        switch (field.id) {
3796
        if (fieldId == null) {
4206
          case 0: // SUCCESS
3797
          TProtocolUtil.skip(iprot, field.type);
4207
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3798
        } else {
4208
              {
3799
          switch (fieldId) {
4209
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
3800
            case SUCCESS:
4210
                this.success = new ArrayList<Payment>(_list16.size);
3801
              if (field.type == TType.LIST) {
4211
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
3802
                {
4212
                {
3803
                  TList _list16 = iprot.readListBegin();
-
 
3804
                  this.success = new ArrayList<Payment>(_list16.size);
-
 
3805
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
-
 
3806
                  {
-
 
3807
                    Payment _elem18;
4213
                  Payment _elem18; // required
3808
                    _elem18 = new Payment();
4214
                  _elem18 = new Payment();
3809
                    _elem18.read(iprot);
4215
                  _elem18.read(iprot);
3810
                    this.success.add(_elem18);
4216
                  this.success.add(_elem18);
3811
                  }
-
 
3812
                  iprot.readListEnd();
-
 
3813
                }
4217
                }
3814
              } else { 
-
 
3815
                TProtocolUtil.skip(iprot, field.type);
-
 
3816
              }
-
 
3817
              break;
-
 
3818
            case PE:
-
 
3819
              if (field.type == TType.STRUCT) {
-
 
3820
                this.pe = new PaymentException();
-
 
3821
                this.pe.read(iprot);
4218
                iprot.readListEnd();
3822
              } else { 
-
 
3823
                TProtocolUtil.skip(iprot, field.type);
-
 
3824
              }
4219
              }
-
 
4220
            } else { 
-
 
4221
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4222
            }
3825
              break;
4223
            break;
-
 
4224
          case 1: // PE
-
 
4225
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
4226
              this.pe = new PaymentException();
-
 
4227
              this.pe.read(iprot);
-
 
4228
            } else { 
-
 
4229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3826
          }
4230
            }
3827
          iprot.readFieldEnd();
4231
            break;
-
 
4232
          default:
-
 
4233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3828
        }
4234
        }
-
 
4235
        iprot.readFieldEnd();
3829
      }
4236
      }
3830
      iprot.readStructEnd();
4237
      iprot.readStructEnd();
3831
      validate();
4238
      validate();
3832
    }
4239
    }
3833
 
4240
 
3834
    public void write(TProtocol oprot) throws TException {
4241
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3835
      oprot.writeStructBegin(STRUCT_DESC);
4242
      oprot.writeStructBegin(STRUCT_DESC);
3836
 
4243
 
3837
      if (this.isSetSuccess()) {
4244
      if (this.isSetSuccess()) {
3838
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4245
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3839
        {
4246
        {
3840
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4247
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3841
          for (Payment _iter19 : this.success)
4248
          for (Payment _iter19 : this.success)
3842
          {
4249
          {
3843
            _iter19.write(oprot);
4250
            _iter19.write(oprot);
3844
          }
4251
          }
3845
          oprot.writeListEnd();
4252
          oprot.writeListEnd();
Line 3876... Line 4283...
3876
      first = false;
4283
      first = false;
3877
      sb.append(")");
4284
      sb.append(")");
3878
      return sb.toString();
4285
      return sb.toString();
3879
    }
4286
    }
3880
 
4287
 
3881
    public void validate() throws TException {
4288
    public void validate() throws org.apache.thrift.TException {
3882
      // check for required fields
4289
      // check for required fields
3883
    }
4290
    }
3884
 
4291
 
-
 
4292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4293
      try {
-
 
4294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4295
      } catch (org.apache.thrift.TException te) {
-
 
4296
        throw new java.io.IOException(te);
-
 
4297
      }
-
 
4298
    }
-
 
4299
 
-
 
4300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4301
      try {
-
 
4302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4303
      } catch (org.apache.thrift.TException te) {
-
 
4304
        throw new java.io.IOException(te);
-
 
4305
      }
-
 
4306
    }
-
 
4307
 
3885
  }
4308
  }
3886
 
4309
 
3887
  public static class getPaymentGateway_args implements TBase<getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentGateway_args>   {
4310
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
3888
    private static final TStruct STRUCT_DESC = new TStruct("getPaymentGateway_args");
4311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
3889
 
4312
 
3890
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
4313
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
3891
 
4314
 
3892
    private long id;
4315
    private long id; // required
3893
 
4316
 
3894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3895
    public enum _Fields implements TFieldIdEnum {
4318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3896
      ID((short)1, "id");
4319
      ID((short)1, "id");
3897
 
4320
 
3898
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3900
 
4322
 
3901
      static {
4323
      static {
3902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3903
          byId.put((int)field._thriftId, field);
-
 
3904
          byName.put(field.getFieldName(), field);
4325
          byName.put(field.getFieldName(), field);
3905
        }
4326
        }
3906
      }
4327
      }
3907
 
4328
 
3908
      /**
4329
      /**
3909
       * Find the _Fields constant that matches fieldId, or null if its not found.
4330
       * Find the _Fields constant that matches fieldId, or null if its not found.
3910
       */
4331
       */
3911
      public static _Fields findByThriftId(int fieldId) {
4332
      public static _Fields findByThriftId(int fieldId) {
3912
        return byId.get(fieldId);
4333
        switch(fieldId) {
-
 
4334
          case 1: // ID
-
 
4335
            return ID;
-
 
4336
          default:
-
 
4337
            return null;
-
 
4338
        }
3913
      }
4339
      }
3914
 
4340
 
3915
      /**
4341
      /**
3916
       * Find the _Fields constant that matches fieldId, throwing an exception
4342
       * Find the _Fields constant that matches fieldId, throwing an exception
3917
       * if it is not found.
4343
       * if it is not found.
Line 3948... Line 4374...
3948
 
4374
 
3949
    // isset id assignments
4375
    // isset id assignments
3950
    private static final int __ID_ISSET_ID = 0;
4376
    private static final int __ID_ISSET_ID = 0;
3951
    private BitSet __isset_bit_vector = new BitSet(1);
4377
    private BitSet __isset_bit_vector = new BitSet(1);
3952
 
4378
 
3953
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4379
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3954
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
3955
          new FieldValueMetaData(TType.I64)));
-
 
3956
    }});
-
 
3957
 
-
 
3958
    static {
4380
    static {
-
 
4381
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4382
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4384
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3959
      FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
4385
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
3960
    }
4386
    }
3961
 
4387
 
3962
    public getPaymentGateway_args() {
4388
    public getPaymentGateway_args() {
3963
    }
4389
    }
3964
 
4390
 
Line 3981... Line 4407...
3981
 
4407
 
3982
    public getPaymentGateway_args deepCopy() {
4408
    public getPaymentGateway_args deepCopy() {
3983
      return new getPaymentGateway_args(this);
4409
      return new getPaymentGateway_args(this);
3984
    }
4410
    }
3985
 
4411
 
3986
    @Deprecated
4412
    @Override
3987
    public getPaymentGateway_args clone() {
4413
    public void clear() {
3988
      return new getPaymentGateway_args(this);
4414
      setIdIsSet(false);
-
 
4415
      this.id = 0;
3989
    }
4416
    }
3990
 
4417
 
3991
    public long getId() {
4418
    public long getId() {
3992
      return this.id;
4419
      return this.id;
3993
    }
4420
    }
3994
 
4421
 
3995
    public getPaymentGateway_args setId(long id) {
4422
    public void setId(long id) {
3996
      this.id = id;
4423
      this.id = id;
3997
      setIdIsSet(true);
4424
      setIdIsSet(true);
3998
      return this;
-
 
3999
    }
4425
    }
4000
 
4426
 
4001
    public void unsetId() {
4427
    public void unsetId() {
4002
      __isset_bit_vector.clear(__ID_ISSET_ID);
4428
      __isset_bit_vector.clear(__ID_ISSET_ID);
4003
    }
4429
    }
4004
 
4430
 
4005
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
4431
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
4006
    public boolean isSetId() {
4432
    public boolean isSetId() {
4007
      return __isset_bit_vector.get(__ID_ISSET_ID);
4433
      return __isset_bit_vector.get(__ID_ISSET_ID);
4008
    }
4434
    }
4009
 
4435
 
4010
    public void setIdIsSet(boolean value) {
4436
    public void setIdIsSet(boolean value) {
Line 4022... Line 4448...
4022
        break;
4448
        break;
4023
 
4449
 
4024
      }
4450
      }
4025
    }
4451
    }
4026
 
4452
 
4027
    public void setFieldValue(int fieldID, Object value) {
-
 
4028
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4029
    }
-
 
4030
 
-
 
4031
    public Object getFieldValue(_Fields field) {
4453
    public Object getFieldValue(_Fields field) {
4032
      switch (field) {
4454
      switch (field) {
4033
      case ID:
4455
      case ID:
4034
        return new Long(getId());
4456
        return Long.valueOf(getId());
4035
 
4457
 
4036
      }
4458
      }
4037
      throw new IllegalStateException();
4459
      throw new IllegalStateException();
4038
    }
4460
    }
4039
 
4461
 
4040
    public Object getFieldValue(int fieldId) {
-
 
4041
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4042
    }
-
 
4043
 
-
 
4044
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4462
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4045
    public boolean isSet(_Fields field) {
4463
    public boolean isSet(_Fields field) {
-
 
4464
      if (field == null) {
-
 
4465
        throw new IllegalArgumentException();
-
 
4466
      }
-
 
4467
 
4046
      switch (field) {
4468
      switch (field) {
4047
      case ID:
4469
      case ID:
4048
        return isSetId();
4470
        return isSetId();
4049
      }
4471
      }
4050
      throw new IllegalStateException();
4472
      throw new IllegalStateException();
4051
    }
4473
    }
4052
 
4474
 
4053
    public boolean isSet(int fieldID) {
-
 
4054
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4055
    }
-
 
4056
 
-
 
4057
    @Override
4475
    @Override
4058
    public boolean equals(Object that) {
4476
    public boolean equals(Object that) {
4059
      if (that == null)
4477
      if (that == null)
4060
        return false;
4478
        return false;
4061
      if (that instanceof getPaymentGateway_args)
4479
      if (that instanceof getPaymentGateway_args)
Line 4090... Line 4508...
4090
      }
4508
      }
4091
 
4509
 
4092
      int lastComparison = 0;
4510
      int lastComparison = 0;
4093
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
4511
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
4094
 
4512
 
4095
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
4513
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
4096
      if (lastComparison != 0) {
4514
      if (lastComparison != 0) {
4097
        return lastComparison;
4515
        return lastComparison;
4098
      }
4516
      }
-
 
4517
      if (isSetId()) {
4099
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
4518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
4100
      if (lastComparison != 0) {
4519
        if (lastComparison != 0) {
4101
        return lastComparison;
4520
          return lastComparison;
-
 
4521
        }
4102
      }
4522
      }
4103
      return 0;
4523
      return 0;
4104
    }
4524
    }
4105
 
4525
 
-
 
4526
    public _Fields fieldForId(int fieldId) {
-
 
4527
      return _Fields.findByThriftId(fieldId);
-
 
4528
    }
-
 
4529
 
4106
    public void read(TProtocol iprot) throws TException {
4530
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4107
      TField field;
4531
      org.apache.thrift.protocol.TField field;
4108
      iprot.readStructBegin();
4532
      iprot.readStructBegin();
4109
      while (true)
4533
      while (true)
4110
      {
4534
      {
4111
        field = iprot.readFieldBegin();
4535
        field = iprot.readFieldBegin();
4112
        if (field.type == TType.STOP) { 
4536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4113
          break;
4537
          break;
4114
        }
4538
        }
4115
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4116
        if (fieldId == null) {
-
 
4117
          TProtocolUtil.skip(iprot, field.type);
-
 
4118
        } else {
-
 
4119
          switch (fieldId) {
4539
        switch (field.id) {
4120
            case ID:
4540
          case 1: // ID
4121
              if (field.type == TType.I64) {
4541
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4122
                this.id = iprot.readI64();
4542
              this.id = iprot.readI64();
4123
                setIdIsSet(true);
4543
              setIdIsSet(true);
4124
              } else { 
4544
            } else { 
4125
                TProtocolUtil.skip(iprot, field.type);
4545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4126
              }
4546
            }
4127
              break;
4547
            break;
4128
          }
4548
          default:
4129
          iprot.readFieldEnd();
4549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4130
        }
4550
        }
-
 
4551
        iprot.readFieldEnd();
4131
      }
4552
      }
4132
      iprot.readStructEnd();
4553
      iprot.readStructEnd();
4133
      validate();
4554
      validate();
4134
    }
4555
    }
4135
 
4556
 
4136
    public void write(TProtocol oprot) throws TException {
4557
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4137
      validate();
4558
      validate();
4138
 
4559
 
4139
      oprot.writeStructBegin(STRUCT_DESC);
4560
      oprot.writeStructBegin(STRUCT_DESC);
4140
      oprot.writeFieldBegin(ID_FIELD_DESC);
4561
      oprot.writeFieldBegin(ID_FIELD_DESC);
4141
      oprot.writeI64(this.id);
4562
      oprot.writeI64(this.id);
Line 4154... Line 4575...
4154
      first = false;
4575
      first = false;
4155
      sb.append(")");
4576
      sb.append(")");
4156
      return sb.toString();
4577
      return sb.toString();
4157
    }
4578
    }
4158
 
4579
 
4159
    public void validate() throws TException {
4580
    public void validate() throws org.apache.thrift.TException {
4160
      // check for required fields
4581
      // check for required fields
4161
    }
4582
    }
4162
 
4583
 
-
 
4584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4585
      try {
-
 
4586
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4587
      } catch (org.apache.thrift.TException te) {
-
 
4588
        throw new java.io.IOException(te);
-
 
4589
      }
-
 
4590
    }
-
 
4591
 
-
 
4592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4593
      try {
-
 
4594
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4595
        __isset_bit_vector = new BitSet(1);
-
 
4596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4597
      } catch (org.apache.thrift.TException te) {
-
 
4598
        throw new java.io.IOException(te);
-
 
4599
      }
-
 
4600
    }
-
 
4601
 
4163
  }
4602
  }
4164
 
4603
 
4165
  public static class getPaymentGateway_result implements TBase<getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentGateway_result>   {
4604
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
4166
    private static final TStruct STRUCT_DESC = new TStruct("getPaymentGateway_result");
4605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
4167
 
4606
 
4168
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4607
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
4169
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
4608
    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);
4170
 
4609
 
4171
    private PaymentGateway success;
4610
    private PaymentGateway success; // required
4172
    private PaymentException pe;
4611
    private PaymentException pe; // required
4173
 
4612
 
4174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4175
    public enum _Fields implements TFieldIdEnum {
4614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4176
      SUCCESS((short)0, "success"),
4615
      SUCCESS((short)0, "success"),
4177
      PE((short)1, "pe");
4616
      PE((short)1, "pe");
4178
 
4617
 
4179
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4181
 
4619
 
4182
      static {
4620
      static {
4183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4184
          byId.put((int)field._thriftId, field);
-
 
4185
          byName.put(field.getFieldName(), field);
4622
          byName.put(field.getFieldName(), field);
4186
        }
4623
        }
4187
      }
4624
      }
4188
 
4625
 
4189
      /**
4626
      /**
4190
       * Find the _Fields constant that matches fieldId, or null if its not found.
4627
       * Find the _Fields constant that matches fieldId, or null if its not found.
4191
       */
4628
       */
4192
      public static _Fields findByThriftId(int fieldId) {
4629
      public static _Fields findByThriftId(int fieldId) {
4193
        return byId.get(fieldId);
4630
        switch(fieldId) {
-
 
4631
          case 0: // SUCCESS
-
 
4632
            return SUCCESS;
-
 
4633
          case 1: // PE
-
 
4634
            return PE;
-
 
4635
          default:
-
 
4636
            return null;
-
 
4637
        }
4194
      }
4638
      }
4195
 
4639
 
4196
      /**
4640
      /**
4197
       * Find the _Fields constant that matches fieldId, throwing an exception
4641
       * Find the _Fields constant that matches fieldId, throwing an exception
4198
       * if it is not found.
4642
       * if it is not found.
Line 4227... Line 4671...
4227
      }
4671
      }
4228
    }
4672
    }
4229
 
4673
 
4230
    // isset id assignments
4674
    // isset id assignments
4231
 
4675
 
4232
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4676
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4233
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
4234
          new StructMetaData(TType.STRUCT, PaymentGateway.class)));
-
 
4235
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
4236
          new FieldValueMetaData(TType.STRUCT)));
-
 
4237
    }});
-
 
4238
 
-
 
4239
    static {
4677
    static {
-
 
4678
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4679
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4680
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
-
 
4681
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
4683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4240
      FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
4684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
4241
    }
4685
    }
4242
 
4686
 
4243
    public getPaymentGateway_result() {
4687
    public getPaymentGateway_result() {
4244
    }
4688
    }
4245
 
4689
 
Line 4266... Line 4710...
4266
 
4710
 
4267
    public getPaymentGateway_result deepCopy() {
4711
    public getPaymentGateway_result deepCopy() {
4268
      return new getPaymentGateway_result(this);
4712
      return new getPaymentGateway_result(this);
4269
    }
4713
    }
4270
 
4714
 
4271
    @Deprecated
4715
    @Override
4272
    public getPaymentGateway_result clone() {
4716
    public void clear() {
4273
      return new getPaymentGateway_result(this);
4717
      this.success = null;
-
 
4718
      this.pe = null;
4274
    }
4719
    }
4275
 
4720
 
4276
    public PaymentGateway getSuccess() {
4721
    public PaymentGateway getSuccess() {
4277
      return this.success;
4722
      return this.success;
4278
    }
4723
    }
4279
 
4724
 
4280
    public getPaymentGateway_result setSuccess(PaymentGateway success) {
4725
    public void setSuccess(PaymentGateway success) {
4281
      this.success = success;
4726
      this.success = success;
4282
      return this;
-
 
4283
    }
4727
    }
4284
 
4728
 
4285
    public void unsetSuccess() {
4729
    public void unsetSuccess() {
4286
      this.success = null;
4730
      this.success = null;
4287
    }
4731
    }
4288
 
4732
 
4289
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
4733
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4290
    public boolean isSetSuccess() {
4734
    public boolean isSetSuccess() {
4291
      return this.success != null;
4735
      return this.success != null;
4292
    }
4736
    }
4293
 
4737
 
4294
    public void setSuccessIsSet(boolean value) {
4738
    public void setSuccessIsSet(boolean value) {
Line 4299... Line 4743...
4299
 
4743
 
4300
    public PaymentException getPe() {
4744
    public PaymentException getPe() {
4301
      return this.pe;
4745
      return this.pe;
4302
    }
4746
    }
4303
 
4747
 
4304
    public getPaymentGateway_result setPe(PaymentException pe) {
4748
    public void setPe(PaymentException pe) {
4305
      this.pe = pe;
4749
      this.pe = pe;
4306
      return this;
-
 
4307
    }
4750
    }
4308
 
4751
 
4309
    public void unsetPe() {
4752
    public void unsetPe() {
4310
      this.pe = null;
4753
      this.pe = null;
4311
    }
4754
    }
4312
 
4755
 
4313
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
4756
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
4314
    public boolean isSetPe() {
4757
    public boolean isSetPe() {
4315
      return this.pe != null;
4758
      return this.pe != null;
4316
    }
4759
    }
4317
 
4760
 
4318
    public void setPeIsSet(boolean value) {
4761
    public void setPeIsSet(boolean value) {
Line 4340... Line 4783...
4340
        break;
4783
        break;
4341
 
4784
 
4342
      }
4785
      }
4343
    }
4786
    }
4344
 
4787
 
4345
    public void setFieldValue(int fieldID, Object value) {
-
 
4346
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4347
    }
-
 
4348
 
-
 
4349
    public Object getFieldValue(_Fields field) {
4788
    public Object getFieldValue(_Fields field) {
4350
      switch (field) {
4789
      switch (field) {
4351
      case SUCCESS:
4790
      case SUCCESS:
4352
        return getSuccess();
4791
        return getSuccess();
4353
 
4792
 
Line 4356... Line 4795...
4356
 
4795
 
4357
      }
4796
      }
4358
      throw new IllegalStateException();
4797
      throw new IllegalStateException();
4359
    }
4798
    }
4360
 
4799
 
4361
    public Object getFieldValue(int fieldId) {
-
 
4362
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4363
    }
-
 
4364
 
-
 
4365
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4800
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4366
    public boolean isSet(_Fields field) {
4801
    public boolean isSet(_Fields field) {
-
 
4802
      if (field == null) {
-
 
4803
        throw new IllegalArgumentException();
-
 
4804
      }
-
 
4805
 
4367
      switch (field) {
4806
      switch (field) {
4368
      case SUCCESS:
4807
      case SUCCESS:
4369
        return isSetSuccess();
4808
        return isSetSuccess();
4370
      case PE:
4809
      case PE:
4371
        return isSetPe();
4810
        return isSetPe();
4372
      }
4811
      }
4373
      throw new IllegalStateException();
4812
      throw new IllegalStateException();
4374
    }
4813
    }
4375
 
4814
 
4376
    public boolean isSet(int fieldID) {
-
 
4377
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4378
    }
-
 
4379
 
-
 
4380
    @Override
4815
    @Override
4381
    public boolean equals(Object that) {
4816
    public boolean equals(Object that) {
4382
      if (that == null)
4817
      if (that == null)
4383
        return false;
4818
        return false;
4384
      if (that instanceof getPaymentGateway_result)
4819
      if (that instanceof getPaymentGateway_result)
Line 4422... Line 4857...
4422
      }
4857
      }
4423
 
4858
 
4424
      int lastComparison = 0;
4859
      int lastComparison = 0;
4425
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
4860
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
4426
 
4861
 
4427
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
4862
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4428
      if (lastComparison != 0) {
4863
      if (lastComparison != 0) {
4429
        return lastComparison;
4864
        return lastComparison;
4430
      }
4865
      }
-
 
4866
      if (isSetSuccess()) {
4431
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
4867
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4432
      if (lastComparison != 0) {
4868
        if (lastComparison != 0) {
4433
        return lastComparison;
4869
          return lastComparison;
-
 
4870
        }
4434
      }
4871
      }
4435
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
4872
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
4436
      if (lastComparison != 0) {
4873
      if (lastComparison != 0) {
4437
        return lastComparison;
4874
        return lastComparison;
4438
      }
4875
      }
-
 
4876
      if (isSetPe()) {
4439
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
4877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4440
      if (lastComparison != 0) {
4878
        if (lastComparison != 0) {
4441
        return lastComparison;
4879
          return lastComparison;
-
 
4880
        }
4442
      }
4881
      }
4443
      return 0;
4882
      return 0;
4444
    }
4883
    }
4445
 
4884
 
-
 
4885
    public _Fields fieldForId(int fieldId) {
-
 
4886
      return _Fields.findByThriftId(fieldId);
-
 
4887
    }
-
 
4888
 
4446
    public void read(TProtocol iprot) throws TException {
4889
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4447
      TField field;
4890
      org.apache.thrift.protocol.TField field;
4448
      iprot.readStructBegin();
4891
      iprot.readStructBegin();
4449
      while (true)
4892
      while (true)
4450
      {
4893
      {
4451
        field = iprot.readFieldBegin();
4894
        field = iprot.readFieldBegin();
4452
        if (field.type == TType.STOP) { 
4895
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4453
          break;
4896
          break;
4454
        }
4897
        }
4455
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4456
        if (fieldId == null) {
-
 
4457
          TProtocolUtil.skip(iprot, field.type);
-
 
4458
        } else {
-
 
4459
          switch (fieldId) {
4898
        switch (field.id) {
4460
            case SUCCESS:
4899
          case 0: // SUCCESS
4461
              if (field.type == TType.STRUCT) {
4900
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4462
                this.success = new PaymentGateway();
4901
              this.success = new PaymentGateway();
4463
                this.success.read(iprot);
4902
              this.success.read(iprot);
4464
              } else { 
4903
            } else { 
4465
                TProtocolUtil.skip(iprot, field.type);
4904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4466
              }
4905
            }
4467
              break;
4906
            break;
4468
            case PE:
4907
          case 1: // PE
4469
              if (field.type == TType.STRUCT) {
4908
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4470
                this.pe = new PaymentException();
4909
              this.pe = new PaymentException();
4471
                this.pe.read(iprot);
4910
              this.pe.read(iprot);
4472
              } else { 
4911
            } else { 
4473
                TProtocolUtil.skip(iprot, field.type);
4912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4474
              }
4913
            }
4475
              break;
4914
            break;
4476
          }
4915
          default:
4477
          iprot.readFieldEnd();
4916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4478
        }
4917
        }
-
 
4918
        iprot.readFieldEnd();
4479
      }
4919
      }
4480
      iprot.readStructEnd();
4920
      iprot.readStructEnd();
4481
      validate();
4921
      validate();
4482
    }
4922
    }
4483
 
4923
 
4484
    public void write(TProtocol oprot) throws TException {
4924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4485
      oprot.writeStructBegin(STRUCT_DESC);
4925
      oprot.writeStructBegin(STRUCT_DESC);
4486
 
4926
 
4487
      if (this.isSetSuccess()) {
4927
      if (this.isSetSuccess()) {
4488
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4928
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4489
        this.success.write(oprot);
4929
        this.success.write(oprot);
Line 4519... Line 4959...
4519
      first = false;
4959
      first = false;
4520
      sb.append(")");
4960
      sb.append(")");
4521
      return sb.toString();
4961
      return sb.toString();
4522
    }
4962
    }
4523
 
4963
 
4524
    public void validate() throws TException {
4964
    public void validate() throws org.apache.thrift.TException {
4525
      // check for required fields
4965
      // check for required fields
4526
    }
4966
    }
4527
 
4967
 
-
 
4968
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4969
      try {
-
 
4970
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4971
      } catch (org.apache.thrift.TException te) {
-
 
4972
        throw new java.io.IOException(te);
-
 
4973
      }
-
 
4974
    }
-
 
4975
 
-
 
4976
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4977
      try {
-
 
4978
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4979
      } catch (org.apache.thrift.TException te) {
-
 
4980
        throw new java.io.IOException(te);
-
 
4981
      }
-
 
4982
    }
-
 
4983
 
4528
  }
4984
  }
4529
 
4985
 
4530
  public static class getPayment_args implements TBase<getPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPayment_args>   {
4986
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
4531
    private static final TStruct STRUCT_DESC = new TStruct("getPayment_args");
4987
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
4532
 
4988
 
4533
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
4989
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
4534
 
4990
 
4535
    private long id;
4991
    private long id; // required
4536
 
4992
 
4537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4538
    public enum _Fields implements TFieldIdEnum {
4994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4539
      ID((short)1, "id");
4995
      ID((short)1, "id");
4540
 
4996
 
4541
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4997
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4543
 
4998
 
4544
      static {
4999
      static {
4545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5000
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4546
          byId.put((int)field._thriftId, field);
-
 
4547
          byName.put(field.getFieldName(), field);
5001
          byName.put(field.getFieldName(), field);
4548
        }
5002
        }
4549
      }
5003
      }
4550
 
5004
 
4551
      /**
5005
      /**
4552
       * Find the _Fields constant that matches fieldId, or null if its not found.
5006
       * Find the _Fields constant that matches fieldId, or null if its not found.
4553
       */
5007
       */
4554
      public static _Fields findByThriftId(int fieldId) {
5008
      public static _Fields findByThriftId(int fieldId) {
4555
        return byId.get(fieldId);
5009
        switch(fieldId) {
-
 
5010
          case 1: // ID
-
 
5011
            return ID;
-
 
5012
          default:
-
 
5013
            return null;
-
 
5014
        }
4556
      }
5015
      }
4557
 
5016
 
4558
      /**
5017
      /**
4559
       * Find the _Fields constant that matches fieldId, throwing an exception
5018
       * Find the _Fields constant that matches fieldId, throwing an exception
4560
       * if it is not found.
5019
       * if it is not found.
Line 4591... Line 5050...
4591
 
5050
 
4592
    // isset id assignments
5051
    // isset id assignments
4593
    private static final int __ID_ISSET_ID = 0;
5052
    private static final int __ID_ISSET_ID = 0;
4594
    private BitSet __isset_bit_vector = new BitSet(1);
5053
    private BitSet __isset_bit_vector = new BitSet(1);
4595
 
5054
 
4596
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4597
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
4598
          new FieldValueMetaData(TType.I64)));
-
 
4599
    }});
-
 
4600
 
-
 
4601
    static {
5056
    static {
-
 
5057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5058
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4602
      FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
5061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
4603
    }
5062
    }
4604
 
5063
 
4605
    public getPayment_args() {
5064
    public getPayment_args() {
4606
    }
5065
    }
4607
 
5066
 
Line 4624... Line 5083...
4624
 
5083
 
4625
    public getPayment_args deepCopy() {
5084
    public getPayment_args deepCopy() {
4626
      return new getPayment_args(this);
5085
      return new getPayment_args(this);
4627
    }
5086
    }
4628
 
5087
 
4629
    @Deprecated
5088
    @Override
4630
    public getPayment_args clone() {
5089
    public void clear() {
4631
      return new getPayment_args(this);
5090
      setIdIsSet(false);
-
 
5091
      this.id = 0;
4632
    }
5092
    }
4633
 
5093
 
4634
    public long getId() {
5094
    public long getId() {
4635
      return this.id;
5095
      return this.id;
4636
    }
5096
    }
4637
 
5097
 
4638
    public getPayment_args setId(long id) {
5098
    public void setId(long id) {
4639
      this.id = id;
5099
      this.id = id;
4640
      setIdIsSet(true);
5100
      setIdIsSet(true);
4641
      return this;
-
 
4642
    }
5101
    }
4643
 
5102
 
4644
    public void unsetId() {
5103
    public void unsetId() {
4645
      __isset_bit_vector.clear(__ID_ISSET_ID);
5104
      __isset_bit_vector.clear(__ID_ISSET_ID);
4646
    }
5105
    }
4647
 
5106
 
4648
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
5107
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
4649
    public boolean isSetId() {
5108
    public boolean isSetId() {
4650
      return __isset_bit_vector.get(__ID_ISSET_ID);
5109
      return __isset_bit_vector.get(__ID_ISSET_ID);
4651
    }
5110
    }
4652
 
5111
 
4653
    public void setIdIsSet(boolean value) {
5112
    public void setIdIsSet(boolean value) {
Line 4665... Line 5124...
4665
        break;
5124
        break;
4666
 
5125
 
4667
      }
5126
      }
4668
    }
5127
    }
4669
 
5128
 
4670
    public void setFieldValue(int fieldID, Object value) {
-
 
4671
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4672
    }
-
 
4673
 
-
 
4674
    public Object getFieldValue(_Fields field) {
5129
    public Object getFieldValue(_Fields field) {
4675
      switch (field) {
5130
      switch (field) {
4676
      case ID:
5131
      case ID:
4677
        return new Long(getId());
5132
        return Long.valueOf(getId());
4678
 
5133
 
4679
      }
5134
      }
4680
      throw new IllegalStateException();
5135
      throw new IllegalStateException();
4681
    }
5136
    }
4682
 
5137
 
4683
    public Object getFieldValue(int fieldId) {
-
 
4684
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4685
    }
-
 
4686
 
-
 
4687
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4688
    public boolean isSet(_Fields field) {
5139
    public boolean isSet(_Fields field) {
-
 
5140
      if (field == null) {
-
 
5141
        throw new IllegalArgumentException();
-
 
5142
      }
-
 
5143
 
4689
      switch (field) {
5144
      switch (field) {
4690
      case ID:
5145
      case ID:
4691
        return isSetId();
5146
        return isSetId();
4692
      }
5147
      }
4693
      throw new IllegalStateException();
5148
      throw new IllegalStateException();
4694
    }
5149
    }
4695
 
5150
 
4696
    public boolean isSet(int fieldID) {
-
 
4697
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4698
    }
-
 
4699
 
-
 
4700
    @Override
5151
    @Override
4701
    public boolean equals(Object that) {
5152
    public boolean equals(Object that) {
4702
      if (that == null)
5153
      if (that == null)
4703
        return false;
5154
        return false;
4704
      if (that instanceof getPayment_args)
5155
      if (that instanceof getPayment_args)
Line 4733... Line 5184...
4733
      }
5184
      }
4734
 
5185
 
4735
      int lastComparison = 0;
5186
      int lastComparison = 0;
4736
      getPayment_args typedOther = (getPayment_args)other;
5187
      getPayment_args typedOther = (getPayment_args)other;
4737
 
5188
 
4738
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
5189
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
4739
      if (lastComparison != 0) {
5190
      if (lastComparison != 0) {
4740
        return lastComparison;
5191
        return lastComparison;
4741
      }
5192
      }
-
 
5193
      if (isSetId()) {
4742
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
5194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
4743
      if (lastComparison != 0) {
5195
        if (lastComparison != 0) {
4744
        return lastComparison;
5196
          return lastComparison;
-
 
5197
        }
4745
      }
5198
      }
4746
      return 0;
5199
      return 0;
4747
    }
5200
    }
4748
 
5201
 
-
 
5202
    public _Fields fieldForId(int fieldId) {
-
 
5203
      return _Fields.findByThriftId(fieldId);
-
 
5204
    }
-
 
5205
 
4749
    public void read(TProtocol iprot) throws TException {
5206
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4750
      TField field;
5207
      org.apache.thrift.protocol.TField field;
4751
      iprot.readStructBegin();
5208
      iprot.readStructBegin();
4752
      while (true)
5209
      while (true)
4753
      {
5210
      {
4754
        field = iprot.readFieldBegin();
5211
        field = iprot.readFieldBegin();
4755
        if (field.type == TType.STOP) { 
5212
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4756
          break;
5213
          break;
4757
        }
5214
        }
4758
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4759
        if (fieldId == null) {
-
 
4760
          TProtocolUtil.skip(iprot, field.type);
-
 
4761
        } else {
-
 
4762
          switch (fieldId) {
5215
        switch (field.id) {
4763
            case ID:
5216
          case 1: // ID
4764
              if (field.type == TType.I64) {
5217
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4765
                this.id = iprot.readI64();
5218
              this.id = iprot.readI64();
4766
                setIdIsSet(true);
5219
              setIdIsSet(true);
4767
              } else { 
5220
            } else { 
4768
                TProtocolUtil.skip(iprot, field.type);
5221
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4769
              }
5222
            }
4770
              break;
5223
            break;
4771
          }
5224
          default:
4772
          iprot.readFieldEnd();
5225
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4773
        }
5226
        }
-
 
5227
        iprot.readFieldEnd();
4774
      }
5228
      }
4775
      iprot.readStructEnd();
5229
      iprot.readStructEnd();
4776
      validate();
5230
      validate();
4777
    }
5231
    }
4778
 
5232
 
4779
    public void write(TProtocol oprot) throws TException {
5233
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4780
      validate();
5234
      validate();
4781
 
5235
 
4782
      oprot.writeStructBegin(STRUCT_DESC);
5236
      oprot.writeStructBegin(STRUCT_DESC);
4783
      oprot.writeFieldBegin(ID_FIELD_DESC);
5237
      oprot.writeFieldBegin(ID_FIELD_DESC);
4784
      oprot.writeI64(this.id);
5238
      oprot.writeI64(this.id);
Line 4797... Line 5251...
4797
      first = false;
5251
      first = false;
4798
      sb.append(")");
5252
      sb.append(")");
4799
      return sb.toString();
5253
      return sb.toString();
4800
    }
5254
    }
4801
 
5255
 
4802
    public void validate() throws TException {
5256
    public void validate() throws org.apache.thrift.TException {
4803
      // check for required fields
5257
      // check for required fields
4804
    }
5258
    }
4805
 
5259
 
-
 
5260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5261
      try {
-
 
5262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5263
      } catch (org.apache.thrift.TException te) {
-
 
5264
        throw new java.io.IOException(te);
-
 
5265
      }
-
 
5266
    }
-
 
5267
 
-
 
5268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5269
      try {
-
 
5270
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
5271
        __isset_bit_vector = new BitSet(1);
-
 
5272
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5273
      } catch (org.apache.thrift.TException te) {
-
 
5274
        throw new java.io.IOException(te);
-
 
5275
      }
-
 
5276
    }
-
 
5277
 
4806
  }
5278
  }
4807
 
5279
 
4808
  public static class getPayment_result implements TBase<getPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPayment_result>   {
5280
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
4809
    private static final TStruct STRUCT_DESC = new TStruct("getPayment_result");
5281
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
4810
 
5282
 
4811
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
5283
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
4812
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
5284
    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);
4813
 
5285
 
4814
    private Payment success;
5286
    private Payment success; // required
4815
    private PaymentException pe;
5287
    private PaymentException pe; // required
4816
 
5288
 
4817
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4818
    public enum _Fields implements TFieldIdEnum {
5290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4819
      SUCCESS((short)0, "success"),
5291
      SUCCESS((short)0, "success"),
4820
      PE((short)1, "pe");
5292
      PE((short)1, "pe");
4821
 
5293
 
4822
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4824
 
5295
 
4825
      static {
5296
      static {
4826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4827
          byId.put((int)field._thriftId, field);
-
 
4828
          byName.put(field.getFieldName(), field);
5298
          byName.put(field.getFieldName(), field);
4829
        }
5299
        }
4830
      }
5300
      }
4831
 
5301
 
4832
      /**
5302
      /**
4833
       * Find the _Fields constant that matches fieldId, or null if its not found.
5303
       * Find the _Fields constant that matches fieldId, or null if its not found.
4834
       */
5304
       */
4835
      public static _Fields findByThriftId(int fieldId) {
5305
      public static _Fields findByThriftId(int fieldId) {
4836
        return byId.get(fieldId);
5306
        switch(fieldId) {
-
 
5307
          case 0: // SUCCESS
-
 
5308
            return SUCCESS;
-
 
5309
          case 1: // PE
-
 
5310
            return PE;
-
 
5311
          default:
-
 
5312
            return null;
-
 
5313
        }
4837
      }
5314
      }
4838
 
5315
 
4839
      /**
5316
      /**
4840
       * Find the _Fields constant that matches fieldId, throwing an exception
5317
       * Find the _Fields constant that matches fieldId, throwing an exception
4841
       * if it is not found.
5318
       * if it is not found.
Line 4870... Line 5347...
4870
      }
5347
      }
4871
    }
5348
    }
4872
 
5349
 
4873
    // isset id assignments
5350
    // isset id assignments
4874
 
5351
 
4875
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4876
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
4877
          new StructMetaData(TType.STRUCT, Payment.class)));
-
 
4878
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
4879
          new FieldValueMetaData(TType.STRUCT)));
-
 
4880
    }});
-
 
4881
 
-
 
4882
    static {
5353
    static {
-
 
5354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5355
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5356
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
-
 
5357
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
5359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4883
      FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
5360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
4884
    }
5361
    }
4885
 
5362
 
4886
    public getPayment_result() {
5363
    public getPayment_result() {
4887
    }
5364
    }
4888
 
5365
 
Line 4909... Line 5386...
4909
 
5386
 
4910
    public getPayment_result deepCopy() {
5387
    public getPayment_result deepCopy() {
4911
      return new getPayment_result(this);
5388
      return new getPayment_result(this);
4912
    }
5389
    }
4913
 
5390
 
4914
    @Deprecated
5391
    @Override
4915
    public getPayment_result clone() {
5392
    public void clear() {
4916
      return new getPayment_result(this);
5393
      this.success = null;
-
 
5394
      this.pe = null;
4917
    }
5395
    }
4918
 
5396
 
4919
    public Payment getSuccess() {
5397
    public Payment getSuccess() {
4920
      return this.success;
5398
      return this.success;
4921
    }
5399
    }
4922
 
5400
 
4923
    public getPayment_result setSuccess(Payment success) {
5401
    public void setSuccess(Payment success) {
4924
      this.success = success;
5402
      this.success = success;
4925
      return this;
-
 
4926
    }
5403
    }
4927
 
5404
 
4928
    public void unsetSuccess() {
5405
    public void unsetSuccess() {
4929
      this.success = null;
5406
      this.success = null;
4930
    }
5407
    }
4931
 
5408
 
4932
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
5409
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4933
    public boolean isSetSuccess() {
5410
    public boolean isSetSuccess() {
4934
      return this.success != null;
5411
      return this.success != null;
4935
    }
5412
    }
4936
 
5413
 
4937
    public void setSuccessIsSet(boolean value) {
5414
    public void setSuccessIsSet(boolean value) {
Line 4942... Line 5419...
4942
 
5419
 
4943
    public PaymentException getPe() {
5420
    public PaymentException getPe() {
4944
      return this.pe;
5421
      return this.pe;
4945
    }
5422
    }
4946
 
5423
 
4947
    public getPayment_result setPe(PaymentException pe) {
5424
    public void setPe(PaymentException pe) {
4948
      this.pe = pe;
5425
      this.pe = pe;
4949
      return this;
-
 
4950
    }
5426
    }
4951
 
5427
 
4952
    public void unsetPe() {
5428
    public void unsetPe() {
4953
      this.pe = null;
5429
      this.pe = null;
4954
    }
5430
    }
4955
 
5431
 
4956
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
5432
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
4957
    public boolean isSetPe() {
5433
    public boolean isSetPe() {
4958
      return this.pe != null;
5434
      return this.pe != null;
4959
    }
5435
    }
4960
 
5436
 
4961
    public void setPeIsSet(boolean value) {
5437
    public void setPeIsSet(boolean value) {
Line 4983... Line 5459...
4983
        break;
5459
        break;
4984
 
5460
 
4985
      }
5461
      }
4986
    }
5462
    }
4987
 
5463
 
4988
    public void setFieldValue(int fieldID, Object value) {
-
 
4989
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4990
    }
-
 
4991
 
-
 
4992
    public Object getFieldValue(_Fields field) {
5464
    public Object getFieldValue(_Fields field) {
4993
      switch (field) {
5465
      switch (field) {
4994
      case SUCCESS:
5466
      case SUCCESS:
4995
        return getSuccess();
5467
        return getSuccess();
4996
 
5468
 
Line 4999... Line 5471...
4999
 
5471
 
5000
      }
5472
      }
5001
      throw new IllegalStateException();
5473
      throw new IllegalStateException();
5002
    }
5474
    }
5003
 
5475
 
5004
    public Object getFieldValue(int fieldId) {
-
 
5005
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5006
    }
-
 
5007
 
-
 
5008
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5009
    public boolean isSet(_Fields field) {
5477
    public boolean isSet(_Fields field) {
-
 
5478
      if (field == null) {
-
 
5479
        throw new IllegalArgumentException();
-
 
5480
      }
-
 
5481
 
5010
      switch (field) {
5482
      switch (field) {
5011
      case SUCCESS:
5483
      case SUCCESS:
5012
        return isSetSuccess();
5484
        return isSetSuccess();
5013
      case PE:
5485
      case PE:
5014
        return isSetPe();
5486
        return isSetPe();
5015
      }
5487
      }
5016
      throw new IllegalStateException();
5488
      throw new IllegalStateException();
5017
    }
5489
    }
5018
 
5490
 
5019
    public boolean isSet(int fieldID) {
-
 
5020
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5021
    }
-
 
5022
 
-
 
5023
    @Override
5491
    @Override
5024
    public boolean equals(Object that) {
5492
    public boolean equals(Object that) {
5025
      if (that == null)
5493
      if (that == null)
5026
        return false;
5494
        return false;
5027
      if (that instanceof getPayment_result)
5495
      if (that instanceof getPayment_result)
Line 5065... Line 5533...
5065
      }
5533
      }
5066
 
5534
 
5067
      int lastComparison = 0;
5535
      int lastComparison = 0;
5068
      getPayment_result typedOther = (getPayment_result)other;
5536
      getPayment_result typedOther = (getPayment_result)other;
5069
 
5537
 
5070
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
5538
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5071
      if (lastComparison != 0) {
5539
      if (lastComparison != 0) {
5072
        return lastComparison;
5540
        return lastComparison;
5073
      }
5541
      }
-
 
5542
      if (isSetSuccess()) {
5074
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
5543
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5075
      if (lastComparison != 0) {
5544
        if (lastComparison != 0) {
5076
        return lastComparison;
5545
          return lastComparison;
-
 
5546
        }
5077
      }
5547
      }
5078
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
5548
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
5079
      if (lastComparison != 0) {
5549
      if (lastComparison != 0) {
5080
        return lastComparison;
5550
        return lastComparison;
5081
      }
5551
      }
-
 
5552
      if (isSetPe()) {
5082
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
5553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5083
      if (lastComparison != 0) {
5554
        if (lastComparison != 0) {
5084
        return lastComparison;
5555
          return lastComparison;
-
 
5556
        }
5085
      }
5557
      }
5086
      return 0;
5558
      return 0;
5087
    }
5559
    }
5088
 
5560
 
-
 
5561
    public _Fields fieldForId(int fieldId) {
-
 
5562
      return _Fields.findByThriftId(fieldId);
-
 
5563
    }
-
 
5564
 
5089
    public void read(TProtocol iprot) throws TException {
5565
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5090
      TField field;
5566
      org.apache.thrift.protocol.TField field;
5091
      iprot.readStructBegin();
5567
      iprot.readStructBegin();
5092
      while (true)
5568
      while (true)
5093
      {
5569
      {
5094
        field = iprot.readFieldBegin();
5570
        field = iprot.readFieldBegin();
5095
        if (field.type == TType.STOP) { 
5571
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5096
          break;
5572
          break;
5097
        }
5573
        }
5098
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5099
        if (fieldId == null) {
-
 
5100
          TProtocolUtil.skip(iprot, field.type);
-
 
5101
        } else {
-
 
5102
          switch (fieldId) {
5574
        switch (field.id) {
5103
            case SUCCESS:
5575
          case 0: // SUCCESS
5104
              if (field.type == TType.STRUCT) {
5576
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5105
                this.success = new Payment();
5577
              this.success = new Payment();
5106
                this.success.read(iprot);
5578
              this.success.read(iprot);
5107
              } else { 
5579
            } else { 
5108
                TProtocolUtil.skip(iprot, field.type);
5580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5109
              }
5581
            }
5110
              break;
5582
            break;
5111
            case PE:
5583
          case 1: // PE
5112
              if (field.type == TType.STRUCT) {
5584
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5113
                this.pe = new PaymentException();
5585
              this.pe = new PaymentException();
5114
                this.pe.read(iprot);
5586
              this.pe.read(iprot);
5115
              } else { 
5587
            } else { 
5116
                TProtocolUtil.skip(iprot, field.type);
5588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5117
              }
5589
            }
5118
              break;
5590
            break;
5119
          }
5591
          default:
5120
          iprot.readFieldEnd();
5592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5121
        }
5593
        }
-
 
5594
        iprot.readFieldEnd();
5122
      }
5595
      }
5123
      iprot.readStructEnd();
5596
      iprot.readStructEnd();
5124
      validate();
5597
      validate();
5125
    }
5598
    }
5126
 
5599
 
5127
    public void write(TProtocol oprot) throws TException {
5600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5128
      oprot.writeStructBegin(STRUCT_DESC);
5601
      oprot.writeStructBegin(STRUCT_DESC);
5129
 
5602
 
5130
      if (this.isSetSuccess()) {
5603
      if (this.isSetSuccess()) {
5131
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5604
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5132
        this.success.write(oprot);
5605
        this.success.write(oprot);
Line 5162... Line 5635...
5162
      first = false;
5635
      first = false;
5163
      sb.append(")");
5636
      sb.append(")");
5164
      return sb.toString();
5637
      return sb.toString();
5165
    }
5638
    }
5166
 
5639
 
5167
    public void validate() throws TException {
5640
    public void validate() throws org.apache.thrift.TException {
5168
      // check for required fields
5641
      // check for required fields
5169
    }
5642
    }
5170
 
5643
 
-
 
5644
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5645
      try {
-
 
5646
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5647
      } catch (org.apache.thrift.TException te) {
-
 
5648
        throw new java.io.IOException(te);
-
 
5649
      }
-
 
5650
    }
-
 
5651
 
-
 
5652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5653
      try {
-
 
5654
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5655
      } catch (org.apache.thrift.TException te) {
-
 
5656
        throw new java.io.IOException(te);
-
 
5657
      }
-
 
5658
    }
-
 
5659
 
5171
  }
5660
  }
5172
 
5661
 
5173
  public static class getPaymentForTxnId_args implements TBase<getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentForTxnId_args>   {
5662
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
5174
    private static final TStruct STRUCT_DESC = new TStruct("getPaymentForTxnId_args");
5663
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
5175
 
5664
 
5176
    private static final TField TXN_ID_FIELD_DESC = new TField("txnId", TType.I64, (short)1);
5665
    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);
5177
 
5666
 
5178
    private long txnId;
5667
    private long txnId; // required
5179
 
5668
 
5180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5181
    public enum _Fields implements TFieldIdEnum {
5670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5182
      TXN_ID((short)1, "txnId");
5671
      TXN_ID((short)1, "txnId");
5183
 
5672
 
5184
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5186
 
5674
 
5187
      static {
5675
      static {
5188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5676
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5189
          byId.put((int)field._thriftId, field);
-
 
5190
          byName.put(field.getFieldName(), field);
5677
          byName.put(field.getFieldName(), field);
5191
        }
5678
        }
5192
      }
5679
      }
5193
 
5680
 
5194
      /**
5681
      /**
5195
       * Find the _Fields constant that matches fieldId, or null if its not found.
5682
       * Find the _Fields constant that matches fieldId, or null if its not found.
5196
       */
5683
       */
5197
      public static _Fields findByThriftId(int fieldId) {
5684
      public static _Fields findByThriftId(int fieldId) {
5198
        return byId.get(fieldId);
5685
        switch(fieldId) {
-
 
5686
          case 1: // TXN_ID
-
 
5687
            return TXN_ID;
-
 
5688
          default:
-
 
5689
            return null;
-
 
5690
        }
5199
      }
5691
      }
5200
 
5692
 
5201
      /**
5693
      /**
5202
       * Find the _Fields constant that matches fieldId, throwing an exception
5694
       * Find the _Fields constant that matches fieldId, throwing an exception
5203
       * if it is not found.
5695
       * if it is not found.
Line 5234... Line 5726...
5234
 
5726
 
5235
    // isset id assignments
5727
    // isset id assignments
5236
    private static final int __TXNID_ISSET_ID = 0;
5728
    private static final int __TXNID_ISSET_ID = 0;
5237
    private BitSet __isset_bit_vector = new BitSet(1);
5729
    private BitSet __isset_bit_vector = new BitSet(1);
5238
 
5730
 
5239
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5240
      put(_Fields.TXN_ID, new FieldMetaData("txnId", TFieldRequirementType.DEFAULT, 
-
 
5241
          new FieldValueMetaData(TType.I64)));
-
 
5242
    }});
-
 
5243
 
-
 
5244
    static {
5732
    static {
-
 
5733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5734
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5245
      FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
5737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
5246
    }
5738
    }
5247
 
5739
 
5248
    public getPaymentForTxnId_args() {
5740
    public getPaymentForTxnId_args() {
5249
    }
5741
    }
5250
 
5742
 
Line 5267... Line 5759...
5267
 
5759
 
5268
    public getPaymentForTxnId_args deepCopy() {
5760
    public getPaymentForTxnId_args deepCopy() {
5269
      return new getPaymentForTxnId_args(this);
5761
      return new getPaymentForTxnId_args(this);
5270
    }
5762
    }
5271
 
5763
 
5272
    @Deprecated
5764
    @Override
5273
    public getPaymentForTxnId_args clone() {
5765
    public void clear() {
5274
      return new getPaymentForTxnId_args(this);
5766
      setTxnIdIsSet(false);
-
 
5767
      this.txnId = 0;
5275
    }
5768
    }
5276
 
5769
 
5277
    public long getTxnId() {
5770
    public long getTxnId() {
5278
      return this.txnId;
5771
      return this.txnId;
5279
    }
5772
    }
5280
 
5773
 
5281
    public getPaymentForTxnId_args setTxnId(long txnId) {
5774
    public void setTxnId(long txnId) {
5282
      this.txnId = txnId;
5775
      this.txnId = txnId;
5283
      setTxnIdIsSet(true);
5776
      setTxnIdIsSet(true);
5284
      return this;
-
 
5285
    }
5777
    }
5286
 
5778
 
5287
    public void unsetTxnId() {
5779
    public void unsetTxnId() {
5288
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
5780
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
5289
    }
5781
    }
5290
 
5782
 
5291
    /** Returns true if field txnId is set (has been asigned a value) and false otherwise */
5783
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
5292
    public boolean isSetTxnId() {
5784
    public boolean isSetTxnId() {
5293
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
5785
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
5294
    }
5786
    }
5295
 
5787
 
5296
    public void setTxnIdIsSet(boolean value) {
5788
    public void setTxnIdIsSet(boolean value) {
Line 5308... Line 5800...
5308
        break;
5800
        break;
5309
 
5801
 
5310
      }
5802
      }
5311
    }
5803
    }
5312
 
5804
 
5313
    public void setFieldValue(int fieldID, Object value) {
-
 
5314
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5315
    }
-
 
5316
 
-
 
5317
    public Object getFieldValue(_Fields field) {
5805
    public Object getFieldValue(_Fields field) {
5318
      switch (field) {
5806
      switch (field) {
5319
      case TXN_ID:
5807
      case TXN_ID:
5320
        return new Long(getTxnId());
5808
        return Long.valueOf(getTxnId());
5321
 
5809
 
5322
      }
5810
      }
5323
      throw new IllegalStateException();
5811
      throw new IllegalStateException();
5324
    }
5812
    }
5325
 
5813
 
5326
    public Object getFieldValue(int fieldId) {
-
 
5327
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5328
    }
-
 
5329
 
-
 
5330
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5331
    public boolean isSet(_Fields field) {
5815
    public boolean isSet(_Fields field) {
-
 
5816
      if (field == null) {
-
 
5817
        throw new IllegalArgumentException();
-
 
5818
      }
-
 
5819
 
5332
      switch (field) {
5820
      switch (field) {
5333
      case TXN_ID:
5821
      case TXN_ID:
5334
        return isSetTxnId();
5822
        return isSetTxnId();
5335
      }
5823
      }
5336
      throw new IllegalStateException();
5824
      throw new IllegalStateException();
5337
    }
5825
    }
5338
 
5826
 
5339
    public boolean isSet(int fieldID) {
-
 
5340
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5341
    }
-
 
5342
 
-
 
5343
    @Override
5827
    @Override
5344
    public boolean equals(Object that) {
5828
    public boolean equals(Object that) {
5345
      if (that == null)
5829
      if (that == null)
5346
        return false;
5830
        return false;
5347
      if (that instanceof getPaymentForTxnId_args)
5831
      if (that instanceof getPaymentForTxnId_args)
Line 5376... Line 5860...
5376
      }
5860
      }
5377
 
5861
 
5378
      int lastComparison = 0;
5862
      int lastComparison = 0;
5379
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
5863
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
5380
 
5864
 
5381
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(isSetTxnId());
5865
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
5382
      if (lastComparison != 0) {
5866
      if (lastComparison != 0) {
5383
        return lastComparison;
5867
        return lastComparison;
5384
      }
5868
      }
-
 
5869
      if (isSetTxnId()) {
5385
      lastComparison = TBaseHelper.compareTo(txnId, typedOther.txnId);
5870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
5386
      if (lastComparison != 0) {
5871
        if (lastComparison != 0) {
5387
        return lastComparison;
5872
          return lastComparison;
-
 
5873
        }
5388
      }
5874
      }
5389
      return 0;
5875
      return 0;
5390
    }
5876
    }
5391
 
5877
 
-
 
5878
    public _Fields fieldForId(int fieldId) {
-
 
5879
      return _Fields.findByThriftId(fieldId);
-
 
5880
    }
-
 
5881
 
5392
    public void read(TProtocol iprot) throws TException {
5882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5393
      TField field;
5883
      org.apache.thrift.protocol.TField field;
5394
      iprot.readStructBegin();
5884
      iprot.readStructBegin();
5395
      while (true)
5885
      while (true)
5396
      {
5886
      {
5397
        field = iprot.readFieldBegin();
5887
        field = iprot.readFieldBegin();
5398
        if (field.type == TType.STOP) { 
5888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5399
          break;
5889
          break;
5400
        }
5890
        }
5401
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5402
        if (fieldId == null) {
-
 
5403
          TProtocolUtil.skip(iprot, field.type);
-
 
5404
        } else {
-
 
5405
          switch (fieldId) {
5891
        switch (field.id) {
5406
            case TXN_ID:
5892
          case 1: // TXN_ID
5407
              if (field.type == TType.I64) {
5893
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5408
                this.txnId = iprot.readI64();
5894
              this.txnId = iprot.readI64();
5409
                setTxnIdIsSet(true);
5895
              setTxnIdIsSet(true);
5410
              } else { 
5896
            } else { 
5411
                TProtocolUtil.skip(iprot, field.type);
5897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5412
              }
5898
            }
5413
              break;
5899
            break;
5414
          }
5900
          default:
5415
          iprot.readFieldEnd();
5901
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5416
        }
5902
        }
-
 
5903
        iprot.readFieldEnd();
5417
      }
5904
      }
5418
      iprot.readStructEnd();
5905
      iprot.readStructEnd();
5419
      validate();
5906
      validate();
5420
    }
5907
    }
5421
 
5908
 
5422
    public void write(TProtocol oprot) throws TException {
5909
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5423
      validate();
5910
      validate();
5424
 
5911
 
5425
      oprot.writeStructBegin(STRUCT_DESC);
5912
      oprot.writeStructBegin(STRUCT_DESC);
5426
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
5913
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
5427
      oprot.writeI64(this.txnId);
5914
      oprot.writeI64(this.txnId);
Line 5440... Line 5927...
5440
      first = false;
5927
      first = false;
5441
      sb.append(")");
5928
      sb.append(")");
5442
      return sb.toString();
5929
      return sb.toString();
5443
    }
5930
    }
5444
 
5931
 
5445
    public void validate() throws TException {
5932
    public void validate() throws org.apache.thrift.TException {
5446
      // check for required fields
5933
      // check for required fields
5447
    }
5934
    }
5448
 
5935
 
-
 
5936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5937
      try {
-
 
5938
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5939
      } catch (org.apache.thrift.TException te) {
-
 
5940
        throw new java.io.IOException(te);
-
 
5941
      }
-
 
5942
    }
-
 
5943
 
-
 
5944
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5945
      try {
-
 
5946
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
5947
        __isset_bit_vector = new BitSet(1);
-
 
5948
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5949
      } catch (org.apache.thrift.TException te) {
-
 
5950
        throw new java.io.IOException(te);
-
 
5951
      }
-
 
5952
    }
-
 
5953
 
5449
  }
5954
  }
5450
 
5955
 
5451
  public static class getPaymentForTxnId_result implements TBase<getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentForTxnId_result>   {
5956
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
5452
    private static final TStruct STRUCT_DESC = new TStruct("getPaymentForTxnId_result");
5957
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
5453
 
5958
 
5454
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
5959
    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);
5455
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
5960
    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);
5456
 
5961
 
5457
    private List<Payment> success;
5962
    private List<Payment> success; // required
5458
    private PaymentException pe;
5963
    private PaymentException pe; // required
5459
 
5964
 
5460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5965
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5461
    public enum _Fields implements TFieldIdEnum {
5966
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5462
      SUCCESS((short)0, "success"),
5967
      SUCCESS((short)0, "success"),
5463
      PE((short)1, "pe");
5968
      PE((short)1, "pe");
5464
 
5969
 
5465
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5466
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5970
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5467
 
5971
 
5468
      static {
5972
      static {
5469
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5973
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5470
          byId.put((int)field._thriftId, field);
-
 
5471
          byName.put(field.getFieldName(), field);
5974
          byName.put(field.getFieldName(), field);
5472
        }
5975
        }
5473
      }
5976
      }
5474
 
5977
 
5475
      /**
5978
      /**
5476
       * Find the _Fields constant that matches fieldId, or null if its not found.
5979
       * Find the _Fields constant that matches fieldId, or null if its not found.
5477
       */
5980
       */
5478
      public static _Fields findByThriftId(int fieldId) {
5981
      public static _Fields findByThriftId(int fieldId) {
5479
        return byId.get(fieldId);
5982
        switch(fieldId) {
-
 
5983
          case 0: // SUCCESS
-
 
5984
            return SUCCESS;
-
 
5985
          case 1: // PE
-
 
5986
            return PE;
-
 
5987
          default:
-
 
5988
            return null;
-
 
5989
        }
5480
      }
5990
      }
5481
 
5991
 
5482
      /**
5992
      /**
5483
       * Find the _Fields constant that matches fieldId, throwing an exception
5993
       * Find the _Fields constant that matches fieldId, throwing an exception
5484
       * if it is not found.
5994
       * if it is not found.
Line 5513... Line 6023...
5513
      }
6023
      }
5514
    }
6024
    }
5515
 
6025
 
5516
    // isset id assignments
6026
    // isset id assignments
5517
 
6027
 
5518
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5519
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5520
          new ListMetaData(TType.LIST, 
-
 
5521
              new StructMetaData(TType.STRUCT, Payment.class))));
-
 
5522
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
5523
          new FieldValueMetaData(TType.STRUCT)));
-
 
5524
    }});
-
 
5525
 
-
 
5526
    static {
6029
    static {
-
 
6030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6031
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6032
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6033
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
-
 
6034
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6035
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
6036
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5527
      FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
6037
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
5528
    }
6038
    }
5529
 
6039
 
5530
    public getPaymentForTxnId_result() {
6040
    public getPaymentForTxnId_result() {
5531
    }
6041
    }
5532
 
6042
 
Line 5557... Line 6067...
5557
 
6067
 
5558
    public getPaymentForTxnId_result deepCopy() {
6068
    public getPaymentForTxnId_result deepCopy() {
5559
      return new getPaymentForTxnId_result(this);
6069
      return new getPaymentForTxnId_result(this);
5560
    }
6070
    }
5561
 
6071
 
5562
    @Deprecated
6072
    @Override
5563
    public getPaymentForTxnId_result clone() {
6073
    public void clear() {
5564
      return new getPaymentForTxnId_result(this);
6074
      this.success = null;
-
 
6075
      this.pe = null;
5565
    }
6076
    }
5566
 
6077
 
5567
    public int getSuccessSize() {
6078
    public int getSuccessSize() {
5568
      return (this.success == null) ? 0 : this.success.size();
6079
      return (this.success == null) ? 0 : this.success.size();
5569
    }
6080
    }
Line 5581... Line 6092...
5581
 
6092
 
5582
    public List<Payment> getSuccess() {
6093
    public List<Payment> getSuccess() {
5583
      return this.success;
6094
      return this.success;
5584
    }
6095
    }
5585
 
6096
 
5586
    public getPaymentForTxnId_result setSuccess(List<Payment> success) {
6097
    public void setSuccess(List<Payment> success) {
5587
      this.success = success;
6098
      this.success = success;
5588
      return this;
-
 
5589
    }
6099
    }
5590
 
6100
 
5591
    public void unsetSuccess() {
6101
    public void unsetSuccess() {
5592
      this.success = null;
6102
      this.success = null;
5593
    }
6103
    }
5594
 
6104
 
5595
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
6105
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5596
    public boolean isSetSuccess() {
6106
    public boolean isSetSuccess() {
5597
      return this.success != null;
6107
      return this.success != null;
5598
    }
6108
    }
5599
 
6109
 
5600
    public void setSuccessIsSet(boolean value) {
6110
    public void setSuccessIsSet(boolean value) {
Line 5605... Line 6115...
5605
 
6115
 
5606
    public PaymentException getPe() {
6116
    public PaymentException getPe() {
5607
      return this.pe;
6117
      return this.pe;
5608
    }
6118
    }
5609
 
6119
 
5610
    public getPaymentForTxnId_result setPe(PaymentException pe) {
6120
    public void setPe(PaymentException pe) {
5611
      this.pe = pe;
6121
      this.pe = pe;
5612
      return this;
-
 
5613
    }
6122
    }
5614
 
6123
 
5615
    public void unsetPe() {
6124
    public void unsetPe() {
5616
      this.pe = null;
6125
      this.pe = null;
5617
    }
6126
    }
5618
 
6127
 
5619
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
6128
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
5620
    public boolean isSetPe() {
6129
    public boolean isSetPe() {
5621
      return this.pe != null;
6130
      return this.pe != null;
5622
    }
6131
    }
5623
 
6132
 
5624
    public void setPeIsSet(boolean value) {
6133
    public void setPeIsSet(boolean value) {
Line 5646... Line 6155...
5646
        break;
6155
        break;
5647
 
6156
 
5648
      }
6157
      }
5649
    }
6158
    }
5650
 
6159
 
5651
    public void setFieldValue(int fieldID, Object value) {
-
 
5652
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5653
    }
-
 
5654
 
-
 
5655
    public Object getFieldValue(_Fields field) {
6160
    public Object getFieldValue(_Fields field) {
5656
      switch (field) {
6161
      switch (field) {
5657
      case SUCCESS:
6162
      case SUCCESS:
5658
        return getSuccess();
6163
        return getSuccess();
5659
 
6164
 
Line 5662... Line 6167...
5662
 
6167
 
5663
      }
6168
      }
5664
      throw new IllegalStateException();
6169
      throw new IllegalStateException();
5665
    }
6170
    }
5666
 
6171
 
5667
    public Object getFieldValue(int fieldId) {
-
 
5668
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5669
    }
-
 
5670
 
-
 
5671
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5672
    public boolean isSet(_Fields field) {
6173
    public boolean isSet(_Fields field) {
-
 
6174
      if (field == null) {
-
 
6175
        throw new IllegalArgumentException();
-
 
6176
      }
-
 
6177
 
5673
      switch (field) {
6178
      switch (field) {
5674
      case SUCCESS:
6179
      case SUCCESS:
5675
        return isSetSuccess();
6180
        return isSetSuccess();
5676
      case PE:
6181
      case PE:
5677
        return isSetPe();
6182
        return isSetPe();
5678
      }
6183
      }
5679
      throw new IllegalStateException();
6184
      throw new IllegalStateException();
5680
    }
6185
    }
5681
 
6186
 
5682
    public boolean isSet(int fieldID) {
-
 
5683
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5684
    }
-
 
5685
 
-
 
5686
    @Override
6187
    @Override
5687
    public boolean equals(Object that) {
6188
    public boolean equals(Object that) {
5688
      if (that == null)
6189
      if (that == null)
5689
        return false;
6190
        return false;
5690
      if (that instanceof getPaymentForTxnId_result)
6191
      if (that instanceof getPaymentForTxnId_result)
Line 5728... Line 6229...
5728
      }
6229
      }
5729
 
6230
 
5730
      int lastComparison = 0;
6231
      int lastComparison = 0;
5731
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
6232
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
5732
 
6233
 
5733
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
6234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5734
      if (lastComparison != 0) {
6235
      if (lastComparison != 0) {
5735
        return lastComparison;
6236
        return lastComparison;
5736
      }
6237
      }
-
 
6238
      if (isSetSuccess()) {
5737
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
6239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5738
      if (lastComparison != 0) {
6240
        if (lastComparison != 0) {
5739
        return lastComparison;
6241
          return lastComparison;
-
 
6242
        }
5740
      }
6243
      }
5741
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
6244
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
5742
      if (lastComparison != 0) {
6245
      if (lastComparison != 0) {
5743
        return lastComparison;
6246
        return lastComparison;
5744
      }
6247
      }
-
 
6248
      if (isSetPe()) {
5745
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
6249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5746
      if (lastComparison != 0) {
6250
        if (lastComparison != 0) {
5747
        return lastComparison;
6251
          return lastComparison;
-
 
6252
        }
5748
      }
6253
      }
5749
      return 0;
6254
      return 0;
5750
    }
6255
    }
5751
 
6256
 
-
 
6257
    public _Fields fieldForId(int fieldId) {
-
 
6258
      return _Fields.findByThriftId(fieldId);
-
 
6259
    }
-
 
6260
 
5752
    public void read(TProtocol iprot) throws TException {
6261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5753
      TField field;
6262
      org.apache.thrift.protocol.TField field;
5754
      iprot.readStructBegin();
6263
      iprot.readStructBegin();
5755
      while (true)
6264
      while (true)
5756
      {
6265
      {
5757
        field = iprot.readFieldBegin();
6266
        field = iprot.readFieldBegin();
5758
        if (field.type == TType.STOP) { 
6267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5759
          break;
6268
          break;
5760
        }
6269
        }
5761
        _Fields fieldId = _Fields.findByThriftId(field.id);
6270
        switch (field.id) {
5762
        if (fieldId == null) {
6271
          case 0: // SUCCESS
5763
          TProtocolUtil.skip(iprot, field.type);
6272
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5764
        } else {
6273
              {
5765
          switch (fieldId) {
6274
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5766
            case SUCCESS:
6275
                this.success = new ArrayList<Payment>(_list20.size);
5767
              if (field.type == TType.LIST) {
6276
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5768
                {
6277
                {
5769
                  TList _list20 = iprot.readListBegin();
-
 
5770
                  this.success = new ArrayList<Payment>(_list20.size);
-
 
5771
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
5772
                  {
-
 
5773
                    Payment _elem22;
6278
                  Payment _elem22; // required
5774
                    _elem22 = new Payment();
6279
                  _elem22 = new Payment();
5775
                    _elem22.read(iprot);
6280
                  _elem22.read(iprot);
5776
                    this.success.add(_elem22);
6281
                  this.success.add(_elem22);
5777
                  }
-
 
5778
                  iprot.readListEnd();
-
 
5779
                }
6282
                }
5780
              } else { 
-
 
5781
                TProtocolUtil.skip(iprot, field.type);
-
 
5782
              }
-
 
5783
              break;
-
 
5784
            case PE:
-
 
5785
              if (field.type == TType.STRUCT) {
-
 
5786
                this.pe = new PaymentException();
-
 
5787
                this.pe.read(iprot);
6283
                iprot.readListEnd();
5788
              } else { 
-
 
5789
                TProtocolUtil.skip(iprot, field.type);
-
 
5790
              }
6284
              }
-
 
6285
            } else { 
-
 
6286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6287
            }
5791
              break;
6288
            break;
-
 
6289
          case 1: // PE
-
 
6290
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
6291
              this.pe = new PaymentException();
-
 
6292
              this.pe.read(iprot);
-
 
6293
            } else { 
-
 
6294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5792
          }
6295
            }
5793
          iprot.readFieldEnd();
6296
            break;
-
 
6297
          default:
-
 
6298
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5794
        }
6299
        }
-
 
6300
        iprot.readFieldEnd();
5795
      }
6301
      }
5796
      iprot.readStructEnd();
6302
      iprot.readStructEnd();
5797
      validate();
6303
      validate();
5798
    }
6304
    }
5799
 
6305
 
5800
    public void write(TProtocol oprot) throws TException {
6306
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5801
      oprot.writeStructBegin(STRUCT_DESC);
6307
      oprot.writeStructBegin(STRUCT_DESC);
5802
 
6308
 
5803
      if (this.isSetSuccess()) {
6309
      if (this.isSetSuccess()) {
5804
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6310
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5805
        {
6311
        {
5806
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
6312
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5807
          for (Payment _iter23 : this.success)
6313
          for (Payment _iter23 : this.success)
5808
          {
6314
          {
5809
            _iter23.write(oprot);
6315
            _iter23.write(oprot);
5810
          }
6316
          }
5811
          oprot.writeListEnd();
6317
          oprot.writeListEnd();
Line 5842... Line 6348...
5842
      first = false;
6348
      first = false;
5843
      sb.append(")");
6349
      sb.append(")");
5844
      return sb.toString();
6350
      return sb.toString();
5845
    }
6351
    }
5846
 
6352
 
5847
    public void validate() throws TException {
6353
    public void validate() throws org.apache.thrift.TException {
5848
      // check for required fields
6354
      // check for required fields
5849
    }
6355
    }
5850
 
6356
 
-
 
6357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6358
      try {
-
 
6359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6360
      } catch (org.apache.thrift.TException te) {
-
 
6361
        throw new java.io.IOException(te);
-
 
6362
      }
-
 
6363
    }
-
 
6364
 
-
 
6365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6366
      try {
-
 
6367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6368
      } catch (org.apache.thrift.TException te) {
-
 
6369
        throw new java.io.IOException(te);
-
 
6370
      }
-
 
6371
    }
-
 
6372
 
5851
  }
6373
  }
5852
 
6374
 
5853
  public static class updatePaymentDetails_args implements TBase<updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePaymentDetails_args>   {
6375
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
5854
    private static final TStruct STRUCT_DESC = new TStruct("updatePaymentDetails_args");
6376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
5855
 
6377
 
5856
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
6378
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
5857
    private static final TField GATEWAY_PAYMENT_ID_FIELD_DESC = new TField("gatewayPaymentId", TType.STRING, (short)2);
6379
    private static final org.apache.thrift.protocol.TField GATEWAY_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayPaymentId", org.apache.thrift.protocol.TType.STRING, (short)2);
5858
    private static final TField SESSION_ID_FIELD_DESC = new TField("sessionId", TType.STRING, (short)3);
6380
    private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)3);
5859
    private static final TField GATEWAY_TXN_STATUS_FIELD_DESC = new TField("gatewayTxnStatus", TType.STRING, (short)4);
6381
    private static final org.apache.thrift.protocol.TField GATEWAY_TXN_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnStatus", org.apache.thrift.protocol.TType.STRING, (short)4);
5860
    private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)5);
6382
    private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)5);
5861
    private static final TField GATEWAY_TXN_ID_FIELD_DESC = new TField("gatewayTxnId", TType.STRING, (short)6);
6383
    private static final org.apache.thrift.protocol.TField GATEWAY_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnId", org.apache.thrift.protocol.TType.STRING, (short)6);
5862
    private static final TField AUTH_CODE_FIELD_DESC = new TField("authCode", TType.STRING, (short)7);
6384
    private static final org.apache.thrift.protocol.TField AUTH_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("authCode", org.apache.thrift.protocol.TType.STRING, (short)7);
5863
    private static final TField REFERENCE_CODE_FIELD_DESC = new TField("referenceCode", TType.STRING, (short)8);
6385
    private static final org.apache.thrift.protocol.TField REFERENCE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceCode", org.apache.thrift.protocol.TType.STRING, (short)8);
5864
    private static final TField ERROR_CODE_FIELD_DESC = new TField("errorCode", TType.STRING, (short)9);
6386
    private static final org.apache.thrift.protocol.TField ERROR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorCode", org.apache.thrift.protocol.TType.STRING, (short)9);
5865
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)10);
6387
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)10);
5866
    private static final TField GATEWAY_TXN_DATE_FIELD_DESC = new TField("gatewayTxnDate", TType.STRING, (short)11);
6388
    private static final org.apache.thrift.protocol.TField GATEWAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnDate", org.apache.thrift.protocol.TType.STRING, (short)11);
5867
    private static final TField ATTRIBUTES_FIELD_DESC = new TField("attributes", TType.LIST, (short)12);
6389
    private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)12);
5868
 
6390
 
5869
    private long id;
6391
    private long id; // required
5870
    private String gatewayPaymentId;
6392
    private String gatewayPaymentId; // required
5871
    private String sessionId;
6393
    private String sessionId; // required
5872
    private String gatewayTxnStatus;
6394
    private String gatewayTxnStatus; // required
5873
    private String description;
6395
    private String description; // required
5874
    private String gatewayTxnId;
6396
    private String gatewayTxnId; // required
5875
    private String authCode;
6397
    private String authCode; // required
5876
    private String referenceCode;
6398
    private String referenceCode; // required
5877
    private String errorCode;
6399
    private String errorCode; // required
5878
    private PaymentStatus status;
6400
    private PaymentStatus status; // required
5879
    private String gatewayTxnDate;
6401
    private String gatewayTxnDate; // required
5880
    private List<Attribute> attributes;
6402
    private List<Attribute> attributes; // required
5881
 
6403
 
5882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5883
    public enum _Fields implements TFieldIdEnum {
6405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5884
      ID((short)1, "id"),
6406
      ID((short)1, "id"),
5885
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
6407
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
5886
      SESSION_ID((short)3, "sessionId"),
6408
      SESSION_ID((short)3, "sessionId"),
5887
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
6409
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
5888
      DESCRIPTION((short)5, "description"),
6410
      DESCRIPTION((short)5, "description"),
Line 5896... Line 6418...
5896
       */
6418
       */
5897
      STATUS((short)10, "status"),
6419
      STATUS((short)10, "status"),
5898
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
6420
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
5899
      ATTRIBUTES((short)12, "attributes");
6421
      ATTRIBUTES((short)12, "attributes");
5900
 
6422
 
5901
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5903
 
6424
 
5904
      static {
6425
      static {
5905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5906
          byId.put((int)field._thriftId, field);
-
 
5907
          byName.put(field.getFieldName(), field);
6427
          byName.put(field.getFieldName(), field);
5908
        }
6428
        }
5909
      }
6429
      }
5910
 
6430
 
5911
      /**
6431
      /**
5912
       * Find the _Fields constant that matches fieldId, or null if its not found.
6432
       * Find the _Fields constant that matches fieldId, or null if its not found.
5913
       */
6433
       */
5914
      public static _Fields findByThriftId(int fieldId) {
6434
      public static _Fields findByThriftId(int fieldId) {
5915
        return byId.get(fieldId);
6435
        switch(fieldId) {
-
 
6436
          case 1: // ID
-
 
6437
            return ID;
-
 
6438
          case 2: // GATEWAY_PAYMENT_ID
-
 
6439
            return GATEWAY_PAYMENT_ID;
-
 
6440
          case 3: // SESSION_ID
-
 
6441
            return SESSION_ID;
-
 
6442
          case 4: // GATEWAY_TXN_STATUS
-
 
6443
            return GATEWAY_TXN_STATUS;
-
 
6444
          case 5: // DESCRIPTION
-
 
6445
            return DESCRIPTION;
-
 
6446
          case 6: // GATEWAY_TXN_ID
-
 
6447
            return GATEWAY_TXN_ID;
-
 
6448
          case 7: // AUTH_CODE
-
 
6449
            return AUTH_CODE;
-
 
6450
          case 8: // REFERENCE_CODE
-
 
6451
            return REFERENCE_CODE;
-
 
6452
          case 9: // ERROR_CODE
-
 
6453
            return ERROR_CODE;
-
 
6454
          case 10: // STATUS
-
 
6455
            return STATUS;
-
 
6456
          case 11: // GATEWAY_TXN_DATE
-
 
6457
            return GATEWAY_TXN_DATE;
-
 
6458
          case 12: // ATTRIBUTES
-
 
6459
            return ATTRIBUTES;
-
 
6460
          default:
-
 
6461
            return null;
-
 
6462
        }
5916
      }
6463
      }
5917
 
6464
 
5918
      /**
6465
      /**
5919
       * Find the _Fields constant that matches fieldId, throwing an exception
6466
       * Find the _Fields constant that matches fieldId, throwing an exception
5920
       * if it is not found.
6467
       * if it is not found.
Line 5951... Line 6498...
5951
 
6498
 
5952
    // isset id assignments
6499
    // isset id assignments
5953
    private static final int __ID_ISSET_ID = 0;
6500
    private static final int __ID_ISSET_ID = 0;
5954
    private BitSet __isset_bit_vector = new BitSet(1);
6501
    private BitSet __isset_bit_vector = new BitSet(1);
5955
 
6502
 
5956
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5957
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
5958
          new FieldValueMetaData(TType.I64)));
-
 
5959
      put(_Fields.GATEWAY_PAYMENT_ID, new FieldMetaData("gatewayPaymentId", TFieldRequirementType.DEFAULT, 
-
 
5960
          new FieldValueMetaData(TType.STRING)));
-
 
5961
      put(_Fields.SESSION_ID, new FieldMetaData("sessionId", TFieldRequirementType.DEFAULT, 
-
 
5962
          new FieldValueMetaData(TType.STRING)));
-
 
5963
      put(_Fields.GATEWAY_TXN_STATUS, new FieldMetaData("gatewayTxnStatus", TFieldRequirementType.DEFAULT, 
-
 
5964
          new FieldValueMetaData(TType.STRING)));
-
 
5965
      put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-
 
5966
          new FieldValueMetaData(TType.STRING)));
-
 
5967
      put(_Fields.GATEWAY_TXN_ID, new FieldMetaData("gatewayTxnId", TFieldRequirementType.DEFAULT, 
-
 
5968
          new FieldValueMetaData(TType.STRING)));
-
 
5969
      put(_Fields.AUTH_CODE, new FieldMetaData("authCode", TFieldRequirementType.DEFAULT, 
-
 
5970
          new FieldValueMetaData(TType.STRING)));
-
 
5971
      put(_Fields.REFERENCE_CODE, new FieldMetaData("referenceCode", TFieldRequirementType.DEFAULT, 
-
 
5972
          new FieldValueMetaData(TType.STRING)));
-
 
5973
      put(_Fields.ERROR_CODE, new FieldMetaData("errorCode", TFieldRequirementType.DEFAULT, 
-
 
5974
          new FieldValueMetaData(TType.STRING)));
-
 
5975
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
5976
          new EnumMetaData(TType.ENUM, PaymentStatus.class)));
-
 
5977
      put(_Fields.GATEWAY_TXN_DATE, new FieldMetaData("gatewayTxnDate", TFieldRequirementType.DEFAULT, 
-
 
5978
          new FieldValueMetaData(TType.STRING)));
-
 
5979
      put(_Fields.ATTRIBUTES, new FieldMetaData("attributes", TFieldRequirementType.DEFAULT, 
-
 
5980
          new ListMetaData(TType.LIST, 
-
 
5981
              new StructMetaData(TType.STRUCT, Attribute.class))));
-
 
5982
    }});
-
 
5983
 
-
 
5984
    static {
6504
    static {
-
 
6505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6506
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6508
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6510
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6511
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6512
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6514
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6516
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6518
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6519
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6520
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6521
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6522
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6523
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6524
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6525
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
-
 
6526
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6528
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6529
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6530
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
-
 
6531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5985
      FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
6532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
5986
    }
6533
    }
5987
 
6534
 
5988
    public updatePaymentDetails_args() {
6535
    public updatePaymentDetails_args() {
5989
    }
6536
    }
5990
 
6537
 
Line 6066... Line 6613...
6066
 
6613
 
6067
    public updatePaymentDetails_args deepCopy() {
6614
    public updatePaymentDetails_args deepCopy() {
6068
      return new updatePaymentDetails_args(this);
6615
      return new updatePaymentDetails_args(this);
6069
    }
6616
    }
6070
 
6617
 
6071
    @Deprecated
6618
    @Override
6072
    public updatePaymentDetails_args clone() {
6619
    public void clear() {
-
 
6620
      setIdIsSet(false);
-
 
6621
      this.id = 0;
-
 
6622
      this.gatewayPaymentId = null;
-
 
6623
      this.sessionId = null;
6073
      return new updatePaymentDetails_args(this);
6624
      this.gatewayTxnStatus = null;
-
 
6625
      this.description = null;
-
 
6626
      this.gatewayTxnId = null;
-
 
6627
      this.authCode = null;
-
 
6628
      this.referenceCode = null;
-
 
6629
      this.errorCode = null;
-
 
6630
      this.status = null;
-
 
6631
      this.gatewayTxnDate = null;
-
 
6632
      this.attributes = null;
6074
    }
6633
    }
6075
 
6634
 
6076
    public long getId() {
6635
    public long getId() {
6077
      return this.id;
6636
      return this.id;
6078
    }
6637
    }
6079
 
6638
 
6080
    public updatePaymentDetails_args setId(long id) {
6639
    public void setId(long id) {
6081
      this.id = id;
6640
      this.id = id;
6082
      setIdIsSet(true);
6641
      setIdIsSet(true);
6083
      return this;
-
 
6084
    }
6642
    }
6085
 
6643
 
6086
    public void unsetId() {
6644
    public void unsetId() {
6087
      __isset_bit_vector.clear(__ID_ISSET_ID);
6645
      __isset_bit_vector.clear(__ID_ISSET_ID);
6088
    }
6646
    }
6089
 
6647
 
6090
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
6648
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
6091
    public boolean isSetId() {
6649
    public boolean isSetId() {
6092
      return __isset_bit_vector.get(__ID_ISSET_ID);
6650
      return __isset_bit_vector.get(__ID_ISSET_ID);
6093
    }
6651
    }
6094
 
6652
 
6095
    public void setIdIsSet(boolean value) {
6653
    public void setIdIsSet(boolean value) {
Line 6098... Line 6656...
6098
 
6656
 
6099
    public String getGatewayPaymentId() {
6657
    public String getGatewayPaymentId() {
6100
      return this.gatewayPaymentId;
6658
      return this.gatewayPaymentId;
6101
    }
6659
    }
6102
 
6660
 
6103
    public updatePaymentDetails_args setGatewayPaymentId(String gatewayPaymentId) {
6661
    public void setGatewayPaymentId(String gatewayPaymentId) {
6104
      this.gatewayPaymentId = gatewayPaymentId;
6662
      this.gatewayPaymentId = gatewayPaymentId;
6105
      return this;
-
 
6106
    }
6663
    }
6107
 
6664
 
6108
    public void unsetGatewayPaymentId() {
6665
    public void unsetGatewayPaymentId() {
6109
      this.gatewayPaymentId = null;
6666
      this.gatewayPaymentId = null;
6110
    }
6667
    }
6111
 
6668
 
6112
    /** Returns true if field gatewayPaymentId is set (has been asigned a value) and false otherwise */
6669
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
6113
    public boolean isSetGatewayPaymentId() {
6670
    public boolean isSetGatewayPaymentId() {
6114
      return this.gatewayPaymentId != null;
6671
      return this.gatewayPaymentId != null;
6115
    }
6672
    }
6116
 
6673
 
6117
    public void setGatewayPaymentIdIsSet(boolean value) {
6674
    public void setGatewayPaymentIdIsSet(boolean value) {
Line 6122... Line 6679...
6122
 
6679
 
6123
    public String getSessionId() {
6680
    public String getSessionId() {
6124
      return this.sessionId;
6681
      return this.sessionId;
6125
    }
6682
    }
6126
 
6683
 
6127
    public updatePaymentDetails_args setSessionId(String sessionId) {
6684
    public void setSessionId(String sessionId) {
6128
      this.sessionId = sessionId;
6685
      this.sessionId = sessionId;
6129
      return this;
-
 
6130
    }
6686
    }
6131
 
6687
 
6132
    public void unsetSessionId() {
6688
    public void unsetSessionId() {
6133
      this.sessionId = null;
6689
      this.sessionId = null;
6134
    }
6690
    }
6135
 
6691
 
6136
    /** Returns true if field sessionId is set (has been asigned a value) and false otherwise */
6692
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
6137
    public boolean isSetSessionId() {
6693
    public boolean isSetSessionId() {
6138
      return this.sessionId != null;
6694
      return this.sessionId != null;
6139
    }
6695
    }
6140
 
6696
 
6141
    public void setSessionIdIsSet(boolean value) {
6697
    public void setSessionIdIsSet(boolean value) {
Line 6146... Line 6702...
6146
 
6702
 
6147
    public String getGatewayTxnStatus() {
6703
    public String getGatewayTxnStatus() {
6148
      return this.gatewayTxnStatus;
6704
      return this.gatewayTxnStatus;
6149
    }
6705
    }
6150
 
6706
 
6151
    public updatePaymentDetails_args setGatewayTxnStatus(String gatewayTxnStatus) {
6707
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
6152
      this.gatewayTxnStatus = gatewayTxnStatus;
6708
      this.gatewayTxnStatus = gatewayTxnStatus;
6153
      return this;
-
 
6154
    }
6709
    }
6155
 
6710
 
6156
    public void unsetGatewayTxnStatus() {
6711
    public void unsetGatewayTxnStatus() {
6157
      this.gatewayTxnStatus = null;
6712
      this.gatewayTxnStatus = null;
6158
    }
6713
    }
6159
 
6714
 
6160
    /** Returns true if field gatewayTxnStatus is set (has been asigned a value) and false otherwise */
6715
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
6161
    public boolean isSetGatewayTxnStatus() {
6716
    public boolean isSetGatewayTxnStatus() {
6162
      return this.gatewayTxnStatus != null;
6717
      return this.gatewayTxnStatus != null;
6163
    }
6718
    }
6164
 
6719
 
6165
    public void setGatewayTxnStatusIsSet(boolean value) {
6720
    public void setGatewayTxnStatusIsSet(boolean value) {
Line 6170... Line 6725...
6170
 
6725
 
6171
    public String getDescription() {
6726
    public String getDescription() {
6172
      return this.description;
6727
      return this.description;
6173
    }
6728
    }
6174
 
6729
 
6175
    public updatePaymentDetails_args setDescription(String description) {
6730
    public void setDescription(String description) {
6176
      this.description = description;
6731
      this.description = description;
6177
      return this;
-
 
6178
    }
6732
    }
6179
 
6733
 
6180
    public void unsetDescription() {
6734
    public void unsetDescription() {
6181
      this.description = null;
6735
      this.description = null;
6182
    }
6736
    }
6183
 
6737
 
6184
    /** Returns true if field description is set (has been asigned a value) and false otherwise */
6738
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
6185
    public boolean isSetDescription() {
6739
    public boolean isSetDescription() {
6186
      return this.description != null;
6740
      return this.description != null;
6187
    }
6741
    }
6188
 
6742
 
6189
    public void setDescriptionIsSet(boolean value) {
6743
    public void setDescriptionIsSet(boolean value) {
Line 6194... Line 6748...
6194
 
6748
 
6195
    public String getGatewayTxnId() {
6749
    public String getGatewayTxnId() {
6196
      return this.gatewayTxnId;
6750
      return this.gatewayTxnId;
6197
    }
6751
    }
6198
 
6752
 
6199
    public updatePaymentDetails_args setGatewayTxnId(String gatewayTxnId) {
6753
    public void setGatewayTxnId(String gatewayTxnId) {
6200
      this.gatewayTxnId = gatewayTxnId;
6754
      this.gatewayTxnId = gatewayTxnId;
6201
      return this;
-
 
6202
    }
6755
    }
6203
 
6756
 
6204
    public void unsetGatewayTxnId() {
6757
    public void unsetGatewayTxnId() {
6205
      this.gatewayTxnId = null;
6758
      this.gatewayTxnId = null;
6206
    }
6759
    }
6207
 
6760
 
6208
    /** Returns true if field gatewayTxnId is set (has been asigned a value) and false otherwise */
6761
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
6209
    public boolean isSetGatewayTxnId() {
6762
    public boolean isSetGatewayTxnId() {
6210
      return this.gatewayTxnId != null;
6763
      return this.gatewayTxnId != null;
6211
    }
6764
    }
6212
 
6765
 
6213
    public void setGatewayTxnIdIsSet(boolean value) {
6766
    public void setGatewayTxnIdIsSet(boolean value) {
Line 6218... Line 6771...
6218
 
6771
 
6219
    public String getAuthCode() {
6772
    public String getAuthCode() {
6220
      return this.authCode;
6773
      return this.authCode;
6221
    }
6774
    }
6222
 
6775
 
6223
    public updatePaymentDetails_args setAuthCode(String authCode) {
6776
    public void setAuthCode(String authCode) {
6224
      this.authCode = authCode;
6777
      this.authCode = authCode;
6225
      return this;
-
 
6226
    }
6778
    }
6227
 
6779
 
6228
    public void unsetAuthCode() {
6780
    public void unsetAuthCode() {
6229
      this.authCode = null;
6781
      this.authCode = null;
6230
    }
6782
    }
6231
 
6783
 
6232
    /** Returns true if field authCode is set (has been asigned a value) and false otherwise */
6784
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
6233
    public boolean isSetAuthCode() {
6785
    public boolean isSetAuthCode() {
6234
      return this.authCode != null;
6786
      return this.authCode != null;
6235
    }
6787
    }
6236
 
6788
 
6237
    public void setAuthCodeIsSet(boolean value) {
6789
    public void setAuthCodeIsSet(boolean value) {
Line 6242... Line 6794...
6242
 
6794
 
6243
    public String getReferenceCode() {
6795
    public String getReferenceCode() {
6244
      return this.referenceCode;
6796
      return this.referenceCode;
6245
    }
6797
    }
6246
 
6798
 
6247
    public updatePaymentDetails_args setReferenceCode(String referenceCode) {
6799
    public void setReferenceCode(String referenceCode) {
6248
      this.referenceCode = referenceCode;
6800
      this.referenceCode = referenceCode;
6249
      return this;
-
 
6250
    }
6801
    }
6251
 
6802
 
6252
    public void unsetReferenceCode() {
6803
    public void unsetReferenceCode() {
6253
      this.referenceCode = null;
6804
      this.referenceCode = null;
6254
    }
6805
    }
6255
 
6806
 
6256
    /** Returns true if field referenceCode is set (has been asigned a value) and false otherwise */
6807
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
6257
    public boolean isSetReferenceCode() {
6808
    public boolean isSetReferenceCode() {
6258
      return this.referenceCode != null;
6809
      return this.referenceCode != null;
6259
    }
6810
    }
6260
 
6811
 
6261
    public void setReferenceCodeIsSet(boolean value) {
6812
    public void setReferenceCodeIsSet(boolean value) {
Line 6266... Line 6817...
6266
 
6817
 
6267
    public String getErrorCode() {
6818
    public String getErrorCode() {
6268
      return this.errorCode;
6819
      return this.errorCode;
6269
    }
6820
    }
6270
 
6821
 
6271
    public updatePaymentDetails_args setErrorCode(String errorCode) {
6822
    public void setErrorCode(String errorCode) {
6272
      this.errorCode = errorCode;
6823
      this.errorCode = errorCode;
6273
      return this;
-
 
6274
    }
6824
    }
6275
 
6825
 
6276
    public void unsetErrorCode() {
6826
    public void unsetErrorCode() {
6277
      this.errorCode = null;
6827
      this.errorCode = null;
6278
    }
6828
    }
6279
 
6829
 
6280
    /** Returns true if field errorCode is set (has been asigned a value) and false otherwise */
6830
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
6281
    public boolean isSetErrorCode() {
6831
    public boolean isSetErrorCode() {
6282
      return this.errorCode != null;
6832
      return this.errorCode != null;
6283
    }
6833
    }
6284
 
6834
 
6285
    public void setErrorCodeIsSet(boolean value) {
6835
    public void setErrorCodeIsSet(boolean value) {
Line 6298... Line 6848...
6298
 
6848
 
6299
    /**
6849
    /**
6300
     * 
6850
     * 
6301
     * @see PaymentStatus
6851
     * @see PaymentStatus
6302
     */
6852
     */
6303
    public updatePaymentDetails_args setStatus(PaymentStatus status) {
6853
    public void setStatus(PaymentStatus status) {
6304
      this.status = status;
6854
      this.status = status;
6305
      return this;
-
 
6306
    }
6855
    }
6307
 
6856
 
6308
    public void unsetStatus() {
6857
    public void unsetStatus() {
6309
      this.status = null;
6858
      this.status = null;
6310
    }
6859
    }
6311
 
6860
 
6312
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
6861
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
6313
    public boolean isSetStatus() {
6862
    public boolean isSetStatus() {
6314
      return this.status != null;
6863
      return this.status != null;
6315
    }
6864
    }
6316
 
6865
 
6317
    public void setStatusIsSet(boolean value) {
6866
    public void setStatusIsSet(boolean value) {
Line 6322... Line 6871...
6322
 
6871
 
6323
    public String getGatewayTxnDate() {
6872
    public String getGatewayTxnDate() {
6324
      return this.gatewayTxnDate;
6873
      return this.gatewayTxnDate;
6325
    }
6874
    }
6326
 
6875
 
6327
    public updatePaymentDetails_args setGatewayTxnDate(String gatewayTxnDate) {
6876
    public void setGatewayTxnDate(String gatewayTxnDate) {
6328
      this.gatewayTxnDate = gatewayTxnDate;
6877
      this.gatewayTxnDate = gatewayTxnDate;
6329
      return this;
-
 
6330
    }
6878
    }
6331
 
6879
 
6332
    public void unsetGatewayTxnDate() {
6880
    public void unsetGatewayTxnDate() {
6333
      this.gatewayTxnDate = null;
6881
      this.gatewayTxnDate = null;
6334
    }
6882
    }
6335
 
6883
 
6336
    /** Returns true if field gatewayTxnDate is set (has been asigned a value) and false otherwise */
6884
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
6337
    public boolean isSetGatewayTxnDate() {
6885
    public boolean isSetGatewayTxnDate() {
6338
      return this.gatewayTxnDate != null;
6886
      return this.gatewayTxnDate != null;
6339
    }
6887
    }
6340
 
6888
 
6341
    public void setGatewayTxnDateIsSet(boolean value) {
6889
    public void setGatewayTxnDateIsSet(boolean value) {
Line 6361... Line 6909...
6361
 
6909
 
6362
    public List<Attribute> getAttributes() {
6910
    public List<Attribute> getAttributes() {
6363
      return this.attributes;
6911
      return this.attributes;
6364
    }
6912
    }
6365
 
6913
 
6366
    public updatePaymentDetails_args setAttributes(List<Attribute> attributes) {
6914
    public void setAttributes(List<Attribute> attributes) {
6367
      this.attributes = attributes;
6915
      this.attributes = attributes;
6368
      return this;
-
 
6369
    }
6916
    }
6370
 
6917
 
6371
    public void unsetAttributes() {
6918
    public void unsetAttributes() {
6372
      this.attributes = null;
6919
      this.attributes = null;
6373
    }
6920
    }
6374
 
6921
 
6375
    /** Returns true if field attributes is set (has been asigned a value) and false otherwise */
6922
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
6376
    public boolean isSetAttributes() {
6923
    public boolean isSetAttributes() {
6377
      return this.attributes != null;
6924
      return this.attributes != null;
6378
    }
6925
    }
6379
 
6926
 
6380
    public void setAttributesIsSet(boolean value) {
6927
    public void setAttributesIsSet(boolean value) {
Line 6482... Line 7029...
6482
        break;
7029
        break;
6483
 
7030
 
6484
      }
7031
      }
6485
    }
7032
    }
6486
 
7033
 
6487
    public void setFieldValue(int fieldID, Object value) {
-
 
6488
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6489
    }
-
 
6490
 
-
 
6491
    public Object getFieldValue(_Fields field) {
7034
    public Object getFieldValue(_Fields field) {
6492
      switch (field) {
7035
      switch (field) {
6493
      case ID:
7036
      case ID:
6494
        return new Long(getId());
7037
        return Long.valueOf(getId());
6495
 
7038
 
6496
      case GATEWAY_PAYMENT_ID:
7039
      case GATEWAY_PAYMENT_ID:
6497
        return getGatewayPaymentId();
7040
        return getGatewayPaymentId();
6498
 
7041
 
6499
      case SESSION_ID:
7042
      case SESSION_ID:
Line 6528... Line 7071...
6528
 
7071
 
6529
      }
7072
      }
6530
      throw new IllegalStateException();
7073
      throw new IllegalStateException();
6531
    }
7074
    }
6532
 
7075
 
6533
    public Object getFieldValue(int fieldId) {
-
 
6534
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6535
    }
-
 
6536
 
-
 
6537
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6538
    public boolean isSet(_Fields field) {
7077
    public boolean isSet(_Fields field) {
-
 
7078
      if (field == null) {
-
 
7079
        throw new IllegalArgumentException();
-
 
7080
      }
-
 
7081
 
6539
      switch (field) {
7082
      switch (field) {
6540
      case ID:
7083
      case ID:
6541
        return isSetId();
7084
        return isSetId();
6542
      case GATEWAY_PAYMENT_ID:
7085
      case GATEWAY_PAYMENT_ID:
6543
        return isSetGatewayPaymentId();
7086
        return isSetGatewayPaymentId();
Line 6563... Line 7106...
6563
        return isSetAttributes();
7106
        return isSetAttributes();
6564
      }
7107
      }
6565
      throw new IllegalStateException();
7108
      throw new IllegalStateException();
6566
    }
7109
    }
6567
 
7110
 
6568
    public boolean isSet(int fieldID) {
-
 
6569
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6570
    }
-
 
6571
 
-
 
6572
    @Override
7111
    @Override
6573
    public boolean equals(Object that) {
7112
    public boolean equals(Object that) {
6574
      if (that == null)
7113
      if (that == null)
6575
        return false;
7114
        return false;
6576
      if (that instanceof updatePaymentDetails_args)
7115
      if (that instanceof updatePaymentDetails_args)
Line 6704... Line 7243...
6704
      }
7243
      }
6705
 
7244
 
6706
      int lastComparison = 0;
7245
      int lastComparison = 0;
6707
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
7246
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
6708
 
7247
 
6709
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
7248
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
6710
      if (lastComparison != 0) {
7249
      if (lastComparison != 0) {
6711
        return lastComparison;
7250
        return lastComparison;
6712
      }
7251
      }
-
 
7252
      if (isSetId()) {
6713
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
7253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6714
      if (lastComparison != 0) {
7254
        if (lastComparison != 0) {
6715
        return lastComparison;
7255
          return lastComparison;
-
 
7256
        }
6716
      }
7257
      }
6717
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(isSetGatewayPaymentId());
7258
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
6718
      if (lastComparison != 0) {
7259
      if (lastComparison != 0) {
6719
        return lastComparison;
7260
        return lastComparison;
6720
      }
7261
      }
-
 
7262
      if (isSetGatewayPaymentId()) {
6721
      lastComparison = TBaseHelper.compareTo(gatewayPaymentId, typedOther.gatewayPaymentId);
7263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
6722
      if (lastComparison != 0) {
7264
        if (lastComparison != 0) {
6723
        return lastComparison;
7265
          return lastComparison;
-
 
7266
        }
6724
      }
7267
      }
6725
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(isSetSessionId());
7268
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
6726
      if (lastComparison != 0) {
7269
      if (lastComparison != 0) {
6727
        return lastComparison;
7270
        return lastComparison;
6728
      }
7271
      }
-
 
7272
      if (isSetSessionId()) {
6729
      lastComparison = TBaseHelper.compareTo(sessionId, typedOther.sessionId);
7273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
6730
      if (lastComparison != 0) {
7274
        if (lastComparison != 0) {
6731
        return lastComparison;
7275
          return lastComparison;
-
 
7276
        }
6732
      }
7277
      }
6733
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(isSetGatewayTxnStatus());
7278
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
6734
      if (lastComparison != 0) {
7279
      if (lastComparison != 0) {
6735
        return lastComparison;
7280
        return lastComparison;
6736
      }
7281
      }
-
 
7282
      if (isSetGatewayTxnStatus()) {
6737
      lastComparison = TBaseHelper.compareTo(gatewayTxnStatus, typedOther.gatewayTxnStatus);
7283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
6738
      if (lastComparison != 0) {
7284
        if (lastComparison != 0) {
6739
        return lastComparison;
7285
          return lastComparison;
-
 
7286
        }
6740
      }
7287
      }
6741
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
7288
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
6742
      if (lastComparison != 0) {
7289
      if (lastComparison != 0) {
6743
        return lastComparison;
7290
        return lastComparison;
6744
      }
7291
      }
-
 
7292
      if (isSetDescription()) {
6745
      lastComparison = TBaseHelper.compareTo(description, typedOther.description);
7293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
6746
      if (lastComparison != 0) {
7294
        if (lastComparison != 0) {
6747
        return lastComparison;
7295
          return lastComparison;
-
 
7296
        }
6748
      }
7297
      }
6749
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(isSetGatewayTxnId());
7298
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
6750
      if (lastComparison != 0) {
7299
      if (lastComparison != 0) {
6751
        return lastComparison;
7300
        return lastComparison;
6752
      }
7301
      }
-
 
7302
      if (isSetGatewayTxnId()) {
6753
      lastComparison = TBaseHelper.compareTo(gatewayTxnId, typedOther.gatewayTxnId);
7303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
6754
      if (lastComparison != 0) {
7304
        if (lastComparison != 0) {
6755
        return lastComparison;
7305
          return lastComparison;
-
 
7306
        }
6756
      }
7307
      }
6757
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(isSetAuthCode());
7308
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
6758
      if (lastComparison != 0) {
7309
      if (lastComparison != 0) {
6759
        return lastComparison;
7310
        return lastComparison;
6760
      }
7311
      }
-
 
7312
      if (isSetAuthCode()) {
6761
      lastComparison = TBaseHelper.compareTo(authCode, typedOther.authCode);
7313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
6762
      if (lastComparison != 0) {
7314
        if (lastComparison != 0) {
6763
        return lastComparison;
7315
          return lastComparison;
-
 
7316
        }
6764
      }
7317
      }
6765
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(isSetReferenceCode());
7318
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
6766
      if (lastComparison != 0) {
7319
      if (lastComparison != 0) {
6767
        return lastComparison;
7320
        return lastComparison;
6768
      }
7321
      }
-
 
7322
      if (isSetReferenceCode()) {
6769
      lastComparison = TBaseHelper.compareTo(referenceCode, typedOther.referenceCode);
7323
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
6770
      if (lastComparison != 0) {
7324
        if (lastComparison != 0) {
6771
        return lastComparison;
7325
          return lastComparison;
-
 
7326
        }
6772
      }
7327
      }
6773
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(isSetErrorCode());
7328
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
6774
      if (lastComparison != 0) {
7329
      if (lastComparison != 0) {
6775
        return lastComparison;
7330
        return lastComparison;
6776
      }
7331
      }
-
 
7332
      if (isSetErrorCode()) {
6777
      lastComparison = TBaseHelper.compareTo(errorCode, typedOther.errorCode);
7333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
6778
      if (lastComparison != 0) {
7334
        if (lastComparison != 0) {
6779
        return lastComparison;
7335
          return lastComparison;
-
 
7336
        }
6780
      }
7337
      }
6781
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
7338
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
6782
      if (lastComparison != 0) {
7339
      if (lastComparison != 0) {
6783
        return lastComparison;
7340
        return lastComparison;
6784
      }
7341
      }
-
 
7342
      if (isSetStatus()) {
6785
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
7343
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
6786
      if (lastComparison != 0) {
7344
        if (lastComparison != 0) {
6787
        return lastComparison;
7345
          return lastComparison;
-
 
7346
        }
6788
      }
7347
      }
6789
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(isSetGatewayTxnDate());
7348
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
6790
      if (lastComparison != 0) {
7349
      if (lastComparison != 0) {
6791
        return lastComparison;
7350
        return lastComparison;
6792
      }
7351
      }
-
 
7352
      if (isSetGatewayTxnDate()) {
6793
      lastComparison = TBaseHelper.compareTo(gatewayTxnDate, typedOther.gatewayTxnDate);
7353
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
6794
      if (lastComparison != 0) {
7354
        if (lastComparison != 0) {
6795
        return lastComparison;
7355
          return lastComparison;
-
 
7356
        }
6796
      }
7357
      }
6797
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(isSetAttributes());
7358
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
6798
      if (lastComparison != 0) {
7359
      if (lastComparison != 0) {
6799
        return lastComparison;
7360
        return lastComparison;
6800
      }
7361
      }
-
 
7362
      if (isSetAttributes()) {
6801
      lastComparison = TBaseHelper.compareTo(attributes, typedOther.attributes);
7363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
6802
      if (lastComparison != 0) {
7364
        if (lastComparison != 0) {
6803
        return lastComparison;
7365
          return lastComparison;
-
 
7366
        }
6804
      }
7367
      }
6805
      return 0;
7368
      return 0;
6806
    }
7369
    }
6807
 
7370
 
-
 
7371
    public _Fields fieldForId(int fieldId) {
-
 
7372
      return _Fields.findByThriftId(fieldId);
-
 
7373
    }
-
 
7374
 
6808
    public void read(TProtocol iprot) throws TException {
7375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6809
      TField field;
7376
      org.apache.thrift.protocol.TField field;
6810
      iprot.readStructBegin();
7377
      iprot.readStructBegin();
6811
      while (true)
7378
      while (true)
6812
      {
7379
      {
6813
        field = iprot.readFieldBegin();
7380
        field = iprot.readFieldBegin();
6814
        if (field.type == TType.STOP) { 
7381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6815
          break;
7382
          break;
6816
        }
7383
        }
6817
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6818
        if (fieldId == null) {
-
 
6819
          TProtocolUtil.skip(iprot, field.type);
-
 
6820
        } else {
-
 
6821
          switch (fieldId) {
7384
        switch (field.id) {
6822
            case ID:
7385
          case 1: // ID
6823
              if (field.type == TType.I64) {
7386
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6824
                this.id = iprot.readI64();
7387
              this.id = iprot.readI64();
6825
                setIdIsSet(true);
7388
              setIdIsSet(true);
6826
              } else { 
7389
            } else { 
6827
                TProtocolUtil.skip(iprot, field.type);
7390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6828
              }
7391
            }
6829
              break;
7392
            break;
6830
            case GATEWAY_PAYMENT_ID:
7393
          case 2: // GATEWAY_PAYMENT_ID
6831
              if (field.type == TType.STRING) {
7394
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6832
                this.gatewayPaymentId = iprot.readString();
7395
              this.gatewayPaymentId = iprot.readString();
6833
              } else { 
7396
            } else { 
6834
                TProtocolUtil.skip(iprot, field.type);
7397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6835
              }
7398
            }
6836
              break;
7399
            break;
6837
            case SESSION_ID:
7400
          case 3: // SESSION_ID
6838
              if (field.type == TType.STRING) {
7401
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6839
                this.sessionId = iprot.readString();
7402
              this.sessionId = iprot.readString();
6840
              } else { 
7403
            } else { 
6841
                TProtocolUtil.skip(iprot, field.type);
7404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6842
              }
7405
            }
6843
              break;
7406
            break;
6844
            case GATEWAY_TXN_STATUS:
7407
          case 4: // GATEWAY_TXN_STATUS
6845
              if (field.type == TType.STRING) {
7408
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6846
                this.gatewayTxnStatus = iprot.readString();
7409
              this.gatewayTxnStatus = iprot.readString();
6847
              } else { 
7410
            } else { 
6848
                TProtocolUtil.skip(iprot, field.type);
7411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6849
              }
7412
            }
6850
              break;
7413
            break;
6851
            case DESCRIPTION:
7414
          case 5: // DESCRIPTION
6852
              if (field.type == TType.STRING) {
7415
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6853
                this.description = iprot.readString();
7416
              this.description = iprot.readString();
6854
              } else { 
7417
            } else { 
6855
                TProtocolUtil.skip(iprot, field.type);
7418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6856
              }
7419
            }
6857
              break;
7420
            break;
6858
            case GATEWAY_TXN_ID:
7421
          case 6: // GATEWAY_TXN_ID
6859
              if (field.type == TType.STRING) {
7422
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6860
                this.gatewayTxnId = iprot.readString();
7423
              this.gatewayTxnId = iprot.readString();
6861
              } else { 
7424
            } else { 
6862
                TProtocolUtil.skip(iprot, field.type);
7425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6863
              }
7426
            }
6864
              break;
7427
            break;
6865
            case AUTH_CODE:
7428
          case 7: // AUTH_CODE
6866
              if (field.type == TType.STRING) {
7429
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6867
                this.authCode = iprot.readString();
7430
              this.authCode = iprot.readString();
6868
              } else { 
7431
            } else { 
6869
                TProtocolUtil.skip(iprot, field.type);
7432
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6870
              }
7433
            }
6871
              break;
7434
            break;
6872
            case REFERENCE_CODE:
7435
          case 8: // REFERENCE_CODE
6873
              if (field.type == TType.STRING) {
7436
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6874
                this.referenceCode = iprot.readString();
7437
              this.referenceCode = iprot.readString();
6875
              } else { 
7438
            } else { 
6876
                TProtocolUtil.skip(iprot, field.type);
7439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6877
              }
7440
            }
6878
              break;
7441
            break;
6879
            case ERROR_CODE:
7442
          case 9: // ERROR_CODE
6880
              if (field.type == TType.STRING) {
7443
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6881
                this.errorCode = iprot.readString();
7444
              this.errorCode = iprot.readString();
6882
              } else { 
7445
            } else { 
6883
                TProtocolUtil.skip(iprot, field.type);
7446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6884
              }
7447
            }
6885
              break;
7448
            break;
6886
            case STATUS:
7449
          case 10: // STATUS
6887
              if (field.type == TType.I32) {
7450
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6888
                this.status = PaymentStatus.findByValue(iprot.readI32());
7451
              this.status = PaymentStatus.findByValue(iprot.readI32());
6889
              } else { 
7452
            } else { 
6890
                TProtocolUtil.skip(iprot, field.type);
7453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6891
              }
7454
            }
6892
              break;
7455
            break;
6893
            case GATEWAY_TXN_DATE:
7456
          case 11: // GATEWAY_TXN_DATE
6894
              if (field.type == TType.STRING) {
7457
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6895
                this.gatewayTxnDate = iprot.readString();
7458
              this.gatewayTxnDate = iprot.readString();
6896
              } else { 
7459
            } else { 
6897
                TProtocolUtil.skip(iprot, field.type);
7460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6898
              }
7461
            }
6899
              break;
7462
            break;
6900
            case ATTRIBUTES:
7463
          case 12: // ATTRIBUTES
6901
              if (field.type == TType.LIST) {
7464
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
7465
              {
-
 
7466
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
-
 
7467
                this.attributes = new ArrayList<Attribute>(_list24.size);
-
 
7468
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
6902
                {
7469
                {
6903
                  TList _list24 = iprot.readListBegin();
-
 
6904
                  this.attributes = new ArrayList<Attribute>(_list24.size);
-
 
6905
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
6906
                  {
-
 
6907
                    Attribute _elem26;
7470
                  Attribute _elem26; // required
6908
                    _elem26 = new Attribute();
7471
                  _elem26 = new Attribute();
6909
                    _elem26.read(iprot);
7472
                  _elem26.read(iprot);
6910
                    this.attributes.add(_elem26);
7473
                  this.attributes.add(_elem26);
6911
                  }
-
 
6912
                  iprot.readListEnd();
-
 
6913
                }
7474
                }
6914
              } else { 
7475
                iprot.readListEnd();
6915
                TProtocolUtil.skip(iprot, field.type);
-
 
6916
              }
7476
              }
6917
              break;
7477
            } else { 
-
 
7478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6918
          }
7479
            }
6919
          iprot.readFieldEnd();
7480
            break;
-
 
7481
          default:
-
 
7482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6920
        }
7483
        }
-
 
7484
        iprot.readFieldEnd();
6921
      }
7485
      }
6922
      iprot.readStructEnd();
7486
      iprot.readStructEnd();
6923
      validate();
7487
      validate();
6924
    }
7488
    }
6925
 
7489
 
6926
    public void write(TProtocol oprot) throws TException {
7490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6927
      validate();
7491
      validate();
6928
 
7492
 
6929
      oprot.writeStructBegin(STRUCT_DESC);
7493
      oprot.writeStructBegin(STRUCT_DESC);
6930
      oprot.writeFieldBegin(ID_FIELD_DESC);
7494
      oprot.writeFieldBegin(ID_FIELD_DESC);
6931
      oprot.writeI64(this.id);
7495
      oprot.writeI64(this.id);
Line 6981... Line 7545...
6981
        oprot.writeFieldEnd();
7545
        oprot.writeFieldEnd();
6982
      }
7546
      }
6983
      if (this.attributes != null) {
7547
      if (this.attributes != null) {
6984
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
7548
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
6985
        {
7549
        {
6986
          oprot.writeListBegin(new TList(TType.STRUCT, this.attributes.size()));
7550
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
6987
          for (Attribute _iter27 : this.attributes)
7551
          for (Attribute _iter27 : this.attributes)
6988
          {
7552
          {
6989
            _iter27.write(oprot);
7553
            _iter27.write(oprot);
6990
          }
7554
          }
6991
          oprot.writeListEnd();
7555
          oprot.writeListEnd();
Line 7071... Line 7635...
7071
      if (!first) sb.append(", ");
7635
      if (!first) sb.append(", ");
7072
      sb.append("status:");
7636
      sb.append("status:");
7073
      if (this.status == null) {
7637
      if (this.status == null) {
7074
        sb.append("null");
7638
        sb.append("null");
7075
      } else {
7639
      } else {
7076
        String status_name = status.name();
-
 
7077
        if (status_name != null) {
-
 
7078
          sb.append(status_name);
-
 
7079
          sb.append(" (");
-
 
7080
        }
-
 
7081
        sb.append(this.status);
7640
        sb.append(this.status);
7082
        if (status_name != null) {
-
 
7083
          sb.append(")");
-
 
7084
        }
-
 
7085
      }
7641
      }
7086
      first = false;
7642
      first = false;
7087
      if (!first) sb.append(", ");
7643
      if (!first) sb.append(", ");
7088
      sb.append("gatewayTxnDate:");
7644
      sb.append("gatewayTxnDate:");
7089
      if (this.gatewayTxnDate == null) {
7645
      if (this.gatewayTxnDate == null) {
Line 7102... Line 7658...
7102
      first = false;
7658
      first = false;
7103
      sb.append(")");
7659
      sb.append(")");
7104
      return sb.toString();
7660
      return sb.toString();
7105
    }
7661
    }
7106
 
7662
 
7107
    public void validate() throws TException {
7663
    public void validate() throws org.apache.thrift.TException {
7108
      // check for required fields
7664
      // check for required fields
7109
    }
7665
    }
7110
 
7666
 
-
 
7667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7668
      try {
-
 
7669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7670
      } catch (org.apache.thrift.TException te) {
-
 
7671
        throw new java.io.IOException(te);
-
 
7672
      }
-
 
7673
    }
-
 
7674
 
-
 
7675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7676
      try {
-
 
7677
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7678
        __isset_bit_vector = new BitSet(1);
-
 
7679
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7680
      } catch (org.apache.thrift.TException te) {
-
 
7681
        throw new java.io.IOException(te);
-
 
7682
      }
-
 
7683
    }
-
 
7684
 
7111
  }
7685
  }
7112
 
7686
 
7113
  public static class updatePaymentDetails_result implements TBase<updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePaymentDetails_result>   {
7687
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
7114
    private static final TStruct STRUCT_DESC = new TStruct("updatePaymentDetails_result");
7688
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
7115
 
7689
 
7116
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
7690
    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);
7117
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
7691
    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);
7118
 
7692
 
7119
    private boolean success;
7693
    private boolean success; // required
7120
    private PaymentException pe;
7694
    private PaymentException pe; // required
7121
 
7695
 
7122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7123
    public enum _Fields implements TFieldIdEnum {
7697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7124
      SUCCESS((short)0, "success"),
7698
      SUCCESS((short)0, "success"),
7125
      PE((short)1, "pe");
7699
      PE((short)1, "pe");
7126
 
7700
 
7127
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7128
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7129
 
7702
 
7130
      static {
7703
      static {
7131
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7132
          byId.put((int)field._thriftId, field);
-
 
7133
          byName.put(field.getFieldName(), field);
7705
          byName.put(field.getFieldName(), field);
7134
        }
7706
        }
7135
      }
7707
      }
7136
 
7708
 
7137
      /**
7709
      /**
7138
       * Find the _Fields constant that matches fieldId, or null if its not found.
7710
       * Find the _Fields constant that matches fieldId, or null if its not found.
7139
       */
7711
       */
7140
      public static _Fields findByThriftId(int fieldId) {
7712
      public static _Fields findByThriftId(int fieldId) {
7141
        return byId.get(fieldId);
7713
        switch(fieldId) {
-
 
7714
          case 0: // SUCCESS
-
 
7715
            return SUCCESS;
-
 
7716
          case 1: // PE
-
 
7717
            return PE;
-
 
7718
          default:
-
 
7719
            return null;
-
 
7720
        }
7142
      }
7721
      }
7143
 
7722
 
7144
      /**
7723
      /**
7145
       * Find the _Fields constant that matches fieldId, throwing an exception
7724
       * Find the _Fields constant that matches fieldId, throwing an exception
7146
       * if it is not found.
7725
       * if it is not found.
Line 7177... Line 7756...
7177
 
7756
 
7178
    // isset id assignments
7757
    // isset id assignments
7179
    private static final int __SUCCESS_ISSET_ID = 0;
7758
    private static final int __SUCCESS_ISSET_ID = 0;
7180
    private BitSet __isset_bit_vector = new BitSet(1);
7759
    private BitSet __isset_bit_vector = new BitSet(1);
7181
 
7760
 
7182
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7183
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7184
          new FieldValueMetaData(TType.BOOL)));
-
 
7185
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
7186
          new FieldValueMetaData(TType.STRUCT)));
-
 
7187
    }});
-
 
7188
 
-
 
7189
    static {
7762
    static {
-
 
7763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7764
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
7766
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
7768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7190
      FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
7769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
7191
    }
7770
    }
7192
 
7771
 
7193
    public updatePaymentDetails_result() {
7772
    public updatePaymentDetails_result() {
7194
    }
7773
    }
7195
 
7774
 
Line 7217... Line 7796...
7217
 
7796
 
7218
    public updatePaymentDetails_result deepCopy() {
7797
    public updatePaymentDetails_result deepCopy() {
7219
      return new updatePaymentDetails_result(this);
7798
      return new updatePaymentDetails_result(this);
7220
    }
7799
    }
7221
 
7800
 
7222
    @Deprecated
7801
    @Override
7223
    public updatePaymentDetails_result clone() {
7802
    public void clear() {
7224
      return new updatePaymentDetails_result(this);
7803
      setSuccessIsSet(false);
-
 
7804
      this.success = false;
-
 
7805
      this.pe = null;
7225
    }
7806
    }
7226
 
7807
 
7227
    public boolean isSuccess() {
7808
    public boolean isSuccess() {
7228
      return this.success;
7809
      return this.success;
7229
    }
7810
    }
7230
 
7811
 
7231
    public updatePaymentDetails_result setSuccess(boolean success) {
7812
    public void setSuccess(boolean success) {
7232
      this.success = success;
7813
      this.success = success;
7233
      setSuccessIsSet(true);
7814
      setSuccessIsSet(true);
7234
      return this;
-
 
7235
    }
7815
    }
7236
 
7816
 
7237
    public void unsetSuccess() {
7817
    public void unsetSuccess() {
7238
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7818
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7239
    }
7819
    }
7240
 
7820
 
7241
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7821
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7242
    public boolean isSetSuccess() {
7822
    public boolean isSetSuccess() {
7243
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7823
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7244
    }
7824
    }
7245
 
7825
 
7246
    public void setSuccessIsSet(boolean value) {
7826
    public void setSuccessIsSet(boolean value) {
Line 7249... Line 7829...
7249
 
7829
 
7250
    public PaymentException getPe() {
7830
    public PaymentException getPe() {
7251
      return this.pe;
7831
      return this.pe;
7252
    }
7832
    }
7253
 
7833
 
7254
    public updatePaymentDetails_result setPe(PaymentException pe) {
7834
    public void setPe(PaymentException pe) {
7255
      this.pe = pe;
7835
      this.pe = pe;
7256
      return this;
-
 
7257
    }
7836
    }
7258
 
7837
 
7259
    public void unsetPe() {
7838
    public void unsetPe() {
7260
      this.pe = null;
7839
      this.pe = null;
7261
    }
7840
    }
7262
 
7841
 
7263
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
7842
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
7264
    public boolean isSetPe() {
7843
    public boolean isSetPe() {
7265
      return this.pe != null;
7844
      return this.pe != null;
7266
    }
7845
    }
7267
 
7846
 
7268
    public void setPeIsSet(boolean value) {
7847
    public void setPeIsSet(boolean value) {
Line 7290... Line 7869...
7290
        break;
7869
        break;
7291
 
7870
 
7292
      }
7871
      }
7293
    }
7872
    }
7294
 
7873
 
7295
    public void setFieldValue(int fieldID, Object value) {
-
 
7296
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7297
    }
-
 
7298
 
-
 
7299
    public Object getFieldValue(_Fields field) {
7874
    public Object getFieldValue(_Fields field) {
7300
      switch (field) {
7875
      switch (field) {
7301
      case SUCCESS:
7876
      case SUCCESS:
7302
        return new Boolean(isSuccess());
7877
        return Boolean.valueOf(isSuccess());
7303
 
7878
 
7304
      case PE:
7879
      case PE:
7305
        return getPe();
7880
        return getPe();
7306
 
7881
 
7307
      }
7882
      }
7308
      throw new IllegalStateException();
7883
      throw new IllegalStateException();
7309
    }
7884
    }
7310
 
7885
 
7311
    public Object getFieldValue(int fieldId) {
-
 
7312
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7313
    }
-
 
7314
 
-
 
7315
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7886
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7316
    public boolean isSet(_Fields field) {
7887
    public boolean isSet(_Fields field) {
-
 
7888
      if (field == null) {
-
 
7889
        throw new IllegalArgumentException();
-
 
7890
      }
-
 
7891
 
7317
      switch (field) {
7892
      switch (field) {
7318
      case SUCCESS:
7893
      case SUCCESS:
7319
        return isSetSuccess();
7894
        return isSetSuccess();
7320
      case PE:
7895
      case PE:
7321
        return isSetPe();
7896
        return isSetPe();
7322
      }
7897
      }
7323
      throw new IllegalStateException();
7898
      throw new IllegalStateException();
7324
    }
7899
    }
7325
 
7900
 
7326
    public boolean isSet(int fieldID) {
-
 
7327
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7328
    }
-
 
7329
 
-
 
7330
    @Override
7901
    @Override
7331
    public boolean equals(Object that) {
7902
    public boolean equals(Object that) {
7332
      if (that == null)
7903
      if (that == null)
7333
        return false;
7904
        return false;
7334
      if (that instanceof updatePaymentDetails_result)
7905
      if (that instanceof updatePaymentDetails_result)
Line 7372... Line 7943...
7372
      }
7943
      }
7373
 
7944
 
7374
      int lastComparison = 0;
7945
      int lastComparison = 0;
7375
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
7946
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
7376
 
7947
 
7377
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7948
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7378
      if (lastComparison != 0) {
7949
      if (lastComparison != 0) {
7379
        return lastComparison;
7950
        return lastComparison;
7380
      }
7951
      }
-
 
7952
      if (isSetSuccess()) {
7381
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
7953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7382
      if (lastComparison != 0) {
7954
        if (lastComparison != 0) {
7383
        return lastComparison;
7955
          return lastComparison;
-
 
7956
        }
7384
      }
7957
      }
7385
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
7958
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
7386
      if (lastComparison != 0) {
7959
      if (lastComparison != 0) {
7387
        return lastComparison;
7960
        return lastComparison;
7388
      }
7961
      }
-
 
7962
      if (isSetPe()) {
7389
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
7963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7390
      if (lastComparison != 0) {
7964
        if (lastComparison != 0) {
7391
        return lastComparison;
7965
          return lastComparison;
-
 
7966
        }
7392
      }
7967
      }
7393
      return 0;
7968
      return 0;
7394
    }
7969
    }
7395
 
7970
 
-
 
7971
    public _Fields fieldForId(int fieldId) {
-
 
7972
      return _Fields.findByThriftId(fieldId);
-
 
7973
    }
-
 
7974
 
7396
    public void read(TProtocol iprot) throws TException {
7975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7397
      TField field;
7976
      org.apache.thrift.protocol.TField field;
7398
      iprot.readStructBegin();
7977
      iprot.readStructBegin();
7399
      while (true)
7978
      while (true)
7400
      {
7979
      {
7401
        field = iprot.readFieldBegin();
7980
        field = iprot.readFieldBegin();
7402
        if (field.type == TType.STOP) { 
7981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7403
          break;
7982
          break;
7404
        }
7983
        }
7405
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7406
        if (fieldId == null) {
-
 
7407
          TProtocolUtil.skip(iprot, field.type);
-
 
7408
        } else {
-
 
7409
          switch (fieldId) {
7984
        switch (field.id) {
7410
            case SUCCESS:
7985
          case 0: // SUCCESS
7411
              if (field.type == TType.BOOL) {
7986
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
7412
                this.success = iprot.readBool();
7987
              this.success = iprot.readBool();
7413
                setSuccessIsSet(true);
7988
              setSuccessIsSet(true);
7414
              } else { 
7989
            } else { 
7415
                TProtocolUtil.skip(iprot, field.type);
7990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7416
              }
7991
            }
7417
              break;
7992
            break;
7418
            case PE:
7993
          case 1: // PE
7419
              if (field.type == TType.STRUCT) {
7994
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7420
                this.pe = new PaymentException();
7995
              this.pe = new PaymentException();
7421
                this.pe.read(iprot);
7996
              this.pe.read(iprot);
7422
              } else { 
7997
            } else { 
7423
                TProtocolUtil.skip(iprot, field.type);
7998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7424
              }
7999
            }
7425
              break;
8000
            break;
7426
          }
8001
          default:
7427
          iprot.readFieldEnd();
8002
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7428
        }
8003
        }
-
 
8004
        iprot.readFieldEnd();
7429
      }
8005
      }
7430
      iprot.readStructEnd();
8006
      iprot.readStructEnd();
7431
      validate();
8007
      validate();
7432
    }
8008
    }
7433
 
8009
 
7434
    public void write(TProtocol oprot) throws TException {
8010
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7435
      oprot.writeStructBegin(STRUCT_DESC);
8011
      oprot.writeStructBegin(STRUCT_DESC);
7436
 
8012
 
7437
      if (this.isSetSuccess()) {
8013
      if (this.isSetSuccess()) {
7438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8014
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7439
        oprot.writeBool(this.success);
8015
        oprot.writeBool(this.success);
Line 7465... Line 8041...
7465
      first = false;
8041
      first = false;
7466
      sb.append(")");
8042
      sb.append(")");
7467
      return sb.toString();
8043
      return sb.toString();
7468
    }
8044
    }
7469
 
8045
 
7470
    public void validate() throws TException {
8046
    public void validate() throws org.apache.thrift.TException {
7471
      // check for required fields
8047
      // check for required fields
7472
    }
8048
    }
7473
 
8049
 
-
 
8050
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8051
      try {
-
 
8052
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8053
      } catch (org.apache.thrift.TException te) {
-
 
8054
        throw new java.io.IOException(te);
-
 
8055
      }
-
 
8056
    }
-
 
8057
 
-
 
8058
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8059
      try {
-
 
8060
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8061
      } catch (org.apache.thrift.TException te) {
-
 
8062
        throw new java.io.IOException(te);
-
 
8063
      }
-
 
8064
    }
-
 
8065
 
7474
  }
8066
  }
7475
 
8067
 
7476
  public static class getSuccessfulPaymentsAmountRange_args implements TBase<getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSuccessfulPaymentsAmountRange_args>   {
8068
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
7477
    private static final TStruct STRUCT_DESC = new TStruct("getSuccessfulPaymentsAmountRange_args");
8069
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
7478
 
8070
 
7479
 
8071
 
7480
 
8072
 
7481
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7482
    public enum _Fields implements TFieldIdEnum {
8074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7483
;
8075
;
7484
 
8076
 
7485
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7486
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7487
 
8078
 
7488
      static {
8079
      static {
7489
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7490
          byId.put((int)field._thriftId, field);
-
 
7491
          byName.put(field.getFieldName(), field);
8081
          byName.put(field.getFieldName(), field);
7492
        }
8082
        }
7493
      }
8083
      }
7494
 
8084
 
7495
      /**
8085
      /**
7496
       * Find the _Fields constant that matches fieldId, or null if its not found.
8086
       * Find the _Fields constant that matches fieldId, or null if its not found.
7497
       */
8087
       */
7498
      public static _Fields findByThriftId(int fieldId) {
8088
      public static _Fields findByThriftId(int fieldId) {
7499
        return byId.get(fieldId);
8089
        switch(fieldId) {
-
 
8090
          default:
-
 
8091
            return null;
-
 
8092
        }
7500
      }
8093
      }
7501
 
8094
 
7502
      /**
8095
      /**
7503
       * Find the _Fields constant that matches fieldId, throwing an exception
8096
       * Find the _Fields constant that matches fieldId, throwing an exception
7504
       * if it is not found.
8097
       * if it is not found.
Line 7530... Line 8123...
7530
 
8123
 
7531
      public String getFieldName() {
8124
      public String getFieldName() {
7532
        return _fieldName;
8125
        return _fieldName;
7533
      }
8126
      }
7534
    }
8127
    }
7535
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8128
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7536
    }});
-
 
7537
 
-
 
7538
    static {
8129
    static {
-
 
8130
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8131
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7539
      FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
8132
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
7540
    }
8133
    }
7541
 
8134
 
7542
    public getSuccessfulPaymentsAmountRange_args() {
8135
    public getSuccessfulPaymentsAmountRange_args() {
7543
    }
8136
    }
7544
 
8137
 
Line 7550... Line 8143...
7550
 
8143
 
7551
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
8144
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
7552
      return new getSuccessfulPaymentsAmountRange_args(this);
8145
      return new getSuccessfulPaymentsAmountRange_args(this);
7553
    }
8146
    }
7554
 
8147
 
7555
    @Deprecated
8148
    @Override
7556
    public getSuccessfulPaymentsAmountRange_args clone() {
8149
    public void clear() {
7557
      return new getSuccessfulPaymentsAmountRange_args(this);
-
 
7558
    }
8150
    }
7559
 
8151
 
7560
    public void setFieldValue(_Fields field, Object value) {
8152
    public void setFieldValue(_Fields field, Object value) {
7561
      switch (field) {
8153
      switch (field) {
7562
      }
8154
      }
7563
    }
8155
    }
7564
 
8156
 
7565
    public void setFieldValue(int fieldID, Object value) {
-
 
7566
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7567
    }
-
 
7568
 
-
 
7569
    public Object getFieldValue(_Fields field) {
8157
    public Object getFieldValue(_Fields field) {
7570
      switch (field) {
8158
      switch (field) {
7571
      }
8159
      }
7572
      throw new IllegalStateException();
8160
      throw new IllegalStateException();
7573
    }
8161
    }
7574
 
8162
 
7575
    public Object getFieldValue(int fieldId) {
-
 
7576
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7577
    }
-
 
7578
 
-
 
7579
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8163
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7580
    public boolean isSet(_Fields field) {
8164
    public boolean isSet(_Fields field) {
-
 
8165
      if (field == null) {
-
 
8166
        throw new IllegalArgumentException();
-
 
8167
      }
-
 
8168
 
7581
      switch (field) {
8169
      switch (field) {
7582
      }
8170
      }
7583
      throw new IllegalStateException();
8171
      throw new IllegalStateException();
7584
    }
8172
    }
7585
 
8173
 
7586
    public boolean isSet(int fieldID) {
-
 
7587
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7588
    }
-
 
7589
 
-
 
7590
    @Override
8174
    @Override
7591
    public boolean equals(Object that) {
8175
    public boolean equals(Object that) {
7592
      if (that == null)
8176
      if (that == null)
7593
        return false;
8177
        return false;
7594
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
8178
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
Line 7617... Line 8201...
7617
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
8201
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
7618
 
8202
 
7619
      return 0;
8203
      return 0;
7620
    }
8204
    }
7621
 
8205
 
-
 
8206
    public _Fields fieldForId(int fieldId) {
-
 
8207
      return _Fields.findByThriftId(fieldId);
-
 
8208
    }
-
 
8209
 
7622
    public void read(TProtocol iprot) throws TException {
8210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7623
      TField field;
8211
      org.apache.thrift.protocol.TField field;
7624
      iprot.readStructBegin();
8212
      iprot.readStructBegin();
7625
      while (true)
8213
      while (true)
7626
      {
8214
      {
7627
        field = iprot.readFieldBegin();
8215
        field = iprot.readFieldBegin();
7628
        if (field.type == TType.STOP) { 
8216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7629
          break;
8217
          break;
7630
        }
8218
        }
7631
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7632
        if (fieldId == null) {
-
 
7633
          TProtocolUtil.skip(iprot, field.type);
-
 
7634
        } else {
-
 
7635
          switch (fieldId) {
8219
        switch (field.id) {
7636
          }
8220
          default:
7637
          iprot.readFieldEnd();
8221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7638
        }
8222
        }
-
 
8223
        iprot.readFieldEnd();
7639
      }
8224
      }
7640
      iprot.readStructEnd();
8225
      iprot.readStructEnd();
7641
      validate();
8226
      validate();
7642
    }
8227
    }
7643
 
8228
 
7644
    public void write(TProtocol oprot) throws TException {
8229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7645
      validate();
8230
      validate();
7646
 
8231
 
7647
      oprot.writeStructBegin(STRUCT_DESC);
8232
      oprot.writeStructBegin(STRUCT_DESC);
7648
      oprot.writeFieldStop();
8233
      oprot.writeFieldStop();
7649
      oprot.writeStructEnd();
8234
      oprot.writeStructEnd();
Line 7656... Line 8241...
7656
 
8241
 
7657
      sb.append(")");
8242
      sb.append(")");
7658
      return sb.toString();
8243
      return sb.toString();
7659
    }
8244
    }
7660
 
8245
 
7661
    public void validate() throws TException {
8246
    public void validate() throws org.apache.thrift.TException {
7662
      // check for required fields
8247
      // check for required fields
7663
    }
8248
    }
7664
 
8249
 
-
 
8250
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8251
      try {
-
 
8252
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8253
      } catch (org.apache.thrift.TException te) {
-
 
8254
        throw new java.io.IOException(te);
-
 
8255
      }
-
 
8256
    }
-
 
8257
 
-
 
8258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8259
      try {
-
 
8260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8261
      } catch (org.apache.thrift.TException te) {
-
 
8262
        throw new java.io.IOException(te);
-
 
8263
      }
-
 
8264
    }
-
 
8265
 
7665
  }
8266
  }
7666
 
8267
 
7667
  public static class getSuccessfulPaymentsAmountRange_result implements TBase<getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSuccessfulPaymentsAmountRange_result>   {
8268
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
7668
    private static final TStruct STRUCT_DESC = new TStruct("getSuccessfulPaymentsAmountRange_result");
8269
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
7669
 
8270
 
7670
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
8271
    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);
7671
 
8272
 
7672
    private List<Double> success;
8273
    private List<Double> success; // required
7673
 
8274
 
7674
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8275
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7675
    public enum _Fields implements TFieldIdEnum {
8276
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7676
      SUCCESS((short)0, "success");
8277
      SUCCESS((short)0, "success");
7677
 
8278
 
7678
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8279
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7680
 
8280
 
7681
      static {
8281
      static {
7682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8282
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7683
          byId.put((int)field._thriftId, field);
-
 
7684
          byName.put(field.getFieldName(), field);
8283
          byName.put(field.getFieldName(), field);
7685
        }
8284
        }
7686
      }
8285
      }
7687
 
8286
 
7688
      /**
8287
      /**
7689
       * Find the _Fields constant that matches fieldId, or null if its not found.
8288
       * Find the _Fields constant that matches fieldId, or null if its not found.
7690
       */
8289
       */
7691
      public static _Fields findByThriftId(int fieldId) {
8290
      public static _Fields findByThriftId(int fieldId) {
7692
        return byId.get(fieldId);
8291
        switch(fieldId) {
-
 
8292
          case 0: // SUCCESS
-
 
8293
            return SUCCESS;
-
 
8294
          default:
-
 
8295
            return null;
-
 
8296
        }
7693
      }
8297
      }
7694
 
8298
 
7695
      /**
8299
      /**
7696
       * Find the _Fields constant that matches fieldId, throwing an exception
8300
       * Find the _Fields constant that matches fieldId, throwing an exception
7697
       * if it is not found.
8301
       * if it is not found.
Line 7726... Line 8330...
7726
      }
8330
      }
7727
    }
8331
    }
7728
 
8332
 
7729
    // isset id assignments
8333
    // isset id assignments
7730
 
8334
 
7731
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8335
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7732
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7733
          new ListMetaData(TType.LIST, 
-
 
7734
              new FieldValueMetaData(TType.DOUBLE))));
-
 
7735
    }});
-
 
7736
 
-
 
7737
    static {
8336
    static {
-
 
8337
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8338
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8339
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
8340
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
-
 
8341
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7738
      FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
8342
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
7739
    }
8343
    }
7740
 
8344
 
7741
    public getSuccessfulPaymentsAmountRange_result() {
8345
    public getSuccessfulPaymentsAmountRange_result() {
7742
    }
8346
    }
7743
 
8347
 
Line 7763... Line 8367...
7763
 
8367
 
7764
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
8368
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
7765
      return new getSuccessfulPaymentsAmountRange_result(this);
8369
      return new getSuccessfulPaymentsAmountRange_result(this);
7766
    }
8370
    }
7767
 
8371
 
7768
    @Deprecated
8372
    @Override
7769
    public getSuccessfulPaymentsAmountRange_result clone() {
8373
    public void clear() {
7770
      return new getSuccessfulPaymentsAmountRange_result(this);
8374
      this.success = null;
7771
    }
8375
    }
7772
 
8376
 
7773
    public int getSuccessSize() {
8377
    public int getSuccessSize() {
7774
      return (this.success == null) ? 0 : this.success.size();
8378
      return (this.success == null) ? 0 : this.success.size();
7775
    }
8379
    }
Line 7787... Line 8391...
7787
 
8391
 
7788
    public List<Double> getSuccess() {
8392
    public List<Double> getSuccess() {
7789
      return this.success;
8393
      return this.success;
7790
    }
8394
    }
7791
 
8395
 
7792
    public getSuccessfulPaymentsAmountRange_result setSuccess(List<Double> success) {
8396
    public void setSuccess(List<Double> success) {
7793
      this.success = success;
8397
      this.success = success;
7794
      return this;
-
 
7795
    }
8398
    }
7796
 
8399
 
7797
    public void unsetSuccess() {
8400
    public void unsetSuccess() {
7798
      this.success = null;
8401
      this.success = null;
7799
    }
8402
    }
7800
 
8403
 
7801
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
8404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7802
    public boolean isSetSuccess() {
8405
    public boolean isSetSuccess() {
7803
      return this.success != null;
8406
      return this.success != null;
7804
    }
8407
    }
7805
 
8408
 
7806
    public void setSuccessIsSet(boolean value) {
8409
    public void setSuccessIsSet(boolean value) {
Line 7820... Line 8423...
7820
        break;
8423
        break;
7821
 
8424
 
7822
      }
8425
      }
7823
    }
8426
    }
7824
 
8427
 
7825
    public void setFieldValue(int fieldID, Object value) {
-
 
7826
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7827
    }
-
 
7828
 
-
 
7829
    public Object getFieldValue(_Fields field) {
8428
    public Object getFieldValue(_Fields field) {
7830
      switch (field) {
8429
      switch (field) {
7831
      case SUCCESS:
8430
      case SUCCESS:
7832
        return getSuccess();
8431
        return getSuccess();
7833
 
8432
 
7834
      }
8433
      }
7835
      throw new IllegalStateException();
8434
      throw new IllegalStateException();
7836
    }
8435
    }
7837
 
8436
 
7838
    public Object getFieldValue(int fieldId) {
-
 
7839
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7840
    }
-
 
7841
 
-
 
7842
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7843
    public boolean isSet(_Fields field) {
8438
    public boolean isSet(_Fields field) {
-
 
8439
      if (field == null) {
-
 
8440
        throw new IllegalArgumentException();
-
 
8441
      }
-
 
8442
 
7844
      switch (field) {
8443
      switch (field) {
7845
      case SUCCESS:
8444
      case SUCCESS:
7846
        return isSetSuccess();
8445
        return isSetSuccess();
7847
      }
8446
      }
7848
      throw new IllegalStateException();
8447
      throw new IllegalStateException();
7849
    }
8448
    }
7850
 
8449
 
7851
    public boolean isSet(int fieldID) {
-
 
7852
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7853
    }
-
 
7854
 
-
 
7855
    @Override
8450
    @Override
7856
    public boolean equals(Object that) {
8451
    public boolean equals(Object that) {
7857
      if (that == null)
8452
      if (that == null)
7858
        return false;
8453
        return false;
7859
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
8454
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
Line 7888... Line 8483...
7888
      }
8483
      }
7889
 
8484
 
7890
      int lastComparison = 0;
8485
      int lastComparison = 0;
7891
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
8486
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
7892
 
8487
 
7893
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
8488
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7894
      if (lastComparison != 0) {
8489
      if (lastComparison != 0) {
7895
        return lastComparison;
8490
        return lastComparison;
7896
      }
8491
      }
-
 
8492
      if (isSetSuccess()) {
7897
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
8493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7898
      if (lastComparison != 0) {
8494
        if (lastComparison != 0) {
7899
        return lastComparison;
8495
          return lastComparison;
-
 
8496
        }
7900
      }
8497
      }
7901
      return 0;
8498
      return 0;
7902
    }
8499
    }
7903
 
8500
 
-
 
8501
    public _Fields fieldForId(int fieldId) {
-
 
8502
      return _Fields.findByThriftId(fieldId);
-
 
8503
    }
-
 
8504
 
7904
    public void read(TProtocol iprot) throws TException {
8505
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7905
      TField field;
8506
      org.apache.thrift.protocol.TField field;
7906
      iprot.readStructBegin();
8507
      iprot.readStructBegin();
7907
      while (true)
8508
      while (true)
7908
      {
8509
      {
7909
        field = iprot.readFieldBegin();
8510
        field = iprot.readFieldBegin();
7910
        if (field.type == TType.STOP) { 
8511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7911
          break;
8512
          break;
7912
        }
8513
        }
7913
        _Fields fieldId = _Fields.findByThriftId(field.id);
8514
        switch (field.id) {
7914
        if (fieldId == null) {
8515
          case 0: // SUCCESS
7915
          TProtocolUtil.skip(iprot, field.type);
8516
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7916
        } else {
8517
              {
7917
          switch (fieldId) {
8518
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7918
            case SUCCESS:
8519
                this.success = new ArrayList<Double>(_list28.size);
7919
              if (field.type == TType.LIST) {
8520
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7920
                {
8521
                {
7921
                  TList _list28 = iprot.readListBegin();
-
 
7922
                  this.success = new ArrayList<Double>(_list28.size);
-
 
7923
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
7924
                  {
-
 
7925
                    double _elem30;
8522
                  double _elem30; // required
7926
                    _elem30 = iprot.readDouble();
8523
                  _elem30 = iprot.readDouble();
7927
                    this.success.add(_elem30);
8524
                  this.success.add(_elem30);
7928
                  }
-
 
7929
                  iprot.readListEnd();
-
 
7930
                }
8525
                }
7931
              } else { 
8526
                iprot.readListEnd();
7932
                TProtocolUtil.skip(iprot, field.type);
-
 
7933
              }
8527
              }
7934
              break;
8528
            } else { 
-
 
8529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7935
          }
8530
            }
7936
          iprot.readFieldEnd();
8531
            break;
-
 
8532
          default:
-
 
8533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7937
        }
8534
        }
-
 
8535
        iprot.readFieldEnd();
7938
      }
8536
      }
7939
      iprot.readStructEnd();
8537
      iprot.readStructEnd();
7940
      validate();
8538
      validate();
7941
    }
8539
    }
7942
 
8540
 
7943
    public void write(TProtocol oprot) throws TException {
8541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7944
      oprot.writeStructBegin(STRUCT_DESC);
8542
      oprot.writeStructBegin(STRUCT_DESC);
7945
 
8543
 
7946
      if (this.isSetSuccess()) {
8544
      if (this.isSetSuccess()) {
7947
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8545
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7948
        {
8546
        {
7949
          oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
8547
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
7950
          for (double _iter31 : this.success)
8548
          for (double _iter31 : this.success)
7951
          {
8549
          {
7952
            oprot.writeDouble(_iter31);
8550
            oprot.writeDouble(_iter31);
7953
          }
8551
          }
7954
          oprot.writeListEnd();
8552
          oprot.writeListEnd();
Line 7973... Line 8571...
7973
      first = false;
8571
      first = false;
7974
      sb.append(")");
8572
      sb.append(")");
7975
      return sb.toString();
8573
      return sb.toString();
7976
    }
8574
    }
7977
 
8575
 
7978
    public void validate() throws TException {
8576
    public void validate() throws org.apache.thrift.TException {
7979
      // check for required fields
8577
      // check for required fields
7980
    }
8578
    }
7981
 
8579
 
-
 
8580
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8581
      try {
-
 
8582
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8583
      } catch (org.apache.thrift.TException te) {
-
 
8584
        throw new java.io.IOException(te);
-
 
8585
      }
-
 
8586
    }
-
 
8587
 
-
 
8588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8589
      try {
-
 
8590
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8591
      } catch (org.apache.thrift.TException te) {
-
 
8592
        throw new java.io.IOException(te);
-
 
8593
      }
-
 
8594
    }
-
 
8595
 
7982
  }
8596
  }
7983
 
8597
 
7984
  public static class captureEbsPayment_args implements TBase<captureEbsPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureEbsPayment_args>   {
8598
  public static class captureEbsPayment_args implements org.apache.thrift.TBase<captureEbsPayment_args, captureEbsPayment_args._Fields>, java.io.Serializable, Cloneable   {
7985
    private static final TStruct STRUCT_DESC = new TStruct("captureEbsPayment_args");
8599
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureEbsPayment_args");
7986
 
8600
 
7987
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
8601
    private static final org.apache.thrift.protocol.TField MERCHANT_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantPaymentId", org.apache.thrift.protocol.TType.I64, (short)1);
7988
 
8602
 
7989
    private long merchantPaymentId;
8603
    private long merchantPaymentId; // required
7990
 
8604
 
7991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8605
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7992
    public enum _Fields implements TFieldIdEnum {
8606
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7993
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
8607
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
7994
 
8608
 
7995
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8609
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7997
 
8610
 
7998
      static {
8611
      static {
7999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8612
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8000
          byId.put((int)field._thriftId, field);
-
 
8001
          byName.put(field.getFieldName(), field);
8613
          byName.put(field.getFieldName(), field);
8002
        }
8614
        }
8003
      }
8615
      }
8004
 
8616
 
8005
      /**
8617
      /**
8006
       * Find the _Fields constant that matches fieldId, or null if its not found.
8618
       * Find the _Fields constant that matches fieldId, or null if its not found.
8007
       */
8619
       */
8008
      public static _Fields findByThriftId(int fieldId) {
8620
      public static _Fields findByThriftId(int fieldId) {
8009
        return byId.get(fieldId);
8621
        switch(fieldId) {
-
 
8622
          case 1: // MERCHANT_PAYMENT_ID
-
 
8623
            return MERCHANT_PAYMENT_ID;
-
 
8624
          default:
-
 
8625
            return null;
-
 
8626
        }
8010
      }
8627
      }
8011
 
8628
 
8012
      /**
8629
      /**
8013
       * Find the _Fields constant that matches fieldId, throwing an exception
8630
       * Find the _Fields constant that matches fieldId, throwing an exception
8014
       * if it is not found.
8631
       * if it is not found.
Line 8045... Line 8662...
8045
 
8662
 
8046
    // isset id assignments
8663
    // isset id assignments
8047
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
8664
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
8048
    private BitSet __isset_bit_vector = new BitSet(1);
8665
    private BitSet __isset_bit_vector = new BitSet(1);
8049
 
8666
 
8050
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8051
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
-
 
8052
          new FieldValueMetaData(TType.I64)));
-
 
8053
    }});
-
 
8054
 
-
 
8055
    static {
8668
    static {
-
 
8669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8670
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8056
      FieldMetaData.addStructMetaDataMap(captureEbsPayment_args.class, metaDataMap);
8673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureEbsPayment_args.class, metaDataMap);
8057
    }
8674
    }
8058
 
8675
 
8059
    public captureEbsPayment_args() {
8676
    public captureEbsPayment_args() {
8060
    }
8677
    }
8061
 
8678
 
Line 8078... Line 8695...
8078
 
8695
 
8079
    public captureEbsPayment_args deepCopy() {
8696
    public captureEbsPayment_args deepCopy() {
8080
      return new captureEbsPayment_args(this);
8697
      return new captureEbsPayment_args(this);
8081
    }
8698
    }
8082
 
8699
 
8083
    @Deprecated
8700
    @Override
8084
    public captureEbsPayment_args clone() {
8701
    public void clear() {
8085
      return new captureEbsPayment_args(this);
8702
      setMerchantPaymentIdIsSet(false);
-
 
8703
      this.merchantPaymentId = 0;
8086
    }
8704
    }
8087
 
8705
 
8088
    public long getMerchantPaymentId() {
8706
    public long getMerchantPaymentId() {
8089
      return this.merchantPaymentId;
8707
      return this.merchantPaymentId;
8090
    }
8708
    }
8091
 
8709
 
8092
    public captureEbsPayment_args setMerchantPaymentId(long merchantPaymentId) {
8710
    public void setMerchantPaymentId(long merchantPaymentId) {
8093
      this.merchantPaymentId = merchantPaymentId;
8711
      this.merchantPaymentId = merchantPaymentId;
8094
      setMerchantPaymentIdIsSet(true);
8712
      setMerchantPaymentIdIsSet(true);
8095
      return this;
-
 
8096
    }
8713
    }
8097
 
8714
 
8098
    public void unsetMerchantPaymentId() {
8715
    public void unsetMerchantPaymentId() {
8099
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
8716
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
8100
    }
8717
    }
8101
 
8718
 
8102
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
8719
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
8103
    public boolean isSetMerchantPaymentId() {
8720
    public boolean isSetMerchantPaymentId() {
8104
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
8721
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
8105
    }
8722
    }
8106
 
8723
 
8107
    public void setMerchantPaymentIdIsSet(boolean value) {
8724
    public void setMerchantPaymentIdIsSet(boolean value) {
Line 8119... Line 8736...
8119
        break;
8736
        break;
8120
 
8737
 
8121
      }
8738
      }
8122
    }
8739
    }
8123
 
8740
 
8124
    public void setFieldValue(int fieldID, Object value) {
-
 
8125
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8126
    }
-
 
8127
 
-
 
8128
    public Object getFieldValue(_Fields field) {
8741
    public Object getFieldValue(_Fields field) {
8129
      switch (field) {
8742
      switch (field) {
8130
      case MERCHANT_PAYMENT_ID:
8743
      case MERCHANT_PAYMENT_ID:
8131
        return new Long(getMerchantPaymentId());
8744
        return Long.valueOf(getMerchantPaymentId());
8132
 
8745
 
8133
      }
8746
      }
8134
      throw new IllegalStateException();
8747
      throw new IllegalStateException();
8135
    }
8748
    }
8136
 
8749
 
8137
    public Object getFieldValue(int fieldId) {
-
 
8138
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8139
    }
-
 
8140
 
-
 
8141
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8142
    public boolean isSet(_Fields field) {
8751
    public boolean isSet(_Fields field) {
-
 
8752
      if (field == null) {
-
 
8753
        throw new IllegalArgumentException();
-
 
8754
      }
-
 
8755
 
8143
      switch (field) {
8756
      switch (field) {
8144
      case MERCHANT_PAYMENT_ID:
8757
      case MERCHANT_PAYMENT_ID:
8145
        return isSetMerchantPaymentId();
8758
        return isSetMerchantPaymentId();
8146
      }
8759
      }
8147
      throw new IllegalStateException();
8760
      throw new IllegalStateException();
8148
    }
8761
    }
8149
 
8762
 
8150
    public boolean isSet(int fieldID) {
-
 
8151
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8152
    }
-
 
8153
 
-
 
8154
    @Override
8763
    @Override
8155
    public boolean equals(Object that) {
8764
    public boolean equals(Object that) {
8156
      if (that == null)
8765
      if (that == null)
8157
        return false;
8766
        return false;
8158
      if (that instanceof captureEbsPayment_args)
8767
      if (that instanceof captureEbsPayment_args)
Line 8187... Line 8796...
8187
      }
8796
      }
8188
 
8797
 
8189
      int lastComparison = 0;
8798
      int lastComparison = 0;
8190
      captureEbsPayment_args typedOther = (captureEbsPayment_args)other;
8799
      captureEbsPayment_args typedOther = (captureEbsPayment_args)other;
8191
 
8800
 
8192
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
8801
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
8193
      if (lastComparison != 0) {
8802
      if (lastComparison != 0) {
8194
        return lastComparison;
8803
        return lastComparison;
8195
      }
8804
      }
-
 
8805
      if (isSetMerchantPaymentId()) {
8196
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
8806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
8197
      if (lastComparison != 0) {
8807
        if (lastComparison != 0) {
8198
        return lastComparison;
8808
          return lastComparison;
-
 
8809
        }
8199
      }
8810
      }
8200
      return 0;
8811
      return 0;
8201
    }
8812
    }
8202
 
8813
 
-
 
8814
    public _Fields fieldForId(int fieldId) {
-
 
8815
      return _Fields.findByThriftId(fieldId);
-
 
8816
    }
-
 
8817
 
8203
    public void read(TProtocol iprot) throws TException {
8818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8204
      TField field;
8819
      org.apache.thrift.protocol.TField field;
8205
      iprot.readStructBegin();
8820
      iprot.readStructBegin();
8206
      while (true)
8821
      while (true)
8207
      {
8822
      {
8208
        field = iprot.readFieldBegin();
8823
        field = iprot.readFieldBegin();
8209
        if (field.type == TType.STOP) { 
8824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8210
          break;
8825
          break;
8211
        }
8826
        }
8212
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8213
        if (fieldId == null) {
-
 
8214
          TProtocolUtil.skip(iprot, field.type);
-
 
8215
        } else {
-
 
8216
          switch (fieldId) {
8827
        switch (field.id) {
8217
            case MERCHANT_PAYMENT_ID:
8828
          case 1: // MERCHANT_PAYMENT_ID
8218
              if (field.type == TType.I64) {
8829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8219
                this.merchantPaymentId = iprot.readI64();
8830
              this.merchantPaymentId = iprot.readI64();
8220
                setMerchantPaymentIdIsSet(true);
8831
              setMerchantPaymentIdIsSet(true);
8221
              } else { 
8832
            } else { 
8222
                TProtocolUtil.skip(iprot, field.type);
8833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8223
              }
8834
            }
8224
              break;
8835
            break;
8225
          }
8836
          default:
8226
          iprot.readFieldEnd();
8837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8227
        }
8838
        }
-
 
8839
        iprot.readFieldEnd();
8228
      }
8840
      }
8229
      iprot.readStructEnd();
8841
      iprot.readStructEnd();
8230
      validate();
8842
      validate();
8231
    }
8843
    }
8232
 
8844
 
8233
    public void write(TProtocol oprot) throws TException {
8845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8234
      validate();
8846
      validate();
8235
 
8847
 
8236
      oprot.writeStructBegin(STRUCT_DESC);
8848
      oprot.writeStructBegin(STRUCT_DESC);
8237
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
8849
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
8238
      oprot.writeI64(this.merchantPaymentId);
8850
      oprot.writeI64(this.merchantPaymentId);
Line 8251... Line 8863...
8251
      first = false;
8863
      first = false;
8252
      sb.append(")");
8864
      sb.append(")");
8253
      return sb.toString();
8865
      return sb.toString();
8254
    }
8866
    }
8255
 
8867
 
8256
    public void validate() throws TException {
8868
    public void validate() throws org.apache.thrift.TException {
8257
      // check for required fields
8869
      // check for required fields
8258
    }
8870
    }
8259
 
8871
 
-
 
8872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8873
      try {
-
 
8874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8875
      } catch (org.apache.thrift.TException te) {
-
 
8876
        throw new java.io.IOException(te);
-
 
8877
      }
-
 
8878
    }
-
 
8879
 
-
 
8880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8881
      try {
-
 
8882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8883
      } catch (org.apache.thrift.TException te) {
-
 
8884
        throw new java.io.IOException(te);
-
 
8885
      }
-
 
8886
    }
-
 
8887
 
8260
  }
8888
  }
8261
 
8889
 
8262
  public static class captureEbsPayment_result implements TBase<captureEbsPayment_result._Fields>, java.io.Serializable, Cloneable   {
8890
  public static class captureEbsPayment_result implements org.apache.thrift.TBase<captureEbsPayment_result, captureEbsPayment_result._Fields>, java.io.Serializable, Cloneable   {
8263
    private static final TStruct STRUCT_DESC = new TStruct("captureEbsPayment_result");
8891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureEbsPayment_result");
8264
 
8892
 
8265
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
8893
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
8266
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
8894
    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);
8267
 
8895
 
8268
    private Map<String,String> success;
8896
    private Map<String,String> success; // required
8269
    private PaymentException pe;
8897
    private PaymentException pe; // required
8270
 
8898
 
8271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8272
    public enum _Fields implements TFieldIdEnum {
8900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8273
      SUCCESS((short)0, "success"),
8901
      SUCCESS((short)0, "success"),
8274
      PE((short)1, "pe");
8902
      PE((short)1, "pe");
8275
 
8903
 
8276
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8277
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8278
 
8905
 
8279
      static {
8906
      static {
8280
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8281
          byId.put((int)field._thriftId, field);
-
 
8282
          byName.put(field.getFieldName(), field);
8908
          byName.put(field.getFieldName(), field);
8283
        }
8909
        }
8284
      }
8910
      }
8285
 
8911
 
8286
      /**
8912
      /**
8287
       * Find the _Fields constant that matches fieldId, or null if its not found.
8913
       * Find the _Fields constant that matches fieldId, or null if its not found.
8288
       */
8914
       */
8289
      public static _Fields findByThriftId(int fieldId) {
8915
      public static _Fields findByThriftId(int fieldId) {
8290
        return byId.get(fieldId);
8916
        switch(fieldId) {
-
 
8917
          case 0: // SUCCESS
-
 
8918
            return SUCCESS;
-
 
8919
          case 1: // PE
-
 
8920
            return PE;
-
 
8921
          default:
-
 
8922
            return null;
-
 
8923
        }
8291
      }
8924
      }
8292
 
8925
 
8293
      /**
8926
      /**
8294
       * Find the _Fields constant that matches fieldId, throwing an exception
8927
       * Find the _Fields constant that matches fieldId, throwing an exception
8295
       * if it is not found.
8928
       * if it is not found.
Line 8324... Line 8957...
8324
      }
8957
      }
8325
    }
8958
    }
8326
 
8959
 
8327
    // isset id assignments
8960
    // isset id assignments
8328
 
8961
 
8329
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8330
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8331
          new MapMetaData(TType.MAP, 
-
 
8332
              new FieldValueMetaData(TType.STRING), 
-
 
8333
              new FieldValueMetaData(TType.STRING))));
-
 
8334
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
8335
          new FieldValueMetaData(TType.STRUCT)));
-
 
8336
    }});
-
 
8337
 
-
 
8338
    static {
8963
    static {
-
 
8964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8965
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8966
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
8967
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
8968
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
8969
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
8971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8339
      FieldMetaData.addStructMetaDataMap(captureEbsPayment_result.class, metaDataMap);
8972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureEbsPayment_result.class, metaDataMap);
8340
    }
8973
    }
8341
 
8974
 
8342
    public captureEbsPayment_result() {
8975
    public captureEbsPayment_result() {
8343
    }
8976
    }
8344
 
8977
 
Line 8377... Line 9010...
8377
 
9010
 
8378
    public captureEbsPayment_result deepCopy() {
9011
    public captureEbsPayment_result deepCopy() {
8379
      return new captureEbsPayment_result(this);
9012
      return new captureEbsPayment_result(this);
8380
    }
9013
    }
8381
 
9014
 
8382
    @Deprecated
9015
    @Override
8383
    public captureEbsPayment_result clone() {
9016
    public void clear() {
8384
      return new captureEbsPayment_result(this);
9017
      this.success = null;
-
 
9018
      this.pe = null;
8385
    }
9019
    }
8386
 
9020
 
8387
    public int getSuccessSize() {
9021
    public int getSuccessSize() {
8388
      return (this.success == null) ? 0 : this.success.size();
9022
      return (this.success == null) ? 0 : this.success.size();
8389
    }
9023
    }
Line 8397... Line 9031...
8397
 
9031
 
8398
    public Map<String,String> getSuccess() {
9032
    public Map<String,String> getSuccess() {
8399
      return this.success;
9033
      return this.success;
8400
    }
9034
    }
8401
 
9035
 
8402
    public captureEbsPayment_result setSuccess(Map<String,String> success) {
9036
    public void setSuccess(Map<String,String> success) {
8403
      this.success = success;
9037
      this.success = success;
8404
      return this;
-
 
8405
    }
9038
    }
8406
 
9039
 
8407
    public void unsetSuccess() {
9040
    public void unsetSuccess() {
8408
      this.success = null;
9041
      this.success = null;
8409
    }
9042
    }
8410
 
9043
 
8411
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9044
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8412
    public boolean isSetSuccess() {
9045
    public boolean isSetSuccess() {
8413
      return this.success != null;
9046
      return this.success != null;
8414
    }
9047
    }
8415
 
9048
 
8416
    public void setSuccessIsSet(boolean value) {
9049
    public void setSuccessIsSet(boolean value) {
Line 8421... Line 9054...
8421
 
9054
 
8422
    public PaymentException getPe() {
9055
    public PaymentException getPe() {
8423
      return this.pe;
9056
      return this.pe;
8424
    }
9057
    }
8425
 
9058
 
8426
    public captureEbsPayment_result setPe(PaymentException pe) {
9059
    public void setPe(PaymentException pe) {
8427
      this.pe = pe;
9060
      this.pe = pe;
8428
      return this;
-
 
8429
    }
9061
    }
8430
 
9062
 
8431
    public void unsetPe() {
9063
    public void unsetPe() {
8432
      this.pe = null;
9064
      this.pe = null;
8433
    }
9065
    }
8434
 
9066
 
8435
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
9067
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
8436
    public boolean isSetPe() {
9068
    public boolean isSetPe() {
8437
      return this.pe != null;
9069
      return this.pe != null;
8438
    }
9070
    }
8439
 
9071
 
8440
    public void setPeIsSet(boolean value) {
9072
    public void setPeIsSet(boolean value) {
Line 8462... Line 9094...
8462
        break;
9094
        break;
8463
 
9095
 
8464
      }
9096
      }
8465
    }
9097
    }
8466
 
9098
 
8467
    public void setFieldValue(int fieldID, Object value) {
-
 
8468
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8469
    }
-
 
8470
 
-
 
8471
    public Object getFieldValue(_Fields field) {
9099
    public Object getFieldValue(_Fields field) {
8472
      switch (field) {
9100
      switch (field) {
8473
      case SUCCESS:
9101
      case SUCCESS:
8474
        return getSuccess();
9102
        return getSuccess();
8475
 
9103
 
Line 8478... Line 9106...
8478
 
9106
 
8479
      }
9107
      }
8480
      throw new IllegalStateException();
9108
      throw new IllegalStateException();
8481
    }
9109
    }
8482
 
9110
 
8483
    public Object getFieldValue(int fieldId) {
-
 
8484
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8485
    }
-
 
8486
 
-
 
8487
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9111
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8488
    public boolean isSet(_Fields field) {
9112
    public boolean isSet(_Fields field) {
-
 
9113
      if (field == null) {
-
 
9114
        throw new IllegalArgumentException();
-
 
9115
      }
-
 
9116
 
8489
      switch (field) {
9117
      switch (field) {
8490
      case SUCCESS:
9118
      case SUCCESS:
8491
        return isSetSuccess();
9119
        return isSetSuccess();
8492
      case PE:
9120
      case PE:
8493
        return isSetPe();
9121
        return isSetPe();
8494
      }
9122
      }
8495
      throw new IllegalStateException();
9123
      throw new IllegalStateException();
8496
    }
9124
    }
8497
 
9125
 
8498
    public boolean isSet(int fieldID) {
-
 
8499
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8500
    }
-
 
8501
 
-
 
8502
    @Override
9126
    @Override
8503
    public boolean equals(Object that) {
9127
    public boolean equals(Object that) {
8504
      if (that == null)
9128
      if (that == null)
8505
        return false;
9129
        return false;
8506
      if (that instanceof captureEbsPayment_result)
9130
      if (that instanceof captureEbsPayment_result)
Line 8536... Line 9160...
8536
    @Override
9160
    @Override
8537
    public int hashCode() {
9161
    public int hashCode() {
8538
      return 0;
9162
      return 0;
8539
    }
9163
    }
8540
 
9164
 
8541
    public void read(TProtocol iprot) throws TException {
9165
    public int compareTo(captureEbsPayment_result other) {
-
 
9166
      if (!getClass().equals(other.getClass())) {
-
 
9167
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9168
      }
-
 
9169
 
-
 
9170
      int lastComparison = 0;
-
 
9171
      captureEbsPayment_result typedOther = (captureEbsPayment_result)other;
-
 
9172
 
-
 
9173
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9174
      if (lastComparison != 0) {
-
 
9175
        return lastComparison;
-
 
9176
      }
-
 
9177
      if (isSetSuccess()) {
-
 
9178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9179
        if (lastComparison != 0) {
-
 
9180
          return lastComparison;
-
 
9181
        }
-
 
9182
      }
-
 
9183
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
9184
      if (lastComparison != 0) {
-
 
9185
        return lastComparison;
-
 
9186
      }
-
 
9187
      if (isSetPe()) {
-
 
9188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
9189
        if (lastComparison != 0) {
-
 
9190
          return lastComparison;
-
 
9191
        }
-
 
9192
      }
8542
      TField field;
9193
      return 0;
-
 
9194
    }
-
 
9195
 
-
 
9196
    public _Fields fieldForId(int fieldId) {
-
 
9197
      return _Fields.findByThriftId(fieldId);
-
 
9198
    }
-
 
9199
 
-
 
9200
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9201
      org.apache.thrift.protocol.TField field;
8543
      iprot.readStructBegin();
9202
      iprot.readStructBegin();
8544
      while (true)
9203
      while (true)
8545
      {
9204
      {
8546
        field = iprot.readFieldBegin();
9205
        field = iprot.readFieldBegin();
8547
        if (field.type == TType.STOP) { 
9206
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8548
          break;
9207
          break;
8549
        }
9208
        }
8550
        _Fields fieldId = _Fields.findByThriftId(field.id);
9209
        switch (field.id) {
8551
        if (fieldId == null) {
9210
          case 0: // SUCCESS
8552
          TProtocolUtil.skip(iprot, field.type);
9211
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8553
        } else {
9212
              {
8554
          switch (fieldId) {
9213
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
8555
            case SUCCESS:
9214
                this.success = new HashMap<String,String>(2*_map32.size);
8556
              if (field.type == TType.MAP) {
9215
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
8557
                {
9216
                {
8558
                  TMap _map32 = iprot.readMapBegin();
-
 
8559
                  this.success = new HashMap<String,String>(2*_map32.size);
-
 
8560
                  for (int _i33 = 0; _i33 < _map32.size; ++_i33)
-
 
8561
                  {
-
 
8562
                    String _key34;
9217
                  String _key34; // required
8563
                    String _val35;
9218
                  String _val35; // required
8564
                    _key34 = iprot.readString();
9219
                  _key34 = iprot.readString();
8565
                    _val35 = iprot.readString();
9220
                  _val35 = iprot.readString();
8566
                    this.success.put(_key34, _val35);
9221
                  this.success.put(_key34, _val35);
8567
                  }
-
 
8568
                  iprot.readMapEnd();
-
 
8569
                }
9222
                }
8570
              } else { 
9223
                iprot.readMapEnd();
8571
                TProtocolUtil.skip(iprot, field.type);
-
 
8572
              }
9224
              }
-
 
9225
            } else { 
-
 
9226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9227
            }
8573
              break;
9228
            break;
8574
            case PE:
9229
          case 1: // PE
8575
              if (field.type == TType.STRUCT) {
9230
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8576
                this.pe = new PaymentException();
9231
              this.pe = new PaymentException();
8577
                this.pe.read(iprot);
9232
              this.pe.read(iprot);
8578
              } else { 
9233
            } else { 
8579
                TProtocolUtil.skip(iprot, field.type);
9234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8580
              }
9235
            }
8581
              break;
9236
            break;
8582
          }
9237
          default:
8583
          iprot.readFieldEnd();
9238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8584
        }
9239
        }
-
 
9240
        iprot.readFieldEnd();
8585
      }
9241
      }
8586
      iprot.readStructEnd();
9242
      iprot.readStructEnd();
8587
      validate();
9243
      validate();
8588
    }
9244
    }
8589
 
9245
 
8590
    public void write(TProtocol oprot) throws TException {
9246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8591
      oprot.writeStructBegin(STRUCT_DESC);
9247
      oprot.writeStructBegin(STRUCT_DESC);
8592
 
9248
 
8593
      if (this.isSetSuccess()) {
9249
      if (this.isSetSuccess()) {
8594
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9250
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8595
        {
9251
        {
8596
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
9252
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
8597
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
9253
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
8598
          {
9254
          {
8599
            oprot.writeString(_iter36.getKey());
9255
            oprot.writeString(_iter36.getKey());
8600
            oprot.writeString(_iter36.getValue());
9256
            oprot.writeString(_iter36.getValue());
8601
          }
9257
          }
Line 8633... Line 9289...
8633
      first = false;
9289
      first = false;
8634
      sb.append(")");
9290
      sb.append(")");
8635
      return sb.toString();
9291
      return sb.toString();
8636
    }
9292
    }
8637
 
9293
 
8638
    public void validate() throws TException {
9294
    public void validate() throws org.apache.thrift.TException {
8639
      // check for required fields
9295
      // check for required fields
8640
    }
9296
    }
8641
 
9297
 
-
 
9298
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9299
      try {
-
 
9300
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9301
      } catch (org.apache.thrift.TException te) {
-
 
9302
        throw new java.io.IOException(te);
-
 
9303
      }
-
 
9304
    }
-
 
9305
 
-
 
9306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9307
      try {
-
 
9308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9309
      } catch (org.apache.thrift.TException te) {
-
 
9310
        throw new java.io.IOException(te);
-
 
9311
      }
-
 
9312
    }
-
 
9313
 
8642
  }
9314
  }
8643
 
9315
 
8644
  public static class captureHdfcPayment_args implements TBase<captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureHdfcPayment_args>   {
9316
  public static class captureHdfcPayment_args implements org.apache.thrift.TBase<captureHdfcPayment_args, captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
8645
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_args");
9317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureHdfcPayment_args");
8646
 
9318
 
8647
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
9319
    private static final org.apache.thrift.protocol.TField MERCHANT_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantPaymentId", org.apache.thrift.protocol.TType.I64, (short)1);
8648
 
9320
 
8649
    private long merchantPaymentId;
9321
    private long merchantPaymentId; // required
8650
 
9322
 
8651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8652
    public enum _Fields implements TFieldIdEnum {
9324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8653
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
9325
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
8654
 
9326
 
8655
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8656
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8657
 
9328
 
8658
      static {
9329
      static {
8659
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8660
          byId.put((int)field._thriftId, field);
-
 
8661
          byName.put(field.getFieldName(), field);
9331
          byName.put(field.getFieldName(), field);
8662
        }
9332
        }
8663
      }
9333
      }
8664
 
9334
 
8665
      /**
9335
      /**
8666
       * Find the _Fields constant that matches fieldId, or null if its not found.
9336
       * Find the _Fields constant that matches fieldId, or null if its not found.
8667
       */
9337
       */
8668
      public static _Fields findByThriftId(int fieldId) {
9338
      public static _Fields findByThriftId(int fieldId) {
8669
        return byId.get(fieldId);
9339
        switch(fieldId) {
-
 
9340
          case 1: // MERCHANT_PAYMENT_ID
-
 
9341
            return MERCHANT_PAYMENT_ID;
-
 
9342
          default:
-
 
9343
            return null;
-
 
9344
        }
8670
      }
9345
      }
8671
 
9346
 
8672
      /**
9347
      /**
8673
       * Find the _Fields constant that matches fieldId, throwing an exception
9348
       * Find the _Fields constant that matches fieldId, throwing an exception
8674
       * if it is not found.
9349
       * if it is not found.
Line 8705... Line 9380...
8705
 
9380
 
8706
    // isset id assignments
9381
    // isset id assignments
8707
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
9382
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
8708
    private BitSet __isset_bit_vector = new BitSet(1);
9383
    private BitSet __isset_bit_vector = new BitSet(1);
8709
 
9384
 
8710
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8711
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
-
 
8712
          new FieldValueMetaData(TType.I64)));
-
 
8713
    }});
-
 
8714
 
-
 
8715
    static {
9386
    static {
-
 
9387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9388
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8716
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
9391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
8717
    }
9392
    }
8718
 
9393
 
8719
    public captureHdfcPayment_args() {
9394
    public captureHdfcPayment_args() {
8720
    }
9395
    }
8721
 
9396
 
Line 8738... Line 9413...
8738
 
9413
 
8739
    public captureHdfcPayment_args deepCopy() {
9414
    public captureHdfcPayment_args deepCopy() {
8740
      return new captureHdfcPayment_args(this);
9415
      return new captureHdfcPayment_args(this);
8741
    }
9416
    }
8742
 
9417
 
8743
    @Deprecated
9418
    @Override
8744
    public captureHdfcPayment_args clone() {
9419
    public void clear() {
8745
      return new captureHdfcPayment_args(this);
9420
      setMerchantPaymentIdIsSet(false);
-
 
9421
      this.merchantPaymentId = 0;
8746
    }
9422
    }
8747
 
9423
 
8748
    public long getMerchantPaymentId() {
9424
    public long getMerchantPaymentId() {
8749
      return this.merchantPaymentId;
9425
      return this.merchantPaymentId;
8750
    }
9426
    }
8751
 
9427
 
8752
    public captureHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
9428
    public void setMerchantPaymentId(long merchantPaymentId) {
8753
      this.merchantPaymentId = merchantPaymentId;
9429
      this.merchantPaymentId = merchantPaymentId;
8754
      setMerchantPaymentIdIsSet(true);
9430
      setMerchantPaymentIdIsSet(true);
8755
      return this;
-
 
8756
    }
9431
    }
8757
 
9432
 
8758
    public void unsetMerchantPaymentId() {
9433
    public void unsetMerchantPaymentId() {
8759
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
9434
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
8760
    }
9435
    }
8761
 
9436
 
8762
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
9437
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
8763
    public boolean isSetMerchantPaymentId() {
9438
    public boolean isSetMerchantPaymentId() {
8764
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
9439
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
8765
    }
9440
    }
8766
 
9441
 
8767
    public void setMerchantPaymentIdIsSet(boolean value) {
9442
    public void setMerchantPaymentIdIsSet(boolean value) {
Line 8779... Line 9454...
8779
        break;
9454
        break;
8780
 
9455
 
8781
      }
9456
      }
8782
    }
9457
    }
8783
 
9458
 
8784
    public void setFieldValue(int fieldID, Object value) {
-
 
8785
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8786
    }
-
 
8787
 
-
 
8788
    public Object getFieldValue(_Fields field) {
9459
    public Object getFieldValue(_Fields field) {
8789
      switch (field) {
9460
      switch (field) {
8790
      case MERCHANT_PAYMENT_ID:
9461
      case MERCHANT_PAYMENT_ID:
8791
        return new Long(getMerchantPaymentId());
9462
        return Long.valueOf(getMerchantPaymentId());
8792
 
9463
 
8793
      }
9464
      }
8794
      throw new IllegalStateException();
9465
      throw new IllegalStateException();
8795
    }
9466
    }
8796
 
9467
 
8797
    public Object getFieldValue(int fieldId) {
-
 
8798
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8799
    }
-
 
8800
 
-
 
8801
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8802
    public boolean isSet(_Fields field) {
9469
    public boolean isSet(_Fields field) {
-
 
9470
      if (field == null) {
-
 
9471
        throw new IllegalArgumentException();
-
 
9472
      }
-
 
9473
 
8803
      switch (field) {
9474
      switch (field) {
8804
      case MERCHANT_PAYMENT_ID:
9475
      case MERCHANT_PAYMENT_ID:
8805
        return isSetMerchantPaymentId();
9476
        return isSetMerchantPaymentId();
8806
      }
9477
      }
8807
      throw new IllegalStateException();
9478
      throw new IllegalStateException();
8808
    }
9479
    }
8809
 
9480
 
8810
    public boolean isSet(int fieldID) {
-
 
8811
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8812
    }
-
 
8813
 
-
 
8814
    @Override
9481
    @Override
8815
    public boolean equals(Object that) {
9482
    public boolean equals(Object that) {
8816
      if (that == null)
9483
      if (that == null)
8817
        return false;
9484
        return false;
8818
      if (that instanceof captureHdfcPayment_args)
9485
      if (that instanceof captureHdfcPayment_args)
Line 8847... Line 9514...
8847
      }
9514
      }
8848
 
9515
 
8849
      int lastComparison = 0;
9516
      int lastComparison = 0;
8850
      captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
9517
      captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
8851
 
9518
 
8852
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
9519
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
8853
      if (lastComparison != 0) {
9520
      if (lastComparison != 0) {
8854
        return lastComparison;
9521
        return lastComparison;
8855
      }
9522
      }
-
 
9523
      if (isSetMerchantPaymentId()) {
8856
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
9524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
8857
      if (lastComparison != 0) {
9525
        if (lastComparison != 0) {
8858
        return lastComparison;
9526
          return lastComparison;
-
 
9527
        }
8859
      }
9528
      }
8860
      return 0;
9529
      return 0;
8861
    }
9530
    }
8862
 
9531
 
-
 
9532
    public _Fields fieldForId(int fieldId) {
-
 
9533
      return _Fields.findByThriftId(fieldId);
-
 
9534
    }
-
 
9535
 
8863
    public void read(TProtocol iprot) throws TException {
9536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8864
      TField field;
9537
      org.apache.thrift.protocol.TField field;
8865
      iprot.readStructBegin();
9538
      iprot.readStructBegin();
8866
      while (true)
9539
      while (true)
8867
      {
9540
      {
8868
        field = iprot.readFieldBegin();
9541
        field = iprot.readFieldBegin();
8869
        if (field.type == TType.STOP) { 
9542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8870
          break;
9543
          break;
8871
        }
9544
        }
8872
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8873
        if (fieldId == null) {
-
 
8874
          TProtocolUtil.skip(iprot, field.type);
-
 
8875
        } else {
-
 
8876
          switch (fieldId) {
9545
        switch (field.id) {
8877
            case MERCHANT_PAYMENT_ID:
9546
          case 1: // MERCHANT_PAYMENT_ID
8878
              if (field.type == TType.I64) {
9547
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8879
                this.merchantPaymentId = iprot.readI64();
9548
              this.merchantPaymentId = iprot.readI64();
8880
                setMerchantPaymentIdIsSet(true);
9549
              setMerchantPaymentIdIsSet(true);
8881
              } else { 
9550
            } else { 
8882
                TProtocolUtil.skip(iprot, field.type);
9551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8883
              }
9552
            }
8884
              break;
9553
            break;
8885
          }
9554
          default:
8886
          iprot.readFieldEnd();
9555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8887
        }
9556
        }
-
 
9557
        iprot.readFieldEnd();
8888
      }
9558
      }
8889
      iprot.readStructEnd();
9559
      iprot.readStructEnd();
8890
      validate();
9560
      validate();
8891
    }
9561
    }
8892
 
9562
 
8893
    public void write(TProtocol oprot) throws TException {
9563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8894
      validate();
9564
      validate();
8895
 
9565
 
8896
      oprot.writeStructBegin(STRUCT_DESC);
9566
      oprot.writeStructBegin(STRUCT_DESC);
8897
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
9567
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
8898
      oprot.writeI64(this.merchantPaymentId);
9568
      oprot.writeI64(this.merchantPaymentId);
Line 8911... Line 9581...
8911
      first = false;
9581
      first = false;
8912
      sb.append(")");
9582
      sb.append(")");
8913
      return sb.toString();
9583
      return sb.toString();
8914
    }
9584
    }
8915
 
9585
 
8916
    public void validate() throws TException {
9586
    public void validate() throws org.apache.thrift.TException {
8917
      // check for required fields
9587
      // check for required fields
8918
    }
9588
    }
8919
 
9589
 
-
 
9590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9591
      try {
-
 
9592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9593
      } catch (org.apache.thrift.TException te) {
-
 
9594
        throw new java.io.IOException(te);
-
 
9595
      }
-
 
9596
    }
-
 
9597
 
-
 
9598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9599
      try {
-
 
9600
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9601
      } catch (org.apache.thrift.TException te) {
-
 
9602
        throw new java.io.IOException(te);
-
 
9603
      }
-
 
9604
    }
-
 
9605
 
8920
  }
9606
  }
8921
 
9607
 
8922
  public static class captureHdfcPayment_result implements TBase<captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
9608
  public static class captureHdfcPayment_result implements org.apache.thrift.TBase<captureHdfcPayment_result, captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
8923
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_result");
9609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureHdfcPayment_result");
8924
 
9610
 
8925
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
9611
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
8926
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
9612
    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);
8927
 
9613
 
8928
    private Map<String,String> success;
9614
    private Map<String,String> success; // required
8929
    private PaymentException pe;
9615
    private PaymentException pe; // required
8930
 
9616
 
8931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8932
    public enum _Fields implements TFieldIdEnum {
9618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8933
      SUCCESS((short)0, "success"),
9619
      SUCCESS((short)0, "success"),
8934
      PE((short)1, "pe");
9620
      PE((short)1, "pe");
8935
 
9621
 
8936
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8937
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8938
 
9623
 
8939
      static {
9624
      static {
8940
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8941
          byId.put((int)field._thriftId, field);
-
 
8942
          byName.put(field.getFieldName(), field);
9626
          byName.put(field.getFieldName(), field);
8943
        }
9627
        }
8944
      }
9628
      }
8945
 
9629
 
8946
      /**
9630
      /**
8947
       * Find the _Fields constant that matches fieldId, or null if its not found.
9631
       * Find the _Fields constant that matches fieldId, or null if its not found.
8948
       */
9632
       */
8949
      public static _Fields findByThriftId(int fieldId) {
9633
      public static _Fields findByThriftId(int fieldId) {
8950
        return byId.get(fieldId);
9634
        switch(fieldId) {
-
 
9635
          case 0: // SUCCESS
-
 
9636
            return SUCCESS;
-
 
9637
          case 1: // PE
-
 
9638
            return PE;
-
 
9639
          default:
-
 
9640
            return null;
-
 
9641
        }
8951
      }
9642
      }
8952
 
9643
 
8953
      /**
9644
      /**
8954
       * Find the _Fields constant that matches fieldId, throwing an exception
9645
       * Find the _Fields constant that matches fieldId, throwing an exception
8955
       * if it is not found.
9646
       * if it is not found.
Line 8984... Line 9675...
8984
      }
9675
      }
8985
    }
9676
    }
8986
 
9677
 
8987
    // isset id assignments
9678
    // isset id assignments
8988
 
9679
 
8989
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8990
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8991
          new MapMetaData(TType.MAP, 
-
 
8992
              new FieldValueMetaData(TType.STRING), 
-
 
8993
              new FieldValueMetaData(TType.STRING))));
-
 
8994
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
8995
          new FieldValueMetaData(TType.STRUCT)));
-
 
8996
    }});
-
 
8997
 
-
 
8998
    static {
9681
    static {
-
 
9682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9683
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9684
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
9685
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
9686
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
9687
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
9689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8999
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
9690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
9000
    }
9691
    }
9001
 
9692
 
9002
    public captureHdfcPayment_result() {
9693
    public captureHdfcPayment_result() {
9003
    }
9694
    }
9004
 
9695
 
Line 9037... Line 9728...
9037
 
9728
 
9038
    public captureHdfcPayment_result deepCopy() {
9729
    public captureHdfcPayment_result deepCopy() {
9039
      return new captureHdfcPayment_result(this);
9730
      return new captureHdfcPayment_result(this);
9040
    }
9731
    }
9041
 
9732
 
9042
    @Deprecated
9733
    @Override
9043
    public captureHdfcPayment_result clone() {
9734
    public void clear() {
9044
      return new captureHdfcPayment_result(this);
9735
      this.success = null;
-
 
9736
      this.pe = null;
9045
    }
9737
    }
9046
 
9738
 
9047
    public int getSuccessSize() {
9739
    public int getSuccessSize() {
9048
      return (this.success == null) ? 0 : this.success.size();
9740
      return (this.success == null) ? 0 : this.success.size();
9049
    }
9741
    }
Line 9057... Line 9749...
9057
 
9749
 
9058
    public Map<String,String> getSuccess() {
9750
    public Map<String,String> getSuccess() {
9059
      return this.success;
9751
      return this.success;
9060
    }
9752
    }
9061
 
9753
 
9062
    public captureHdfcPayment_result setSuccess(Map<String,String> success) {
9754
    public void setSuccess(Map<String,String> success) {
9063
      this.success = success;
9755
      this.success = success;
9064
      return this;
-
 
9065
    }
9756
    }
9066
 
9757
 
9067
    public void unsetSuccess() {
9758
    public void unsetSuccess() {
9068
      this.success = null;
9759
      this.success = null;
9069
    }
9760
    }
9070
 
9761
 
9071
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9762
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9072
    public boolean isSetSuccess() {
9763
    public boolean isSetSuccess() {
9073
      return this.success != null;
9764
      return this.success != null;
9074
    }
9765
    }
9075
 
9766
 
9076
    public void setSuccessIsSet(boolean value) {
9767
    public void setSuccessIsSet(boolean value) {
Line 9081... Line 9772...
9081
 
9772
 
9082
    public PaymentException getPe() {
9773
    public PaymentException getPe() {
9083
      return this.pe;
9774
      return this.pe;
9084
    }
9775
    }
9085
 
9776
 
9086
    public captureHdfcPayment_result setPe(PaymentException pe) {
9777
    public void setPe(PaymentException pe) {
9087
      this.pe = pe;
9778
      this.pe = pe;
9088
      return this;
-
 
9089
    }
9779
    }
9090
 
9780
 
9091
    public void unsetPe() {
9781
    public void unsetPe() {
9092
      this.pe = null;
9782
      this.pe = null;
9093
    }
9783
    }
9094
 
9784
 
9095
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
9785
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9096
    public boolean isSetPe() {
9786
    public boolean isSetPe() {
9097
      return this.pe != null;
9787
      return this.pe != null;
9098
    }
9788
    }
9099
 
9789
 
9100
    public void setPeIsSet(boolean value) {
9790
    public void setPeIsSet(boolean value) {
Line 9122... Line 9812...
9122
        break;
9812
        break;
9123
 
9813
 
9124
      }
9814
      }
9125
    }
9815
    }
9126
 
9816
 
9127
    public void setFieldValue(int fieldID, Object value) {
-
 
9128
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9129
    }
-
 
9130
 
-
 
9131
    public Object getFieldValue(_Fields field) {
9817
    public Object getFieldValue(_Fields field) {
9132
      switch (field) {
9818
      switch (field) {
9133
      case SUCCESS:
9819
      case SUCCESS:
9134
        return getSuccess();
9820
        return getSuccess();
9135
 
9821
 
Line 9138... Line 9824...
9138
 
9824
 
9139
      }
9825
      }
9140
      throw new IllegalStateException();
9826
      throw new IllegalStateException();
9141
    }
9827
    }
9142
 
9828
 
9143
    public Object getFieldValue(int fieldId) {
-
 
9144
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9145
    }
-
 
9146
 
-
 
9147
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9148
    public boolean isSet(_Fields field) {
9830
    public boolean isSet(_Fields field) {
-
 
9831
      if (field == null) {
-
 
9832
        throw new IllegalArgumentException();
-
 
9833
      }
-
 
9834
 
9149
      switch (field) {
9835
      switch (field) {
9150
      case SUCCESS:
9836
      case SUCCESS:
9151
        return isSetSuccess();
9837
        return isSetSuccess();
9152
      case PE:
9838
      case PE:
9153
        return isSetPe();
9839
        return isSetPe();
9154
      }
9840
      }
9155
      throw new IllegalStateException();
9841
      throw new IllegalStateException();
9156
    }
9842
    }
9157
 
9843
 
9158
    public boolean isSet(int fieldID) {
-
 
9159
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9160
    }
-
 
9161
 
-
 
9162
    @Override
9844
    @Override
9163
    public boolean equals(Object that) {
9845
    public boolean equals(Object that) {
9164
      if (that == null)
9846
      if (that == null)
9165
        return false;
9847
        return false;
9166
      if (that instanceof captureHdfcPayment_result)
9848
      if (that instanceof captureHdfcPayment_result)
Line 9196... Line 9878...
9196
    @Override
9878
    @Override
9197
    public int hashCode() {
9879
    public int hashCode() {
9198
      return 0;
9880
      return 0;
9199
    }
9881
    }
9200
 
9882
 
9201
    public void read(TProtocol iprot) throws TException {
9883
    public int compareTo(captureHdfcPayment_result other) {
-
 
9884
      if (!getClass().equals(other.getClass())) {
-
 
9885
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9886
      }
-
 
9887
 
-
 
9888
      int lastComparison = 0;
-
 
9889
      captureHdfcPayment_result typedOther = (captureHdfcPayment_result)other;
-
 
9890
 
-
 
9891
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9892
      if (lastComparison != 0) {
-
 
9893
        return lastComparison;
-
 
9894
      }
-
 
9895
      if (isSetSuccess()) {
-
 
9896
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9897
        if (lastComparison != 0) {
-
 
9898
          return lastComparison;
-
 
9899
        }
-
 
9900
      }
-
 
9901
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
9902
      if (lastComparison != 0) {
-
 
9903
        return lastComparison;
-
 
9904
      }
-
 
9905
      if (isSetPe()) {
-
 
9906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
9907
        if (lastComparison != 0) {
-
 
9908
          return lastComparison;
-
 
9909
        }
-
 
9910
      }
9202
      TField field;
9911
      return 0;
-
 
9912
    }
-
 
9913
 
-
 
9914
    public _Fields fieldForId(int fieldId) {
-
 
9915
      return _Fields.findByThriftId(fieldId);
-
 
9916
    }
-
 
9917
 
-
 
9918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9919
      org.apache.thrift.protocol.TField field;
9203
      iprot.readStructBegin();
9920
      iprot.readStructBegin();
9204
      while (true)
9921
      while (true)
9205
      {
9922
      {
9206
        field = iprot.readFieldBegin();
9923
        field = iprot.readFieldBegin();
9207
        if (field.type == TType.STOP) { 
9924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9208
          break;
9925
          break;
9209
        }
9926
        }
9210
        _Fields fieldId = _Fields.findByThriftId(field.id);
9927
        switch (field.id) {
9211
        if (fieldId == null) {
9928
          case 0: // SUCCESS
9212
          TProtocolUtil.skip(iprot, field.type);
9929
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9213
        } else {
9930
              {
9214
          switch (fieldId) {
9931
                org.apache.thrift.protocol.TMap _map37 = iprot.readMapBegin();
9215
            case SUCCESS:
9932
                this.success = new HashMap<String,String>(2*_map37.size);
9216
              if (field.type == TType.MAP) {
9933
                for (int _i38 = 0; _i38 < _map37.size; ++_i38)
9217
                {
9934
                {
9218
                  TMap _map37 = iprot.readMapBegin();
-
 
9219
                  this.success = new HashMap<String,String>(2*_map37.size);
-
 
9220
                  for (int _i38 = 0; _i38 < _map37.size; ++_i38)
-
 
9221
                  {
-
 
9222
                    String _key39;
9935
                  String _key39; // required
9223
                    String _val40;
9936
                  String _val40; // required
9224
                    _key39 = iprot.readString();
9937
                  _key39 = iprot.readString();
9225
                    _val40 = iprot.readString();
9938
                  _val40 = iprot.readString();
9226
                    this.success.put(_key39, _val40);
9939
                  this.success.put(_key39, _val40);
9227
                  }
-
 
9228
                  iprot.readMapEnd();
-
 
9229
                }
9940
                }
9230
              } else { 
9941
                iprot.readMapEnd();
9231
                TProtocolUtil.skip(iprot, field.type);
-
 
9232
              }
9942
              }
-
 
9943
            } else { 
-
 
9944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9945
            }
9233
              break;
9946
            break;
9234
            case PE:
9947
          case 1: // PE
9235
              if (field.type == TType.STRUCT) {
9948
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9236
                this.pe = new PaymentException();
9949
              this.pe = new PaymentException();
9237
                this.pe.read(iprot);
9950
              this.pe.read(iprot);
9238
              } else { 
9951
            } else { 
9239
                TProtocolUtil.skip(iprot, field.type);
9952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9240
              }
9953
            }
9241
              break;
9954
            break;
9242
          }
9955
          default:
9243
          iprot.readFieldEnd();
9956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9244
        }
9957
        }
-
 
9958
        iprot.readFieldEnd();
9245
      }
9959
      }
9246
      iprot.readStructEnd();
9960
      iprot.readStructEnd();
9247
      validate();
9961
      validate();
9248
    }
9962
    }
9249
 
9963
 
9250
    public void write(TProtocol oprot) throws TException {
9964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9251
      oprot.writeStructBegin(STRUCT_DESC);
9965
      oprot.writeStructBegin(STRUCT_DESC);
9252
 
9966
 
9253
      if (this.isSetSuccess()) {
9967
      if (this.isSetSuccess()) {
9254
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9255
        {
9969
        {
9256
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
9970
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
9257
          for (Map.Entry<String, String> _iter41 : this.success.entrySet())
9971
          for (Map.Entry<String, String> _iter41 : this.success.entrySet())
9258
          {
9972
          {
9259
            oprot.writeString(_iter41.getKey());
9973
            oprot.writeString(_iter41.getKey());
9260
            oprot.writeString(_iter41.getValue());
9974
            oprot.writeString(_iter41.getValue());
9261
          }
9975
          }
Line 9293... Line 10007...
9293
      first = false;
10007
      first = false;
9294
      sb.append(")");
10008
      sb.append(")");
9295
      return sb.toString();
10009
      return sb.toString();
9296
    }
10010
    }
9297
 
10011
 
9298
    public void validate() throws TException {
10012
    public void validate() throws org.apache.thrift.TException {
9299
      // check for required fields
10013
      // check for required fields
9300
    }
10014
    }
9301
 
10015
 
-
 
10016
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10017
      try {
-
 
10018
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10019
      } catch (org.apache.thrift.TException te) {
-
 
10020
        throw new java.io.IOException(te);
-
 
10021
      }
-
 
10022
    }
-
 
10023
 
-
 
10024
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10025
      try {
-
 
10026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10027
      } catch (org.apache.thrift.TException te) {
-
 
10028
        throw new java.io.IOException(te);
-
 
10029
      }
-
 
10030
    }
-
 
10031
 
9302
  }
10032
  }
9303
 
10033
 
9304
  public static class initializeHdfcPayment_args implements TBase<initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_args>   {
10034
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
9305
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_args");
10035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
9306
 
10036
 
9307
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
10037
    private static final org.apache.thrift.protocol.TField MERCHANT_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantPaymentId", org.apache.thrift.protocol.TType.I64, (short)1);
9308
 
10038
 
9309
    private long merchantPaymentId;
10039
    private long merchantPaymentId; // required
9310
 
10040
 
9311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9312
    public enum _Fields implements TFieldIdEnum {
10042
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9313
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
10043
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
9314
 
10044
 
9315
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9316
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9317
 
10046
 
9318
      static {
10047
      static {
9319
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9320
          byId.put((int)field._thriftId, field);
-
 
9321
          byName.put(field.getFieldName(), field);
10049
          byName.put(field.getFieldName(), field);
9322
        }
10050
        }
9323
      }
10051
      }
9324
 
10052
 
9325
      /**
10053
      /**
9326
       * Find the _Fields constant that matches fieldId, or null if its not found.
10054
       * Find the _Fields constant that matches fieldId, or null if its not found.
9327
       */
10055
       */
9328
      public static _Fields findByThriftId(int fieldId) {
10056
      public static _Fields findByThriftId(int fieldId) {
9329
        return byId.get(fieldId);
10057
        switch(fieldId) {
-
 
10058
          case 1: // MERCHANT_PAYMENT_ID
-
 
10059
            return MERCHANT_PAYMENT_ID;
-
 
10060
          default:
-
 
10061
            return null;
-
 
10062
        }
9330
      }
10063
      }
9331
 
10064
 
9332
      /**
10065
      /**
9333
       * Find the _Fields constant that matches fieldId, throwing an exception
10066
       * Find the _Fields constant that matches fieldId, throwing an exception
9334
       * if it is not found.
10067
       * if it is not found.
Line 9365... Line 10098...
9365
 
10098
 
9366
    // isset id assignments
10099
    // isset id assignments
9367
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
10100
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
9368
    private BitSet __isset_bit_vector = new BitSet(1);
10101
    private BitSet __isset_bit_vector = new BitSet(1);
9369
 
10102
 
9370
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10103
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9371
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
-
 
9372
          new FieldValueMetaData(TType.I64)));
-
 
9373
    }});
-
 
9374
 
-
 
9375
    static {
10104
    static {
-
 
10105
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10106
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9376
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
10109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
9377
    }
10110
    }
9378
 
10111
 
9379
    public initializeHdfcPayment_args() {
10112
    public initializeHdfcPayment_args() {
9380
    }
10113
    }
9381
 
10114
 
Line 9398... Line 10131...
9398
 
10131
 
9399
    public initializeHdfcPayment_args deepCopy() {
10132
    public initializeHdfcPayment_args deepCopy() {
9400
      return new initializeHdfcPayment_args(this);
10133
      return new initializeHdfcPayment_args(this);
9401
    }
10134
    }
9402
 
10135
 
9403
    @Deprecated
10136
    @Override
9404
    public initializeHdfcPayment_args clone() {
10137
    public void clear() {
9405
      return new initializeHdfcPayment_args(this);
10138
      setMerchantPaymentIdIsSet(false);
-
 
10139
      this.merchantPaymentId = 0;
9406
    }
10140
    }
9407
 
10141
 
9408
    public long getMerchantPaymentId() {
10142
    public long getMerchantPaymentId() {
9409
      return this.merchantPaymentId;
10143
      return this.merchantPaymentId;
9410
    }
10144
    }
9411
 
10145
 
9412
    public initializeHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
10146
    public void setMerchantPaymentId(long merchantPaymentId) {
9413
      this.merchantPaymentId = merchantPaymentId;
10147
      this.merchantPaymentId = merchantPaymentId;
9414
      setMerchantPaymentIdIsSet(true);
10148
      setMerchantPaymentIdIsSet(true);
9415
      return this;
-
 
9416
    }
10149
    }
9417
 
10150
 
9418
    public void unsetMerchantPaymentId() {
10151
    public void unsetMerchantPaymentId() {
9419
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
10152
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
9420
    }
10153
    }
9421
 
10154
 
9422
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
10155
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
9423
    public boolean isSetMerchantPaymentId() {
10156
    public boolean isSetMerchantPaymentId() {
9424
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
10157
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
9425
    }
10158
    }
9426
 
10159
 
9427
    public void setMerchantPaymentIdIsSet(boolean value) {
10160
    public void setMerchantPaymentIdIsSet(boolean value) {
Line 9439... Line 10172...
9439
        break;
10172
        break;
9440
 
10173
 
9441
      }
10174
      }
9442
    }
10175
    }
9443
 
10176
 
9444
    public void setFieldValue(int fieldID, Object value) {
-
 
9445
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9446
    }
-
 
9447
 
-
 
9448
    public Object getFieldValue(_Fields field) {
10177
    public Object getFieldValue(_Fields field) {
9449
      switch (field) {
10178
      switch (field) {
9450
      case MERCHANT_PAYMENT_ID:
10179
      case MERCHANT_PAYMENT_ID:
9451
        return new Long(getMerchantPaymentId());
10180
        return Long.valueOf(getMerchantPaymentId());
9452
 
10181
 
9453
      }
10182
      }
9454
      throw new IllegalStateException();
10183
      throw new IllegalStateException();
9455
    }
10184
    }
9456
 
10185
 
9457
    public Object getFieldValue(int fieldId) {
-
 
9458
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9459
    }
-
 
9460
 
-
 
9461
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9462
    public boolean isSet(_Fields field) {
10187
    public boolean isSet(_Fields field) {
-
 
10188
      if (field == null) {
-
 
10189
        throw new IllegalArgumentException();
-
 
10190
      }
-
 
10191
 
9463
      switch (field) {
10192
      switch (field) {
9464
      case MERCHANT_PAYMENT_ID:
10193
      case MERCHANT_PAYMENT_ID:
9465
        return isSetMerchantPaymentId();
10194
        return isSetMerchantPaymentId();
9466
      }
10195
      }
9467
      throw new IllegalStateException();
10196
      throw new IllegalStateException();
9468
    }
10197
    }
9469
 
10198
 
9470
    public boolean isSet(int fieldID) {
-
 
9471
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9472
    }
-
 
9473
 
-
 
9474
    @Override
10199
    @Override
9475
    public boolean equals(Object that) {
10200
    public boolean equals(Object that) {
9476
      if (that == null)
10201
      if (that == null)
9477
        return false;
10202
        return false;
9478
      if (that instanceof initializeHdfcPayment_args)
10203
      if (that instanceof initializeHdfcPayment_args)
Line 9507... Line 10232...
9507
      }
10232
      }
9508
 
10233
 
9509
      int lastComparison = 0;
10234
      int lastComparison = 0;
9510
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
10235
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
9511
 
10236
 
9512
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
10237
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
9513
      if (lastComparison != 0) {
10238
      if (lastComparison != 0) {
9514
        return lastComparison;
10239
        return lastComparison;
9515
      }
10240
      }
-
 
10241
      if (isSetMerchantPaymentId()) {
9516
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
10242
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
9517
      if (lastComparison != 0) {
10243
        if (lastComparison != 0) {
9518
        return lastComparison;
10244
          return lastComparison;
-
 
10245
        }
9519
      }
10246
      }
9520
      return 0;
10247
      return 0;
9521
    }
10248
    }
9522
 
10249
 
-
 
10250
    public _Fields fieldForId(int fieldId) {
-
 
10251
      return _Fields.findByThriftId(fieldId);
-
 
10252
    }
-
 
10253
 
9523
    public void read(TProtocol iprot) throws TException {
10254
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9524
      TField field;
10255
      org.apache.thrift.protocol.TField field;
9525
      iprot.readStructBegin();
10256
      iprot.readStructBegin();
9526
      while (true)
10257
      while (true)
9527
      {
10258
      {
9528
        field = iprot.readFieldBegin();
10259
        field = iprot.readFieldBegin();
9529
        if (field.type == TType.STOP) { 
10260
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9530
          break;
10261
          break;
9531
        }
10262
        }
9532
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9533
        if (fieldId == null) {
-
 
9534
          TProtocolUtil.skip(iprot, field.type);
-
 
9535
        } else {
-
 
9536
          switch (fieldId) {
10263
        switch (field.id) {
9537
            case MERCHANT_PAYMENT_ID:
10264
          case 1: // MERCHANT_PAYMENT_ID
9538
              if (field.type == TType.I64) {
10265
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9539
                this.merchantPaymentId = iprot.readI64();
10266
              this.merchantPaymentId = iprot.readI64();
9540
                setMerchantPaymentIdIsSet(true);
10267
              setMerchantPaymentIdIsSet(true);
9541
              } else { 
10268
            } else { 
9542
                TProtocolUtil.skip(iprot, field.type);
10269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9543
              }
10270
            }
9544
              break;
10271
            break;
9545
          }
10272
          default:
9546
          iprot.readFieldEnd();
10273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9547
        }
10274
        }
-
 
10275
        iprot.readFieldEnd();
9548
      }
10276
      }
9549
      iprot.readStructEnd();
10277
      iprot.readStructEnd();
9550
      validate();
10278
      validate();
9551
    }
10279
    }
9552
 
10280
 
9553
    public void write(TProtocol oprot) throws TException {
10281
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9554
      validate();
10282
      validate();
9555
 
10283
 
9556
      oprot.writeStructBegin(STRUCT_DESC);
10284
      oprot.writeStructBegin(STRUCT_DESC);
9557
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
10285
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
9558
      oprot.writeI64(this.merchantPaymentId);
10286
      oprot.writeI64(this.merchantPaymentId);
Line 9571... Line 10299...
9571
      first = false;
10299
      first = false;
9572
      sb.append(")");
10300
      sb.append(")");
9573
      return sb.toString();
10301
      return sb.toString();
9574
    }
10302
    }
9575
 
10303
 
9576
    public void validate() throws TException {
10304
    public void validate() throws org.apache.thrift.TException {
9577
      // check for required fields
10305
      // check for required fields
9578
    }
10306
    }
9579
 
10307
 
-
 
10308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10309
      try {
-
 
10310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10311
      } catch (org.apache.thrift.TException te) {
-
 
10312
        throw new java.io.IOException(te);
-
 
10313
      }
-
 
10314
    }
-
 
10315
 
-
 
10316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10317
      try {
-
 
10318
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10319
      } catch (org.apache.thrift.TException te) {
-
 
10320
        throw new java.io.IOException(te);
-
 
10321
      }
-
 
10322
    }
-
 
10323
 
9580
  }
10324
  }
9581
 
10325
 
9582
  public static class initializeHdfcPayment_result implements TBase<initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_result>   {
10326
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
9583
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_result");
10327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
9584
 
10328
 
9585
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
10329
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
9586
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
10330
    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);
9587
 
10331
 
9588
    private String success;
10332
    private String success; // required
9589
    private PaymentException pe;
10333
    private PaymentException pe; // required
9590
 
10334
 
9591
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10335
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9592
    public enum _Fields implements TFieldIdEnum {
10336
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9593
      SUCCESS((short)0, "success"),
10337
      SUCCESS((short)0, "success"),
9594
      PE((short)1, "pe");
10338
      PE((short)1, "pe");
9595
 
10339
 
9596
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9598
 
10341
 
9599
      static {
10342
      static {
9600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9601
          byId.put((int)field._thriftId, field);
-
 
9602
          byName.put(field.getFieldName(), field);
10344
          byName.put(field.getFieldName(), field);
9603
        }
10345
        }
9604
      }
10346
      }
9605
 
10347
 
9606
      /**
10348
      /**
9607
       * Find the _Fields constant that matches fieldId, or null if its not found.
10349
       * Find the _Fields constant that matches fieldId, or null if its not found.
9608
       */
10350
       */
9609
      public static _Fields findByThriftId(int fieldId) {
10351
      public static _Fields findByThriftId(int fieldId) {
9610
        return byId.get(fieldId);
10352
        switch(fieldId) {
-
 
10353
          case 0: // SUCCESS
-
 
10354
            return SUCCESS;
-
 
10355
          case 1: // PE
-
 
10356
            return PE;
-
 
10357
          default:
-
 
10358
            return null;
-
 
10359
        }
9611
      }
10360
      }
9612
 
10361
 
9613
      /**
10362
      /**
9614
       * Find the _Fields constant that matches fieldId, throwing an exception
10363
       * Find the _Fields constant that matches fieldId, throwing an exception
9615
       * if it is not found.
10364
       * if it is not found.
Line 9644... Line 10393...
9644
      }
10393
      }
9645
    }
10394
    }
9646
 
10395
 
9647
    // isset id assignments
10396
    // isset id assignments
9648
 
10397
 
9649
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10398
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9650
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9651
          new FieldValueMetaData(TType.STRING)));
-
 
9652
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
9653
          new FieldValueMetaData(TType.STRUCT)));
-
 
9654
    }});
-
 
9655
 
-
 
9656
    static {
10399
    static {
-
 
10400
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10401
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
10403
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
10405
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9657
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
10406
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
9658
    }
10407
    }
9659
 
10408
 
9660
    public initializeHdfcPayment_result() {
10409
    public initializeHdfcPayment_result() {
9661
    }
10410
    }
9662
 
10411
 
Line 9683... Line 10432...
9683
 
10432
 
9684
    public initializeHdfcPayment_result deepCopy() {
10433
    public initializeHdfcPayment_result deepCopy() {
9685
      return new initializeHdfcPayment_result(this);
10434
      return new initializeHdfcPayment_result(this);
9686
    }
10435
    }
9687
 
10436
 
9688
    @Deprecated
10437
    @Override
9689
    public initializeHdfcPayment_result clone() {
10438
    public void clear() {
9690
      return new initializeHdfcPayment_result(this);
10439
      this.success = null;
-
 
10440
      this.pe = null;
9691
    }
10441
    }
9692
 
10442
 
9693
    public String getSuccess() {
10443
    public String getSuccess() {
9694
      return this.success;
10444
      return this.success;
9695
    }
10445
    }
9696
 
10446
 
9697
    public initializeHdfcPayment_result setSuccess(String success) {
10447
    public void setSuccess(String success) {
9698
      this.success = success;
10448
      this.success = success;
9699
      return this;
-
 
9700
    }
10449
    }
9701
 
10450
 
9702
    public void unsetSuccess() {
10451
    public void unsetSuccess() {
9703
      this.success = null;
10452
      this.success = null;
9704
    }
10453
    }
9705
 
10454
 
9706
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
10455
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9707
    public boolean isSetSuccess() {
10456
    public boolean isSetSuccess() {
9708
      return this.success != null;
10457
      return this.success != null;
9709
    }
10458
    }
9710
 
10459
 
9711
    public void setSuccessIsSet(boolean value) {
10460
    public void setSuccessIsSet(boolean value) {
Line 9716... Line 10465...
9716
 
10465
 
9717
    public PaymentException getPe() {
10466
    public PaymentException getPe() {
9718
      return this.pe;
10467
      return this.pe;
9719
    }
10468
    }
9720
 
10469
 
9721
    public initializeHdfcPayment_result setPe(PaymentException pe) {
10470
    public void setPe(PaymentException pe) {
9722
      this.pe = pe;
10471
      this.pe = pe;
9723
      return this;
-
 
9724
    }
10472
    }
9725
 
10473
 
9726
    public void unsetPe() {
10474
    public void unsetPe() {
9727
      this.pe = null;
10475
      this.pe = null;
9728
    }
10476
    }
9729
 
10477
 
9730
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
10478
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9731
    public boolean isSetPe() {
10479
    public boolean isSetPe() {
9732
      return this.pe != null;
10480
      return this.pe != null;
9733
    }
10481
    }
9734
 
10482
 
9735
    public void setPeIsSet(boolean value) {
10483
    public void setPeIsSet(boolean value) {
Line 9757... Line 10505...
9757
        break;
10505
        break;
9758
 
10506
 
9759
      }
10507
      }
9760
    }
10508
    }
9761
 
10509
 
9762
    public void setFieldValue(int fieldID, Object value) {
-
 
9763
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9764
    }
-
 
9765
 
-
 
9766
    public Object getFieldValue(_Fields field) {
10510
    public Object getFieldValue(_Fields field) {
9767
      switch (field) {
10511
      switch (field) {
9768
      case SUCCESS:
10512
      case SUCCESS:
9769
        return getSuccess();
10513
        return getSuccess();
9770
 
10514
 
Line 9773... Line 10517...
9773
 
10517
 
9774
      }
10518
      }
9775
      throw new IllegalStateException();
10519
      throw new IllegalStateException();
9776
    }
10520
    }
9777
 
10521
 
9778
    public Object getFieldValue(int fieldId) {
-
 
9779
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9780
    }
-
 
9781
 
-
 
9782
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10522
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9783
    public boolean isSet(_Fields field) {
10523
    public boolean isSet(_Fields field) {
-
 
10524
      if (field == null) {
-
 
10525
        throw new IllegalArgumentException();
-
 
10526
      }
-
 
10527
 
9784
      switch (field) {
10528
      switch (field) {
9785
      case SUCCESS:
10529
      case SUCCESS:
9786
        return isSetSuccess();
10530
        return isSetSuccess();
9787
      case PE:
10531
      case PE:
9788
        return isSetPe();
10532
        return isSetPe();
9789
      }
10533
      }
9790
      throw new IllegalStateException();
10534
      throw new IllegalStateException();
9791
    }
10535
    }
9792
 
10536
 
9793
    public boolean isSet(int fieldID) {
-
 
9794
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9795
    }
-
 
9796
 
-
 
9797
    @Override
10537
    @Override
9798
    public boolean equals(Object that) {
10538
    public boolean equals(Object that) {
9799
      if (that == null)
10539
      if (that == null)
9800
        return false;
10540
        return false;
9801
      if (that instanceof initializeHdfcPayment_result)
10541
      if (that instanceof initializeHdfcPayment_result)
Line 9839... Line 10579...
9839
      }
10579
      }
9840
 
10580
 
9841
      int lastComparison = 0;
10581
      int lastComparison = 0;
9842
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
10582
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
9843
 
10583
 
9844
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10584
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9845
      if (lastComparison != 0) {
10585
      if (lastComparison != 0) {
9846
        return lastComparison;
10586
        return lastComparison;
9847
      }
10587
      }
-
 
10588
      if (isSetSuccess()) {
9848
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
10589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9849
      if (lastComparison != 0) {
10590
        if (lastComparison != 0) {
9850
        return lastComparison;
10591
          return lastComparison;
-
 
10592
        }
9851
      }
10593
      }
9852
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
10594
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
9853
      if (lastComparison != 0) {
10595
      if (lastComparison != 0) {
9854
        return lastComparison;
10596
        return lastComparison;
9855
      }
10597
      }
-
 
10598
      if (isSetPe()) {
9856
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
10599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9857
      if (lastComparison != 0) {
10600
        if (lastComparison != 0) {
9858
        return lastComparison;
10601
          return lastComparison;
-
 
10602
        }
9859
      }
10603
      }
9860
      return 0;
10604
      return 0;
9861
    }
10605
    }
9862
 
10606
 
-
 
10607
    public _Fields fieldForId(int fieldId) {
-
 
10608
      return _Fields.findByThriftId(fieldId);
-
 
10609
    }
-
 
10610
 
9863
    public void read(TProtocol iprot) throws TException {
10611
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9864
      TField field;
10612
      org.apache.thrift.protocol.TField field;
9865
      iprot.readStructBegin();
10613
      iprot.readStructBegin();
9866
      while (true)
10614
      while (true)
9867
      {
10615
      {
9868
        field = iprot.readFieldBegin();
10616
        field = iprot.readFieldBegin();
9869
        if (field.type == TType.STOP) { 
10617
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9870
          break;
10618
          break;
9871
        }
10619
        }
9872
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9873
        if (fieldId == null) {
-
 
9874
          TProtocolUtil.skip(iprot, field.type);
-
 
9875
        } else {
-
 
9876
          switch (fieldId) {
10620
        switch (field.id) {
9877
            case SUCCESS:
10621
          case 0: // SUCCESS
9878
              if (field.type == TType.STRING) {
10622
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9879
                this.success = iprot.readString();
10623
              this.success = iprot.readString();
9880
              } else { 
10624
            } else { 
9881
                TProtocolUtil.skip(iprot, field.type);
10625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9882
              }
10626
            }
9883
              break;
10627
            break;
9884
            case PE:
10628
          case 1: // PE
9885
              if (field.type == TType.STRUCT) {
10629
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9886
                this.pe = new PaymentException();
10630
              this.pe = new PaymentException();
9887
                this.pe.read(iprot);
10631
              this.pe.read(iprot);
9888
              } else { 
10632
            } else { 
9889
                TProtocolUtil.skip(iprot, field.type);
10633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9890
              }
10634
            }
9891
              break;
10635
            break;
9892
          }
10636
          default:
9893
          iprot.readFieldEnd();
10637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9894
        }
10638
        }
-
 
10639
        iprot.readFieldEnd();
9895
      }
10640
      }
9896
      iprot.readStructEnd();
10641
      iprot.readStructEnd();
9897
      validate();
10642
      validate();
9898
    }
10643
    }
9899
 
10644
 
9900
    public void write(TProtocol oprot) throws TException {
10645
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9901
      oprot.writeStructBegin(STRUCT_DESC);
10646
      oprot.writeStructBegin(STRUCT_DESC);
9902
 
10647
 
9903
      if (this.isSetSuccess()) {
10648
      if (this.isSetSuccess()) {
9904
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10649
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9905
        oprot.writeString(this.success);
10650
        oprot.writeString(this.success);
Line 9935... Line 10680...
9935
      first = false;
10680
      first = false;
9936
      sb.append(")");
10681
      sb.append(")");
9937
      return sb.toString();
10682
      return sb.toString();
9938
    }
10683
    }
9939
 
10684
 
9940
    public void validate() throws TException {
10685
    public void validate() throws org.apache.thrift.TException {
9941
      // check for required fields
10686
      // check for required fields
9942
    }
10687
    }
9943
 
10688
 
-
 
10689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10690
      try {
-
 
10691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10692
      } catch (org.apache.thrift.TException te) {
-
 
10693
        throw new java.io.IOException(te);
-
 
10694
      }
-
 
10695
    }
-
 
10696
 
-
 
10697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10698
      try {
-
 
10699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10700
      } catch (org.apache.thrift.TException te) {
-
 
10701
        throw new java.io.IOException(te);
-
 
10702
      }
-
 
10703
    }
-
 
10704
 
9944
  }
10705
  }
9945
 
10706
 
9946
  public static class createRefund_args implements TBase<createRefund_args._Fields>, java.io.Serializable, Cloneable, Comparable<createRefund_args>   {
10707
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
9947
    private static final TStruct STRUCT_DESC = new TStruct("createRefund_args");
10708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
9948
 
10709
 
9949
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
10710
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
9950
    private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)2);
10711
    private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)2);
9951
    private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)3);
10712
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
9952
 
10713
 
9953
    private long orderId;
10714
    private long orderId; // required
9954
    private long merchantTxnId;
10715
    private long merchantTxnId; // required
9955
    private double amount;
10716
    private double amount; // required
9956
 
10717
 
9957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9958
    public enum _Fields implements TFieldIdEnum {
10719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9959
      ORDER_ID((short)1, "orderId"),
10720
      ORDER_ID((short)1, "orderId"),
9960
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
10721
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
9961
      AMOUNT((short)3, "amount");
10722
      AMOUNT((short)3, "amount");
9962
 
10723
 
9963
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9965
 
10725
 
9966
      static {
10726
      static {
9967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9968
          byId.put((int)field._thriftId, field);
-
 
9969
          byName.put(field.getFieldName(), field);
10728
          byName.put(field.getFieldName(), field);
9970
        }
10729
        }
9971
      }
10730
      }
9972
 
10731
 
9973
      /**
10732
      /**
9974
       * Find the _Fields constant that matches fieldId, or null if its not found.
10733
       * Find the _Fields constant that matches fieldId, or null if its not found.
9975
       */
10734
       */
9976
      public static _Fields findByThriftId(int fieldId) {
10735
      public static _Fields findByThriftId(int fieldId) {
9977
        return byId.get(fieldId);
10736
        switch(fieldId) {
-
 
10737
          case 1: // ORDER_ID
-
 
10738
            return ORDER_ID;
-
 
10739
          case 2: // MERCHANT_TXN_ID
-
 
10740
            return MERCHANT_TXN_ID;
-
 
10741
          case 3: // AMOUNT
-
 
10742
            return AMOUNT;
-
 
10743
          default:
-
 
10744
            return null;
-
 
10745
        }
9978
      }
10746
      }
9979
 
10747
 
9980
      /**
10748
      /**
9981
       * Find the _Fields constant that matches fieldId, throwing an exception
10749
       * Find the _Fields constant that matches fieldId, throwing an exception
9982
       * if it is not found.
10750
       * if it is not found.
Line 10015... Line 10783...
10015
    private static final int __ORDERID_ISSET_ID = 0;
10783
    private static final int __ORDERID_ISSET_ID = 0;
10016
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
10784
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
10017
    private static final int __AMOUNT_ISSET_ID = 2;
10785
    private static final int __AMOUNT_ISSET_ID = 2;
10018
    private BitSet __isset_bit_vector = new BitSet(3);
10786
    private BitSet __isset_bit_vector = new BitSet(3);
10019
 
10787
 
10020
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10788
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10021
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
10022
          new FieldValueMetaData(TType.I64)));
-
 
10023
      put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT, 
-
 
10024
          new FieldValueMetaData(TType.I64)));
-
 
10025
      put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT, 
-
 
10026
          new FieldValueMetaData(TType.DOUBLE)));
-
 
10027
    }});
-
 
10028
 
-
 
10029
    static {
10789
    static {
-
 
10790
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10791
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10793
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10795
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10796
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
10797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10030
      FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
10798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
10031
    }
10799
    }
10032
 
10800
 
10033
    public createRefund_args() {
10801
    public createRefund_args() {
10034
    }
10802
    }
10035
 
10803
 
Line 10060... Line 10828...
10060
 
10828
 
10061
    public createRefund_args deepCopy() {
10829
    public createRefund_args deepCopy() {
10062
      return new createRefund_args(this);
10830
      return new createRefund_args(this);
10063
    }
10831
    }
10064
 
10832
 
10065
    @Deprecated
10833
    @Override
10066
    public createRefund_args clone() {
10834
    public void clear() {
-
 
10835
      setOrderIdIsSet(false);
-
 
10836
      this.orderId = 0;
10067
      return new createRefund_args(this);
10837
      setMerchantTxnIdIsSet(false);
-
 
10838
      this.merchantTxnId = 0;
-
 
10839
      setAmountIsSet(false);
-
 
10840
      this.amount = 0.0;
10068
    }
10841
    }
10069
 
10842
 
10070
    public long getOrderId() {
10843
    public long getOrderId() {
10071
      return this.orderId;
10844
      return this.orderId;
10072
    }
10845
    }
10073
 
10846
 
10074
    public createRefund_args setOrderId(long orderId) {
10847
    public void setOrderId(long orderId) {
10075
      this.orderId = orderId;
10848
      this.orderId = orderId;
10076
      setOrderIdIsSet(true);
10849
      setOrderIdIsSet(true);
10077
      return this;
-
 
10078
    }
10850
    }
10079
 
10851
 
10080
    public void unsetOrderId() {
10852
    public void unsetOrderId() {
10081
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
10853
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
10082
    }
10854
    }
10083
 
10855
 
10084
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
10856
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
10085
    public boolean isSetOrderId() {
10857
    public boolean isSetOrderId() {
10086
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
10858
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
10087
    }
10859
    }
10088
 
10860
 
10089
    public void setOrderIdIsSet(boolean value) {
10861
    public void setOrderIdIsSet(boolean value) {
Line 10092... Line 10864...
10092
 
10864
 
10093
    public long getMerchantTxnId() {
10865
    public long getMerchantTxnId() {
10094
      return this.merchantTxnId;
10866
      return this.merchantTxnId;
10095
    }
10867
    }
10096
 
10868
 
10097
    public createRefund_args setMerchantTxnId(long merchantTxnId) {
10869
    public void setMerchantTxnId(long merchantTxnId) {
10098
      this.merchantTxnId = merchantTxnId;
10870
      this.merchantTxnId = merchantTxnId;
10099
      setMerchantTxnIdIsSet(true);
10871
      setMerchantTxnIdIsSet(true);
10100
      return this;
-
 
10101
    }
10872
    }
10102
 
10873
 
10103
    public void unsetMerchantTxnId() {
10874
    public void unsetMerchantTxnId() {
10104
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
10875
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
10105
    }
10876
    }
10106
 
10877
 
10107
    /** Returns true if field merchantTxnId is set (has been asigned a value) and false otherwise */
10878
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
10108
    public boolean isSetMerchantTxnId() {
10879
    public boolean isSetMerchantTxnId() {
10109
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
10880
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
10110
    }
10881
    }
10111
 
10882
 
10112
    public void setMerchantTxnIdIsSet(boolean value) {
10883
    public void setMerchantTxnIdIsSet(boolean value) {
Line 10115... Line 10886...
10115
 
10886
 
10116
    public double getAmount() {
10887
    public double getAmount() {
10117
      return this.amount;
10888
      return this.amount;
10118
    }
10889
    }
10119
 
10890
 
10120
    public createRefund_args setAmount(double amount) {
10891
    public void setAmount(double amount) {
10121
      this.amount = amount;
10892
      this.amount = amount;
10122
      setAmountIsSet(true);
10893
      setAmountIsSet(true);
10123
      return this;
-
 
10124
    }
10894
    }
10125
 
10895
 
10126
    public void unsetAmount() {
10896
    public void unsetAmount() {
10127
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
10897
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
10128
    }
10898
    }
10129
 
10899
 
10130
    /** Returns true if field amount is set (has been asigned a value) and false otherwise */
10900
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
10131
    public boolean isSetAmount() {
10901
    public boolean isSetAmount() {
10132
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
10902
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
10133
    }
10903
    }
10134
 
10904
 
10135
    public void setAmountIsSet(boolean value) {
10905
    public void setAmountIsSet(boolean value) {
Line 10163... Line 10933...
10163
        break;
10933
        break;
10164
 
10934
 
10165
      }
10935
      }
10166
    }
10936
    }
10167
 
10937
 
10168
    public void setFieldValue(int fieldID, Object value) {
-
 
10169
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10170
    }
-
 
10171
 
-
 
10172
    public Object getFieldValue(_Fields field) {
10938
    public Object getFieldValue(_Fields field) {
10173
      switch (field) {
10939
      switch (field) {
10174
      case ORDER_ID:
10940
      case ORDER_ID:
10175
        return new Long(getOrderId());
10941
        return Long.valueOf(getOrderId());
10176
 
10942
 
10177
      case MERCHANT_TXN_ID:
10943
      case MERCHANT_TXN_ID:
10178
        return new Long(getMerchantTxnId());
10944
        return Long.valueOf(getMerchantTxnId());
10179
 
10945
 
10180
      case AMOUNT:
10946
      case AMOUNT:
10181
        return new Double(getAmount());
10947
        return Double.valueOf(getAmount());
10182
 
10948
 
10183
      }
10949
      }
10184
      throw new IllegalStateException();
10950
      throw new IllegalStateException();
10185
    }
10951
    }
10186
 
10952
 
10187
    public Object getFieldValue(int fieldId) {
-
 
10188
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10189
    }
-
 
10190
 
-
 
10191
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10192
    public boolean isSet(_Fields field) {
10954
    public boolean isSet(_Fields field) {
-
 
10955
      if (field == null) {
-
 
10956
        throw new IllegalArgumentException();
-
 
10957
      }
-
 
10958
 
10193
      switch (field) {
10959
      switch (field) {
10194
      case ORDER_ID:
10960
      case ORDER_ID:
10195
        return isSetOrderId();
10961
        return isSetOrderId();
10196
      case MERCHANT_TXN_ID:
10962
      case MERCHANT_TXN_ID:
10197
        return isSetMerchantTxnId();
10963
        return isSetMerchantTxnId();
Line 10199... Line 10965...
10199
        return isSetAmount();
10965
        return isSetAmount();
10200
      }
10966
      }
10201
      throw new IllegalStateException();
10967
      throw new IllegalStateException();
10202
    }
10968
    }
10203
 
10969
 
10204
    public boolean isSet(int fieldID) {
-
 
10205
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10206
    }
-
 
10207
 
-
 
10208
    @Override
10970
    @Override
10209
    public boolean equals(Object that) {
10971
    public boolean equals(Object that) {
10210
      if (that == null)
10972
      if (that == null)
10211
        return false;
10973
        return false;
10212
      if (that instanceof createRefund_args)
10974
      if (that instanceof createRefund_args)
Line 10259... Line 11021...
10259
      }
11021
      }
10260
 
11022
 
10261
      int lastComparison = 0;
11023
      int lastComparison = 0;
10262
      createRefund_args typedOther = (createRefund_args)other;
11024
      createRefund_args typedOther = (createRefund_args)other;
10263
 
11025
 
10264
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
11026
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
10265
      if (lastComparison != 0) {
11027
      if (lastComparison != 0) {
10266
        return lastComparison;
11028
        return lastComparison;
10267
      }
11029
      }
-
 
11030
      if (isSetOrderId()) {
10268
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
11031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
10269
      if (lastComparison != 0) {
11032
        if (lastComparison != 0) {
10270
        return lastComparison;
11033
          return lastComparison;
-
 
11034
        }
10271
      }
11035
      }
10272
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(isSetMerchantTxnId());
11036
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
10273
      if (lastComparison != 0) {
11037
      if (lastComparison != 0) {
10274
        return lastComparison;
11038
        return lastComparison;
10275
      }
11039
      }
-
 
11040
      if (isSetMerchantTxnId()) {
10276
      lastComparison = TBaseHelper.compareTo(merchantTxnId, typedOther.merchantTxnId);
11041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
10277
      if (lastComparison != 0) {
11042
        if (lastComparison != 0) {
10278
        return lastComparison;
11043
          return lastComparison;
-
 
11044
        }
10279
      }
11045
      }
10280
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
11046
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
10281
      if (lastComparison != 0) {
11047
      if (lastComparison != 0) {
10282
        return lastComparison;
11048
        return lastComparison;
10283
      }
11049
      }
-
 
11050
      if (isSetAmount()) {
10284
      lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
11051
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
10285
      if (lastComparison != 0) {
11052
        if (lastComparison != 0) {
10286
        return lastComparison;
11053
          return lastComparison;
-
 
11054
        }
10287
      }
11055
      }
10288
      return 0;
11056
      return 0;
10289
    }
11057
    }
10290
 
11058
 
-
 
11059
    public _Fields fieldForId(int fieldId) {
-
 
11060
      return _Fields.findByThriftId(fieldId);
-
 
11061
    }
-
 
11062
 
10291
    public void read(TProtocol iprot) throws TException {
11063
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10292
      TField field;
11064
      org.apache.thrift.protocol.TField field;
10293
      iprot.readStructBegin();
11065
      iprot.readStructBegin();
10294
      while (true)
11066
      while (true)
10295
      {
11067
      {
10296
        field = iprot.readFieldBegin();
11068
        field = iprot.readFieldBegin();
10297
        if (field.type == TType.STOP) { 
11069
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10298
          break;
11070
          break;
10299
        }
11071
        }
10300
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10301
        if (fieldId == null) {
-
 
10302
          TProtocolUtil.skip(iprot, field.type);
-
 
10303
        } else {
-
 
10304
          switch (fieldId) {
11072
        switch (field.id) {
10305
            case ORDER_ID:
11073
          case 1: // ORDER_ID
10306
              if (field.type == TType.I64) {
11074
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10307
                this.orderId = iprot.readI64();
11075
              this.orderId = iprot.readI64();
10308
                setOrderIdIsSet(true);
11076
              setOrderIdIsSet(true);
10309
              } else { 
11077
            } else { 
10310
                TProtocolUtil.skip(iprot, field.type);
11078
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10311
              }
11079
            }
10312
              break;
11080
            break;
10313
            case MERCHANT_TXN_ID:
11081
          case 2: // MERCHANT_TXN_ID
10314
              if (field.type == TType.I64) {
11082
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10315
                this.merchantTxnId = iprot.readI64();
11083
              this.merchantTxnId = iprot.readI64();
10316
                setMerchantTxnIdIsSet(true);
11084
              setMerchantTxnIdIsSet(true);
10317
              } else { 
11085
            } else { 
10318
                TProtocolUtil.skip(iprot, field.type);
11086
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10319
              }
11087
            }
10320
              break;
11088
            break;
10321
            case AMOUNT:
11089
          case 3: // AMOUNT
10322
              if (field.type == TType.DOUBLE) {
11090
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
10323
                this.amount = iprot.readDouble();
11091
              this.amount = iprot.readDouble();
10324
                setAmountIsSet(true);
11092
              setAmountIsSet(true);
10325
              } else { 
11093
            } else { 
10326
                TProtocolUtil.skip(iprot, field.type);
11094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10327
              }
11095
            }
10328
              break;
11096
            break;
10329
          }
11097
          default:
10330
          iprot.readFieldEnd();
11098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10331
        }
11099
        }
-
 
11100
        iprot.readFieldEnd();
10332
      }
11101
      }
10333
      iprot.readStructEnd();
11102
      iprot.readStructEnd();
10334
      validate();
11103
      validate();
10335
    }
11104
    }
10336
 
11105
 
10337
    public void write(TProtocol oprot) throws TException {
11106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10338
      validate();
11107
      validate();
10339
 
11108
 
10340
      oprot.writeStructBegin(STRUCT_DESC);
11109
      oprot.writeStructBegin(STRUCT_DESC);
10341
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
11110
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
10342
      oprot.writeI64(this.orderId);
11111
      oprot.writeI64(this.orderId);
Line 10369... Line 11138...
10369
      first = false;
11138
      first = false;
10370
      sb.append(")");
11139
      sb.append(")");
10371
      return sb.toString();
11140
      return sb.toString();
10372
    }
11141
    }
10373
 
11142
 
10374
    public void validate() throws TException {
11143
    public void validate() throws org.apache.thrift.TException {
10375
      // check for required fields
11144
      // check for required fields
10376
    }
11145
    }
10377
 
11146
 
-
 
11147
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11148
      try {
-
 
11149
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11150
      } catch (org.apache.thrift.TException te) {
-
 
11151
        throw new java.io.IOException(te);
-
 
11152
      }
-
 
11153
    }
-
 
11154
 
-
 
11155
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11156
      try {
-
 
11157
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11158
      } catch (org.apache.thrift.TException te) {
-
 
11159
        throw new java.io.IOException(te);
-
 
11160
      }
-
 
11161
    }
-
 
11162
 
10378
  }
11163
  }
10379
 
11164
 
10380
  public static class createRefund_result implements TBase<createRefund_result._Fields>, java.io.Serializable, Cloneable, Comparable<createRefund_result>   {
11165
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
10381
    private static final TStruct STRUCT_DESC = new TStruct("createRefund_result");
11166
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
10382
 
11167
 
10383
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
11168
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
10384
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
11169
    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);
10385
 
11170
 
10386
    private long success;
11171
    private long success; // required
10387
    private PaymentException pe;
11172
    private PaymentException pe; // required
10388
 
11173
 
10389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10390
    public enum _Fields implements TFieldIdEnum {
11175
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10391
      SUCCESS((short)0, "success"),
11176
      SUCCESS((short)0, "success"),
10392
      PE((short)1, "pe");
11177
      PE((short)1, "pe");
10393
 
11178
 
10394
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11179
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10396
 
11180
 
10397
      static {
11181
      static {
10398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11182
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10399
          byId.put((int)field._thriftId, field);
-
 
10400
          byName.put(field.getFieldName(), field);
11183
          byName.put(field.getFieldName(), field);
10401
        }
11184
        }
10402
      }
11185
      }
10403
 
11186
 
10404
      /**
11187
      /**
10405
       * Find the _Fields constant that matches fieldId, or null if its not found.
11188
       * Find the _Fields constant that matches fieldId, or null if its not found.
10406
       */
11189
       */
10407
      public static _Fields findByThriftId(int fieldId) {
11190
      public static _Fields findByThriftId(int fieldId) {
10408
        return byId.get(fieldId);
11191
        switch(fieldId) {
-
 
11192
          case 0: // SUCCESS
-
 
11193
            return SUCCESS;
-
 
11194
          case 1: // PE
-
 
11195
            return PE;
-
 
11196
          default:
-
 
11197
            return null;
-
 
11198
        }
10409
      }
11199
      }
10410
 
11200
 
10411
      /**
11201
      /**
10412
       * Find the _Fields constant that matches fieldId, throwing an exception
11202
       * Find the _Fields constant that matches fieldId, throwing an exception
10413
       * if it is not found.
11203
       * if it is not found.
Line 10444... Line 11234...
10444
 
11234
 
10445
    // isset id assignments
11235
    // isset id assignments
10446
    private static final int __SUCCESS_ISSET_ID = 0;
11236
    private static final int __SUCCESS_ISSET_ID = 0;
10447
    private BitSet __isset_bit_vector = new BitSet(1);
11237
    private BitSet __isset_bit_vector = new BitSet(1);
10448
 
11238
 
10449
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10450
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
10451
          new FieldValueMetaData(TType.I64)));
-
 
10452
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
10453
          new FieldValueMetaData(TType.STRUCT)));
-
 
10454
    }});
-
 
10455
 
-
 
10456
    static {
11240
    static {
-
 
11241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11244
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
11246
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10457
      FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
11247
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
10458
    }
11248
    }
10459
 
11249
 
10460
    public createRefund_result() {
11250
    public createRefund_result() {
10461
    }
11251
    }
10462
 
11252
 
Line 10484... Line 11274...
10484
 
11274
 
10485
    public createRefund_result deepCopy() {
11275
    public createRefund_result deepCopy() {
10486
      return new createRefund_result(this);
11276
      return new createRefund_result(this);
10487
    }
11277
    }
10488
 
11278
 
10489
    @Deprecated
11279
    @Override
10490
    public createRefund_result clone() {
11280
    public void clear() {
10491
      return new createRefund_result(this);
11281
      setSuccessIsSet(false);
-
 
11282
      this.success = 0;
-
 
11283
      this.pe = null;
10492
    }
11284
    }
10493
 
11285
 
10494
    public long getSuccess() {
11286
    public long getSuccess() {
10495
      return this.success;
11287
      return this.success;
10496
    }
11288
    }
10497
 
11289
 
10498
    public createRefund_result setSuccess(long success) {
11290
    public void setSuccess(long success) {
10499
      this.success = success;
11291
      this.success = success;
10500
      setSuccessIsSet(true);
11292
      setSuccessIsSet(true);
10501
      return this;
-
 
10502
    }
11293
    }
10503
 
11294
 
10504
    public void unsetSuccess() {
11295
    public void unsetSuccess() {
10505
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11296
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10506
    }
11297
    }
10507
 
11298
 
10508
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
11299
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10509
    public boolean isSetSuccess() {
11300
    public boolean isSetSuccess() {
10510
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11301
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10511
    }
11302
    }
10512
 
11303
 
10513
    public void setSuccessIsSet(boolean value) {
11304
    public void setSuccessIsSet(boolean value) {
Line 10516... Line 11307...
10516
 
11307
 
10517
    public PaymentException getPe() {
11308
    public PaymentException getPe() {
10518
      return this.pe;
11309
      return this.pe;
10519
    }
11310
    }
10520
 
11311
 
10521
    public createRefund_result setPe(PaymentException pe) {
11312
    public void setPe(PaymentException pe) {
10522
      this.pe = pe;
11313
      this.pe = pe;
10523
      return this;
-
 
10524
    }
11314
    }
10525
 
11315
 
10526
    public void unsetPe() {
11316
    public void unsetPe() {
10527
      this.pe = null;
11317
      this.pe = null;
10528
    }
11318
    }
10529
 
11319
 
10530
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
11320
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
10531
    public boolean isSetPe() {
11321
    public boolean isSetPe() {
10532
      return this.pe != null;
11322
      return this.pe != null;
10533
    }
11323
    }
10534
 
11324
 
10535
    public void setPeIsSet(boolean value) {
11325
    public void setPeIsSet(boolean value) {
Line 10557... Line 11347...
10557
        break;
11347
        break;
10558
 
11348
 
10559
      }
11349
      }
10560
    }
11350
    }
10561
 
11351
 
10562
    public void setFieldValue(int fieldID, Object value) {
-
 
10563
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10564
    }
-
 
10565
 
-
 
10566
    public Object getFieldValue(_Fields field) {
11352
    public Object getFieldValue(_Fields field) {
10567
      switch (field) {
11353
      switch (field) {
10568
      case SUCCESS:
11354
      case SUCCESS:
10569
        return new Long(getSuccess());
11355
        return Long.valueOf(getSuccess());
10570
 
11356
 
10571
      case PE:
11357
      case PE:
10572
        return getPe();
11358
        return getPe();
10573
 
11359
 
10574
      }
11360
      }
10575
      throw new IllegalStateException();
11361
      throw new IllegalStateException();
10576
    }
11362
    }
10577
 
11363
 
10578
    public Object getFieldValue(int fieldId) {
-
 
10579
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10580
    }
-
 
10581
 
-
 
10582
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10583
    public boolean isSet(_Fields field) {
11365
    public boolean isSet(_Fields field) {
-
 
11366
      if (field == null) {
-
 
11367
        throw new IllegalArgumentException();
-
 
11368
      }
-
 
11369
 
10584
      switch (field) {
11370
      switch (field) {
10585
      case SUCCESS:
11371
      case SUCCESS:
10586
        return isSetSuccess();
11372
        return isSetSuccess();
10587
      case PE:
11373
      case PE:
10588
        return isSetPe();
11374
        return isSetPe();
10589
      }
11375
      }
10590
      throw new IllegalStateException();
11376
      throw new IllegalStateException();
10591
    }
11377
    }
10592
 
11378
 
10593
    public boolean isSet(int fieldID) {
-
 
10594
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10595
    }
-
 
10596
 
-
 
10597
    @Override
11379
    @Override
10598
    public boolean equals(Object that) {
11380
    public boolean equals(Object that) {
10599
      if (that == null)
11381
      if (that == null)
10600
        return false;
11382
        return false;
10601
      if (that instanceof createRefund_result)
11383
      if (that instanceof createRefund_result)
Line 10639... Line 11421...
10639
      }
11421
      }
10640
 
11422
 
10641
      int lastComparison = 0;
11423
      int lastComparison = 0;
10642
      createRefund_result typedOther = (createRefund_result)other;
11424
      createRefund_result typedOther = (createRefund_result)other;
10643
 
11425
 
10644
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
11426
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10645
      if (lastComparison != 0) {
11427
      if (lastComparison != 0) {
10646
        return lastComparison;
11428
        return lastComparison;
10647
      }
11429
      }
-
 
11430
      if (isSetSuccess()) {
10648
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
11431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10649
      if (lastComparison != 0) {
11432
        if (lastComparison != 0) {
10650
        return lastComparison;
11433
          return lastComparison;
-
 
11434
        }
10651
      }
11435
      }
10652
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
11436
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
10653
      if (lastComparison != 0) {
11437
      if (lastComparison != 0) {
10654
        return lastComparison;
11438
        return lastComparison;
10655
      }
11439
      }
-
 
11440
      if (isSetPe()) {
10656
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
11441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10657
      if (lastComparison != 0) {
11442
        if (lastComparison != 0) {
10658
        return lastComparison;
11443
          return lastComparison;
-
 
11444
        }
10659
      }
11445
      }
10660
      return 0;
11446
      return 0;
10661
    }
11447
    }
10662
 
11448
 
-
 
11449
    public _Fields fieldForId(int fieldId) {
-
 
11450
      return _Fields.findByThriftId(fieldId);
-
 
11451
    }
-
 
11452
 
10663
    public void read(TProtocol iprot) throws TException {
11453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10664
      TField field;
11454
      org.apache.thrift.protocol.TField field;
10665
      iprot.readStructBegin();
11455
      iprot.readStructBegin();
10666
      while (true)
11456
      while (true)
10667
      {
11457
      {
10668
        field = iprot.readFieldBegin();
11458
        field = iprot.readFieldBegin();
10669
        if (field.type == TType.STOP) { 
11459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10670
          break;
11460
          break;
10671
        }
11461
        }
10672
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10673
        if (fieldId == null) {
-
 
10674
          TProtocolUtil.skip(iprot, field.type);
-
 
10675
        } else {
-
 
10676
          switch (fieldId) {
11462
        switch (field.id) {
10677
            case SUCCESS:
11463
          case 0: // SUCCESS
10678
              if (field.type == TType.I64) {
11464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10679
                this.success = iprot.readI64();
11465
              this.success = iprot.readI64();
10680
                setSuccessIsSet(true);
11466
              setSuccessIsSet(true);
10681
              } else { 
11467
            } else { 
10682
                TProtocolUtil.skip(iprot, field.type);
11468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10683
              }
11469
            }
10684
              break;
11470
            break;
10685
            case PE:
11471
          case 1: // PE
10686
              if (field.type == TType.STRUCT) {
11472
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10687
                this.pe = new PaymentException();
11473
              this.pe = new PaymentException();
10688
                this.pe.read(iprot);
11474
              this.pe.read(iprot);
10689
              } else { 
11475
            } else { 
10690
                TProtocolUtil.skip(iprot, field.type);
11476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10691
              }
11477
            }
10692
              break;
11478
            break;
10693
          }
11479
          default:
10694
          iprot.readFieldEnd();
11480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10695
        }
11481
        }
-
 
11482
        iprot.readFieldEnd();
10696
      }
11483
      }
10697
      iprot.readStructEnd();
11484
      iprot.readStructEnd();
10698
      validate();
11485
      validate();
10699
    }
11486
    }
10700
 
11487
 
10701
    public void write(TProtocol oprot) throws TException {
11488
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10702
      oprot.writeStructBegin(STRUCT_DESC);
11489
      oprot.writeStructBegin(STRUCT_DESC);
10703
 
11490
 
10704
      if (this.isSetSuccess()) {
11491
      if (this.isSetSuccess()) {
10705
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11492
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10706
        oprot.writeI64(this.success);
11493
        oprot.writeI64(this.success);
Line 10732... Line 11519...
10732
      first = false;
11519
      first = false;
10733
      sb.append(")");
11520
      sb.append(")");
10734
      return sb.toString();
11521
      return sb.toString();
10735
    }
11522
    }
10736
 
11523
 
10737
    public void validate() throws TException {
11524
    public void validate() throws org.apache.thrift.TException {
10738
      // check for required fields
11525
      // check for required fields
10739
    }
11526
    }
10740
 
11527
 
-
 
11528
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11529
      try {
-
 
11530
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11531
      } catch (org.apache.thrift.TException te) {
-
 
11532
        throw new java.io.IOException(te);
-
 
11533
      }
-
 
11534
    }
-
 
11535
 
-
 
11536
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11537
      try {
-
 
11538
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11539
      } catch (org.apache.thrift.TException te) {
-
 
11540
        throw new java.io.IOException(te);
-
 
11541
      }
-
 
11542
    }
-
 
11543
 
10741
  }
11544
  }
10742
 
11545
 
10743
  public static class capturePayment_args implements TBase<capturePayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<capturePayment_args>   {
11546
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
10744
    private static final TStruct STRUCT_DESC = new TStruct("capturePayment_args");
11547
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
10745
 
11548
 
10746
    private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)1);
11549
    private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)1);
10747
 
11550
 
10748
    private long merchantTxnId;
11551
    private long merchantTxnId; // required
10749
 
11552
 
10750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11553
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10751
    public enum _Fields implements TFieldIdEnum {
11554
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10752
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
11555
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
10753
 
11556
 
10754
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11557
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10756
 
11558
 
10757
      static {
11559
      static {
10758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11560
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10759
          byId.put((int)field._thriftId, field);
-
 
10760
          byName.put(field.getFieldName(), field);
11561
          byName.put(field.getFieldName(), field);
10761
        }
11562
        }
10762
      }
11563
      }
10763
 
11564
 
10764
      /**
11565
      /**
10765
       * Find the _Fields constant that matches fieldId, or null if its not found.
11566
       * Find the _Fields constant that matches fieldId, or null if its not found.
10766
       */
11567
       */
10767
      public static _Fields findByThriftId(int fieldId) {
11568
      public static _Fields findByThriftId(int fieldId) {
10768
        return byId.get(fieldId);
11569
        switch(fieldId) {
-
 
11570
          case 1: // MERCHANT_TXN_ID
-
 
11571
            return MERCHANT_TXN_ID;
-
 
11572
          default:
-
 
11573
            return null;
-
 
11574
        }
10769
      }
11575
      }
10770
 
11576
 
10771
      /**
11577
      /**
10772
       * Find the _Fields constant that matches fieldId, throwing an exception
11578
       * Find the _Fields constant that matches fieldId, throwing an exception
10773
       * if it is not found.
11579
       * if it is not found.
Line 10804... Line 11610...
10804
 
11610
 
10805
    // isset id assignments
11611
    // isset id assignments
10806
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
11612
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
10807
    private BitSet __isset_bit_vector = new BitSet(1);
11613
    private BitSet __isset_bit_vector = new BitSet(1);
10808
 
11614
 
10809
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11615
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10810
      put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT, 
-
 
10811
          new FieldValueMetaData(TType.I64)));
-
 
10812
    }});
-
 
10813
 
-
 
10814
    static {
11616
    static {
-
 
11617
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11618
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11619
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11620
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10815
      FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
11621
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
10816
    }
11622
    }
10817
 
11623
 
10818
    public capturePayment_args() {
11624
    public capturePayment_args() {
10819
    }
11625
    }
10820
 
11626
 
Line 10837... Line 11643...
10837
 
11643
 
10838
    public capturePayment_args deepCopy() {
11644
    public capturePayment_args deepCopy() {
10839
      return new capturePayment_args(this);
11645
      return new capturePayment_args(this);
10840
    }
11646
    }
10841
 
11647
 
10842
    @Deprecated
11648
    @Override
10843
    public capturePayment_args clone() {
11649
    public void clear() {
10844
      return new capturePayment_args(this);
11650
      setMerchantTxnIdIsSet(false);
-
 
11651
      this.merchantTxnId = 0;
10845
    }
11652
    }
10846
 
11653
 
10847
    public long getMerchantTxnId() {
11654
    public long getMerchantTxnId() {
10848
      return this.merchantTxnId;
11655
      return this.merchantTxnId;
10849
    }
11656
    }
10850
 
11657
 
10851
    public capturePayment_args setMerchantTxnId(long merchantTxnId) {
11658
    public void setMerchantTxnId(long merchantTxnId) {
10852
      this.merchantTxnId = merchantTxnId;
11659
      this.merchantTxnId = merchantTxnId;
10853
      setMerchantTxnIdIsSet(true);
11660
      setMerchantTxnIdIsSet(true);
10854
      return this;
-
 
10855
    }
11661
    }
10856
 
11662
 
10857
    public void unsetMerchantTxnId() {
11663
    public void unsetMerchantTxnId() {
10858
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
11664
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
10859
    }
11665
    }
10860
 
11666
 
10861
    /** Returns true if field merchantTxnId is set (has been asigned a value) and false otherwise */
11667
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
10862
    public boolean isSetMerchantTxnId() {
11668
    public boolean isSetMerchantTxnId() {
10863
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
11669
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
10864
    }
11670
    }
10865
 
11671
 
10866
    public void setMerchantTxnIdIsSet(boolean value) {
11672
    public void setMerchantTxnIdIsSet(boolean value) {
Line 10878... Line 11684...
10878
        break;
11684
        break;
10879
 
11685
 
10880
      }
11686
      }
10881
    }
11687
    }
10882
 
11688
 
10883
    public void setFieldValue(int fieldID, Object value) {
-
 
10884
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10885
    }
-
 
10886
 
-
 
10887
    public Object getFieldValue(_Fields field) {
11689
    public Object getFieldValue(_Fields field) {
10888
      switch (field) {
11690
      switch (field) {
10889
      case MERCHANT_TXN_ID:
11691
      case MERCHANT_TXN_ID:
10890
        return new Long(getMerchantTxnId());
11692
        return Long.valueOf(getMerchantTxnId());
10891
 
11693
 
10892
      }
11694
      }
10893
      throw new IllegalStateException();
11695
      throw new IllegalStateException();
10894
    }
11696
    }
10895
 
11697
 
10896
    public Object getFieldValue(int fieldId) {
-
 
10897
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10898
    }
-
 
10899
 
-
 
10900
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11698
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10901
    public boolean isSet(_Fields field) {
11699
    public boolean isSet(_Fields field) {
-
 
11700
      if (field == null) {
-
 
11701
        throw new IllegalArgumentException();
-
 
11702
      }
-
 
11703
 
10902
      switch (field) {
11704
      switch (field) {
10903
      case MERCHANT_TXN_ID:
11705
      case MERCHANT_TXN_ID:
10904
        return isSetMerchantTxnId();
11706
        return isSetMerchantTxnId();
10905
      }
11707
      }
10906
      throw new IllegalStateException();
11708
      throw new IllegalStateException();
10907
    }
11709
    }
10908
 
11710
 
10909
    public boolean isSet(int fieldID) {
-
 
10910
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10911
    }
-
 
10912
 
-
 
10913
    @Override
11711
    @Override
10914
    public boolean equals(Object that) {
11712
    public boolean equals(Object that) {
10915
      if (that == null)
11713
      if (that == null)
10916
        return false;
11714
        return false;
10917
      if (that instanceof capturePayment_args)
11715
      if (that instanceof capturePayment_args)
Line 10946... Line 11744...
10946
      }
11744
      }
10947
 
11745
 
10948
      int lastComparison = 0;
11746
      int lastComparison = 0;
10949
      capturePayment_args typedOther = (capturePayment_args)other;
11747
      capturePayment_args typedOther = (capturePayment_args)other;
10950
 
11748
 
10951
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(isSetMerchantTxnId());
11749
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
10952
      if (lastComparison != 0) {
11750
      if (lastComparison != 0) {
10953
        return lastComparison;
11751
        return lastComparison;
10954
      }
11752
      }
-
 
11753
      if (isSetMerchantTxnId()) {
10955
      lastComparison = TBaseHelper.compareTo(merchantTxnId, typedOther.merchantTxnId);
11754
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
10956
      if (lastComparison != 0) {
11755
        if (lastComparison != 0) {
10957
        return lastComparison;
11756
          return lastComparison;
-
 
11757
        }
10958
      }
11758
      }
10959
      return 0;
11759
      return 0;
10960
    }
11760
    }
10961
 
11761
 
-
 
11762
    public _Fields fieldForId(int fieldId) {
-
 
11763
      return _Fields.findByThriftId(fieldId);
-
 
11764
    }
-
 
11765
 
10962
    public void read(TProtocol iprot) throws TException {
11766
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10963
      TField field;
11767
      org.apache.thrift.protocol.TField field;
10964
      iprot.readStructBegin();
11768
      iprot.readStructBegin();
10965
      while (true)
11769
      while (true)
10966
      {
11770
      {
10967
        field = iprot.readFieldBegin();
11771
        field = iprot.readFieldBegin();
10968
        if (field.type == TType.STOP) { 
11772
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10969
          break;
11773
          break;
10970
        }
11774
        }
10971
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10972
        if (fieldId == null) {
-
 
10973
          TProtocolUtil.skip(iprot, field.type);
-
 
10974
        } else {
-
 
10975
          switch (fieldId) {
11775
        switch (field.id) {
10976
            case MERCHANT_TXN_ID:
11776
          case 1: // MERCHANT_TXN_ID
10977
              if (field.type == TType.I64) {
11777
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10978
                this.merchantTxnId = iprot.readI64();
11778
              this.merchantTxnId = iprot.readI64();
10979
                setMerchantTxnIdIsSet(true);
11779
              setMerchantTxnIdIsSet(true);
10980
              } else { 
11780
            } else { 
10981
                TProtocolUtil.skip(iprot, field.type);
11781
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10982
              }
11782
            }
10983
              break;
11783
            break;
10984
          }
11784
          default:
10985
          iprot.readFieldEnd();
11785
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10986
        }
11786
        }
-
 
11787
        iprot.readFieldEnd();
10987
      }
11788
      }
10988
      iprot.readStructEnd();
11789
      iprot.readStructEnd();
10989
      validate();
11790
      validate();
10990
    }
11791
    }
10991
 
11792
 
10992
    public void write(TProtocol oprot) throws TException {
11793
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10993
      validate();
11794
      validate();
10994
 
11795
 
10995
      oprot.writeStructBegin(STRUCT_DESC);
11796
      oprot.writeStructBegin(STRUCT_DESC);
10996
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
11797
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
10997
      oprot.writeI64(this.merchantTxnId);
11798
      oprot.writeI64(this.merchantTxnId);
Line 11010... Line 11811...
11010
      first = false;
11811
      first = false;
11011
      sb.append(")");
11812
      sb.append(")");
11012
      return sb.toString();
11813
      return sb.toString();
11013
    }
11814
    }
11014
 
11815
 
11015
    public void validate() throws TException {
11816
    public void validate() throws org.apache.thrift.TException {
11016
      // check for required fields
11817
      // check for required fields
11017
    }
11818
    }
11018
 
11819
 
-
 
11820
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11821
      try {
-
 
11822
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11823
      } catch (org.apache.thrift.TException te) {
-
 
11824
        throw new java.io.IOException(te);
-
 
11825
      }
-
 
11826
    }
-
 
11827
 
-
 
11828
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11829
      try {
-
 
11830
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11831
      } catch (org.apache.thrift.TException te) {
-
 
11832
        throw new java.io.IOException(te);
-
 
11833
      }
-
 
11834
    }
-
 
11835
 
11019
  }
11836
  }
11020
 
11837
 
11021
  public static class capturePayment_result implements TBase<capturePayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<capturePayment_result>   {
11838
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
11022
    private static final TStruct STRUCT_DESC = new TStruct("capturePayment_result");
11839
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
11023
 
11840
 
11024
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
11841
    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);
11025
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
11842
    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);
11026
 
11843
 
11027
    private boolean success;
11844
    private boolean success; // required
11028
    private PaymentException pe;
11845
    private PaymentException pe; // required
11029
 
11846
 
11030
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11031
    public enum _Fields implements TFieldIdEnum {
11848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11032
      SUCCESS((short)0, "success"),
11849
      SUCCESS((short)0, "success"),
11033
      PE((short)1, "pe");
11850
      PE((short)1, "pe");
11034
 
11851
 
11035
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
11036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11037
 
11853
 
11038
      static {
11854
      static {
11039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11040
          byId.put((int)field._thriftId, field);
-
 
11041
          byName.put(field.getFieldName(), field);
11856
          byName.put(field.getFieldName(), field);
11042
        }
11857
        }
11043
      }
11858
      }
11044
 
11859
 
11045
      /**
11860
      /**
11046
       * Find the _Fields constant that matches fieldId, or null if its not found.
11861
       * Find the _Fields constant that matches fieldId, or null if its not found.
11047
       */
11862
       */
11048
      public static _Fields findByThriftId(int fieldId) {
11863
      public static _Fields findByThriftId(int fieldId) {
11049
        return byId.get(fieldId);
11864
        switch(fieldId) {
-
 
11865
          case 0: // SUCCESS
-
 
11866
            return SUCCESS;
-
 
11867
          case 1: // PE
-
 
11868
            return PE;
-
 
11869
          default:
-
 
11870
            return null;
-
 
11871
        }
11050
      }
11872
      }
11051
 
11873
 
11052
      /**
11874
      /**
11053
       * Find the _Fields constant that matches fieldId, throwing an exception
11875
       * Find the _Fields constant that matches fieldId, throwing an exception
11054
       * if it is not found.
11876
       * if it is not found.
Line 11085... Line 11907...
11085
 
11907
 
11086
    // isset id assignments
11908
    // isset id assignments
11087
    private static final int __SUCCESS_ISSET_ID = 0;
11909
    private static final int __SUCCESS_ISSET_ID = 0;
11088
    private BitSet __isset_bit_vector = new BitSet(1);
11910
    private BitSet __isset_bit_vector = new BitSet(1);
11089
 
11911
 
11090
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11912
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11091
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
11092
          new FieldValueMetaData(TType.BOOL)));
-
 
11093
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
11094
          new FieldValueMetaData(TType.STRUCT)));
-
 
11095
    }});
-
 
11096
 
-
 
11097
    static {
11913
    static {
-
 
11914
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11915
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11916
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
11917
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
11919
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11098
      FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
11920
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
11099
    }
11921
    }
11100
 
11922
 
11101
    public capturePayment_result() {
11923
    public capturePayment_result() {
11102
    }
11924
    }
11103
 
11925
 
Line 11125... Line 11947...
11125
 
11947
 
11126
    public capturePayment_result deepCopy() {
11948
    public capturePayment_result deepCopy() {
11127
      return new capturePayment_result(this);
11949
      return new capturePayment_result(this);
11128
    }
11950
    }
11129
 
11951
 
11130
    @Deprecated
11952
    @Override
11131
    public capturePayment_result clone() {
11953
    public void clear() {
11132
      return new capturePayment_result(this);
11954
      setSuccessIsSet(false);
-
 
11955
      this.success = false;
-
 
11956
      this.pe = null;
11133
    }
11957
    }
11134
 
11958
 
11135
    public boolean isSuccess() {
11959
    public boolean isSuccess() {
11136
      return this.success;
11960
      return this.success;
11137
    }
11961
    }
11138
 
11962
 
11139
    public capturePayment_result setSuccess(boolean success) {
11963
    public void setSuccess(boolean success) {
11140
      this.success = success;
11964
      this.success = success;
11141
      setSuccessIsSet(true);
11965
      setSuccessIsSet(true);
11142
      return this;
-
 
11143
    }
11966
    }
11144
 
11967
 
11145
    public void unsetSuccess() {
11968
    public void unsetSuccess() {
11146
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11969
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11147
    }
11970
    }
11148
 
11971
 
11149
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
11972
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11150
    public boolean isSetSuccess() {
11973
    public boolean isSetSuccess() {
11151
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11974
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11152
    }
11975
    }
11153
 
11976
 
11154
    public void setSuccessIsSet(boolean value) {
11977
    public void setSuccessIsSet(boolean value) {
Line 11157... Line 11980...
11157
 
11980
 
11158
    public PaymentException getPe() {
11981
    public PaymentException getPe() {
11159
      return this.pe;
11982
      return this.pe;
11160
    }
11983
    }
11161
 
11984
 
11162
    public capturePayment_result setPe(PaymentException pe) {
11985
    public void setPe(PaymentException pe) {
11163
      this.pe = pe;
11986
      this.pe = pe;
11164
      return this;
-
 
11165
    }
11987
    }
11166
 
11988
 
11167
    public void unsetPe() {
11989
    public void unsetPe() {
11168
      this.pe = null;
11990
      this.pe = null;
11169
    }
11991
    }
11170
 
11992
 
11171
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
11993
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
11172
    public boolean isSetPe() {
11994
    public boolean isSetPe() {
11173
      return this.pe != null;
11995
      return this.pe != null;
11174
    }
11996
    }
11175
 
11997
 
11176
    public void setPeIsSet(boolean value) {
11998
    public void setPeIsSet(boolean value) {
Line 11198... Line 12020...
11198
        break;
12020
        break;
11199
 
12021
 
11200
      }
12022
      }
11201
    }
12023
    }
11202
 
12024
 
11203
    public void setFieldValue(int fieldID, Object value) {
-
 
11204
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
11205
    }
-
 
11206
 
-
 
11207
    public Object getFieldValue(_Fields field) {
12025
    public Object getFieldValue(_Fields field) {
11208
      switch (field) {
12026
      switch (field) {
11209
      case SUCCESS:
12027
      case SUCCESS:
11210
        return new Boolean(isSuccess());
12028
        return Boolean.valueOf(isSuccess());
11211
 
12029
 
11212
      case PE:
12030
      case PE:
11213
        return getPe();
12031
        return getPe();
11214
 
12032
 
11215
      }
12033
      }
11216
      throw new IllegalStateException();
12034
      throw new IllegalStateException();
11217
    }
12035
    }
11218
 
12036
 
11219
    public Object getFieldValue(int fieldId) {
-
 
11220
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
11221
    }
-
 
11222
 
-
 
11223
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11224
    public boolean isSet(_Fields field) {
12038
    public boolean isSet(_Fields field) {
-
 
12039
      if (field == null) {
-
 
12040
        throw new IllegalArgumentException();
-
 
12041
      }
-
 
12042
 
11225
      switch (field) {
12043
      switch (field) {
11226
      case SUCCESS:
12044
      case SUCCESS:
11227
        return isSetSuccess();
12045
        return isSetSuccess();
11228
      case PE:
12046
      case PE:
11229
        return isSetPe();
12047
        return isSetPe();
11230
      }
12048
      }
11231
      throw new IllegalStateException();
12049
      throw new IllegalStateException();
11232
    }
12050
    }
11233
 
12051
 
11234
    public boolean isSet(int fieldID) {
-
 
11235
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
11236
    }
-
 
11237
 
-
 
11238
    @Override
12052
    @Override
11239
    public boolean equals(Object that) {
12053
    public boolean equals(Object that) {
11240
      if (that == null)
12054
      if (that == null)
11241
        return false;
12055
        return false;
11242
      if (that instanceof capturePayment_result)
12056
      if (that instanceof capturePayment_result)
Line 11280... Line 12094...
11280
      }
12094
      }
11281
 
12095
 
11282
      int lastComparison = 0;
12096
      int lastComparison = 0;
11283
      capturePayment_result typedOther = (capturePayment_result)other;
12097
      capturePayment_result typedOther = (capturePayment_result)other;
11284
 
12098
 
11285
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
12099
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11286
      if (lastComparison != 0) {
12100
      if (lastComparison != 0) {
11287
        return lastComparison;
12101
        return lastComparison;
11288
      }
12102
      }
-
 
12103
      if (isSetSuccess()) {
11289
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
12104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11290
      if (lastComparison != 0) {
12105
        if (lastComparison != 0) {
11291
        return lastComparison;
12106
          return lastComparison;
-
 
12107
        }
11292
      }
12108
      }
11293
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
12109
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
11294
      if (lastComparison != 0) {
12110
      if (lastComparison != 0) {
11295
        return lastComparison;
12111
        return lastComparison;
11296
      }
12112
      }
-
 
12113
      if (isSetPe()) {
11297
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
12114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
11298
      if (lastComparison != 0) {
12115
        if (lastComparison != 0) {
11299
        return lastComparison;
12116
          return lastComparison;
-
 
12117
        }
11300
      }
12118
      }
11301
      return 0;
12119
      return 0;
11302
    }
12120
    }
11303
 
12121
 
-
 
12122
    public _Fields fieldForId(int fieldId) {
-
 
12123
      return _Fields.findByThriftId(fieldId);
-
 
12124
    }
-
 
12125
 
11304
    public void read(TProtocol iprot) throws TException {
12126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11305
      TField field;
12127
      org.apache.thrift.protocol.TField field;
11306
      iprot.readStructBegin();
12128
      iprot.readStructBegin();
11307
      while (true)
12129
      while (true)
11308
      {
12130
      {
11309
        field = iprot.readFieldBegin();
12131
        field = iprot.readFieldBegin();
11310
        if (field.type == TType.STOP) { 
12132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11311
          break;
12133
          break;
11312
        }
12134
        }
11313
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
11314
        if (fieldId == null) {
-
 
11315
          TProtocolUtil.skip(iprot, field.type);
-
 
11316
        } else {
-
 
11317
          switch (fieldId) {
12135
        switch (field.id) {
11318
            case SUCCESS:
12136
          case 0: // SUCCESS
11319
              if (field.type == TType.BOOL) {
12137
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11320
                this.success = iprot.readBool();
12138
              this.success = iprot.readBool();
11321
                setSuccessIsSet(true);
12139
              setSuccessIsSet(true);
11322
              } else { 
12140
            } else { 
11323
                TProtocolUtil.skip(iprot, field.type);
12141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11324
              }
12142
            }
11325
              break;
12143
            break;
11326
            case PE:
12144
          case 1: // PE
11327
              if (field.type == TType.STRUCT) {
12145
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11328
                this.pe = new PaymentException();
12146
              this.pe = new PaymentException();
11329
                this.pe.read(iprot);
12147
              this.pe.read(iprot);
11330
              } else { 
12148
            } else { 
11331
                TProtocolUtil.skip(iprot, field.type);
12149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11332
              }
12150
            }
11333
              break;
12151
            break;
11334
          }
12152
          default:
11335
          iprot.readFieldEnd();
12153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11336
        }
12154
        }
-
 
12155
        iprot.readFieldEnd();
11337
      }
12156
      }
11338
      iprot.readStructEnd();
12157
      iprot.readStructEnd();
11339
      validate();
12158
      validate();
11340
    }
12159
    }
11341
 
12160
 
11342
    public void write(TProtocol oprot) throws TException {
12161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11343
      oprot.writeStructBegin(STRUCT_DESC);
12162
      oprot.writeStructBegin(STRUCT_DESC);
11344
 
12163
 
11345
      if (this.isSetSuccess()) {
12164
      if (this.isSetSuccess()) {
11346
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12165
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11347
        oprot.writeBool(this.success);
12166
        oprot.writeBool(this.success);
Line 11373... Line 12192...
11373
      first = false;
12192
      first = false;
11374
      sb.append(")");
12193
      sb.append(")");
11375
      return sb.toString();
12194
      return sb.toString();
11376
    }
12195
    }
11377
 
12196
 
11378
    public void validate() throws TException {
12197
    public void validate() throws org.apache.thrift.TException {
11379
      // check for required fields
12198
      // check for required fields
11380
    }
12199
    }
11381
 
12200
 
-
 
12201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12202
      try {
-
 
12203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12204
      } catch (org.apache.thrift.TException te) {
-
 
12205
        throw new java.io.IOException(te);
-
 
12206
      }
-
 
12207
    }
-
 
12208
 
-
 
12209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12210
      try {
-
 
12211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12212
      } catch (org.apache.thrift.TException te) {
-
 
12213
        throw new java.io.IOException(te);
-
 
12214
      }
-
 
12215
    }
-
 
12216
 
11382
  }
12217
  }
11383
 
12218
 
11384
}
12219
}