Subversion Repositories SmartDukaan

Rev

Rev 4600 | Rev 6228 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
123 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.payments;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
123 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class PaymentService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
123 ashish 26
 
695 rajveer 27
    /**
28
     * create a new payment and return payment id, throws an exception if gateway is not active
29
     * 
30
     * @param userId
31
     * @param amount
32
     * @param gatewayId
33
     * @param txnId
6050 anupam.sin 34
     * @param isDigital
695 rajveer 35
     */
6050 anupam.sin 36
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
123 ashish 37
 
695 rajveer 38
    /**
4141 chandransh 39
     * Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
695 rajveer 40
     * 
41
     * @param userId
42
     * @param fromTime
43
     * @param toTime
44
     * @param status
45
     * @param gatewayId
46
     */
3430 rajveer 47
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 48
 
695 rajveer 49
    /**
4141 chandransh 50
     * Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
695 rajveer 51
     * 
52
     * @param fromTime
53
     * @param toTime
54
     * @param status
55
     * @param gatewayId
56
     */
3430 rajveer 57
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 58
 
695 rajveer 59
    /**
4141 chandransh 60
     * Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
695 rajveer 61
     * 
4141 chandransh 62
     * @param fromTime
63
     * @param toTime
64
     * @param gatewayId
65
     */
66
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException;
67
 
68
    /**
69
     * Get the gateway for the given id.
695 rajveer 70
     * 
71
     * @param id
72
     */
3430 rajveer 73
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 74
 
695 rajveer 75
    /**
4600 varun.gupt 76
     * Get all active Payment Gateways
77
     * 
78
     */
79
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException;
80
 
81
    /**
695 rajveer 82
     * Get a particular payment info
83
     * 
84
     * 
85
     * @param id
86
     */
3430 rajveer 87
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 88
 
695 rajveer 89
    /**
4600 varun.gupt 90
     * Get payments for a transaction. Will raise exception.
695 rajveer 91
     * 
92
     * 
93
     * @param txnId
94
     */
3430 rajveer 95
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
420 ashish 96
 
695 rajveer 97
    /**
4600 varun.gupt 98
     * Get successful payment for a transaction. Will raise exception.
99
     * 
100
     * 
101
     * @param txnId
102
     */
103
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
104
 
105
    /**
695 rajveer 106
     * mark payment successful and store parameters
107
     * 
108
     * 
109
     * @param id
110
     * @param gatewayPaymentId
111
     * @param sessionId
112
     * @param gatewayTxnStatus
113
     * @param description
114
     * @param gatewayTxnId
115
     * @param authCode
116
     * @param referenceCode
117
     * @param errorCode
118
     * @param status
1119 rajveer 119
     * @param gatewayTxnDate
695 rajveer 120
     * @param attributes
121
     */
3430 rajveer 122
    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;
695 rajveer 123
 
1629 ankur.sing 124
    /**
1731 ankur.sing 125
     * Returns the minimum and maximum amounts among successful payments.
126
     * List contains two double values, first minimum and second maximum amount.
1629 ankur.sing 127
     */
3430 rajveer 128
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
1629 ankur.sing 129
 
2462 chandransh 130
    /**
131
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
132
     * In case of any processing error, an exception is raised.
133
     * 
134
     * @param merchantPaymentId
135
     */
3430 rajveer 136
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
2462 chandransh 137
 
2690 chandransh 138
    /**
6050 anupam.sin 139
     * Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
140
     * In case of any processing error, an exception is raised.
141
     * 
142
     * @param merchantPaymentId
143
     * @param rechargeOrderId
144
     */
145
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, org.apache.thrift.TException;
146
 
147
    /**
3616 chandransh 148
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
149
     * In case of any processing error, an exception is raised.
150
     * 
151
     * @param merchantPaymentId
152
     */
153
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
154
 
155
    /**
2690 chandransh 156
     * Create a refund of the given amount corresponding to the given order to be processed through the same
157
     * payment gateway which processed the payment for the corresponding transaction.
158
     * Returns the id of the newly created Refund.
159
     * 
160
     * @param orderId
161
     * @param merchantTxnId
162
     * @param amount
163
     */
3430 rajveer 164
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
2690 chandransh 165
 
3010 chandransh 166
    /**
167
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
4421 mandeep.dh 168
     * transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
169
     * code 104 is	thrown in case no payments are found for the transaction id passed.
170
     * PaymentException is also thrown with error code 106 in case capture was not possible due to connection
171
     * issue. Here, we	payment also gets updated to CAPTURE_INPROCESS state
3010 chandransh 172
     * 
173
     * @param merchantTxnId
174
     */
3430 rajveer 175
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
3010 chandransh 176
 
3956 chandransh 177
    /**
178
     * Adds the given amount to the captured amount of a COD payment.
179
     * Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
180
     * If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
181
     * Also sets the name of the entity which transferred the money, the date on which it was transferred
182
     * and the corresponding transaction id.
183
     * 
184
     * Returns false if the payment couldn't be captured.
185
     * Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
186
     * 
187
     * @param merchantTxnId
188
     * @param amount
189
     * @param xferBy
190
     * @param xferTxnId
191
     * @param xferDate
192
     */
193
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
194
 
4008 mandeep.dh 195
    /**
196
     * Returns the list of payments that require some extra processing and
197
     * which belong to a particular category. This is currently used by CRM
198
     * application.
199
     * 
200
     * @param category
201
     */
202
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
203
 
204
    /**
205
     * Marks a particular payment as processed for a particular cateogory.
206
     * It essentially deletes the payment if it is processed for a particular
207
     * category. This is currently used by CRM application.
208
     * 
209
     * @param paymentId
210
     * @param category
211
     */
212
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
213
 
123 ashish 214
  }
215
 
3430 rajveer 216
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
217
 
6050 anupam.sin 218
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 219
 
220
    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;
221
 
222
    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;
223
 
4141 chandransh 224
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
225
 
3430 rajveer 226
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
227
 
4600 varun.gupt 228
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
229
 
3430 rajveer 230
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
231
 
232
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
233
 
4600 varun.gupt 234
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
235
 
3430 rajveer 236
    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;
237
 
238
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
239
 
240
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
241
 
6050 anupam.sin 242
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
243
 
3616 chandransh 244
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
245
 
3430 rajveer 246
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
247
 
248
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
249
 
3956 chandransh 250
    public void partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.partiallyCapturePayment_call> resultHandler) throws org.apache.thrift.TException;
251
 
4008 mandeep.dh 252
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
253
 
254
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
255
 
3430 rajveer 256
  }
257
 
3374 rajveer 258
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 259
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
260
      public Factory() {}
261
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
262
        return new Client(prot);
263
      }
264
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
265
        return new Client(iprot, oprot);
266
      }
267
    }
268
 
269
    public Client(org.apache.thrift.protocol.TProtocol prot)
123 ashish 270
    {
3430 rajveer 271
      super(prot, prot);
123 ashish 272
    }
273
 
3430 rajveer 274
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 275
      super(iprot, oprot);
123 ashish 276
    }
277
 
6050 anupam.sin 278
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
123 ashish 279
    {
6050 anupam.sin 280
      send_createPayment(userId, amount, gatewayId, txnId, isDigital);
123 ashish 281
      return recv_createPayment();
282
    }
283
 
6050 anupam.sin 284
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws org.apache.thrift.TException
123 ashish 285
    {
286
      createPayment_args args = new createPayment_args();
3430 rajveer 287
      args.setUserId(userId);
288
      args.setAmount(amount);
289
      args.setGatewayId(gatewayId);
290
      args.setTxnId(txnId);
6050 anupam.sin 291
      args.setIsDigital(isDigital);
3430 rajveer 292
      sendBase("createPayment", args);
123 ashish 293
    }
294
 
3430 rajveer 295
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
123 ashish 296
    {
297
      createPayment_result result = new createPayment_result();
3430 rajveer 298
      receiveBase(result, "createPayment");
123 ashish 299
      if (result.isSetSuccess()) {
300
        return result.success;
301
      }
302
      if (result.pe != null) {
303
        throw result.pe;
304
      }
3430 rajveer 305
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
123 ashish 306
    }
307
 
3430 rajveer 308
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 309
    {
695 rajveer 310
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
123 ashish 311
      return recv_getPaymentsForUser();
312
    }
313
 
3430 rajveer 314
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 315
    {
316
      getPaymentsForUser_args args = new getPaymentsForUser_args();
3430 rajveer 317
      args.setUserId(userId);
318
      args.setFromTime(fromTime);
319
      args.setToTime(toTime);
320
      args.setStatus(status);
321
      args.setGatewayId(gatewayId);
322
      sendBase("getPaymentsForUser", args);
123 ashish 323
    }
324
 
3430 rajveer 325
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
123 ashish 326
    {
327
      getPaymentsForUser_result result = new getPaymentsForUser_result();
3430 rajveer 328
      receiveBase(result, "getPaymentsForUser");
123 ashish 329
      if (result.isSetSuccess()) {
330
        return result.success;
331
      }
332
      if (result.pe != null) {
333
        throw result.pe;
334
      }
3430 rajveer 335
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
123 ashish 336
    }
337
 
3430 rajveer 338
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 339
    {
695 rajveer 340
      send_getPayments(fromTime, toTime, status, gatewayId);
123 ashish 341
      return recv_getPayments();
342
    }
343
 
3430 rajveer 344
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 345
    {
346
      getPayments_args args = new getPayments_args();
3430 rajveer 347
      args.setFromTime(fromTime);
348
      args.setToTime(toTime);
349
      args.setStatus(status);
350
      args.setGatewayId(gatewayId);
351
      sendBase("getPayments", args);
123 ashish 352
    }
353
 
3430 rajveer 354
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
123 ashish 355
    {
356
      getPayments_result result = new getPayments_result();
3430 rajveer 357
      receiveBase(result, "getPayments");
123 ashish 358
      if (result.isSetSuccess()) {
359
        return result.success;
360
      }
361
      if (result.pe != null) {
362
        throw result.pe;
363
      }
3430 rajveer 364
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
123 ashish 365
    }
366
 
4141 chandransh 367
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
368
    {
369
      send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
370
      return recv_getPaymentsByCapturedDate();
371
    }
372
 
373
    public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
374
    {
375
      getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
376
      args.setFromTime(fromTime);
377
      args.setToTime(toTime);
378
      args.setGatewayId(gatewayId);
379
      sendBase("getPaymentsByCapturedDate", args);
380
    }
381
 
382
    public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
383
    {
384
      getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
385
      receiveBase(result, "getPaymentsByCapturedDate");
386
      if (result.isSetSuccess()) {
387
        return result.success;
388
      }
389
      if (result.pe != null) {
390
        throw result.pe;
391
      }
392
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
393
    }
394
 
3430 rajveer 395
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 396
    {
397
      send_getPaymentGateway(id);
398
      return recv_getPaymentGateway();
399
    }
400
 
3430 rajveer 401
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
420 ashish 402
    {
403
      getPaymentGateway_args args = new getPaymentGateway_args();
3430 rajveer 404
      args.setId(id);
405
      sendBase("getPaymentGateway", args);
420 ashish 406
    }
407
 
3430 rajveer 408
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
420 ashish 409
    {
410
      getPaymentGateway_result result = new getPaymentGateway_result();
3430 rajveer 411
      receiveBase(result, "getPaymentGateway");
420 ashish 412
      if (result.isSetSuccess()) {
413
        return result.success;
414
      }
415
      if (result.pe != null) {
416
        throw result.pe;
417
      }
3430 rajveer 418
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
420 ashish 419
    }
420
 
4600 varun.gupt 421
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
422
    {
423
      send_getActivePaymentGateways();
424
      return recv_getActivePaymentGateways();
425
    }
426
 
427
    public void send_getActivePaymentGateways() throws org.apache.thrift.TException
428
    {
429
      getActivePaymentGateways_args args = new getActivePaymentGateways_args();
430
      sendBase("getActivePaymentGateways", args);
431
    }
432
 
433
    public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
434
    {
435
      getActivePaymentGateways_result result = new getActivePaymentGateways_result();
436
      receiveBase(result, "getActivePaymentGateways");
437
      if (result.isSetSuccess()) {
438
        return result.success;
439
      }
440
      if (result.pe != null) {
441
        throw result.pe;
442
      }
443
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
444
    }
445
 
3430 rajveer 446
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 447
    {
695 rajveer 448
      send_getPayment(id);
449
      return recv_getPayment();
420 ashish 450
    }
451
 
3430 rajveer 452
    public void send_getPayment(long id) throws org.apache.thrift.TException
420 ashish 453
    {
695 rajveer 454
      getPayment_args args = new getPayment_args();
3430 rajveer 455
      args.setId(id);
456
      sendBase("getPayment", args);
420 ashish 457
    }
458
 
3430 rajveer 459
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
420 ashish 460
    {
695 rajveer 461
      getPayment_result result = new getPayment_result();
3430 rajveer 462
      receiveBase(result, "getPayment");
695 rajveer 463
      if (result.isSetSuccess()) {
464
        return result.success;
465
      }
420 ashish 466
      if (result.pe != null) {
467
        throw result.pe;
468
      }
3430 rajveer 469
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
420 ashish 470
    }
471
 
3430 rajveer 472
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
420 ashish 473
    {
695 rajveer 474
      send_getPaymentForTxnId(txnId);
475
      return recv_getPaymentForTxnId();
420 ashish 476
    }
477
 
3430 rajveer 478
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
420 ashish 479
    {
695 rajveer 480
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
3430 rajveer 481
      args.setTxnId(txnId);
482
      sendBase("getPaymentForTxnId", args);
420 ashish 483
    }
484
 
3430 rajveer 485
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
420 ashish 486
    {
695 rajveer 487
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
3430 rajveer 488
      receiveBase(result, "getPaymentForTxnId");
420 ashish 489
      if (result.isSetSuccess()) {
490
        return result.success;
491
      }
492
      if (result.pe != null) {
493
        throw result.pe;
494
      }
3430 rajveer 495
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
420 ashish 496
    }
497
 
4600 varun.gupt 498
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
499
    {
500
      send_getSuccessfulPaymentForTxnId(txnId);
501
      return recv_getSuccessfulPaymentForTxnId();
502
    }
503
 
504
    public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
505
    {
506
      getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
507
      args.setTxnId(txnId);
508
      sendBase("getSuccessfulPaymentForTxnId", args);
509
    }
510
 
511
    public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
512
    {
513
      getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
514
      receiveBase(result, "getSuccessfulPaymentForTxnId");
515
      if (result.isSetSuccess()) {
516
        return result.success;
517
      }
518
      if (result.pe != null) {
519
        throw result.pe;
520
      }
521
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
522
    }
523
 
3430 rajveer 524
    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
420 ashish 525
    {
1119 rajveer 526
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
695 rajveer 527
      return recv_updatePaymentDetails();
420 ashish 528
    }
529
 
3430 rajveer 530
    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
420 ashish 531
    {
695 rajveer 532
      updatePaymentDetails_args args = new updatePaymentDetails_args();
3430 rajveer 533
      args.setId(id);
534
      args.setGatewayPaymentId(gatewayPaymentId);
535
      args.setSessionId(sessionId);
536
      args.setGatewayTxnStatus(gatewayTxnStatus);
537
      args.setDescription(description);
538
      args.setGatewayTxnId(gatewayTxnId);
539
      args.setAuthCode(authCode);
540
      args.setReferenceCode(referenceCode);
541
      args.setErrorCode(errorCode);
542
      args.setStatus(status);
543
      args.setGatewayTxnDate(gatewayTxnDate);
544
      args.setAttributes(attributes);
545
      sendBase("updatePaymentDetails", args);
420 ashish 546
    }
547
 
3430 rajveer 548
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
420 ashish 549
    {
695 rajveer 550
      updatePaymentDetails_result result = new updatePaymentDetails_result();
3430 rajveer 551
      receiveBase(result, "updatePaymentDetails");
695 rajveer 552
      if (result.isSetSuccess()) {
553
        return result.success;
554
      }
420 ashish 555
      if (result.pe != null) {
556
        throw result.pe;
557
      }
3430 rajveer 558
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
420 ashish 559
    }
560
 
3430 rajveer 561
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 562
    {
1731 ankur.sing 563
      send_getSuccessfulPaymentsAmountRange();
564
      return recv_getSuccessfulPaymentsAmountRange();
1629 ankur.sing 565
    }
566
 
3430 rajveer 567
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 568
    {
1731 ankur.sing 569
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
3430 rajveer 570
      sendBase("getSuccessfulPaymentsAmountRange", args);
1629 ankur.sing 571
    }
572
 
3430 rajveer 573
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 574
    {
1731 ankur.sing 575
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 576
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
1629 ankur.sing 577
      if (result.isSetSuccess()) {
578
        return result.success;
579
      }
3430 rajveer 580
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
1629 ankur.sing 581
    }
582
 
3430 rajveer 583
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
2462 chandransh 584
    {
585
      send_initializeHdfcPayment(merchantPaymentId);
586
      return recv_initializeHdfcPayment();
587
    }
588
 
3430 rajveer 589
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
2462 chandransh 590
    {
591
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
3430 rajveer 592
      args.setMerchantPaymentId(merchantPaymentId);
593
      sendBase("initializeHdfcPayment", args);
2462 chandransh 594
    }
595
 
3430 rajveer 596
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
2462 chandransh 597
    {
598
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
3430 rajveer 599
      receiveBase(result, "initializeHdfcPayment");
2462 chandransh 600
      if (result.isSetSuccess()) {
601
        return result.success;
602
      }
603
      if (result.pe != null) {
604
        throw result.pe;
605
      }
3430 rajveer 606
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
2462 chandransh 607
    }
608
 
6050 anupam.sin 609
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, org.apache.thrift.TException
610
    {
611
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId);
612
      return recv_doHdfcPaymentForDigitalOrder();
613
    }
614
 
615
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws org.apache.thrift.TException
616
    {
617
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
618
      args.setMerchantPaymentId(merchantPaymentId);
619
      args.setRechargeOrderId(rechargeOrderId);
620
      sendBase("doHdfcPaymentForDigitalOrder", args);
621
    }
622
 
623
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
624
    {
625
      doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
626
      receiveBase(result, "doHdfcPaymentForDigitalOrder");
627
      if (result.isSetSuccess()) {
628
        return result.success;
629
      }
630
      if (result.pe != null) {
631
        throw result.pe;
632
      }
633
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
634
    }
635
 
3616 chandransh 636
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
637
    {
638
      send_initializeHdfcEmiPayment(merchantPaymentId);
639
      return recv_initializeHdfcEmiPayment();
640
    }
641
 
642
    public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
643
    {
644
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
645
      args.setMerchantPaymentId(merchantPaymentId);
646
      sendBase("initializeHdfcEmiPayment", args);
647
    }
648
 
649
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
650
    {
651
      initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
652
      receiveBase(result, "initializeHdfcEmiPayment");
653
      if (result.isSetSuccess()) {
654
        return result.success;
655
      }
656
      if (result.pe != null) {
657
        throw result.pe;
658
      }
659
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
660
    }
661
 
3430 rajveer 662
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
2690 chandransh 663
    {
664
      send_createRefund(orderId, merchantTxnId, amount);
665
      return recv_createRefund();
666
    }
667
 
3430 rajveer 668
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
2690 chandransh 669
    {
670
      createRefund_args args = new createRefund_args();
3430 rajveer 671
      args.setOrderId(orderId);
672
      args.setMerchantTxnId(merchantTxnId);
673
      args.setAmount(amount);
674
      sendBase("createRefund", args);
2690 chandransh 675
    }
676
 
3430 rajveer 677
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
2690 chandransh 678
    {
679
      createRefund_result result = new createRefund_result();
3430 rajveer 680
      receiveBase(result, "createRefund");
2690 chandransh 681
      if (result.isSetSuccess()) {
682
        return result.success;
683
      }
684
      if (result.pe != null) {
685
        throw result.pe;
686
      }
3430 rajveer 687
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
2690 chandransh 688
    }
689
 
3430 rajveer 690
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
3010 chandransh 691
    {
692
      send_capturePayment(merchantTxnId);
693
      return recv_capturePayment();
694
    }
695
 
3430 rajveer 696
    public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
3010 chandransh 697
    {
698
      capturePayment_args args = new capturePayment_args();
3430 rajveer 699
      args.setMerchantTxnId(merchantTxnId);
700
      sendBase("capturePayment", args);
3010 chandransh 701
    }
702
 
3430 rajveer 703
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
3010 chandransh 704
    {
705
      capturePayment_result result = new capturePayment_result();
3430 rajveer 706
      receiveBase(result, "capturePayment");
3010 chandransh 707
      if (result.isSetSuccess()) {
708
        return result.success;
709
      }
710
      if (result.pe != null) {
711
        throw result.pe;
712
      }
3430 rajveer 713
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
3010 chandransh 714
    }
715
 
3956 chandransh 716
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
717
    {
718
      send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
719
      return recv_partiallyCapturePayment();
720
    }
721
 
722
    public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
723
    {
724
      partiallyCapturePayment_args args = new partiallyCapturePayment_args();
725
      args.setMerchantTxnId(merchantTxnId);
726
      args.setAmount(amount);
727
      args.setXferBy(xferBy);
728
      args.setXferTxnId(xferTxnId);
729
      args.setXferDate(xferDate);
730
      sendBase("partiallyCapturePayment", args);
731
    }
732
 
733
    public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
734
    {
735
      partiallyCapturePayment_result result = new partiallyCapturePayment_result();
736
      receiveBase(result, "partiallyCapturePayment");
737
      if (result.isSetSuccess()) {
738
        return result.success;
739
      }
740
      if (result.pe != null) {
741
        throw result.pe;
742
      }
743
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
744
    }
745
 
4008 mandeep.dh 746
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
747
    {
748
      send_getPaymentsRequiringExtraProcessing(category);
749
      return recv_getPaymentsRequiringExtraProcessing();
750
    }
751
 
752
    public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
753
    {
754
      getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
755
      args.setCategory(category);
756
      sendBase("getPaymentsRequiringExtraProcessing", args);
757
    }
758
 
759
    public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
760
    {
761
      getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
762
      receiveBase(result, "getPaymentsRequiringExtraProcessing");
763
      if (result.isSetSuccess()) {
764
        return result.success;
765
      }
766
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
767
    }
768
 
769
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
770
    {
771
      send_markPaymentAsProcessed(paymentId, category);
772
      recv_markPaymentAsProcessed();
773
    }
774
 
775
    public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
776
    {
777
      markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
778
      args.setPaymentId(paymentId);
779
      args.setCategory(category);
780
      sendBase("markPaymentAsProcessed", args);
781
    }
782
 
783
    public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
784
    {
785
      markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
786
      receiveBase(result, "markPaymentAsProcessed");
787
      return;
788
    }
789
 
123 ashish 790
  }
3430 rajveer 791
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
792
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
793
      private org.apache.thrift.async.TAsyncClientManager clientManager;
794
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
795
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
796
        this.clientManager = clientManager;
797
        this.protocolFactory = protocolFactory;
798
      }
799
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
800
        return new AsyncClient(protocolFactory, clientManager, transport);
801
      }
123 ashish 802
    }
803
 
3430 rajveer 804
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
805
      super(protocolFactory, clientManager, transport);
806
    }
123 ashish 807
 
6050 anupam.sin 808
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 809
      checkReady();
6050 anupam.sin 810
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 811
      this.___currentMethod = method_call;
812
      ___manager.call(method_call);
813
    }
814
 
815
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
816
      private long userId;
817
      private double amount;
818
      private long gatewayId;
819
      private long txnId;
6050 anupam.sin 820
      private boolean isDigital;
821
      public createPayment_call(long userId, double amount, long gatewayId, long txnId, boolean isDigital, 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 {
3430 rajveer 822
        super(client, protocolFactory, transport, resultHandler, false);
823
        this.userId = userId;
824
        this.amount = amount;
825
        this.gatewayId = gatewayId;
826
        this.txnId = txnId;
6050 anupam.sin 827
        this.isDigital = isDigital;
123 ashish 828
      }
3430 rajveer 829
 
830
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
831
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
832
        createPayment_args args = new createPayment_args();
833
        args.setUserId(userId);
834
        args.setAmount(amount);
835
        args.setGatewayId(gatewayId);
836
        args.setTxnId(txnId);
6050 anupam.sin 837
        args.setIsDigital(isDigital);
3430 rajveer 838
        args.write(prot);
839
        prot.writeMessageEnd();
840
      }
841
 
842
      public long getResult() throws PaymentException, org.apache.thrift.TException {
843
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
844
          throw new IllegalStateException("Method call not finished!");
845
        }
846
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
848
        return (new Client(prot)).recv_createPayment();
849
      }
123 ashish 850
    }
851
 
3430 rajveer 852
    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 {
853
      checkReady();
854
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
855
      this.___currentMethod = method_call;
856
      ___manager.call(method_call);
857
    }
858
 
859
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
860
      private long userId;
861
      private long fromTime;
862
      private long toTime;
863
      private PaymentStatus status;
864
      private long gatewayId;
865
      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 {
866
        super(client, protocolFactory, transport, resultHandler, false);
867
        this.userId = userId;
868
        this.fromTime = fromTime;
869
        this.toTime = toTime;
870
        this.status = status;
871
        this.gatewayId = gatewayId;
872
      }
873
 
874
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
875
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
876
        getPaymentsForUser_args args = new getPaymentsForUser_args();
877
        args.setUserId(userId);
878
        args.setFromTime(fromTime);
879
        args.setToTime(toTime);
880
        args.setStatus(status);
881
        args.setGatewayId(gatewayId);
882
        args.write(prot);
883
        prot.writeMessageEnd();
884
      }
885
 
886
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
887
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
888
          throw new IllegalStateException("Method call not finished!");
889
        }
890
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
891
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
892
        return (new Client(prot)).recv_getPaymentsForUser();
893
      }
894
    }
895
 
896
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
897
      checkReady();
898
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
899
      this.___currentMethod = method_call;
900
      ___manager.call(method_call);
901
    }
902
 
903
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
904
      private long fromTime;
905
      private long toTime;
906
      private PaymentStatus status;
907
      private long gatewayId;
908
      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 {
909
        super(client, protocolFactory, transport, resultHandler, false);
910
        this.fromTime = fromTime;
911
        this.toTime = toTime;
912
        this.status = status;
913
        this.gatewayId = gatewayId;
914
      }
915
 
916
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
917
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
918
        getPayments_args args = new getPayments_args();
919
        args.setFromTime(fromTime);
920
        args.setToTime(toTime);
921
        args.setStatus(status);
922
        args.setGatewayId(gatewayId);
923
        args.write(prot);
924
        prot.writeMessageEnd();
925
      }
926
 
927
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
928
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
929
          throw new IllegalStateException("Method call not finished!");
930
        }
931
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
932
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
933
        return (new Client(prot)).recv_getPayments();
934
      }
935
    }
936
 
4141 chandransh 937
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
938
      checkReady();
939
      getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
940
      this.___currentMethod = method_call;
941
      ___manager.call(method_call);
942
    }
943
 
944
    public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
945
      private long fromTime;
946
      private long toTime;
947
      private long gatewayId;
948
      public getPaymentsByCapturedDate_call(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_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 {
949
        super(client, protocolFactory, transport, resultHandler, false);
950
        this.fromTime = fromTime;
951
        this.toTime = toTime;
952
        this.gatewayId = gatewayId;
953
      }
954
 
955
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
956
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
957
        getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
958
        args.setFromTime(fromTime);
959
        args.setToTime(toTime);
960
        args.setGatewayId(gatewayId);
961
        args.write(prot);
962
        prot.writeMessageEnd();
963
      }
964
 
965
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
966
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
967
          throw new IllegalStateException("Method call not finished!");
968
        }
969
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
970
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
971
        return (new Client(prot)).recv_getPaymentsByCapturedDate();
972
      }
973
    }
974
 
3430 rajveer 975
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
976
      checkReady();
977
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
978
      this.___currentMethod = method_call;
979
      ___manager.call(method_call);
980
    }
981
 
982
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
983
      private long id;
984
      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 {
985
        super(client, protocolFactory, transport, resultHandler, false);
986
        this.id = id;
987
      }
988
 
989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
991
        getPaymentGateway_args args = new getPaymentGateway_args();
992
        args.setId(id);
993
        args.write(prot);
994
        prot.writeMessageEnd();
995
      }
996
 
997
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
998
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
999
          throw new IllegalStateException("Method call not finished!");
1000
        }
1001
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1002
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1003
        return (new Client(prot)).recv_getPaymentGateway();
1004
      }
1005
    }
1006
 
4600 varun.gupt 1007
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
1008
      checkReady();
1009
      getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
1010
      this.___currentMethod = method_call;
1011
      ___manager.call(method_call);
1012
    }
1013
 
1014
    public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
1015
      public getActivePaymentGateways_call(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_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 {
1016
        super(client, protocolFactory, transport, resultHandler, false);
1017
      }
1018
 
1019
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1020
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
1021
        getActivePaymentGateways_args args = new getActivePaymentGateways_args();
1022
        args.write(prot);
1023
        prot.writeMessageEnd();
1024
      }
1025
 
1026
      public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
1027
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1028
          throw new IllegalStateException("Method call not finished!");
1029
        }
1030
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1031
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1032
        return (new Client(prot)).recv_getActivePaymentGateways();
1033
      }
1034
    }
1035
 
3430 rajveer 1036
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
1037
      checkReady();
1038
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
1039
      this.___currentMethod = method_call;
1040
      ___manager.call(method_call);
1041
    }
1042
 
1043
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1044
      private long id;
1045
      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 {
1046
        super(client, protocolFactory, transport, resultHandler, false);
1047
        this.id = id;
1048
      }
1049
 
1050
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1051
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1052
        getPayment_args args = new getPayment_args();
1053
        args.setId(id);
1054
        args.write(prot);
1055
        prot.writeMessageEnd();
1056
      }
1057
 
1058
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1059
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1060
          throw new IllegalStateException("Method call not finished!");
1061
        }
1062
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1063
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1064
        return (new Client(prot)).recv_getPayment();
1065
      }
1066
    }
1067
 
1068
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1069
      checkReady();
1070
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1071
      this.___currentMethod = method_call;
1072
      ___manager.call(method_call);
1073
    }
1074
 
1075
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1076
      private long txnId;
1077
      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 {
1078
        super(client, protocolFactory, transport, resultHandler, false);
1079
        this.txnId = txnId;
1080
      }
1081
 
1082
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1083
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1084
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
1085
        args.setTxnId(txnId);
1086
        args.write(prot);
1087
        prot.writeMessageEnd();
1088
      }
1089
 
1090
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1091
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1092
          throw new IllegalStateException("Method call not finished!");
1093
        }
1094
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1095
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1096
        return (new Client(prot)).recv_getPaymentForTxnId();
1097
      }
1098
    }
1099
 
4600 varun.gupt 1100
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1101
      checkReady();
1102
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1103
      this.___currentMethod = method_call;
1104
      ___manager.call(method_call);
1105
    }
1106
 
1107
    public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1108
      private long txnId;
1109
      public getSuccessfulPaymentForTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_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 {
1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
        this.txnId = txnId;
1112
      }
1113
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
1117
        args.setTxnId(txnId);
1118
        args.write(prot);
1119
        prot.writeMessageEnd();
1120
      }
1121
 
1122
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1123
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1124
          throw new IllegalStateException("Method call not finished!");
1125
        }
1126
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1127
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1128
        return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
1129
      }
1130
    }
1131
 
3430 rajveer 1132
    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 {
1133
      checkReady();
1134
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
1135
      this.___currentMethod = method_call;
1136
      ___manager.call(method_call);
1137
    }
1138
 
1139
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
1140
      private long id;
1141
      private String gatewayPaymentId;
1142
      private String sessionId;
1143
      private String gatewayTxnStatus;
1144
      private String description;
1145
      private String gatewayTxnId;
1146
      private String authCode;
1147
      private String referenceCode;
1148
      private String errorCode;
1149
      private PaymentStatus status;
1150
      private String gatewayTxnDate;
1151
      private List<Attribute> attributes;
1152
      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 {
1153
        super(client, protocolFactory, transport, resultHandler, false);
1154
        this.id = id;
1155
        this.gatewayPaymentId = gatewayPaymentId;
1156
        this.sessionId = sessionId;
1157
        this.gatewayTxnStatus = gatewayTxnStatus;
1158
        this.description = description;
1159
        this.gatewayTxnId = gatewayTxnId;
1160
        this.authCode = authCode;
1161
        this.referenceCode = referenceCode;
1162
        this.errorCode = errorCode;
1163
        this.status = status;
1164
        this.gatewayTxnDate = gatewayTxnDate;
1165
        this.attributes = attributes;
1166
      }
1167
 
1168
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1169
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
1170
        updatePaymentDetails_args args = new updatePaymentDetails_args();
1171
        args.setId(id);
1172
        args.setGatewayPaymentId(gatewayPaymentId);
1173
        args.setSessionId(sessionId);
1174
        args.setGatewayTxnStatus(gatewayTxnStatus);
1175
        args.setDescription(description);
1176
        args.setGatewayTxnId(gatewayTxnId);
1177
        args.setAuthCode(authCode);
1178
        args.setReferenceCode(referenceCode);
1179
        args.setErrorCode(errorCode);
1180
        args.setStatus(status);
1181
        args.setGatewayTxnDate(gatewayTxnDate);
1182
        args.setAttributes(attributes);
1183
        args.write(prot);
1184
        prot.writeMessageEnd();
1185
      }
1186
 
1187
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1188
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1189
          throw new IllegalStateException("Method call not finished!");
1190
        }
1191
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1192
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1193
        return (new Client(prot)).recv_updatePaymentDetails();
1194
      }
1195
    }
1196
 
1197
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
1198
      checkReady();
1199
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
1200
      this.___currentMethod = method_call;
1201
      ___manager.call(method_call);
1202
    }
1203
 
1204
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
1205
      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 {
1206
        super(client, protocolFactory, transport, resultHandler, false);
1207
      }
1208
 
1209
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1210
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
1211
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
1212
        args.write(prot);
1213
        prot.writeMessageEnd();
1214
      }
1215
 
1216
      public List<Double> getResult() throws org.apache.thrift.TException {
1217
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1218
          throw new IllegalStateException("Method call not finished!");
1219
        }
1220
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1221
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1222
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1223
      }
1224
    }
1225
 
1226
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
1227
      checkReady();
1228
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1229
      this.___currentMethod = method_call;
1230
      ___manager.call(method_call);
1231
    }
1232
 
1233
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1234
      private long merchantPaymentId;
1235
      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 {
1236
        super(client, protocolFactory, transport, resultHandler, false);
1237
        this.merchantPaymentId = merchantPaymentId;
1238
      }
1239
 
1240
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1241
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1242
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1243
        args.setMerchantPaymentId(merchantPaymentId);
1244
        args.write(prot);
1245
        prot.writeMessageEnd();
1246
      }
1247
 
1248
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1249
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1250
          throw new IllegalStateException("Method call not finished!");
1251
        }
1252
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1253
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1254
        return (new Client(prot)).recv_initializeHdfcPayment();
1255
      }
1256
    }
1257
 
6050 anupam.sin 1258
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
1259
      checkReady();
1260
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, resultHandler, this, ___protocolFactory, ___transport);
1261
      this.___currentMethod = method_call;
1262
      ___manager.call(method_call);
1263
    }
1264
 
1265
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1266
      private long merchantPaymentId;
1267
      private long rechargeOrderId;
1268
      public doHdfcPaymentForDigitalOrder_call(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_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 {
1269
        super(client, protocolFactory, transport, resultHandler, false);
1270
        this.merchantPaymentId = merchantPaymentId;
1271
        this.rechargeOrderId = rechargeOrderId;
1272
      }
1273
 
1274
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1275
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1276
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1277
        args.setMerchantPaymentId(merchantPaymentId);
1278
        args.setRechargeOrderId(rechargeOrderId);
1279
        args.write(prot);
1280
        prot.writeMessageEnd();
1281
      }
1282
 
1283
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1284
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1285
          throw new IllegalStateException("Method call not finished!");
1286
        }
1287
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1288
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1289
        return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
1290
      }
1291
    }
1292
 
3616 chandransh 1293
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1294
      checkReady();
1295
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1296
      this.___currentMethod = method_call;
1297
      ___manager.call(method_call);
1298
    }
1299
 
1300
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1301
      private long merchantPaymentId;
1302
      public initializeHdfcEmiPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_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 {
1303
        super(client, protocolFactory, transport, resultHandler, false);
1304
        this.merchantPaymentId = merchantPaymentId;
1305
      }
1306
 
1307
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1308
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1309
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1310
        args.setMerchantPaymentId(merchantPaymentId);
1311
        args.write(prot);
1312
        prot.writeMessageEnd();
1313
      }
1314
 
1315
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1316
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1317
          throw new IllegalStateException("Method call not finished!");
1318
        }
1319
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1320
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1321
        return (new Client(prot)).recv_initializeHdfcEmiPayment();
1322
      }
1323
    }
1324
 
3430 rajveer 1325
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
1326
      checkReady();
1327
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
1328
      this.___currentMethod = method_call;
1329
      ___manager.call(method_call);
1330
    }
1331
 
1332
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
1333
      private long orderId;
1334
      private long merchantTxnId;
1335
      private double amount;
1336
      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 {
1337
        super(client, protocolFactory, transport, resultHandler, false);
1338
        this.orderId = orderId;
1339
        this.merchantTxnId = merchantTxnId;
1340
        this.amount = amount;
1341
      }
1342
 
1343
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1344
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
1345
        createRefund_args args = new createRefund_args();
1346
        args.setOrderId(orderId);
1347
        args.setMerchantTxnId(merchantTxnId);
1348
        args.setAmount(amount);
1349
        args.write(prot);
1350
        prot.writeMessageEnd();
1351
      }
1352
 
1353
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1354
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1355
          throw new IllegalStateException("Method call not finished!");
1356
        }
1357
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1358
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1359
        return (new Client(prot)).recv_createRefund();
1360
      }
1361
    }
1362
 
1363
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
1364
      checkReady();
1365
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
1366
      this.___currentMethod = method_call;
1367
      ___manager.call(method_call);
1368
    }
1369
 
1370
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1371
      private long merchantTxnId;
1372
      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 {
1373
        super(client, protocolFactory, transport, resultHandler, false);
1374
        this.merchantTxnId = merchantTxnId;
1375
      }
1376
 
1377
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1378
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1379
        capturePayment_args args = new capturePayment_args();
1380
        args.setMerchantTxnId(merchantTxnId);
1381
        args.write(prot);
1382
        prot.writeMessageEnd();
1383
      }
1384
 
1385
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1386
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1387
          throw new IllegalStateException("Method call not finished!");
1388
        }
1389
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1390
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1391
        return (new Client(prot)).recv_capturePayment();
1392
      }
1393
    }
1394
 
3956 chandransh 1395
    public void partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<partiallyCapturePayment_call> resultHandler) throws org.apache.thrift.TException {
1396
      checkReady();
1397
      partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
1398
      this.___currentMethod = method_call;
1399
      ___manager.call(method_call);
1400
    }
1401
 
1402
    public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1403
      private long merchantTxnId;
1404
      private double amount;
1405
      private String xferBy;
1406
      private String xferTxnId;
1407
      private long xferDate;
1408
      public partiallyCapturePayment_call(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<partiallyCapturePayment_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 {
1409
        super(client, protocolFactory, transport, resultHandler, false);
1410
        this.merchantTxnId = merchantTxnId;
1411
        this.amount = amount;
1412
        this.xferBy = xferBy;
1413
        this.xferTxnId = xferTxnId;
1414
        this.xferDate = xferDate;
1415
      }
1416
 
1417
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1418
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1419
        partiallyCapturePayment_args args = new partiallyCapturePayment_args();
1420
        args.setMerchantTxnId(merchantTxnId);
1421
        args.setAmount(amount);
1422
        args.setXferBy(xferBy);
1423
        args.setXferTxnId(xferTxnId);
1424
        args.setXferDate(xferDate);
1425
        args.write(prot);
1426
        prot.writeMessageEnd();
1427
      }
1428
 
1429
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1430
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1431
          throw new IllegalStateException("Method call not finished!");
1432
        }
1433
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1434
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1435
        return (new Client(prot)).recv_partiallyCapturePayment();
1436
      }
1437
    }
1438
 
4008 mandeep.dh 1439
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
1440
      checkReady();
1441
      getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
1442
      this.___currentMethod = method_call;
1443
      ___manager.call(method_call);
1444
    }
1445
 
1446
    public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
1447
      private ExtraPaymentProcessingType category;
1448
      public getPaymentsRequiringExtraProcessing_call(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_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 {
1449
        super(client, protocolFactory, transport, resultHandler, false);
1450
        this.category = category;
1451
      }
1452
 
1453
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1454
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1455
        getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
1456
        args.setCategory(category);
1457
        args.write(prot);
1458
        prot.writeMessageEnd();
1459
      }
1460
 
1461
      public List<Long> getResult() throws org.apache.thrift.TException {
1462
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1463
          throw new IllegalStateException("Method call not finished!");
1464
        }
1465
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1466
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1467
        return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
1468
      }
1469
    }
1470
 
1471
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
1472
      checkReady();
1473
      markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
1474
      this.___currentMethod = method_call;
1475
      ___manager.call(method_call);
1476
    }
1477
 
1478
    public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
1479
      private long paymentId;
1480
      private ExtraPaymentProcessingType category;
1481
      public markPaymentAsProcessed_call(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_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 {
1482
        super(client, protocolFactory, transport, resultHandler, false);
1483
        this.paymentId = paymentId;
1484
        this.category = category;
1485
      }
1486
 
1487
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1488
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
1489
        markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
1490
        args.setPaymentId(paymentId);
1491
        args.setCategory(category);
1492
        args.write(prot);
1493
        prot.writeMessageEnd();
1494
      }
1495
 
1496
      public void getResult() throws org.apache.thrift.TException {
1497
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1498
          throw new IllegalStateException("Method call not finished!");
1499
        }
1500
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1501
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1502
        (new Client(prot)).recv_markPaymentAsProcessed();
1503
      }
1504
    }
1505
 
3430 rajveer 1506
  }
1507
 
1508
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1509
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1510
    public Processor(I iface) {
1511
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1512
    }
1513
 
1514
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1515
      super(iface, getProcessMap(processMap));
1516
    }
1517
 
1518
    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) {
1519
      processMap.put("createPayment", new createPayment());
1520
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1521
      processMap.put("getPayments", new getPayments());
4141 chandransh 1522
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
3430 rajveer 1523
      processMap.put("getPaymentGateway", new getPaymentGateway());
4600 varun.gupt 1524
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
3430 rajveer 1525
      processMap.put("getPayment", new getPayment());
1526
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
4600 varun.gupt 1527
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
3430 rajveer 1528
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1529
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1530
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
6050 anupam.sin 1531
      processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
3616 chandransh 1532
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
3430 rajveer 1533
      processMap.put("createRefund", new createRefund());
1534
      processMap.put("capturePayment", new capturePayment());
3956 chandransh 1535
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
4008 mandeep.dh 1536
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
1537
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
3430 rajveer 1538
      return processMap;
1539
    }
1540
 
1541
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
1542
      public createPayment() {
1543
        super("createPayment");
1544
      }
1545
 
1546
      protected createPayment_args getEmptyArgsInstance() {
1547
        return new createPayment_args();
1548
      }
1549
 
1550
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
123 ashish 1551
        createPayment_result result = new createPayment_result();
1552
        try {
6050 anupam.sin 1553
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital);
420 ashish 1554
          result.setSuccessIsSet(true);
123 ashish 1555
        } catch (PaymentException pe) {
1556
          result.pe = pe;
1557
        }
3430 rajveer 1558
        return result;
123 ashish 1559
      }
1560
    }
1561
 
3430 rajveer 1562
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
1563
      public getPaymentsForUser() {
1564
        super("getPaymentsForUser");
1565
      }
1566
 
1567
      protected getPaymentsForUser_args getEmptyArgsInstance() {
1568
        return new getPaymentsForUser_args();
1569
      }
1570
 
1571
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
123 ashish 1572
        getPaymentsForUser_result result = new getPaymentsForUser_result();
1573
        try {
3430 rajveer 1574
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1575
        } catch (PaymentException pe) {
1576
          result.pe = pe;
1577
        }
3430 rajveer 1578
        return result;
123 ashish 1579
      }
1580
    }
1581
 
3430 rajveer 1582
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
1583
      public getPayments() {
1584
        super("getPayments");
1585
      }
1586
 
1587
      protected getPayments_args getEmptyArgsInstance() {
1588
        return new getPayments_args();
1589
      }
1590
 
1591
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
123 ashish 1592
        getPayments_result result = new getPayments_result();
1593
        try {
3430 rajveer 1594
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1595
        } catch (PaymentException pe) {
1596
          result.pe = pe;
1597
        }
3430 rajveer 1598
        return result;
123 ashish 1599
      }
1600
    }
1601
 
4141 chandransh 1602
    private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
1603
      public getPaymentsByCapturedDate() {
1604
        super("getPaymentsByCapturedDate");
1605
      }
1606
 
1607
      protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
1608
        return new getPaymentsByCapturedDate_args();
1609
      }
1610
 
1611
      protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
1612
        getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
1613
        try {
1614
          result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
1615
        } catch (PaymentException pe) {
1616
          result.pe = pe;
1617
        }
1618
        return result;
1619
      }
1620
    }
1621
 
3430 rajveer 1622
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1623
      public getPaymentGateway() {
1624
        super("getPaymentGateway");
1625
      }
1626
 
1627
      protected getPaymentGateway_args getEmptyArgsInstance() {
1628
        return new getPaymentGateway_args();
1629
      }
1630
 
1631
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
420 ashish 1632
        getPaymentGateway_result result = new getPaymentGateway_result();
1633
        try {
3430 rajveer 1634
          result.success = iface.getPaymentGateway(args.id);
420 ashish 1635
        } catch (PaymentException pe) {
1636
          result.pe = pe;
1637
        }
3430 rajveer 1638
        return result;
420 ashish 1639
      }
1640
    }
1641
 
4600 varun.gupt 1642
    private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
1643
      public getActivePaymentGateways() {
1644
        super("getActivePaymentGateways");
1645
      }
1646
 
1647
      protected getActivePaymentGateways_args getEmptyArgsInstance() {
1648
        return new getActivePaymentGateways_args();
1649
      }
1650
 
1651
      protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
1652
        getActivePaymentGateways_result result = new getActivePaymentGateways_result();
1653
        try {
1654
          result.success = iface.getActivePaymentGateways();
1655
        } catch (PaymentException pe) {
1656
          result.pe = pe;
1657
        }
1658
        return result;
1659
      }
1660
    }
1661
 
3430 rajveer 1662
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1663
      public getPayment() {
1664
        super("getPayment");
1665
      }
1666
 
1667
      protected getPayment_args getEmptyArgsInstance() {
1668
        return new getPayment_args();
1669
      }
1670
 
1671
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
695 rajveer 1672
        getPayment_result result = new getPayment_result();
420 ashish 1673
        try {
3430 rajveer 1674
          result.success = iface.getPayment(args.id);
420 ashish 1675
        } catch (PaymentException pe) {
1676
          result.pe = pe;
1677
        }
3430 rajveer 1678
        return result;
420 ashish 1679
      }
1680
    }
1681
 
3430 rajveer 1682
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
1683
      public getPaymentForTxnId() {
1684
        super("getPaymentForTxnId");
1685
      }
1686
 
1687
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
1688
        return new getPaymentForTxnId_args();
1689
      }
1690
 
1691
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
695 rajveer 1692
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
420 ashish 1693
        try {
3430 rajveer 1694
          result.success = iface.getPaymentForTxnId(args.txnId);
420 ashish 1695
        } catch (PaymentException pe) {
1696
          result.pe = pe;
1697
        }
3430 rajveer 1698
        return result;
420 ashish 1699
      }
1700
    }
1701
 
4600 varun.gupt 1702
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
1703
      public getSuccessfulPaymentForTxnId() {
1704
        super("getSuccessfulPaymentForTxnId");
1705
      }
1706
 
1707
      protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
1708
        return new getSuccessfulPaymentForTxnId_args();
1709
      }
1710
 
1711
      protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
1712
        getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
1713
        try {
1714
          result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
1715
        } catch (PaymentException pe) {
1716
          result.pe = pe;
1717
        }
1718
        return result;
1719
      }
1720
    }
1721
 
3430 rajveer 1722
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1723
      public updatePaymentDetails() {
1724
        super("updatePaymentDetails");
1725
      }
1726
 
1727
      protected updatePaymentDetails_args getEmptyArgsInstance() {
1728
        return new updatePaymentDetails_args();
1729
      }
1730
 
1731
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
695 rajveer 1732
        updatePaymentDetails_result result = new updatePaymentDetails_result();
420 ashish 1733
        try {
3430 rajveer 1734
          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);
695 rajveer 1735
          result.setSuccessIsSet(true);
420 ashish 1736
        } catch (PaymentException pe) {
1737
          result.pe = pe;
1738
        }
3430 rajveer 1739
        return result;
420 ashish 1740
      }
1741
    }
1742
 
3430 rajveer 1743
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
1744
      public getSuccessfulPaymentsAmountRange() {
1745
        super("getSuccessfulPaymentsAmountRange");
1746
      }
1747
 
1748
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
1749
        return new getSuccessfulPaymentsAmountRange_args();
1750
      }
1751
 
1752
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
1731 ankur.sing 1753
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 1754
        result.success = iface.getSuccessfulPaymentsAmountRange();
1755
        return result;
1629 ankur.sing 1756
      }
1757
    }
1758
 
3430 rajveer 1759
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1760
      public initializeHdfcPayment() {
1761
        super("initializeHdfcPayment");
1762
      }
1763
 
1764
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
1765
        return new initializeHdfcPayment_args();
1766
      }
1767
 
1768
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2462 chandransh 1769
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
1770
        try {
3430 rajveer 1771
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
2462 chandransh 1772
        } catch (PaymentException pe) {
1773
          result.pe = pe;
1774
        }
3430 rajveer 1775
        return result;
2462 chandransh 1776
      }
1777
    }
1778
 
6050 anupam.sin 1779
    private static class doHdfcPaymentForDigitalOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doHdfcPaymentForDigitalOrder_args> {
1780
      public doHdfcPaymentForDigitalOrder() {
1781
        super("doHdfcPaymentForDigitalOrder");
1782
      }
1783
 
1784
      protected doHdfcPaymentForDigitalOrder_args getEmptyArgsInstance() {
1785
        return new doHdfcPaymentForDigitalOrder_args();
1786
      }
1787
 
1788
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
1789
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
1790
        try {
1791
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId);
1792
        } catch (PaymentException pe) {
1793
          result.pe = pe;
1794
        }
1795
        return result;
1796
      }
1797
    }
1798
 
3616 chandransh 1799
    private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
1800
      public initializeHdfcEmiPayment() {
1801
        super("initializeHdfcEmiPayment");
1802
      }
1803
 
1804
      protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
1805
        return new initializeHdfcEmiPayment_args();
1806
      }
1807
 
1808
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
1809
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
1810
        try {
1811
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
1812
        } catch (PaymentException pe) {
1813
          result.pe = pe;
1814
        }
1815
        return result;
1816
      }
1817
    }
1818
 
3430 rajveer 1819
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
1820
      public createRefund() {
1821
        super("createRefund");
1822
      }
1823
 
1824
      protected createRefund_args getEmptyArgsInstance() {
1825
        return new createRefund_args();
1826
      }
1827
 
1828
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
2690 chandransh 1829
        createRefund_result result = new createRefund_result();
1830
        try {
3430 rajveer 1831
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
2690 chandransh 1832
          result.setSuccessIsSet(true);
1833
        } catch (PaymentException pe) {
1834
          result.pe = pe;
1835
        }
3430 rajveer 1836
        return result;
2690 chandransh 1837
      }
1838
    }
1839
 
3430 rajveer 1840
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
1841
      public capturePayment() {
1842
        super("capturePayment");
1843
      }
1844
 
1845
      protected capturePayment_args getEmptyArgsInstance() {
1846
        return new capturePayment_args();
1847
      }
1848
 
1849
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
3010 chandransh 1850
        capturePayment_result result = new capturePayment_result();
1851
        try {
3430 rajveer 1852
          result.success = iface.capturePayment(args.merchantTxnId);
3010 chandransh 1853
          result.setSuccessIsSet(true);
1854
        } catch (PaymentException pe) {
1855
          result.pe = pe;
1856
        }
3430 rajveer 1857
        return result;
3010 chandransh 1858
      }
1859
    }
1860
 
3956 chandransh 1861
    private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
1862
      public partiallyCapturePayment() {
1863
        super("partiallyCapturePayment");
1864
      }
1865
 
1866
      protected partiallyCapturePayment_args getEmptyArgsInstance() {
1867
        return new partiallyCapturePayment_args();
1868
      }
1869
 
1870
      protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
1871
        partiallyCapturePayment_result result = new partiallyCapturePayment_result();
1872
        try {
1873
          result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
1874
          result.setSuccessIsSet(true);
1875
        } catch (PaymentException pe) {
1876
          result.pe = pe;
1877
        }
1878
        return result;
1879
      }
1880
    }
1881
 
4008 mandeep.dh 1882
    private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
1883
      public getPaymentsRequiringExtraProcessing() {
1884
        super("getPaymentsRequiringExtraProcessing");
1885
      }
1886
 
1887
      protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
1888
        return new getPaymentsRequiringExtraProcessing_args();
1889
      }
1890
 
1891
      protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
1892
        getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
1893
        result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
1894
        return result;
1895
      }
1896
    }
1897
 
1898
    private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
1899
      public markPaymentAsProcessed() {
1900
        super("markPaymentAsProcessed");
1901
      }
1902
 
1903
      protected markPaymentAsProcessed_args getEmptyArgsInstance() {
1904
        return new markPaymentAsProcessed_args();
1905
      }
1906
 
1907
      protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
1908
        markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
1909
        iface.markPaymentAsProcessed(args.paymentId, args.category);
1910
        return result;
1911
      }
1912
    }
1913
 
123 ashish 1914
  }
1915
 
3430 rajveer 1916
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
1917
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
123 ashish 1918
 
3430 rajveer 1919
    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);
1920
    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);
1921
    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);
1922
    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);
6050 anupam.sin 1923
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)5);
123 ashish 1924
 
3430 rajveer 1925
    private long userId; // required
1926
    private double amount; // required
1927
    private long gatewayId; // required
1928
    private long txnId; // required
6050 anupam.sin 1929
    private boolean isDigital; // required
123 ashish 1930
 
1931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 1933
      USER_ID((short)1, "userId"),
1934
      AMOUNT((short)2, "amount"),
1935
      GATEWAY_ID((short)3, "gatewayId"),
6050 anupam.sin 1936
      TXN_ID((short)4, "txnId"),
1937
      IS_DIGITAL((short)5, "isDigital");
123 ashish 1938
 
1939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1940
 
1941
      static {
1942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1943
          byName.put(field.getFieldName(), field);
1944
        }
1945
      }
1946
 
1947
      /**
1948
       * Find the _Fields constant that matches fieldId, or null if its not found.
1949
       */
1950
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1951
        switch(fieldId) {
1952
          case 1: // USER_ID
1953
            return USER_ID;
1954
          case 2: // AMOUNT
1955
            return AMOUNT;
1956
          case 3: // GATEWAY_ID
1957
            return GATEWAY_ID;
1958
          case 4: // TXN_ID
1959
            return TXN_ID;
6050 anupam.sin 1960
          case 5: // IS_DIGITAL
1961
            return IS_DIGITAL;
3430 rajveer 1962
          default:
1963
            return null;
1964
        }
123 ashish 1965
      }
1966
 
1967
      /**
1968
       * Find the _Fields constant that matches fieldId, throwing an exception
1969
       * if it is not found.
1970
       */
1971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1972
        _Fields fields = findByThriftId(fieldId);
1973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1974
        return fields;
1975
      }
1976
 
1977
      /**
1978
       * Find the _Fields constant that matches name, or null if its not found.
1979
       */
1980
      public static _Fields findByName(String name) {
1981
        return byName.get(name);
1982
      }
1983
 
1984
      private final short _thriftId;
1985
      private final String _fieldName;
1986
 
1987
      _Fields(short thriftId, String fieldName) {
1988
        _thriftId = thriftId;
1989
        _fieldName = fieldName;
1990
      }
1991
 
1992
      public short getThriftFieldId() {
1993
        return _thriftId;
1994
      }
1995
 
1996
      public String getFieldName() {
1997
        return _fieldName;
1998
      }
1999
    }
2000
 
2001
    // isset id assignments
695 rajveer 2002
    private static final int __USERID_ISSET_ID = 0;
2003
    private static final int __AMOUNT_ISSET_ID = 1;
2004
    private static final int __GATEWAYID_ISSET_ID = 2;
2005
    private static final int __TXNID_ISSET_ID = 3;
6050 anupam.sin 2006
    private static final int __ISDIGITAL_ISSET_ID = 4;
2007
    private BitSet __isset_bit_vector = new BitSet(5);
123 ashish 2008
 
3430 rajveer 2009
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2010
    static {
3430 rajveer 2011
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2012
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2014
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
2016
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2017
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2018
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6050 anupam.sin 2020
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 2022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
123 ashish 2024
    }
2025
 
2026
    public createPayment_args() {
2027
    }
2028
 
2029
    public createPayment_args(
695 rajveer 2030
      long userId,
123 ashish 2031
      double amount,
695 rajveer 2032
      long gatewayId,
6050 anupam.sin 2033
      long txnId,
2034
      boolean isDigital)
123 ashish 2035
    {
2036
      this();
695 rajveer 2037
      this.userId = userId;
2038
      setUserIdIsSet(true);
123 ashish 2039
      this.amount = amount;
2040
      setAmountIsSet(true);
695 rajveer 2041
      this.gatewayId = gatewayId;
2042
      setGatewayIdIsSet(true);
2043
      this.txnId = txnId;
2044
      setTxnIdIsSet(true);
6050 anupam.sin 2045
      this.isDigital = isDigital;
2046
      setIsDigitalIsSet(true);
123 ashish 2047
    }
2048
 
2049
    /**
2050
     * Performs a deep copy on <i>other</i>.
2051
     */
2052
    public createPayment_args(createPayment_args other) {
2053
      __isset_bit_vector.clear();
2054
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 2055
      this.userId = other.userId;
123 ashish 2056
      this.amount = other.amount;
695 rajveer 2057
      this.gatewayId = other.gatewayId;
2058
      this.txnId = other.txnId;
6050 anupam.sin 2059
      this.isDigital = other.isDigital;
123 ashish 2060
    }
2061
 
2062
    public createPayment_args deepCopy() {
2063
      return new createPayment_args(this);
2064
    }
2065
 
3430 rajveer 2066
    @Override
2067
    public void clear() {
2068
      setUserIdIsSet(false);
2069
      this.userId = 0;
2070
      setAmountIsSet(false);
2071
      this.amount = 0.0;
2072
      setGatewayIdIsSet(false);
2073
      this.gatewayId = 0;
2074
      setTxnIdIsSet(false);
2075
      this.txnId = 0;
6050 anupam.sin 2076
      setIsDigitalIsSet(false);
2077
      this.isDigital = false;
123 ashish 2078
    }
2079
 
695 rajveer 2080
    public long getUserId() {
2081
      return this.userId;
123 ashish 2082
    }
2083
 
3430 rajveer 2084
    public void setUserId(long userId) {
695 rajveer 2085
      this.userId = userId;
2086
      setUserIdIsSet(true);
123 ashish 2087
    }
2088
 
695 rajveer 2089
    public void unsetUserId() {
2090
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 2091
    }
2092
 
3430 rajveer 2093
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
695 rajveer 2094
    public boolean isSetUserId() {
2095
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 2096
    }
2097
 
695 rajveer 2098
    public void setUserIdIsSet(boolean value) {
2099
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
123 ashish 2100
    }
2101
 
2102
    public double getAmount() {
2103
      return this.amount;
2104
    }
2105
 
3430 rajveer 2106
    public void setAmount(double amount) {
123 ashish 2107
      this.amount = amount;
2108
      setAmountIsSet(true);
2109
    }
2110
 
2111
    public void unsetAmount() {
2112
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
2113
    }
2114
 
3430 rajveer 2115
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
123 ashish 2116
    public boolean isSetAmount() {
2117
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
2118
    }
2119
 
2120
    public void setAmountIsSet(boolean value) {
2121
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
2122
    }
2123
 
695 rajveer 2124
    public long getGatewayId() {
2125
      return this.gatewayId;
123 ashish 2126
    }
2127
 
3430 rajveer 2128
    public void setGatewayId(long gatewayId) {
695 rajveer 2129
      this.gatewayId = gatewayId;
2130
      setGatewayIdIsSet(true);
123 ashish 2131
    }
2132
 
695 rajveer 2133
    public void unsetGatewayId() {
2134
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 2135
    }
2136
 
3430 rajveer 2137
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 2138
    public boolean isSetGatewayId() {
2139
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 2140
    }
2141
 
695 rajveer 2142
    public void setGatewayIdIsSet(boolean value) {
2143
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 2144
    }
2145
 
695 rajveer 2146
    public long getTxnId() {
2147
      return this.txnId;
2148
    }
2149
 
3430 rajveer 2150
    public void setTxnId(long txnId) {
695 rajveer 2151
      this.txnId = txnId;
2152
      setTxnIdIsSet(true);
2153
    }
2154
 
2155
    public void unsetTxnId() {
2156
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
2157
    }
2158
 
3430 rajveer 2159
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 2160
    public boolean isSetTxnId() {
2161
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
2162
    }
2163
 
2164
    public void setTxnIdIsSet(boolean value) {
2165
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
2166
    }
2167
 
6050 anupam.sin 2168
    public boolean isIsDigital() {
2169
      return this.isDigital;
2170
    }
2171
 
2172
    public void setIsDigital(boolean isDigital) {
2173
      this.isDigital = isDigital;
2174
      setIsDigitalIsSet(true);
2175
    }
2176
 
2177
    public void unsetIsDigital() {
2178
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
2179
    }
2180
 
2181
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
2182
    public boolean isSetIsDigital() {
2183
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
2184
    }
2185
 
2186
    public void setIsDigitalIsSet(boolean value) {
2187
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
2188
    }
2189
 
123 ashish 2190
    public void setFieldValue(_Fields field, Object value) {
2191
      switch (field) {
2192
      case USER_ID:
2193
        if (value == null) {
695 rajveer 2194
          unsetUserId();
123 ashish 2195
        } else {
695 rajveer 2196
          setUserId((Long)value);
123 ashish 2197
        }
2198
        break;
2199
 
695 rajveer 2200
      case AMOUNT:
123 ashish 2201
        if (value == null) {
695 rajveer 2202
          unsetAmount();
123 ashish 2203
        } else {
695 rajveer 2204
          setAmount((Double)value);
123 ashish 2205
        }
2206
        break;
2207
 
695 rajveer 2208
      case GATEWAY_ID:
123 ashish 2209
        if (value == null) {
695 rajveer 2210
          unsetGatewayId();
123 ashish 2211
        } else {
695 rajveer 2212
          setGatewayId((Long)value);
123 ashish 2213
        }
2214
        break;
2215
 
695 rajveer 2216
      case TXN_ID:
123 ashish 2217
        if (value == null) {
695 rajveer 2218
          unsetTxnId();
123 ashish 2219
        } else {
695 rajveer 2220
          setTxnId((Long)value);
123 ashish 2221
        }
2222
        break;
2223
 
6050 anupam.sin 2224
      case IS_DIGITAL:
2225
        if (value == null) {
2226
          unsetIsDigital();
2227
        } else {
2228
          setIsDigital((Boolean)value);
2229
        }
2230
        break;
2231
 
123 ashish 2232
      }
2233
    }
2234
 
2235
    public Object getFieldValue(_Fields field) {
2236
      switch (field) {
2237
      case USER_ID:
3430 rajveer 2238
        return Long.valueOf(getUserId());
123 ashish 2239
 
2240
      case AMOUNT:
3430 rajveer 2241
        return Double.valueOf(getAmount());
123 ashish 2242
 
420 ashish 2243
      case GATEWAY_ID:
3430 rajveer 2244
        return Long.valueOf(getGatewayId());
123 ashish 2245
 
695 rajveer 2246
      case TXN_ID:
3430 rajveer 2247
        return Long.valueOf(getTxnId());
695 rajveer 2248
 
6050 anupam.sin 2249
      case IS_DIGITAL:
2250
        return Boolean.valueOf(isIsDigital());
2251
 
123 ashish 2252
      }
2253
      throw new IllegalStateException();
2254
    }
2255
 
3430 rajveer 2256
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2257
    public boolean isSet(_Fields field) {
2258
      if (field == null) {
2259
        throw new IllegalArgumentException();
2260
      }
123 ashish 2261
 
2262
      switch (field) {
2263
      case USER_ID:
695 rajveer 2264
        return isSetUserId();
123 ashish 2265
      case AMOUNT:
2266
        return isSetAmount();
420 ashish 2267
      case GATEWAY_ID:
695 rajveer 2268
        return isSetGatewayId();
2269
      case TXN_ID:
2270
        return isSetTxnId();
6050 anupam.sin 2271
      case IS_DIGITAL:
2272
        return isSetIsDigital();
123 ashish 2273
      }
2274
      throw new IllegalStateException();
2275
    }
2276
 
2277
    @Override
2278
    public boolean equals(Object that) {
2279
      if (that == null)
2280
        return false;
2281
      if (that instanceof createPayment_args)
2282
        return this.equals((createPayment_args)that);
2283
      return false;
2284
    }
2285
 
2286
    public boolean equals(createPayment_args that) {
2287
      if (that == null)
2288
        return false;
2289
 
695 rajveer 2290
      boolean this_present_userId = true;
2291
      boolean that_present_userId = true;
2292
      if (this_present_userId || that_present_userId) {
2293
        if (!(this_present_userId && that_present_userId))
123 ashish 2294
          return false;
695 rajveer 2295
        if (this.userId != that.userId)
123 ashish 2296
          return false;
2297
      }
2298
 
2299
      boolean this_present_amount = true;
2300
      boolean that_present_amount = true;
2301
      if (this_present_amount || that_present_amount) {
2302
        if (!(this_present_amount && that_present_amount))
2303
          return false;
2304
        if (this.amount != that.amount)
2305
          return false;
2306
      }
2307
 
695 rajveer 2308
      boolean this_present_gatewayId = true;
2309
      boolean that_present_gatewayId = true;
2310
      if (this_present_gatewayId || that_present_gatewayId) {
2311
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 2312
          return false;
695 rajveer 2313
        if (this.gatewayId != that.gatewayId)
123 ashish 2314
          return false;
2315
      }
2316
 
695 rajveer 2317
      boolean this_present_txnId = true;
2318
      boolean that_present_txnId = true;
2319
      if (this_present_txnId || that_present_txnId) {
2320
        if (!(this_present_txnId && that_present_txnId))
2321
          return false;
2322
        if (this.txnId != that.txnId)
2323
          return false;
2324
      }
2325
 
6050 anupam.sin 2326
      boolean this_present_isDigital = true;
2327
      boolean that_present_isDigital = true;
2328
      if (this_present_isDigital || that_present_isDigital) {
2329
        if (!(this_present_isDigital && that_present_isDigital))
2330
          return false;
2331
        if (this.isDigital != that.isDigital)
2332
          return false;
2333
      }
2334
 
123 ashish 2335
      return true;
2336
    }
2337
 
2338
    @Override
2339
    public int hashCode() {
2340
      return 0;
2341
    }
2342
 
2343
    public int compareTo(createPayment_args other) {
2344
      if (!getClass().equals(other.getClass())) {
2345
        return getClass().getName().compareTo(other.getClass().getName());
2346
      }
2347
 
2348
      int lastComparison = 0;
2349
      createPayment_args typedOther = (createPayment_args)other;
2350
 
3430 rajveer 2351
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 2352
      if (lastComparison != 0) {
2353
        return lastComparison;
2354
      }
3430 rajveer 2355
      if (isSetUserId()) {
2356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
2357
        if (lastComparison != 0) {
2358
          return lastComparison;
2359
        }
123 ashish 2360
      }
3430 rajveer 2361
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
123 ashish 2362
      if (lastComparison != 0) {
2363
        return lastComparison;
2364
      }
3430 rajveer 2365
      if (isSetAmount()) {
2366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
2367
        if (lastComparison != 0) {
2368
          return lastComparison;
2369
        }
123 ashish 2370
      }
3430 rajveer 2371
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 2372
      if (lastComparison != 0) {
2373
        return lastComparison;
2374
      }
3430 rajveer 2375
      if (isSetGatewayId()) {
2376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
2377
        if (lastComparison != 0) {
2378
          return lastComparison;
2379
        }
123 ashish 2380
      }
3430 rajveer 2381
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
123 ashish 2382
      if (lastComparison != 0) {
2383
        return lastComparison;
2384
      }
3430 rajveer 2385
      if (isSetTxnId()) {
2386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
2387
        if (lastComparison != 0) {
2388
          return lastComparison;
2389
        }
123 ashish 2390
      }
6050 anupam.sin 2391
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
2392
      if (lastComparison != 0) {
2393
        return lastComparison;
2394
      }
2395
      if (isSetIsDigital()) {
2396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
2397
        if (lastComparison != 0) {
2398
          return lastComparison;
2399
        }
2400
      }
123 ashish 2401
      return 0;
2402
    }
2403
 
3430 rajveer 2404
    public _Fields fieldForId(int fieldId) {
2405
      return _Fields.findByThriftId(fieldId);
2406
    }
2407
 
2408
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2409
      org.apache.thrift.protocol.TField field;
123 ashish 2410
      iprot.readStructBegin();
2411
      while (true)
2412
      {
2413
        field = iprot.readFieldBegin();
3430 rajveer 2414
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2415
          break;
2416
        }
3430 rajveer 2417
        switch (field.id) {
2418
          case 1: // USER_ID
2419
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2420
              this.userId = iprot.readI64();
2421
              setUserIdIsSet(true);
2422
            } else { 
2423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2424
            }
2425
            break;
2426
          case 2: // AMOUNT
2427
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2428
              this.amount = iprot.readDouble();
2429
              setAmountIsSet(true);
2430
            } else { 
2431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2432
            }
2433
            break;
2434
          case 3: // GATEWAY_ID
2435
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2436
              this.gatewayId = iprot.readI64();
2437
              setGatewayIdIsSet(true);
2438
            } else { 
2439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2440
            }
2441
            break;
2442
          case 4: // TXN_ID
2443
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2444
              this.txnId = iprot.readI64();
2445
              setTxnIdIsSet(true);
2446
            } else { 
2447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2448
            }
2449
            break;
6050 anupam.sin 2450
          case 5: // IS_DIGITAL
2451
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2452
              this.isDigital = iprot.readBool();
2453
              setIsDigitalIsSet(true);
2454
            } else { 
2455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2456
            }
2457
            break;
3430 rajveer 2458
          default:
2459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2460
        }
3430 rajveer 2461
        iprot.readFieldEnd();
123 ashish 2462
      }
2463
      iprot.readStructEnd();
2464
      validate();
2465
    }
2466
 
3430 rajveer 2467
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2468
      validate();
2469
 
2470
      oprot.writeStructBegin(STRUCT_DESC);
2471
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
695 rajveer 2472
      oprot.writeI64(this.userId);
123 ashish 2473
      oprot.writeFieldEnd();
2474
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
2475
      oprot.writeDouble(this.amount);
2476
      oprot.writeFieldEnd();
420 ashish 2477
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 2478
      oprot.writeI64(this.gatewayId);
420 ashish 2479
      oprot.writeFieldEnd();
695 rajveer 2480
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
2481
      oprot.writeI64(this.txnId);
2482
      oprot.writeFieldEnd();
6050 anupam.sin 2483
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
2484
      oprot.writeBool(this.isDigital);
2485
      oprot.writeFieldEnd();
123 ashish 2486
      oprot.writeFieldStop();
2487
      oprot.writeStructEnd();
2488
    }
2489
 
2490
    @Override
2491
    public String toString() {
2492
      StringBuilder sb = new StringBuilder("createPayment_args(");
2493
      boolean first = true;
2494
 
695 rajveer 2495
      sb.append("userId:");
2496
      sb.append(this.userId);
123 ashish 2497
      first = false;
2498
      if (!first) sb.append(", ");
2499
      sb.append("amount:");
2500
      sb.append(this.amount);
2501
      first = false;
2502
      if (!first) sb.append(", ");
695 rajveer 2503
      sb.append("gatewayId:");
2504
      sb.append(this.gatewayId);
123 ashish 2505
      first = false;
695 rajveer 2506
      if (!first) sb.append(", ");
2507
      sb.append("txnId:");
2508
      sb.append(this.txnId);
2509
      first = false;
6050 anupam.sin 2510
      if (!first) sb.append(", ");
2511
      sb.append("isDigital:");
2512
      sb.append(this.isDigital);
2513
      first = false;
123 ashish 2514
      sb.append(")");
2515
      return sb.toString();
2516
    }
2517
 
3430 rajveer 2518
    public void validate() throws org.apache.thrift.TException {
123 ashish 2519
      // check for required fields
2520
    }
2521
 
3430 rajveer 2522
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2523
      try {
2524
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2525
      } catch (org.apache.thrift.TException te) {
2526
        throw new java.io.IOException(te);
2527
      }
2528
    }
2529
 
2530
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2531
      try {
2532
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2533
      } catch (org.apache.thrift.TException te) {
2534
        throw new java.io.IOException(te);
2535
      }
2536
    }
2537
 
123 ashish 2538
  }
2539
 
3430 rajveer 2540
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
2541
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
123 ashish 2542
 
3430 rajveer 2543
    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);
2544
    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);
123 ashish 2545
 
3430 rajveer 2546
    private long success; // required
2547
    private PaymentException pe; // required
123 ashish 2548
 
2549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2551
      SUCCESS((short)0, "success"),
2552
      PE((short)1, "pe");
2553
 
2554
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2555
 
2556
      static {
2557
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2558
          byName.put(field.getFieldName(), field);
2559
        }
2560
      }
2561
 
2562
      /**
2563
       * Find the _Fields constant that matches fieldId, or null if its not found.
2564
       */
2565
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2566
        switch(fieldId) {
2567
          case 0: // SUCCESS
2568
            return SUCCESS;
2569
          case 1: // PE
2570
            return PE;
2571
          default:
2572
            return null;
2573
        }
123 ashish 2574
      }
2575
 
2576
      /**
2577
       * Find the _Fields constant that matches fieldId, throwing an exception
2578
       * if it is not found.
2579
       */
2580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2581
        _Fields fields = findByThriftId(fieldId);
2582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2583
        return fields;
2584
      }
2585
 
2586
      /**
2587
       * Find the _Fields constant that matches name, or null if its not found.
2588
       */
2589
      public static _Fields findByName(String name) {
2590
        return byName.get(name);
2591
      }
2592
 
2593
      private final short _thriftId;
2594
      private final String _fieldName;
2595
 
2596
      _Fields(short thriftId, String fieldName) {
2597
        _thriftId = thriftId;
2598
        _fieldName = fieldName;
2599
      }
2600
 
2601
      public short getThriftFieldId() {
2602
        return _thriftId;
2603
      }
2604
 
2605
      public String getFieldName() {
2606
        return _fieldName;
2607
      }
2608
    }
2609
 
2610
    // isset id assignments
420 ashish 2611
    private static final int __SUCCESS_ISSET_ID = 0;
2612
    private BitSet __isset_bit_vector = new BitSet(1);
123 ashish 2613
 
3430 rajveer 2614
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2615
    static {
3430 rajveer 2616
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2617
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2619
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2620
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2621
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2622
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
123 ashish 2623
    }
2624
 
2625
    public createPayment_result() {
2626
    }
2627
 
2628
    public createPayment_result(
420 ashish 2629
      long success,
123 ashish 2630
      PaymentException pe)
2631
    {
2632
      this();
2633
      this.success = success;
420 ashish 2634
      setSuccessIsSet(true);
123 ashish 2635
      this.pe = pe;
2636
    }
2637
 
2638
    /**
2639
     * Performs a deep copy on <i>other</i>.
2640
     */
2641
    public createPayment_result(createPayment_result other) {
420 ashish 2642
      __isset_bit_vector.clear();
2643
      __isset_bit_vector.or(other.__isset_bit_vector);
2644
      this.success = other.success;
123 ashish 2645
      if (other.isSetPe()) {
2646
        this.pe = new PaymentException(other.pe);
2647
      }
2648
    }
2649
 
2650
    public createPayment_result deepCopy() {
2651
      return new createPayment_result(this);
2652
    }
2653
 
3430 rajveer 2654
    @Override
2655
    public void clear() {
2656
      setSuccessIsSet(false);
2657
      this.success = 0;
2658
      this.pe = null;
123 ashish 2659
    }
2660
 
420 ashish 2661
    public long getSuccess() {
123 ashish 2662
      return this.success;
2663
    }
2664
 
3430 rajveer 2665
    public void setSuccess(long success) {
123 ashish 2666
      this.success = success;
420 ashish 2667
      setSuccessIsSet(true);
123 ashish 2668
    }
2669
 
2670
    public void unsetSuccess() {
420 ashish 2671
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 2672
    }
2673
 
3430 rajveer 2674
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 2675
    public boolean isSetSuccess() {
420 ashish 2676
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 2677
    }
2678
 
2679
    public void setSuccessIsSet(boolean value) {
420 ashish 2680
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
123 ashish 2681
    }
2682
 
2683
    public PaymentException getPe() {
2684
      return this.pe;
2685
    }
2686
 
3430 rajveer 2687
    public void setPe(PaymentException pe) {
123 ashish 2688
      this.pe = pe;
2689
    }
2690
 
2691
    public void unsetPe() {
2692
      this.pe = null;
2693
    }
2694
 
3430 rajveer 2695
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 2696
    public boolean isSetPe() {
2697
      return this.pe != null;
2698
    }
2699
 
2700
    public void setPeIsSet(boolean value) {
2701
      if (!value) {
2702
        this.pe = null;
2703
      }
2704
    }
2705
 
2706
    public void setFieldValue(_Fields field, Object value) {
2707
      switch (field) {
2708
      case SUCCESS:
2709
        if (value == null) {
2710
          unsetSuccess();
2711
        } else {
420 ashish 2712
          setSuccess((Long)value);
123 ashish 2713
        }
2714
        break;
2715
 
2716
      case PE:
2717
        if (value == null) {
2718
          unsetPe();
2719
        } else {
2720
          setPe((PaymentException)value);
2721
        }
2722
        break;
2723
 
2724
      }
2725
    }
2726
 
2727
    public Object getFieldValue(_Fields field) {
2728
      switch (field) {
2729
      case SUCCESS:
3430 rajveer 2730
        return Long.valueOf(getSuccess());
123 ashish 2731
 
2732
      case PE:
2733
        return getPe();
2734
 
2735
      }
2736
      throw new IllegalStateException();
2737
    }
2738
 
3430 rajveer 2739
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2740
    public boolean isSet(_Fields field) {
2741
      if (field == null) {
2742
        throw new IllegalArgumentException();
2743
      }
123 ashish 2744
 
2745
      switch (field) {
2746
      case SUCCESS:
2747
        return isSetSuccess();
2748
      case PE:
2749
        return isSetPe();
2750
      }
2751
      throw new IllegalStateException();
2752
    }
2753
 
2754
    @Override
2755
    public boolean equals(Object that) {
2756
      if (that == null)
2757
        return false;
2758
      if (that instanceof createPayment_result)
2759
        return this.equals((createPayment_result)that);
2760
      return false;
2761
    }
2762
 
2763
    public boolean equals(createPayment_result that) {
2764
      if (that == null)
2765
        return false;
2766
 
420 ashish 2767
      boolean this_present_success = true;
2768
      boolean that_present_success = true;
123 ashish 2769
      if (this_present_success || that_present_success) {
2770
        if (!(this_present_success && that_present_success))
2771
          return false;
420 ashish 2772
        if (this.success != that.success)
123 ashish 2773
          return false;
2774
      }
2775
 
2776
      boolean this_present_pe = true && this.isSetPe();
2777
      boolean that_present_pe = true && that.isSetPe();
2778
      if (this_present_pe || that_present_pe) {
2779
        if (!(this_present_pe && that_present_pe))
2780
          return false;
2781
        if (!this.pe.equals(that.pe))
2782
          return false;
2783
      }
2784
 
2785
      return true;
2786
    }
2787
 
2788
    @Override
2789
    public int hashCode() {
2790
      return 0;
2791
    }
2792
 
420 ashish 2793
    public int compareTo(createPayment_result other) {
2794
      if (!getClass().equals(other.getClass())) {
2795
        return getClass().getName().compareTo(other.getClass().getName());
2796
      }
2797
 
2798
      int lastComparison = 0;
2799
      createPayment_result typedOther = (createPayment_result)other;
2800
 
3430 rajveer 2801
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 2802
      if (lastComparison != 0) {
2803
        return lastComparison;
2804
      }
3430 rajveer 2805
      if (isSetSuccess()) {
2806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2807
        if (lastComparison != 0) {
2808
          return lastComparison;
2809
        }
420 ashish 2810
      }
3430 rajveer 2811
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 2812
      if (lastComparison != 0) {
2813
        return lastComparison;
2814
      }
3430 rajveer 2815
      if (isSetPe()) {
2816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
2817
        if (lastComparison != 0) {
2818
          return lastComparison;
2819
        }
420 ashish 2820
      }
2821
      return 0;
2822
    }
2823
 
3430 rajveer 2824
    public _Fields fieldForId(int fieldId) {
2825
      return _Fields.findByThriftId(fieldId);
2826
    }
2827
 
2828
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2829
      org.apache.thrift.protocol.TField field;
123 ashish 2830
      iprot.readStructBegin();
2831
      while (true)
2832
      {
2833
        field = iprot.readFieldBegin();
3430 rajveer 2834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2835
          break;
2836
        }
3430 rajveer 2837
        switch (field.id) {
2838
          case 0: // SUCCESS
2839
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2840
              this.success = iprot.readI64();
2841
              setSuccessIsSet(true);
2842
            } else { 
2843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2844
            }
2845
            break;
2846
          case 1: // PE
2847
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2848
              this.pe = new PaymentException();
2849
              this.pe.read(iprot);
2850
            } else { 
2851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2852
            }
2853
            break;
2854
          default:
2855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2856
        }
3430 rajveer 2857
        iprot.readFieldEnd();
123 ashish 2858
      }
2859
      iprot.readStructEnd();
2860
      validate();
2861
    }
2862
 
3430 rajveer 2863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2864
      oprot.writeStructBegin(STRUCT_DESC);
2865
 
2866
      if (this.isSetSuccess()) {
2867
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 2868
        oprot.writeI64(this.success);
123 ashish 2869
        oprot.writeFieldEnd();
2870
      } else if (this.isSetPe()) {
2871
        oprot.writeFieldBegin(PE_FIELD_DESC);
2872
        this.pe.write(oprot);
2873
        oprot.writeFieldEnd();
2874
      }
2875
      oprot.writeFieldStop();
2876
      oprot.writeStructEnd();
2877
    }
2878
 
2879
    @Override
2880
    public String toString() {
2881
      StringBuilder sb = new StringBuilder("createPayment_result(");
2882
      boolean first = true;
2883
 
2884
      sb.append("success:");
420 ashish 2885
      sb.append(this.success);
123 ashish 2886
      first = false;
2887
      if (!first) sb.append(", ");
2888
      sb.append("pe:");
2889
      if (this.pe == null) {
2890
        sb.append("null");
2891
      } else {
2892
        sb.append(this.pe);
2893
      }
2894
      first = false;
2895
      sb.append(")");
2896
      return sb.toString();
2897
    }
2898
 
3430 rajveer 2899
    public void validate() throws org.apache.thrift.TException {
123 ashish 2900
      // check for required fields
2901
    }
2902
 
3430 rajveer 2903
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2904
      try {
2905
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2906
      } catch (org.apache.thrift.TException te) {
2907
        throw new java.io.IOException(te);
2908
      }
2909
    }
2910
 
2911
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2912
      try {
2913
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2914
      } catch (org.apache.thrift.TException te) {
2915
        throw new java.io.IOException(te);
2916
      }
2917
    }
2918
 
123 ashish 2919
  }
2920
 
3430 rajveer 2921
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
2922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
123 ashish 2923
 
3430 rajveer 2924
    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);
2925
    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);
2926
    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);
2927
    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);
2928
    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);
123 ashish 2929
 
3430 rajveer 2930
    private long userId; // required
2931
    private long fromTime; // required
2932
    private long toTime; // required
2933
    private PaymentStatus status; // required
2934
    private long gatewayId; // required
123 ashish 2935
 
2936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2938
      USER_ID((short)1, "userId"),
695 rajveer 2939
      FROM_TIME((short)2, "fromTime"),
2940
      TO_TIME((short)3, "toTime"),
123 ashish 2941
      /**
2942
       * 
2943
       * @see PaymentStatus
2944
       */
2945
      STATUS((short)4, "status"),
695 rajveer 2946
      GATEWAY_ID((short)5, "gatewayId");
123 ashish 2947
 
2948
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2949
 
2950
      static {
2951
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2952
          byName.put(field.getFieldName(), field);
2953
        }
2954
      }
2955
 
2956
      /**
2957
       * Find the _Fields constant that matches fieldId, or null if its not found.
2958
       */
2959
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2960
        switch(fieldId) {
2961
          case 1: // USER_ID
2962
            return USER_ID;
2963
          case 2: // FROM_TIME
2964
            return FROM_TIME;
2965
          case 3: // TO_TIME
2966
            return TO_TIME;
2967
          case 4: // STATUS
2968
            return STATUS;
2969
          case 5: // GATEWAY_ID
2970
            return GATEWAY_ID;
2971
          default:
2972
            return null;
2973
        }
123 ashish 2974
      }
2975
 
2976
      /**
2977
       * Find the _Fields constant that matches fieldId, throwing an exception
2978
       * if it is not found.
2979
       */
2980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2981
        _Fields fields = findByThriftId(fieldId);
2982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2983
        return fields;
2984
      }
2985
 
2986
      /**
2987
       * Find the _Fields constant that matches name, or null if its not found.
2988
       */
2989
      public static _Fields findByName(String name) {
2990
        return byName.get(name);
2991
      }
2992
 
2993
      private final short _thriftId;
2994
      private final String _fieldName;
2995
 
2996
      _Fields(short thriftId, String fieldName) {
2997
        _thriftId = thriftId;
2998
        _fieldName = fieldName;
2999
      }
3000
 
3001
      public short getThriftFieldId() {
3002
        return _thriftId;
3003
      }
3004
 
3005
      public String getFieldName() {
3006
        return _fieldName;
3007
      }
3008
    }
3009
 
3010
    // isset id assignments
3011
    private static final int __USERID_ISSET_ID = 0;
695 rajveer 3012
    private static final int __FROMTIME_ISSET_ID = 1;
3013
    private static final int __TOTIME_ISSET_ID = 2;
3014
    private static final int __GATEWAYID_ISSET_ID = 3;
420 ashish 3015
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 3016
 
3430 rajveer 3017
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3018
    static {
3430 rajveer 3019
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3020
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3022
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3023
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3024
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3026
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3027
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
3028
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
123 ashish 3032
    }
3033
 
3034
    public getPaymentsForUser_args() {
3035
    }
3036
 
3037
    public getPaymentsForUser_args(
3038
      long userId,
695 rajveer 3039
      long fromTime,
3040
      long toTime,
123 ashish 3041
      PaymentStatus status,
695 rajveer 3042
      long gatewayId)
123 ashish 3043
    {
3044
      this();
3045
      this.userId = userId;
3046
      setUserIdIsSet(true);
695 rajveer 3047
      this.fromTime = fromTime;
3048
      setFromTimeIsSet(true);
3049
      this.toTime = toTime;
3050
      setToTimeIsSet(true);
123 ashish 3051
      this.status = status;
695 rajveer 3052
      this.gatewayId = gatewayId;
3053
      setGatewayIdIsSet(true);
123 ashish 3054
    }
3055
 
3056
    /**
3057
     * Performs a deep copy on <i>other</i>.
3058
     */
3059
    public getPaymentsForUser_args(getPaymentsForUser_args other) {
3060
      __isset_bit_vector.clear();
3061
      __isset_bit_vector.or(other.__isset_bit_vector);
3062
      this.userId = other.userId;
695 rajveer 3063
      this.fromTime = other.fromTime;
3064
      this.toTime = other.toTime;
123 ashish 3065
      if (other.isSetStatus()) {
3066
        this.status = other.status;
3067
      }
695 rajveer 3068
      this.gatewayId = other.gatewayId;
123 ashish 3069
    }
3070
 
3071
    public getPaymentsForUser_args deepCopy() {
3072
      return new getPaymentsForUser_args(this);
3073
    }
3074
 
3430 rajveer 3075
    @Override
3076
    public void clear() {
3077
      setUserIdIsSet(false);
3078
      this.userId = 0;
3079
      setFromTimeIsSet(false);
3080
      this.fromTime = 0;
3081
      setToTimeIsSet(false);
3082
      this.toTime = 0;
3083
      this.status = null;
3084
      setGatewayIdIsSet(false);
3085
      this.gatewayId = 0;
123 ashish 3086
    }
3087
 
3088
    public long getUserId() {
3089
      return this.userId;
3090
    }
3091
 
3430 rajveer 3092
    public void setUserId(long userId) {
123 ashish 3093
      this.userId = userId;
3094
      setUserIdIsSet(true);
3095
    }
3096
 
3097
    public void unsetUserId() {
3098
      __isset_bit_vector.clear(__USERID_ISSET_ID);
3099
    }
3100
 
3430 rajveer 3101
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 3102
    public boolean isSetUserId() {
3103
      return __isset_bit_vector.get(__USERID_ISSET_ID);
3104
    }
3105
 
3106
    public void setUserIdIsSet(boolean value) {
3107
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
3108
    }
3109
 
695 rajveer 3110
    public long getFromTime() {
3111
      return this.fromTime;
123 ashish 3112
    }
3113
 
3430 rajveer 3114
    public void setFromTime(long fromTime) {
695 rajveer 3115
      this.fromTime = fromTime;
3116
      setFromTimeIsSet(true);
123 ashish 3117
    }
3118
 
695 rajveer 3119
    public void unsetFromTime() {
3120
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 3121
    }
3122
 
3430 rajveer 3123
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 3124
    public boolean isSetFromTime() {
3125
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 3126
    }
3127
 
695 rajveer 3128
    public void setFromTimeIsSet(boolean value) {
3129
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 3130
    }
3131
 
695 rajveer 3132
    public long getToTime() {
3133
      return this.toTime;
123 ashish 3134
    }
3135
 
3430 rajveer 3136
    public void setToTime(long toTime) {
695 rajveer 3137
      this.toTime = toTime;
3138
      setToTimeIsSet(true);
123 ashish 3139
    }
3140
 
695 rajveer 3141
    public void unsetToTime() {
3142
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 3143
    }
3144
 
3430 rajveer 3145
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 3146
    public boolean isSetToTime() {
3147
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 3148
    }
3149
 
695 rajveer 3150
    public void setToTimeIsSet(boolean value) {
3151
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 3152
    }
3153
 
3154
    /**
3155
     * 
3156
     * @see PaymentStatus
3157
     */
3158
    public PaymentStatus getStatus() {
3159
      return this.status;
3160
    }
3161
 
3162
    /**
3163
     * 
3164
     * @see PaymentStatus
3165
     */
3430 rajveer 3166
    public void setStatus(PaymentStatus status) {
123 ashish 3167
      this.status = status;
3168
    }
3169
 
3170
    public void unsetStatus() {
3171
      this.status = null;
3172
    }
3173
 
3430 rajveer 3174
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 3175
    public boolean isSetStatus() {
3176
      return this.status != null;
3177
    }
3178
 
3179
    public void setStatusIsSet(boolean value) {
3180
      if (!value) {
3181
        this.status = null;
3182
      }
3183
    }
3184
 
695 rajveer 3185
    public long getGatewayId() {
3186
      return this.gatewayId;
123 ashish 3187
    }
3188
 
3430 rajveer 3189
    public void setGatewayId(long gatewayId) {
695 rajveer 3190
      this.gatewayId = gatewayId;
3191
      setGatewayIdIsSet(true);
123 ashish 3192
    }
3193
 
695 rajveer 3194
    public void unsetGatewayId() {
3195
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 3196
    }
3197
 
3430 rajveer 3198
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 3199
    public boolean isSetGatewayId() {
3200
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 3201
    }
3202
 
695 rajveer 3203
    public void setGatewayIdIsSet(boolean value) {
3204
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 3205
    }
3206
 
3207
    public void setFieldValue(_Fields field, Object value) {
3208
      switch (field) {
3209
      case USER_ID:
3210
        if (value == null) {
3211
          unsetUserId();
3212
        } else {
3213
          setUserId((Long)value);
3214
        }
3215
        break;
3216
 
3217
      case FROM_TIME:
3218
        if (value == null) {
695 rajveer 3219
          unsetFromTime();
123 ashish 3220
        } else {
695 rajveer 3221
          setFromTime((Long)value);
123 ashish 3222
        }
3223
        break;
3224
 
3225
      case TO_TIME:
3226
        if (value == null) {
695 rajveer 3227
          unsetToTime();
123 ashish 3228
        } else {
695 rajveer 3229
          setToTime((Long)value);
123 ashish 3230
        }
3231
        break;
3232
 
3233
      case STATUS:
3234
        if (value == null) {
3235
          unsetStatus();
3236
        } else {
3237
          setStatus((PaymentStatus)value);
3238
        }
3239
        break;
3240
 
420 ashish 3241
      case GATEWAY_ID:
123 ashish 3242
        if (value == null) {
695 rajveer 3243
          unsetGatewayId();
123 ashish 3244
        } else {
695 rajveer 3245
          setGatewayId((Long)value);
123 ashish 3246
        }
3247
        break;
3248
 
3249
      }
3250
    }
3251
 
3252
    public Object getFieldValue(_Fields field) {
3253
      switch (field) {
3254
      case USER_ID:
3430 rajveer 3255
        return Long.valueOf(getUserId());
123 ashish 3256
 
3257
      case FROM_TIME:
3430 rajveer 3258
        return Long.valueOf(getFromTime());
123 ashish 3259
 
3260
      case TO_TIME:
3430 rajveer 3261
        return Long.valueOf(getToTime());
123 ashish 3262
 
3263
      case STATUS:
3264
        return getStatus();
3265
 
420 ashish 3266
      case GATEWAY_ID:
3430 rajveer 3267
        return Long.valueOf(getGatewayId());
123 ashish 3268
 
3269
      }
3270
      throw new IllegalStateException();
3271
    }
3272
 
3430 rajveer 3273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3274
    public boolean isSet(_Fields field) {
3275
      if (field == null) {
3276
        throw new IllegalArgumentException();
3277
      }
123 ashish 3278
 
3279
      switch (field) {
3280
      case USER_ID:
3281
        return isSetUserId();
3282
      case FROM_TIME:
695 rajveer 3283
        return isSetFromTime();
123 ashish 3284
      case TO_TIME:
695 rajveer 3285
        return isSetToTime();
123 ashish 3286
      case STATUS:
3287
        return isSetStatus();
420 ashish 3288
      case GATEWAY_ID:
695 rajveer 3289
        return isSetGatewayId();
123 ashish 3290
      }
3291
      throw new IllegalStateException();
3292
    }
3293
 
3294
    @Override
3295
    public boolean equals(Object that) {
3296
      if (that == null)
3297
        return false;
3298
      if (that instanceof getPaymentsForUser_args)
3299
        return this.equals((getPaymentsForUser_args)that);
3300
      return false;
3301
    }
3302
 
3303
    public boolean equals(getPaymentsForUser_args that) {
3304
      if (that == null)
3305
        return false;
3306
 
3307
      boolean this_present_userId = true;
3308
      boolean that_present_userId = true;
3309
      if (this_present_userId || that_present_userId) {
3310
        if (!(this_present_userId && that_present_userId))
3311
          return false;
3312
        if (this.userId != that.userId)
3313
          return false;
3314
      }
3315
 
695 rajveer 3316
      boolean this_present_fromTime = true;
3317
      boolean that_present_fromTime = true;
3318
      if (this_present_fromTime || that_present_fromTime) {
3319
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 3320
          return false;
695 rajveer 3321
        if (this.fromTime != that.fromTime)
123 ashish 3322
          return false;
3323
      }
3324
 
695 rajveer 3325
      boolean this_present_toTime = true;
3326
      boolean that_present_toTime = true;
3327
      if (this_present_toTime || that_present_toTime) {
3328
        if (!(this_present_toTime && that_present_toTime))
123 ashish 3329
          return false;
695 rajveer 3330
        if (this.toTime != that.toTime)
123 ashish 3331
          return false;
3332
      }
3333
 
3334
      boolean this_present_status = true && this.isSetStatus();
3335
      boolean that_present_status = true && that.isSetStatus();
3336
      if (this_present_status || that_present_status) {
3337
        if (!(this_present_status && that_present_status))
3338
          return false;
3339
        if (!this.status.equals(that.status))
3340
          return false;
3341
      }
3342
 
695 rajveer 3343
      boolean this_present_gatewayId = true;
3344
      boolean that_present_gatewayId = true;
3345
      if (this_present_gatewayId || that_present_gatewayId) {
3346
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 3347
          return false;
695 rajveer 3348
        if (this.gatewayId != that.gatewayId)
123 ashish 3349
          return false;
3350
      }
3351
 
3352
      return true;
3353
    }
3354
 
3355
    @Override
3356
    public int hashCode() {
3357
      return 0;
3358
    }
3359
 
3360
    public int compareTo(getPaymentsForUser_args other) {
3361
      if (!getClass().equals(other.getClass())) {
3362
        return getClass().getName().compareTo(other.getClass().getName());
3363
      }
3364
 
3365
      int lastComparison = 0;
3366
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
3367
 
3430 rajveer 3368
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 3369
      if (lastComparison != 0) {
3370
        return lastComparison;
3371
      }
3430 rajveer 3372
      if (isSetUserId()) {
3373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
3374
        if (lastComparison != 0) {
3375
          return lastComparison;
3376
        }
123 ashish 3377
      }
3430 rajveer 3378
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 3379
      if (lastComparison != 0) {
3380
        return lastComparison;
3381
      }
3430 rajveer 3382
      if (isSetFromTime()) {
3383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
3384
        if (lastComparison != 0) {
3385
          return lastComparison;
3386
        }
123 ashish 3387
      }
3430 rajveer 3388
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 3389
      if (lastComparison != 0) {
3390
        return lastComparison;
3391
      }
3430 rajveer 3392
      if (isSetToTime()) {
3393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
3394
        if (lastComparison != 0) {
3395
          return lastComparison;
3396
        }
123 ashish 3397
      }
3430 rajveer 3398
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 3399
      if (lastComparison != 0) {
3400
        return lastComparison;
3401
      }
3430 rajveer 3402
      if (isSetStatus()) {
3403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3404
        if (lastComparison != 0) {
3405
          return lastComparison;
3406
        }
123 ashish 3407
      }
3430 rajveer 3408
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 3409
      if (lastComparison != 0) {
3410
        return lastComparison;
3411
      }
3430 rajveer 3412
      if (isSetGatewayId()) {
3413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3414
        if (lastComparison != 0) {
3415
          return lastComparison;
3416
        }
123 ashish 3417
      }
3418
      return 0;
3419
    }
3420
 
3430 rajveer 3421
    public _Fields fieldForId(int fieldId) {
3422
      return _Fields.findByThriftId(fieldId);
3423
    }
3424
 
3425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3426
      org.apache.thrift.protocol.TField field;
123 ashish 3427
      iprot.readStructBegin();
3428
      while (true)
3429
      {
3430
        field = iprot.readFieldBegin();
3430 rajveer 3431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3432
          break;
3433
        }
3430 rajveer 3434
        switch (field.id) {
3435
          case 1: // USER_ID
3436
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3437
              this.userId = iprot.readI64();
3438
              setUserIdIsSet(true);
3439
            } else { 
3440
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3441
            }
3442
            break;
3443
          case 2: // FROM_TIME
3444
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3445
              this.fromTime = iprot.readI64();
3446
              setFromTimeIsSet(true);
3447
            } else { 
3448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3449
            }
3450
            break;
3451
          case 3: // TO_TIME
3452
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3453
              this.toTime = iprot.readI64();
3454
              setToTimeIsSet(true);
3455
            } else { 
3456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3457
            }
3458
            break;
3459
          case 4: // STATUS
3460
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3461
              this.status = PaymentStatus.findByValue(iprot.readI32());
3462
            } else { 
3463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3464
            }
3465
            break;
3466
          case 5: // GATEWAY_ID
3467
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3468
              this.gatewayId = iprot.readI64();
3469
              setGatewayIdIsSet(true);
3470
            } else { 
3471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3472
            }
3473
            break;
3474
          default:
3475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3476
        }
3430 rajveer 3477
        iprot.readFieldEnd();
123 ashish 3478
      }
3479
      iprot.readStructEnd();
3480
      validate();
3481
    }
3482
 
3430 rajveer 3483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3484
      validate();
3485
 
3486
      oprot.writeStructBegin(STRUCT_DESC);
3487
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3488
      oprot.writeI64(this.userId);
3489
      oprot.writeFieldEnd();
3490
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 3491
      oprot.writeI64(this.fromTime);
123 ashish 3492
      oprot.writeFieldEnd();
3493
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 3494
      oprot.writeI64(this.toTime);
123 ashish 3495
      oprot.writeFieldEnd();
3496
      if (this.status != null) {
3497
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3498
        oprot.writeI32(this.status.getValue());
3499
        oprot.writeFieldEnd();
3500
      }
420 ashish 3501
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 3502
      oprot.writeI64(this.gatewayId);
420 ashish 3503
      oprot.writeFieldEnd();
123 ashish 3504
      oprot.writeFieldStop();
3505
      oprot.writeStructEnd();
3506
    }
3507
 
3508
    @Override
3509
    public String toString() {
3510
      StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
3511
      boolean first = true;
3512
 
3513
      sb.append("userId:");
3514
      sb.append(this.userId);
3515
      first = false;
3516
      if (!first) sb.append(", ");
695 rajveer 3517
      sb.append("fromTime:");
3518
      sb.append(this.fromTime);
123 ashish 3519
      first = false;
3520
      if (!first) sb.append(", ");
695 rajveer 3521
      sb.append("toTime:");
3522
      sb.append(this.toTime);
123 ashish 3523
      first = false;
3524
      if (!first) sb.append(", ");
3525
      sb.append("status:");
3526
      if (this.status == null) {
3527
        sb.append("null");
3528
      } else {
3529
        sb.append(this.status);
3530
      }
3531
      first = false;
3532
      if (!first) sb.append(", ");
695 rajveer 3533
      sb.append("gatewayId:");
3534
      sb.append(this.gatewayId);
123 ashish 3535
      first = false;
3536
      sb.append(")");
3537
      return sb.toString();
3538
    }
3539
 
3430 rajveer 3540
    public void validate() throws org.apache.thrift.TException {
123 ashish 3541
      // check for required fields
3542
    }
3543
 
3430 rajveer 3544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3545
      try {
3546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3547
      } catch (org.apache.thrift.TException te) {
3548
        throw new java.io.IOException(te);
3549
      }
3550
    }
3551
 
3552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3553
      try {
3554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3555
      } catch (org.apache.thrift.TException te) {
3556
        throw new java.io.IOException(te);
3557
      }
3558
    }
3559
 
123 ashish 3560
  }
3561
 
3430 rajveer 3562
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
3563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
123 ashish 3564
 
3430 rajveer 3565
    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);
3566
    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);
123 ashish 3567
 
3430 rajveer 3568
    private List<Payment> success; // required
3569
    private PaymentException pe; // required
123 ashish 3570
 
3571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3573
      SUCCESS((short)0, "success"),
3574
      PE((short)1, "pe");
3575
 
3576
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3577
 
3578
      static {
3579
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3580
          byName.put(field.getFieldName(), field);
3581
        }
3582
      }
3583
 
3584
      /**
3585
       * Find the _Fields constant that matches fieldId, or null if its not found.
3586
       */
3587
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3588
        switch(fieldId) {
3589
          case 0: // SUCCESS
3590
            return SUCCESS;
3591
          case 1: // PE
3592
            return PE;
3593
          default:
3594
            return null;
3595
        }
123 ashish 3596
      }
3597
 
3598
      /**
3599
       * Find the _Fields constant that matches fieldId, throwing an exception
3600
       * if it is not found.
3601
       */
3602
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3603
        _Fields fields = findByThriftId(fieldId);
3604
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3605
        return fields;
3606
      }
3607
 
3608
      /**
3609
       * Find the _Fields constant that matches name, or null if its not found.
3610
       */
3611
      public static _Fields findByName(String name) {
3612
        return byName.get(name);
3613
      }
3614
 
3615
      private final short _thriftId;
3616
      private final String _fieldName;
3617
 
3618
      _Fields(short thriftId, String fieldName) {
3619
        _thriftId = thriftId;
3620
        _fieldName = fieldName;
3621
      }
3622
 
3623
      public short getThriftFieldId() {
3624
        return _thriftId;
3625
      }
3626
 
3627
      public String getFieldName() {
3628
        return _fieldName;
3629
      }
3630
    }
3631
 
3632
    // isset id assignments
3633
 
3430 rajveer 3634
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3635
    static {
3430 rajveer 3636
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3637
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3638
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3639
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
3640
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
123 ashish 3644
    }
3645
 
3646
    public getPaymentsForUser_result() {
3647
    }
3648
 
3649
    public getPaymentsForUser_result(
3650
      List<Payment> success,
3651
      PaymentException pe)
3652
    {
3653
      this();
3654
      this.success = success;
3655
      this.pe = pe;
3656
    }
3657
 
3658
    /**
3659
     * Performs a deep copy on <i>other</i>.
3660
     */
3661
    public getPaymentsForUser_result(getPaymentsForUser_result other) {
3662
      if (other.isSetSuccess()) {
3663
        List<Payment> __this__success = new ArrayList<Payment>();
3664
        for (Payment other_element : other.success) {
3665
          __this__success.add(new Payment(other_element));
3666
        }
3667
        this.success = __this__success;
3668
      }
3669
      if (other.isSetPe()) {
3670
        this.pe = new PaymentException(other.pe);
3671
      }
3672
    }
3673
 
3674
    public getPaymentsForUser_result deepCopy() {
3675
      return new getPaymentsForUser_result(this);
3676
    }
3677
 
3430 rajveer 3678
    @Override
3679
    public void clear() {
3680
      this.success = null;
3681
      this.pe = null;
123 ashish 3682
    }
3683
 
3684
    public int getSuccessSize() {
3685
      return (this.success == null) ? 0 : this.success.size();
3686
    }
3687
 
3688
    public java.util.Iterator<Payment> getSuccessIterator() {
3689
      return (this.success == null) ? null : this.success.iterator();
3690
    }
3691
 
3692
    public void addToSuccess(Payment elem) {
3693
      if (this.success == null) {
3694
        this.success = new ArrayList<Payment>();
3695
      }
3696
      this.success.add(elem);
3697
    }
3698
 
3699
    public List<Payment> getSuccess() {
3700
      return this.success;
3701
    }
3702
 
3430 rajveer 3703
    public void setSuccess(List<Payment> success) {
123 ashish 3704
      this.success = success;
3705
    }
3706
 
3707
    public void unsetSuccess() {
3708
      this.success = null;
3709
    }
3710
 
3430 rajveer 3711
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 3712
    public boolean isSetSuccess() {
3713
      return this.success != null;
3714
    }
3715
 
3716
    public void setSuccessIsSet(boolean value) {
3717
      if (!value) {
3718
        this.success = null;
3719
      }
3720
    }
3721
 
3722
    public PaymentException getPe() {
3723
      return this.pe;
3724
    }
3725
 
3430 rajveer 3726
    public void setPe(PaymentException pe) {
123 ashish 3727
      this.pe = pe;
3728
    }
3729
 
3730
    public void unsetPe() {
3731
      this.pe = null;
3732
    }
3733
 
3430 rajveer 3734
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 3735
    public boolean isSetPe() {
3736
      return this.pe != null;
3737
    }
3738
 
3739
    public void setPeIsSet(boolean value) {
3740
      if (!value) {
3741
        this.pe = null;
3742
      }
3743
    }
3744
 
3745
    public void setFieldValue(_Fields field, Object value) {
3746
      switch (field) {
3747
      case SUCCESS:
3748
        if (value == null) {
3749
          unsetSuccess();
3750
        } else {
3751
          setSuccess((List<Payment>)value);
3752
        }
3753
        break;
3754
 
3755
      case PE:
3756
        if (value == null) {
3757
          unsetPe();
3758
        } else {
3759
          setPe((PaymentException)value);
3760
        }
3761
        break;
3762
 
3763
      }
3764
    }
3765
 
3766
    public Object getFieldValue(_Fields field) {
3767
      switch (field) {
3768
      case SUCCESS:
3769
        return getSuccess();
3770
 
3771
      case PE:
3772
        return getPe();
3773
 
3774
      }
3775
      throw new IllegalStateException();
3776
    }
3777
 
3430 rajveer 3778
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3779
    public boolean isSet(_Fields field) {
3780
      if (field == null) {
3781
        throw new IllegalArgumentException();
3782
      }
123 ashish 3783
 
3784
      switch (field) {
3785
      case SUCCESS:
3786
        return isSetSuccess();
3787
      case PE:
3788
        return isSetPe();
3789
      }
3790
      throw new IllegalStateException();
3791
    }
3792
 
3793
    @Override
3794
    public boolean equals(Object that) {
3795
      if (that == null)
3796
        return false;
3797
      if (that instanceof getPaymentsForUser_result)
3798
        return this.equals((getPaymentsForUser_result)that);
3799
      return false;
3800
    }
3801
 
3802
    public boolean equals(getPaymentsForUser_result that) {
3803
      if (that == null)
3804
        return false;
3805
 
3806
      boolean this_present_success = true && this.isSetSuccess();
3807
      boolean that_present_success = true && that.isSetSuccess();
3808
      if (this_present_success || that_present_success) {
3809
        if (!(this_present_success && that_present_success))
3810
          return false;
3811
        if (!this.success.equals(that.success))
3812
          return false;
3813
      }
3814
 
3815
      boolean this_present_pe = true && this.isSetPe();
3816
      boolean that_present_pe = true && that.isSetPe();
3817
      if (this_present_pe || that_present_pe) {
3818
        if (!(this_present_pe && that_present_pe))
3819
          return false;
3820
        if (!this.pe.equals(that.pe))
3821
          return false;
3822
      }
3823
 
3824
      return true;
3825
    }
3826
 
3827
    @Override
3828
    public int hashCode() {
3829
      return 0;
3830
    }
3831
 
695 rajveer 3832
    public int compareTo(getPaymentsForUser_result other) {
123 ashish 3833
      if (!getClass().equals(other.getClass())) {
3834
        return getClass().getName().compareTo(other.getClass().getName());
3835
      }
3836
 
3837
      int lastComparison = 0;
695 rajveer 3838
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
123 ashish 3839
 
3430 rajveer 3840
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 3841
      if (lastComparison != 0) {
3842
        return lastComparison;
3843
      }
3430 rajveer 3844
      if (isSetSuccess()) {
3845
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3846
        if (lastComparison != 0) {
3847
          return lastComparison;
3848
        }
123 ashish 3849
      }
3430 rajveer 3850
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
123 ashish 3851
      if (lastComparison != 0) {
3852
        return lastComparison;
3853
      }
3430 rajveer 3854
      if (isSetPe()) {
3855
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3856
        if (lastComparison != 0) {
3857
          return lastComparison;
3858
        }
123 ashish 3859
      }
3860
      return 0;
3861
    }
3862
 
3430 rajveer 3863
    public _Fields fieldForId(int fieldId) {
3864
      return _Fields.findByThriftId(fieldId);
3865
    }
3866
 
3867
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3868
      org.apache.thrift.protocol.TField field;
123 ashish 3869
      iprot.readStructBegin();
3870
      while (true)
3871
      {
3872
        field = iprot.readFieldBegin();
3430 rajveer 3873
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3874
          break;
3875
        }
3430 rajveer 3876
        switch (field.id) {
3877
          case 0: // SUCCESS
3878
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3879
              {
3880
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
3881
                this.success = new ArrayList<Payment>(_list12.size);
3882
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
123 ashish 3883
                {
3430 rajveer 3884
                  Payment _elem14; // required
3885
                  _elem14 = new Payment();
3886
                  _elem14.read(iprot);
3887
                  this.success.add(_elem14);
123 ashish 3888
                }
3430 rajveer 3889
                iprot.readListEnd();
123 ashish 3890
              }
3430 rajveer 3891
            } else { 
3892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3893
            }
3894
            break;
3895
          case 1: // PE
3896
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3897
              this.pe = new PaymentException();
3898
              this.pe.read(iprot);
3899
            } else { 
3900
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3901
            }
3902
            break;
3903
          default:
3904
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3905
        }
3430 rajveer 3906
        iprot.readFieldEnd();
123 ashish 3907
      }
3908
      iprot.readStructEnd();
3909
      validate();
3910
    }
3911
 
3430 rajveer 3912
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3913
      oprot.writeStructBegin(STRUCT_DESC);
3914
 
3915
      if (this.isSetSuccess()) {
3916
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3917
        {
3430 rajveer 3918
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 3919
          for (Payment _iter15 : this.success)
123 ashish 3920
          {
2747 chandransh 3921
            _iter15.write(oprot);
123 ashish 3922
          }
3923
          oprot.writeListEnd();
3924
        }
3925
        oprot.writeFieldEnd();
3926
      } else if (this.isSetPe()) {
3927
        oprot.writeFieldBegin(PE_FIELD_DESC);
3928
        this.pe.write(oprot);
3929
        oprot.writeFieldEnd();
3930
      }
3931
      oprot.writeFieldStop();
3932
      oprot.writeStructEnd();
3933
    }
3934
 
3935
    @Override
3936
    public String toString() {
695 rajveer 3937
      StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
123 ashish 3938
      boolean first = true;
3939
 
3940
      sb.append("success:");
3941
      if (this.success == null) {
3942
        sb.append("null");
3943
      } else {
3944
        sb.append(this.success);
3945
      }
3946
      first = false;
3947
      if (!first) sb.append(", ");
3948
      sb.append("pe:");
3949
      if (this.pe == null) {
3950
        sb.append("null");
3951
      } else {
3952
        sb.append(this.pe);
3953
      }
3954
      first = false;
3955
      sb.append(")");
3956
      return sb.toString();
3957
    }
3958
 
3430 rajveer 3959
    public void validate() throws org.apache.thrift.TException {
123 ashish 3960
      // check for required fields
3961
    }
3962
 
3430 rajveer 3963
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3964
      try {
3965
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3966
      } catch (org.apache.thrift.TException te) {
3967
        throw new java.io.IOException(te);
3968
      }
3969
    }
3970
 
3971
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3972
      try {
3973
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3974
      } catch (org.apache.thrift.TException te) {
3975
        throw new java.io.IOException(te);
3976
      }
3977
    }
3978
 
123 ashish 3979
  }
3980
 
3430 rajveer 3981
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
3982
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
123 ashish 3983
 
3430 rajveer 3984
    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);
3985
    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);
3986
    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);
3987
    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);
123 ashish 3988
 
3430 rajveer 3989
    private long fromTime; // required
3990
    private long toTime; // required
3991
    private PaymentStatus status; // required
3992
    private long gatewayId; // required
123 ashish 3993
 
3994
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3995
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 3996
      FROM_TIME((short)1, "fromTime"),
3997
      TO_TIME((short)2, "toTime"),
123 ashish 3998
      /**
3999
       * 
4000
       * @see PaymentStatus
4001
       */
4002
      STATUS((short)3, "status"),
695 rajveer 4003
      GATEWAY_ID((short)4, "gatewayId");
123 ashish 4004
 
4005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4006
 
4007
      static {
4008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4009
          byName.put(field.getFieldName(), field);
4010
        }
4011
      }
4012
 
4013
      /**
4014
       * Find the _Fields constant that matches fieldId, or null if its not found.
4015
       */
4016
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4017
        switch(fieldId) {
4018
          case 1: // FROM_TIME
4019
            return FROM_TIME;
4020
          case 2: // TO_TIME
4021
            return TO_TIME;
4022
          case 3: // STATUS
4023
            return STATUS;
4024
          case 4: // GATEWAY_ID
4025
            return GATEWAY_ID;
4026
          default:
4027
            return null;
4028
        }
123 ashish 4029
      }
4030
 
4031
      /**
4032
       * Find the _Fields constant that matches fieldId, throwing an exception
4033
       * if it is not found.
4034
       */
4035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4036
        _Fields fields = findByThriftId(fieldId);
4037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4038
        return fields;
4039
      }
4040
 
4041
      /**
4042
       * Find the _Fields constant that matches name, or null if its not found.
4043
       */
4044
      public static _Fields findByName(String name) {
4045
        return byName.get(name);
4046
      }
4047
 
4048
      private final short _thriftId;
4049
      private final String _fieldName;
4050
 
4051
      _Fields(short thriftId, String fieldName) {
4052
        _thriftId = thriftId;
4053
        _fieldName = fieldName;
4054
      }
4055
 
4056
      public short getThriftFieldId() {
4057
        return _thriftId;
4058
      }
4059
 
4060
      public String getFieldName() {
4061
        return _fieldName;
4062
      }
4063
    }
4064
 
4065
    // isset id assignments
695 rajveer 4066
    private static final int __FROMTIME_ISSET_ID = 0;
4067
    private static final int __TOTIME_ISSET_ID = 1;
4068
    private static final int __GATEWAYID_ISSET_ID = 2;
420 ashish 4069
    private BitSet __isset_bit_vector = new BitSet(3);
123 ashish 4070
 
3430 rajveer 4071
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4072
    static {
3430 rajveer 4073
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4074
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4076
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4078
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4079
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
4080
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4082
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4083
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
123 ashish 4084
    }
4085
 
4086
    public getPayments_args() {
4087
    }
4088
 
4089
    public getPayments_args(
695 rajveer 4090
      long fromTime,
4091
      long toTime,
123 ashish 4092
      PaymentStatus status,
695 rajveer 4093
      long gatewayId)
123 ashish 4094
    {
4095
      this();
695 rajveer 4096
      this.fromTime = fromTime;
4097
      setFromTimeIsSet(true);
4098
      this.toTime = toTime;
4099
      setToTimeIsSet(true);
123 ashish 4100
      this.status = status;
695 rajveer 4101
      this.gatewayId = gatewayId;
4102
      setGatewayIdIsSet(true);
123 ashish 4103
    }
4104
 
4105
    /**
4106
     * Performs a deep copy on <i>other</i>.
4107
     */
4108
    public getPayments_args(getPayments_args other) {
4109
      __isset_bit_vector.clear();
4110
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 4111
      this.fromTime = other.fromTime;
4112
      this.toTime = other.toTime;
123 ashish 4113
      if (other.isSetStatus()) {
4114
        this.status = other.status;
4115
      }
695 rajveer 4116
      this.gatewayId = other.gatewayId;
123 ashish 4117
    }
4118
 
4119
    public getPayments_args deepCopy() {
4120
      return new getPayments_args(this);
4121
    }
4122
 
3430 rajveer 4123
    @Override
4124
    public void clear() {
4125
      setFromTimeIsSet(false);
4126
      this.fromTime = 0;
4127
      setToTimeIsSet(false);
4128
      this.toTime = 0;
4129
      this.status = null;
4130
      setGatewayIdIsSet(false);
4131
      this.gatewayId = 0;
123 ashish 4132
    }
4133
 
695 rajveer 4134
    public long getFromTime() {
4135
      return this.fromTime;
123 ashish 4136
    }
4137
 
3430 rajveer 4138
    public void setFromTime(long fromTime) {
695 rajveer 4139
      this.fromTime = fromTime;
4140
      setFromTimeIsSet(true);
123 ashish 4141
    }
4142
 
695 rajveer 4143
    public void unsetFromTime() {
4144
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 4145
    }
4146
 
3430 rajveer 4147
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 4148
    public boolean isSetFromTime() {
4149
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 4150
    }
4151
 
695 rajveer 4152
    public void setFromTimeIsSet(boolean value) {
4153
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 4154
    }
4155
 
695 rajveer 4156
    public long getToTime() {
4157
      return this.toTime;
123 ashish 4158
    }
4159
 
3430 rajveer 4160
    public void setToTime(long toTime) {
695 rajveer 4161
      this.toTime = toTime;
4162
      setToTimeIsSet(true);
123 ashish 4163
    }
4164
 
695 rajveer 4165
    public void unsetToTime() {
4166
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 4167
    }
4168
 
3430 rajveer 4169
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 4170
    public boolean isSetToTime() {
4171
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 4172
    }
4173
 
695 rajveer 4174
    public void setToTimeIsSet(boolean value) {
4175
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 4176
    }
4177
 
4178
    /**
4179
     * 
4180
     * @see PaymentStatus
4181
     */
4182
    public PaymentStatus getStatus() {
4183
      return this.status;
4184
    }
4185
 
4186
    /**
4187
     * 
4188
     * @see PaymentStatus
4189
     */
3430 rajveer 4190
    public void setStatus(PaymentStatus status) {
123 ashish 4191
      this.status = status;
4192
    }
4193
 
4194
    public void unsetStatus() {
4195
      this.status = null;
4196
    }
4197
 
3430 rajveer 4198
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 4199
    public boolean isSetStatus() {
4200
      return this.status != null;
4201
    }
4202
 
4203
    public void setStatusIsSet(boolean value) {
4204
      if (!value) {
4205
        this.status = null;
4206
      }
4207
    }
4208
 
695 rajveer 4209
    public long getGatewayId() {
4210
      return this.gatewayId;
123 ashish 4211
    }
4212
 
3430 rajveer 4213
    public void setGatewayId(long gatewayId) {
695 rajveer 4214
      this.gatewayId = gatewayId;
4215
      setGatewayIdIsSet(true);
123 ashish 4216
    }
4217
 
695 rajveer 4218
    public void unsetGatewayId() {
4219
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 4220
    }
4221
 
3430 rajveer 4222
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 4223
    public boolean isSetGatewayId() {
4224
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 4225
    }
4226
 
695 rajveer 4227
    public void setGatewayIdIsSet(boolean value) {
4228
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 4229
    }
4230
 
4231
    public void setFieldValue(_Fields field, Object value) {
4232
      switch (field) {
4233
      case FROM_TIME:
4234
        if (value == null) {
695 rajveer 4235
          unsetFromTime();
123 ashish 4236
        } else {
695 rajveer 4237
          setFromTime((Long)value);
123 ashish 4238
        }
4239
        break;
4240
 
4241
      case TO_TIME:
4242
        if (value == null) {
695 rajveer 4243
          unsetToTime();
123 ashish 4244
        } else {
695 rajveer 4245
          setToTime((Long)value);
123 ashish 4246
        }
4247
        break;
4248
 
4249
      case STATUS:
4250
        if (value == null) {
4251
          unsetStatus();
4252
        } else {
4253
          setStatus((PaymentStatus)value);
4254
        }
4255
        break;
4256
 
420 ashish 4257
      case GATEWAY_ID:
123 ashish 4258
        if (value == null) {
695 rajveer 4259
          unsetGatewayId();
123 ashish 4260
        } else {
695 rajveer 4261
          setGatewayId((Long)value);
123 ashish 4262
        }
4263
        break;
4264
 
4265
      }
4266
    }
4267
 
4268
    public Object getFieldValue(_Fields field) {
4269
      switch (field) {
4270
      case FROM_TIME:
3430 rajveer 4271
        return Long.valueOf(getFromTime());
123 ashish 4272
 
4273
      case TO_TIME:
3430 rajveer 4274
        return Long.valueOf(getToTime());
123 ashish 4275
 
4276
      case STATUS:
4277
        return getStatus();
4278
 
420 ashish 4279
      case GATEWAY_ID:
3430 rajveer 4280
        return Long.valueOf(getGatewayId());
123 ashish 4281
 
4282
      }
4283
      throw new IllegalStateException();
4284
    }
4285
 
3430 rajveer 4286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4287
    public boolean isSet(_Fields field) {
4288
      if (field == null) {
4289
        throw new IllegalArgumentException();
4290
      }
123 ashish 4291
 
4292
      switch (field) {
4293
      case FROM_TIME:
695 rajveer 4294
        return isSetFromTime();
123 ashish 4295
      case TO_TIME:
695 rajveer 4296
        return isSetToTime();
123 ashish 4297
      case STATUS:
4298
        return isSetStatus();
420 ashish 4299
      case GATEWAY_ID:
695 rajveer 4300
        return isSetGatewayId();
123 ashish 4301
      }
4302
      throw new IllegalStateException();
4303
    }
4304
 
4305
    @Override
4306
    public boolean equals(Object that) {
4307
      if (that == null)
4308
        return false;
4309
      if (that instanceof getPayments_args)
4310
        return this.equals((getPayments_args)that);
4311
      return false;
4312
    }
4313
 
4314
    public boolean equals(getPayments_args that) {
4315
      if (that == null)
4316
        return false;
4317
 
695 rajveer 4318
      boolean this_present_fromTime = true;
4319
      boolean that_present_fromTime = true;
4320
      if (this_present_fromTime || that_present_fromTime) {
4321
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 4322
          return false;
695 rajveer 4323
        if (this.fromTime != that.fromTime)
123 ashish 4324
          return false;
4325
      }
4326
 
695 rajveer 4327
      boolean this_present_toTime = true;
4328
      boolean that_present_toTime = true;
4329
      if (this_present_toTime || that_present_toTime) {
4330
        if (!(this_present_toTime && that_present_toTime))
123 ashish 4331
          return false;
695 rajveer 4332
        if (this.toTime != that.toTime)
123 ashish 4333
          return false;
4334
      }
4335
 
4336
      boolean this_present_status = true && this.isSetStatus();
4337
      boolean that_present_status = true && that.isSetStatus();
4338
      if (this_present_status || that_present_status) {
4339
        if (!(this_present_status && that_present_status))
4340
          return false;
4341
        if (!this.status.equals(that.status))
4342
          return false;
4343
      }
4344
 
695 rajveer 4345
      boolean this_present_gatewayId = true;
4346
      boolean that_present_gatewayId = true;
4347
      if (this_present_gatewayId || that_present_gatewayId) {
4348
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 4349
          return false;
695 rajveer 4350
        if (this.gatewayId != that.gatewayId)
123 ashish 4351
          return false;
4352
      }
4353
 
4354
      return true;
4355
    }
4356
 
4357
    @Override
4358
    public int hashCode() {
4359
      return 0;
4360
    }
4361
 
4362
    public int compareTo(getPayments_args other) {
4363
      if (!getClass().equals(other.getClass())) {
4364
        return getClass().getName().compareTo(other.getClass().getName());
4365
      }
4366
 
4367
      int lastComparison = 0;
4368
      getPayments_args typedOther = (getPayments_args)other;
4369
 
3430 rajveer 4370
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 4371
      if (lastComparison != 0) {
4372
        return lastComparison;
4373
      }
3430 rajveer 4374
      if (isSetFromTime()) {
4375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
4376
        if (lastComparison != 0) {
4377
          return lastComparison;
4378
        }
123 ashish 4379
      }
3430 rajveer 4380
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 4381
      if (lastComparison != 0) {
4382
        return lastComparison;
4383
      }
3430 rajveer 4384
      if (isSetToTime()) {
4385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
4386
        if (lastComparison != 0) {
4387
          return lastComparison;
4388
        }
123 ashish 4389
      }
3430 rajveer 4390
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 4391
      if (lastComparison != 0) {
4392
        return lastComparison;
4393
      }
3430 rajveer 4394
      if (isSetStatus()) {
4395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
4396
        if (lastComparison != 0) {
4397
          return lastComparison;
4398
        }
123 ashish 4399
      }
3430 rajveer 4400
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 4401
      if (lastComparison != 0) {
4402
        return lastComparison;
4403
      }
3430 rajveer 4404
      if (isSetGatewayId()) {
4405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
4406
        if (lastComparison != 0) {
4407
          return lastComparison;
4408
        }
123 ashish 4409
      }
4410
      return 0;
4411
    }
4412
 
3430 rajveer 4413
    public _Fields fieldForId(int fieldId) {
4414
      return _Fields.findByThriftId(fieldId);
4415
    }
4416
 
4417
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4418
      org.apache.thrift.protocol.TField field;
123 ashish 4419
      iprot.readStructBegin();
4420
      while (true)
4421
      {
4422
        field = iprot.readFieldBegin();
3430 rajveer 4423
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4424
          break;
4425
        }
3430 rajveer 4426
        switch (field.id) {
4427
          case 1: // FROM_TIME
4428
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4429
              this.fromTime = iprot.readI64();
4430
              setFromTimeIsSet(true);
4431
            } else { 
4432
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4433
            }
4434
            break;
4435
          case 2: // TO_TIME
4436
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4437
              this.toTime = iprot.readI64();
4438
              setToTimeIsSet(true);
4439
            } else { 
4440
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4441
            }
4442
            break;
4443
          case 3: // STATUS
4444
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4445
              this.status = PaymentStatus.findByValue(iprot.readI32());
4446
            } else { 
4447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4448
            }
4449
            break;
4450
          case 4: // GATEWAY_ID
4451
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4452
              this.gatewayId = iprot.readI64();
4453
              setGatewayIdIsSet(true);
4454
            } else { 
4455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4456
            }
4457
            break;
4458
          default:
4459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4460
        }
3430 rajveer 4461
        iprot.readFieldEnd();
123 ashish 4462
      }
4463
      iprot.readStructEnd();
4464
      validate();
4465
    }
4466
 
3430 rajveer 4467
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4468
      validate();
4469
 
4470
      oprot.writeStructBegin(STRUCT_DESC);
4471
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 4472
      oprot.writeI64(this.fromTime);
123 ashish 4473
      oprot.writeFieldEnd();
4474
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 4475
      oprot.writeI64(this.toTime);
123 ashish 4476
      oprot.writeFieldEnd();
4477
      if (this.status != null) {
4478
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4479
        oprot.writeI32(this.status.getValue());
4480
        oprot.writeFieldEnd();
4481
      }
420 ashish 4482
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 4483
      oprot.writeI64(this.gatewayId);
420 ashish 4484
      oprot.writeFieldEnd();
123 ashish 4485
      oprot.writeFieldStop();
4486
      oprot.writeStructEnd();
4487
    }
4488
 
4489
    @Override
4490
    public String toString() {
4491
      StringBuilder sb = new StringBuilder("getPayments_args(");
4492
      boolean first = true;
4493
 
695 rajveer 4494
      sb.append("fromTime:");
4495
      sb.append(this.fromTime);
123 ashish 4496
      first = false;
4497
      if (!first) sb.append(", ");
695 rajveer 4498
      sb.append("toTime:");
4499
      sb.append(this.toTime);
123 ashish 4500
      first = false;
4501
      if (!first) sb.append(", ");
4502
      sb.append("status:");
4503
      if (this.status == null) {
4504
        sb.append("null");
4505
      } else {
4506
        sb.append(this.status);
4507
      }
4508
      first = false;
4509
      if (!first) sb.append(", ");
695 rajveer 4510
      sb.append("gatewayId:");
4511
      sb.append(this.gatewayId);
123 ashish 4512
      first = false;
4513
      sb.append(")");
4514
      return sb.toString();
4515
    }
4516
 
3430 rajveer 4517
    public void validate() throws org.apache.thrift.TException {
123 ashish 4518
      // check for required fields
4519
    }
4520
 
3430 rajveer 4521
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4522
      try {
4523
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4524
      } catch (org.apache.thrift.TException te) {
4525
        throw new java.io.IOException(te);
4526
      }
4527
    }
4528
 
4529
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4530
      try {
4531
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4532
      } catch (org.apache.thrift.TException te) {
4533
        throw new java.io.IOException(te);
4534
      }
4535
    }
4536
 
123 ashish 4537
  }
4538
 
3430 rajveer 4539
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
4540
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
123 ashish 4541
 
3430 rajveer 4542
    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);
4543
    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);
123 ashish 4544
 
3430 rajveer 4545
    private List<Payment> success; // required
4546
    private PaymentException pe; // required
123 ashish 4547
 
4548
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4549
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 4550
      SUCCESS((short)0, "success"),
4551
      PE((short)1, "pe");
4552
 
4553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4554
 
4555
      static {
4556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4557
          byName.put(field.getFieldName(), field);
4558
        }
4559
      }
4560
 
4561
      /**
4562
       * Find the _Fields constant that matches fieldId, or null if its not found.
4563
       */
4564
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4565
        switch(fieldId) {
4566
          case 0: // SUCCESS
4567
            return SUCCESS;
4568
          case 1: // PE
4569
            return PE;
4570
          default:
4571
            return null;
4572
        }
123 ashish 4573
      }
4574
 
4575
      /**
4576
       * Find the _Fields constant that matches fieldId, throwing an exception
4577
       * if it is not found.
4578
       */
4579
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4580
        _Fields fields = findByThriftId(fieldId);
4581
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4582
        return fields;
4583
      }
4584
 
4585
      /**
4586
       * Find the _Fields constant that matches name, or null if its not found.
4587
       */
4588
      public static _Fields findByName(String name) {
4589
        return byName.get(name);
4590
      }
4591
 
4592
      private final short _thriftId;
4593
      private final String _fieldName;
4594
 
4595
      _Fields(short thriftId, String fieldName) {
4596
        _thriftId = thriftId;
4597
        _fieldName = fieldName;
4598
      }
4599
 
4600
      public short getThriftFieldId() {
4601
        return _thriftId;
4602
      }
4603
 
4604
      public String getFieldName() {
4605
        return _fieldName;
4606
      }
4607
    }
4608
 
4609
    // isset id assignments
4610
 
3430 rajveer 4611
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4612
    static {
3430 rajveer 4613
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4614
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4615
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4616
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
4617
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
123 ashish 4621
    }
4622
 
4623
    public getPayments_result() {
4624
    }
4625
 
4626
    public getPayments_result(
4627
      List<Payment> success,
4628
      PaymentException pe)
4629
    {
4630
      this();
4631
      this.success = success;
4632
      this.pe = pe;
4633
    }
4634
 
4635
    /**
4636
     * Performs a deep copy on <i>other</i>.
4637
     */
4638
    public getPayments_result(getPayments_result other) {
4639
      if (other.isSetSuccess()) {
4640
        List<Payment> __this__success = new ArrayList<Payment>();
4641
        for (Payment other_element : other.success) {
4642
          __this__success.add(new Payment(other_element));
4643
        }
4644
        this.success = __this__success;
4645
      }
4646
      if (other.isSetPe()) {
4647
        this.pe = new PaymentException(other.pe);
4648
      }
4649
    }
4650
 
4651
    public getPayments_result deepCopy() {
4652
      return new getPayments_result(this);
4653
    }
4654
 
3430 rajveer 4655
    @Override
4656
    public void clear() {
4657
      this.success = null;
4658
      this.pe = null;
123 ashish 4659
    }
4660
 
4661
    public int getSuccessSize() {
4662
      return (this.success == null) ? 0 : this.success.size();
4663
    }
4664
 
4665
    public java.util.Iterator<Payment> getSuccessIterator() {
4666
      return (this.success == null) ? null : this.success.iterator();
4667
    }
4668
 
4669
    public void addToSuccess(Payment elem) {
4670
      if (this.success == null) {
4671
        this.success = new ArrayList<Payment>();
4672
      }
4673
      this.success.add(elem);
4674
    }
4675
 
4676
    public List<Payment> getSuccess() {
4677
      return this.success;
4678
    }
4679
 
3430 rajveer 4680
    public void setSuccess(List<Payment> success) {
123 ashish 4681
      this.success = success;
4682
    }
4683
 
4684
    public void unsetSuccess() {
4685
      this.success = null;
4686
    }
4687
 
3430 rajveer 4688
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 4689
    public boolean isSetSuccess() {
4690
      return this.success != null;
4691
    }
4692
 
4693
    public void setSuccessIsSet(boolean value) {
4694
      if (!value) {
4695
        this.success = null;
4696
      }
4697
    }
4698
 
4699
    public PaymentException getPe() {
4700
      return this.pe;
4701
    }
4702
 
3430 rajveer 4703
    public void setPe(PaymentException pe) {
123 ashish 4704
      this.pe = pe;
4705
    }
4706
 
4707
    public void unsetPe() {
4708
      this.pe = null;
4709
    }
4710
 
3430 rajveer 4711
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 4712
    public boolean isSetPe() {
4713
      return this.pe != null;
4714
    }
4715
 
4716
    public void setPeIsSet(boolean value) {
4717
      if (!value) {
4718
        this.pe = null;
4719
      }
4720
    }
4721
 
4722
    public void setFieldValue(_Fields field, Object value) {
4723
      switch (field) {
4724
      case SUCCESS:
4725
        if (value == null) {
4726
          unsetSuccess();
4727
        } else {
4728
          setSuccess((List<Payment>)value);
4729
        }
4730
        break;
4731
 
4732
      case PE:
4733
        if (value == null) {
4734
          unsetPe();
4735
        } else {
4736
          setPe((PaymentException)value);
4737
        }
4738
        break;
4739
 
4740
      }
4741
    }
4742
 
4743
    public Object getFieldValue(_Fields field) {
4744
      switch (field) {
4745
      case SUCCESS:
4746
        return getSuccess();
4747
 
4748
      case PE:
4749
        return getPe();
4750
 
4751
      }
4752
      throw new IllegalStateException();
4753
    }
4754
 
3430 rajveer 4755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4756
    public boolean isSet(_Fields field) {
4757
      if (field == null) {
4758
        throw new IllegalArgumentException();
4759
      }
123 ashish 4760
 
4761
      switch (field) {
4762
      case SUCCESS:
4763
        return isSetSuccess();
4764
      case PE:
4765
        return isSetPe();
4766
      }
4767
      throw new IllegalStateException();
4768
    }
4769
 
4770
    @Override
4771
    public boolean equals(Object that) {
4772
      if (that == null)
4773
        return false;
4774
      if (that instanceof getPayments_result)
4775
        return this.equals((getPayments_result)that);
4776
      return false;
4777
    }
4778
 
4779
    public boolean equals(getPayments_result that) {
4780
      if (that == null)
4781
        return false;
4782
 
4783
      boolean this_present_success = true && this.isSetSuccess();
4784
      boolean that_present_success = true && that.isSetSuccess();
4785
      if (this_present_success || that_present_success) {
4786
        if (!(this_present_success && that_present_success))
4787
          return false;
4788
        if (!this.success.equals(that.success))
4789
          return false;
4790
      }
4791
 
4792
      boolean this_present_pe = true && this.isSetPe();
4793
      boolean that_present_pe = true && that.isSetPe();
4794
      if (this_present_pe || that_present_pe) {
4795
        if (!(this_present_pe && that_present_pe))
4796
          return false;
4797
        if (!this.pe.equals(that.pe))
4798
          return false;
4799
      }
4800
 
4801
      return true;
4802
    }
4803
 
4804
    @Override
4805
    public int hashCode() {
4806
      return 0;
4807
    }
4808
 
695 rajveer 4809
    public int compareTo(getPayments_result other) {
123 ashish 4810
      if (!getClass().equals(other.getClass())) {
4811
        return getClass().getName().compareTo(other.getClass().getName());
4812
      }
4813
 
4814
      int lastComparison = 0;
695 rajveer 4815
      getPayments_result typedOther = (getPayments_result)other;
123 ashish 4816
 
3430 rajveer 4817
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 4818
      if (lastComparison != 0) {
4819
        return lastComparison;
4820
      }
3430 rajveer 4821
      if (isSetSuccess()) {
4822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4823
        if (lastComparison != 0) {
4824
          return lastComparison;
4825
        }
123 ashish 4826
      }
3430 rajveer 4827
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 4828
      if (lastComparison != 0) {
4829
        return lastComparison;
123 ashish 4830
      }
3430 rajveer 4831
      if (isSetPe()) {
4832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4833
        if (lastComparison != 0) {
4834
          return lastComparison;
4835
        }
123 ashish 4836
      }
4837
      return 0;
4838
    }
4839
 
3430 rajveer 4840
    public _Fields fieldForId(int fieldId) {
4841
      return _Fields.findByThriftId(fieldId);
4842
    }
4843
 
4844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4845
      org.apache.thrift.protocol.TField field;
123 ashish 4846
      iprot.readStructBegin();
4847
      while (true)
4848
      {
4849
        field = iprot.readFieldBegin();
3430 rajveer 4850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4851
          break;
4852
        }
3430 rajveer 4853
        switch (field.id) {
4854
          case 0: // SUCCESS
4855
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4856
              {
4857
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
4858
                this.success = new ArrayList<Payment>(_list16.size);
4859
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
420 ashish 4860
                {
3430 rajveer 4861
                  Payment _elem18; // required
4862
                  _elem18 = new Payment();
4863
                  _elem18.read(iprot);
4864
                  this.success.add(_elem18);
420 ashish 4865
                }
3430 rajveer 4866
                iprot.readListEnd();
123 ashish 4867
              }
3430 rajveer 4868
            } else { 
4869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4870
            }
4871
            break;
4872
          case 1: // PE
4873
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4874
              this.pe = new PaymentException();
4875
              this.pe.read(iprot);
4876
            } else { 
4877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4878
            }
4879
            break;
4880
          default:
4881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4882
        }
3430 rajveer 4883
        iprot.readFieldEnd();
123 ashish 4884
      }
4885
      iprot.readStructEnd();
4886
      validate();
4887
    }
4888
 
3430 rajveer 4889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4890
      oprot.writeStructBegin(STRUCT_DESC);
4891
 
4892
      if (this.isSetSuccess()) {
4893
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 4894
        {
3430 rajveer 4895
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 4896
          for (Payment _iter19 : this.success)
420 ashish 4897
          {
2747 chandransh 4898
            _iter19.write(oprot);
420 ashish 4899
          }
4900
          oprot.writeListEnd();
4901
        }
123 ashish 4902
        oprot.writeFieldEnd();
4903
      } else if (this.isSetPe()) {
4904
        oprot.writeFieldBegin(PE_FIELD_DESC);
4905
        this.pe.write(oprot);
4906
        oprot.writeFieldEnd();
4907
      }
4908
      oprot.writeFieldStop();
4909
      oprot.writeStructEnd();
4910
    }
4911
 
4912
    @Override
4913
    public String toString() {
695 rajveer 4914
      StringBuilder sb = new StringBuilder("getPayments_result(");
123 ashish 4915
      boolean first = true;
4916
 
4917
      sb.append("success:");
4918
      if (this.success == null) {
4919
        sb.append("null");
4920
      } else {
4921
        sb.append(this.success);
4922
      }
4923
      first = false;
4924
      if (!first) sb.append(", ");
4925
      sb.append("pe:");
4926
      if (this.pe == null) {
4927
        sb.append("null");
4928
      } else {
4929
        sb.append(this.pe);
4930
      }
4931
      first = false;
4932
      sb.append(")");
4933
      return sb.toString();
4934
    }
4935
 
3430 rajveer 4936
    public void validate() throws org.apache.thrift.TException {
123 ashish 4937
      // check for required fields
4938
    }
4939
 
3430 rajveer 4940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4941
      try {
4942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4943
      } catch (org.apache.thrift.TException te) {
4944
        throw new java.io.IOException(te);
4945
      }
4946
    }
4947
 
4948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4949
      try {
4950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4951
      } catch (org.apache.thrift.TException te) {
4952
        throw new java.io.IOException(te);
4953
      }
4954
    }
4955
 
123 ashish 4956
  }
4957
 
4141 chandransh 4958
  public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable   {
4959
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
4960
 
4961
    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);
4962
    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);
4963
    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);
4964
 
4965
    private long fromTime; // required
4966
    private long toTime; // required
4967
    private long gatewayId; // required
4968
 
4969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4970
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4971
      FROM_TIME((short)1, "fromTime"),
4972
      TO_TIME((short)2, "toTime"),
4973
      GATEWAY_ID((short)3, "gatewayId");
4974
 
4975
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4976
 
4977
      static {
4978
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4979
          byName.put(field.getFieldName(), field);
4980
        }
4981
      }
4982
 
4983
      /**
4984
       * Find the _Fields constant that matches fieldId, or null if its not found.
4985
       */
4986
      public static _Fields findByThriftId(int fieldId) {
4987
        switch(fieldId) {
4988
          case 1: // FROM_TIME
4989
            return FROM_TIME;
4990
          case 2: // TO_TIME
4991
            return TO_TIME;
4992
          case 3: // GATEWAY_ID
4993
            return GATEWAY_ID;
4994
          default:
4995
            return null;
4996
        }
4997
      }
4998
 
4999
      /**
5000
       * Find the _Fields constant that matches fieldId, throwing an exception
5001
       * if it is not found.
5002
       */
5003
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5004
        _Fields fields = findByThriftId(fieldId);
5005
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5006
        return fields;
5007
      }
5008
 
5009
      /**
5010
       * Find the _Fields constant that matches name, or null if its not found.
5011
       */
5012
      public static _Fields findByName(String name) {
5013
        return byName.get(name);
5014
      }
5015
 
5016
      private final short _thriftId;
5017
      private final String _fieldName;
5018
 
5019
      _Fields(short thriftId, String fieldName) {
5020
        _thriftId = thriftId;
5021
        _fieldName = fieldName;
5022
      }
5023
 
5024
      public short getThriftFieldId() {
5025
        return _thriftId;
5026
      }
5027
 
5028
      public String getFieldName() {
5029
        return _fieldName;
5030
      }
5031
    }
5032
 
5033
    // isset id assignments
5034
    private static final int __FROMTIME_ISSET_ID = 0;
5035
    private static final int __TOTIME_ISSET_ID = 1;
5036
    private static final int __GATEWAYID_ISSET_ID = 2;
5037
    private BitSet __isset_bit_vector = new BitSet(3);
5038
 
5039
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5040
    static {
5041
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5042
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5044
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5045
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5046
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5047
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5048
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5049
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
5050
    }
5051
 
5052
    public getPaymentsByCapturedDate_args() {
5053
    }
5054
 
5055
    public getPaymentsByCapturedDate_args(
5056
      long fromTime,
5057
      long toTime,
5058
      long gatewayId)
5059
    {
5060
      this();
5061
      this.fromTime = fromTime;
5062
      setFromTimeIsSet(true);
5063
      this.toTime = toTime;
5064
      setToTimeIsSet(true);
5065
      this.gatewayId = gatewayId;
5066
      setGatewayIdIsSet(true);
5067
    }
5068
 
5069
    /**
5070
     * Performs a deep copy on <i>other</i>.
5071
     */
5072
    public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
5073
      __isset_bit_vector.clear();
5074
      __isset_bit_vector.or(other.__isset_bit_vector);
5075
      this.fromTime = other.fromTime;
5076
      this.toTime = other.toTime;
5077
      this.gatewayId = other.gatewayId;
5078
    }
5079
 
5080
    public getPaymentsByCapturedDate_args deepCopy() {
5081
      return new getPaymentsByCapturedDate_args(this);
5082
    }
5083
 
5084
    @Override
5085
    public void clear() {
5086
      setFromTimeIsSet(false);
5087
      this.fromTime = 0;
5088
      setToTimeIsSet(false);
5089
      this.toTime = 0;
5090
      setGatewayIdIsSet(false);
5091
      this.gatewayId = 0;
5092
    }
5093
 
5094
    public long getFromTime() {
5095
      return this.fromTime;
5096
    }
5097
 
5098
    public void setFromTime(long fromTime) {
5099
      this.fromTime = fromTime;
5100
      setFromTimeIsSet(true);
5101
    }
5102
 
5103
    public void unsetFromTime() {
5104
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
5105
    }
5106
 
5107
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
5108
    public boolean isSetFromTime() {
5109
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
5110
    }
5111
 
5112
    public void setFromTimeIsSet(boolean value) {
5113
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
5114
    }
5115
 
5116
    public long getToTime() {
5117
      return this.toTime;
5118
    }
5119
 
5120
    public void setToTime(long toTime) {
5121
      this.toTime = toTime;
5122
      setToTimeIsSet(true);
5123
    }
5124
 
5125
    public void unsetToTime() {
5126
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
5127
    }
5128
 
5129
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
5130
    public boolean isSetToTime() {
5131
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
5132
    }
5133
 
5134
    public void setToTimeIsSet(boolean value) {
5135
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
5136
    }
5137
 
5138
    public long getGatewayId() {
5139
      return this.gatewayId;
5140
    }
5141
 
5142
    public void setGatewayId(long gatewayId) {
5143
      this.gatewayId = gatewayId;
5144
      setGatewayIdIsSet(true);
5145
    }
5146
 
5147
    public void unsetGatewayId() {
5148
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
5149
    }
5150
 
5151
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
5152
    public boolean isSetGatewayId() {
5153
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
5154
    }
5155
 
5156
    public void setGatewayIdIsSet(boolean value) {
5157
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
5158
    }
5159
 
5160
    public void setFieldValue(_Fields field, Object value) {
5161
      switch (field) {
5162
      case FROM_TIME:
5163
        if (value == null) {
5164
          unsetFromTime();
5165
        } else {
5166
          setFromTime((Long)value);
5167
        }
5168
        break;
5169
 
5170
      case TO_TIME:
5171
        if (value == null) {
5172
          unsetToTime();
5173
        } else {
5174
          setToTime((Long)value);
5175
        }
5176
        break;
5177
 
5178
      case GATEWAY_ID:
5179
        if (value == null) {
5180
          unsetGatewayId();
5181
        } else {
5182
          setGatewayId((Long)value);
5183
        }
5184
        break;
5185
 
5186
      }
5187
    }
5188
 
5189
    public Object getFieldValue(_Fields field) {
5190
      switch (field) {
5191
      case FROM_TIME:
5192
        return Long.valueOf(getFromTime());
5193
 
5194
      case TO_TIME:
5195
        return Long.valueOf(getToTime());
5196
 
5197
      case GATEWAY_ID:
5198
        return Long.valueOf(getGatewayId());
5199
 
5200
      }
5201
      throw new IllegalStateException();
5202
    }
5203
 
5204
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5205
    public boolean isSet(_Fields field) {
5206
      if (field == null) {
5207
        throw new IllegalArgumentException();
5208
      }
5209
 
5210
      switch (field) {
5211
      case FROM_TIME:
5212
        return isSetFromTime();
5213
      case TO_TIME:
5214
        return isSetToTime();
5215
      case GATEWAY_ID:
5216
        return isSetGatewayId();
5217
      }
5218
      throw new IllegalStateException();
5219
    }
5220
 
5221
    @Override
5222
    public boolean equals(Object that) {
5223
      if (that == null)
5224
        return false;
5225
      if (that instanceof getPaymentsByCapturedDate_args)
5226
        return this.equals((getPaymentsByCapturedDate_args)that);
5227
      return false;
5228
    }
5229
 
5230
    public boolean equals(getPaymentsByCapturedDate_args that) {
5231
      if (that == null)
5232
        return false;
5233
 
5234
      boolean this_present_fromTime = true;
5235
      boolean that_present_fromTime = true;
5236
      if (this_present_fromTime || that_present_fromTime) {
5237
        if (!(this_present_fromTime && that_present_fromTime))
5238
          return false;
5239
        if (this.fromTime != that.fromTime)
5240
          return false;
5241
      }
5242
 
5243
      boolean this_present_toTime = true;
5244
      boolean that_present_toTime = true;
5245
      if (this_present_toTime || that_present_toTime) {
5246
        if (!(this_present_toTime && that_present_toTime))
5247
          return false;
5248
        if (this.toTime != that.toTime)
5249
          return false;
5250
      }
5251
 
5252
      boolean this_present_gatewayId = true;
5253
      boolean that_present_gatewayId = true;
5254
      if (this_present_gatewayId || that_present_gatewayId) {
5255
        if (!(this_present_gatewayId && that_present_gatewayId))
5256
          return false;
5257
        if (this.gatewayId != that.gatewayId)
5258
          return false;
5259
      }
5260
 
5261
      return true;
5262
    }
5263
 
5264
    @Override
5265
    public int hashCode() {
5266
      return 0;
5267
    }
5268
 
5269
    public int compareTo(getPaymentsByCapturedDate_args other) {
5270
      if (!getClass().equals(other.getClass())) {
5271
        return getClass().getName().compareTo(other.getClass().getName());
5272
      }
5273
 
5274
      int lastComparison = 0;
5275
      getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
5276
 
5277
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
5278
      if (lastComparison != 0) {
5279
        return lastComparison;
5280
      }
5281
      if (isSetFromTime()) {
5282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
5283
        if (lastComparison != 0) {
5284
          return lastComparison;
5285
        }
5286
      }
5287
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
5288
      if (lastComparison != 0) {
5289
        return lastComparison;
5290
      }
5291
      if (isSetToTime()) {
5292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
5293
        if (lastComparison != 0) {
5294
          return lastComparison;
5295
        }
5296
      }
5297
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
5298
      if (lastComparison != 0) {
5299
        return lastComparison;
5300
      }
5301
      if (isSetGatewayId()) {
5302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
5303
        if (lastComparison != 0) {
5304
          return lastComparison;
5305
        }
5306
      }
5307
      return 0;
5308
    }
5309
 
5310
    public _Fields fieldForId(int fieldId) {
5311
      return _Fields.findByThriftId(fieldId);
5312
    }
5313
 
5314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5315
      org.apache.thrift.protocol.TField field;
5316
      iprot.readStructBegin();
5317
      while (true)
5318
      {
5319
        field = iprot.readFieldBegin();
5320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5321
          break;
5322
        }
5323
        switch (field.id) {
5324
          case 1: // FROM_TIME
5325
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5326
              this.fromTime = iprot.readI64();
5327
              setFromTimeIsSet(true);
5328
            } else { 
5329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5330
            }
5331
            break;
5332
          case 2: // TO_TIME
5333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5334
              this.toTime = iprot.readI64();
5335
              setToTimeIsSet(true);
5336
            } else { 
5337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5338
            }
5339
            break;
5340
          case 3: // GATEWAY_ID
5341
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5342
              this.gatewayId = iprot.readI64();
5343
              setGatewayIdIsSet(true);
5344
            } else { 
5345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5346
            }
5347
            break;
5348
          default:
5349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5350
        }
5351
        iprot.readFieldEnd();
5352
      }
5353
      iprot.readStructEnd();
5354
      validate();
5355
    }
5356
 
5357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5358
      validate();
5359
 
5360
      oprot.writeStructBegin(STRUCT_DESC);
5361
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
5362
      oprot.writeI64(this.fromTime);
5363
      oprot.writeFieldEnd();
5364
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
5365
      oprot.writeI64(this.toTime);
5366
      oprot.writeFieldEnd();
5367
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
5368
      oprot.writeI64(this.gatewayId);
5369
      oprot.writeFieldEnd();
5370
      oprot.writeFieldStop();
5371
      oprot.writeStructEnd();
5372
    }
5373
 
5374
    @Override
5375
    public String toString() {
5376
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
5377
      boolean first = true;
5378
 
5379
      sb.append("fromTime:");
5380
      sb.append(this.fromTime);
5381
      first = false;
5382
      if (!first) sb.append(", ");
5383
      sb.append("toTime:");
5384
      sb.append(this.toTime);
5385
      first = false;
5386
      if (!first) sb.append(", ");
5387
      sb.append("gatewayId:");
5388
      sb.append(this.gatewayId);
5389
      first = false;
5390
      sb.append(")");
5391
      return sb.toString();
5392
    }
5393
 
5394
    public void validate() throws org.apache.thrift.TException {
5395
      // check for required fields
5396
    }
5397
 
5398
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5399
      try {
5400
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5401
      } catch (org.apache.thrift.TException te) {
5402
        throw new java.io.IOException(te);
5403
      }
5404
    }
5405
 
5406
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5407
      try {
5408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5409
      } catch (org.apache.thrift.TException te) {
5410
        throw new java.io.IOException(te);
5411
      }
5412
    }
5413
 
5414
  }
5415
 
5416
  public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable   {
5417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
5418
 
5419
    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);
5420
    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);
5421
 
5422
    private List<Payment> success; // required
5423
    private PaymentException pe; // required
5424
 
5425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5426
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5427
      SUCCESS((short)0, "success"),
5428
      PE((short)1, "pe");
5429
 
5430
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5431
 
5432
      static {
5433
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5434
          byName.put(field.getFieldName(), field);
5435
        }
5436
      }
5437
 
5438
      /**
5439
       * Find the _Fields constant that matches fieldId, or null if its not found.
5440
       */
5441
      public static _Fields findByThriftId(int fieldId) {
5442
        switch(fieldId) {
5443
          case 0: // SUCCESS
5444
            return SUCCESS;
5445
          case 1: // PE
5446
            return PE;
5447
          default:
5448
            return null;
5449
        }
5450
      }
5451
 
5452
      /**
5453
       * Find the _Fields constant that matches fieldId, throwing an exception
5454
       * if it is not found.
5455
       */
5456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5457
        _Fields fields = findByThriftId(fieldId);
5458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5459
        return fields;
5460
      }
5461
 
5462
      /**
5463
       * Find the _Fields constant that matches name, or null if its not found.
5464
       */
5465
      public static _Fields findByName(String name) {
5466
        return byName.get(name);
5467
      }
5468
 
5469
      private final short _thriftId;
5470
      private final String _fieldName;
5471
 
5472
      _Fields(short thriftId, String fieldName) {
5473
        _thriftId = thriftId;
5474
        _fieldName = fieldName;
5475
      }
5476
 
5477
      public short getThriftFieldId() {
5478
        return _thriftId;
5479
      }
5480
 
5481
      public String getFieldName() {
5482
        return _fieldName;
5483
      }
5484
    }
5485
 
5486
    // isset id assignments
5487
 
5488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5489
    static {
5490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5491
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5492
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5493
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
5494
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
5498
    }
5499
 
5500
    public getPaymentsByCapturedDate_result() {
5501
    }
5502
 
5503
    public getPaymentsByCapturedDate_result(
5504
      List<Payment> success,
5505
      PaymentException pe)
5506
    {
5507
      this();
5508
      this.success = success;
5509
      this.pe = pe;
5510
    }
5511
 
5512
    /**
5513
     * Performs a deep copy on <i>other</i>.
5514
     */
5515
    public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
5516
      if (other.isSetSuccess()) {
5517
        List<Payment> __this__success = new ArrayList<Payment>();
5518
        for (Payment other_element : other.success) {
5519
          __this__success.add(new Payment(other_element));
5520
        }
5521
        this.success = __this__success;
5522
      }
5523
      if (other.isSetPe()) {
5524
        this.pe = new PaymentException(other.pe);
5525
      }
5526
    }
5527
 
5528
    public getPaymentsByCapturedDate_result deepCopy() {
5529
      return new getPaymentsByCapturedDate_result(this);
5530
    }
5531
 
5532
    @Override
5533
    public void clear() {
5534
      this.success = null;
5535
      this.pe = null;
5536
    }
5537
 
5538
    public int getSuccessSize() {
5539
      return (this.success == null) ? 0 : this.success.size();
5540
    }
5541
 
5542
    public java.util.Iterator<Payment> getSuccessIterator() {
5543
      return (this.success == null) ? null : this.success.iterator();
5544
    }
5545
 
5546
    public void addToSuccess(Payment elem) {
5547
      if (this.success == null) {
5548
        this.success = new ArrayList<Payment>();
5549
      }
5550
      this.success.add(elem);
5551
    }
5552
 
5553
    public List<Payment> getSuccess() {
5554
      return this.success;
5555
    }
5556
 
5557
    public void setSuccess(List<Payment> success) {
5558
      this.success = success;
5559
    }
5560
 
5561
    public void unsetSuccess() {
5562
      this.success = null;
5563
    }
5564
 
5565
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5566
    public boolean isSetSuccess() {
5567
      return this.success != null;
5568
    }
5569
 
5570
    public void setSuccessIsSet(boolean value) {
5571
      if (!value) {
5572
        this.success = null;
5573
      }
5574
    }
5575
 
5576
    public PaymentException getPe() {
5577
      return this.pe;
5578
    }
5579
 
5580
    public void setPe(PaymentException pe) {
5581
      this.pe = pe;
5582
    }
5583
 
5584
    public void unsetPe() {
5585
      this.pe = null;
5586
    }
5587
 
5588
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
5589
    public boolean isSetPe() {
5590
      return this.pe != null;
5591
    }
5592
 
5593
    public void setPeIsSet(boolean value) {
5594
      if (!value) {
5595
        this.pe = null;
5596
      }
5597
    }
5598
 
5599
    public void setFieldValue(_Fields field, Object value) {
5600
      switch (field) {
5601
      case SUCCESS:
5602
        if (value == null) {
5603
          unsetSuccess();
5604
        } else {
5605
          setSuccess((List<Payment>)value);
5606
        }
5607
        break;
5608
 
5609
      case PE:
5610
        if (value == null) {
5611
          unsetPe();
5612
        } else {
5613
          setPe((PaymentException)value);
5614
        }
5615
        break;
5616
 
5617
      }
5618
    }
5619
 
5620
    public Object getFieldValue(_Fields field) {
5621
      switch (field) {
5622
      case SUCCESS:
5623
        return getSuccess();
5624
 
5625
      case PE:
5626
        return getPe();
5627
 
5628
      }
5629
      throw new IllegalStateException();
5630
    }
5631
 
5632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5633
    public boolean isSet(_Fields field) {
5634
      if (field == null) {
5635
        throw new IllegalArgumentException();
5636
      }
5637
 
5638
      switch (field) {
5639
      case SUCCESS:
5640
        return isSetSuccess();
5641
      case PE:
5642
        return isSetPe();
5643
      }
5644
      throw new IllegalStateException();
5645
    }
5646
 
5647
    @Override
5648
    public boolean equals(Object that) {
5649
      if (that == null)
5650
        return false;
5651
      if (that instanceof getPaymentsByCapturedDate_result)
5652
        return this.equals((getPaymentsByCapturedDate_result)that);
5653
      return false;
5654
    }
5655
 
5656
    public boolean equals(getPaymentsByCapturedDate_result that) {
5657
      if (that == null)
5658
        return false;
5659
 
5660
      boolean this_present_success = true && this.isSetSuccess();
5661
      boolean that_present_success = true && that.isSetSuccess();
5662
      if (this_present_success || that_present_success) {
5663
        if (!(this_present_success && that_present_success))
5664
          return false;
5665
        if (!this.success.equals(that.success))
5666
          return false;
5667
      }
5668
 
5669
      boolean this_present_pe = true && this.isSetPe();
5670
      boolean that_present_pe = true && that.isSetPe();
5671
      if (this_present_pe || that_present_pe) {
5672
        if (!(this_present_pe && that_present_pe))
5673
          return false;
5674
        if (!this.pe.equals(that.pe))
5675
          return false;
5676
      }
5677
 
5678
      return true;
5679
    }
5680
 
5681
    @Override
5682
    public int hashCode() {
5683
      return 0;
5684
    }
5685
 
5686
    public int compareTo(getPaymentsByCapturedDate_result other) {
5687
      if (!getClass().equals(other.getClass())) {
5688
        return getClass().getName().compareTo(other.getClass().getName());
5689
      }
5690
 
5691
      int lastComparison = 0;
5692
      getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
5693
 
5694
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5695
      if (lastComparison != 0) {
5696
        return lastComparison;
5697
      }
5698
      if (isSetSuccess()) {
5699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5700
        if (lastComparison != 0) {
5701
          return lastComparison;
5702
        }
5703
      }
5704
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
5705
      if (lastComparison != 0) {
5706
        return lastComparison;
5707
      }
5708
      if (isSetPe()) {
5709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5710
        if (lastComparison != 0) {
5711
          return lastComparison;
5712
        }
5713
      }
5714
      return 0;
5715
    }
5716
 
5717
    public _Fields fieldForId(int fieldId) {
5718
      return _Fields.findByThriftId(fieldId);
5719
    }
5720
 
5721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5722
      org.apache.thrift.protocol.TField field;
5723
      iprot.readStructBegin();
5724
      while (true)
5725
      {
5726
        field = iprot.readFieldBegin();
5727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5728
          break;
5729
        }
5730
        switch (field.id) {
5731
          case 0: // SUCCESS
5732
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5733
              {
5734
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5735
                this.success = new ArrayList<Payment>(_list20.size);
5736
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5737
                {
5738
                  Payment _elem22; // required
5739
                  _elem22 = new Payment();
5740
                  _elem22.read(iprot);
5741
                  this.success.add(_elem22);
5742
                }
5743
                iprot.readListEnd();
5744
              }
5745
            } else { 
5746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5747
            }
5748
            break;
5749
          case 1: // PE
5750
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5751
              this.pe = new PaymentException();
5752
              this.pe.read(iprot);
5753
            } else { 
5754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5755
            }
5756
            break;
5757
          default:
5758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5759
        }
5760
        iprot.readFieldEnd();
5761
      }
5762
      iprot.readStructEnd();
5763
      validate();
5764
    }
5765
 
5766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5767
      oprot.writeStructBegin(STRUCT_DESC);
5768
 
5769
      if (this.isSetSuccess()) {
5770
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5771
        {
5772
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5773
          for (Payment _iter23 : this.success)
5774
          {
5775
            _iter23.write(oprot);
5776
          }
5777
          oprot.writeListEnd();
5778
        }
5779
        oprot.writeFieldEnd();
5780
      } else if (this.isSetPe()) {
5781
        oprot.writeFieldBegin(PE_FIELD_DESC);
5782
        this.pe.write(oprot);
5783
        oprot.writeFieldEnd();
5784
      }
5785
      oprot.writeFieldStop();
5786
      oprot.writeStructEnd();
5787
    }
5788
 
5789
    @Override
5790
    public String toString() {
5791
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
5792
      boolean first = true;
5793
 
5794
      sb.append("success:");
5795
      if (this.success == null) {
5796
        sb.append("null");
5797
      } else {
5798
        sb.append(this.success);
5799
      }
5800
      first = false;
5801
      if (!first) sb.append(", ");
5802
      sb.append("pe:");
5803
      if (this.pe == null) {
5804
        sb.append("null");
5805
      } else {
5806
        sb.append(this.pe);
5807
      }
5808
      first = false;
5809
      sb.append(")");
5810
      return sb.toString();
5811
    }
5812
 
5813
    public void validate() throws org.apache.thrift.TException {
5814
      // check for required fields
5815
    }
5816
 
5817
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5818
      try {
5819
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5820
      } catch (org.apache.thrift.TException te) {
5821
        throw new java.io.IOException(te);
5822
      }
5823
    }
5824
 
5825
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5826
      try {
5827
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5828
      } catch (org.apache.thrift.TException te) {
5829
        throw new java.io.IOException(te);
5830
      }
5831
    }
5832
 
5833
  }
5834
 
3430 rajveer 5835
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
5836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
123 ashish 5837
 
3430 rajveer 5838
    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);
123 ashish 5839
 
3430 rajveer 5840
    private long id; // required
123 ashish 5841
 
5842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5843
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 5844
      ID((short)1, "id");
123 ashish 5845
 
5846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5847
 
5848
      static {
5849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5850
          byName.put(field.getFieldName(), field);
5851
        }
5852
      }
5853
 
5854
      /**
5855
       * Find the _Fields constant that matches fieldId, or null if its not found.
5856
       */
5857
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5858
        switch(fieldId) {
5859
          case 1: // ID
5860
            return ID;
5861
          default:
5862
            return null;
5863
        }
123 ashish 5864
      }
5865
 
5866
      /**
5867
       * Find the _Fields constant that matches fieldId, throwing an exception
5868
       * if it is not found.
5869
       */
5870
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5871
        _Fields fields = findByThriftId(fieldId);
5872
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5873
        return fields;
5874
      }
5875
 
5876
      /**
5877
       * Find the _Fields constant that matches name, or null if its not found.
5878
       */
5879
      public static _Fields findByName(String name) {
5880
        return byName.get(name);
5881
      }
5882
 
5883
      private final short _thriftId;
5884
      private final String _fieldName;
5885
 
5886
      _Fields(short thriftId, String fieldName) {
5887
        _thriftId = thriftId;
5888
        _fieldName = fieldName;
5889
      }
5890
 
5891
      public short getThriftFieldId() {
5892
        return _thriftId;
5893
      }
5894
 
5895
      public String getFieldName() {
5896
        return _fieldName;
5897
      }
5898
    }
5899
 
5900
    // isset id assignments
420 ashish 5901
    private static final int __ID_ISSET_ID = 0;
123 ashish 5902
    private BitSet __isset_bit_vector = new BitSet(1);
5903
 
3430 rajveer 5904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 5905
    static {
3430 rajveer 5906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5907
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
123 ashish 5911
    }
5912
 
695 rajveer 5913
    public getPaymentGateway_args() {
123 ashish 5914
    }
5915
 
695 rajveer 5916
    public getPaymentGateway_args(
5917
      long id)
123 ashish 5918
    {
5919
      this();
420 ashish 5920
      this.id = id;
5921
      setIdIsSet(true);
123 ashish 5922
    }
5923
 
5924
    /**
5925
     * Performs a deep copy on <i>other</i>.
5926
     */
695 rajveer 5927
    public getPaymentGateway_args(getPaymentGateway_args other) {
123 ashish 5928
      __isset_bit_vector.clear();
5929
      __isset_bit_vector.or(other.__isset_bit_vector);
420 ashish 5930
      this.id = other.id;
123 ashish 5931
    }
5932
 
695 rajveer 5933
    public getPaymentGateway_args deepCopy() {
5934
      return new getPaymentGateway_args(this);
123 ashish 5935
    }
5936
 
3430 rajveer 5937
    @Override
5938
    public void clear() {
5939
      setIdIsSet(false);
5940
      this.id = 0;
123 ashish 5941
    }
5942
 
420 ashish 5943
    public long getId() {
5944
      return this.id;
123 ashish 5945
    }
5946
 
3430 rajveer 5947
    public void setId(long id) {
420 ashish 5948
      this.id = id;
5949
      setIdIsSet(true);
123 ashish 5950
    }
5951
 
420 ashish 5952
    public void unsetId() {
5953
      __isset_bit_vector.clear(__ID_ISSET_ID);
123 ashish 5954
    }
5955
 
3430 rajveer 5956
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 5957
    public boolean isSetId() {
5958
      return __isset_bit_vector.get(__ID_ISSET_ID);
123 ashish 5959
    }
5960
 
420 ashish 5961
    public void setIdIsSet(boolean value) {
5962
      __isset_bit_vector.set(__ID_ISSET_ID, value);
123 ashish 5963
    }
5964
 
5965
    public void setFieldValue(_Fields field, Object value) {
5966
      switch (field) {
420 ashish 5967
      case ID:
123 ashish 5968
        if (value == null) {
420 ashish 5969
          unsetId();
123 ashish 5970
        } else {
420 ashish 5971
          setId((Long)value);
123 ashish 5972
        }
5973
        break;
5974
 
5975
      }
5976
    }
5977
 
5978
    public Object getFieldValue(_Fields field) {
5979
      switch (field) {
420 ashish 5980
      case ID:
3430 rajveer 5981
        return Long.valueOf(getId());
123 ashish 5982
 
5983
      }
5984
      throw new IllegalStateException();
5985
    }
5986
 
3430 rajveer 5987
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5988
    public boolean isSet(_Fields field) {
5989
      if (field == null) {
5990
        throw new IllegalArgumentException();
5991
      }
123 ashish 5992
 
5993
      switch (field) {
420 ashish 5994
      case ID:
5995
        return isSetId();
123 ashish 5996
      }
5997
      throw new IllegalStateException();
5998
    }
5999
 
6000
    @Override
6001
    public boolean equals(Object that) {
6002
      if (that == null)
6003
        return false;
695 rajveer 6004
      if (that instanceof getPaymentGateway_args)
6005
        return this.equals((getPaymentGateway_args)that);
123 ashish 6006
      return false;
6007
    }
6008
 
695 rajveer 6009
    public boolean equals(getPaymentGateway_args that) {
123 ashish 6010
      if (that == null)
6011
        return false;
6012
 
420 ashish 6013
      boolean this_present_id = true;
6014
      boolean that_present_id = true;
6015
      if (this_present_id || that_present_id) {
6016
        if (!(this_present_id && that_present_id))
123 ashish 6017
          return false;
420 ashish 6018
        if (this.id != that.id)
123 ashish 6019
          return false;
6020
      }
6021
 
6022
      return true;
6023
    }
6024
 
6025
    @Override
6026
    public int hashCode() {
6027
      return 0;
6028
    }
6029
 
695 rajveer 6030
    public int compareTo(getPaymentGateway_args other) {
123 ashish 6031
      if (!getClass().equals(other.getClass())) {
6032
        return getClass().getName().compareTo(other.getClass().getName());
6033
      }
6034
 
6035
      int lastComparison = 0;
695 rajveer 6036
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
123 ashish 6037
 
3430 rajveer 6038
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
123 ashish 6039
      if (lastComparison != 0) {
6040
        return lastComparison;
6041
      }
3430 rajveer 6042
      if (isSetId()) {
6043
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6044
        if (lastComparison != 0) {
6045
          return lastComparison;
6046
        }
123 ashish 6047
      }
6048
      return 0;
6049
    }
6050
 
3430 rajveer 6051
    public _Fields fieldForId(int fieldId) {
6052
      return _Fields.findByThriftId(fieldId);
6053
    }
6054
 
6055
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6056
      org.apache.thrift.protocol.TField field;
123 ashish 6057
      iprot.readStructBegin();
6058
      while (true)
6059
      {
6060
        field = iprot.readFieldBegin();
3430 rajveer 6061
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 6062
          break;
6063
        }
3430 rajveer 6064
        switch (field.id) {
6065
          case 1: // ID
6066
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6067
              this.id = iprot.readI64();
6068
              setIdIsSet(true);
6069
            } else { 
6070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6071
            }
6072
            break;
6073
          default:
6074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 6075
        }
3430 rajveer 6076
        iprot.readFieldEnd();
123 ashish 6077
      }
6078
      iprot.readStructEnd();
6079
      validate();
6080
    }
6081
 
3430 rajveer 6082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 6083
      validate();
6084
 
6085
      oprot.writeStructBegin(STRUCT_DESC);
420 ashish 6086
      oprot.writeFieldBegin(ID_FIELD_DESC);
6087
      oprot.writeI64(this.id);
123 ashish 6088
      oprot.writeFieldEnd();
6089
      oprot.writeFieldStop();
6090
      oprot.writeStructEnd();
6091
    }
6092
 
6093
    @Override
6094
    public String toString() {
695 rajveer 6095
      StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
123 ashish 6096
      boolean first = true;
6097
 
420 ashish 6098
      sb.append("id:");
6099
      sb.append(this.id);
123 ashish 6100
      first = false;
6101
      sb.append(")");
6102
      return sb.toString();
6103
    }
6104
 
3430 rajveer 6105
    public void validate() throws org.apache.thrift.TException {
123 ashish 6106
      // check for required fields
6107
    }
6108
 
3430 rajveer 6109
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6110
      try {
6111
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6112
      } catch (org.apache.thrift.TException te) {
6113
        throw new java.io.IOException(te);
6114
      }
6115
    }
6116
 
6117
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6118
      try {
6119
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6120
        __isset_bit_vector = new BitSet(1);
6121
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6122
      } catch (org.apache.thrift.TException te) {
6123
        throw new java.io.IOException(te);
6124
      }
6125
    }
6126
 
123 ashish 6127
  }
6128
 
3430 rajveer 6129
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
6130
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
123 ashish 6131
 
3430 rajveer 6132
    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);
6133
    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);
123 ashish 6134
 
3430 rajveer 6135
    private PaymentGateway success; // required
6136
    private PaymentException pe; // required
123 ashish 6137
 
6138
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6139
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 6140
      SUCCESS((short)0, "success"),
6141
      PE((short)1, "pe");
6142
 
6143
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6144
 
6145
      static {
6146
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6147
          byName.put(field.getFieldName(), field);
6148
        }
6149
      }
6150
 
6151
      /**
6152
       * Find the _Fields constant that matches fieldId, or null if its not found.
6153
       */
6154
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6155
        switch(fieldId) {
6156
          case 0: // SUCCESS
6157
            return SUCCESS;
6158
          case 1: // PE
6159
            return PE;
6160
          default:
6161
            return null;
6162
        }
420 ashish 6163
      }
6164
 
6165
      /**
6166
       * Find the _Fields constant that matches fieldId, throwing an exception
6167
       * if it is not found.
6168
       */
6169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6170
        _Fields fields = findByThriftId(fieldId);
6171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6172
        return fields;
6173
      }
6174
 
6175
      /**
6176
       * Find the _Fields constant that matches name, or null if its not found.
6177
       */
6178
      public static _Fields findByName(String name) {
6179
        return byName.get(name);
6180
      }
6181
 
6182
      private final short _thriftId;
6183
      private final String _fieldName;
6184
 
6185
      _Fields(short thriftId, String fieldName) {
6186
        _thriftId = thriftId;
6187
        _fieldName = fieldName;
6188
      }
6189
 
6190
      public short getThriftFieldId() {
6191
        return _thriftId;
6192
      }
6193
 
6194
      public String getFieldName() {
6195
        return _fieldName;
6196
      }
6197
    }
6198
 
6199
    // isset id assignments
6200
 
3430 rajveer 6201
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 6202
    static {
3430 rajveer 6203
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6204
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6205
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
6206
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
420 ashish 6210
    }
6211
 
695 rajveer 6212
    public getPaymentGateway_result() {
420 ashish 6213
    }
6214
 
695 rajveer 6215
    public getPaymentGateway_result(
6216
      PaymentGateway success,
420 ashish 6217
      PaymentException pe)
6218
    {
6219
      this();
6220
      this.success = success;
6221
      this.pe = pe;
6222
    }
6223
 
6224
    /**
6225
     * Performs a deep copy on <i>other</i>.
6226
     */
695 rajveer 6227
    public getPaymentGateway_result(getPaymentGateway_result other) {
420 ashish 6228
      if (other.isSetSuccess()) {
695 rajveer 6229
        this.success = new PaymentGateway(other.success);
420 ashish 6230
      }
6231
      if (other.isSetPe()) {
6232
        this.pe = new PaymentException(other.pe);
6233
      }
6234
    }
6235
 
695 rajveer 6236
    public getPaymentGateway_result deepCopy() {
6237
      return new getPaymentGateway_result(this);
420 ashish 6238
    }
6239
 
3430 rajveer 6240
    @Override
6241
    public void clear() {
6242
      this.success = null;
6243
      this.pe = null;
420 ashish 6244
    }
6245
 
695 rajveer 6246
    public PaymentGateway getSuccess() {
420 ashish 6247
      return this.success;
6248
    }
6249
 
3430 rajveer 6250
    public void setSuccess(PaymentGateway success) {
420 ashish 6251
      this.success = success;
6252
    }
6253
 
6254
    public void unsetSuccess() {
6255
      this.success = null;
6256
    }
6257
 
3430 rajveer 6258
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 6259
    public boolean isSetSuccess() {
6260
      return this.success != null;
6261
    }
6262
 
6263
    public void setSuccessIsSet(boolean value) {
6264
      if (!value) {
6265
        this.success = null;
6266
      }
6267
    }
6268
 
6269
    public PaymentException getPe() {
6270
      return this.pe;
6271
    }
6272
 
3430 rajveer 6273
    public void setPe(PaymentException pe) {
420 ashish 6274
      this.pe = pe;
6275
    }
6276
 
6277
    public void unsetPe() {
6278
      this.pe = null;
6279
    }
6280
 
3430 rajveer 6281
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 6282
    public boolean isSetPe() {
6283
      return this.pe != null;
6284
    }
6285
 
6286
    public void setPeIsSet(boolean value) {
6287
      if (!value) {
6288
        this.pe = null;
6289
      }
6290
    }
6291
 
6292
    public void setFieldValue(_Fields field, Object value) {
6293
      switch (field) {
6294
      case SUCCESS:
6295
        if (value == null) {
6296
          unsetSuccess();
6297
        } else {
695 rajveer 6298
          setSuccess((PaymentGateway)value);
420 ashish 6299
        }
6300
        break;
6301
 
6302
      case PE:
6303
        if (value == null) {
6304
          unsetPe();
6305
        } else {
6306
          setPe((PaymentException)value);
6307
        }
6308
        break;
6309
 
6310
      }
6311
    }
6312
 
6313
    public Object getFieldValue(_Fields field) {
6314
      switch (field) {
6315
      case SUCCESS:
6316
        return getSuccess();
6317
 
6318
      case PE:
6319
        return getPe();
6320
 
6321
      }
6322
      throw new IllegalStateException();
6323
    }
6324
 
3430 rajveer 6325
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6326
    public boolean isSet(_Fields field) {
6327
      if (field == null) {
6328
        throw new IllegalArgumentException();
6329
      }
420 ashish 6330
 
6331
      switch (field) {
6332
      case SUCCESS:
6333
        return isSetSuccess();
6334
      case PE:
6335
        return isSetPe();
6336
      }
6337
      throw new IllegalStateException();
6338
    }
6339
 
6340
    @Override
6341
    public boolean equals(Object that) {
6342
      if (that == null)
6343
        return false;
695 rajveer 6344
      if (that instanceof getPaymentGateway_result)
6345
        return this.equals((getPaymentGateway_result)that);
420 ashish 6346
      return false;
6347
    }
6348
 
695 rajveer 6349
    public boolean equals(getPaymentGateway_result that) {
420 ashish 6350
      if (that == null)
6351
        return false;
6352
 
6353
      boolean this_present_success = true && this.isSetSuccess();
6354
      boolean that_present_success = true && that.isSetSuccess();
6355
      if (this_present_success || that_present_success) {
6356
        if (!(this_present_success && that_present_success))
6357
          return false;
6358
        if (!this.success.equals(that.success))
6359
          return false;
6360
      }
6361
 
6362
      boolean this_present_pe = true && this.isSetPe();
6363
      boolean that_present_pe = true && that.isSetPe();
6364
      if (this_present_pe || that_present_pe) {
6365
        if (!(this_present_pe && that_present_pe))
6366
          return false;
6367
        if (!this.pe.equals(that.pe))
6368
          return false;
6369
      }
6370
 
6371
      return true;
6372
    }
6373
 
6374
    @Override
6375
    public int hashCode() {
6376
      return 0;
6377
    }
6378
 
695 rajveer 6379
    public int compareTo(getPaymentGateway_result other) {
6380
      if (!getClass().equals(other.getClass())) {
6381
        return getClass().getName().compareTo(other.getClass().getName());
6382
      }
6383
 
6384
      int lastComparison = 0;
6385
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
6386
 
3430 rajveer 6387
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 6388
      if (lastComparison != 0) {
6389
        return lastComparison;
6390
      }
3430 rajveer 6391
      if (isSetSuccess()) {
6392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6393
        if (lastComparison != 0) {
6394
          return lastComparison;
6395
        }
695 rajveer 6396
      }
3430 rajveer 6397
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 6398
      if (lastComparison != 0) {
6399
        return lastComparison;
6400
      }
3430 rajveer 6401
      if (isSetPe()) {
6402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6403
        if (lastComparison != 0) {
6404
          return lastComparison;
6405
        }
695 rajveer 6406
      }
6407
      return 0;
6408
    }
6409
 
3430 rajveer 6410
    public _Fields fieldForId(int fieldId) {
6411
      return _Fields.findByThriftId(fieldId);
6412
    }
6413
 
6414
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6415
      org.apache.thrift.protocol.TField field;
420 ashish 6416
      iprot.readStructBegin();
6417
      while (true)
6418
      {
6419
        field = iprot.readFieldBegin();
3430 rajveer 6420
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 6421
          break;
6422
        }
3430 rajveer 6423
        switch (field.id) {
6424
          case 0: // SUCCESS
6425
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6426
              this.success = new PaymentGateway();
6427
              this.success.read(iprot);
6428
            } else { 
6429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6430
            }
6431
            break;
6432
          case 1: // PE
6433
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6434
              this.pe = new PaymentException();
6435
              this.pe.read(iprot);
6436
            } else { 
6437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6438
            }
6439
            break;
6440
          default:
6441
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 6442
        }
3430 rajveer 6443
        iprot.readFieldEnd();
420 ashish 6444
      }
6445
      iprot.readStructEnd();
6446
      validate();
6447
    }
6448
 
3430 rajveer 6449
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 6450
      oprot.writeStructBegin(STRUCT_DESC);
6451
 
6452
      if (this.isSetSuccess()) {
6453
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 6454
        this.success.write(oprot);
420 ashish 6455
        oprot.writeFieldEnd();
6456
      } else if (this.isSetPe()) {
6457
        oprot.writeFieldBegin(PE_FIELD_DESC);
6458
        this.pe.write(oprot);
6459
        oprot.writeFieldEnd();
6460
      }
6461
      oprot.writeFieldStop();
6462
      oprot.writeStructEnd();
6463
    }
6464
 
6465
    @Override
6466
    public String toString() {
695 rajveer 6467
      StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
420 ashish 6468
      boolean first = true;
6469
 
6470
      sb.append("success:");
6471
      if (this.success == null) {
6472
        sb.append("null");
6473
      } else {
6474
        sb.append(this.success);
6475
      }
6476
      first = false;
6477
      if (!first) sb.append(", ");
6478
      sb.append("pe:");
6479
      if (this.pe == null) {
6480
        sb.append("null");
6481
      } else {
6482
        sb.append(this.pe);
6483
      }
6484
      first = false;
6485
      sb.append(")");
6486
      return sb.toString();
6487
    }
6488
 
3430 rajveer 6489
    public void validate() throws org.apache.thrift.TException {
420 ashish 6490
      // check for required fields
6491
    }
6492
 
3430 rajveer 6493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6494
      try {
6495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6496
      } catch (org.apache.thrift.TException te) {
6497
        throw new java.io.IOException(te);
6498
      }
6499
    }
6500
 
6501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6502
      try {
6503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6504
      } catch (org.apache.thrift.TException te) {
6505
        throw new java.io.IOException(te);
6506
      }
6507
    }
6508
 
420 ashish 6509
  }
6510
 
4600 varun.gupt 6511
  public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable   {
6512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
6513
 
6514
 
6515
 
6516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6518
;
6519
 
6520
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6521
 
6522
      static {
6523
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6524
          byName.put(field.getFieldName(), field);
6525
        }
6526
      }
6527
 
6528
      /**
6529
       * Find the _Fields constant that matches fieldId, or null if its not found.
6530
       */
6531
      public static _Fields findByThriftId(int fieldId) {
6532
        switch(fieldId) {
6533
          default:
6534
            return null;
6535
        }
6536
      }
6537
 
6538
      /**
6539
       * Find the _Fields constant that matches fieldId, throwing an exception
6540
       * if it is not found.
6541
       */
6542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6543
        _Fields fields = findByThriftId(fieldId);
6544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6545
        return fields;
6546
      }
6547
 
6548
      /**
6549
       * Find the _Fields constant that matches name, or null if its not found.
6550
       */
6551
      public static _Fields findByName(String name) {
6552
        return byName.get(name);
6553
      }
6554
 
6555
      private final short _thriftId;
6556
      private final String _fieldName;
6557
 
6558
      _Fields(short thriftId, String fieldName) {
6559
        _thriftId = thriftId;
6560
        _fieldName = fieldName;
6561
      }
6562
 
6563
      public short getThriftFieldId() {
6564
        return _thriftId;
6565
      }
6566
 
6567
      public String getFieldName() {
6568
        return _fieldName;
6569
      }
6570
    }
6571
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6572
    static {
6573
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
6576
    }
6577
 
6578
    public getActivePaymentGateways_args() {
6579
    }
6580
 
6581
    /**
6582
     * Performs a deep copy on <i>other</i>.
6583
     */
6584
    public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
6585
    }
6586
 
6587
    public getActivePaymentGateways_args deepCopy() {
6588
      return new getActivePaymentGateways_args(this);
6589
    }
6590
 
6591
    @Override
6592
    public void clear() {
6593
    }
6594
 
6595
    public void setFieldValue(_Fields field, Object value) {
6596
      switch (field) {
6597
      }
6598
    }
6599
 
6600
    public Object getFieldValue(_Fields field) {
6601
      switch (field) {
6602
      }
6603
      throw new IllegalStateException();
6604
    }
6605
 
6606
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6607
    public boolean isSet(_Fields field) {
6608
      if (field == null) {
6609
        throw new IllegalArgumentException();
6610
      }
6611
 
6612
      switch (field) {
6613
      }
6614
      throw new IllegalStateException();
6615
    }
6616
 
6617
    @Override
6618
    public boolean equals(Object that) {
6619
      if (that == null)
6620
        return false;
6621
      if (that instanceof getActivePaymentGateways_args)
6622
        return this.equals((getActivePaymentGateways_args)that);
6623
      return false;
6624
    }
6625
 
6626
    public boolean equals(getActivePaymentGateways_args that) {
6627
      if (that == null)
6628
        return false;
6629
 
6630
      return true;
6631
    }
6632
 
6633
    @Override
6634
    public int hashCode() {
6635
      return 0;
6636
    }
6637
 
6638
    public int compareTo(getActivePaymentGateways_args other) {
6639
      if (!getClass().equals(other.getClass())) {
6640
        return getClass().getName().compareTo(other.getClass().getName());
6641
      }
6642
 
6643
      int lastComparison = 0;
6644
      getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
6645
 
6646
      return 0;
6647
    }
6648
 
6649
    public _Fields fieldForId(int fieldId) {
6650
      return _Fields.findByThriftId(fieldId);
6651
    }
6652
 
6653
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6654
      org.apache.thrift.protocol.TField field;
6655
      iprot.readStructBegin();
6656
      while (true)
6657
      {
6658
        field = iprot.readFieldBegin();
6659
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6660
          break;
6661
        }
6662
        switch (field.id) {
6663
          default:
6664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6665
        }
6666
        iprot.readFieldEnd();
6667
      }
6668
      iprot.readStructEnd();
6669
      validate();
6670
    }
6671
 
6672
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6673
      validate();
6674
 
6675
      oprot.writeStructBegin(STRUCT_DESC);
6676
      oprot.writeFieldStop();
6677
      oprot.writeStructEnd();
6678
    }
6679
 
6680
    @Override
6681
    public String toString() {
6682
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
6683
      boolean first = true;
6684
 
6685
      sb.append(")");
6686
      return sb.toString();
6687
    }
6688
 
6689
    public void validate() throws org.apache.thrift.TException {
6690
      // check for required fields
6691
    }
6692
 
6693
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6694
      try {
6695
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6696
      } catch (org.apache.thrift.TException te) {
6697
        throw new java.io.IOException(te);
6698
      }
6699
    }
6700
 
6701
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6702
      try {
6703
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6704
      } catch (org.apache.thrift.TException te) {
6705
        throw new java.io.IOException(te);
6706
      }
6707
    }
6708
 
6709
  }
6710
 
6711
  public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable   {
6712
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
6713
 
6714
    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);
6715
    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);
6716
 
6717
    private List<PaymentGateway> success; // required
6718
    private PaymentException pe; // required
6719
 
6720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6722
      SUCCESS((short)0, "success"),
6723
      PE((short)1, "pe");
6724
 
6725
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6726
 
6727
      static {
6728
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6729
          byName.put(field.getFieldName(), field);
6730
        }
6731
      }
6732
 
6733
      /**
6734
       * Find the _Fields constant that matches fieldId, or null if its not found.
6735
       */
6736
      public static _Fields findByThriftId(int fieldId) {
6737
        switch(fieldId) {
6738
          case 0: // SUCCESS
6739
            return SUCCESS;
6740
          case 1: // PE
6741
            return PE;
6742
          default:
6743
            return null;
6744
        }
6745
      }
6746
 
6747
      /**
6748
       * Find the _Fields constant that matches fieldId, throwing an exception
6749
       * if it is not found.
6750
       */
6751
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6752
        _Fields fields = findByThriftId(fieldId);
6753
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6754
        return fields;
6755
      }
6756
 
6757
      /**
6758
       * Find the _Fields constant that matches name, or null if its not found.
6759
       */
6760
      public static _Fields findByName(String name) {
6761
        return byName.get(name);
6762
      }
6763
 
6764
      private final short _thriftId;
6765
      private final String _fieldName;
6766
 
6767
      _Fields(short thriftId, String fieldName) {
6768
        _thriftId = thriftId;
6769
        _fieldName = fieldName;
6770
      }
6771
 
6772
      public short getThriftFieldId() {
6773
        return _thriftId;
6774
      }
6775
 
6776
      public String getFieldName() {
6777
        return _fieldName;
6778
      }
6779
    }
6780
 
6781
    // isset id assignments
6782
 
6783
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6784
    static {
6785
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6786
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6787
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6788
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
6789
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6790
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6791
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6792
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
6793
    }
6794
 
6795
    public getActivePaymentGateways_result() {
6796
    }
6797
 
6798
    public getActivePaymentGateways_result(
6799
      List<PaymentGateway> success,
6800
      PaymentException pe)
6801
    {
6802
      this();
6803
      this.success = success;
6804
      this.pe = pe;
6805
    }
6806
 
6807
    /**
6808
     * Performs a deep copy on <i>other</i>.
6809
     */
6810
    public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
6811
      if (other.isSetSuccess()) {
6812
        List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
6813
        for (PaymentGateway other_element : other.success) {
6814
          __this__success.add(new PaymentGateway(other_element));
6815
        }
6816
        this.success = __this__success;
6817
      }
6818
      if (other.isSetPe()) {
6819
        this.pe = new PaymentException(other.pe);
6820
      }
6821
    }
6822
 
6823
    public getActivePaymentGateways_result deepCopy() {
6824
      return new getActivePaymentGateways_result(this);
6825
    }
6826
 
6827
    @Override
6828
    public void clear() {
6829
      this.success = null;
6830
      this.pe = null;
6831
    }
6832
 
6833
    public int getSuccessSize() {
6834
      return (this.success == null) ? 0 : this.success.size();
6835
    }
6836
 
6837
    public java.util.Iterator<PaymentGateway> getSuccessIterator() {
6838
      return (this.success == null) ? null : this.success.iterator();
6839
    }
6840
 
6841
    public void addToSuccess(PaymentGateway elem) {
6842
      if (this.success == null) {
6843
        this.success = new ArrayList<PaymentGateway>();
6844
      }
6845
      this.success.add(elem);
6846
    }
6847
 
6848
    public List<PaymentGateway> getSuccess() {
6849
      return this.success;
6850
    }
6851
 
6852
    public void setSuccess(List<PaymentGateway> success) {
6853
      this.success = success;
6854
    }
6855
 
6856
    public void unsetSuccess() {
6857
      this.success = null;
6858
    }
6859
 
6860
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6861
    public boolean isSetSuccess() {
6862
      return this.success != null;
6863
    }
6864
 
6865
    public void setSuccessIsSet(boolean value) {
6866
      if (!value) {
6867
        this.success = null;
6868
      }
6869
    }
6870
 
6871
    public PaymentException getPe() {
6872
      return this.pe;
6873
    }
6874
 
6875
    public void setPe(PaymentException pe) {
6876
      this.pe = pe;
6877
    }
6878
 
6879
    public void unsetPe() {
6880
      this.pe = null;
6881
    }
6882
 
6883
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
6884
    public boolean isSetPe() {
6885
      return this.pe != null;
6886
    }
6887
 
6888
    public void setPeIsSet(boolean value) {
6889
      if (!value) {
6890
        this.pe = null;
6891
      }
6892
    }
6893
 
6894
    public void setFieldValue(_Fields field, Object value) {
6895
      switch (field) {
6896
      case SUCCESS:
6897
        if (value == null) {
6898
          unsetSuccess();
6899
        } else {
6900
          setSuccess((List<PaymentGateway>)value);
6901
        }
6902
        break;
6903
 
6904
      case PE:
6905
        if (value == null) {
6906
          unsetPe();
6907
        } else {
6908
          setPe((PaymentException)value);
6909
        }
6910
        break;
6911
 
6912
      }
6913
    }
6914
 
6915
    public Object getFieldValue(_Fields field) {
6916
      switch (field) {
6917
      case SUCCESS:
6918
        return getSuccess();
6919
 
6920
      case PE:
6921
        return getPe();
6922
 
6923
      }
6924
      throw new IllegalStateException();
6925
    }
6926
 
6927
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6928
    public boolean isSet(_Fields field) {
6929
      if (field == null) {
6930
        throw new IllegalArgumentException();
6931
      }
6932
 
6933
      switch (field) {
6934
      case SUCCESS:
6935
        return isSetSuccess();
6936
      case PE:
6937
        return isSetPe();
6938
      }
6939
      throw new IllegalStateException();
6940
    }
6941
 
6942
    @Override
6943
    public boolean equals(Object that) {
6944
      if (that == null)
6945
        return false;
6946
      if (that instanceof getActivePaymentGateways_result)
6947
        return this.equals((getActivePaymentGateways_result)that);
6948
      return false;
6949
    }
6950
 
6951
    public boolean equals(getActivePaymentGateways_result that) {
6952
      if (that == null)
6953
        return false;
6954
 
6955
      boolean this_present_success = true && this.isSetSuccess();
6956
      boolean that_present_success = true && that.isSetSuccess();
6957
      if (this_present_success || that_present_success) {
6958
        if (!(this_present_success && that_present_success))
6959
          return false;
6960
        if (!this.success.equals(that.success))
6961
          return false;
6962
      }
6963
 
6964
      boolean this_present_pe = true && this.isSetPe();
6965
      boolean that_present_pe = true && that.isSetPe();
6966
      if (this_present_pe || that_present_pe) {
6967
        if (!(this_present_pe && that_present_pe))
6968
          return false;
6969
        if (!this.pe.equals(that.pe))
6970
          return false;
6971
      }
6972
 
6973
      return true;
6974
    }
6975
 
6976
    @Override
6977
    public int hashCode() {
6978
      return 0;
6979
    }
6980
 
6981
    public int compareTo(getActivePaymentGateways_result other) {
6982
      if (!getClass().equals(other.getClass())) {
6983
        return getClass().getName().compareTo(other.getClass().getName());
6984
      }
6985
 
6986
      int lastComparison = 0;
6987
      getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
6988
 
6989
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6990
      if (lastComparison != 0) {
6991
        return lastComparison;
6992
      }
6993
      if (isSetSuccess()) {
6994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6995
        if (lastComparison != 0) {
6996
          return lastComparison;
6997
        }
6998
      }
6999
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
7000
      if (lastComparison != 0) {
7001
        return lastComparison;
7002
      }
7003
      if (isSetPe()) {
7004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7005
        if (lastComparison != 0) {
7006
          return lastComparison;
7007
        }
7008
      }
7009
      return 0;
7010
    }
7011
 
7012
    public _Fields fieldForId(int fieldId) {
7013
      return _Fields.findByThriftId(fieldId);
7014
    }
7015
 
7016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7017
      org.apache.thrift.protocol.TField field;
7018
      iprot.readStructBegin();
7019
      while (true)
7020
      {
7021
        field = iprot.readFieldBegin();
7022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7023
          break;
7024
        }
7025
        switch (field.id) {
7026
          case 0: // SUCCESS
7027
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7028
              {
7029
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
7030
                this.success = new ArrayList<PaymentGateway>(_list24.size);
7031
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7032
                {
7033
                  PaymentGateway _elem26; // required
7034
                  _elem26 = new PaymentGateway();
7035
                  _elem26.read(iprot);
7036
                  this.success.add(_elem26);
7037
                }
7038
                iprot.readListEnd();
7039
              }
7040
            } else { 
7041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7042
            }
7043
            break;
7044
          case 1: // PE
7045
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7046
              this.pe = new PaymentException();
7047
              this.pe.read(iprot);
7048
            } else { 
7049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7050
            }
7051
            break;
7052
          default:
7053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7054
        }
7055
        iprot.readFieldEnd();
7056
      }
7057
      iprot.readStructEnd();
7058
      validate();
7059
    }
7060
 
7061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7062
      oprot.writeStructBegin(STRUCT_DESC);
7063
 
7064
      if (this.isSetSuccess()) {
7065
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7066
        {
7067
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7068
          for (PaymentGateway _iter27 : this.success)
7069
          {
7070
            _iter27.write(oprot);
7071
          }
7072
          oprot.writeListEnd();
7073
        }
7074
        oprot.writeFieldEnd();
7075
      } else if (this.isSetPe()) {
7076
        oprot.writeFieldBegin(PE_FIELD_DESC);
7077
        this.pe.write(oprot);
7078
        oprot.writeFieldEnd();
7079
      }
7080
      oprot.writeFieldStop();
7081
      oprot.writeStructEnd();
7082
    }
7083
 
7084
    @Override
7085
    public String toString() {
7086
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
7087
      boolean first = true;
7088
 
7089
      sb.append("success:");
7090
      if (this.success == null) {
7091
        sb.append("null");
7092
      } else {
7093
        sb.append(this.success);
7094
      }
7095
      first = false;
7096
      if (!first) sb.append(", ");
7097
      sb.append("pe:");
7098
      if (this.pe == null) {
7099
        sb.append("null");
7100
      } else {
7101
        sb.append(this.pe);
7102
      }
7103
      first = false;
7104
      sb.append(")");
7105
      return sb.toString();
7106
    }
7107
 
7108
    public void validate() throws org.apache.thrift.TException {
7109
      // check for required fields
7110
    }
7111
 
7112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7113
      try {
7114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7115
      } catch (org.apache.thrift.TException te) {
7116
        throw new java.io.IOException(te);
7117
      }
7118
    }
7119
 
7120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7121
      try {
7122
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7123
      } catch (org.apache.thrift.TException te) {
7124
        throw new java.io.IOException(te);
7125
      }
7126
    }
7127
 
7128
  }
7129
 
3430 rajveer 7130
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
7131
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
420 ashish 7132
 
3430 rajveer 7133
    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);
420 ashish 7134
 
3430 rajveer 7135
    private long id; // required
420 ashish 7136
 
7137
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7138
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7139
      ID((short)1, "id");
7140
 
7141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7142
 
7143
      static {
7144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7145
          byName.put(field.getFieldName(), field);
7146
        }
7147
      }
7148
 
7149
      /**
7150
       * Find the _Fields constant that matches fieldId, or null if its not found.
7151
       */
7152
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7153
        switch(fieldId) {
7154
          case 1: // ID
7155
            return ID;
7156
          default:
7157
            return null;
7158
        }
420 ashish 7159
      }
7160
 
7161
      /**
7162
       * Find the _Fields constant that matches fieldId, throwing an exception
7163
       * if it is not found.
7164
       */
7165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7166
        _Fields fields = findByThriftId(fieldId);
7167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7168
        return fields;
7169
      }
7170
 
7171
      /**
7172
       * Find the _Fields constant that matches name, or null if its not found.
7173
       */
7174
      public static _Fields findByName(String name) {
7175
        return byName.get(name);
7176
      }
7177
 
7178
      private final short _thriftId;
7179
      private final String _fieldName;
7180
 
7181
      _Fields(short thriftId, String fieldName) {
7182
        _thriftId = thriftId;
7183
        _fieldName = fieldName;
7184
      }
7185
 
7186
      public short getThriftFieldId() {
7187
        return _thriftId;
7188
      }
7189
 
7190
      public String getFieldName() {
7191
        return _fieldName;
7192
      }
7193
    }
7194
 
7195
    // isset id assignments
7196
    private static final int __ID_ISSET_ID = 0;
7197
    private BitSet __isset_bit_vector = new BitSet(1);
7198
 
3430 rajveer 7199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7200
    static {
3430 rajveer 7201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7202
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
420 ashish 7206
    }
7207
 
695 rajveer 7208
    public getPayment_args() {
420 ashish 7209
    }
7210
 
695 rajveer 7211
    public getPayment_args(
420 ashish 7212
      long id)
7213
    {
7214
      this();
7215
      this.id = id;
7216
      setIdIsSet(true);
7217
    }
7218
 
7219
    /**
7220
     * Performs a deep copy on <i>other</i>.
7221
     */
695 rajveer 7222
    public getPayment_args(getPayment_args other) {
420 ashish 7223
      __isset_bit_vector.clear();
7224
      __isset_bit_vector.or(other.__isset_bit_vector);
7225
      this.id = other.id;
7226
    }
7227
 
695 rajveer 7228
    public getPayment_args deepCopy() {
7229
      return new getPayment_args(this);
420 ashish 7230
    }
7231
 
3430 rajveer 7232
    @Override
7233
    public void clear() {
7234
      setIdIsSet(false);
7235
      this.id = 0;
420 ashish 7236
    }
7237
 
7238
    public long getId() {
7239
      return this.id;
7240
    }
7241
 
3430 rajveer 7242
    public void setId(long id) {
420 ashish 7243
      this.id = id;
7244
      setIdIsSet(true);
7245
    }
7246
 
7247
    public void unsetId() {
7248
      __isset_bit_vector.clear(__ID_ISSET_ID);
7249
    }
7250
 
3430 rajveer 7251
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 7252
    public boolean isSetId() {
7253
      return __isset_bit_vector.get(__ID_ISSET_ID);
7254
    }
7255
 
7256
    public void setIdIsSet(boolean value) {
7257
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7258
    }
7259
 
7260
    public void setFieldValue(_Fields field, Object value) {
7261
      switch (field) {
7262
      case ID:
7263
        if (value == null) {
7264
          unsetId();
7265
        } else {
7266
          setId((Long)value);
7267
        }
7268
        break;
7269
 
7270
      }
7271
    }
7272
 
7273
    public Object getFieldValue(_Fields field) {
7274
      switch (field) {
7275
      case ID:
3430 rajveer 7276
        return Long.valueOf(getId());
420 ashish 7277
 
7278
      }
7279
      throw new IllegalStateException();
7280
    }
7281
 
3430 rajveer 7282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7283
    public boolean isSet(_Fields field) {
7284
      if (field == null) {
7285
        throw new IllegalArgumentException();
7286
      }
420 ashish 7287
 
7288
      switch (field) {
7289
      case ID:
7290
        return isSetId();
7291
      }
7292
      throw new IllegalStateException();
7293
    }
7294
 
7295
    @Override
7296
    public boolean equals(Object that) {
7297
      if (that == null)
7298
        return false;
695 rajveer 7299
      if (that instanceof getPayment_args)
7300
        return this.equals((getPayment_args)that);
420 ashish 7301
      return false;
7302
    }
7303
 
695 rajveer 7304
    public boolean equals(getPayment_args that) {
420 ashish 7305
      if (that == null)
7306
        return false;
7307
 
7308
      boolean this_present_id = true;
7309
      boolean that_present_id = true;
7310
      if (this_present_id || that_present_id) {
7311
        if (!(this_present_id && that_present_id))
7312
          return false;
7313
        if (this.id != that.id)
7314
          return false;
7315
      }
7316
 
7317
      return true;
7318
    }
7319
 
7320
    @Override
7321
    public int hashCode() {
7322
      return 0;
7323
    }
7324
 
695 rajveer 7325
    public int compareTo(getPayment_args other) {
420 ashish 7326
      if (!getClass().equals(other.getClass())) {
7327
        return getClass().getName().compareTo(other.getClass().getName());
7328
      }
7329
 
7330
      int lastComparison = 0;
695 rajveer 7331
      getPayment_args typedOther = (getPayment_args)other;
420 ashish 7332
 
3430 rajveer 7333
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 7334
      if (lastComparison != 0) {
7335
        return lastComparison;
7336
      }
3430 rajveer 7337
      if (isSetId()) {
7338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7339
        if (lastComparison != 0) {
7340
          return lastComparison;
7341
        }
420 ashish 7342
      }
7343
      return 0;
7344
    }
7345
 
3430 rajveer 7346
    public _Fields fieldForId(int fieldId) {
7347
      return _Fields.findByThriftId(fieldId);
7348
    }
7349
 
7350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7351
      org.apache.thrift.protocol.TField field;
420 ashish 7352
      iprot.readStructBegin();
7353
      while (true)
7354
      {
7355
        field = iprot.readFieldBegin();
3430 rajveer 7356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7357
          break;
7358
        }
3430 rajveer 7359
        switch (field.id) {
7360
          case 1: // ID
7361
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7362
              this.id = iprot.readI64();
7363
              setIdIsSet(true);
7364
            } else { 
7365
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7366
            }
7367
            break;
7368
          default:
7369
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7370
        }
3430 rajveer 7371
        iprot.readFieldEnd();
420 ashish 7372
      }
7373
      iprot.readStructEnd();
7374
      validate();
7375
    }
7376
 
3430 rajveer 7377
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7378
      validate();
7379
 
7380
      oprot.writeStructBegin(STRUCT_DESC);
7381
      oprot.writeFieldBegin(ID_FIELD_DESC);
7382
      oprot.writeI64(this.id);
7383
      oprot.writeFieldEnd();
7384
      oprot.writeFieldStop();
7385
      oprot.writeStructEnd();
7386
    }
7387
 
7388
    @Override
7389
    public String toString() {
695 rajveer 7390
      StringBuilder sb = new StringBuilder("getPayment_args(");
420 ashish 7391
      boolean first = true;
7392
 
7393
      sb.append("id:");
7394
      sb.append(this.id);
7395
      first = false;
7396
      sb.append(")");
7397
      return sb.toString();
7398
    }
7399
 
3430 rajveer 7400
    public void validate() throws org.apache.thrift.TException {
420 ashish 7401
      // check for required fields
7402
    }
7403
 
3430 rajveer 7404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7405
      try {
7406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7407
      } catch (org.apache.thrift.TException te) {
7408
        throw new java.io.IOException(te);
7409
      }
7410
    }
7411
 
7412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7413
      try {
7414
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7415
        __isset_bit_vector = new BitSet(1);
7416
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7417
      } catch (org.apache.thrift.TException te) {
7418
        throw new java.io.IOException(te);
7419
      }
7420
    }
7421
 
420 ashish 7422
  }
7423
 
3430 rajveer 7424
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
7425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
420 ashish 7426
 
3430 rajveer 7427
    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);
7428
    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);
420 ashish 7429
 
3430 rajveer 7430
    private Payment success; // required
7431
    private PaymentException pe; // required
420 ashish 7432
 
7433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7435
      SUCCESS((short)0, "success"),
7436
      PE((short)1, "pe");
7437
 
7438
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7439
 
7440
      static {
7441
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7442
          byName.put(field.getFieldName(), field);
7443
        }
7444
      }
7445
 
7446
      /**
7447
       * Find the _Fields constant that matches fieldId, or null if its not found.
7448
       */
7449
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7450
        switch(fieldId) {
7451
          case 0: // SUCCESS
7452
            return SUCCESS;
7453
          case 1: // PE
7454
            return PE;
7455
          default:
7456
            return null;
7457
        }
420 ashish 7458
      }
7459
 
7460
      /**
7461
       * Find the _Fields constant that matches fieldId, throwing an exception
7462
       * if it is not found.
7463
       */
7464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7465
        _Fields fields = findByThriftId(fieldId);
7466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7467
        return fields;
7468
      }
7469
 
7470
      /**
7471
       * Find the _Fields constant that matches name, or null if its not found.
7472
       */
7473
      public static _Fields findByName(String name) {
7474
        return byName.get(name);
7475
      }
7476
 
7477
      private final short _thriftId;
7478
      private final String _fieldName;
7479
 
7480
      _Fields(short thriftId, String fieldName) {
7481
        _thriftId = thriftId;
7482
        _fieldName = fieldName;
7483
      }
7484
 
7485
      public short getThriftFieldId() {
7486
        return _thriftId;
7487
      }
7488
 
7489
      public String getFieldName() {
7490
        return _fieldName;
7491
      }
7492
    }
7493
 
7494
    // isset id assignments
7495
 
3430 rajveer 7496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7497
    static {
3430 rajveer 7498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7499
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7500
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
7501
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
420 ashish 7505
    }
7506
 
695 rajveer 7507
    public getPayment_result() {
420 ashish 7508
    }
7509
 
695 rajveer 7510
    public getPayment_result(
7511
      Payment success,
420 ashish 7512
      PaymentException pe)
7513
    {
7514
      this();
7515
      this.success = success;
7516
      this.pe = pe;
7517
    }
7518
 
7519
    /**
7520
     * Performs a deep copy on <i>other</i>.
7521
     */
695 rajveer 7522
    public getPayment_result(getPayment_result other) {
420 ashish 7523
      if (other.isSetSuccess()) {
695 rajveer 7524
        this.success = new Payment(other.success);
420 ashish 7525
      }
7526
      if (other.isSetPe()) {
7527
        this.pe = new PaymentException(other.pe);
7528
      }
7529
    }
7530
 
695 rajveer 7531
    public getPayment_result deepCopy() {
7532
      return new getPayment_result(this);
420 ashish 7533
    }
7534
 
3430 rajveer 7535
    @Override
7536
    public void clear() {
7537
      this.success = null;
7538
      this.pe = null;
420 ashish 7539
    }
7540
 
695 rajveer 7541
    public Payment getSuccess() {
420 ashish 7542
      return this.success;
7543
    }
7544
 
3430 rajveer 7545
    public void setSuccess(Payment success) {
420 ashish 7546
      this.success = success;
7547
    }
7548
 
7549
    public void unsetSuccess() {
7550
      this.success = null;
7551
    }
7552
 
3430 rajveer 7553
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 7554
    public boolean isSetSuccess() {
7555
      return this.success != null;
7556
    }
7557
 
7558
    public void setSuccessIsSet(boolean value) {
7559
      if (!value) {
7560
        this.success = null;
7561
      }
7562
    }
7563
 
7564
    public PaymentException getPe() {
7565
      return this.pe;
7566
    }
7567
 
3430 rajveer 7568
    public void setPe(PaymentException pe) {
420 ashish 7569
      this.pe = pe;
7570
    }
7571
 
7572
    public void unsetPe() {
7573
      this.pe = null;
7574
    }
7575
 
3430 rajveer 7576
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 7577
    public boolean isSetPe() {
7578
      return this.pe != null;
7579
    }
7580
 
7581
    public void setPeIsSet(boolean value) {
7582
      if (!value) {
7583
        this.pe = null;
7584
      }
7585
    }
7586
 
7587
    public void setFieldValue(_Fields field, Object value) {
7588
      switch (field) {
7589
      case SUCCESS:
7590
        if (value == null) {
7591
          unsetSuccess();
7592
        } else {
695 rajveer 7593
          setSuccess((Payment)value);
420 ashish 7594
        }
7595
        break;
7596
 
7597
      case PE:
7598
        if (value == null) {
7599
          unsetPe();
7600
        } else {
7601
          setPe((PaymentException)value);
7602
        }
7603
        break;
7604
 
7605
      }
7606
    }
7607
 
7608
    public Object getFieldValue(_Fields field) {
7609
      switch (field) {
7610
      case SUCCESS:
7611
        return getSuccess();
7612
 
7613
      case PE:
7614
        return getPe();
7615
 
7616
      }
7617
      throw new IllegalStateException();
7618
    }
7619
 
3430 rajveer 7620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7621
    public boolean isSet(_Fields field) {
7622
      if (field == null) {
7623
        throw new IllegalArgumentException();
7624
      }
420 ashish 7625
 
7626
      switch (field) {
7627
      case SUCCESS:
7628
        return isSetSuccess();
7629
      case PE:
7630
        return isSetPe();
7631
      }
7632
      throw new IllegalStateException();
7633
    }
7634
 
7635
    @Override
7636
    public boolean equals(Object that) {
7637
      if (that == null)
7638
        return false;
695 rajveer 7639
      if (that instanceof getPayment_result)
7640
        return this.equals((getPayment_result)that);
420 ashish 7641
      return false;
7642
    }
7643
 
695 rajveer 7644
    public boolean equals(getPayment_result that) {
420 ashish 7645
      if (that == null)
7646
        return false;
7647
 
7648
      boolean this_present_success = true && this.isSetSuccess();
7649
      boolean that_present_success = true && that.isSetSuccess();
7650
      if (this_present_success || that_present_success) {
7651
        if (!(this_present_success && that_present_success))
7652
          return false;
7653
        if (!this.success.equals(that.success))
7654
          return false;
7655
      }
7656
 
7657
      boolean this_present_pe = true && this.isSetPe();
7658
      boolean that_present_pe = true && that.isSetPe();
7659
      if (this_present_pe || that_present_pe) {
7660
        if (!(this_present_pe && that_present_pe))
7661
          return false;
7662
        if (!this.pe.equals(that.pe))
7663
          return false;
7664
      }
7665
 
7666
      return true;
7667
    }
7668
 
7669
    @Override
7670
    public int hashCode() {
7671
      return 0;
7672
    }
7673
 
695 rajveer 7674
    public int compareTo(getPayment_result other) {
420 ashish 7675
      if (!getClass().equals(other.getClass())) {
7676
        return getClass().getName().compareTo(other.getClass().getName());
7677
      }
7678
 
7679
      int lastComparison = 0;
695 rajveer 7680
      getPayment_result typedOther = (getPayment_result)other;
420 ashish 7681
 
3430 rajveer 7682
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 7683
      if (lastComparison != 0) {
7684
        return lastComparison;
7685
      }
3430 rajveer 7686
      if (isSetSuccess()) {
7687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7688
        if (lastComparison != 0) {
7689
          return lastComparison;
7690
        }
420 ashish 7691
      }
3430 rajveer 7692
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 7693
      if (lastComparison != 0) {
7694
        return lastComparison;
7695
      }
3430 rajveer 7696
      if (isSetPe()) {
7697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7698
        if (lastComparison != 0) {
7699
          return lastComparison;
7700
        }
420 ashish 7701
      }
7702
      return 0;
7703
    }
7704
 
3430 rajveer 7705
    public _Fields fieldForId(int fieldId) {
7706
      return _Fields.findByThriftId(fieldId);
7707
    }
7708
 
7709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7710
      org.apache.thrift.protocol.TField field;
420 ashish 7711
      iprot.readStructBegin();
7712
      while (true)
7713
      {
7714
        field = iprot.readFieldBegin();
3430 rajveer 7715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7716
          break;
7717
        }
3430 rajveer 7718
        switch (field.id) {
7719
          case 0: // SUCCESS
7720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7721
              this.success = new Payment();
7722
              this.success.read(iprot);
7723
            } else { 
7724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7725
            }
7726
            break;
7727
          case 1: // PE
7728
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7729
              this.pe = new PaymentException();
7730
              this.pe.read(iprot);
7731
            } else { 
7732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7733
            }
7734
            break;
7735
          default:
7736
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7737
        }
3430 rajveer 7738
        iprot.readFieldEnd();
420 ashish 7739
      }
7740
      iprot.readStructEnd();
7741
      validate();
7742
    }
7743
 
3430 rajveer 7744
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7745
      oprot.writeStructBegin(STRUCT_DESC);
7746
 
695 rajveer 7747
      if (this.isSetSuccess()) {
7748
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7749
        this.success.write(oprot);
7750
        oprot.writeFieldEnd();
7751
      } else if (this.isSetPe()) {
420 ashish 7752
        oprot.writeFieldBegin(PE_FIELD_DESC);
7753
        this.pe.write(oprot);
7754
        oprot.writeFieldEnd();
7755
      }
7756
      oprot.writeFieldStop();
7757
      oprot.writeStructEnd();
7758
    }
7759
 
7760
    @Override
7761
    public String toString() {
695 rajveer 7762
      StringBuilder sb = new StringBuilder("getPayment_result(");
420 ashish 7763
      boolean first = true;
7764
 
695 rajveer 7765
      sb.append("success:");
7766
      if (this.success == null) {
7767
        sb.append("null");
7768
      } else {
7769
        sb.append(this.success);
7770
      }
7771
      first = false;
7772
      if (!first) sb.append(", ");
420 ashish 7773
      sb.append("pe:");
7774
      if (this.pe == null) {
7775
        sb.append("null");
7776
      } else {
7777
        sb.append(this.pe);
7778
      }
7779
      first = false;
7780
      sb.append(")");
7781
      return sb.toString();
7782
    }
7783
 
3430 rajveer 7784
    public void validate() throws org.apache.thrift.TException {
420 ashish 7785
      // check for required fields
7786
    }
7787
 
3430 rajveer 7788
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7789
      try {
7790
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7791
      } catch (org.apache.thrift.TException te) {
7792
        throw new java.io.IOException(te);
7793
      }
7794
    }
7795
 
7796
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7797
      try {
7798
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7799
      } catch (org.apache.thrift.TException te) {
7800
        throw new java.io.IOException(te);
7801
      }
7802
    }
7803
 
420 ashish 7804
  }
7805
 
3430 rajveer 7806
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
7807
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
420 ashish 7808
 
3430 rajveer 7809
    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);
420 ashish 7810
 
3430 rajveer 7811
    private long txnId; // required
420 ashish 7812
 
7813
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7814
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 7815
      TXN_ID((short)1, "txnId");
420 ashish 7816
 
7817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7818
 
7819
      static {
7820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7821
          byName.put(field.getFieldName(), field);
7822
        }
7823
      }
7824
 
7825
      /**
7826
       * Find the _Fields constant that matches fieldId, or null if its not found.
7827
       */
7828
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7829
        switch(fieldId) {
7830
          case 1: // TXN_ID
7831
            return TXN_ID;
7832
          default:
7833
            return null;
7834
        }
420 ashish 7835
      }
7836
 
7837
      /**
7838
       * Find the _Fields constant that matches fieldId, throwing an exception
7839
       * if it is not found.
7840
       */
7841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7842
        _Fields fields = findByThriftId(fieldId);
7843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7844
        return fields;
7845
      }
7846
 
7847
      /**
7848
       * Find the _Fields constant that matches name, or null if its not found.
7849
       */
7850
      public static _Fields findByName(String name) {
7851
        return byName.get(name);
7852
      }
7853
 
7854
      private final short _thriftId;
7855
      private final String _fieldName;
7856
 
7857
      _Fields(short thriftId, String fieldName) {
7858
        _thriftId = thriftId;
7859
        _fieldName = fieldName;
7860
      }
7861
 
7862
      public short getThriftFieldId() {
7863
        return _thriftId;
7864
      }
7865
 
7866
      public String getFieldName() {
7867
        return _fieldName;
7868
      }
7869
    }
7870
 
7871
    // isset id assignments
695 rajveer 7872
    private static final int __TXNID_ISSET_ID = 0;
420 ashish 7873
    private BitSet __isset_bit_vector = new BitSet(1);
7874
 
3430 rajveer 7875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7876
    static {
3430 rajveer 7877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7878
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
420 ashish 7882
    }
7883
 
695 rajveer 7884
    public getPaymentForTxnId_args() {
420 ashish 7885
    }
7886
 
695 rajveer 7887
    public getPaymentForTxnId_args(
7888
      long txnId)
420 ashish 7889
    {
7890
      this();
695 rajveer 7891
      this.txnId = txnId;
7892
      setTxnIdIsSet(true);
420 ashish 7893
    }
7894
 
7895
    /**
7896
     * Performs a deep copy on <i>other</i>.
7897
     */
695 rajveer 7898
    public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
420 ashish 7899
      __isset_bit_vector.clear();
7900
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 7901
      this.txnId = other.txnId;
420 ashish 7902
    }
7903
 
695 rajveer 7904
    public getPaymentForTxnId_args deepCopy() {
7905
      return new getPaymentForTxnId_args(this);
420 ashish 7906
    }
7907
 
3430 rajveer 7908
    @Override
7909
    public void clear() {
7910
      setTxnIdIsSet(false);
7911
      this.txnId = 0;
420 ashish 7912
    }
7913
 
695 rajveer 7914
    public long getTxnId() {
7915
      return this.txnId;
420 ashish 7916
    }
7917
 
3430 rajveer 7918
    public void setTxnId(long txnId) {
695 rajveer 7919
      this.txnId = txnId;
7920
      setTxnIdIsSet(true);
420 ashish 7921
    }
7922
 
695 rajveer 7923
    public void unsetTxnId() {
7924
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
420 ashish 7925
    }
7926
 
3430 rajveer 7927
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 7928
    public boolean isSetTxnId() {
7929
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
420 ashish 7930
    }
7931
 
695 rajveer 7932
    public void setTxnIdIsSet(boolean value) {
7933
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
420 ashish 7934
    }
7935
 
7936
    public void setFieldValue(_Fields field, Object value) {
7937
      switch (field) {
695 rajveer 7938
      case TXN_ID:
420 ashish 7939
        if (value == null) {
695 rajveer 7940
          unsetTxnId();
420 ashish 7941
        } else {
695 rajveer 7942
          setTxnId((Long)value);
420 ashish 7943
        }
7944
        break;
7945
 
7946
      }
7947
    }
7948
 
7949
    public Object getFieldValue(_Fields field) {
7950
      switch (field) {
695 rajveer 7951
      case TXN_ID:
3430 rajveer 7952
        return Long.valueOf(getTxnId());
420 ashish 7953
 
7954
      }
7955
      throw new IllegalStateException();
7956
    }
7957
 
3430 rajveer 7958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7959
    public boolean isSet(_Fields field) {
7960
      if (field == null) {
7961
        throw new IllegalArgumentException();
7962
      }
420 ashish 7963
 
7964
      switch (field) {
695 rajveer 7965
      case TXN_ID:
7966
        return isSetTxnId();
420 ashish 7967
      }
7968
      throw new IllegalStateException();
7969
    }
7970
 
7971
    @Override
7972
    public boolean equals(Object that) {
7973
      if (that == null)
7974
        return false;
695 rajveer 7975
      if (that instanceof getPaymentForTxnId_args)
7976
        return this.equals((getPaymentForTxnId_args)that);
420 ashish 7977
      return false;
7978
    }
7979
 
695 rajveer 7980
    public boolean equals(getPaymentForTxnId_args that) {
420 ashish 7981
      if (that == null)
7982
        return false;
7983
 
695 rajveer 7984
      boolean this_present_txnId = true;
7985
      boolean that_present_txnId = true;
7986
      if (this_present_txnId || that_present_txnId) {
7987
        if (!(this_present_txnId && that_present_txnId))
420 ashish 7988
          return false;
695 rajveer 7989
        if (this.txnId != that.txnId)
420 ashish 7990
          return false;
7991
      }
7992
 
7993
      return true;
7994
    }
7995
 
7996
    @Override
7997
    public int hashCode() {
7998
      return 0;
7999
    }
8000
 
695 rajveer 8001
    public int compareTo(getPaymentForTxnId_args other) {
420 ashish 8002
      if (!getClass().equals(other.getClass())) {
8003
        return getClass().getName().compareTo(other.getClass().getName());
8004
      }
8005
 
8006
      int lastComparison = 0;
695 rajveer 8007
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
420 ashish 8008
 
3430 rajveer 8009
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
420 ashish 8010
      if (lastComparison != 0) {
8011
        return lastComparison;
8012
      }
3430 rajveer 8013
      if (isSetTxnId()) {
8014
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8015
        if (lastComparison != 0) {
8016
          return lastComparison;
8017
        }
420 ashish 8018
      }
8019
      return 0;
8020
    }
8021
 
3430 rajveer 8022
    public _Fields fieldForId(int fieldId) {
8023
      return _Fields.findByThriftId(fieldId);
8024
    }
8025
 
8026
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8027
      org.apache.thrift.protocol.TField field;
420 ashish 8028
      iprot.readStructBegin();
8029
      while (true)
8030
      {
8031
        field = iprot.readFieldBegin();
3430 rajveer 8032
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8033
          break;
8034
        }
3430 rajveer 8035
        switch (field.id) {
8036
          case 1: // TXN_ID
8037
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8038
              this.txnId = iprot.readI64();
8039
              setTxnIdIsSet(true);
8040
            } else { 
8041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8042
            }
8043
            break;
8044
          default:
8045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8046
        }
3430 rajveer 8047
        iprot.readFieldEnd();
420 ashish 8048
      }
8049
      iprot.readStructEnd();
8050
      validate();
8051
    }
8052
 
3430 rajveer 8053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8054
      validate();
8055
 
8056
      oprot.writeStructBegin(STRUCT_DESC);
695 rajveer 8057
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8058
      oprot.writeI64(this.txnId);
420 ashish 8059
      oprot.writeFieldEnd();
8060
      oprot.writeFieldStop();
8061
      oprot.writeStructEnd();
8062
    }
8063
 
8064
    @Override
8065
    public String toString() {
695 rajveer 8066
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
420 ashish 8067
      boolean first = true;
8068
 
695 rajveer 8069
      sb.append("txnId:");
8070
      sb.append(this.txnId);
420 ashish 8071
      first = false;
8072
      sb.append(")");
8073
      return sb.toString();
8074
    }
8075
 
3430 rajveer 8076
    public void validate() throws org.apache.thrift.TException {
420 ashish 8077
      // check for required fields
8078
    }
8079
 
3430 rajveer 8080
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8081
      try {
8082
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8083
      } catch (org.apache.thrift.TException te) {
8084
        throw new java.io.IOException(te);
8085
      }
8086
    }
8087
 
8088
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8089
      try {
8090
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8091
        __isset_bit_vector = new BitSet(1);
8092
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8093
      } catch (org.apache.thrift.TException te) {
8094
        throw new java.io.IOException(te);
8095
      }
8096
    }
8097
 
420 ashish 8098
  }
8099
 
3430 rajveer 8100
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
8101
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
420 ashish 8102
 
3430 rajveer 8103
    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);
8104
    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);
420 ashish 8105
 
3430 rajveer 8106
    private List<Payment> success; // required
8107
    private PaymentException pe; // required
420 ashish 8108
 
8109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 8111
      SUCCESS((short)0, "success"),
8112
      PE((short)1, "pe");
8113
 
8114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8115
 
8116
      static {
8117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8118
          byName.put(field.getFieldName(), field);
8119
        }
8120
      }
8121
 
8122
      /**
8123
       * Find the _Fields constant that matches fieldId, or null if its not found.
8124
       */
8125
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8126
        switch(fieldId) {
8127
          case 0: // SUCCESS
8128
            return SUCCESS;
8129
          case 1: // PE
8130
            return PE;
8131
          default:
8132
            return null;
8133
        }
420 ashish 8134
      }
8135
 
8136
      /**
8137
       * Find the _Fields constant that matches fieldId, throwing an exception
8138
       * if it is not found.
8139
       */
8140
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8141
        _Fields fields = findByThriftId(fieldId);
8142
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8143
        return fields;
8144
      }
8145
 
8146
      /**
8147
       * Find the _Fields constant that matches name, or null if its not found.
8148
       */
8149
      public static _Fields findByName(String name) {
8150
        return byName.get(name);
8151
      }
8152
 
8153
      private final short _thriftId;
8154
      private final String _fieldName;
8155
 
8156
      _Fields(short thriftId, String fieldName) {
8157
        _thriftId = thriftId;
8158
        _fieldName = fieldName;
8159
      }
8160
 
8161
      public short getThriftFieldId() {
8162
        return _thriftId;
8163
      }
8164
 
8165
      public String getFieldName() {
8166
        return _fieldName;
8167
      }
8168
    }
8169
 
8170
    // isset id assignments
8171
 
3430 rajveer 8172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8173
    static {
3430 rajveer 8174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8175
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8176
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8177
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
8178
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8179
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
420 ashish 8182
    }
8183
 
695 rajveer 8184
    public getPaymentForTxnId_result() {
420 ashish 8185
    }
8186
 
695 rajveer 8187
    public getPaymentForTxnId_result(
8188
      List<Payment> success,
420 ashish 8189
      PaymentException pe)
8190
    {
8191
      this();
8192
      this.success = success;
8193
      this.pe = pe;
8194
    }
8195
 
8196
    /**
8197
     * Performs a deep copy on <i>other</i>.
8198
     */
695 rajveer 8199
    public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
420 ashish 8200
      if (other.isSetSuccess()) {
695 rajveer 8201
        List<Payment> __this__success = new ArrayList<Payment>();
8202
        for (Payment other_element : other.success) {
8203
          __this__success.add(new Payment(other_element));
8204
        }
8205
        this.success = __this__success;
420 ashish 8206
      }
8207
      if (other.isSetPe()) {
8208
        this.pe = new PaymentException(other.pe);
8209
      }
8210
    }
8211
 
695 rajveer 8212
    public getPaymentForTxnId_result deepCopy() {
8213
      return new getPaymentForTxnId_result(this);
420 ashish 8214
    }
8215
 
3430 rajveer 8216
    @Override
8217
    public void clear() {
8218
      this.success = null;
8219
      this.pe = null;
420 ashish 8220
    }
8221
 
695 rajveer 8222
    public int getSuccessSize() {
8223
      return (this.success == null) ? 0 : this.success.size();
8224
    }
8225
 
8226
    public java.util.Iterator<Payment> getSuccessIterator() {
8227
      return (this.success == null) ? null : this.success.iterator();
8228
    }
8229
 
8230
    public void addToSuccess(Payment elem) {
8231
      if (this.success == null) {
8232
        this.success = new ArrayList<Payment>();
8233
      }
8234
      this.success.add(elem);
8235
    }
8236
 
8237
    public List<Payment> getSuccess() {
420 ashish 8238
      return this.success;
8239
    }
8240
 
3430 rajveer 8241
    public void setSuccess(List<Payment> success) {
420 ashish 8242
      this.success = success;
8243
    }
8244
 
8245
    public void unsetSuccess() {
8246
      this.success = null;
8247
    }
8248
 
3430 rajveer 8249
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 8250
    public boolean isSetSuccess() {
8251
      return this.success != null;
8252
    }
8253
 
8254
    public void setSuccessIsSet(boolean value) {
8255
      if (!value) {
8256
        this.success = null;
8257
      }
8258
    }
8259
 
8260
    public PaymentException getPe() {
8261
      return this.pe;
8262
    }
8263
 
3430 rajveer 8264
    public void setPe(PaymentException pe) {
420 ashish 8265
      this.pe = pe;
8266
    }
8267
 
8268
    public void unsetPe() {
8269
      this.pe = null;
8270
    }
8271
 
3430 rajveer 8272
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 8273
    public boolean isSetPe() {
8274
      return this.pe != null;
8275
    }
8276
 
8277
    public void setPeIsSet(boolean value) {
8278
      if (!value) {
8279
        this.pe = null;
8280
      }
8281
    }
8282
 
8283
    public void setFieldValue(_Fields field, Object value) {
8284
      switch (field) {
8285
      case SUCCESS:
8286
        if (value == null) {
8287
          unsetSuccess();
8288
        } else {
695 rajveer 8289
          setSuccess((List<Payment>)value);
420 ashish 8290
        }
8291
        break;
8292
 
8293
      case PE:
8294
        if (value == null) {
8295
          unsetPe();
8296
        } else {
8297
          setPe((PaymentException)value);
8298
        }
8299
        break;
8300
 
8301
      }
8302
    }
8303
 
8304
    public Object getFieldValue(_Fields field) {
8305
      switch (field) {
8306
      case SUCCESS:
8307
        return getSuccess();
8308
 
8309
      case PE:
8310
        return getPe();
8311
 
8312
      }
8313
      throw new IllegalStateException();
8314
    }
8315
 
3430 rajveer 8316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8317
    public boolean isSet(_Fields field) {
8318
      if (field == null) {
8319
        throw new IllegalArgumentException();
8320
      }
420 ashish 8321
 
8322
      switch (field) {
8323
      case SUCCESS:
8324
        return isSetSuccess();
8325
      case PE:
8326
        return isSetPe();
8327
      }
8328
      throw new IllegalStateException();
8329
    }
8330
 
8331
    @Override
8332
    public boolean equals(Object that) {
8333
      if (that == null)
8334
        return false;
695 rajveer 8335
      if (that instanceof getPaymentForTxnId_result)
8336
        return this.equals((getPaymentForTxnId_result)that);
420 ashish 8337
      return false;
8338
    }
8339
 
695 rajveer 8340
    public boolean equals(getPaymentForTxnId_result that) {
420 ashish 8341
      if (that == null)
8342
        return false;
8343
 
8344
      boolean this_present_success = true && this.isSetSuccess();
8345
      boolean that_present_success = true && that.isSetSuccess();
8346
      if (this_present_success || that_present_success) {
8347
        if (!(this_present_success && that_present_success))
8348
          return false;
8349
        if (!this.success.equals(that.success))
8350
          return false;
8351
      }
8352
 
8353
      boolean this_present_pe = true && this.isSetPe();
8354
      boolean that_present_pe = true && that.isSetPe();
8355
      if (this_present_pe || that_present_pe) {
8356
        if (!(this_present_pe && that_present_pe))
8357
          return false;
8358
        if (!this.pe.equals(that.pe))
8359
          return false;
8360
      }
8361
 
8362
      return true;
8363
    }
8364
 
8365
    @Override
8366
    public int hashCode() {
8367
      return 0;
8368
    }
8369
 
695 rajveer 8370
    public int compareTo(getPaymentForTxnId_result other) {
8371
      if (!getClass().equals(other.getClass())) {
8372
        return getClass().getName().compareTo(other.getClass().getName());
8373
      }
8374
 
8375
      int lastComparison = 0;
8376
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
8377
 
3430 rajveer 8378
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 8379
      if (lastComparison != 0) {
8380
        return lastComparison;
8381
      }
3430 rajveer 8382
      if (isSetSuccess()) {
8383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8384
        if (lastComparison != 0) {
8385
          return lastComparison;
8386
        }
695 rajveer 8387
      }
3430 rajveer 8388
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 8389
      if (lastComparison != 0) {
8390
        return lastComparison;
8391
      }
3430 rajveer 8392
      if (isSetPe()) {
8393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8394
        if (lastComparison != 0) {
8395
          return lastComparison;
8396
        }
695 rajveer 8397
      }
8398
      return 0;
8399
    }
8400
 
3430 rajveer 8401
    public _Fields fieldForId(int fieldId) {
8402
      return _Fields.findByThriftId(fieldId);
8403
    }
8404
 
8405
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8406
      org.apache.thrift.protocol.TField field;
420 ashish 8407
      iprot.readStructBegin();
8408
      while (true)
8409
      {
8410
        field = iprot.readFieldBegin();
3430 rajveer 8411
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8412
          break;
8413
        }
3430 rajveer 8414
        switch (field.id) {
8415
          case 0: // SUCCESS
8416
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8417
              {
4600 varun.gupt 8418
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8419
                this.success = new ArrayList<Payment>(_list28.size);
8420
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
695 rajveer 8421
                {
4600 varun.gupt 8422
                  Payment _elem30; // required
8423
                  _elem30 = new Payment();
8424
                  _elem30.read(iprot);
8425
                  this.success.add(_elem30);
695 rajveer 8426
                }
3430 rajveer 8427
                iprot.readListEnd();
420 ashish 8428
              }
3430 rajveer 8429
            } else { 
8430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8431
            }
8432
            break;
8433
          case 1: // PE
8434
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8435
              this.pe = new PaymentException();
8436
              this.pe.read(iprot);
8437
            } else { 
8438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8439
            }
8440
            break;
8441
          default:
8442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8443
        }
3430 rajveer 8444
        iprot.readFieldEnd();
420 ashish 8445
      }
8446
      iprot.readStructEnd();
8447
      validate();
8448
    }
8449
 
3430 rajveer 8450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8451
      oprot.writeStructBegin(STRUCT_DESC);
8452
 
8453
      if (this.isSetSuccess()) {
8454
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 8455
        {
3430 rajveer 8456
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4600 varun.gupt 8457
          for (Payment _iter31 : this.success)
695 rajveer 8458
          {
4600 varun.gupt 8459
            _iter31.write(oprot);
695 rajveer 8460
          }
8461
          oprot.writeListEnd();
8462
        }
420 ashish 8463
        oprot.writeFieldEnd();
8464
      } else if (this.isSetPe()) {
8465
        oprot.writeFieldBegin(PE_FIELD_DESC);
8466
        this.pe.write(oprot);
8467
        oprot.writeFieldEnd();
8468
      }
8469
      oprot.writeFieldStop();
8470
      oprot.writeStructEnd();
8471
    }
8472
 
8473
    @Override
8474
    public String toString() {
695 rajveer 8475
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
420 ashish 8476
      boolean first = true;
8477
 
8478
      sb.append("success:");
8479
      if (this.success == null) {
8480
        sb.append("null");
8481
      } else {
8482
        sb.append(this.success);
8483
      }
8484
      first = false;
8485
      if (!first) sb.append(", ");
8486
      sb.append("pe:");
8487
      if (this.pe == null) {
8488
        sb.append("null");
8489
      } else {
8490
        sb.append(this.pe);
8491
      }
8492
      first = false;
8493
      sb.append(")");
8494
      return sb.toString();
8495
    }
8496
 
3430 rajveer 8497
    public void validate() throws org.apache.thrift.TException {
420 ashish 8498
      // check for required fields
8499
    }
8500
 
3430 rajveer 8501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8502
      try {
8503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8504
      } catch (org.apache.thrift.TException te) {
8505
        throw new java.io.IOException(te);
8506
      }
8507
    }
8508
 
8509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8510
      try {
8511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8512
      } catch (org.apache.thrift.TException te) {
8513
        throw new java.io.IOException(te);
8514
      }
8515
    }
8516
 
420 ashish 8517
  }
8518
 
4600 varun.gupt 8519
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
8521
 
8522
    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);
8523
 
8524
    private long txnId; // required
8525
 
8526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8528
      TXN_ID((short)1, "txnId");
8529
 
8530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8531
 
8532
      static {
8533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8534
          byName.put(field.getFieldName(), field);
8535
        }
8536
      }
8537
 
8538
      /**
8539
       * Find the _Fields constant that matches fieldId, or null if its not found.
8540
       */
8541
      public static _Fields findByThriftId(int fieldId) {
8542
        switch(fieldId) {
8543
          case 1: // TXN_ID
8544
            return TXN_ID;
8545
          default:
8546
            return null;
8547
        }
8548
      }
8549
 
8550
      /**
8551
       * Find the _Fields constant that matches fieldId, throwing an exception
8552
       * if it is not found.
8553
       */
8554
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8555
        _Fields fields = findByThriftId(fieldId);
8556
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8557
        return fields;
8558
      }
8559
 
8560
      /**
8561
       * Find the _Fields constant that matches name, or null if its not found.
8562
       */
8563
      public static _Fields findByName(String name) {
8564
        return byName.get(name);
8565
      }
8566
 
8567
      private final short _thriftId;
8568
      private final String _fieldName;
8569
 
8570
      _Fields(short thriftId, String fieldName) {
8571
        _thriftId = thriftId;
8572
        _fieldName = fieldName;
8573
      }
8574
 
8575
      public short getThriftFieldId() {
8576
        return _thriftId;
8577
      }
8578
 
8579
      public String getFieldName() {
8580
        return _fieldName;
8581
      }
8582
    }
8583
 
8584
    // isset id assignments
8585
    private static final int __TXNID_ISSET_ID = 0;
8586
    private BitSet __isset_bit_vector = new BitSet(1);
8587
 
8588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8589
    static {
8590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8591
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
8595
    }
8596
 
8597
    public getSuccessfulPaymentForTxnId_args() {
8598
    }
8599
 
8600
    public getSuccessfulPaymentForTxnId_args(
8601
      long txnId)
8602
    {
8603
      this();
8604
      this.txnId = txnId;
8605
      setTxnIdIsSet(true);
8606
    }
8607
 
8608
    /**
8609
     * Performs a deep copy on <i>other</i>.
8610
     */
8611
    public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
8612
      __isset_bit_vector.clear();
8613
      __isset_bit_vector.or(other.__isset_bit_vector);
8614
      this.txnId = other.txnId;
8615
    }
8616
 
8617
    public getSuccessfulPaymentForTxnId_args deepCopy() {
8618
      return new getSuccessfulPaymentForTxnId_args(this);
8619
    }
8620
 
8621
    @Override
8622
    public void clear() {
8623
      setTxnIdIsSet(false);
8624
      this.txnId = 0;
8625
    }
8626
 
8627
    public long getTxnId() {
8628
      return this.txnId;
8629
    }
8630
 
8631
    public void setTxnId(long txnId) {
8632
      this.txnId = txnId;
8633
      setTxnIdIsSet(true);
8634
    }
8635
 
8636
    public void unsetTxnId() {
8637
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
8638
    }
8639
 
8640
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
8641
    public boolean isSetTxnId() {
8642
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
8643
    }
8644
 
8645
    public void setTxnIdIsSet(boolean value) {
8646
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
8647
    }
8648
 
8649
    public void setFieldValue(_Fields field, Object value) {
8650
      switch (field) {
8651
      case TXN_ID:
8652
        if (value == null) {
8653
          unsetTxnId();
8654
        } else {
8655
          setTxnId((Long)value);
8656
        }
8657
        break;
8658
 
8659
      }
8660
    }
8661
 
8662
    public Object getFieldValue(_Fields field) {
8663
      switch (field) {
8664
      case TXN_ID:
8665
        return Long.valueOf(getTxnId());
8666
 
8667
      }
8668
      throw new IllegalStateException();
8669
    }
8670
 
8671
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8672
    public boolean isSet(_Fields field) {
8673
      if (field == null) {
8674
        throw new IllegalArgumentException();
8675
      }
8676
 
8677
      switch (field) {
8678
      case TXN_ID:
8679
        return isSetTxnId();
8680
      }
8681
      throw new IllegalStateException();
8682
    }
8683
 
8684
    @Override
8685
    public boolean equals(Object that) {
8686
      if (that == null)
8687
        return false;
8688
      if (that instanceof getSuccessfulPaymentForTxnId_args)
8689
        return this.equals((getSuccessfulPaymentForTxnId_args)that);
8690
      return false;
8691
    }
8692
 
8693
    public boolean equals(getSuccessfulPaymentForTxnId_args that) {
8694
      if (that == null)
8695
        return false;
8696
 
8697
      boolean this_present_txnId = true;
8698
      boolean that_present_txnId = true;
8699
      if (this_present_txnId || that_present_txnId) {
8700
        if (!(this_present_txnId && that_present_txnId))
8701
          return false;
8702
        if (this.txnId != that.txnId)
8703
          return false;
8704
      }
8705
 
8706
      return true;
8707
    }
8708
 
8709
    @Override
8710
    public int hashCode() {
8711
      return 0;
8712
    }
8713
 
8714
    public int compareTo(getSuccessfulPaymentForTxnId_args other) {
8715
      if (!getClass().equals(other.getClass())) {
8716
        return getClass().getName().compareTo(other.getClass().getName());
8717
      }
8718
 
8719
      int lastComparison = 0;
8720
      getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
8721
 
8722
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
8723
      if (lastComparison != 0) {
8724
        return lastComparison;
8725
      }
8726
      if (isSetTxnId()) {
8727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8728
        if (lastComparison != 0) {
8729
          return lastComparison;
8730
        }
8731
      }
8732
      return 0;
8733
    }
8734
 
8735
    public _Fields fieldForId(int fieldId) {
8736
      return _Fields.findByThriftId(fieldId);
8737
    }
8738
 
8739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8740
      org.apache.thrift.protocol.TField field;
8741
      iprot.readStructBegin();
8742
      while (true)
8743
      {
8744
        field = iprot.readFieldBegin();
8745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8746
          break;
8747
        }
8748
        switch (field.id) {
8749
          case 1: // TXN_ID
8750
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8751
              this.txnId = iprot.readI64();
8752
              setTxnIdIsSet(true);
8753
            } else { 
8754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8755
            }
8756
            break;
8757
          default:
8758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8759
        }
8760
        iprot.readFieldEnd();
8761
      }
8762
      iprot.readStructEnd();
8763
      validate();
8764
    }
8765
 
8766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8767
      validate();
8768
 
8769
      oprot.writeStructBegin(STRUCT_DESC);
8770
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8771
      oprot.writeI64(this.txnId);
8772
      oprot.writeFieldEnd();
8773
      oprot.writeFieldStop();
8774
      oprot.writeStructEnd();
8775
    }
8776
 
8777
    @Override
8778
    public String toString() {
8779
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
8780
      boolean first = true;
8781
 
8782
      sb.append("txnId:");
8783
      sb.append(this.txnId);
8784
      first = false;
8785
      sb.append(")");
8786
      return sb.toString();
8787
    }
8788
 
8789
    public void validate() throws org.apache.thrift.TException {
8790
      // check for required fields
8791
    }
8792
 
8793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8794
      try {
8795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8796
      } catch (org.apache.thrift.TException te) {
8797
        throw new java.io.IOException(te);
8798
      }
8799
    }
8800
 
8801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8802
      try {
8803
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8804
        __isset_bit_vector = new BitSet(1);
8805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8806
      } catch (org.apache.thrift.TException te) {
8807
        throw new java.io.IOException(te);
8808
      }
8809
    }
8810
 
8811
  }
8812
 
8813
  public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
8814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
8815
 
8816
    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);
8817
    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);
8818
 
8819
    private Payment success; // required
8820
    private PaymentException pe; // required
8821
 
8822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8824
      SUCCESS((short)0, "success"),
8825
      PE((short)1, "pe");
8826
 
8827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8828
 
8829
      static {
8830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8831
          byName.put(field.getFieldName(), field);
8832
        }
8833
      }
8834
 
8835
      /**
8836
       * Find the _Fields constant that matches fieldId, or null if its not found.
8837
       */
8838
      public static _Fields findByThriftId(int fieldId) {
8839
        switch(fieldId) {
8840
          case 0: // SUCCESS
8841
            return SUCCESS;
8842
          case 1: // PE
8843
            return PE;
8844
          default:
8845
            return null;
8846
        }
8847
      }
8848
 
8849
      /**
8850
       * Find the _Fields constant that matches fieldId, throwing an exception
8851
       * if it is not found.
8852
       */
8853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8854
        _Fields fields = findByThriftId(fieldId);
8855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8856
        return fields;
8857
      }
8858
 
8859
      /**
8860
       * Find the _Fields constant that matches name, or null if its not found.
8861
       */
8862
      public static _Fields findByName(String name) {
8863
        return byName.get(name);
8864
      }
8865
 
8866
      private final short _thriftId;
8867
      private final String _fieldName;
8868
 
8869
      _Fields(short thriftId, String fieldName) {
8870
        _thriftId = thriftId;
8871
        _fieldName = fieldName;
8872
      }
8873
 
8874
      public short getThriftFieldId() {
8875
        return _thriftId;
8876
      }
8877
 
8878
      public String getFieldName() {
8879
        return _fieldName;
8880
      }
8881
    }
8882
 
8883
    // isset id assignments
8884
 
8885
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8886
    static {
8887
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8888
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8889
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
8890
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
8894
    }
8895
 
8896
    public getSuccessfulPaymentForTxnId_result() {
8897
    }
8898
 
8899
    public getSuccessfulPaymentForTxnId_result(
8900
      Payment success,
8901
      PaymentException pe)
8902
    {
8903
      this();
8904
      this.success = success;
8905
      this.pe = pe;
8906
    }
8907
 
8908
    /**
8909
     * Performs a deep copy on <i>other</i>.
8910
     */
8911
    public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
8912
      if (other.isSetSuccess()) {
8913
        this.success = new Payment(other.success);
8914
      }
8915
      if (other.isSetPe()) {
8916
        this.pe = new PaymentException(other.pe);
8917
      }
8918
    }
8919
 
8920
    public getSuccessfulPaymentForTxnId_result deepCopy() {
8921
      return new getSuccessfulPaymentForTxnId_result(this);
8922
    }
8923
 
8924
    @Override
8925
    public void clear() {
8926
      this.success = null;
8927
      this.pe = null;
8928
    }
8929
 
8930
    public Payment getSuccess() {
8931
      return this.success;
8932
    }
8933
 
8934
    public void setSuccess(Payment success) {
8935
      this.success = success;
8936
    }
8937
 
8938
    public void unsetSuccess() {
8939
      this.success = null;
8940
    }
8941
 
8942
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8943
    public boolean isSetSuccess() {
8944
      return this.success != null;
8945
    }
8946
 
8947
    public void setSuccessIsSet(boolean value) {
8948
      if (!value) {
8949
        this.success = null;
8950
      }
8951
    }
8952
 
8953
    public PaymentException getPe() {
8954
      return this.pe;
8955
    }
8956
 
8957
    public void setPe(PaymentException pe) {
8958
      this.pe = pe;
8959
    }
8960
 
8961
    public void unsetPe() {
8962
      this.pe = null;
8963
    }
8964
 
8965
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
8966
    public boolean isSetPe() {
8967
      return this.pe != null;
8968
    }
8969
 
8970
    public void setPeIsSet(boolean value) {
8971
      if (!value) {
8972
        this.pe = null;
8973
      }
8974
    }
8975
 
8976
    public void setFieldValue(_Fields field, Object value) {
8977
      switch (field) {
8978
      case SUCCESS:
8979
        if (value == null) {
8980
          unsetSuccess();
8981
        } else {
8982
          setSuccess((Payment)value);
8983
        }
8984
        break;
8985
 
8986
      case PE:
8987
        if (value == null) {
8988
          unsetPe();
8989
        } else {
8990
          setPe((PaymentException)value);
8991
        }
8992
        break;
8993
 
8994
      }
8995
    }
8996
 
8997
    public Object getFieldValue(_Fields field) {
8998
      switch (field) {
8999
      case SUCCESS:
9000
        return getSuccess();
9001
 
9002
      case PE:
9003
        return getPe();
9004
 
9005
      }
9006
      throw new IllegalStateException();
9007
    }
9008
 
9009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9010
    public boolean isSet(_Fields field) {
9011
      if (field == null) {
9012
        throw new IllegalArgumentException();
9013
      }
9014
 
9015
      switch (field) {
9016
      case SUCCESS:
9017
        return isSetSuccess();
9018
      case PE:
9019
        return isSetPe();
9020
      }
9021
      throw new IllegalStateException();
9022
    }
9023
 
9024
    @Override
9025
    public boolean equals(Object that) {
9026
      if (that == null)
9027
        return false;
9028
      if (that instanceof getSuccessfulPaymentForTxnId_result)
9029
        return this.equals((getSuccessfulPaymentForTxnId_result)that);
9030
      return false;
9031
    }
9032
 
9033
    public boolean equals(getSuccessfulPaymentForTxnId_result that) {
9034
      if (that == null)
9035
        return false;
9036
 
9037
      boolean this_present_success = true && this.isSetSuccess();
9038
      boolean that_present_success = true && that.isSetSuccess();
9039
      if (this_present_success || that_present_success) {
9040
        if (!(this_present_success && that_present_success))
9041
          return false;
9042
        if (!this.success.equals(that.success))
9043
          return false;
9044
      }
9045
 
9046
      boolean this_present_pe = true && this.isSetPe();
9047
      boolean that_present_pe = true && that.isSetPe();
9048
      if (this_present_pe || that_present_pe) {
9049
        if (!(this_present_pe && that_present_pe))
9050
          return false;
9051
        if (!this.pe.equals(that.pe))
9052
          return false;
9053
      }
9054
 
9055
      return true;
9056
    }
9057
 
9058
    @Override
9059
    public int hashCode() {
9060
      return 0;
9061
    }
9062
 
9063
    public int compareTo(getSuccessfulPaymentForTxnId_result other) {
9064
      if (!getClass().equals(other.getClass())) {
9065
        return getClass().getName().compareTo(other.getClass().getName());
9066
      }
9067
 
9068
      int lastComparison = 0;
9069
      getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
9070
 
9071
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9072
      if (lastComparison != 0) {
9073
        return lastComparison;
9074
      }
9075
      if (isSetSuccess()) {
9076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9077
        if (lastComparison != 0) {
9078
          return lastComparison;
9079
        }
9080
      }
9081
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
9082
      if (lastComparison != 0) {
9083
        return lastComparison;
9084
      }
9085
      if (isSetPe()) {
9086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9087
        if (lastComparison != 0) {
9088
          return lastComparison;
9089
        }
9090
      }
9091
      return 0;
9092
    }
9093
 
9094
    public _Fields fieldForId(int fieldId) {
9095
      return _Fields.findByThriftId(fieldId);
9096
    }
9097
 
9098
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9099
      org.apache.thrift.protocol.TField field;
9100
      iprot.readStructBegin();
9101
      while (true)
9102
      {
9103
        field = iprot.readFieldBegin();
9104
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9105
          break;
9106
        }
9107
        switch (field.id) {
9108
          case 0: // SUCCESS
9109
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9110
              this.success = new Payment();
9111
              this.success.read(iprot);
9112
            } else { 
9113
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9114
            }
9115
            break;
9116
          case 1: // PE
9117
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9118
              this.pe = new PaymentException();
9119
              this.pe.read(iprot);
9120
            } else { 
9121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9122
            }
9123
            break;
9124
          default:
9125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9126
        }
9127
        iprot.readFieldEnd();
9128
      }
9129
      iprot.readStructEnd();
9130
      validate();
9131
    }
9132
 
9133
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9134
      oprot.writeStructBegin(STRUCT_DESC);
9135
 
9136
      if (this.isSetSuccess()) {
9137
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9138
        this.success.write(oprot);
9139
        oprot.writeFieldEnd();
9140
      } else if (this.isSetPe()) {
9141
        oprot.writeFieldBegin(PE_FIELD_DESC);
9142
        this.pe.write(oprot);
9143
        oprot.writeFieldEnd();
9144
      }
9145
      oprot.writeFieldStop();
9146
      oprot.writeStructEnd();
9147
    }
9148
 
9149
    @Override
9150
    public String toString() {
9151
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
9152
      boolean first = true;
9153
 
9154
      sb.append("success:");
9155
      if (this.success == null) {
9156
        sb.append("null");
9157
      } else {
9158
        sb.append(this.success);
9159
      }
9160
      first = false;
9161
      if (!first) sb.append(", ");
9162
      sb.append("pe:");
9163
      if (this.pe == null) {
9164
        sb.append("null");
9165
      } else {
9166
        sb.append(this.pe);
9167
      }
9168
      first = false;
9169
      sb.append(")");
9170
      return sb.toString();
9171
    }
9172
 
9173
    public void validate() throws org.apache.thrift.TException {
9174
      // check for required fields
9175
    }
9176
 
9177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9178
      try {
9179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9180
      } catch (org.apache.thrift.TException te) {
9181
        throw new java.io.IOException(te);
9182
      }
9183
    }
9184
 
9185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9186
      try {
9187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9188
      } catch (org.apache.thrift.TException te) {
9189
        throw new java.io.IOException(te);
9190
      }
9191
    }
9192
 
9193
  }
9194
 
3430 rajveer 9195
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
9196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
420 ashish 9197
 
3430 rajveer 9198
    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);
9199
    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);
9200
    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);
9201
    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);
9202
    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);
9203
    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);
9204
    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);
9205
    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);
9206
    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);
9207
    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);
9208
    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);
9209
    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);
420 ashish 9210
 
3430 rajveer 9211
    private long id; // required
9212
    private String gatewayPaymentId; // required
9213
    private String sessionId; // required
9214
    private String gatewayTxnStatus; // required
9215
    private String description; // required
9216
    private String gatewayTxnId; // required
9217
    private String authCode; // required
9218
    private String referenceCode; // required
9219
    private String errorCode; // required
9220
    private PaymentStatus status; // required
9221
    private String gatewayTxnDate; // required
9222
    private List<Attribute> attributes; // required
420 ashish 9223
 
9224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 9226
      ID((short)1, "id"),
695 rajveer 9227
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
9228
      SESSION_ID((short)3, "sessionId"),
9229
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
9230
      DESCRIPTION((short)5, "description"),
9231
      GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
9232
      AUTH_CODE((short)7, "authCode"),
9233
      REFERENCE_CODE((short)8, "referenceCode"),
9234
      ERROR_CODE((short)9, "errorCode"),
9235
      /**
9236
       * 
9237
       * @see PaymentStatus
9238
       */
9239
      STATUS((short)10, "status"),
1119 rajveer 9240
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
9241
      ATTRIBUTES((short)12, "attributes");
420 ashish 9242
 
9243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9244
 
9245
      static {
9246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9247
          byName.put(field.getFieldName(), field);
9248
        }
9249
      }
9250
 
9251
      /**
9252
       * Find the _Fields constant that matches fieldId, or null if its not found.
9253
       */
9254
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9255
        switch(fieldId) {
9256
          case 1: // ID
9257
            return ID;
9258
          case 2: // GATEWAY_PAYMENT_ID
9259
            return GATEWAY_PAYMENT_ID;
9260
          case 3: // SESSION_ID
9261
            return SESSION_ID;
9262
          case 4: // GATEWAY_TXN_STATUS
9263
            return GATEWAY_TXN_STATUS;
9264
          case 5: // DESCRIPTION
9265
            return DESCRIPTION;
9266
          case 6: // GATEWAY_TXN_ID
9267
            return GATEWAY_TXN_ID;
9268
          case 7: // AUTH_CODE
9269
            return AUTH_CODE;
9270
          case 8: // REFERENCE_CODE
9271
            return REFERENCE_CODE;
9272
          case 9: // ERROR_CODE
9273
            return ERROR_CODE;
9274
          case 10: // STATUS
9275
            return STATUS;
9276
          case 11: // GATEWAY_TXN_DATE
9277
            return GATEWAY_TXN_DATE;
9278
          case 12: // ATTRIBUTES
9279
            return ATTRIBUTES;
9280
          default:
9281
            return null;
9282
        }
420 ashish 9283
      }
9284
 
9285
      /**
9286
       * Find the _Fields constant that matches fieldId, throwing an exception
9287
       * if it is not found.
9288
       */
9289
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9290
        _Fields fields = findByThriftId(fieldId);
9291
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9292
        return fields;
9293
      }
9294
 
9295
      /**
9296
       * Find the _Fields constant that matches name, or null if its not found.
9297
       */
9298
      public static _Fields findByName(String name) {
9299
        return byName.get(name);
9300
      }
9301
 
9302
      private final short _thriftId;
9303
      private final String _fieldName;
9304
 
9305
      _Fields(short thriftId, String fieldName) {
9306
        _thriftId = thriftId;
9307
        _fieldName = fieldName;
9308
      }
9309
 
9310
      public short getThriftFieldId() {
9311
        return _thriftId;
9312
      }
9313
 
9314
      public String getFieldName() {
9315
        return _fieldName;
9316
      }
9317
    }
9318
 
9319
    // isset id assignments
9320
    private static final int __ID_ISSET_ID = 0;
9321
    private BitSet __isset_bit_vector = new BitSet(1);
9322
 
3430 rajveer 9323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 9324
    static {
3430 rajveer 9325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9326
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9328
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9329
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9330
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9331
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9332
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9334
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9335
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9336
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9338
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9340
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9341
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9342
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9344
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9345
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
9346
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9348
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9349
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9350
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
9351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
420 ashish 9353
    }
9354
 
695 rajveer 9355
    public updatePaymentDetails_args() {
420 ashish 9356
    }
9357
 
695 rajveer 9358
    public updatePaymentDetails_args(
420 ashish 9359
      long id,
695 rajveer 9360
      String gatewayPaymentId,
9361
      String sessionId,
9362
      String gatewayTxnStatus,
9363
      String description,
9364
      String gatewayTxnId,
9365
      String authCode,
9366
      String referenceCode,
9367
      String errorCode,
9368
      PaymentStatus status,
1119 rajveer 9369
      String gatewayTxnDate,
695 rajveer 9370
      List<Attribute> attributes)
420 ashish 9371
    {
9372
      this();
9373
      this.id = id;
9374
      setIdIsSet(true);
695 rajveer 9375
      this.gatewayPaymentId = gatewayPaymentId;
9376
      this.sessionId = sessionId;
9377
      this.gatewayTxnStatus = gatewayTxnStatus;
9378
      this.description = description;
9379
      this.gatewayTxnId = gatewayTxnId;
9380
      this.authCode = authCode;
9381
      this.referenceCode = referenceCode;
9382
      this.errorCode = errorCode;
9383
      this.status = status;
1119 rajveer 9384
      this.gatewayTxnDate = gatewayTxnDate;
695 rajveer 9385
      this.attributes = attributes;
420 ashish 9386
    }
9387
 
9388
    /**
9389
     * Performs a deep copy on <i>other</i>.
9390
     */
695 rajveer 9391
    public updatePaymentDetails_args(updatePaymentDetails_args other) {
420 ashish 9392
      __isset_bit_vector.clear();
9393
      __isset_bit_vector.or(other.__isset_bit_vector);
9394
      this.id = other.id;
695 rajveer 9395
      if (other.isSetGatewayPaymentId()) {
9396
        this.gatewayPaymentId = other.gatewayPaymentId;
420 ashish 9397
      }
695 rajveer 9398
      if (other.isSetSessionId()) {
9399
        this.sessionId = other.sessionId;
420 ashish 9400
      }
695 rajveer 9401
      if (other.isSetGatewayTxnStatus()) {
9402
        this.gatewayTxnStatus = other.gatewayTxnStatus;
420 ashish 9403
      }
695 rajveer 9404
      if (other.isSetDescription()) {
9405
        this.description = other.description;
420 ashish 9406
      }
695 rajveer 9407
      if (other.isSetGatewayTxnId()) {
9408
        this.gatewayTxnId = other.gatewayTxnId;
420 ashish 9409
      }
695 rajveer 9410
      if (other.isSetAuthCode()) {
9411
        this.authCode = other.authCode;
420 ashish 9412
      }
695 rajveer 9413
      if (other.isSetReferenceCode()) {
9414
        this.referenceCode = other.referenceCode;
420 ashish 9415
      }
695 rajveer 9416
      if (other.isSetErrorCode()) {
9417
        this.errorCode = other.errorCode;
9418
      }
9419
      if (other.isSetStatus()) {
9420
        this.status = other.status;
9421
      }
1119 rajveer 9422
      if (other.isSetGatewayTxnDate()) {
9423
        this.gatewayTxnDate = other.gatewayTxnDate;
9424
      }
695 rajveer 9425
      if (other.isSetAttributes()) {
9426
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
9427
        for (Attribute other_element : other.attributes) {
9428
          __this__attributes.add(new Attribute(other_element));
9429
        }
9430
        this.attributes = __this__attributes;
9431
      }
420 ashish 9432
    }
9433
 
695 rajveer 9434
    public updatePaymentDetails_args deepCopy() {
9435
      return new updatePaymentDetails_args(this);
420 ashish 9436
    }
9437
 
3430 rajveer 9438
    @Override
9439
    public void clear() {
9440
      setIdIsSet(false);
9441
      this.id = 0;
9442
      this.gatewayPaymentId = null;
9443
      this.sessionId = null;
9444
      this.gatewayTxnStatus = null;
9445
      this.description = null;
9446
      this.gatewayTxnId = null;
9447
      this.authCode = null;
9448
      this.referenceCode = null;
9449
      this.errorCode = null;
9450
      this.status = null;
9451
      this.gatewayTxnDate = null;
9452
      this.attributes = null;
420 ashish 9453
    }
9454
 
9455
    public long getId() {
9456
      return this.id;
9457
    }
9458
 
3430 rajveer 9459
    public void setId(long id) {
420 ashish 9460
      this.id = id;
9461
      setIdIsSet(true);
9462
    }
9463
 
9464
    public void unsetId() {
9465
      __isset_bit_vector.clear(__ID_ISSET_ID);
9466
    }
9467
 
3430 rajveer 9468
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 9469
    public boolean isSetId() {
9470
      return __isset_bit_vector.get(__ID_ISSET_ID);
9471
    }
9472
 
9473
    public void setIdIsSet(boolean value) {
9474
      __isset_bit_vector.set(__ID_ISSET_ID, value);
9475
    }
9476
 
695 rajveer 9477
    public String getGatewayPaymentId() {
9478
      return this.gatewayPaymentId;
420 ashish 9479
    }
9480
 
3430 rajveer 9481
    public void setGatewayPaymentId(String gatewayPaymentId) {
695 rajveer 9482
      this.gatewayPaymentId = gatewayPaymentId;
420 ashish 9483
    }
9484
 
695 rajveer 9485
    public void unsetGatewayPaymentId() {
9486
      this.gatewayPaymentId = null;
420 ashish 9487
    }
9488
 
3430 rajveer 9489
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
695 rajveer 9490
    public boolean isSetGatewayPaymentId() {
9491
      return this.gatewayPaymentId != null;
420 ashish 9492
    }
9493
 
695 rajveer 9494
    public void setGatewayPaymentIdIsSet(boolean value) {
420 ashish 9495
      if (!value) {
695 rajveer 9496
        this.gatewayPaymentId = null;
420 ashish 9497
      }
9498
    }
9499
 
695 rajveer 9500
    public String getSessionId() {
9501
      return this.sessionId;
420 ashish 9502
    }
9503
 
3430 rajveer 9504
    public void setSessionId(String sessionId) {
695 rajveer 9505
      this.sessionId = sessionId;
420 ashish 9506
    }
9507
 
695 rajveer 9508
    public void unsetSessionId() {
9509
      this.sessionId = null;
420 ashish 9510
    }
9511
 
3430 rajveer 9512
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
695 rajveer 9513
    public boolean isSetSessionId() {
9514
      return this.sessionId != null;
420 ashish 9515
    }
9516
 
695 rajveer 9517
    public void setSessionIdIsSet(boolean value) {
420 ashish 9518
      if (!value) {
695 rajveer 9519
        this.sessionId = null;
420 ashish 9520
      }
9521
    }
9522
 
695 rajveer 9523
    public String getGatewayTxnStatus() {
9524
      return this.gatewayTxnStatus;
420 ashish 9525
    }
9526
 
3430 rajveer 9527
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
695 rajveer 9528
      this.gatewayTxnStatus = gatewayTxnStatus;
420 ashish 9529
    }
9530
 
695 rajveer 9531
    public void unsetGatewayTxnStatus() {
9532
      this.gatewayTxnStatus = null;
420 ashish 9533
    }
9534
 
3430 rajveer 9535
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
695 rajveer 9536
    public boolean isSetGatewayTxnStatus() {
9537
      return this.gatewayTxnStatus != null;
420 ashish 9538
    }
9539
 
695 rajveer 9540
    public void setGatewayTxnStatusIsSet(boolean value) {
420 ashish 9541
      if (!value) {
695 rajveer 9542
        this.gatewayTxnStatus = null;
420 ashish 9543
      }
9544
    }
9545
 
695 rajveer 9546
    public String getDescription() {
9547
      return this.description;
420 ashish 9548
    }
9549
 
3430 rajveer 9550
    public void setDescription(String description) {
695 rajveer 9551
      this.description = description;
420 ashish 9552
    }
9553
 
695 rajveer 9554
    public void unsetDescription() {
9555
      this.description = null;
420 ashish 9556
    }
9557
 
3430 rajveer 9558
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
695 rajveer 9559
    public boolean isSetDescription() {
9560
      return this.description != null;
420 ashish 9561
    }
9562
 
695 rajveer 9563
    public void setDescriptionIsSet(boolean value) {
420 ashish 9564
      if (!value) {
695 rajveer 9565
        this.description = null;
420 ashish 9566
      }
9567
    }
9568
 
695 rajveer 9569
    public String getGatewayTxnId() {
9570
      return this.gatewayTxnId;
420 ashish 9571
    }
9572
 
3430 rajveer 9573
    public void setGatewayTxnId(String gatewayTxnId) {
695 rajveer 9574
      this.gatewayTxnId = gatewayTxnId;
420 ashish 9575
    }
9576
 
695 rajveer 9577
    public void unsetGatewayTxnId() {
9578
      this.gatewayTxnId = null;
420 ashish 9579
    }
9580
 
3430 rajveer 9581
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
695 rajveer 9582
    public boolean isSetGatewayTxnId() {
9583
      return this.gatewayTxnId != null;
420 ashish 9584
    }
9585
 
695 rajveer 9586
    public void setGatewayTxnIdIsSet(boolean value) {
420 ashish 9587
      if (!value) {
695 rajveer 9588
        this.gatewayTxnId = null;
420 ashish 9589
      }
9590
    }
9591
 
695 rajveer 9592
    public String getAuthCode() {
9593
      return this.authCode;
420 ashish 9594
    }
9595
 
3430 rajveer 9596
    public void setAuthCode(String authCode) {
695 rajveer 9597
      this.authCode = authCode;
420 ashish 9598
    }
9599
 
695 rajveer 9600
    public void unsetAuthCode() {
9601
      this.authCode = null;
420 ashish 9602
    }
9603
 
3430 rajveer 9604
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
695 rajveer 9605
    public boolean isSetAuthCode() {
9606
      return this.authCode != null;
420 ashish 9607
    }
9608
 
695 rajveer 9609
    public void setAuthCodeIsSet(boolean value) {
420 ashish 9610
      if (!value) {
695 rajveer 9611
        this.authCode = null;
420 ashish 9612
      }
9613
    }
9614
 
695 rajveer 9615
    public String getReferenceCode() {
9616
      return this.referenceCode;
420 ashish 9617
    }
9618
 
3430 rajveer 9619
    public void setReferenceCode(String referenceCode) {
695 rajveer 9620
      this.referenceCode = referenceCode;
420 ashish 9621
    }
9622
 
695 rajveer 9623
    public void unsetReferenceCode() {
9624
      this.referenceCode = null;
420 ashish 9625
    }
9626
 
3430 rajveer 9627
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
695 rajveer 9628
    public boolean isSetReferenceCode() {
9629
      return this.referenceCode != null;
420 ashish 9630
    }
9631
 
695 rajveer 9632
    public void setReferenceCodeIsSet(boolean value) {
420 ashish 9633
      if (!value) {
695 rajveer 9634
        this.referenceCode = null;
420 ashish 9635
      }
9636
    }
9637
 
695 rajveer 9638
    public String getErrorCode() {
9639
      return this.errorCode;
9640
    }
9641
 
3430 rajveer 9642
    public void setErrorCode(String errorCode) {
695 rajveer 9643
      this.errorCode = errorCode;
9644
    }
9645
 
9646
    public void unsetErrorCode() {
9647
      this.errorCode = null;
9648
    }
9649
 
3430 rajveer 9650
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
695 rajveer 9651
    public boolean isSetErrorCode() {
9652
      return this.errorCode != null;
9653
    }
9654
 
9655
    public void setErrorCodeIsSet(boolean value) {
9656
      if (!value) {
9657
        this.errorCode = null;
9658
      }
9659
    }
9660
 
9661
    /**
9662
     * 
9663
     * @see PaymentStatus
9664
     */
9665
    public PaymentStatus getStatus() {
9666
      return this.status;
9667
    }
9668
 
9669
    /**
9670
     * 
9671
     * @see PaymentStatus
9672
     */
3430 rajveer 9673
    public void setStatus(PaymentStatus status) {
695 rajveer 9674
      this.status = status;
9675
    }
9676
 
9677
    public void unsetStatus() {
9678
      this.status = null;
9679
    }
9680
 
3430 rajveer 9681
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
695 rajveer 9682
    public boolean isSetStatus() {
9683
      return this.status != null;
9684
    }
9685
 
9686
    public void setStatusIsSet(boolean value) {
9687
      if (!value) {
9688
        this.status = null;
9689
      }
9690
    }
9691
 
1119 rajveer 9692
    public String getGatewayTxnDate() {
9693
      return this.gatewayTxnDate;
9694
    }
9695
 
3430 rajveer 9696
    public void setGatewayTxnDate(String gatewayTxnDate) {
1119 rajveer 9697
      this.gatewayTxnDate = gatewayTxnDate;
9698
    }
9699
 
9700
    public void unsetGatewayTxnDate() {
9701
      this.gatewayTxnDate = null;
9702
    }
9703
 
3430 rajveer 9704
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
1119 rajveer 9705
    public boolean isSetGatewayTxnDate() {
9706
      return this.gatewayTxnDate != null;
9707
    }
9708
 
9709
    public void setGatewayTxnDateIsSet(boolean value) {
9710
      if (!value) {
9711
        this.gatewayTxnDate = null;
9712
      }
9713
    }
9714
 
695 rajveer 9715
    public int getAttributesSize() {
9716
      return (this.attributes == null) ? 0 : this.attributes.size();
9717
    }
9718
 
9719
    public java.util.Iterator<Attribute> getAttributesIterator() {
9720
      return (this.attributes == null) ? null : this.attributes.iterator();
9721
    }
9722
 
9723
    public void addToAttributes(Attribute elem) {
9724
      if (this.attributes == null) {
9725
        this.attributes = new ArrayList<Attribute>();
9726
      }
9727
      this.attributes.add(elem);
9728
    }
9729
 
9730
    public List<Attribute> getAttributes() {
9731
      return this.attributes;
9732
    }
9733
 
3430 rajveer 9734
    public void setAttributes(List<Attribute> attributes) {
695 rajveer 9735
      this.attributes = attributes;
9736
    }
9737
 
9738
    public void unsetAttributes() {
9739
      this.attributes = null;
9740
    }
9741
 
3430 rajveer 9742
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
695 rajveer 9743
    public boolean isSetAttributes() {
9744
      return this.attributes != null;
9745
    }
9746
 
9747
    public void setAttributesIsSet(boolean value) {
9748
      if (!value) {
9749
        this.attributes = null;
9750
      }
9751
    }
9752
 
420 ashish 9753
    public void setFieldValue(_Fields field, Object value) {
9754
      switch (field) {
9755
      case ID:
9756
        if (value == null) {
9757
          unsetId();
9758
        } else {
9759
          setId((Long)value);
9760
        }
9761
        break;
9762
 
695 rajveer 9763
      case GATEWAY_PAYMENT_ID:
420 ashish 9764
        if (value == null) {
695 rajveer 9765
          unsetGatewayPaymentId();
420 ashish 9766
        } else {
695 rajveer 9767
          setGatewayPaymentId((String)value);
420 ashish 9768
        }
9769
        break;
9770
 
695 rajveer 9771
      case SESSION_ID:
420 ashish 9772
        if (value == null) {
695 rajveer 9773
          unsetSessionId();
420 ashish 9774
        } else {
695 rajveer 9775
          setSessionId((String)value);
420 ashish 9776
        }
9777
        break;
9778
 
695 rajveer 9779
      case GATEWAY_TXN_STATUS:
420 ashish 9780
        if (value == null) {
695 rajveer 9781
          unsetGatewayTxnStatus();
420 ashish 9782
        } else {
695 rajveer 9783
          setGatewayTxnStatus((String)value);
420 ashish 9784
        }
9785
        break;
9786
 
695 rajveer 9787
      case DESCRIPTION:
420 ashish 9788
        if (value == null) {
695 rajveer 9789
          unsetDescription();
420 ashish 9790
        } else {
695 rajveer 9791
          setDescription((String)value);
420 ashish 9792
        }
9793
        break;
9794
 
695 rajveer 9795
      case GATEWAY_TXN_ID:
420 ashish 9796
        if (value == null) {
695 rajveer 9797
          unsetGatewayTxnId();
420 ashish 9798
        } else {
695 rajveer 9799
          setGatewayTxnId((String)value);
420 ashish 9800
        }
9801
        break;
9802
 
9803
      case AUTH_CODE:
9804
        if (value == null) {
695 rajveer 9805
          unsetAuthCode();
420 ashish 9806
        } else {
695 rajveer 9807
          setAuthCode((String)value);
420 ashish 9808
        }
9809
        break;
9810
 
695 rajveer 9811
      case REFERENCE_CODE:
420 ashish 9812
        if (value == null) {
695 rajveer 9813
          unsetReferenceCode();
420 ashish 9814
        } else {
695 rajveer 9815
          setReferenceCode((String)value);
420 ashish 9816
        }
9817
        break;
9818
 
695 rajveer 9819
      case ERROR_CODE:
9820
        if (value == null) {
9821
          unsetErrorCode();
9822
        } else {
9823
          setErrorCode((String)value);
9824
        }
9825
        break;
9826
 
9827
      case STATUS:
9828
        if (value == null) {
9829
          unsetStatus();
9830
        } else {
9831
          setStatus((PaymentStatus)value);
9832
        }
9833
        break;
9834
 
1119 rajveer 9835
      case GATEWAY_TXN_DATE:
9836
        if (value == null) {
9837
          unsetGatewayTxnDate();
9838
        } else {
9839
          setGatewayTxnDate((String)value);
9840
        }
9841
        break;
9842
 
695 rajveer 9843
      case ATTRIBUTES:
9844
        if (value == null) {
9845
          unsetAttributes();
9846
        } else {
9847
          setAttributes((List<Attribute>)value);
9848
        }
9849
        break;
9850
 
420 ashish 9851
      }
9852
    }
9853
 
9854
    public Object getFieldValue(_Fields field) {
9855
      switch (field) {
9856
      case ID:
3430 rajveer 9857
        return Long.valueOf(getId());
420 ashish 9858
 
695 rajveer 9859
      case GATEWAY_PAYMENT_ID:
9860
        return getGatewayPaymentId();
420 ashish 9861
 
695 rajveer 9862
      case SESSION_ID:
9863
        return getSessionId();
420 ashish 9864
 
695 rajveer 9865
      case GATEWAY_TXN_STATUS:
9866
        return getGatewayTxnStatus();
420 ashish 9867
 
695 rajveer 9868
      case DESCRIPTION:
9869
        return getDescription();
420 ashish 9870
 
695 rajveer 9871
      case GATEWAY_TXN_ID:
9872
        return getGatewayTxnId();
420 ashish 9873
 
9874
      case AUTH_CODE:
695 rajveer 9875
        return getAuthCode();
420 ashish 9876
 
695 rajveer 9877
      case REFERENCE_CODE:
9878
        return getReferenceCode();
420 ashish 9879
 
695 rajveer 9880
      case ERROR_CODE:
9881
        return getErrorCode();
9882
 
9883
      case STATUS:
9884
        return getStatus();
9885
 
1119 rajveer 9886
      case GATEWAY_TXN_DATE:
9887
        return getGatewayTxnDate();
9888
 
695 rajveer 9889
      case ATTRIBUTES:
9890
        return getAttributes();
9891
 
420 ashish 9892
      }
9893
      throw new IllegalStateException();
9894
    }
9895
 
3430 rajveer 9896
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9897
    public boolean isSet(_Fields field) {
9898
      if (field == null) {
9899
        throw new IllegalArgumentException();
9900
      }
420 ashish 9901
 
9902
      switch (field) {
9903
      case ID:
9904
        return isSetId();
695 rajveer 9905
      case GATEWAY_PAYMENT_ID:
9906
        return isSetGatewayPaymentId();
420 ashish 9907
      case SESSION_ID:
695 rajveer 9908
        return isSetSessionId();
9909
      case GATEWAY_TXN_STATUS:
9910
        return isSetGatewayTxnStatus();
9911
      case DESCRIPTION:
9912
        return isSetDescription();
9913
      case GATEWAY_TXN_ID:
9914
        return isSetGatewayTxnId();
420 ashish 9915
      case AUTH_CODE:
695 rajveer 9916
        return isSetAuthCode();
9917
      case REFERENCE_CODE:
9918
        return isSetReferenceCode();
9919
      case ERROR_CODE:
9920
        return isSetErrorCode();
9921
      case STATUS:
9922
        return isSetStatus();
1119 rajveer 9923
      case GATEWAY_TXN_DATE:
9924
        return isSetGatewayTxnDate();
695 rajveer 9925
      case ATTRIBUTES:
9926
        return isSetAttributes();
420 ashish 9927
      }
9928
      throw new IllegalStateException();
9929
    }
9930
 
9931
    @Override
9932
    public boolean equals(Object that) {
9933
      if (that == null)
9934
        return false;
695 rajveer 9935
      if (that instanceof updatePaymentDetails_args)
9936
        return this.equals((updatePaymentDetails_args)that);
420 ashish 9937
      return false;
9938
    }
9939
 
695 rajveer 9940
    public boolean equals(updatePaymentDetails_args that) {
420 ashish 9941
      if (that == null)
9942
        return false;
9943
 
9944
      boolean this_present_id = true;
9945
      boolean that_present_id = true;
9946
      if (this_present_id || that_present_id) {
9947
        if (!(this_present_id && that_present_id))
9948
          return false;
9949
        if (this.id != that.id)
9950
          return false;
9951
      }
9952
 
695 rajveer 9953
      boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
9954
      boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
9955
      if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
9956
        if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
420 ashish 9957
          return false;
695 rajveer 9958
        if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
420 ashish 9959
          return false;
9960
      }
9961
 
695 rajveer 9962
      boolean this_present_sessionId = true && this.isSetSessionId();
9963
      boolean that_present_sessionId = true && that.isSetSessionId();
9964
      if (this_present_sessionId || that_present_sessionId) {
9965
        if (!(this_present_sessionId && that_present_sessionId))
420 ashish 9966
          return false;
695 rajveer 9967
        if (!this.sessionId.equals(that.sessionId))
420 ashish 9968
          return false;
9969
      }
9970
 
695 rajveer 9971
      boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
9972
      boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
9973
      if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
9974
        if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
420 ashish 9975
          return false;
695 rajveer 9976
        if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
420 ashish 9977
          return false;
9978
      }
9979
 
695 rajveer 9980
      boolean this_present_description = true && this.isSetDescription();
9981
      boolean that_present_description = true && that.isSetDescription();
9982
      if (this_present_description || that_present_description) {
9983
        if (!(this_present_description && that_present_description))
420 ashish 9984
          return false;
695 rajveer 9985
        if (!this.description.equals(that.description))
420 ashish 9986
          return false;
9987
      }
9988
 
695 rajveer 9989
      boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
9990
      boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
9991
      if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
9992
        if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
420 ashish 9993
          return false;
695 rajveer 9994
        if (!this.gatewayTxnId.equals(that.gatewayTxnId))
420 ashish 9995
          return false;
9996
      }
9997
 
695 rajveer 9998
      boolean this_present_authCode = true && this.isSetAuthCode();
9999
      boolean that_present_authCode = true && that.isSetAuthCode();
10000
      if (this_present_authCode || that_present_authCode) {
10001
        if (!(this_present_authCode && that_present_authCode))
420 ashish 10002
          return false;
695 rajveer 10003
        if (!this.authCode.equals(that.authCode))
420 ashish 10004
          return false;
10005
      }
10006
 
695 rajveer 10007
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
10008
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
10009
      if (this_present_referenceCode || that_present_referenceCode) {
10010
        if (!(this_present_referenceCode && that_present_referenceCode))
420 ashish 10011
          return false;
695 rajveer 10012
        if (!this.referenceCode.equals(that.referenceCode))
420 ashish 10013
          return false;
10014
      }
10015
 
695 rajveer 10016
      boolean this_present_errorCode = true && this.isSetErrorCode();
10017
      boolean that_present_errorCode = true && that.isSetErrorCode();
10018
      if (this_present_errorCode || that_present_errorCode) {
10019
        if (!(this_present_errorCode && that_present_errorCode))
10020
          return false;
10021
        if (!this.errorCode.equals(that.errorCode))
10022
          return false;
10023
      }
10024
 
10025
      boolean this_present_status = true && this.isSetStatus();
10026
      boolean that_present_status = true && that.isSetStatus();
10027
      if (this_present_status || that_present_status) {
10028
        if (!(this_present_status && that_present_status))
10029
          return false;
10030
        if (!this.status.equals(that.status))
10031
          return false;
10032
      }
10033
 
1119 rajveer 10034
      boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
10035
      boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
10036
      if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
10037
        if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
10038
          return false;
10039
        if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
10040
          return false;
10041
      }
10042
 
695 rajveer 10043
      boolean this_present_attributes = true && this.isSetAttributes();
10044
      boolean that_present_attributes = true && that.isSetAttributes();
10045
      if (this_present_attributes || that_present_attributes) {
10046
        if (!(this_present_attributes && that_present_attributes))
10047
          return false;
10048
        if (!this.attributes.equals(that.attributes))
10049
          return false;
10050
      }
10051
 
420 ashish 10052
      return true;
10053
    }
10054
 
10055
    @Override
10056
    public int hashCode() {
10057
      return 0;
10058
    }
10059
 
695 rajveer 10060
    public int compareTo(updatePaymentDetails_args other) {
420 ashish 10061
      if (!getClass().equals(other.getClass())) {
10062
        return getClass().getName().compareTo(other.getClass().getName());
10063
      }
10064
 
10065
      int lastComparison = 0;
695 rajveer 10066
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
420 ashish 10067
 
3430 rajveer 10068
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 10069
      if (lastComparison != 0) {
10070
        return lastComparison;
10071
      }
3430 rajveer 10072
      if (isSetId()) {
10073
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
10074
        if (lastComparison != 0) {
10075
          return lastComparison;
10076
        }
420 ashish 10077
      }
3430 rajveer 10078
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
420 ashish 10079
      if (lastComparison != 0) {
10080
        return lastComparison;
10081
      }
3430 rajveer 10082
      if (isSetGatewayPaymentId()) {
10083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
10084
        if (lastComparison != 0) {
10085
          return lastComparison;
10086
        }
420 ashish 10087
      }
3430 rajveer 10088
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
420 ashish 10089
      if (lastComparison != 0) {
10090
        return lastComparison;
10091
      }
3430 rajveer 10092
      if (isSetSessionId()) {
10093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
10094
        if (lastComparison != 0) {
10095
          return lastComparison;
10096
        }
420 ashish 10097
      }
3430 rajveer 10098
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
420 ashish 10099
      if (lastComparison != 0) {
10100
        return lastComparison;
10101
      }
3430 rajveer 10102
      if (isSetGatewayTxnStatus()) {
10103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
10104
        if (lastComparison != 0) {
10105
          return lastComparison;
10106
        }
420 ashish 10107
      }
3430 rajveer 10108
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
420 ashish 10109
      if (lastComparison != 0) {
10110
        return lastComparison;
10111
      }
3430 rajveer 10112
      if (isSetDescription()) {
10113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
10114
        if (lastComparison != 0) {
10115
          return lastComparison;
10116
        }
420 ashish 10117
      }
3430 rajveer 10118
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
420 ashish 10119
      if (lastComparison != 0) {
10120
        return lastComparison;
10121
      }
3430 rajveer 10122
      if (isSetGatewayTxnId()) {
10123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
10124
        if (lastComparison != 0) {
10125
          return lastComparison;
10126
        }
420 ashish 10127
      }
3430 rajveer 10128
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
420 ashish 10129
      if (lastComparison != 0) {
10130
        return lastComparison;
10131
      }
3430 rajveer 10132
      if (isSetAuthCode()) {
10133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
10134
        if (lastComparison != 0) {
10135
          return lastComparison;
10136
        }
420 ashish 10137
      }
3430 rajveer 10138
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
420 ashish 10139
      if (lastComparison != 0) {
10140
        return lastComparison;
10141
      }
3430 rajveer 10142
      if (isSetReferenceCode()) {
10143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
10144
        if (lastComparison != 0) {
10145
          return lastComparison;
10146
        }
420 ashish 10147
      }
3430 rajveer 10148
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
695 rajveer 10149
      if (lastComparison != 0) {
10150
        return lastComparison;
10151
      }
3430 rajveer 10152
      if (isSetErrorCode()) {
10153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
10154
        if (lastComparison != 0) {
10155
          return lastComparison;
10156
        }
695 rajveer 10157
      }
3430 rajveer 10158
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
695 rajveer 10159
      if (lastComparison != 0) {
10160
        return lastComparison;
10161
      }
3430 rajveer 10162
      if (isSetStatus()) {
10163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10164
        if (lastComparison != 0) {
10165
          return lastComparison;
10166
        }
695 rajveer 10167
      }
3430 rajveer 10168
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1119 rajveer 10169
      if (lastComparison != 0) {
10170
        return lastComparison;
10171
      }
3430 rajveer 10172
      if (isSetGatewayTxnDate()) {
10173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
10174
        if (lastComparison != 0) {
10175
          return lastComparison;
10176
        }
1119 rajveer 10177
      }
3430 rajveer 10178
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
695 rajveer 10179
      if (lastComparison != 0) {
10180
        return lastComparison;
10181
      }
3430 rajveer 10182
      if (isSetAttributes()) {
10183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
10184
        if (lastComparison != 0) {
10185
          return lastComparison;
10186
        }
695 rajveer 10187
      }
420 ashish 10188
      return 0;
10189
    }
10190
 
3430 rajveer 10191
    public _Fields fieldForId(int fieldId) {
10192
      return _Fields.findByThriftId(fieldId);
10193
    }
10194
 
10195
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10196
      org.apache.thrift.protocol.TField field;
420 ashish 10197
      iprot.readStructBegin();
10198
      while (true)
10199
      {
10200
        field = iprot.readFieldBegin();
3430 rajveer 10201
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 10202
          break;
10203
        }
3430 rajveer 10204
        switch (field.id) {
10205
          case 1: // ID
10206
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10207
              this.id = iprot.readI64();
10208
              setIdIsSet(true);
10209
            } else { 
10210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10211
            }
10212
            break;
10213
          case 2: // GATEWAY_PAYMENT_ID
10214
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10215
              this.gatewayPaymentId = iprot.readString();
10216
            } else { 
10217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10218
            }
10219
            break;
10220
          case 3: // SESSION_ID
10221
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10222
              this.sessionId = iprot.readString();
10223
            } else { 
10224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10225
            }
10226
            break;
10227
          case 4: // GATEWAY_TXN_STATUS
10228
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10229
              this.gatewayTxnStatus = iprot.readString();
10230
            } else { 
10231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10232
            }
10233
            break;
10234
          case 5: // DESCRIPTION
10235
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10236
              this.description = iprot.readString();
10237
            } else { 
10238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10239
            }
10240
            break;
10241
          case 6: // GATEWAY_TXN_ID
10242
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10243
              this.gatewayTxnId = iprot.readString();
10244
            } else { 
10245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10246
            }
10247
            break;
10248
          case 7: // AUTH_CODE
10249
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10250
              this.authCode = iprot.readString();
10251
            } else { 
10252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10253
            }
10254
            break;
10255
          case 8: // REFERENCE_CODE
10256
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10257
              this.referenceCode = iprot.readString();
10258
            } else { 
10259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10260
            }
10261
            break;
10262
          case 9: // ERROR_CODE
10263
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10264
              this.errorCode = iprot.readString();
10265
            } else { 
10266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10267
            }
10268
            break;
10269
          case 10: // STATUS
10270
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10271
              this.status = PaymentStatus.findByValue(iprot.readI32());
10272
            } else { 
10273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10274
            }
10275
            break;
10276
          case 11: // GATEWAY_TXN_DATE
10277
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10278
              this.gatewayTxnDate = iprot.readString();
10279
            } else { 
10280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10281
            }
10282
            break;
10283
          case 12: // ATTRIBUTES
10284
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10285
              {
4600 varun.gupt 10286
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
10287
                this.attributes = new ArrayList<Attribute>(_list32.size);
10288
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
695 rajveer 10289
                {
4600 varun.gupt 10290
                  Attribute _elem34; // required
10291
                  _elem34 = new Attribute();
10292
                  _elem34.read(iprot);
10293
                  this.attributes.add(_elem34);
695 rajveer 10294
                }
3430 rajveer 10295
                iprot.readListEnd();
695 rajveer 10296
              }
3430 rajveer 10297
            } else { 
10298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10299
            }
10300
            break;
10301
          default:
10302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 10303
        }
3430 rajveer 10304
        iprot.readFieldEnd();
420 ashish 10305
      }
10306
      iprot.readStructEnd();
10307
      validate();
10308
    }
10309
 
3430 rajveer 10310
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 10311
      validate();
10312
 
10313
      oprot.writeStructBegin(STRUCT_DESC);
10314
      oprot.writeFieldBegin(ID_FIELD_DESC);
10315
      oprot.writeI64(this.id);
10316
      oprot.writeFieldEnd();
695 rajveer 10317
      if (this.gatewayPaymentId != null) {
10318
        oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
10319
        oprot.writeString(this.gatewayPaymentId);
420 ashish 10320
        oprot.writeFieldEnd();
10321
      }
695 rajveer 10322
      if (this.sessionId != null) {
10323
        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
10324
        oprot.writeString(this.sessionId);
420 ashish 10325
        oprot.writeFieldEnd();
10326
      }
695 rajveer 10327
      if (this.gatewayTxnStatus != null) {
10328
        oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
10329
        oprot.writeString(this.gatewayTxnStatus);
420 ashish 10330
        oprot.writeFieldEnd();
10331
      }
695 rajveer 10332
      if (this.description != null) {
10333
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
10334
        oprot.writeString(this.description);
420 ashish 10335
        oprot.writeFieldEnd();
10336
      }
695 rajveer 10337
      if (this.gatewayTxnId != null) {
10338
        oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
10339
        oprot.writeString(this.gatewayTxnId);
420 ashish 10340
        oprot.writeFieldEnd();
10341
      }
695 rajveer 10342
      if (this.authCode != null) {
420 ashish 10343
        oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
695 rajveer 10344
        oprot.writeString(this.authCode);
420 ashish 10345
        oprot.writeFieldEnd();
10346
      }
695 rajveer 10347
      if (this.referenceCode != null) {
10348
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
10349
        oprot.writeString(this.referenceCode);
420 ashish 10350
        oprot.writeFieldEnd();
10351
      }
695 rajveer 10352
      if (this.errorCode != null) {
10353
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
10354
        oprot.writeString(this.errorCode);
10355
        oprot.writeFieldEnd();
10356
      }
10357
      if (this.status != null) {
10358
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
10359
        oprot.writeI32(this.status.getValue());
10360
        oprot.writeFieldEnd();
10361
      }
1119 rajveer 10362
      if (this.gatewayTxnDate != null) {
10363
        oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
10364
        oprot.writeString(this.gatewayTxnDate);
10365
        oprot.writeFieldEnd();
10366
      }
695 rajveer 10367
      if (this.attributes != null) {
10368
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
10369
        {
3430 rajveer 10370
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
4600 varun.gupt 10371
          for (Attribute _iter35 : this.attributes)
695 rajveer 10372
          {
4600 varun.gupt 10373
            _iter35.write(oprot);
695 rajveer 10374
          }
10375
          oprot.writeListEnd();
10376
        }
10377
        oprot.writeFieldEnd();
10378
      }
420 ashish 10379
      oprot.writeFieldStop();
10380
      oprot.writeStructEnd();
10381
    }
10382
 
10383
    @Override
10384
    public String toString() {
695 rajveer 10385
      StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
420 ashish 10386
      boolean first = true;
10387
 
10388
      sb.append("id:");
10389
      sb.append(this.id);
10390
      first = false;
10391
      if (!first) sb.append(", ");
695 rajveer 10392
      sb.append("gatewayPaymentId:");
10393
      if (this.gatewayPaymentId == null) {
420 ashish 10394
        sb.append("null");
10395
      } else {
695 rajveer 10396
        sb.append(this.gatewayPaymentId);
420 ashish 10397
      }
10398
      first = false;
10399
      if (!first) sb.append(", ");
695 rajveer 10400
      sb.append("sessionId:");
10401
      if (this.sessionId == null) {
420 ashish 10402
        sb.append("null");
10403
      } else {
695 rajveer 10404
        sb.append(this.sessionId);
420 ashish 10405
      }
10406
      first = false;
10407
      if (!first) sb.append(", ");
695 rajveer 10408
      sb.append("gatewayTxnStatus:");
10409
      if (this.gatewayTxnStatus == null) {
420 ashish 10410
        sb.append("null");
10411
      } else {
695 rajveer 10412
        sb.append(this.gatewayTxnStatus);
420 ashish 10413
      }
10414
      first = false;
10415
      if (!first) sb.append(", ");
695 rajveer 10416
      sb.append("description:");
10417
      if (this.description == null) {
420 ashish 10418
        sb.append("null");
10419
      } else {
695 rajveer 10420
        sb.append(this.description);
420 ashish 10421
      }
10422
      first = false;
10423
      if (!first) sb.append(", ");
695 rajveer 10424
      sb.append("gatewayTxnId:");
10425
      if (this.gatewayTxnId == null) {
420 ashish 10426
        sb.append("null");
10427
      } else {
695 rajveer 10428
        sb.append(this.gatewayTxnId);
420 ashish 10429
      }
10430
      first = false;
10431
      if (!first) sb.append(", ");
695 rajveer 10432
      sb.append("authCode:");
10433
      if (this.authCode == null) {
420 ashish 10434
        sb.append("null");
10435
      } else {
695 rajveer 10436
        sb.append(this.authCode);
420 ashish 10437
      }
10438
      first = false;
10439
      if (!first) sb.append(", ");
695 rajveer 10440
      sb.append("referenceCode:");
10441
      if (this.referenceCode == null) {
420 ashish 10442
        sb.append("null");
10443
      } else {
695 rajveer 10444
        sb.append(this.referenceCode);
420 ashish 10445
      }
10446
      first = false;
695 rajveer 10447
      if (!first) sb.append(", ");
10448
      sb.append("errorCode:");
10449
      if (this.errorCode == null) {
10450
        sb.append("null");
10451
      } else {
10452
        sb.append(this.errorCode);
10453
      }
10454
      first = false;
10455
      if (!first) sb.append(", ");
10456
      sb.append("status:");
10457
      if (this.status == null) {
10458
        sb.append("null");
10459
      } else {
10460
        sb.append(this.status);
10461
      }
10462
      first = false;
10463
      if (!first) sb.append(", ");
1119 rajveer 10464
      sb.append("gatewayTxnDate:");
10465
      if (this.gatewayTxnDate == null) {
10466
        sb.append("null");
10467
      } else {
10468
        sb.append(this.gatewayTxnDate);
10469
      }
10470
      first = false;
10471
      if (!first) sb.append(", ");
695 rajveer 10472
      sb.append("attributes:");
10473
      if (this.attributes == null) {
10474
        sb.append("null");
10475
      } else {
10476
        sb.append(this.attributes);
10477
      }
10478
      first = false;
420 ashish 10479
      sb.append(")");
10480
      return sb.toString();
10481
    }
10482
 
3430 rajveer 10483
    public void validate() throws org.apache.thrift.TException {
420 ashish 10484
      // check for required fields
10485
    }
10486
 
3430 rajveer 10487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10488
      try {
10489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10490
      } catch (org.apache.thrift.TException te) {
10491
        throw new java.io.IOException(te);
10492
      }
10493
    }
10494
 
10495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10496
      try {
10497
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10498
        __isset_bit_vector = new BitSet(1);
10499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10500
      } catch (org.apache.thrift.TException te) {
10501
        throw new java.io.IOException(te);
10502
      }
10503
    }
10504
 
420 ashish 10505
  }
10506
 
3430 rajveer 10507
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
10508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
420 ashish 10509
 
3430 rajveer 10510
    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);
10511
    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);
420 ashish 10512
 
3430 rajveer 10513
    private boolean success; // required
10514
    private PaymentException pe; // required
420 ashish 10515
 
10516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 10518
      SUCCESS((short)0, "success"),
420 ashish 10519
      PE((short)1, "pe");
10520
 
10521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10522
 
10523
      static {
10524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10525
          byName.put(field.getFieldName(), field);
10526
        }
10527
      }
10528
 
10529
      /**
10530
       * Find the _Fields constant that matches fieldId, or null if its not found.
10531
       */
10532
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10533
        switch(fieldId) {
10534
          case 0: // SUCCESS
10535
            return SUCCESS;
10536
          case 1: // PE
10537
            return PE;
10538
          default:
10539
            return null;
10540
        }
420 ashish 10541
      }
10542
 
10543
      /**
10544
       * Find the _Fields constant that matches fieldId, throwing an exception
10545
       * if it is not found.
10546
       */
10547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10548
        _Fields fields = findByThriftId(fieldId);
10549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10550
        return fields;
10551
      }
10552
 
10553
      /**
10554
       * Find the _Fields constant that matches name, or null if its not found.
10555
       */
10556
      public static _Fields findByName(String name) {
10557
        return byName.get(name);
10558
      }
10559
 
10560
      private final short _thriftId;
10561
      private final String _fieldName;
10562
 
10563
      _Fields(short thriftId, String fieldName) {
10564
        _thriftId = thriftId;
10565
        _fieldName = fieldName;
10566
      }
10567
 
10568
      public short getThriftFieldId() {
10569
        return _thriftId;
10570
      }
10571
 
10572
      public String getFieldName() {
10573
        return _fieldName;
10574
      }
10575
    }
10576
 
10577
    // isset id assignments
695 rajveer 10578
    private static final int __SUCCESS_ISSET_ID = 0;
10579
    private BitSet __isset_bit_vector = new BitSet(1);
420 ashish 10580
 
3430 rajveer 10581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 10582
    static {
3430 rajveer 10583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10584
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10586
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
420 ashish 10590
    }
10591
 
695 rajveer 10592
    public updatePaymentDetails_result() {
420 ashish 10593
    }
10594
 
695 rajveer 10595
    public updatePaymentDetails_result(
10596
      boolean success,
420 ashish 10597
      PaymentException pe)
10598
    {
10599
      this();
695 rajveer 10600
      this.success = success;
10601
      setSuccessIsSet(true);
420 ashish 10602
      this.pe = pe;
10603
    }
10604
 
10605
    /**
10606
     * Performs a deep copy on <i>other</i>.
10607
     */
695 rajveer 10608
    public updatePaymentDetails_result(updatePaymentDetails_result other) {
10609
      __isset_bit_vector.clear();
10610
      __isset_bit_vector.or(other.__isset_bit_vector);
10611
      this.success = other.success;
420 ashish 10612
      if (other.isSetPe()) {
10613
        this.pe = new PaymentException(other.pe);
10614
      }
10615
    }
10616
 
695 rajveer 10617
    public updatePaymentDetails_result deepCopy() {
10618
      return new updatePaymentDetails_result(this);
420 ashish 10619
    }
10620
 
3430 rajveer 10621
    @Override
10622
    public void clear() {
10623
      setSuccessIsSet(false);
10624
      this.success = false;
10625
      this.pe = null;
420 ashish 10626
    }
10627
 
695 rajveer 10628
    public boolean isSuccess() {
10629
      return this.success;
10630
    }
10631
 
3430 rajveer 10632
    public void setSuccess(boolean success) {
695 rajveer 10633
      this.success = success;
10634
      setSuccessIsSet(true);
10635
    }
10636
 
10637
    public void unsetSuccess() {
10638
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10639
    }
10640
 
3430 rajveer 10641
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
695 rajveer 10642
    public boolean isSetSuccess() {
10643
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10644
    }
10645
 
10646
    public void setSuccessIsSet(boolean value) {
10647
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10648
    }
10649
 
420 ashish 10650
    public PaymentException getPe() {
10651
      return this.pe;
10652
    }
10653
 
3430 rajveer 10654
    public void setPe(PaymentException pe) {
420 ashish 10655
      this.pe = pe;
10656
    }
10657
 
10658
    public void unsetPe() {
10659
      this.pe = null;
10660
    }
10661
 
3430 rajveer 10662
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 10663
    public boolean isSetPe() {
10664
      return this.pe != null;
10665
    }
10666
 
10667
    public void setPeIsSet(boolean value) {
10668
      if (!value) {
10669
        this.pe = null;
10670
      }
10671
    }
10672
 
10673
    public void setFieldValue(_Fields field, Object value) {
10674
      switch (field) {
695 rajveer 10675
      case SUCCESS:
10676
        if (value == null) {
10677
          unsetSuccess();
10678
        } else {
10679
          setSuccess((Boolean)value);
10680
        }
10681
        break;
10682
 
420 ashish 10683
      case PE:
10684
        if (value == null) {
10685
          unsetPe();
10686
        } else {
10687
          setPe((PaymentException)value);
10688
        }
10689
        break;
10690
 
10691
      }
10692
    }
10693
 
10694
    public Object getFieldValue(_Fields field) {
10695
      switch (field) {
695 rajveer 10696
      case SUCCESS:
3430 rajveer 10697
        return Boolean.valueOf(isSuccess());
695 rajveer 10698
 
420 ashish 10699
      case PE:
10700
        return getPe();
10701
 
10702
      }
10703
      throw new IllegalStateException();
10704
    }
10705
 
3430 rajveer 10706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10707
    public boolean isSet(_Fields field) {
10708
      if (field == null) {
10709
        throw new IllegalArgumentException();
10710
      }
420 ashish 10711
 
10712
      switch (field) {
695 rajveer 10713
      case SUCCESS:
10714
        return isSetSuccess();
420 ashish 10715
      case PE:
10716
        return isSetPe();
10717
      }
10718
      throw new IllegalStateException();
10719
    }
10720
 
10721
    @Override
10722
    public boolean equals(Object that) {
10723
      if (that == null)
10724
        return false;
695 rajveer 10725
      if (that instanceof updatePaymentDetails_result)
10726
        return this.equals((updatePaymentDetails_result)that);
420 ashish 10727
      return false;
10728
    }
10729
 
695 rajveer 10730
    public boolean equals(updatePaymentDetails_result that) {
420 ashish 10731
      if (that == null)
10732
        return false;
10733
 
695 rajveer 10734
      boolean this_present_success = true;
10735
      boolean that_present_success = true;
10736
      if (this_present_success || that_present_success) {
10737
        if (!(this_present_success && that_present_success))
10738
          return false;
10739
        if (this.success != that.success)
10740
          return false;
10741
      }
10742
 
420 ashish 10743
      boolean this_present_pe = true && this.isSetPe();
10744
      boolean that_present_pe = true && that.isSetPe();
10745
      if (this_present_pe || that_present_pe) {
10746
        if (!(this_present_pe && that_present_pe))
10747
          return false;
10748
        if (!this.pe.equals(that.pe))
10749
          return false;
10750
      }
10751
 
10752
      return true;
10753
    }
10754
 
10755
    @Override
10756
    public int hashCode() {
10757
      return 0;
10758
    }
10759
 
695 rajveer 10760
    public int compareTo(updatePaymentDetails_result other) {
420 ashish 10761
      if (!getClass().equals(other.getClass())) {
10762
        return getClass().getName().compareTo(other.getClass().getName());
10763
      }
10764
 
10765
      int lastComparison = 0;
695 rajveer 10766
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
420 ashish 10767
 
3430 rajveer 10768
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 10769
      if (lastComparison != 0) {
10770
        return lastComparison;
10771
      }
3430 rajveer 10772
      if (isSetSuccess()) {
10773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10774
        if (lastComparison != 0) {
10775
          return lastComparison;
10776
        }
695 rajveer 10777
      }
3430 rajveer 10778
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 10779
      if (lastComparison != 0) {
10780
        return lastComparison;
10781
      }
3430 rajveer 10782
      if (isSetPe()) {
10783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10784
        if (lastComparison != 0) {
10785
          return lastComparison;
10786
        }
420 ashish 10787
      }
10788
      return 0;
10789
    }
10790
 
3430 rajveer 10791
    public _Fields fieldForId(int fieldId) {
10792
      return _Fields.findByThriftId(fieldId);
10793
    }
10794
 
10795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10796
      org.apache.thrift.protocol.TField field;
420 ashish 10797
      iprot.readStructBegin();
10798
      while (true)
10799
      {
10800
        field = iprot.readFieldBegin();
3430 rajveer 10801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 10802
          break;
10803
        }
3430 rajveer 10804
        switch (field.id) {
10805
          case 0: // SUCCESS
10806
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10807
              this.success = iprot.readBool();
10808
              setSuccessIsSet(true);
10809
            } else { 
10810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10811
            }
10812
            break;
10813
          case 1: // PE
10814
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10815
              this.pe = new PaymentException();
10816
              this.pe.read(iprot);
10817
            } else { 
10818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10819
            }
10820
            break;
10821
          default:
10822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 10823
        }
3430 rajveer 10824
        iprot.readFieldEnd();
420 ashish 10825
      }
10826
      iprot.readStructEnd();
10827
      validate();
10828
    }
10829
 
3430 rajveer 10830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 10831
      oprot.writeStructBegin(STRUCT_DESC);
10832
 
695 rajveer 10833
      if (this.isSetSuccess()) {
10834
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10835
        oprot.writeBool(this.success);
10836
        oprot.writeFieldEnd();
10837
      } else if (this.isSetPe()) {
420 ashish 10838
        oprot.writeFieldBegin(PE_FIELD_DESC);
10839
        this.pe.write(oprot);
10840
        oprot.writeFieldEnd();
10841
      }
10842
      oprot.writeFieldStop();
10843
      oprot.writeStructEnd();
10844
    }
10845
 
10846
    @Override
10847
    public String toString() {
695 rajveer 10848
      StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
420 ashish 10849
      boolean first = true;
10850
 
695 rajveer 10851
      sb.append("success:");
10852
      sb.append(this.success);
10853
      first = false;
10854
      if (!first) sb.append(", ");
420 ashish 10855
      sb.append("pe:");
10856
      if (this.pe == null) {
10857
        sb.append("null");
10858
      } else {
10859
        sb.append(this.pe);
10860
      }
10861
      first = false;
10862
      sb.append(")");
10863
      return sb.toString();
10864
    }
10865
 
3430 rajveer 10866
    public void validate() throws org.apache.thrift.TException {
420 ashish 10867
      // check for required fields
10868
    }
10869
 
3430 rajveer 10870
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10871
      try {
10872
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10873
      } catch (org.apache.thrift.TException te) {
10874
        throw new java.io.IOException(te);
10875
      }
10876
    }
10877
 
10878
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10879
      try {
10880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10881
      } catch (org.apache.thrift.TException te) {
10882
        throw new java.io.IOException(te);
10883
      }
10884
    }
10885
 
420 ashish 10886
  }
10887
 
3430 rajveer 10888
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
10889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
1629 ankur.sing 10890
 
10891
 
10892
 
10893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 10895
;
10896
 
10897
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10898
 
10899
      static {
10900
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10901
          byName.put(field.getFieldName(), field);
10902
        }
10903
      }
10904
 
10905
      /**
10906
       * Find the _Fields constant that matches fieldId, or null if its not found.
10907
       */
10908
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10909
        switch(fieldId) {
10910
          default:
10911
            return null;
10912
        }
1629 ankur.sing 10913
      }
10914
 
10915
      /**
10916
       * Find the _Fields constant that matches fieldId, throwing an exception
10917
       * if it is not found.
10918
       */
10919
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10920
        _Fields fields = findByThriftId(fieldId);
10921
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10922
        return fields;
10923
      }
10924
 
10925
      /**
10926
       * Find the _Fields constant that matches name, or null if its not found.
10927
       */
10928
      public static _Fields findByName(String name) {
10929
        return byName.get(name);
10930
      }
10931
 
10932
      private final short _thriftId;
10933
      private final String _fieldName;
10934
 
10935
      _Fields(short thriftId, String fieldName) {
10936
        _thriftId = thriftId;
10937
        _fieldName = fieldName;
10938
      }
10939
 
10940
      public short getThriftFieldId() {
10941
        return _thriftId;
10942
      }
10943
 
10944
      public String getFieldName() {
10945
        return _fieldName;
10946
      }
10947
    }
3430 rajveer 10948
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 10949
    static {
3430 rajveer 10950
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
1629 ankur.sing 10953
    }
10954
 
1731 ankur.sing 10955
    public getSuccessfulPaymentsAmountRange_args() {
1629 ankur.sing 10956
    }
10957
 
10958
    /**
10959
     * Performs a deep copy on <i>other</i>.
10960
     */
1731 ankur.sing 10961
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 10962
    }
10963
 
1731 ankur.sing 10964
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
10965
      return new getSuccessfulPaymentsAmountRange_args(this);
1629 ankur.sing 10966
    }
10967
 
3430 rajveer 10968
    @Override
10969
    public void clear() {
1629 ankur.sing 10970
    }
10971
 
10972
    public void setFieldValue(_Fields field, Object value) {
10973
      switch (field) {
10974
      }
10975
    }
10976
 
10977
    public Object getFieldValue(_Fields field) {
10978
      switch (field) {
10979
      }
10980
      throw new IllegalStateException();
10981
    }
10982
 
3430 rajveer 10983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10984
    public boolean isSet(_Fields field) {
10985
      if (field == null) {
10986
        throw new IllegalArgumentException();
10987
      }
1629 ankur.sing 10988
 
10989
      switch (field) {
10990
      }
10991
      throw new IllegalStateException();
10992
    }
10993
 
10994
    @Override
10995
    public boolean equals(Object that) {
10996
      if (that == null)
10997
        return false;
1731 ankur.sing 10998
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
10999
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
1629 ankur.sing 11000
      return false;
11001
    }
11002
 
1731 ankur.sing 11003
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
1629 ankur.sing 11004
      if (that == null)
11005
        return false;
11006
 
11007
      return true;
11008
    }
11009
 
11010
    @Override
11011
    public int hashCode() {
11012
      return 0;
11013
    }
11014
 
1731 ankur.sing 11015
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 11016
      if (!getClass().equals(other.getClass())) {
11017
        return getClass().getName().compareTo(other.getClass().getName());
11018
      }
11019
 
11020
      int lastComparison = 0;
1731 ankur.sing 11021
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
1629 ankur.sing 11022
 
11023
      return 0;
11024
    }
11025
 
3430 rajveer 11026
    public _Fields fieldForId(int fieldId) {
11027
      return _Fields.findByThriftId(fieldId);
11028
    }
11029
 
11030
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11031
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 11032
      iprot.readStructBegin();
11033
      while (true)
11034
      {
11035
        field = iprot.readFieldBegin();
3430 rajveer 11036
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 11037
          break;
11038
        }
3430 rajveer 11039
        switch (field.id) {
11040
          default:
11041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 11042
        }
3430 rajveer 11043
        iprot.readFieldEnd();
1629 ankur.sing 11044
      }
11045
      iprot.readStructEnd();
11046
      validate();
11047
    }
11048
 
3430 rajveer 11049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 11050
      validate();
11051
 
11052
      oprot.writeStructBegin(STRUCT_DESC);
11053
      oprot.writeFieldStop();
11054
      oprot.writeStructEnd();
11055
    }
11056
 
11057
    @Override
11058
    public String toString() {
1731 ankur.sing 11059
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
1629 ankur.sing 11060
      boolean first = true;
11061
 
11062
      sb.append(")");
11063
      return sb.toString();
11064
    }
11065
 
3430 rajveer 11066
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 11067
      // check for required fields
11068
    }
11069
 
3430 rajveer 11070
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11071
      try {
11072
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11073
      } catch (org.apache.thrift.TException te) {
11074
        throw new java.io.IOException(te);
11075
      }
11076
    }
11077
 
11078
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11079
      try {
11080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11081
      } catch (org.apache.thrift.TException te) {
11082
        throw new java.io.IOException(te);
11083
      }
11084
    }
11085
 
1629 ankur.sing 11086
  }
11087
 
3430 rajveer 11088
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
11089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
1629 ankur.sing 11090
 
3430 rajveer 11091
    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);
1629 ankur.sing 11092
 
3430 rajveer 11093
    private List<Double> success; // required
1629 ankur.sing 11094
 
11095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 11097
      SUCCESS((short)0, "success");
11098
 
11099
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11100
 
11101
      static {
11102
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11103
          byName.put(field.getFieldName(), field);
11104
        }
11105
      }
11106
 
11107
      /**
11108
       * Find the _Fields constant that matches fieldId, or null if its not found.
11109
       */
11110
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11111
        switch(fieldId) {
11112
          case 0: // SUCCESS
11113
            return SUCCESS;
11114
          default:
11115
            return null;
11116
        }
1629 ankur.sing 11117
      }
11118
 
11119
      /**
11120
       * Find the _Fields constant that matches fieldId, throwing an exception
11121
       * if it is not found.
11122
       */
11123
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11124
        _Fields fields = findByThriftId(fieldId);
11125
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11126
        return fields;
11127
      }
11128
 
11129
      /**
11130
       * Find the _Fields constant that matches name, or null if its not found.
11131
       */
11132
      public static _Fields findByName(String name) {
11133
        return byName.get(name);
11134
      }
11135
 
11136
      private final short _thriftId;
11137
      private final String _fieldName;
11138
 
11139
      _Fields(short thriftId, String fieldName) {
11140
        _thriftId = thriftId;
11141
        _fieldName = fieldName;
11142
      }
11143
 
11144
      public short getThriftFieldId() {
11145
        return _thriftId;
11146
      }
11147
 
11148
      public String getFieldName() {
11149
        return _fieldName;
11150
      }
11151
    }
11152
 
11153
    // isset id assignments
11154
 
3430 rajveer 11155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 11156
    static {
3430 rajveer 11157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11158
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11159
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11160
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
11161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
1629 ankur.sing 11163
    }
11164
 
1731 ankur.sing 11165
    public getSuccessfulPaymentsAmountRange_result() {
1629 ankur.sing 11166
    }
11167
 
1731 ankur.sing 11168
    public getSuccessfulPaymentsAmountRange_result(
11169
      List<Double> success)
1629 ankur.sing 11170
    {
11171
      this();
11172
      this.success = success;
11173
    }
11174
 
11175
    /**
11176
     * Performs a deep copy on <i>other</i>.
11177
     */
1731 ankur.sing 11178
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
11179
      if (other.isSetSuccess()) {
11180
        List<Double> __this__success = new ArrayList<Double>();
11181
        for (Double other_element : other.success) {
11182
          __this__success.add(other_element);
1629 ankur.sing 11183
        }
1731 ankur.sing 11184
        this.success = __this__success;
1629 ankur.sing 11185
      }
11186
    }
11187
 
1731 ankur.sing 11188
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
11189
      return new getSuccessfulPaymentsAmountRange_result(this);
1629 ankur.sing 11190
    }
11191
 
3430 rajveer 11192
    @Override
11193
    public void clear() {
11194
      this.success = null;
1629 ankur.sing 11195
    }
11196
 
1731 ankur.sing 11197
    public int getSuccessSize() {
11198
      return (this.success == null) ? 0 : this.success.size();
1629 ankur.sing 11199
    }
11200
 
1731 ankur.sing 11201
    public java.util.Iterator<Double> getSuccessIterator() {
11202
      return (this.success == null) ? null : this.success.iterator();
1629 ankur.sing 11203
    }
11204
 
1731 ankur.sing 11205
    public void addToSuccess(double elem) {
11206
      if (this.success == null) {
11207
        this.success = new ArrayList<Double>();
1629 ankur.sing 11208
      }
1731 ankur.sing 11209
      this.success.add(elem);
1629 ankur.sing 11210
    }
11211
 
1731 ankur.sing 11212
    public List<Double> getSuccess() {
1629 ankur.sing 11213
      return this.success;
11214
    }
11215
 
3430 rajveer 11216
    public void setSuccess(List<Double> success) {
1629 ankur.sing 11217
      this.success = success;
11218
    }
11219
 
11220
    public void unsetSuccess() {
1731 ankur.sing 11221
      this.success = null;
1629 ankur.sing 11222
    }
11223
 
3430 rajveer 11224
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1629 ankur.sing 11225
    public boolean isSetSuccess() {
1731 ankur.sing 11226
      return this.success != null;
1629 ankur.sing 11227
    }
11228
 
11229
    public void setSuccessIsSet(boolean value) {
1731 ankur.sing 11230
      if (!value) {
11231
        this.success = null;
11232
      }
1629 ankur.sing 11233
    }
11234
 
11235
    public void setFieldValue(_Fields field, Object value) {
11236
      switch (field) {
11237
      case SUCCESS:
11238
        if (value == null) {
11239
          unsetSuccess();
11240
        } else {
1731 ankur.sing 11241
          setSuccess((List<Double>)value);
1629 ankur.sing 11242
        }
11243
        break;
11244
 
11245
      }
11246
    }
11247
 
11248
    public Object getFieldValue(_Fields field) {
11249
      switch (field) {
11250
      case SUCCESS:
1731 ankur.sing 11251
        return getSuccess();
1629 ankur.sing 11252
 
11253
      }
11254
      throw new IllegalStateException();
11255
    }
11256
 
3430 rajveer 11257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11258
    public boolean isSet(_Fields field) {
11259
      if (field == null) {
11260
        throw new IllegalArgumentException();
11261
      }
1629 ankur.sing 11262
 
11263
      switch (field) {
11264
      case SUCCESS:
11265
        return isSetSuccess();
11266
      }
11267
      throw new IllegalStateException();
11268
    }
11269
 
11270
    @Override
11271
    public boolean equals(Object that) {
11272
      if (that == null)
11273
        return false;
1731 ankur.sing 11274
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
11275
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
1629 ankur.sing 11276
      return false;
11277
    }
11278
 
1731 ankur.sing 11279
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
1629 ankur.sing 11280
      if (that == null)
11281
        return false;
11282
 
1731 ankur.sing 11283
      boolean this_present_success = true && this.isSetSuccess();
11284
      boolean that_present_success = true && that.isSetSuccess();
1629 ankur.sing 11285
      if (this_present_success || that_present_success) {
11286
        if (!(this_present_success && that_present_success))
11287
          return false;
1731 ankur.sing 11288
        if (!this.success.equals(that.success))
1629 ankur.sing 11289
          return false;
11290
      }
11291
 
11292
      return true;
11293
    }
11294
 
11295
    @Override
11296
    public int hashCode() {
11297
      return 0;
11298
    }
11299
 
1731 ankur.sing 11300
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
1629 ankur.sing 11301
      if (!getClass().equals(other.getClass())) {
11302
        return getClass().getName().compareTo(other.getClass().getName());
11303
      }
11304
 
11305
      int lastComparison = 0;
1731 ankur.sing 11306
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
1629 ankur.sing 11307
 
3430 rajveer 11308
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1629 ankur.sing 11309
      if (lastComparison != 0) {
11310
        return lastComparison;
11311
      }
3430 rajveer 11312
      if (isSetSuccess()) {
11313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11314
        if (lastComparison != 0) {
11315
          return lastComparison;
11316
        }
1629 ankur.sing 11317
      }
11318
      return 0;
11319
    }
11320
 
3430 rajveer 11321
    public _Fields fieldForId(int fieldId) {
11322
      return _Fields.findByThriftId(fieldId);
11323
    }
11324
 
11325
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11326
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 11327
      iprot.readStructBegin();
11328
      while (true)
11329
      {
11330
        field = iprot.readFieldBegin();
3430 rajveer 11331
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 11332
          break;
11333
        }
3430 rajveer 11334
        switch (field.id) {
11335
          case 0: // SUCCESS
11336
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11337
              {
4600 varun.gupt 11338
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
11339
                this.success = new ArrayList<Double>(_list36.size);
11340
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
1731 ankur.sing 11341
                {
4600 varun.gupt 11342
                  double _elem38; // required
11343
                  _elem38 = iprot.readDouble();
11344
                  this.success.add(_elem38);
1731 ankur.sing 11345
                }
3430 rajveer 11346
                iprot.readListEnd();
1629 ankur.sing 11347
              }
3430 rajveer 11348
            } else { 
11349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11350
            }
11351
            break;
11352
          default:
11353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 11354
        }
3430 rajveer 11355
        iprot.readFieldEnd();
1629 ankur.sing 11356
      }
11357
      iprot.readStructEnd();
11358
      validate();
11359
    }
11360
 
3430 rajveer 11361
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 11362
      oprot.writeStructBegin(STRUCT_DESC);
11363
 
11364
      if (this.isSetSuccess()) {
11365
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1731 ankur.sing 11366
        {
3430 rajveer 11367
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
4600 varun.gupt 11368
          for (double _iter39 : this.success)
1731 ankur.sing 11369
          {
4600 varun.gupt 11370
            oprot.writeDouble(_iter39);
1731 ankur.sing 11371
          }
11372
          oprot.writeListEnd();
11373
        }
1629 ankur.sing 11374
        oprot.writeFieldEnd();
11375
      }
11376
      oprot.writeFieldStop();
11377
      oprot.writeStructEnd();
11378
    }
11379
 
11380
    @Override
11381
    public String toString() {
1731 ankur.sing 11382
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
1629 ankur.sing 11383
      boolean first = true;
11384
 
11385
      sb.append("success:");
1731 ankur.sing 11386
      if (this.success == null) {
11387
        sb.append("null");
11388
      } else {
11389
        sb.append(this.success);
11390
      }
1629 ankur.sing 11391
      first = false;
11392
      sb.append(")");
11393
      return sb.toString();
11394
    }
11395
 
3430 rajveer 11396
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 11397
      // check for required fields
11398
    }
11399
 
3430 rajveer 11400
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11401
      try {
11402
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11403
      } catch (org.apache.thrift.TException te) {
11404
        throw new java.io.IOException(te);
11405
      }
11406
    }
11407
 
11408
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11409
      try {
11410
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11411
      } catch (org.apache.thrift.TException te) {
11412
        throw new java.io.IOException(te);
11413
      }
11414
    }
11415
 
1629 ankur.sing 11416
  }
11417
 
3430 rajveer 11418
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
11419
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
2462 chandransh 11420
 
3430 rajveer 11421
    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);
2462 chandransh 11422
 
3430 rajveer 11423
    private long merchantPaymentId; // required
2462 chandransh 11424
 
11425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11426
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 11427
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
11428
 
11429
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11430
 
11431
      static {
11432
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11433
          byName.put(field.getFieldName(), field);
11434
        }
11435
      }
11436
 
11437
      /**
11438
       * Find the _Fields constant that matches fieldId, or null if its not found.
11439
       */
11440
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11441
        switch(fieldId) {
11442
          case 1: // MERCHANT_PAYMENT_ID
11443
            return MERCHANT_PAYMENT_ID;
11444
          default:
11445
            return null;
11446
        }
2462 chandransh 11447
      }
11448
 
11449
      /**
11450
       * Find the _Fields constant that matches fieldId, throwing an exception
11451
       * if it is not found.
11452
       */
11453
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11454
        _Fields fields = findByThriftId(fieldId);
11455
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11456
        return fields;
11457
      }
11458
 
11459
      /**
11460
       * Find the _Fields constant that matches name, or null if its not found.
11461
       */
11462
      public static _Fields findByName(String name) {
11463
        return byName.get(name);
11464
      }
11465
 
11466
      private final short _thriftId;
11467
      private final String _fieldName;
11468
 
11469
      _Fields(short thriftId, String fieldName) {
11470
        _thriftId = thriftId;
11471
        _fieldName = fieldName;
11472
      }
11473
 
11474
      public short getThriftFieldId() {
11475
        return _thriftId;
11476
      }
11477
 
11478
      public String getFieldName() {
11479
        return _fieldName;
11480
      }
11481
    }
11482
 
11483
    // isset id assignments
11484
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
11485
    private BitSet __isset_bit_vector = new BitSet(1);
11486
 
3430 rajveer 11487
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 11488
    static {
3430 rajveer 11489
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11490
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11491
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11492
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11493
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
2462 chandransh 11494
    }
11495
 
3010 chandransh 11496
    public initializeHdfcPayment_args() {
2462 chandransh 11497
    }
11498
 
3010 chandransh 11499
    public initializeHdfcPayment_args(
2462 chandransh 11500
      long merchantPaymentId)
11501
    {
11502
      this();
11503
      this.merchantPaymentId = merchantPaymentId;
11504
      setMerchantPaymentIdIsSet(true);
11505
    }
11506
 
11507
    /**
11508
     * Performs a deep copy on <i>other</i>.
11509
     */
3010 chandransh 11510
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
2462 chandransh 11511
      __isset_bit_vector.clear();
11512
      __isset_bit_vector.or(other.__isset_bit_vector);
11513
      this.merchantPaymentId = other.merchantPaymentId;
11514
    }
11515
 
3010 chandransh 11516
    public initializeHdfcPayment_args deepCopy() {
11517
      return new initializeHdfcPayment_args(this);
2462 chandransh 11518
    }
11519
 
3430 rajveer 11520
    @Override
11521
    public void clear() {
11522
      setMerchantPaymentIdIsSet(false);
11523
      this.merchantPaymentId = 0;
2462 chandransh 11524
    }
11525
 
11526
    public long getMerchantPaymentId() {
11527
      return this.merchantPaymentId;
11528
    }
11529
 
3430 rajveer 11530
    public void setMerchantPaymentId(long merchantPaymentId) {
2462 chandransh 11531
      this.merchantPaymentId = merchantPaymentId;
11532
      setMerchantPaymentIdIsSet(true);
11533
    }
11534
 
11535
    public void unsetMerchantPaymentId() {
11536
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
11537
    }
11538
 
3430 rajveer 11539
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
2462 chandransh 11540
    public boolean isSetMerchantPaymentId() {
11541
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
11542
    }
11543
 
11544
    public void setMerchantPaymentIdIsSet(boolean value) {
11545
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
11546
    }
11547
 
11548
    public void setFieldValue(_Fields field, Object value) {
11549
      switch (field) {
11550
      case MERCHANT_PAYMENT_ID:
11551
        if (value == null) {
11552
          unsetMerchantPaymentId();
11553
        } else {
11554
          setMerchantPaymentId((Long)value);
11555
        }
11556
        break;
11557
 
11558
      }
11559
    }
11560
 
11561
    public Object getFieldValue(_Fields field) {
11562
      switch (field) {
11563
      case MERCHANT_PAYMENT_ID:
3430 rajveer 11564
        return Long.valueOf(getMerchantPaymentId());
2462 chandransh 11565
 
11566
      }
11567
      throw new IllegalStateException();
11568
    }
11569
 
3430 rajveer 11570
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11571
    public boolean isSet(_Fields field) {
11572
      if (field == null) {
11573
        throw new IllegalArgumentException();
11574
      }
2462 chandransh 11575
 
11576
      switch (field) {
11577
      case MERCHANT_PAYMENT_ID:
11578
        return isSetMerchantPaymentId();
11579
      }
11580
      throw new IllegalStateException();
11581
    }
11582
 
11583
    @Override
11584
    public boolean equals(Object that) {
11585
      if (that == null)
11586
        return false;
3010 chandransh 11587
      if (that instanceof initializeHdfcPayment_args)
11588
        return this.equals((initializeHdfcPayment_args)that);
2462 chandransh 11589
      return false;
11590
    }
11591
 
3010 chandransh 11592
    public boolean equals(initializeHdfcPayment_args that) {
2462 chandransh 11593
      if (that == null)
11594
        return false;
11595
 
11596
      boolean this_present_merchantPaymentId = true;
11597
      boolean that_present_merchantPaymentId = true;
11598
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
11599
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
11600
          return false;
11601
        if (this.merchantPaymentId != that.merchantPaymentId)
11602
          return false;
11603
      }
11604
 
11605
      return true;
11606
    }
11607
 
11608
    @Override
11609
    public int hashCode() {
11610
      return 0;
11611
    }
11612
 
3010 chandransh 11613
    public int compareTo(initializeHdfcPayment_args other) {
2462 chandransh 11614
      if (!getClass().equals(other.getClass())) {
11615
        return getClass().getName().compareTo(other.getClass().getName());
11616
      }
11617
 
11618
      int lastComparison = 0;
3010 chandransh 11619
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
2462 chandransh 11620
 
3430 rajveer 11621
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
2462 chandransh 11622
      if (lastComparison != 0) {
11623
        return lastComparison;
11624
      }
3430 rajveer 11625
      if (isSetMerchantPaymentId()) {
11626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
11627
        if (lastComparison != 0) {
11628
          return lastComparison;
11629
        }
2462 chandransh 11630
      }
11631
      return 0;
11632
    }
11633
 
3430 rajveer 11634
    public _Fields fieldForId(int fieldId) {
11635
      return _Fields.findByThriftId(fieldId);
11636
    }
11637
 
11638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11639
      org.apache.thrift.protocol.TField field;
2462 chandransh 11640
      iprot.readStructBegin();
11641
      while (true)
11642
      {
11643
        field = iprot.readFieldBegin();
3430 rajveer 11644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 11645
          break;
11646
        }
3430 rajveer 11647
        switch (field.id) {
11648
          case 1: // MERCHANT_PAYMENT_ID
11649
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11650
              this.merchantPaymentId = iprot.readI64();
11651
              setMerchantPaymentIdIsSet(true);
11652
            } else { 
11653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11654
            }
11655
            break;
11656
          default:
11657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 11658
        }
3430 rajveer 11659
        iprot.readFieldEnd();
2462 chandransh 11660
      }
11661
      iprot.readStructEnd();
11662
      validate();
11663
    }
11664
 
3430 rajveer 11665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 11666
      validate();
11667
 
11668
      oprot.writeStructBegin(STRUCT_DESC);
11669
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
11670
      oprot.writeI64(this.merchantPaymentId);
11671
      oprot.writeFieldEnd();
11672
      oprot.writeFieldStop();
11673
      oprot.writeStructEnd();
11674
    }
11675
 
11676
    @Override
11677
    public String toString() {
3010 chandransh 11678
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
2462 chandransh 11679
      boolean first = true;
11680
 
11681
      sb.append("merchantPaymentId:");
11682
      sb.append(this.merchantPaymentId);
11683
      first = false;
11684
      sb.append(")");
11685
      return sb.toString();
11686
    }
11687
 
3430 rajveer 11688
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 11689
      // check for required fields
11690
    }
11691
 
3430 rajveer 11692
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11693
      try {
11694
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11695
      } catch (org.apache.thrift.TException te) {
11696
        throw new java.io.IOException(te);
11697
      }
11698
    }
11699
 
11700
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11701
      try {
11702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11703
      } catch (org.apache.thrift.TException te) {
11704
        throw new java.io.IOException(te);
11705
      }
11706
    }
11707
 
2462 chandransh 11708
  }
11709
 
3430 rajveer 11710
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
11711
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
2462 chandransh 11712
 
3430 rajveer 11713
    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);
11714
    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);
2462 chandransh 11715
 
3430 rajveer 11716
    private String success; // required
11717
    private PaymentException pe; // required
2462 chandransh 11718
 
11719
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11720
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 11721
      SUCCESS((short)0, "success"),
11722
      PE((short)1, "pe");
11723
 
11724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11725
 
11726
      static {
11727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11728
          byName.put(field.getFieldName(), field);
11729
        }
11730
      }
11731
 
11732
      /**
11733
       * Find the _Fields constant that matches fieldId, or null if its not found.
11734
       */
11735
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11736
        switch(fieldId) {
11737
          case 0: // SUCCESS
11738
            return SUCCESS;
11739
          case 1: // PE
11740
            return PE;
11741
          default:
11742
            return null;
11743
        }
2462 chandransh 11744
      }
11745
 
11746
      /**
11747
       * Find the _Fields constant that matches fieldId, throwing an exception
11748
       * if it is not found.
11749
       */
11750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11751
        _Fields fields = findByThriftId(fieldId);
11752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11753
        return fields;
11754
      }
11755
 
11756
      /**
11757
       * Find the _Fields constant that matches name, or null if its not found.
11758
       */
11759
      public static _Fields findByName(String name) {
11760
        return byName.get(name);
11761
      }
11762
 
11763
      private final short _thriftId;
11764
      private final String _fieldName;
11765
 
11766
      _Fields(short thriftId, String fieldName) {
11767
        _thriftId = thriftId;
11768
        _fieldName = fieldName;
11769
      }
11770
 
11771
      public short getThriftFieldId() {
11772
        return _thriftId;
11773
      }
11774
 
11775
      public String getFieldName() {
11776
        return _fieldName;
11777
      }
11778
    }
11779
 
11780
    // isset id assignments
11781
 
3430 rajveer 11782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 11783
    static {
3430 rajveer 11784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11785
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11787
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
2462 chandransh 11791
    }
11792
 
3010 chandransh 11793
    public initializeHdfcPayment_result() {
2462 chandransh 11794
    }
11795
 
3010 chandransh 11796
    public initializeHdfcPayment_result(
11797
      String success,
2462 chandransh 11798
      PaymentException pe)
11799
    {
11800
      this();
11801
      this.success = success;
11802
      this.pe = pe;
11803
    }
11804
 
11805
    /**
11806
     * Performs a deep copy on <i>other</i>.
11807
     */
3010 chandransh 11808
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
2462 chandransh 11809
      if (other.isSetSuccess()) {
3010 chandransh 11810
        this.success = other.success;
2462 chandransh 11811
      }
11812
      if (other.isSetPe()) {
11813
        this.pe = new PaymentException(other.pe);
11814
      }
11815
    }
11816
 
3010 chandransh 11817
    public initializeHdfcPayment_result deepCopy() {
11818
      return new initializeHdfcPayment_result(this);
2462 chandransh 11819
    }
11820
 
3430 rajveer 11821
    @Override
11822
    public void clear() {
11823
      this.success = null;
11824
      this.pe = null;
2462 chandransh 11825
    }
11826
 
3010 chandransh 11827
    public String getSuccess() {
2462 chandransh 11828
      return this.success;
11829
    }
11830
 
3430 rajveer 11831
    public void setSuccess(String success) {
2462 chandransh 11832
      this.success = success;
11833
    }
11834
 
11835
    public void unsetSuccess() {
11836
      this.success = null;
11837
    }
11838
 
3430 rajveer 11839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 11840
    public boolean isSetSuccess() {
11841
      return this.success != null;
11842
    }
11843
 
11844
    public void setSuccessIsSet(boolean value) {
11845
      if (!value) {
11846
        this.success = null;
11847
      }
11848
    }
11849
 
11850
    public PaymentException getPe() {
11851
      return this.pe;
11852
    }
11853
 
3430 rajveer 11854
    public void setPe(PaymentException pe) {
2462 chandransh 11855
      this.pe = pe;
11856
    }
11857
 
11858
    public void unsetPe() {
11859
      this.pe = null;
11860
    }
11861
 
3430 rajveer 11862
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 11863
    public boolean isSetPe() {
11864
      return this.pe != null;
11865
    }
11866
 
11867
    public void setPeIsSet(boolean value) {
11868
      if (!value) {
11869
        this.pe = null;
11870
      }
11871
    }
11872
 
11873
    public void setFieldValue(_Fields field, Object value) {
11874
      switch (field) {
11875
      case SUCCESS:
11876
        if (value == null) {
11877
          unsetSuccess();
11878
        } else {
3010 chandransh 11879
          setSuccess((String)value);
2462 chandransh 11880
        }
11881
        break;
11882
 
11883
      case PE:
11884
        if (value == null) {
11885
          unsetPe();
11886
        } else {
11887
          setPe((PaymentException)value);
11888
        }
11889
        break;
11890
 
11891
      }
11892
    }
11893
 
11894
    public Object getFieldValue(_Fields field) {
11895
      switch (field) {
11896
      case SUCCESS:
11897
        return getSuccess();
11898
 
11899
      case PE:
11900
        return getPe();
11901
 
11902
      }
11903
      throw new IllegalStateException();
11904
    }
11905
 
3430 rajveer 11906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11907
    public boolean isSet(_Fields field) {
11908
      if (field == null) {
11909
        throw new IllegalArgumentException();
11910
      }
2462 chandransh 11911
 
11912
      switch (field) {
11913
      case SUCCESS:
11914
        return isSetSuccess();
11915
      case PE:
11916
        return isSetPe();
11917
      }
11918
      throw new IllegalStateException();
11919
    }
11920
 
11921
    @Override
11922
    public boolean equals(Object that) {
11923
      if (that == null)
11924
        return false;
3010 chandransh 11925
      if (that instanceof initializeHdfcPayment_result)
11926
        return this.equals((initializeHdfcPayment_result)that);
2462 chandransh 11927
      return false;
11928
    }
11929
 
3010 chandransh 11930
    public boolean equals(initializeHdfcPayment_result that) {
2462 chandransh 11931
      if (that == null)
11932
        return false;
11933
 
11934
      boolean this_present_success = true && this.isSetSuccess();
11935
      boolean that_present_success = true && that.isSetSuccess();
11936
      if (this_present_success || that_present_success) {
11937
        if (!(this_present_success && that_present_success))
11938
          return false;
11939
        if (!this.success.equals(that.success))
11940
          return false;
11941
      }
11942
 
11943
      boolean this_present_pe = true && this.isSetPe();
11944
      boolean that_present_pe = true && that.isSetPe();
11945
      if (this_present_pe || that_present_pe) {
11946
        if (!(this_present_pe && that_present_pe))
11947
          return false;
11948
        if (!this.pe.equals(that.pe))
11949
          return false;
11950
      }
11951
 
11952
      return true;
11953
    }
11954
 
11955
    @Override
11956
    public int hashCode() {
11957
      return 0;
11958
    }
11959
 
3010 chandransh 11960
    public int compareTo(initializeHdfcPayment_result other) {
11961
      if (!getClass().equals(other.getClass())) {
11962
        return getClass().getName().compareTo(other.getClass().getName());
11963
      }
11964
 
11965
      int lastComparison = 0;
11966
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
11967
 
3430 rajveer 11968
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3010 chandransh 11969
      if (lastComparison != 0) {
11970
        return lastComparison;
11971
      }
3430 rajveer 11972
      if (isSetSuccess()) {
11973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11974
        if (lastComparison != 0) {
11975
          return lastComparison;
11976
        }
3010 chandransh 11977
      }
3430 rajveer 11978
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3010 chandransh 11979
      if (lastComparison != 0) {
11980
        return lastComparison;
11981
      }
3430 rajveer 11982
      if (isSetPe()) {
11983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
11984
        if (lastComparison != 0) {
11985
          return lastComparison;
11986
        }
3010 chandransh 11987
      }
11988
      return 0;
11989
    }
11990
 
3430 rajveer 11991
    public _Fields fieldForId(int fieldId) {
11992
      return _Fields.findByThriftId(fieldId);
11993
    }
11994
 
11995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11996
      org.apache.thrift.protocol.TField field;
2462 chandransh 11997
      iprot.readStructBegin();
11998
      while (true)
11999
      {
12000
        field = iprot.readFieldBegin();
3430 rajveer 12001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 12002
          break;
12003
        }
3430 rajveer 12004
        switch (field.id) {
12005
          case 0: // SUCCESS
12006
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12007
              this.success = iprot.readString();
12008
            } else { 
12009
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12010
            }
12011
            break;
12012
          case 1: // PE
12013
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12014
              this.pe = new PaymentException();
12015
              this.pe.read(iprot);
12016
            } else { 
12017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12018
            }
12019
            break;
12020
          default:
12021
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 12022
        }
3430 rajveer 12023
        iprot.readFieldEnd();
2462 chandransh 12024
      }
12025
      iprot.readStructEnd();
12026
      validate();
12027
    }
12028
 
3430 rajveer 12029
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 12030
      oprot.writeStructBegin(STRUCT_DESC);
12031
 
12032
      if (this.isSetSuccess()) {
12033
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 12034
        oprot.writeString(this.success);
2462 chandransh 12035
        oprot.writeFieldEnd();
12036
      } else if (this.isSetPe()) {
12037
        oprot.writeFieldBegin(PE_FIELD_DESC);
12038
        this.pe.write(oprot);
12039
        oprot.writeFieldEnd();
12040
      }
12041
      oprot.writeFieldStop();
12042
      oprot.writeStructEnd();
12043
    }
12044
 
12045
    @Override
12046
    public String toString() {
3010 chandransh 12047
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
2462 chandransh 12048
      boolean first = true;
12049
 
12050
      sb.append("success:");
12051
      if (this.success == null) {
12052
        sb.append("null");
12053
      } else {
12054
        sb.append(this.success);
12055
      }
12056
      first = false;
12057
      if (!first) sb.append(", ");
12058
      sb.append("pe:");
12059
      if (this.pe == null) {
12060
        sb.append("null");
12061
      } else {
12062
        sb.append(this.pe);
12063
      }
12064
      first = false;
12065
      sb.append(")");
12066
      return sb.toString();
12067
    }
12068
 
3430 rajveer 12069
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 12070
      // check for required fields
12071
    }
12072
 
3430 rajveer 12073
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12074
      try {
12075
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12076
      } catch (org.apache.thrift.TException te) {
12077
        throw new java.io.IOException(te);
12078
      }
12079
    }
12080
 
12081
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12082
      try {
12083
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12084
      } catch (org.apache.thrift.TException te) {
12085
        throw new java.io.IOException(te);
12086
      }
12087
    }
12088
 
2462 chandransh 12089
  }
12090
 
6050 anupam.sin 12091
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
12092
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
12093
 
12094
    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);
12095
    private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
12096
 
12097
    private long merchantPaymentId; // required
12098
    private long rechargeOrderId; // required
12099
 
12100
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12101
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12102
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
12103
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId");
12104
 
12105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12106
 
12107
      static {
12108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12109
          byName.put(field.getFieldName(), field);
12110
        }
12111
      }
12112
 
12113
      /**
12114
       * Find the _Fields constant that matches fieldId, or null if its not found.
12115
       */
12116
      public static _Fields findByThriftId(int fieldId) {
12117
        switch(fieldId) {
12118
          case 1: // MERCHANT_PAYMENT_ID
12119
            return MERCHANT_PAYMENT_ID;
12120
          case 2: // RECHARGE_ORDER_ID
12121
            return RECHARGE_ORDER_ID;
12122
          default:
12123
            return null;
12124
        }
12125
      }
12126
 
12127
      /**
12128
       * Find the _Fields constant that matches fieldId, throwing an exception
12129
       * if it is not found.
12130
       */
12131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12132
        _Fields fields = findByThriftId(fieldId);
12133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12134
        return fields;
12135
      }
12136
 
12137
      /**
12138
       * Find the _Fields constant that matches name, or null if its not found.
12139
       */
12140
      public static _Fields findByName(String name) {
12141
        return byName.get(name);
12142
      }
12143
 
12144
      private final short _thriftId;
12145
      private final String _fieldName;
12146
 
12147
      _Fields(short thriftId, String fieldName) {
12148
        _thriftId = thriftId;
12149
        _fieldName = fieldName;
12150
      }
12151
 
12152
      public short getThriftFieldId() {
12153
        return _thriftId;
12154
      }
12155
 
12156
      public String getFieldName() {
12157
        return _fieldName;
12158
      }
12159
    }
12160
 
12161
    // isset id assignments
12162
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
12163
    private static final int __RECHARGEORDERID_ISSET_ID = 1;
12164
    private BitSet __isset_bit_vector = new BitSet(2);
12165
 
12166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12167
    static {
12168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12169
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12171
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
12175
    }
12176
 
12177
    public doHdfcPaymentForDigitalOrder_args() {
12178
    }
12179
 
12180
    public doHdfcPaymentForDigitalOrder_args(
12181
      long merchantPaymentId,
12182
      long rechargeOrderId)
12183
    {
12184
      this();
12185
      this.merchantPaymentId = merchantPaymentId;
12186
      setMerchantPaymentIdIsSet(true);
12187
      this.rechargeOrderId = rechargeOrderId;
12188
      setRechargeOrderIdIsSet(true);
12189
    }
12190
 
12191
    /**
12192
     * Performs a deep copy on <i>other</i>.
12193
     */
12194
    public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
12195
      __isset_bit_vector.clear();
12196
      __isset_bit_vector.or(other.__isset_bit_vector);
12197
      this.merchantPaymentId = other.merchantPaymentId;
12198
      this.rechargeOrderId = other.rechargeOrderId;
12199
    }
12200
 
12201
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
12202
      return new doHdfcPaymentForDigitalOrder_args(this);
12203
    }
12204
 
12205
    @Override
12206
    public void clear() {
12207
      setMerchantPaymentIdIsSet(false);
12208
      this.merchantPaymentId = 0;
12209
      setRechargeOrderIdIsSet(false);
12210
      this.rechargeOrderId = 0;
12211
    }
12212
 
12213
    public long getMerchantPaymentId() {
12214
      return this.merchantPaymentId;
12215
    }
12216
 
12217
    public void setMerchantPaymentId(long merchantPaymentId) {
12218
      this.merchantPaymentId = merchantPaymentId;
12219
      setMerchantPaymentIdIsSet(true);
12220
    }
12221
 
12222
    public void unsetMerchantPaymentId() {
12223
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
12224
    }
12225
 
12226
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
12227
    public boolean isSetMerchantPaymentId() {
12228
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
12229
    }
12230
 
12231
    public void setMerchantPaymentIdIsSet(boolean value) {
12232
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12233
    }
12234
 
12235
    public long getRechargeOrderId() {
12236
      return this.rechargeOrderId;
12237
    }
12238
 
12239
    public void setRechargeOrderId(long rechargeOrderId) {
12240
      this.rechargeOrderId = rechargeOrderId;
12241
      setRechargeOrderIdIsSet(true);
12242
    }
12243
 
12244
    public void unsetRechargeOrderId() {
12245
      __isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
12246
    }
12247
 
12248
    /** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
12249
    public boolean isSetRechargeOrderId() {
12250
      return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
12251
    }
12252
 
12253
    public void setRechargeOrderIdIsSet(boolean value) {
12254
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
12255
    }
12256
 
12257
    public void setFieldValue(_Fields field, Object value) {
12258
      switch (field) {
12259
      case MERCHANT_PAYMENT_ID:
12260
        if (value == null) {
12261
          unsetMerchantPaymentId();
12262
        } else {
12263
          setMerchantPaymentId((Long)value);
12264
        }
12265
        break;
12266
 
12267
      case RECHARGE_ORDER_ID:
12268
        if (value == null) {
12269
          unsetRechargeOrderId();
12270
        } else {
12271
          setRechargeOrderId((Long)value);
12272
        }
12273
        break;
12274
 
12275
      }
12276
    }
12277
 
12278
    public Object getFieldValue(_Fields field) {
12279
      switch (field) {
12280
      case MERCHANT_PAYMENT_ID:
12281
        return Long.valueOf(getMerchantPaymentId());
12282
 
12283
      case RECHARGE_ORDER_ID:
12284
        return Long.valueOf(getRechargeOrderId());
12285
 
12286
      }
12287
      throw new IllegalStateException();
12288
    }
12289
 
12290
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12291
    public boolean isSet(_Fields field) {
12292
      if (field == null) {
12293
        throw new IllegalArgumentException();
12294
      }
12295
 
12296
      switch (field) {
12297
      case MERCHANT_PAYMENT_ID:
12298
        return isSetMerchantPaymentId();
12299
      case RECHARGE_ORDER_ID:
12300
        return isSetRechargeOrderId();
12301
      }
12302
      throw new IllegalStateException();
12303
    }
12304
 
12305
    @Override
12306
    public boolean equals(Object that) {
12307
      if (that == null)
12308
        return false;
12309
      if (that instanceof doHdfcPaymentForDigitalOrder_args)
12310
        return this.equals((doHdfcPaymentForDigitalOrder_args)that);
12311
      return false;
12312
    }
12313
 
12314
    public boolean equals(doHdfcPaymentForDigitalOrder_args that) {
12315
      if (that == null)
12316
        return false;
12317
 
12318
      boolean this_present_merchantPaymentId = true;
12319
      boolean that_present_merchantPaymentId = true;
12320
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
12321
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
12322
          return false;
12323
        if (this.merchantPaymentId != that.merchantPaymentId)
12324
          return false;
12325
      }
12326
 
12327
      boolean this_present_rechargeOrderId = true;
12328
      boolean that_present_rechargeOrderId = true;
12329
      if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
12330
        if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
12331
          return false;
12332
        if (this.rechargeOrderId != that.rechargeOrderId)
12333
          return false;
12334
      }
12335
 
12336
      return true;
12337
    }
12338
 
12339
    @Override
12340
    public int hashCode() {
12341
      return 0;
12342
    }
12343
 
12344
    public int compareTo(doHdfcPaymentForDigitalOrder_args other) {
12345
      if (!getClass().equals(other.getClass())) {
12346
        return getClass().getName().compareTo(other.getClass().getName());
12347
      }
12348
 
12349
      int lastComparison = 0;
12350
      doHdfcPaymentForDigitalOrder_args typedOther = (doHdfcPaymentForDigitalOrder_args)other;
12351
 
12352
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
12353
      if (lastComparison != 0) {
12354
        return lastComparison;
12355
      }
12356
      if (isSetMerchantPaymentId()) {
12357
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
12358
        if (lastComparison != 0) {
12359
          return lastComparison;
12360
        }
12361
      }
12362
      lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
12363
      if (lastComparison != 0) {
12364
        return lastComparison;
12365
      }
12366
      if (isSetRechargeOrderId()) {
12367
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
12368
        if (lastComparison != 0) {
12369
          return lastComparison;
12370
        }
12371
      }
12372
      return 0;
12373
    }
12374
 
12375
    public _Fields fieldForId(int fieldId) {
12376
      return _Fields.findByThriftId(fieldId);
12377
    }
12378
 
12379
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12380
      org.apache.thrift.protocol.TField field;
12381
      iprot.readStructBegin();
12382
      while (true)
12383
      {
12384
        field = iprot.readFieldBegin();
12385
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12386
          break;
12387
        }
12388
        switch (field.id) {
12389
          case 1: // MERCHANT_PAYMENT_ID
12390
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12391
              this.merchantPaymentId = iprot.readI64();
12392
              setMerchantPaymentIdIsSet(true);
12393
            } else { 
12394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12395
            }
12396
            break;
12397
          case 2: // RECHARGE_ORDER_ID
12398
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12399
              this.rechargeOrderId = iprot.readI64();
12400
              setRechargeOrderIdIsSet(true);
12401
            } else { 
12402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12403
            }
12404
            break;
12405
          default:
12406
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12407
        }
12408
        iprot.readFieldEnd();
12409
      }
12410
      iprot.readStructEnd();
12411
      validate();
12412
    }
12413
 
12414
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12415
      validate();
12416
 
12417
      oprot.writeStructBegin(STRUCT_DESC);
12418
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12419
      oprot.writeI64(this.merchantPaymentId);
12420
      oprot.writeFieldEnd();
12421
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
12422
      oprot.writeI64(this.rechargeOrderId);
12423
      oprot.writeFieldEnd();
12424
      oprot.writeFieldStop();
12425
      oprot.writeStructEnd();
12426
    }
12427
 
12428
    @Override
12429
    public String toString() {
12430
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_args(");
12431
      boolean first = true;
12432
 
12433
      sb.append("merchantPaymentId:");
12434
      sb.append(this.merchantPaymentId);
12435
      first = false;
12436
      if (!first) sb.append(", ");
12437
      sb.append("rechargeOrderId:");
12438
      sb.append(this.rechargeOrderId);
12439
      first = false;
12440
      sb.append(")");
12441
      return sb.toString();
12442
    }
12443
 
12444
    public void validate() throws org.apache.thrift.TException {
12445
      // check for required fields
12446
    }
12447
 
12448
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12449
      try {
12450
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12451
      } catch (org.apache.thrift.TException te) {
12452
        throw new java.io.IOException(te);
12453
      }
12454
    }
12455
 
12456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12457
      try {
12458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12459
      } catch (org.apache.thrift.TException te) {
12460
        throw new java.io.IOException(te);
12461
      }
12462
    }
12463
 
12464
  }
12465
 
12466
  public static class doHdfcPaymentForDigitalOrder_result implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_result, doHdfcPaymentForDigitalOrder_result._Fields>, java.io.Serializable, Cloneable   {
12467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_result");
12468
 
12469
    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);
12470
    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);
12471
 
12472
    private String success; // required
12473
    private PaymentException pe; // required
12474
 
12475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12477
      SUCCESS((short)0, "success"),
12478
      PE((short)1, "pe");
12479
 
12480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12481
 
12482
      static {
12483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12484
          byName.put(field.getFieldName(), field);
12485
        }
12486
      }
12487
 
12488
      /**
12489
       * Find the _Fields constant that matches fieldId, or null if its not found.
12490
       */
12491
      public static _Fields findByThriftId(int fieldId) {
12492
        switch(fieldId) {
12493
          case 0: // SUCCESS
12494
            return SUCCESS;
12495
          case 1: // PE
12496
            return PE;
12497
          default:
12498
            return null;
12499
        }
12500
      }
12501
 
12502
      /**
12503
       * Find the _Fields constant that matches fieldId, throwing an exception
12504
       * if it is not found.
12505
       */
12506
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12507
        _Fields fields = findByThriftId(fieldId);
12508
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12509
        return fields;
12510
      }
12511
 
12512
      /**
12513
       * Find the _Fields constant that matches name, or null if its not found.
12514
       */
12515
      public static _Fields findByName(String name) {
12516
        return byName.get(name);
12517
      }
12518
 
12519
      private final short _thriftId;
12520
      private final String _fieldName;
12521
 
12522
      _Fields(short thriftId, String fieldName) {
12523
        _thriftId = thriftId;
12524
        _fieldName = fieldName;
12525
      }
12526
 
12527
      public short getThriftFieldId() {
12528
        return _thriftId;
12529
      }
12530
 
12531
      public String getFieldName() {
12532
        return _fieldName;
12533
      }
12534
    }
12535
 
12536
    // isset id assignments
12537
 
12538
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12539
    static {
12540
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12541
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12543
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_result.class, metaDataMap);
12547
    }
12548
 
12549
    public doHdfcPaymentForDigitalOrder_result() {
12550
    }
12551
 
12552
    public doHdfcPaymentForDigitalOrder_result(
12553
      String success,
12554
      PaymentException pe)
12555
    {
12556
      this();
12557
      this.success = success;
12558
      this.pe = pe;
12559
    }
12560
 
12561
    /**
12562
     * Performs a deep copy on <i>other</i>.
12563
     */
12564
    public doHdfcPaymentForDigitalOrder_result(doHdfcPaymentForDigitalOrder_result other) {
12565
      if (other.isSetSuccess()) {
12566
        this.success = other.success;
12567
      }
12568
      if (other.isSetPe()) {
12569
        this.pe = new PaymentException(other.pe);
12570
      }
12571
    }
12572
 
12573
    public doHdfcPaymentForDigitalOrder_result deepCopy() {
12574
      return new doHdfcPaymentForDigitalOrder_result(this);
12575
    }
12576
 
12577
    @Override
12578
    public void clear() {
12579
      this.success = null;
12580
      this.pe = null;
12581
    }
12582
 
12583
    public String getSuccess() {
12584
      return this.success;
12585
    }
12586
 
12587
    public void setSuccess(String success) {
12588
      this.success = success;
12589
    }
12590
 
12591
    public void unsetSuccess() {
12592
      this.success = null;
12593
    }
12594
 
12595
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12596
    public boolean isSetSuccess() {
12597
      return this.success != null;
12598
    }
12599
 
12600
    public void setSuccessIsSet(boolean value) {
12601
      if (!value) {
12602
        this.success = null;
12603
      }
12604
    }
12605
 
12606
    public PaymentException getPe() {
12607
      return this.pe;
12608
    }
12609
 
12610
    public void setPe(PaymentException pe) {
12611
      this.pe = pe;
12612
    }
12613
 
12614
    public void unsetPe() {
12615
      this.pe = null;
12616
    }
12617
 
12618
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
12619
    public boolean isSetPe() {
12620
      return this.pe != null;
12621
    }
12622
 
12623
    public void setPeIsSet(boolean value) {
12624
      if (!value) {
12625
        this.pe = null;
12626
      }
12627
    }
12628
 
12629
    public void setFieldValue(_Fields field, Object value) {
12630
      switch (field) {
12631
      case SUCCESS:
12632
        if (value == null) {
12633
          unsetSuccess();
12634
        } else {
12635
          setSuccess((String)value);
12636
        }
12637
        break;
12638
 
12639
      case PE:
12640
        if (value == null) {
12641
          unsetPe();
12642
        } else {
12643
          setPe((PaymentException)value);
12644
        }
12645
        break;
12646
 
12647
      }
12648
    }
12649
 
12650
    public Object getFieldValue(_Fields field) {
12651
      switch (field) {
12652
      case SUCCESS:
12653
        return getSuccess();
12654
 
12655
      case PE:
12656
        return getPe();
12657
 
12658
      }
12659
      throw new IllegalStateException();
12660
    }
12661
 
12662
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12663
    public boolean isSet(_Fields field) {
12664
      if (field == null) {
12665
        throw new IllegalArgumentException();
12666
      }
12667
 
12668
      switch (field) {
12669
      case SUCCESS:
12670
        return isSetSuccess();
12671
      case PE:
12672
        return isSetPe();
12673
      }
12674
      throw new IllegalStateException();
12675
    }
12676
 
12677
    @Override
12678
    public boolean equals(Object that) {
12679
      if (that == null)
12680
        return false;
12681
      if (that instanceof doHdfcPaymentForDigitalOrder_result)
12682
        return this.equals((doHdfcPaymentForDigitalOrder_result)that);
12683
      return false;
12684
    }
12685
 
12686
    public boolean equals(doHdfcPaymentForDigitalOrder_result that) {
12687
      if (that == null)
12688
        return false;
12689
 
12690
      boolean this_present_success = true && this.isSetSuccess();
12691
      boolean that_present_success = true && that.isSetSuccess();
12692
      if (this_present_success || that_present_success) {
12693
        if (!(this_present_success && that_present_success))
12694
          return false;
12695
        if (!this.success.equals(that.success))
12696
          return false;
12697
      }
12698
 
12699
      boolean this_present_pe = true && this.isSetPe();
12700
      boolean that_present_pe = true && that.isSetPe();
12701
      if (this_present_pe || that_present_pe) {
12702
        if (!(this_present_pe && that_present_pe))
12703
          return false;
12704
        if (!this.pe.equals(that.pe))
12705
          return false;
12706
      }
12707
 
12708
      return true;
12709
    }
12710
 
12711
    @Override
12712
    public int hashCode() {
12713
      return 0;
12714
    }
12715
 
12716
    public int compareTo(doHdfcPaymentForDigitalOrder_result other) {
12717
      if (!getClass().equals(other.getClass())) {
12718
        return getClass().getName().compareTo(other.getClass().getName());
12719
      }
12720
 
12721
      int lastComparison = 0;
12722
      doHdfcPaymentForDigitalOrder_result typedOther = (doHdfcPaymentForDigitalOrder_result)other;
12723
 
12724
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12725
      if (lastComparison != 0) {
12726
        return lastComparison;
12727
      }
12728
      if (isSetSuccess()) {
12729
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12730
        if (lastComparison != 0) {
12731
          return lastComparison;
12732
        }
12733
      }
12734
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
12735
      if (lastComparison != 0) {
12736
        return lastComparison;
12737
      }
12738
      if (isSetPe()) {
12739
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
12740
        if (lastComparison != 0) {
12741
          return lastComparison;
12742
        }
12743
      }
12744
      return 0;
12745
    }
12746
 
12747
    public _Fields fieldForId(int fieldId) {
12748
      return _Fields.findByThriftId(fieldId);
12749
    }
12750
 
12751
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12752
      org.apache.thrift.protocol.TField field;
12753
      iprot.readStructBegin();
12754
      while (true)
12755
      {
12756
        field = iprot.readFieldBegin();
12757
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12758
          break;
12759
        }
12760
        switch (field.id) {
12761
          case 0: // SUCCESS
12762
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12763
              this.success = iprot.readString();
12764
            } else { 
12765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12766
            }
12767
            break;
12768
          case 1: // PE
12769
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12770
              this.pe = new PaymentException();
12771
              this.pe.read(iprot);
12772
            } else { 
12773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12774
            }
12775
            break;
12776
          default:
12777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12778
        }
12779
        iprot.readFieldEnd();
12780
      }
12781
      iprot.readStructEnd();
12782
      validate();
12783
    }
12784
 
12785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12786
      oprot.writeStructBegin(STRUCT_DESC);
12787
 
12788
      if (this.isSetSuccess()) {
12789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12790
        oprot.writeString(this.success);
12791
        oprot.writeFieldEnd();
12792
      } else if (this.isSetPe()) {
12793
        oprot.writeFieldBegin(PE_FIELD_DESC);
12794
        this.pe.write(oprot);
12795
        oprot.writeFieldEnd();
12796
      }
12797
      oprot.writeFieldStop();
12798
      oprot.writeStructEnd();
12799
    }
12800
 
12801
    @Override
12802
    public String toString() {
12803
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_result(");
12804
      boolean first = true;
12805
 
12806
      sb.append("success:");
12807
      if (this.success == null) {
12808
        sb.append("null");
12809
      } else {
12810
        sb.append(this.success);
12811
      }
12812
      first = false;
12813
      if (!first) sb.append(", ");
12814
      sb.append("pe:");
12815
      if (this.pe == null) {
12816
        sb.append("null");
12817
      } else {
12818
        sb.append(this.pe);
12819
      }
12820
      first = false;
12821
      sb.append(")");
12822
      return sb.toString();
12823
    }
12824
 
12825
    public void validate() throws org.apache.thrift.TException {
12826
      // check for required fields
12827
    }
12828
 
12829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12830
      try {
12831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12832
      } catch (org.apache.thrift.TException te) {
12833
        throw new java.io.IOException(te);
12834
      }
12835
    }
12836
 
12837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12838
      try {
12839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12840
      } catch (org.apache.thrift.TException te) {
12841
        throw new java.io.IOException(te);
12842
      }
12843
    }
12844
 
12845
  }
12846
 
3616 chandransh 12847
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
12848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
12849
 
12850
    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);
12851
 
12852
    private long merchantPaymentId; // required
12853
 
12854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12855
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12856
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
12857
 
12858
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12859
 
12860
      static {
12861
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12862
          byName.put(field.getFieldName(), field);
12863
        }
12864
      }
12865
 
12866
      /**
12867
       * Find the _Fields constant that matches fieldId, or null if its not found.
12868
       */
12869
      public static _Fields findByThriftId(int fieldId) {
12870
        switch(fieldId) {
12871
          case 1: // MERCHANT_PAYMENT_ID
12872
            return MERCHANT_PAYMENT_ID;
12873
          default:
12874
            return null;
12875
        }
12876
      }
12877
 
12878
      /**
12879
       * Find the _Fields constant that matches fieldId, throwing an exception
12880
       * if it is not found.
12881
       */
12882
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12883
        _Fields fields = findByThriftId(fieldId);
12884
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12885
        return fields;
12886
      }
12887
 
12888
      /**
12889
       * Find the _Fields constant that matches name, or null if its not found.
12890
       */
12891
      public static _Fields findByName(String name) {
12892
        return byName.get(name);
12893
      }
12894
 
12895
      private final short _thriftId;
12896
      private final String _fieldName;
12897
 
12898
      _Fields(short thriftId, String fieldName) {
12899
        _thriftId = thriftId;
12900
        _fieldName = fieldName;
12901
      }
12902
 
12903
      public short getThriftFieldId() {
12904
        return _thriftId;
12905
      }
12906
 
12907
      public String getFieldName() {
12908
        return _fieldName;
12909
      }
12910
    }
12911
 
12912
    // isset id assignments
12913
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
12914
    private BitSet __isset_bit_vector = new BitSet(1);
12915
 
12916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12917
    static {
12918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12919
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
12923
    }
12924
 
12925
    public initializeHdfcEmiPayment_args() {
12926
    }
12927
 
12928
    public initializeHdfcEmiPayment_args(
12929
      long merchantPaymentId)
12930
    {
12931
      this();
12932
      this.merchantPaymentId = merchantPaymentId;
12933
      setMerchantPaymentIdIsSet(true);
12934
    }
12935
 
12936
    /**
12937
     * Performs a deep copy on <i>other</i>.
12938
     */
12939
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
12940
      __isset_bit_vector.clear();
12941
      __isset_bit_vector.or(other.__isset_bit_vector);
12942
      this.merchantPaymentId = other.merchantPaymentId;
12943
    }
12944
 
12945
    public initializeHdfcEmiPayment_args deepCopy() {
12946
      return new initializeHdfcEmiPayment_args(this);
12947
    }
12948
 
12949
    @Override
12950
    public void clear() {
12951
      setMerchantPaymentIdIsSet(false);
12952
      this.merchantPaymentId = 0;
12953
    }
12954
 
12955
    public long getMerchantPaymentId() {
12956
      return this.merchantPaymentId;
12957
    }
12958
 
12959
    public void setMerchantPaymentId(long merchantPaymentId) {
12960
      this.merchantPaymentId = merchantPaymentId;
12961
      setMerchantPaymentIdIsSet(true);
12962
    }
12963
 
12964
    public void unsetMerchantPaymentId() {
12965
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
12966
    }
12967
 
12968
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
12969
    public boolean isSetMerchantPaymentId() {
12970
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
12971
    }
12972
 
12973
    public void setMerchantPaymentIdIsSet(boolean value) {
12974
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12975
    }
12976
 
12977
    public void setFieldValue(_Fields field, Object value) {
12978
      switch (field) {
12979
      case MERCHANT_PAYMENT_ID:
12980
        if (value == null) {
12981
          unsetMerchantPaymentId();
12982
        } else {
12983
          setMerchantPaymentId((Long)value);
12984
        }
12985
        break;
12986
 
12987
      }
12988
    }
12989
 
12990
    public Object getFieldValue(_Fields field) {
12991
      switch (field) {
12992
      case MERCHANT_PAYMENT_ID:
12993
        return Long.valueOf(getMerchantPaymentId());
12994
 
12995
      }
12996
      throw new IllegalStateException();
12997
    }
12998
 
12999
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13000
    public boolean isSet(_Fields field) {
13001
      if (field == null) {
13002
        throw new IllegalArgumentException();
13003
      }
13004
 
13005
      switch (field) {
13006
      case MERCHANT_PAYMENT_ID:
13007
        return isSetMerchantPaymentId();
13008
      }
13009
      throw new IllegalStateException();
13010
    }
13011
 
13012
    @Override
13013
    public boolean equals(Object that) {
13014
      if (that == null)
13015
        return false;
13016
      if (that instanceof initializeHdfcEmiPayment_args)
13017
        return this.equals((initializeHdfcEmiPayment_args)that);
13018
      return false;
13019
    }
13020
 
13021
    public boolean equals(initializeHdfcEmiPayment_args that) {
13022
      if (that == null)
13023
        return false;
13024
 
13025
      boolean this_present_merchantPaymentId = true;
13026
      boolean that_present_merchantPaymentId = true;
13027
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
13028
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
13029
          return false;
13030
        if (this.merchantPaymentId != that.merchantPaymentId)
13031
          return false;
13032
      }
13033
 
13034
      return true;
13035
    }
13036
 
13037
    @Override
13038
    public int hashCode() {
13039
      return 0;
13040
    }
13041
 
13042
    public int compareTo(initializeHdfcEmiPayment_args other) {
13043
      if (!getClass().equals(other.getClass())) {
13044
        return getClass().getName().compareTo(other.getClass().getName());
13045
      }
13046
 
13047
      int lastComparison = 0;
13048
      initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
13049
 
13050
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
13051
      if (lastComparison != 0) {
13052
        return lastComparison;
13053
      }
13054
      if (isSetMerchantPaymentId()) {
13055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
13056
        if (lastComparison != 0) {
13057
          return lastComparison;
13058
        }
13059
      }
13060
      return 0;
13061
    }
13062
 
13063
    public _Fields fieldForId(int fieldId) {
13064
      return _Fields.findByThriftId(fieldId);
13065
    }
13066
 
13067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13068
      org.apache.thrift.protocol.TField field;
13069
      iprot.readStructBegin();
13070
      while (true)
13071
      {
13072
        field = iprot.readFieldBegin();
13073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13074
          break;
13075
        }
13076
        switch (field.id) {
13077
          case 1: // MERCHANT_PAYMENT_ID
13078
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13079
              this.merchantPaymentId = iprot.readI64();
13080
              setMerchantPaymentIdIsSet(true);
13081
            } else { 
13082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13083
            }
13084
            break;
13085
          default:
13086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13087
        }
13088
        iprot.readFieldEnd();
13089
      }
13090
      iprot.readStructEnd();
13091
      validate();
13092
    }
13093
 
13094
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13095
      validate();
13096
 
13097
      oprot.writeStructBegin(STRUCT_DESC);
13098
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
13099
      oprot.writeI64(this.merchantPaymentId);
13100
      oprot.writeFieldEnd();
13101
      oprot.writeFieldStop();
13102
      oprot.writeStructEnd();
13103
    }
13104
 
13105
    @Override
13106
    public String toString() {
13107
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
13108
      boolean first = true;
13109
 
13110
      sb.append("merchantPaymentId:");
13111
      sb.append(this.merchantPaymentId);
13112
      first = false;
13113
      sb.append(")");
13114
      return sb.toString();
13115
    }
13116
 
13117
    public void validate() throws org.apache.thrift.TException {
13118
      // check for required fields
13119
    }
13120
 
13121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13122
      try {
13123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13124
      } catch (org.apache.thrift.TException te) {
13125
        throw new java.io.IOException(te);
13126
      }
13127
    }
13128
 
13129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13130
      try {
13131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13132
      } catch (org.apache.thrift.TException te) {
13133
        throw new java.io.IOException(te);
13134
      }
13135
    }
13136
 
13137
  }
13138
 
13139
  public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable   {
13140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
13141
 
13142
    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);
13143
    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);
13144
 
13145
    private String success; // required
13146
    private PaymentException pe; // required
13147
 
13148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13150
      SUCCESS((short)0, "success"),
13151
      PE((short)1, "pe");
13152
 
13153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13154
 
13155
      static {
13156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13157
          byName.put(field.getFieldName(), field);
13158
        }
13159
      }
13160
 
13161
      /**
13162
       * Find the _Fields constant that matches fieldId, or null if its not found.
13163
       */
13164
      public static _Fields findByThriftId(int fieldId) {
13165
        switch(fieldId) {
13166
          case 0: // SUCCESS
13167
            return SUCCESS;
13168
          case 1: // PE
13169
            return PE;
13170
          default:
13171
            return null;
13172
        }
13173
      }
13174
 
13175
      /**
13176
       * Find the _Fields constant that matches fieldId, throwing an exception
13177
       * if it is not found.
13178
       */
13179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13180
        _Fields fields = findByThriftId(fieldId);
13181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13182
        return fields;
13183
      }
13184
 
13185
      /**
13186
       * Find the _Fields constant that matches name, or null if its not found.
13187
       */
13188
      public static _Fields findByName(String name) {
13189
        return byName.get(name);
13190
      }
13191
 
13192
      private final short _thriftId;
13193
      private final String _fieldName;
13194
 
13195
      _Fields(short thriftId, String fieldName) {
13196
        _thriftId = thriftId;
13197
        _fieldName = fieldName;
13198
      }
13199
 
13200
      public short getThriftFieldId() {
13201
        return _thriftId;
13202
      }
13203
 
13204
      public String getFieldName() {
13205
        return _fieldName;
13206
      }
13207
    }
13208
 
13209
    // isset id assignments
13210
 
13211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13212
    static {
13213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13214
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13216
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
13220
    }
13221
 
13222
    public initializeHdfcEmiPayment_result() {
13223
    }
13224
 
13225
    public initializeHdfcEmiPayment_result(
13226
      String success,
13227
      PaymentException pe)
13228
    {
13229
      this();
13230
      this.success = success;
13231
      this.pe = pe;
13232
    }
13233
 
13234
    /**
13235
     * Performs a deep copy on <i>other</i>.
13236
     */
13237
    public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
13238
      if (other.isSetSuccess()) {
13239
        this.success = other.success;
13240
      }
13241
      if (other.isSetPe()) {
13242
        this.pe = new PaymentException(other.pe);
13243
      }
13244
    }
13245
 
13246
    public initializeHdfcEmiPayment_result deepCopy() {
13247
      return new initializeHdfcEmiPayment_result(this);
13248
    }
13249
 
13250
    @Override
13251
    public void clear() {
13252
      this.success = null;
13253
      this.pe = null;
13254
    }
13255
 
13256
    public String getSuccess() {
13257
      return this.success;
13258
    }
13259
 
13260
    public void setSuccess(String success) {
13261
      this.success = success;
13262
    }
13263
 
13264
    public void unsetSuccess() {
13265
      this.success = null;
13266
    }
13267
 
13268
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13269
    public boolean isSetSuccess() {
13270
      return this.success != null;
13271
    }
13272
 
13273
    public void setSuccessIsSet(boolean value) {
13274
      if (!value) {
13275
        this.success = null;
13276
      }
13277
    }
13278
 
13279
    public PaymentException getPe() {
13280
      return this.pe;
13281
    }
13282
 
13283
    public void setPe(PaymentException pe) {
13284
      this.pe = pe;
13285
    }
13286
 
13287
    public void unsetPe() {
13288
      this.pe = null;
13289
    }
13290
 
13291
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
13292
    public boolean isSetPe() {
13293
      return this.pe != null;
13294
    }
13295
 
13296
    public void setPeIsSet(boolean value) {
13297
      if (!value) {
13298
        this.pe = null;
13299
      }
13300
    }
13301
 
13302
    public void setFieldValue(_Fields field, Object value) {
13303
      switch (field) {
13304
      case SUCCESS:
13305
        if (value == null) {
13306
          unsetSuccess();
13307
        } else {
13308
          setSuccess((String)value);
13309
        }
13310
        break;
13311
 
13312
      case PE:
13313
        if (value == null) {
13314
          unsetPe();
13315
        } else {
13316
          setPe((PaymentException)value);
13317
        }
13318
        break;
13319
 
13320
      }
13321
    }
13322
 
13323
    public Object getFieldValue(_Fields field) {
13324
      switch (field) {
13325
      case SUCCESS:
13326
        return getSuccess();
13327
 
13328
      case PE:
13329
        return getPe();
13330
 
13331
      }
13332
      throw new IllegalStateException();
13333
    }
13334
 
13335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13336
    public boolean isSet(_Fields field) {
13337
      if (field == null) {
13338
        throw new IllegalArgumentException();
13339
      }
13340
 
13341
      switch (field) {
13342
      case SUCCESS:
13343
        return isSetSuccess();
13344
      case PE:
13345
        return isSetPe();
13346
      }
13347
      throw new IllegalStateException();
13348
    }
13349
 
13350
    @Override
13351
    public boolean equals(Object that) {
13352
      if (that == null)
13353
        return false;
13354
      if (that instanceof initializeHdfcEmiPayment_result)
13355
        return this.equals((initializeHdfcEmiPayment_result)that);
13356
      return false;
13357
    }
13358
 
13359
    public boolean equals(initializeHdfcEmiPayment_result that) {
13360
      if (that == null)
13361
        return false;
13362
 
13363
      boolean this_present_success = true && this.isSetSuccess();
13364
      boolean that_present_success = true && that.isSetSuccess();
13365
      if (this_present_success || that_present_success) {
13366
        if (!(this_present_success && that_present_success))
13367
          return false;
13368
        if (!this.success.equals(that.success))
13369
          return false;
13370
      }
13371
 
13372
      boolean this_present_pe = true && this.isSetPe();
13373
      boolean that_present_pe = true && that.isSetPe();
13374
      if (this_present_pe || that_present_pe) {
13375
        if (!(this_present_pe && that_present_pe))
13376
          return false;
13377
        if (!this.pe.equals(that.pe))
13378
          return false;
13379
      }
13380
 
13381
      return true;
13382
    }
13383
 
13384
    @Override
13385
    public int hashCode() {
13386
      return 0;
13387
    }
13388
 
13389
    public int compareTo(initializeHdfcEmiPayment_result other) {
13390
      if (!getClass().equals(other.getClass())) {
13391
        return getClass().getName().compareTo(other.getClass().getName());
13392
      }
13393
 
13394
      int lastComparison = 0;
13395
      initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
13396
 
13397
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13398
      if (lastComparison != 0) {
13399
        return lastComparison;
13400
      }
13401
      if (isSetSuccess()) {
13402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13403
        if (lastComparison != 0) {
13404
          return lastComparison;
13405
        }
13406
      }
13407
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
13408
      if (lastComparison != 0) {
13409
        return lastComparison;
13410
      }
13411
      if (isSetPe()) {
13412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
13413
        if (lastComparison != 0) {
13414
          return lastComparison;
13415
        }
13416
      }
13417
      return 0;
13418
    }
13419
 
13420
    public _Fields fieldForId(int fieldId) {
13421
      return _Fields.findByThriftId(fieldId);
13422
    }
13423
 
13424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13425
      org.apache.thrift.protocol.TField field;
13426
      iprot.readStructBegin();
13427
      while (true)
13428
      {
13429
        field = iprot.readFieldBegin();
13430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13431
          break;
13432
        }
13433
        switch (field.id) {
13434
          case 0: // SUCCESS
13435
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13436
              this.success = iprot.readString();
13437
            } else { 
13438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13439
            }
13440
            break;
13441
          case 1: // PE
13442
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13443
              this.pe = new PaymentException();
13444
              this.pe.read(iprot);
13445
            } else { 
13446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13447
            }
13448
            break;
13449
          default:
13450
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13451
        }
13452
        iprot.readFieldEnd();
13453
      }
13454
      iprot.readStructEnd();
13455
      validate();
13456
    }
13457
 
13458
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13459
      oprot.writeStructBegin(STRUCT_DESC);
13460
 
13461
      if (this.isSetSuccess()) {
13462
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13463
        oprot.writeString(this.success);
13464
        oprot.writeFieldEnd();
13465
      } else if (this.isSetPe()) {
13466
        oprot.writeFieldBegin(PE_FIELD_DESC);
13467
        this.pe.write(oprot);
13468
        oprot.writeFieldEnd();
13469
      }
13470
      oprot.writeFieldStop();
13471
      oprot.writeStructEnd();
13472
    }
13473
 
13474
    @Override
13475
    public String toString() {
13476
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
13477
      boolean first = true;
13478
 
13479
      sb.append("success:");
13480
      if (this.success == null) {
13481
        sb.append("null");
13482
      } else {
13483
        sb.append(this.success);
13484
      }
13485
      first = false;
13486
      if (!first) sb.append(", ");
13487
      sb.append("pe:");
13488
      if (this.pe == null) {
13489
        sb.append("null");
13490
      } else {
13491
        sb.append(this.pe);
13492
      }
13493
      first = false;
13494
      sb.append(")");
13495
      return sb.toString();
13496
    }
13497
 
13498
    public void validate() throws org.apache.thrift.TException {
13499
      // check for required fields
13500
    }
13501
 
13502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13503
      try {
13504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13505
      } catch (org.apache.thrift.TException te) {
13506
        throw new java.io.IOException(te);
13507
      }
13508
    }
13509
 
13510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13511
      try {
13512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13513
      } catch (org.apache.thrift.TException te) {
13514
        throw new java.io.IOException(te);
13515
      }
13516
    }
13517
 
13518
  }
13519
 
3430 rajveer 13520
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
13521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
2462 chandransh 13522
 
3430 rajveer 13523
    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);
13524
    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);
13525
    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);
2462 chandransh 13526
 
3430 rajveer 13527
    private long orderId; // required
13528
    private long merchantTxnId; // required
13529
    private double amount; // required
2462 chandransh 13530
 
13531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 13533
      ORDER_ID((short)1, "orderId"),
13534
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
13535
      AMOUNT((short)3, "amount");
2462 chandransh 13536
 
13537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13538
 
13539
      static {
13540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13541
          byName.put(field.getFieldName(), field);
13542
        }
13543
      }
13544
 
13545
      /**
13546
       * Find the _Fields constant that matches fieldId, or null if its not found.
13547
       */
13548
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13549
        switch(fieldId) {
13550
          case 1: // ORDER_ID
13551
            return ORDER_ID;
13552
          case 2: // MERCHANT_TXN_ID
13553
            return MERCHANT_TXN_ID;
13554
          case 3: // AMOUNT
13555
            return AMOUNT;
13556
          default:
13557
            return null;
13558
        }
2462 chandransh 13559
      }
13560
 
13561
      /**
13562
       * Find the _Fields constant that matches fieldId, throwing an exception
13563
       * if it is not found.
13564
       */
13565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13566
        _Fields fields = findByThriftId(fieldId);
13567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13568
        return fields;
13569
      }
13570
 
13571
      /**
13572
       * Find the _Fields constant that matches name, or null if its not found.
13573
       */
13574
      public static _Fields findByName(String name) {
13575
        return byName.get(name);
13576
      }
13577
 
13578
      private final short _thriftId;
13579
      private final String _fieldName;
13580
 
13581
      _Fields(short thriftId, String fieldName) {
13582
        _thriftId = thriftId;
13583
        _fieldName = fieldName;
13584
      }
13585
 
13586
      public short getThriftFieldId() {
13587
        return _thriftId;
13588
      }
13589
 
13590
      public String getFieldName() {
13591
        return _fieldName;
13592
      }
13593
    }
13594
 
13595
    // isset id assignments
3010 chandransh 13596
    private static final int __ORDERID_ISSET_ID = 0;
13597
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
13598
    private static final int __AMOUNT_ISSET_ID = 2;
13599
    private BitSet __isset_bit_vector = new BitSet(3);
2462 chandransh 13600
 
3430 rajveer 13601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 13602
    static {
3430 rajveer 13603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13604
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13606
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13608
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
13610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
2462 chandransh 13612
    }
13613
 
3010 chandransh 13614
    public createRefund_args() {
2462 chandransh 13615
    }
13616
 
3010 chandransh 13617
    public createRefund_args(
13618
      long orderId,
13619
      long merchantTxnId,
13620
      double amount)
2462 chandransh 13621
    {
13622
      this();
3010 chandransh 13623
      this.orderId = orderId;
13624
      setOrderIdIsSet(true);
13625
      this.merchantTxnId = merchantTxnId;
13626
      setMerchantTxnIdIsSet(true);
13627
      this.amount = amount;
13628
      setAmountIsSet(true);
2462 chandransh 13629
    }
13630
 
13631
    /**
13632
     * Performs a deep copy on <i>other</i>.
13633
     */
3010 chandransh 13634
    public createRefund_args(createRefund_args other) {
2462 chandransh 13635
      __isset_bit_vector.clear();
13636
      __isset_bit_vector.or(other.__isset_bit_vector);
3010 chandransh 13637
      this.orderId = other.orderId;
13638
      this.merchantTxnId = other.merchantTxnId;
13639
      this.amount = other.amount;
2462 chandransh 13640
    }
13641
 
3010 chandransh 13642
    public createRefund_args deepCopy() {
13643
      return new createRefund_args(this);
2462 chandransh 13644
    }
13645
 
3430 rajveer 13646
    @Override
13647
    public void clear() {
13648
      setOrderIdIsSet(false);
13649
      this.orderId = 0;
13650
      setMerchantTxnIdIsSet(false);
13651
      this.merchantTxnId = 0;
13652
      setAmountIsSet(false);
13653
      this.amount = 0.0;
2462 chandransh 13654
    }
13655
 
3010 chandransh 13656
    public long getOrderId() {
13657
      return this.orderId;
2462 chandransh 13658
    }
13659
 
3430 rajveer 13660
    public void setOrderId(long orderId) {
3010 chandransh 13661
      this.orderId = orderId;
13662
      setOrderIdIsSet(true);
2462 chandransh 13663
    }
13664
 
3010 chandransh 13665
    public void unsetOrderId() {
13666
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2462 chandransh 13667
    }
13668
 
3430 rajveer 13669
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3010 chandransh 13670
    public boolean isSetOrderId() {
13671
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2462 chandransh 13672
    }
13673
 
3010 chandransh 13674
    public void setOrderIdIsSet(boolean value) {
13675
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2462 chandransh 13676
    }
13677
 
3010 chandransh 13678
    public long getMerchantTxnId() {
13679
      return this.merchantTxnId;
13680
    }
13681
 
3430 rajveer 13682
    public void setMerchantTxnId(long merchantTxnId) {
3010 chandransh 13683
      this.merchantTxnId = merchantTxnId;
13684
      setMerchantTxnIdIsSet(true);
13685
    }
13686
 
13687
    public void unsetMerchantTxnId() {
13688
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
13689
    }
13690
 
3430 rajveer 13691
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
3010 chandransh 13692
    public boolean isSetMerchantTxnId() {
13693
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
13694
    }
13695
 
13696
    public void setMerchantTxnIdIsSet(boolean value) {
13697
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
13698
    }
13699
 
13700
    public double getAmount() {
13701
      return this.amount;
13702
    }
13703
 
3430 rajveer 13704
    public void setAmount(double amount) {
3010 chandransh 13705
      this.amount = amount;
13706
      setAmountIsSet(true);
13707
    }
13708
 
13709
    public void unsetAmount() {
13710
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
13711
    }
13712
 
3430 rajveer 13713
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
3010 chandransh 13714
    public boolean isSetAmount() {
13715
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
13716
    }
13717
 
13718
    public void setAmountIsSet(boolean value) {
13719
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
13720
    }
13721
 
2462 chandransh 13722
    public void setFieldValue(_Fields field, Object value) {
13723
      switch (field) {
3010 chandransh 13724
      case ORDER_ID:
2462 chandransh 13725
        if (value == null) {
3010 chandransh 13726
          unsetOrderId();
2462 chandransh 13727
        } else {
3010 chandransh 13728
          setOrderId((Long)value);
2462 chandransh 13729
        }
13730
        break;
13731
 
3010 chandransh 13732
      case MERCHANT_TXN_ID:
13733
        if (value == null) {
13734
          unsetMerchantTxnId();
13735
        } else {
13736
          setMerchantTxnId((Long)value);
13737
        }
13738
        break;
13739
 
13740
      case AMOUNT:
13741
        if (value == null) {
13742
          unsetAmount();
13743
        } else {
13744
          setAmount((Double)value);
13745
        }
13746
        break;
13747
 
2462 chandransh 13748
      }
13749
    }
13750
 
13751
    public Object getFieldValue(_Fields field) {
13752
      switch (field) {
3010 chandransh 13753
      case ORDER_ID:
3430 rajveer 13754
        return Long.valueOf(getOrderId());
2462 chandransh 13755
 
3010 chandransh 13756
      case MERCHANT_TXN_ID:
3430 rajveer 13757
        return Long.valueOf(getMerchantTxnId());
3010 chandransh 13758
 
13759
      case AMOUNT:
3430 rajveer 13760
        return Double.valueOf(getAmount());
3010 chandransh 13761
 
2462 chandransh 13762
      }
13763
      throw new IllegalStateException();
13764
    }
13765
 
3430 rajveer 13766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13767
    public boolean isSet(_Fields field) {
13768
      if (field == null) {
13769
        throw new IllegalArgumentException();
13770
      }
2462 chandransh 13771
 
13772
      switch (field) {
3010 chandransh 13773
      case ORDER_ID:
13774
        return isSetOrderId();
13775
      case MERCHANT_TXN_ID:
13776
        return isSetMerchantTxnId();
13777
      case AMOUNT:
13778
        return isSetAmount();
2462 chandransh 13779
      }
13780
      throw new IllegalStateException();
13781
    }
13782
 
13783
    @Override
13784
    public boolean equals(Object that) {
13785
      if (that == null)
13786
        return false;
3010 chandransh 13787
      if (that instanceof createRefund_args)
13788
        return this.equals((createRefund_args)that);
2462 chandransh 13789
      return false;
13790
    }
13791
 
3010 chandransh 13792
    public boolean equals(createRefund_args that) {
2462 chandransh 13793
      if (that == null)
13794
        return false;
13795
 
3010 chandransh 13796
      boolean this_present_orderId = true;
13797
      boolean that_present_orderId = true;
13798
      if (this_present_orderId || that_present_orderId) {
13799
        if (!(this_present_orderId && that_present_orderId))
2462 chandransh 13800
          return false;
3010 chandransh 13801
        if (this.orderId != that.orderId)
2462 chandransh 13802
          return false;
13803
      }
13804
 
3010 chandransh 13805
      boolean this_present_merchantTxnId = true;
13806
      boolean that_present_merchantTxnId = true;
13807
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
13808
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
13809
          return false;
13810
        if (this.merchantTxnId != that.merchantTxnId)
13811
          return false;
13812
      }
13813
 
13814
      boolean this_present_amount = true;
13815
      boolean that_present_amount = true;
13816
      if (this_present_amount || that_present_amount) {
13817
        if (!(this_present_amount && that_present_amount))
13818
          return false;
13819
        if (this.amount != that.amount)
13820
          return false;
13821
      }
13822
 
2462 chandransh 13823
      return true;
13824
    }
13825
 
13826
    @Override
13827
    public int hashCode() {
13828
      return 0;
13829
    }
13830
 
3010 chandransh 13831
    public int compareTo(createRefund_args other) {
2462 chandransh 13832
      if (!getClass().equals(other.getClass())) {
13833
        return getClass().getName().compareTo(other.getClass().getName());
13834
      }
13835
 
13836
      int lastComparison = 0;
3010 chandransh 13837
      createRefund_args typedOther = (createRefund_args)other;
2462 chandransh 13838
 
3430 rajveer 13839
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2462 chandransh 13840
      if (lastComparison != 0) {
13841
        return lastComparison;
13842
      }
3430 rajveer 13843
      if (isSetOrderId()) {
13844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13845
        if (lastComparison != 0) {
13846
          return lastComparison;
13847
        }
2462 chandransh 13848
      }
3430 rajveer 13849
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
3010 chandransh 13850
      if (lastComparison != 0) {
13851
        return lastComparison;
13852
      }
3430 rajveer 13853
      if (isSetMerchantTxnId()) {
13854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
13855
        if (lastComparison != 0) {
13856
          return lastComparison;
13857
        }
3010 chandransh 13858
      }
3430 rajveer 13859
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
3010 chandransh 13860
      if (lastComparison != 0) {
13861
        return lastComparison;
13862
      }
3430 rajveer 13863
      if (isSetAmount()) {
13864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
13865
        if (lastComparison != 0) {
13866
          return lastComparison;
13867
        }
3010 chandransh 13868
      }
2462 chandransh 13869
      return 0;
13870
    }
13871
 
3430 rajveer 13872
    public _Fields fieldForId(int fieldId) {
13873
      return _Fields.findByThriftId(fieldId);
13874
    }
13875
 
13876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13877
      org.apache.thrift.protocol.TField field;
2462 chandransh 13878
      iprot.readStructBegin();
13879
      while (true)
13880
      {
13881
        field = iprot.readFieldBegin();
3430 rajveer 13882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 13883
          break;
13884
        }
3430 rajveer 13885
        switch (field.id) {
13886
          case 1: // ORDER_ID
13887
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13888
              this.orderId = iprot.readI64();
13889
              setOrderIdIsSet(true);
13890
            } else { 
13891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13892
            }
13893
            break;
13894
          case 2: // MERCHANT_TXN_ID
13895
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13896
              this.merchantTxnId = iprot.readI64();
13897
              setMerchantTxnIdIsSet(true);
13898
            } else { 
13899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13900
            }
13901
            break;
13902
          case 3: // AMOUNT
13903
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
13904
              this.amount = iprot.readDouble();
13905
              setAmountIsSet(true);
13906
            } else { 
13907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13908
            }
13909
            break;
13910
          default:
13911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 13912
        }
3430 rajveer 13913
        iprot.readFieldEnd();
2462 chandransh 13914
      }
13915
      iprot.readStructEnd();
13916
      validate();
13917
    }
13918
 
3430 rajveer 13919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 13920
      validate();
13921
 
13922
      oprot.writeStructBegin(STRUCT_DESC);
3010 chandransh 13923
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13924
      oprot.writeI64(this.orderId);
2462 chandransh 13925
      oprot.writeFieldEnd();
3010 chandransh 13926
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
13927
      oprot.writeI64(this.merchantTxnId);
13928
      oprot.writeFieldEnd();
13929
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
13930
      oprot.writeDouble(this.amount);
13931
      oprot.writeFieldEnd();
2462 chandransh 13932
      oprot.writeFieldStop();
13933
      oprot.writeStructEnd();
13934
    }
13935
 
13936
    @Override
13937
    public String toString() {
3010 chandransh 13938
      StringBuilder sb = new StringBuilder("createRefund_args(");
2462 chandransh 13939
      boolean first = true;
13940
 
3010 chandransh 13941
      sb.append("orderId:");
13942
      sb.append(this.orderId);
2462 chandransh 13943
      first = false;
3010 chandransh 13944
      if (!first) sb.append(", ");
13945
      sb.append("merchantTxnId:");
13946
      sb.append(this.merchantTxnId);
13947
      first = false;
13948
      if (!first) sb.append(", ");
13949
      sb.append("amount:");
13950
      sb.append(this.amount);
13951
      first = false;
2462 chandransh 13952
      sb.append(")");
13953
      return sb.toString();
13954
    }
13955
 
3430 rajveer 13956
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 13957
      // check for required fields
13958
    }
13959
 
3430 rajveer 13960
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13961
      try {
13962
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13963
      } catch (org.apache.thrift.TException te) {
13964
        throw new java.io.IOException(te);
13965
      }
13966
    }
13967
 
13968
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13969
      try {
13970
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13971
      } catch (org.apache.thrift.TException te) {
13972
        throw new java.io.IOException(te);
13973
      }
13974
    }
13975
 
2462 chandransh 13976
  }
13977
 
3430 rajveer 13978
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
13979
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
2462 chandransh 13980
 
3430 rajveer 13981
    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);
13982
    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);
2462 chandransh 13983
 
3430 rajveer 13984
    private long success; // required
13985
    private PaymentException pe; // required
2462 chandransh 13986
 
13987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 13989
      SUCCESS((short)0, "success"),
13990
      PE((short)1, "pe");
13991
 
13992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13993
 
13994
      static {
13995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13996
          byName.put(field.getFieldName(), field);
13997
        }
13998
      }
13999
 
14000
      /**
14001
       * Find the _Fields constant that matches fieldId, or null if its not found.
14002
       */
14003
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14004
        switch(fieldId) {
14005
          case 0: // SUCCESS
14006
            return SUCCESS;
14007
          case 1: // PE
14008
            return PE;
14009
          default:
14010
            return null;
14011
        }
2462 chandransh 14012
      }
14013
 
14014
      /**
14015
       * Find the _Fields constant that matches fieldId, throwing an exception
14016
       * if it is not found.
14017
       */
14018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14019
        _Fields fields = findByThriftId(fieldId);
14020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14021
        return fields;
14022
      }
14023
 
14024
      /**
14025
       * Find the _Fields constant that matches name, or null if its not found.
14026
       */
14027
      public static _Fields findByName(String name) {
14028
        return byName.get(name);
14029
      }
14030
 
14031
      private final short _thriftId;
14032
      private final String _fieldName;
14033
 
14034
      _Fields(short thriftId, String fieldName) {
14035
        _thriftId = thriftId;
14036
        _fieldName = fieldName;
14037
      }
14038
 
14039
      public short getThriftFieldId() {
14040
        return _thriftId;
14041
      }
14042
 
14043
      public String getFieldName() {
14044
        return _fieldName;
14045
      }
14046
    }
14047
 
14048
    // isset id assignments
3010 chandransh 14049
    private static final int __SUCCESS_ISSET_ID = 0;
14050
    private BitSet __isset_bit_vector = new BitSet(1);
2462 chandransh 14051
 
3430 rajveer 14052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 14053
    static {
3430 rajveer 14054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14057
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
2462 chandransh 14061
    }
14062
 
3010 chandransh 14063
    public createRefund_result() {
2462 chandransh 14064
    }
14065
 
3010 chandransh 14066
    public createRefund_result(
14067
      long success,
2462 chandransh 14068
      PaymentException pe)
14069
    {
14070
      this();
14071
      this.success = success;
3010 chandransh 14072
      setSuccessIsSet(true);
2462 chandransh 14073
      this.pe = pe;
14074
    }
14075
 
14076
    /**
14077
     * Performs a deep copy on <i>other</i>.
14078
     */
3010 chandransh 14079
    public createRefund_result(createRefund_result other) {
14080
      __isset_bit_vector.clear();
14081
      __isset_bit_vector.or(other.__isset_bit_vector);
14082
      this.success = other.success;
2462 chandransh 14083
      if (other.isSetPe()) {
14084
        this.pe = new PaymentException(other.pe);
14085
      }
14086
    }
14087
 
3010 chandransh 14088
    public createRefund_result deepCopy() {
14089
      return new createRefund_result(this);
2462 chandransh 14090
    }
14091
 
3430 rajveer 14092
    @Override
14093
    public void clear() {
14094
      setSuccessIsSet(false);
14095
      this.success = 0;
14096
      this.pe = null;
2462 chandransh 14097
    }
14098
 
3010 chandransh 14099
    public long getSuccess() {
2462 chandransh 14100
      return this.success;
14101
    }
14102
 
3430 rajveer 14103
    public void setSuccess(long success) {
2462 chandransh 14104
      this.success = success;
3010 chandransh 14105
      setSuccessIsSet(true);
2462 chandransh 14106
    }
14107
 
14108
    public void unsetSuccess() {
3010 chandransh 14109
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2462 chandransh 14110
    }
14111
 
3430 rajveer 14112
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 14113
    public boolean isSetSuccess() {
3010 chandransh 14114
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2462 chandransh 14115
    }
14116
 
14117
    public void setSuccessIsSet(boolean value) {
3010 chandransh 14118
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2462 chandransh 14119
    }
14120
 
14121
    public PaymentException getPe() {
14122
      return this.pe;
14123
    }
14124
 
3430 rajveer 14125
    public void setPe(PaymentException pe) {
2462 chandransh 14126
      this.pe = pe;
14127
    }
14128
 
14129
    public void unsetPe() {
14130
      this.pe = null;
14131
    }
14132
 
3430 rajveer 14133
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 14134
    public boolean isSetPe() {
14135
      return this.pe != null;
14136
    }
14137
 
14138
    public void setPeIsSet(boolean value) {
14139
      if (!value) {
14140
        this.pe = null;
14141
      }
14142
    }
14143
 
14144
    public void setFieldValue(_Fields field, Object value) {
14145
      switch (field) {
14146
      case SUCCESS:
14147
        if (value == null) {
14148
          unsetSuccess();
14149
        } else {
3010 chandransh 14150
          setSuccess((Long)value);
2462 chandransh 14151
        }
14152
        break;
14153
 
14154
      case PE:
14155
        if (value == null) {
14156
          unsetPe();
14157
        } else {
14158
          setPe((PaymentException)value);
14159
        }
14160
        break;
14161
 
14162
      }
14163
    }
14164
 
14165
    public Object getFieldValue(_Fields field) {
14166
      switch (field) {
14167
      case SUCCESS:
3430 rajveer 14168
        return Long.valueOf(getSuccess());
2462 chandransh 14169
 
14170
      case PE:
14171
        return getPe();
14172
 
14173
      }
14174
      throw new IllegalStateException();
14175
    }
14176
 
3430 rajveer 14177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14178
    public boolean isSet(_Fields field) {
14179
      if (field == null) {
14180
        throw new IllegalArgumentException();
14181
      }
2462 chandransh 14182
 
14183
      switch (field) {
14184
      case SUCCESS:
14185
        return isSetSuccess();
14186
      case PE:
14187
        return isSetPe();
14188
      }
14189
      throw new IllegalStateException();
14190
    }
14191
 
14192
    @Override
14193
    public boolean equals(Object that) {
14194
      if (that == null)
14195
        return false;
3010 chandransh 14196
      if (that instanceof createRefund_result)
14197
        return this.equals((createRefund_result)that);
2462 chandransh 14198
      return false;
14199
    }
14200
 
3010 chandransh 14201
    public boolean equals(createRefund_result that) {
2462 chandransh 14202
      if (that == null)
14203
        return false;
14204
 
3010 chandransh 14205
      boolean this_present_success = true;
14206
      boolean that_present_success = true;
2462 chandransh 14207
      if (this_present_success || that_present_success) {
14208
        if (!(this_present_success && that_present_success))
14209
          return false;
3010 chandransh 14210
        if (this.success != that.success)
2462 chandransh 14211
          return false;
14212
      }
14213
 
14214
      boolean this_present_pe = true && this.isSetPe();
14215
      boolean that_present_pe = true && that.isSetPe();
14216
      if (this_present_pe || that_present_pe) {
14217
        if (!(this_present_pe && that_present_pe))
14218
          return false;
14219
        if (!this.pe.equals(that.pe))
14220
          return false;
14221
      }
14222
 
14223
      return true;
14224
    }
14225
 
14226
    @Override
14227
    public int hashCode() {
14228
      return 0;
14229
    }
14230
 
3010 chandransh 14231
    public int compareTo(createRefund_result other) {
2462 chandransh 14232
      if (!getClass().equals(other.getClass())) {
14233
        return getClass().getName().compareTo(other.getClass().getName());
14234
      }
14235
 
14236
      int lastComparison = 0;
3010 chandransh 14237
      createRefund_result typedOther = (createRefund_result)other;
2462 chandransh 14238
 
3430 rajveer 14239
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2462 chandransh 14240
      if (lastComparison != 0) {
14241
        return lastComparison;
14242
      }
3430 rajveer 14243
      if (isSetSuccess()) {
14244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14245
        if (lastComparison != 0) {
14246
          return lastComparison;
14247
        }
2462 chandransh 14248
      }
3430 rajveer 14249
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2462 chandransh 14250
      if (lastComparison != 0) {
14251
        return lastComparison;
14252
      }
3430 rajveer 14253
      if (isSetPe()) {
14254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
14255
        if (lastComparison != 0) {
14256
          return lastComparison;
14257
        }
2462 chandransh 14258
      }
14259
      return 0;
14260
    }
14261
 
3430 rajveer 14262
    public _Fields fieldForId(int fieldId) {
14263
      return _Fields.findByThriftId(fieldId);
14264
    }
14265
 
14266
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14267
      org.apache.thrift.protocol.TField field;
2462 chandransh 14268
      iprot.readStructBegin();
14269
      while (true)
14270
      {
14271
        field = iprot.readFieldBegin();
3430 rajveer 14272
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 14273
          break;
14274
        }
3430 rajveer 14275
        switch (field.id) {
14276
          case 0: // SUCCESS
14277
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14278
              this.success = iprot.readI64();
14279
              setSuccessIsSet(true);
14280
            } else { 
14281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14282
            }
14283
            break;
14284
          case 1: // PE
14285
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14286
              this.pe = new PaymentException();
14287
              this.pe.read(iprot);
14288
            } else { 
14289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14290
            }
14291
            break;
14292
          default:
14293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 14294
        }
3430 rajveer 14295
        iprot.readFieldEnd();
2462 chandransh 14296
      }
14297
      iprot.readStructEnd();
14298
      validate();
14299
    }
14300
 
3430 rajveer 14301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 14302
      oprot.writeStructBegin(STRUCT_DESC);
14303
 
14304
      if (this.isSetSuccess()) {
14305
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 14306
        oprot.writeI64(this.success);
2462 chandransh 14307
        oprot.writeFieldEnd();
14308
      } else if (this.isSetPe()) {
14309
        oprot.writeFieldBegin(PE_FIELD_DESC);
14310
        this.pe.write(oprot);
14311
        oprot.writeFieldEnd();
14312
      }
14313
      oprot.writeFieldStop();
14314
      oprot.writeStructEnd();
14315
    }
14316
 
14317
    @Override
14318
    public String toString() {
3010 chandransh 14319
      StringBuilder sb = new StringBuilder("createRefund_result(");
2462 chandransh 14320
      boolean first = true;
14321
 
14322
      sb.append("success:");
3010 chandransh 14323
      sb.append(this.success);
2462 chandransh 14324
      first = false;
14325
      if (!first) sb.append(", ");
14326
      sb.append("pe:");
14327
      if (this.pe == null) {
14328
        sb.append("null");
14329
      } else {
14330
        sb.append(this.pe);
14331
      }
14332
      first = false;
14333
      sb.append(")");
14334
      return sb.toString();
14335
    }
14336
 
3430 rajveer 14337
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 14338
      // check for required fields
14339
    }
14340
 
3430 rajveer 14341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14342
      try {
14343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14344
      } catch (org.apache.thrift.TException te) {
14345
        throw new java.io.IOException(te);
14346
      }
14347
    }
14348
 
14349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14350
      try {
14351
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14352
      } catch (org.apache.thrift.TException te) {
14353
        throw new java.io.IOException(te);
14354
      }
14355
    }
14356
 
2462 chandransh 14357
  }
14358
 
3430 rajveer 14359
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
14360
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
2690 chandransh 14361
 
3430 rajveer 14362
    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);
2690 chandransh 14363
 
3430 rajveer 14364
    private long merchantTxnId; // required
2690 chandransh 14365
 
14366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 14368
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
2690 chandransh 14369
 
14370
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14371
 
14372
      static {
14373
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14374
          byName.put(field.getFieldName(), field);
14375
        }
14376
      }
14377
 
14378
      /**
14379
       * Find the _Fields constant that matches fieldId, or null if its not found.
14380
       */
14381
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14382
        switch(fieldId) {
14383
          case 1: // MERCHANT_TXN_ID
14384
            return MERCHANT_TXN_ID;
14385
          default:
14386
            return null;
14387
        }
2690 chandransh 14388
      }
14389
 
14390
      /**
14391
       * Find the _Fields constant that matches fieldId, throwing an exception
14392
       * if it is not found.
14393
       */
14394
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14395
        _Fields fields = findByThriftId(fieldId);
14396
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14397
        return fields;
14398
      }
14399
 
14400
      /**
14401
       * Find the _Fields constant that matches name, or null if its not found.
14402
       */
14403
      public static _Fields findByName(String name) {
14404
        return byName.get(name);
14405
      }
14406
 
14407
      private final short _thriftId;
14408
      private final String _fieldName;
14409
 
14410
      _Fields(short thriftId, String fieldName) {
14411
        _thriftId = thriftId;
14412
        _fieldName = fieldName;
14413
      }
14414
 
14415
      public short getThriftFieldId() {
14416
        return _thriftId;
14417
      }
14418
 
14419
      public String getFieldName() {
14420
        return _fieldName;
14421
      }
14422
    }
14423
 
14424
    // isset id assignments
3010 chandransh 14425
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
14426
    private BitSet __isset_bit_vector = new BitSet(1);
2690 chandransh 14427
 
3430 rajveer 14428
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 14429
    static {
3430 rajveer 14430
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14431
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14433
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14434
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
2690 chandransh 14435
    }
14436
 
3010 chandransh 14437
    public capturePayment_args() {
2690 chandransh 14438
    }
14439
 
3010 chandransh 14440
    public capturePayment_args(
14441
      long merchantTxnId)
2690 chandransh 14442
    {
14443
      this();
14444
      this.merchantTxnId = merchantTxnId;
14445
      setMerchantTxnIdIsSet(true);
14446
    }
14447
 
14448
    /**
14449
     * Performs a deep copy on <i>other</i>.
14450
     */
3010 chandransh 14451
    public capturePayment_args(capturePayment_args other) {
2690 chandransh 14452
      __isset_bit_vector.clear();
14453
      __isset_bit_vector.or(other.__isset_bit_vector);
14454
      this.merchantTxnId = other.merchantTxnId;
14455
    }
14456
 
3010 chandransh 14457
    public capturePayment_args deepCopy() {
14458
      return new capturePayment_args(this);
2690 chandransh 14459
    }
14460
 
3430 rajveer 14461
    @Override
14462
    public void clear() {
14463
      setMerchantTxnIdIsSet(false);
14464
      this.merchantTxnId = 0;
2690 chandransh 14465
    }
14466
 
14467
    public long getMerchantTxnId() {
14468
      return this.merchantTxnId;
14469
    }
14470
 
3430 rajveer 14471
    public void setMerchantTxnId(long merchantTxnId) {
2690 chandransh 14472
      this.merchantTxnId = merchantTxnId;
14473
      setMerchantTxnIdIsSet(true);
14474
    }
14475
 
14476
    public void unsetMerchantTxnId() {
14477
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
14478
    }
14479
 
3430 rajveer 14480
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
2690 chandransh 14481
    public boolean isSetMerchantTxnId() {
14482
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
14483
    }
14484
 
14485
    public void setMerchantTxnIdIsSet(boolean value) {
14486
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
14487
    }
14488
 
14489
    public void setFieldValue(_Fields field, Object value) {
14490
      switch (field) {
14491
      case MERCHANT_TXN_ID:
14492
        if (value == null) {
14493
          unsetMerchantTxnId();
14494
        } else {
14495
          setMerchantTxnId((Long)value);
14496
        }
14497
        break;
14498
 
14499
      }
14500
    }
14501
 
14502
    public Object getFieldValue(_Fields field) {
14503
      switch (field) {
14504
      case MERCHANT_TXN_ID:
3430 rajveer 14505
        return Long.valueOf(getMerchantTxnId());
2690 chandransh 14506
 
14507
      }
14508
      throw new IllegalStateException();
14509
    }
14510
 
3430 rajveer 14511
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14512
    public boolean isSet(_Fields field) {
14513
      if (field == null) {
14514
        throw new IllegalArgumentException();
14515
      }
2690 chandransh 14516
 
14517
      switch (field) {
14518
      case MERCHANT_TXN_ID:
14519
        return isSetMerchantTxnId();
14520
      }
14521
      throw new IllegalStateException();
14522
    }
14523
 
14524
    @Override
14525
    public boolean equals(Object that) {
14526
      if (that == null)
14527
        return false;
3010 chandransh 14528
      if (that instanceof capturePayment_args)
14529
        return this.equals((capturePayment_args)that);
2690 chandransh 14530
      return false;
14531
    }
14532
 
3010 chandransh 14533
    public boolean equals(capturePayment_args that) {
2690 chandransh 14534
      if (that == null)
14535
        return false;
14536
 
14537
      boolean this_present_merchantTxnId = true;
14538
      boolean that_present_merchantTxnId = true;
14539
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
14540
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
14541
          return false;
14542
        if (this.merchantTxnId != that.merchantTxnId)
14543
          return false;
14544
      }
14545
 
14546
      return true;
14547
    }
14548
 
14549
    @Override
14550
    public int hashCode() {
14551
      return 0;
14552
    }
14553
 
3010 chandransh 14554
    public int compareTo(capturePayment_args other) {
2690 chandransh 14555
      if (!getClass().equals(other.getClass())) {
14556
        return getClass().getName().compareTo(other.getClass().getName());
14557
      }
14558
 
14559
      int lastComparison = 0;
3010 chandransh 14560
      capturePayment_args typedOther = (capturePayment_args)other;
2690 chandransh 14561
 
3430 rajveer 14562
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
2690 chandransh 14563
      if (lastComparison != 0) {
14564
        return lastComparison;
14565
      }
3430 rajveer 14566
      if (isSetMerchantTxnId()) {
14567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
14568
        if (lastComparison != 0) {
14569
          return lastComparison;
14570
        }
2690 chandransh 14571
      }
14572
      return 0;
14573
    }
14574
 
3430 rajveer 14575
    public _Fields fieldForId(int fieldId) {
14576
      return _Fields.findByThriftId(fieldId);
14577
    }
14578
 
14579
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14580
      org.apache.thrift.protocol.TField field;
2690 chandransh 14581
      iprot.readStructBegin();
14582
      while (true)
14583
      {
14584
        field = iprot.readFieldBegin();
3430 rajveer 14585
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 14586
          break;
14587
        }
3430 rajveer 14588
        switch (field.id) {
14589
          case 1: // MERCHANT_TXN_ID
14590
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14591
              this.merchantTxnId = iprot.readI64();
14592
              setMerchantTxnIdIsSet(true);
14593
            } else { 
14594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14595
            }
14596
            break;
14597
          default:
14598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 14599
        }
3430 rajveer 14600
        iprot.readFieldEnd();
2690 chandransh 14601
      }
14602
      iprot.readStructEnd();
14603
      validate();
14604
    }
14605
 
3430 rajveer 14606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 14607
      validate();
14608
 
14609
      oprot.writeStructBegin(STRUCT_DESC);
14610
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
14611
      oprot.writeI64(this.merchantTxnId);
14612
      oprot.writeFieldEnd();
14613
      oprot.writeFieldStop();
14614
      oprot.writeStructEnd();
14615
    }
14616
 
14617
    @Override
14618
    public String toString() {
3010 chandransh 14619
      StringBuilder sb = new StringBuilder("capturePayment_args(");
2690 chandransh 14620
      boolean first = true;
14621
 
14622
      sb.append("merchantTxnId:");
14623
      sb.append(this.merchantTxnId);
14624
      first = false;
14625
      sb.append(")");
14626
      return sb.toString();
14627
    }
14628
 
3430 rajveer 14629
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 14630
      // check for required fields
14631
    }
14632
 
3430 rajveer 14633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14634
      try {
14635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14636
      } catch (org.apache.thrift.TException te) {
14637
        throw new java.io.IOException(te);
14638
      }
14639
    }
14640
 
14641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14642
      try {
14643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14644
      } catch (org.apache.thrift.TException te) {
14645
        throw new java.io.IOException(te);
14646
      }
14647
    }
14648
 
2690 chandransh 14649
  }
14650
 
3430 rajveer 14651
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
14652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
2690 chandransh 14653
 
3430 rajveer 14654
    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);
14655
    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);
2690 chandransh 14656
 
3430 rajveer 14657
    private boolean success; // required
14658
    private PaymentException pe; // required
2690 chandransh 14659
 
14660
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14661
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 14662
      SUCCESS((short)0, "success"),
14663
      PE((short)1, "pe");
14664
 
14665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14666
 
14667
      static {
14668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14669
          byName.put(field.getFieldName(), field);
14670
        }
14671
      }
14672
 
14673
      /**
14674
       * Find the _Fields constant that matches fieldId, or null if its not found.
14675
       */
14676
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14677
        switch(fieldId) {
14678
          case 0: // SUCCESS
14679
            return SUCCESS;
14680
          case 1: // PE
14681
            return PE;
14682
          default:
14683
            return null;
14684
        }
2690 chandransh 14685
      }
14686
 
14687
      /**
14688
       * Find the _Fields constant that matches fieldId, throwing an exception
14689
       * if it is not found.
14690
       */
14691
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14692
        _Fields fields = findByThriftId(fieldId);
14693
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14694
        return fields;
14695
      }
14696
 
14697
      /**
14698
       * Find the _Fields constant that matches name, or null if its not found.
14699
       */
14700
      public static _Fields findByName(String name) {
14701
        return byName.get(name);
14702
      }
14703
 
14704
      private final short _thriftId;
14705
      private final String _fieldName;
14706
 
14707
      _Fields(short thriftId, String fieldName) {
14708
        _thriftId = thriftId;
14709
        _fieldName = fieldName;
14710
      }
14711
 
14712
      public short getThriftFieldId() {
14713
        return _thriftId;
14714
      }
14715
 
14716
      public String getFieldName() {
14717
        return _fieldName;
14718
      }
14719
    }
14720
 
14721
    // isset id assignments
14722
    private static final int __SUCCESS_ISSET_ID = 0;
14723
    private BitSet __isset_bit_vector = new BitSet(1);
14724
 
3430 rajveer 14725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 14726
    static {
3430 rajveer 14727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14728
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14730
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
2690 chandransh 14734
    }
14735
 
3010 chandransh 14736
    public capturePayment_result() {
2690 chandransh 14737
    }
14738
 
3010 chandransh 14739
    public capturePayment_result(
14740
      boolean success,
2690 chandransh 14741
      PaymentException pe)
14742
    {
14743
      this();
14744
      this.success = success;
14745
      setSuccessIsSet(true);
14746
      this.pe = pe;
14747
    }
14748
 
14749
    /**
14750
     * Performs a deep copy on <i>other</i>.
14751
     */
3010 chandransh 14752
    public capturePayment_result(capturePayment_result other) {
2690 chandransh 14753
      __isset_bit_vector.clear();
14754
      __isset_bit_vector.or(other.__isset_bit_vector);
14755
      this.success = other.success;
14756
      if (other.isSetPe()) {
14757
        this.pe = new PaymentException(other.pe);
14758
      }
14759
    }
14760
 
3010 chandransh 14761
    public capturePayment_result deepCopy() {
14762
      return new capturePayment_result(this);
2690 chandransh 14763
    }
14764
 
3430 rajveer 14765
    @Override
14766
    public void clear() {
14767
      setSuccessIsSet(false);
14768
      this.success = false;
14769
      this.pe = null;
2690 chandransh 14770
    }
14771
 
3010 chandransh 14772
    public boolean isSuccess() {
2690 chandransh 14773
      return this.success;
14774
    }
14775
 
3430 rajveer 14776
    public void setSuccess(boolean success) {
2690 chandransh 14777
      this.success = success;
14778
      setSuccessIsSet(true);
14779
    }
14780
 
14781
    public void unsetSuccess() {
14782
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14783
    }
14784
 
3430 rajveer 14785
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 14786
    public boolean isSetSuccess() {
14787
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14788
    }
14789
 
14790
    public void setSuccessIsSet(boolean value) {
14791
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14792
    }
14793
 
14794
    public PaymentException getPe() {
14795
      return this.pe;
14796
    }
14797
 
3430 rajveer 14798
    public void setPe(PaymentException pe) {
2690 chandransh 14799
      this.pe = pe;
14800
    }
14801
 
14802
    public void unsetPe() {
14803
      this.pe = null;
14804
    }
14805
 
3430 rajveer 14806
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2690 chandransh 14807
    public boolean isSetPe() {
14808
      return this.pe != null;
14809
    }
14810
 
14811
    public void setPeIsSet(boolean value) {
14812
      if (!value) {
14813
        this.pe = null;
14814
      }
14815
    }
14816
 
14817
    public void setFieldValue(_Fields field, Object value) {
14818
      switch (field) {
14819
      case SUCCESS:
14820
        if (value == null) {
14821
          unsetSuccess();
14822
        } else {
3010 chandransh 14823
          setSuccess((Boolean)value);
2690 chandransh 14824
        }
14825
        break;
14826
 
14827
      case PE:
14828
        if (value == null) {
14829
          unsetPe();
14830
        } else {
14831
          setPe((PaymentException)value);
14832
        }
14833
        break;
14834
 
14835
      }
14836
    }
14837
 
14838
    public Object getFieldValue(_Fields field) {
14839
      switch (field) {
14840
      case SUCCESS:
3430 rajveer 14841
        return Boolean.valueOf(isSuccess());
2690 chandransh 14842
 
14843
      case PE:
14844
        return getPe();
14845
 
14846
      }
14847
      throw new IllegalStateException();
14848
    }
14849
 
3430 rajveer 14850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14851
    public boolean isSet(_Fields field) {
14852
      if (field == null) {
14853
        throw new IllegalArgumentException();
14854
      }
2690 chandransh 14855
 
14856
      switch (field) {
14857
      case SUCCESS:
14858
        return isSetSuccess();
14859
      case PE:
14860
        return isSetPe();
14861
      }
14862
      throw new IllegalStateException();
14863
    }
14864
 
14865
    @Override
14866
    public boolean equals(Object that) {
14867
      if (that == null)
14868
        return false;
3010 chandransh 14869
      if (that instanceof capturePayment_result)
14870
        return this.equals((capturePayment_result)that);
2690 chandransh 14871
      return false;
14872
    }
14873
 
3010 chandransh 14874
    public boolean equals(capturePayment_result that) {
2690 chandransh 14875
      if (that == null)
14876
        return false;
14877
 
14878
      boolean this_present_success = true;
14879
      boolean that_present_success = true;
14880
      if (this_present_success || that_present_success) {
14881
        if (!(this_present_success && that_present_success))
14882
          return false;
14883
        if (this.success != that.success)
14884
          return false;
14885
      }
14886
 
14887
      boolean this_present_pe = true && this.isSetPe();
14888
      boolean that_present_pe = true && that.isSetPe();
14889
      if (this_present_pe || that_present_pe) {
14890
        if (!(this_present_pe && that_present_pe))
14891
          return false;
14892
        if (!this.pe.equals(that.pe))
14893
          return false;
14894
      }
14895
 
14896
      return true;
14897
    }
14898
 
14899
    @Override
14900
    public int hashCode() {
14901
      return 0;
14902
    }
14903
 
3010 chandransh 14904
    public int compareTo(capturePayment_result other) {
2690 chandransh 14905
      if (!getClass().equals(other.getClass())) {
14906
        return getClass().getName().compareTo(other.getClass().getName());
14907
      }
14908
 
14909
      int lastComparison = 0;
3010 chandransh 14910
      capturePayment_result typedOther = (capturePayment_result)other;
2690 chandransh 14911
 
3430 rajveer 14912
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 14913
      if (lastComparison != 0) {
14914
        return lastComparison;
14915
      }
3430 rajveer 14916
      if (isSetSuccess()) {
14917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14918
        if (lastComparison != 0) {
14919
          return lastComparison;
14920
        }
2690 chandransh 14921
      }
3430 rajveer 14922
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2690 chandransh 14923
      if (lastComparison != 0) {
14924
        return lastComparison;
14925
      }
3430 rajveer 14926
      if (isSetPe()) {
14927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
14928
        if (lastComparison != 0) {
14929
          return lastComparison;
14930
        }
2690 chandransh 14931
      }
14932
      return 0;
14933
    }
14934
 
3430 rajveer 14935
    public _Fields fieldForId(int fieldId) {
14936
      return _Fields.findByThriftId(fieldId);
14937
    }
14938
 
14939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14940
      org.apache.thrift.protocol.TField field;
2690 chandransh 14941
      iprot.readStructBegin();
14942
      while (true)
14943
      {
14944
        field = iprot.readFieldBegin();
3430 rajveer 14945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 14946
          break;
14947
        }
3430 rajveer 14948
        switch (field.id) {
14949
          case 0: // SUCCESS
14950
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14951
              this.success = iprot.readBool();
14952
              setSuccessIsSet(true);
14953
            } else { 
14954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14955
            }
14956
            break;
14957
          case 1: // PE
14958
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14959
              this.pe = new PaymentException();
14960
              this.pe.read(iprot);
14961
            } else { 
14962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14963
            }
14964
            break;
14965
          default:
14966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 14967
        }
3430 rajveer 14968
        iprot.readFieldEnd();
2690 chandransh 14969
      }
14970
      iprot.readStructEnd();
14971
      validate();
14972
    }
14973
 
3430 rajveer 14974
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 14975
      oprot.writeStructBegin(STRUCT_DESC);
14976
 
14977
      if (this.isSetSuccess()) {
14978
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 14979
        oprot.writeBool(this.success);
2690 chandransh 14980
        oprot.writeFieldEnd();
14981
      } else if (this.isSetPe()) {
14982
        oprot.writeFieldBegin(PE_FIELD_DESC);
14983
        this.pe.write(oprot);
14984
        oprot.writeFieldEnd();
14985
      }
14986
      oprot.writeFieldStop();
14987
      oprot.writeStructEnd();
14988
    }
14989
 
14990
    @Override
14991
    public String toString() {
3010 chandransh 14992
      StringBuilder sb = new StringBuilder("capturePayment_result(");
2690 chandransh 14993
      boolean first = true;
14994
 
14995
      sb.append("success:");
14996
      sb.append(this.success);
14997
      first = false;
14998
      if (!first) sb.append(", ");
14999
      sb.append("pe:");
15000
      if (this.pe == null) {
15001
        sb.append("null");
15002
      } else {
15003
        sb.append(this.pe);
15004
      }
15005
      first = false;
15006
      sb.append(")");
15007
      return sb.toString();
15008
    }
15009
 
3430 rajveer 15010
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 15011
      // check for required fields
15012
    }
15013
 
3430 rajveer 15014
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15015
      try {
15016
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15017
      } catch (org.apache.thrift.TException te) {
15018
        throw new java.io.IOException(te);
15019
      }
15020
    }
15021
 
15022
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15023
      try {
15024
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15025
      } catch (org.apache.thrift.TException te) {
15026
        throw new java.io.IOException(te);
15027
      }
15028
    }
15029
 
2690 chandransh 15030
  }
15031
 
3956 chandransh 15032
  public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable   {
15033
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
15034
 
15035
    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);
15036
    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);
15037
    private static final org.apache.thrift.protocol.TField XFER_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("xferBy", org.apache.thrift.protocol.TType.STRING, (short)3);
15038
    private static final org.apache.thrift.protocol.TField XFER_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("xferTxnId", org.apache.thrift.protocol.TType.STRING, (short)4);
15039
    private static final org.apache.thrift.protocol.TField XFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("xferDate", org.apache.thrift.protocol.TType.I64, (short)5);
15040
 
15041
    private long merchantTxnId; // required
15042
    private double amount; // required
15043
    private String xferBy; // required
15044
    private String xferTxnId; // required
15045
    private long xferDate; // required
15046
 
15047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15049
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
15050
      AMOUNT((short)2, "amount"),
15051
      XFER_BY((short)3, "xferBy"),
15052
      XFER_TXN_ID((short)4, "xferTxnId"),
15053
      XFER_DATE((short)5, "xferDate");
15054
 
15055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15056
 
15057
      static {
15058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15059
          byName.put(field.getFieldName(), field);
15060
        }
15061
      }
15062
 
15063
      /**
15064
       * Find the _Fields constant that matches fieldId, or null if its not found.
15065
       */
15066
      public static _Fields findByThriftId(int fieldId) {
15067
        switch(fieldId) {
15068
          case 1: // MERCHANT_TXN_ID
15069
            return MERCHANT_TXN_ID;
15070
          case 2: // AMOUNT
15071
            return AMOUNT;
15072
          case 3: // XFER_BY
15073
            return XFER_BY;
15074
          case 4: // XFER_TXN_ID
15075
            return XFER_TXN_ID;
15076
          case 5: // XFER_DATE
15077
            return XFER_DATE;
15078
          default:
15079
            return null;
15080
        }
15081
      }
15082
 
15083
      /**
15084
       * Find the _Fields constant that matches fieldId, throwing an exception
15085
       * if it is not found.
15086
       */
15087
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15088
        _Fields fields = findByThriftId(fieldId);
15089
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15090
        return fields;
15091
      }
15092
 
15093
      /**
15094
       * Find the _Fields constant that matches name, or null if its not found.
15095
       */
15096
      public static _Fields findByName(String name) {
15097
        return byName.get(name);
15098
      }
15099
 
15100
      private final short _thriftId;
15101
      private final String _fieldName;
15102
 
15103
      _Fields(short thriftId, String fieldName) {
15104
        _thriftId = thriftId;
15105
        _fieldName = fieldName;
15106
      }
15107
 
15108
      public short getThriftFieldId() {
15109
        return _thriftId;
15110
      }
15111
 
15112
      public String getFieldName() {
15113
        return _fieldName;
15114
      }
15115
    }
15116
 
15117
    // isset id assignments
15118
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
15119
    private static final int __AMOUNT_ISSET_ID = 1;
15120
    private static final int __XFERDATE_ISSET_ID = 2;
15121
    private BitSet __isset_bit_vector = new BitSet(3);
15122
 
15123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15124
    static {
15125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15126
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15128
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
15130
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15132
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15134
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15135
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15136
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15137
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
15138
    }
15139
 
15140
    public partiallyCapturePayment_args() {
15141
    }
15142
 
15143
    public partiallyCapturePayment_args(
15144
      long merchantTxnId,
15145
      double amount,
15146
      String xferBy,
15147
      String xferTxnId,
15148
      long xferDate)
15149
    {
15150
      this();
15151
      this.merchantTxnId = merchantTxnId;
15152
      setMerchantTxnIdIsSet(true);
15153
      this.amount = amount;
15154
      setAmountIsSet(true);
15155
      this.xferBy = xferBy;
15156
      this.xferTxnId = xferTxnId;
15157
      this.xferDate = xferDate;
15158
      setXferDateIsSet(true);
15159
    }
15160
 
15161
    /**
15162
     * Performs a deep copy on <i>other</i>.
15163
     */
15164
    public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
15165
      __isset_bit_vector.clear();
15166
      __isset_bit_vector.or(other.__isset_bit_vector);
15167
      this.merchantTxnId = other.merchantTxnId;
15168
      this.amount = other.amount;
15169
      if (other.isSetXferBy()) {
15170
        this.xferBy = other.xferBy;
15171
      }
15172
      if (other.isSetXferTxnId()) {
15173
        this.xferTxnId = other.xferTxnId;
15174
      }
15175
      this.xferDate = other.xferDate;
15176
    }
15177
 
15178
    public partiallyCapturePayment_args deepCopy() {
15179
      return new partiallyCapturePayment_args(this);
15180
    }
15181
 
15182
    @Override
15183
    public void clear() {
15184
      setMerchantTxnIdIsSet(false);
15185
      this.merchantTxnId = 0;
15186
      setAmountIsSet(false);
15187
      this.amount = 0.0;
15188
      this.xferBy = null;
15189
      this.xferTxnId = null;
15190
      setXferDateIsSet(false);
15191
      this.xferDate = 0;
15192
    }
15193
 
15194
    public long getMerchantTxnId() {
15195
      return this.merchantTxnId;
15196
    }
15197
 
15198
    public void setMerchantTxnId(long merchantTxnId) {
15199
      this.merchantTxnId = merchantTxnId;
15200
      setMerchantTxnIdIsSet(true);
15201
    }
15202
 
15203
    public void unsetMerchantTxnId() {
15204
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
15205
    }
15206
 
15207
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
15208
    public boolean isSetMerchantTxnId() {
15209
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
15210
    }
15211
 
15212
    public void setMerchantTxnIdIsSet(boolean value) {
15213
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
15214
    }
15215
 
15216
    public double getAmount() {
15217
      return this.amount;
15218
    }
15219
 
15220
    public void setAmount(double amount) {
15221
      this.amount = amount;
15222
      setAmountIsSet(true);
15223
    }
15224
 
15225
    public void unsetAmount() {
15226
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
15227
    }
15228
 
15229
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
15230
    public boolean isSetAmount() {
15231
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
15232
    }
15233
 
15234
    public void setAmountIsSet(boolean value) {
15235
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
15236
    }
15237
 
15238
    public String getXferBy() {
15239
      return this.xferBy;
15240
    }
15241
 
15242
    public void setXferBy(String xferBy) {
15243
      this.xferBy = xferBy;
15244
    }
15245
 
15246
    public void unsetXferBy() {
15247
      this.xferBy = null;
15248
    }
15249
 
15250
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
15251
    public boolean isSetXferBy() {
15252
      return this.xferBy != null;
15253
    }
15254
 
15255
    public void setXferByIsSet(boolean value) {
15256
      if (!value) {
15257
        this.xferBy = null;
15258
      }
15259
    }
15260
 
15261
    public String getXferTxnId() {
15262
      return this.xferTxnId;
15263
    }
15264
 
15265
    public void setXferTxnId(String xferTxnId) {
15266
      this.xferTxnId = xferTxnId;
15267
    }
15268
 
15269
    public void unsetXferTxnId() {
15270
      this.xferTxnId = null;
15271
    }
15272
 
15273
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
15274
    public boolean isSetXferTxnId() {
15275
      return this.xferTxnId != null;
15276
    }
15277
 
15278
    public void setXferTxnIdIsSet(boolean value) {
15279
      if (!value) {
15280
        this.xferTxnId = null;
15281
      }
15282
    }
15283
 
15284
    public long getXferDate() {
15285
      return this.xferDate;
15286
    }
15287
 
15288
    public void setXferDate(long xferDate) {
15289
      this.xferDate = xferDate;
15290
      setXferDateIsSet(true);
15291
    }
15292
 
15293
    public void unsetXferDate() {
15294
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
15295
    }
15296
 
15297
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
15298
    public boolean isSetXferDate() {
15299
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
15300
    }
15301
 
15302
    public void setXferDateIsSet(boolean value) {
15303
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
15304
    }
15305
 
15306
    public void setFieldValue(_Fields field, Object value) {
15307
      switch (field) {
15308
      case MERCHANT_TXN_ID:
15309
        if (value == null) {
15310
          unsetMerchantTxnId();
15311
        } else {
15312
          setMerchantTxnId((Long)value);
15313
        }
15314
        break;
15315
 
15316
      case AMOUNT:
15317
        if (value == null) {
15318
          unsetAmount();
15319
        } else {
15320
          setAmount((Double)value);
15321
        }
15322
        break;
15323
 
15324
      case XFER_BY:
15325
        if (value == null) {
15326
          unsetXferBy();
15327
        } else {
15328
          setXferBy((String)value);
15329
        }
15330
        break;
15331
 
15332
      case XFER_TXN_ID:
15333
        if (value == null) {
15334
          unsetXferTxnId();
15335
        } else {
15336
          setXferTxnId((String)value);
15337
        }
15338
        break;
15339
 
15340
      case XFER_DATE:
15341
        if (value == null) {
15342
          unsetXferDate();
15343
        } else {
15344
          setXferDate((Long)value);
15345
        }
15346
        break;
15347
 
15348
      }
15349
    }
15350
 
15351
    public Object getFieldValue(_Fields field) {
15352
      switch (field) {
15353
      case MERCHANT_TXN_ID:
15354
        return Long.valueOf(getMerchantTxnId());
15355
 
15356
      case AMOUNT:
15357
        return Double.valueOf(getAmount());
15358
 
15359
      case XFER_BY:
15360
        return getXferBy();
15361
 
15362
      case XFER_TXN_ID:
15363
        return getXferTxnId();
15364
 
15365
      case XFER_DATE:
15366
        return Long.valueOf(getXferDate());
15367
 
15368
      }
15369
      throw new IllegalStateException();
15370
    }
15371
 
15372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15373
    public boolean isSet(_Fields field) {
15374
      if (field == null) {
15375
        throw new IllegalArgumentException();
15376
      }
15377
 
15378
      switch (field) {
15379
      case MERCHANT_TXN_ID:
15380
        return isSetMerchantTxnId();
15381
      case AMOUNT:
15382
        return isSetAmount();
15383
      case XFER_BY:
15384
        return isSetXferBy();
15385
      case XFER_TXN_ID:
15386
        return isSetXferTxnId();
15387
      case XFER_DATE:
15388
        return isSetXferDate();
15389
      }
15390
      throw new IllegalStateException();
15391
    }
15392
 
15393
    @Override
15394
    public boolean equals(Object that) {
15395
      if (that == null)
15396
        return false;
15397
      if (that instanceof partiallyCapturePayment_args)
15398
        return this.equals((partiallyCapturePayment_args)that);
15399
      return false;
15400
    }
15401
 
15402
    public boolean equals(partiallyCapturePayment_args that) {
15403
      if (that == null)
15404
        return false;
15405
 
15406
      boolean this_present_merchantTxnId = true;
15407
      boolean that_present_merchantTxnId = true;
15408
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
15409
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
15410
          return false;
15411
        if (this.merchantTxnId != that.merchantTxnId)
15412
          return false;
15413
      }
15414
 
15415
      boolean this_present_amount = true;
15416
      boolean that_present_amount = true;
15417
      if (this_present_amount || that_present_amount) {
15418
        if (!(this_present_amount && that_present_amount))
15419
          return false;
15420
        if (this.amount != that.amount)
15421
          return false;
15422
      }
15423
 
15424
      boolean this_present_xferBy = true && this.isSetXferBy();
15425
      boolean that_present_xferBy = true && that.isSetXferBy();
15426
      if (this_present_xferBy || that_present_xferBy) {
15427
        if (!(this_present_xferBy && that_present_xferBy))
15428
          return false;
15429
        if (!this.xferBy.equals(that.xferBy))
15430
          return false;
15431
      }
15432
 
15433
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
15434
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
15435
      if (this_present_xferTxnId || that_present_xferTxnId) {
15436
        if (!(this_present_xferTxnId && that_present_xferTxnId))
15437
          return false;
15438
        if (!this.xferTxnId.equals(that.xferTxnId))
15439
          return false;
15440
      }
15441
 
15442
      boolean this_present_xferDate = true;
15443
      boolean that_present_xferDate = true;
15444
      if (this_present_xferDate || that_present_xferDate) {
15445
        if (!(this_present_xferDate && that_present_xferDate))
15446
          return false;
15447
        if (this.xferDate != that.xferDate)
15448
          return false;
15449
      }
15450
 
15451
      return true;
15452
    }
15453
 
15454
    @Override
15455
    public int hashCode() {
15456
      return 0;
15457
    }
15458
 
15459
    public int compareTo(partiallyCapturePayment_args other) {
15460
      if (!getClass().equals(other.getClass())) {
15461
        return getClass().getName().compareTo(other.getClass().getName());
15462
      }
15463
 
15464
      int lastComparison = 0;
15465
      partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
15466
 
15467
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
15468
      if (lastComparison != 0) {
15469
        return lastComparison;
15470
      }
15471
      if (isSetMerchantTxnId()) {
15472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
15473
        if (lastComparison != 0) {
15474
          return lastComparison;
15475
        }
15476
      }
15477
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
15478
      if (lastComparison != 0) {
15479
        return lastComparison;
15480
      }
15481
      if (isSetAmount()) {
15482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
15483
        if (lastComparison != 0) {
15484
          return lastComparison;
15485
        }
15486
      }
15487
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
15488
      if (lastComparison != 0) {
15489
        return lastComparison;
15490
      }
15491
      if (isSetXferBy()) {
15492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
15493
        if (lastComparison != 0) {
15494
          return lastComparison;
15495
        }
15496
      }
15497
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
15498
      if (lastComparison != 0) {
15499
        return lastComparison;
15500
      }
15501
      if (isSetXferTxnId()) {
15502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
15503
        if (lastComparison != 0) {
15504
          return lastComparison;
15505
        }
15506
      }
15507
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
15508
      if (lastComparison != 0) {
15509
        return lastComparison;
15510
      }
15511
      if (isSetXferDate()) {
15512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
15513
        if (lastComparison != 0) {
15514
          return lastComparison;
15515
        }
15516
      }
15517
      return 0;
15518
    }
15519
 
15520
    public _Fields fieldForId(int fieldId) {
15521
      return _Fields.findByThriftId(fieldId);
15522
    }
15523
 
15524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15525
      org.apache.thrift.protocol.TField field;
15526
      iprot.readStructBegin();
15527
      while (true)
15528
      {
15529
        field = iprot.readFieldBegin();
15530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15531
          break;
15532
        }
15533
        switch (field.id) {
15534
          case 1: // MERCHANT_TXN_ID
15535
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15536
              this.merchantTxnId = iprot.readI64();
15537
              setMerchantTxnIdIsSet(true);
15538
            } else { 
15539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15540
            }
15541
            break;
15542
          case 2: // AMOUNT
15543
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15544
              this.amount = iprot.readDouble();
15545
              setAmountIsSet(true);
15546
            } else { 
15547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15548
            }
15549
            break;
15550
          case 3: // XFER_BY
15551
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15552
              this.xferBy = iprot.readString();
15553
            } else { 
15554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15555
            }
15556
            break;
15557
          case 4: // XFER_TXN_ID
15558
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15559
              this.xferTxnId = iprot.readString();
15560
            } else { 
15561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15562
            }
15563
            break;
15564
          case 5: // XFER_DATE
15565
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15566
              this.xferDate = iprot.readI64();
15567
              setXferDateIsSet(true);
15568
            } else { 
15569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15570
            }
15571
            break;
15572
          default:
15573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15574
        }
15575
        iprot.readFieldEnd();
15576
      }
15577
      iprot.readStructEnd();
15578
      validate();
15579
    }
15580
 
15581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15582
      validate();
15583
 
15584
      oprot.writeStructBegin(STRUCT_DESC);
15585
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
15586
      oprot.writeI64(this.merchantTxnId);
15587
      oprot.writeFieldEnd();
15588
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
15589
      oprot.writeDouble(this.amount);
15590
      oprot.writeFieldEnd();
15591
      if (this.xferBy != null) {
15592
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
15593
        oprot.writeString(this.xferBy);
15594
        oprot.writeFieldEnd();
15595
      }
15596
      if (this.xferTxnId != null) {
15597
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
15598
        oprot.writeString(this.xferTxnId);
15599
        oprot.writeFieldEnd();
15600
      }
15601
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
15602
      oprot.writeI64(this.xferDate);
15603
      oprot.writeFieldEnd();
15604
      oprot.writeFieldStop();
15605
      oprot.writeStructEnd();
15606
    }
15607
 
15608
    @Override
15609
    public String toString() {
15610
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
15611
      boolean first = true;
15612
 
15613
      sb.append("merchantTxnId:");
15614
      sb.append(this.merchantTxnId);
15615
      first = false;
15616
      if (!first) sb.append(", ");
15617
      sb.append("amount:");
15618
      sb.append(this.amount);
15619
      first = false;
15620
      if (!first) sb.append(", ");
15621
      sb.append("xferBy:");
15622
      if (this.xferBy == null) {
15623
        sb.append("null");
15624
      } else {
15625
        sb.append(this.xferBy);
15626
      }
15627
      first = false;
15628
      if (!first) sb.append(", ");
15629
      sb.append("xferTxnId:");
15630
      if (this.xferTxnId == null) {
15631
        sb.append("null");
15632
      } else {
15633
        sb.append(this.xferTxnId);
15634
      }
15635
      first = false;
15636
      if (!first) sb.append(", ");
15637
      sb.append("xferDate:");
15638
      sb.append(this.xferDate);
15639
      first = false;
15640
      sb.append(")");
15641
      return sb.toString();
15642
    }
15643
 
15644
    public void validate() throws org.apache.thrift.TException {
15645
      // check for required fields
15646
    }
15647
 
15648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15649
      try {
15650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15651
      } catch (org.apache.thrift.TException te) {
15652
        throw new java.io.IOException(te);
15653
      }
15654
    }
15655
 
15656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15657
      try {
15658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15659
      } catch (org.apache.thrift.TException te) {
15660
        throw new java.io.IOException(te);
15661
      }
15662
    }
15663
 
15664
  }
15665
 
15666
  public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable   {
15667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
15668
 
15669
    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);
15670
    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);
15671
 
15672
    private boolean success; // required
15673
    private PaymentException pe; // required
15674
 
15675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15677
      SUCCESS((short)0, "success"),
15678
      PE((short)1, "pe");
15679
 
15680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15681
 
15682
      static {
15683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15684
          byName.put(field.getFieldName(), field);
15685
        }
15686
      }
15687
 
15688
      /**
15689
       * Find the _Fields constant that matches fieldId, or null if its not found.
15690
       */
15691
      public static _Fields findByThriftId(int fieldId) {
15692
        switch(fieldId) {
15693
          case 0: // SUCCESS
15694
            return SUCCESS;
15695
          case 1: // PE
15696
            return PE;
15697
          default:
15698
            return null;
15699
        }
15700
      }
15701
 
15702
      /**
15703
       * Find the _Fields constant that matches fieldId, throwing an exception
15704
       * if it is not found.
15705
       */
15706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15707
        _Fields fields = findByThriftId(fieldId);
15708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15709
        return fields;
15710
      }
15711
 
15712
      /**
15713
       * Find the _Fields constant that matches name, or null if its not found.
15714
       */
15715
      public static _Fields findByName(String name) {
15716
        return byName.get(name);
15717
      }
15718
 
15719
      private final short _thriftId;
15720
      private final String _fieldName;
15721
 
15722
      _Fields(short thriftId, String fieldName) {
15723
        _thriftId = thriftId;
15724
        _fieldName = fieldName;
15725
      }
15726
 
15727
      public short getThriftFieldId() {
15728
        return _thriftId;
15729
      }
15730
 
15731
      public String getFieldName() {
15732
        return _fieldName;
15733
      }
15734
    }
15735
 
15736
    // isset id assignments
15737
    private static final int __SUCCESS_ISSET_ID = 0;
15738
    private BitSet __isset_bit_vector = new BitSet(1);
15739
 
15740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15741
    static {
15742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15743
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15745
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15747
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15748
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
15749
    }
15750
 
15751
    public partiallyCapturePayment_result() {
15752
    }
15753
 
15754
    public partiallyCapturePayment_result(
15755
      boolean success,
15756
      PaymentException pe)
15757
    {
15758
      this();
15759
      this.success = success;
15760
      setSuccessIsSet(true);
15761
      this.pe = pe;
15762
    }
15763
 
15764
    /**
15765
     * Performs a deep copy on <i>other</i>.
15766
     */
15767
    public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
15768
      __isset_bit_vector.clear();
15769
      __isset_bit_vector.or(other.__isset_bit_vector);
15770
      this.success = other.success;
15771
      if (other.isSetPe()) {
15772
        this.pe = new PaymentException(other.pe);
15773
      }
15774
    }
15775
 
15776
    public partiallyCapturePayment_result deepCopy() {
15777
      return new partiallyCapturePayment_result(this);
15778
    }
15779
 
15780
    @Override
15781
    public void clear() {
15782
      setSuccessIsSet(false);
15783
      this.success = false;
15784
      this.pe = null;
15785
    }
15786
 
15787
    public boolean isSuccess() {
15788
      return this.success;
15789
    }
15790
 
15791
    public void setSuccess(boolean success) {
15792
      this.success = success;
15793
      setSuccessIsSet(true);
15794
    }
15795
 
15796
    public void unsetSuccess() {
15797
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15798
    }
15799
 
15800
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15801
    public boolean isSetSuccess() {
15802
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15803
    }
15804
 
15805
    public void setSuccessIsSet(boolean value) {
15806
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15807
    }
15808
 
15809
    public PaymentException getPe() {
15810
      return this.pe;
15811
    }
15812
 
15813
    public void setPe(PaymentException pe) {
15814
      this.pe = pe;
15815
    }
15816
 
15817
    public void unsetPe() {
15818
      this.pe = null;
15819
    }
15820
 
15821
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
15822
    public boolean isSetPe() {
15823
      return this.pe != null;
15824
    }
15825
 
15826
    public void setPeIsSet(boolean value) {
15827
      if (!value) {
15828
        this.pe = null;
15829
      }
15830
    }
15831
 
15832
    public void setFieldValue(_Fields field, Object value) {
15833
      switch (field) {
15834
      case SUCCESS:
15835
        if (value == null) {
15836
          unsetSuccess();
15837
        } else {
15838
          setSuccess((Boolean)value);
15839
        }
15840
        break;
15841
 
15842
      case PE:
15843
        if (value == null) {
15844
          unsetPe();
15845
        } else {
15846
          setPe((PaymentException)value);
15847
        }
15848
        break;
15849
 
15850
      }
15851
    }
15852
 
15853
    public Object getFieldValue(_Fields field) {
15854
      switch (field) {
15855
      case SUCCESS:
15856
        return Boolean.valueOf(isSuccess());
15857
 
15858
      case PE:
15859
        return getPe();
15860
 
15861
      }
15862
      throw new IllegalStateException();
15863
    }
15864
 
15865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15866
    public boolean isSet(_Fields field) {
15867
      if (field == null) {
15868
        throw new IllegalArgumentException();
15869
      }
15870
 
15871
      switch (field) {
15872
      case SUCCESS:
15873
        return isSetSuccess();
15874
      case PE:
15875
        return isSetPe();
15876
      }
15877
      throw new IllegalStateException();
15878
    }
15879
 
15880
    @Override
15881
    public boolean equals(Object that) {
15882
      if (that == null)
15883
        return false;
15884
      if (that instanceof partiallyCapturePayment_result)
15885
        return this.equals((partiallyCapturePayment_result)that);
15886
      return false;
15887
    }
15888
 
15889
    public boolean equals(partiallyCapturePayment_result that) {
15890
      if (that == null)
15891
        return false;
15892
 
15893
      boolean this_present_success = true;
15894
      boolean that_present_success = true;
15895
      if (this_present_success || that_present_success) {
15896
        if (!(this_present_success && that_present_success))
15897
          return false;
15898
        if (this.success != that.success)
15899
          return false;
15900
      }
15901
 
15902
      boolean this_present_pe = true && this.isSetPe();
15903
      boolean that_present_pe = true && that.isSetPe();
15904
      if (this_present_pe || that_present_pe) {
15905
        if (!(this_present_pe && that_present_pe))
15906
          return false;
15907
        if (!this.pe.equals(that.pe))
15908
          return false;
15909
      }
15910
 
15911
      return true;
15912
    }
15913
 
15914
    @Override
15915
    public int hashCode() {
15916
      return 0;
15917
    }
15918
 
15919
    public int compareTo(partiallyCapturePayment_result other) {
15920
      if (!getClass().equals(other.getClass())) {
15921
        return getClass().getName().compareTo(other.getClass().getName());
15922
      }
15923
 
15924
      int lastComparison = 0;
15925
      partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
15926
 
15927
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15928
      if (lastComparison != 0) {
15929
        return lastComparison;
15930
      }
15931
      if (isSetSuccess()) {
15932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15933
        if (lastComparison != 0) {
15934
          return lastComparison;
15935
        }
15936
      }
15937
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
15938
      if (lastComparison != 0) {
15939
        return lastComparison;
15940
      }
15941
      if (isSetPe()) {
15942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
15943
        if (lastComparison != 0) {
15944
          return lastComparison;
15945
        }
15946
      }
15947
      return 0;
15948
    }
15949
 
15950
    public _Fields fieldForId(int fieldId) {
15951
      return _Fields.findByThriftId(fieldId);
15952
    }
15953
 
15954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15955
      org.apache.thrift.protocol.TField field;
15956
      iprot.readStructBegin();
15957
      while (true)
15958
      {
15959
        field = iprot.readFieldBegin();
15960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15961
          break;
15962
        }
15963
        switch (field.id) {
15964
          case 0: // SUCCESS
15965
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15966
              this.success = iprot.readBool();
15967
              setSuccessIsSet(true);
15968
            } else { 
15969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15970
            }
15971
            break;
15972
          case 1: // PE
15973
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15974
              this.pe = new PaymentException();
15975
              this.pe.read(iprot);
15976
            } else { 
15977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15978
            }
15979
            break;
15980
          default:
15981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15982
        }
15983
        iprot.readFieldEnd();
15984
      }
15985
      iprot.readStructEnd();
15986
      validate();
15987
    }
15988
 
15989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15990
      oprot.writeStructBegin(STRUCT_DESC);
15991
 
15992
      if (this.isSetSuccess()) {
15993
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15994
        oprot.writeBool(this.success);
15995
        oprot.writeFieldEnd();
15996
      } else if (this.isSetPe()) {
15997
        oprot.writeFieldBegin(PE_FIELD_DESC);
15998
        this.pe.write(oprot);
15999
        oprot.writeFieldEnd();
16000
      }
16001
      oprot.writeFieldStop();
16002
      oprot.writeStructEnd();
16003
    }
16004
 
16005
    @Override
16006
    public String toString() {
16007
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
16008
      boolean first = true;
16009
 
16010
      sb.append("success:");
16011
      sb.append(this.success);
16012
      first = false;
16013
      if (!first) sb.append(", ");
16014
      sb.append("pe:");
16015
      if (this.pe == null) {
16016
        sb.append("null");
16017
      } else {
16018
        sb.append(this.pe);
16019
      }
16020
      first = false;
16021
      sb.append(")");
16022
      return sb.toString();
16023
    }
16024
 
16025
    public void validate() throws org.apache.thrift.TException {
16026
      // check for required fields
16027
    }
16028
 
16029
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16030
      try {
16031
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16032
      } catch (org.apache.thrift.TException te) {
16033
        throw new java.io.IOException(te);
16034
      }
16035
    }
16036
 
16037
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16038
      try {
16039
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16040
      } catch (org.apache.thrift.TException te) {
16041
        throw new java.io.IOException(te);
16042
      }
16043
    }
16044
 
16045
  }
16046
 
4008 mandeep.dh 16047
  public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
16048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
16049
 
16050
    private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)1);
16051
 
16052
    private ExtraPaymentProcessingType category; // required
16053
 
16054
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16055
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16056
      /**
16057
       * 
16058
       * @see ExtraPaymentProcessingType
16059
       */
16060
      CATEGORY((short)1, "category");
16061
 
16062
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16063
 
16064
      static {
16065
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16066
          byName.put(field.getFieldName(), field);
16067
        }
16068
      }
16069
 
16070
      /**
16071
       * Find the _Fields constant that matches fieldId, or null if its not found.
16072
       */
16073
      public static _Fields findByThriftId(int fieldId) {
16074
        switch(fieldId) {
16075
          case 1: // CATEGORY
16076
            return CATEGORY;
16077
          default:
16078
            return null;
16079
        }
16080
      }
16081
 
16082
      /**
16083
       * Find the _Fields constant that matches fieldId, throwing an exception
16084
       * if it is not found.
16085
       */
16086
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16087
        _Fields fields = findByThriftId(fieldId);
16088
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16089
        return fields;
16090
      }
16091
 
16092
      /**
16093
       * Find the _Fields constant that matches name, or null if its not found.
16094
       */
16095
      public static _Fields findByName(String name) {
16096
        return byName.get(name);
16097
      }
16098
 
16099
      private final short _thriftId;
16100
      private final String _fieldName;
16101
 
16102
      _Fields(short thriftId, String fieldName) {
16103
        _thriftId = thriftId;
16104
        _fieldName = fieldName;
16105
      }
16106
 
16107
      public short getThriftFieldId() {
16108
        return _thriftId;
16109
      }
16110
 
16111
      public String getFieldName() {
16112
        return _fieldName;
16113
      }
16114
    }
16115
 
16116
    // isset id assignments
16117
 
16118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16119
    static {
16120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16121
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16122
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
16123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
16125
    }
16126
 
16127
    public getPaymentsRequiringExtraProcessing_args() {
16128
    }
16129
 
16130
    public getPaymentsRequiringExtraProcessing_args(
16131
      ExtraPaymentProcessingType category)
16132
    {
16133
      this();
16134
      this.category = category;
16135
    }
16136
 
16137
    /**
16138
     * Performs a deep copy on <i>other</i>.
16139
     */
16140
    public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
16141
      if (other.isSetCategory()) {
16142
        this.category = other.category;
16143
      }
16144
    }
16145
 
16146
    public getPaymentsRequiringExtraProcessing_args deepCopy() {
16147
      return new getPaymentsRequiringExtraProcessing_args(this);
16148
    }
16149
 
16150
    @Override
16151
    public void clear() {
16152
      this.category = null;
16153
    }
16154
 
16155
    /**
16156
     * 
16157
     * @see ExtraPaymentProcessingType
16158
     */
16159
    public ExtraPaymentProcessingType getCategory() {
16160
      return this.category;
16161
    }
16162
 
16163
    /**
16164
     * 
16165
     * @see ExtraPaymentProcessingType
16166
     */
16167
    public void setCategory(ExtraPaymentProcessingType category) {
16168
      this.category = category;
16169
    }
16170
 
16171
    public void unsetCategory() {
16172
      this.category = null;
16173
    }
16174
 
16175
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
16176
    public boolean isSetCategory() {
16177
      return this.category != null;
16178
    }
16179
 
16180
    public void setCategoryIsSet(boolean value) {
16181
      if (!value) {
16182
        this.category = null;
16183
      }
16184
    }
16185
 
16186
    public void setFieldValue(_Fields field, Object value) {
16187
      switch (field) {
16188
      case CATEGORY:
16189
        if (value == null) {
16190
          unsetCategory();
16191
        } else {
16192
          setCategory((ExtraPaymentProcessingType)value);
16193
        }
16194
        break;
16195
 
16196
      }
16197
    }
16198
 
16199
    public Object getFieldValue(_Fields field) {
16200
      switch (field) {
16201
      case CATEGORY:
16202
        return getCategory();
16203
 
16204
      }
16205
      throw new IllegalStateException();
16206
    }
16207
 
16208
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16209
    public boolean isSet(_Fields field) {
16210
      if (field == null) {
16211
        throw new IllegalArgumentException();
16212
      }
16213
 
16214
      switch (field) {
16215
      case CATEGORY:
16216
        return isSetCategory();
16217
      }
16218
      throw new IllegalStateException();
16219
    }
16220
 
16221
    @Override
16222
    public boolean equals(Object that) {
16223
      if (that == null)
16224
        return false;
16225
      if (that instanceof getPaymentsRequiringExtraProcessing_args)
16226
        return this.equals((getPaymentsRequiringExtraProcessing_args)that);
16227
      return false;
16228
    }
16229
 
16230
    public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
16231
      if (that == null)
16232
        return false;
16233
 
16234
      boolean this_present_category = true && this.isSetCategory();
16235
      boolean that_present_category = true && that.isSetCategory();
16236
      if (this_present_category || that_present_category) {
16237
        if (!(this_present_category && that_present_category))
16238
          return false;
16239
        if (!this.category.equals(that.category))
16240
          return false;
16241
      }
16242
 
16243
      return true;
16244
    }
16245
 
16246
    @Override
16247
    public int hashCode() {
16248
      return 0;
16249
    }
16250
 
16251
    public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
16252
      if (!getClass().equals(other.getClass())) {
16253
        return getClass().getName().compareTo(other.getClass().getName());
16254
      }
16255
 
16256
      int lastComparison = 0;
16257
      getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
16258
 
16259
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
16260
      if (lastComparison != 0) {
16261
        return lastComparison;
16262
      }
16263
      if (isSetCategory()) {
16264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
16265
        if (lastComparison != 0) {
16266
          return lastComparison;
16267
        }
16268
      }
16269
      return 0;
16270
    }
16271
 
16272
    public _Fields fieldForId(int fieldId) {
16273
      return _Fields.findByThriftId(fieldId);
16274
    }
16275
 
16276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16277
      org.apache.thrift.protocol.TField field;
16278
      iprot.readStructBegin();
16279
      while (true)
16280
      {
16281
        field = iprot.readFieldBegin();
16282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16283
          break;
16284
        }
16285
        switch (field.id) {
16286
          case 1: // CATEGORY
16287
            if (field.type == org.apache.thrift.protocol.TType.I32) {
16288
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
16289
            } else { 
16290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16291
            }
16292
            break;
16293
          default:
16294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16295
        }
16296
        iprot.readFieldEnd();
16297
      }
16298
      iprot.readStructEnd();
16299
      validate();
16300
    }
16301
 
16302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16303
      validate();
16304
 
16305
      oprot.writeStructBegin(STRUCT_DESC);
16306
      if (this.category != null) {
16307
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
16308
        oprot.writeI32(this.category.getValue());
16309
        oprot.writeFieldEnd();
16310
      }
16311
      oprot.writeFieldStop();
16312
      oprot.writeStructEnd();
16313
    }
16314
 
16315
    @Override
16316
    public String toString() {
16317
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
16318
      boolean first = true;
16319
 
16320
      sb.append("category:");
16321
      if (this.category == null) {
16322
        sb.append("null");
16323
      } else {
16324
        sb.append(this.category);
16325
      }
16326
      first = false;
16327
      sb.append(")");
16328
      return sb.toString();
16329
    }
16330
 
16331
    public void validate() throws org.apache.thrift.TException {
16332
      // check for required fields
16333
    }
16334
 
16335
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16336
      try {
16337
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16338
      } catch (org.apache.thrift.TException te) {
16339
        throw new java.io.IOException(te);
16340
      }
16341
    }
16342
 
16343
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16344
      try {
16345
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16346
      } catch (org.apache.thrift.TException te) {
16347
        throw new java.io.IOException(te);
16348
      }
16349
    }
16350
 
16351
  }
16352
 
16353
  public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
16354
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
16355
 
16356
    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);
16357
 
16358
    private List<Long> success; // required
16359
 
16360
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16361
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16362
      SUCCESS((short)0, "success");
16363
 
16364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16365
 
16366
      static {
16367
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16368
          byName.put(field.getFieldName(), field);
16369
        }
16370
      }
16371
 
16372
      /**
16373
       * Find the _Fields constant that matches fieldId, or null if its not found.
16374
       */
16375
      public static _Fields findByThriftId(int fieldId) {
16376
        switch(fieldId) {
16377
          case 0: // SUCCESS
16378
            return SUCCESS;
16379
          default:
16380
            return null;
16381
        }
16382
      }
16383
 
16384
      /**
16385
       * Find the _Fields constant that matches fieldId, throwing an exception
16386
       * if it is not found.
16387
       */
16388
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16389
        _Fields fields = findByThriftId(fieldId);
16390
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16391
        return fields;
16392
      }
16393
 
16394
      /**
16395
       * Find the _Fields constant that matches name, or null if its not found.
16396
       */
16397
      public static _Fields findByName(String name) {
16398
        return byName.get(name);
16399
      }
16400
 
16401
      private final short _thriftId;
16402
      private final String _fieldName;
16403
 
16404
      _Fields(short thriftId, String fieldName) {
16405
        _thriftId = thriftId;
16406
        _fieldName = fieldName;
16407
      }
16408
 
16409
      public short getThriftFieldId() {
16410
        return _thriftId;
16411
      }
16412
 
16413
      public String getFieldName() {
16414
        return _fieldName;
16415
      }
16416
    }
16417
 
16418
    // isset id assignments
16419
 
16420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16421
    static {
16422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16423
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16424
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16425
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
16428
    }
16429
 
16430
    public getPaymentsRequiringExtraProcessing_result() {
16431
    }
16432
 
16433
    public getPaymentsRequiringExtraProcessing_result(
16434
      List<Long> success)
16435
    {
16436
      this();
16437
      this.success = success;
16438
    }
16439
 
16440
    /**
16441
     * Performs a deep copy on <i>other</i>.
16442
     */
16443
    public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
16444
      if (other.isSetSuccess()) {
16445
        List<Long> __this__success = new ArrayList<Long>();
16446
        for (Long other_element : other.success) {
16447
          __this__success.add(other_element);
16448
        }
16449
        this.success = __this__success;
16450
      }
16451
    }
16452
 
16453
    public getPaymentsRequiringExtraProcessing_result deepCopy() {
16454
      return new getPaymentsRequiringExtraProcessing_result(this);
16455
    }
16456
 
16457
    @Override
16458
    public void clear() {
16459
      this.success = null;
16460
    }
16461
 
16462
    public int getSuccessSize() {
16463
      return (this.success == null) ? 0 : this.success.size();
16464
    }
16465
 
16466
    public java.util.Iterator<Long> getSuccessIterator() {
16467
      return (this.success == null) ? null : this.success.iterator();
16468
    }
16469
 
16470
    public void addToSuccess(long elem) {
16471
      if (this.success == null) {
16472
        this.success = new ArrayList<Long>();
16473
      }
16474
      this.success.add(elem);
16475
    }
16476
 
16477
    public List<Long> getSuccess() {
16478
      return this.success;
16479
    }
16480
 
16481
    public void setSuccess(List<Long> success) {
16482
      this.success = success;
16483
    }
16484
 
16485
    public void unsetSuccess() {
16486
      this.success = null;
16487
    }
16488
 
16489
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16490
    public boolean isSetSuccess() {
16491
      return this.success != null;
16492
    }
16493
 
16494
    public void setSuccessIsSet(boolean value) {
16495
      if (!value) {
16496
        this.success = null;
16497
      }
16498
    }
16499
 
16500
    public void setFieldValue(_Fields field, Object value) {
16501
      switch (field) {
16502
      case SUCCESS:
16503
        if (value == null) {
16504
          unsetSuccess();
16505
        } else {
16506
          setSuccess((List<Long>)value);
16507
        }
16508
        break;
16509
 
16510
      }
16511
    }
16512
 
16513
    public Object getFieldValue(_Fields field) {
16514
      switch (field) {
16515
      case SUCCESS:
16516
        return getSuccess();
16517
 
16518
      }
16519
      throw new IllegalStateException();
16520
    }
16521
 
16522
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16523
    public boolean isSet(_Fields field) {
16524
      if (field == null) {
16525
        throw new IllegalArgumentException();
16526
      }
16527
 
16528
      switch (field) {
16529
      case SUCCESS:
16530
        return isSetSuccess();
16531
      }
16532
      throw new IllegalStateException();
16533
    }
16534
 
16535
    @Override
16536
    public boolean equals(Object that) {
16537
      if (that == null)
16538
        return false;
16539
      if (that instanceof getPaymentsRequiringExtraProcessing_result)
16540
        return this.equals((getPaymentsRequiringExtraProcessing_result)that);
16541
      return false;
16542
    }
16543
 
16544
    public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
16545
      if (that == null)
16546
        return false;
16547
 
16548
      boolean this_present_success = true && this.isSetSuccess();
16549
      boolean that_present_success = true && that.isSetSuccess();
16550
      if (this_present_success || that_present_success) {
16551
        if (!(this_present_success && that_present_success))
16552
          return false;
16553
        if (!this.success.equals(that.success))
16554
          return false;
16555
      }
16556
 
16557
      return true;
16558
    }
16559
 
16560
    @Override
16561
    public int hashCode() {
16562
      return 0;
16563
    }
16564
 
16565
    public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
16566
      if (!getClass().equals(other.getClass())) {
16567
        return getClass().getName().compareTo(other.getClass().getName());
16568
      }
16569
 
16570
      int lastComparison = 0;
16571
      getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
16572
 
16573
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16574
      if (lastComparison != 0) {
16575
        return lastComparison;
16576
      }
16577
      if (isSetSuccess()) {
16578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16579
        if (lastComparison != 0) {
16580
          return lastComparison;
16581
        }
16582
      }
16583
      return 0;
16584
    }
16585
 
16586
    public _Fields fieldForId(int fieldId) {
16587
      return _Fields.findByThriftId(fieldId);
16588
    }
16589
 
16590
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16591
      org.apache.thrift.protocol.TField field;
16592
      iprot.readStructBegin();
16593
      while (true)
16594
      {
16595
        field = iprot.readFieldBegin();
16596
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16597
          break;
16598
        }
16599
        switch (field.id) {
16600
          case 0: // SUCCESS
16601
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16602
              {
4600 varun.gupt 16603
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
16604
                this.success = new ArrayList<Long>(_list40.size);
16605
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
4008 mandeep.dh 16606
                {
4600 varun.gupt 16607
                  long _elem42; // required
16608
                  _elem42 = iprot.readI64();
16609
                  this.success.add(_elem42);
4008 mandeep.dh 16610
                }
16611
                iprot.readListEnd();
16612
              }
16613
            } else { 
16614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16615
            }
16616
            break;
16617
          default:
16618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16619
        }
16620
        iprot.readFieldEnd();
16621
      }
16622
      iprot.readStructEnd();
16623
      validate();
16624
    }
16625
 
16626
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16627
      oprot.writeStructBegin(STRUCT_DESC);
16628
 
16629
      if (this.isSetSuccess()) {
16630
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16631
        {
16632
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4600 varun.gupt 16633
          for (long _iter43 : this.success)
4008 mandeep.dh 16634
          {
4600 varun.gupt 16635
            oprot.writeI64(_iter43);
4008 mandeep.dh 16636
          }
16637
          oprot.writeListEnd();
16638
        }
16639
        oprot.writeFieldEnd();
16640
      }
16641
      oprot.writeFieldStop();
16642
      oprot.writeStructEnd();
16643
    }
16644
 
16645
    @Override
16646
    public String toString() {
16647
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
16648
      boolean first = true;
16649
 
16650
      sb.append("success:");
16651
      if (this.success == null) {
16652
        sb.append("null");
16653
      } else {
16654
        sb.append(this.success);
16655
      }
16656
      first = false;
16657
      sb.append(")");
16658
      return sb.toString();
16659
    }
16660
 
16661
    public void validate() throws org.apache.thrift.TException {
16662
      // check for required fields
16663
    }
16664
 
16665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16666
      try {
16667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16668
      } catch (org.apache.thrift.TException te) {
16669
        throw new java.io.IOException(te);
16670
      }
16671
    }
16672
 
16673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16674
      try {
16675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16676
      } catch (org.apache.thrift.TException te) {
16677
        throw new java.io.IOException(te);
16678
      }
16679
    }
16680
 
16681
  }
16682
 
16683
  public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
16684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
16685
 
16686
    private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)1);
16687
    private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)2);
16688
 
16689
    private long paymentId; // required
16690
    private ExtraPaymentProcessingType category; // required
16691
 
16692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16694
      PAYMENT_ID((short)1, "paymentId"),
16695
      /**
16696
       * 
16697
       * @see ExtraPaymentProcessingType
16698
       */
16699
      CATEGORY((short)2, "category");
16700
 
16701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16702
 
16703
      static {
16704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16705
          byName.put(field.getFieldName(), field);
16706
        }
16707
      }
16708
 
16709
      /**
16710
       * Find the _Fields constant that matches fieldId, or null if its not found.
16711
       */
16712
      public static _Fields findByThriftId(int fieldId) {
16713
        switch(fieldId) {
16714
          case 1: // PAYMENT_ID
16715
            return PAYMENT_ID;
16716
          case 2: // CATEGORY
16717
            return CATEGORY;
16718
          default:
16719
            return null;
16720
        }
16721
      }
16722
 
16723
      /**
16724
       * Find the _Fields constant that matches fieldId, throwing an exception
16725
       * if it is not found.
16726
       */
16727
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16728
        _Fields fields = findByThriftId(fieldId);
16729
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16730
        return fields;
16731
      }
16732
 
16733
      /**
16734
       * Find the _Fields constant that matches name, or null if its not found.
16735
       */
16736
      public static _Fields findByName(String name) {
16737
        return byName.get(name);
16738
      }
16739
 
16740
      private final short _thriftId;
16741
      private final String _fieldName;
16742
 
16743
      _Fields(short thriftId, String fieldName) {
16744
        _thriftId = thriftId;
16745
        _fieldName = fieldName;
16746
      }
16747
 
16748
      public short getThriftFieldId() {
16749
        return _thriftId;
16750
      }
16751
 
16752
      public String getFieldName() {
16753
        return _fieldName;
16754
      }
16755
    }
16756
 
16757
    // isset id assignments
16758
    private static final int __PAYMENTID_ISSET_ID = 0;
16759
    private BitSet __isset_bit_vector = new BitSet(1);
16760
 
16761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16762
    static {
16763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16764
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16766
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16767
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
16768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
16770
    }
16771
 
16772
    public markPaymentAsProcessed_args() {
16773
    }
16774
 
16775
    public markPaymentAsProcessed_args(
16776
      long paymentId,
16777
      ExtraPaymentProcessingType category)
16778
    {
16779
      this();
16780
      this.paymentId = paymentId;
16781
      setPaymentIdIsSet(true);
16782
      this.category = category;
16783
    }
16784
 
16785
    /**
16786
     * Performs a deep copy on <i>other</i>.
16787
     */
16788
    public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
16789
      __isset_bit_vector.clear();
16790
      __isset_bit_vector.or(other.__isset_bit_vector);
16791
      this.paymentId = other.paymentId;
16792
      if (other.isSetCategory()) {
16793
        this.category = other.category;
16794
      }
16795
    }
16796
 
16797
    public markPaymentAsProcessed_args deepCopy() {
16798
      return new markPaymentAsProcessed_args(this);
16799
    }
16800
 
16801
    @Override
16802
    public void clear() {
16803
      setPaymentIdIsSet(false);
16804
      this.paymentId = 0;
16805
      this.category = null;
16806
    }
16807
 
16808
    public long getPaymentId() {
16809
      return this.paymentId;
16810
    }
16811
 
16812
    public void setPaymentId(long paymentId) {
16813
      this.paymentId = paymentId;
16814
      setPaymentIdIsSet(true);
16815
    }
16816
 
16817
    public void unsetPaymentId() {
16818
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
16819
    }
16820
 
16821
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
16822
    public boolean isSetPaymentId() {
16823
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
16824
    }
16825
 
16826
    public void setPaymentIdIsSet(boolean value) {
16827
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
16828
    }
16829
 
16830
    /**
16831
     * 
16832
     * @see ExtraPaymentProcessingType
16833
     */
16834
    public ExtraPaymentProcessingType getCategory() {
16835
      return this.category;
16836
    }
16837
 
16838
    /**
16839
     * 
16840
     * @see ExtraPaymentProcessingType
16841
     */
16842
    public void setCategory(ExtraPaymentProcessingType category) {
16843
      this.category = category;
16844
    }
16845
 
16846
    public void unsetCategory() {
16847
      this.category = null;
16848
    }
16849
 
16850
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
16851
    public boolean isSetCategory() {
16852
      return this.category != null;
16853
    }
16854
 
16855
    public void setCategoryIsSet(boolean value) {
16856
      if (!value) {
16857
        this.category = null;
16858
      }
16859
    }
16860
 
16861
    public void setFieldValue(_Fields field, Object value) {
16862
      switch (field) {
16863
      case PAYMENT_ID:
16864
        if (value == null) {
16865
          unsetPaymentId();
16866
        } else {
16867
          setPaymentId((Long)value);
16868
        }
16869
        break;
16870
 
16871
      case CATEGORY:
16872
        if (value == null) {
16873
          unsetCategory();
16874
        } else {
16875
          setCategory((ExtraPaymentProcessingType)value);
16876
        }
16877
        break;
16878
 
16879
      }
16880
    }
16881
 
16882
    public Object getFieldValue(_Fields field) {
16883
      switch (field) {
16884
      case PAYMENT_ID:
16885
        return Long.valueOf(getPaymentId());
16886
 
16887
      case CATEGORY:
16888
        return getCategory();
16889
 
16890
      }
16891
      throw new IllegalStateException();
16892
    }
16893
 
16894
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16895
    public boolean isSet(_Fields field) {
16896
      if (field == null) {
16897
        throw new IllegalArgumentException();
16898
      }
16899
 
16900
      switch (field) {
16901
      case PAYMENT_ID:
16902
        return isSetPaymentId();
16903
      case CATEGORY:
16904
        return isSetCategory();
16905
      }
16906
      throw new IllegalStateException();
16907
    }
16908
 
16909
    @Override
16910
    public boolean equals(Object that) {
16911
      if (that == null)
16912
        return false;
16913
      if (that instanceof markPaymentAsProcessed_args)
16914
        return this.equals((markPaymentAsProcessed_args)that);
16915
      return false;
16916
    }
16917
 
16918
    public boolean equals(markPaymentAsProcessed_args that) {
16919
      if (that == null)
16920
        return false;
16921
 
16922
      boolean this_present_paymentId = true;
16923
      boolean that_present_paymentId = true;
16924
      if (this_present_paymentId || that_present_paymentId) {
16925
        if (!(this_present_paymentId && that_present_paymentId))
16926
          return false;
16927
        if (this.paymentId != that.paymentId)
16928
          return false;
16929
      }
16930
 
16931
      boolean this_present_category = true && this.isSetCategory();
16932
      boolean that_present_category = true && that.isSetCategory();
16933
      if (this_present_category || that_present_category) {
16934
        if (!(this_present_category && that_present_category))
16935
          return false;
16936
        if (!this.category.equals(that.category))
16937
          return false;
16938
      }
16939
 
16940
      return true;
16941
    }
16942
 
16943
    @Override
16944
    public int hashCode() {
16945
      return 0;
16946
    }
16947
 
16948
    public int compareTo(markPaymentAsProcessed_args other) {
16949
      if (!getClass().equals(other.getClass())) {
16950
        return getClass().getName().compareTo(other.getClass().getName());
16951
      }
16952
 
16953
      int lastComparison = 0;
16954
      markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
16955
 
16956
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
16957
      if (lastComparison != 0) {
16958
        return lastComparison;
16959
      }
16960
      if (isSetPaymentId()) {
16961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
16962
        if (lastComparison != 0) {
16963
          return lastComparison;
16964
        }
16965
      }
16966
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
16967
      if (lastComparison != 0) {
16968
        return lastComparison;
16969
      }
16970
      if (isSetCategory()) {
16971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
16972
        if (lastComparison != 0) {
16973
          return lastComparison;
16974
        }
16975
      }
16976
      return 0;
16977
    }
16978
 
16979
    public _Fields fieldForId(int fieldId) {
16980
      return _Fields.findByThriftId(fieldId);
16981
    }
16982
 
16983
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16984
      org.apache.thrift.protocol.TField field;
16985
      iprot.readStructBegin();
16986
      while (true)
16987
      {
16988
        field = iprot.readFieldBegin();
16989
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16990
          break;
16991
        }
16992
        switch (field.id) {
16993
          case 1: // PAYMENT_ID
16994
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16995
              this.paymentId = iprot.readI64();
16996
              setPaymentIdIsSet(true);
16997
            } else { 
16998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16999
            }
17000
            break;
17001
          case 2: // CATEGORY
17002
            if (field.type == org.apache.thrift.protocol.TType.I32) {
17003
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
17004
            } else { 
17005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17006
            }
17007
            break;
17008
          default:
17009
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17010
        }
17011
        iprot.readFieldEnd();
17012
      }
17013
      iprot.readStructEnd();
17014
      validate();
17015
    }
17016
 
17017
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17018
      validate();
17019
 
17020
      oprot.writeStructBegin(STRUCT_DESC);
17021
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
17022
      oprot.writeI64(this.paymentId);
17023
      oprot.writeFieldEnd();
17024
      if (this.category != null) {
17025
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
17026
        oprot.writeI32(this.category.getValue());
17027
        oprot.writeFieldEnd();
17028
      }
17029
      oprot.writeFieldStop();
17030
      oprot.writeStructEnd();
17031
    }
17032
 
17033
    @Override
17034
    public String toString() {
17035
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
17036
      boolean first = true;
17037
 
17038
      sb.append("paymentId:");
17039
      sb.append(this.paymentId);
17040
      first = false;
17041
      if (!first) sb.append(", ");
17042
      sb.append("category:");
17043
      if (this.category == null) {
17044
        sb.append("null");
17045
      } else {
17046
        sb.append(this.category);
17047
      }
17048
      first = false;
17049
      sb.append(")");
17050
      return sb.toString();
17051
    }
17052
 
17053
    public void validate() throws org.apache.thrift.TException {
17054
      // check for required fields
17055
    }
17056
 
17057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17058
      try {
17059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17060
      } catch (org.apache.thrift.TException te) {
17061
        throw new java.io.IOException(te);
17062
      }
17063
    }
17064
 
17065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17066
      try {
17067
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17068
      } catch (org.apache.thrift.TException te) {
17069
        throw new java.io.IOException(te);
17070
      }
17071
    }
17072
 
17073
  }
17074
 
17075
  public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
17076
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
17077
 
17078
 
17079
 
17080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17081
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17082
;
17083
 
17084
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17085
 
17086
      static {
17087
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17088
          byName.put(field.getFieldName(), field);
17089
        }
17090
      }
17091
 
17092
      /**
17093
       * Find the _Fields constant that matches fieldId, or null if its not found.
17094
       */
17095
      public static _Fields findByThriftId(int fieldId) {
17096
        switch(fieldId) {
17097
          default:
17098
            return null;
17099
        }
17100
      }
17101
 
17102
      /**
17103
       * Find the _Fields constant that matches fieldId, throwing an exception
17104
       * if it is not found.
17105
       */
17106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17107
        _Fields fields = findByThriftId(fieldId);
17108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17109
        return fields;
17110
      }
17111
 
17112
      /**
17113
       * Find the _Fields constant that matches name, or null if its not found.
17114
       */
17115
      public static _Fields findByName(String name) {
17116
        return byName.get(name);
17117
      }
17118
 
17119
      private final short _thriftId;
17120
      private final String _fieldName;
17121
 
17122
      _Fields(short thriftId, String fieldName) {
17123
        _thriftId = thriftId;
17124
        _fieldName = fieldName;
17125
      }
17126
 
17127
      public short getThriftFieldId() {
17128
        return _thriftId;
17129
      }
17130
 
17131
      public String getFieldName() {
17132
        return _fieldName;
17133
      }
17134
    }
17135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17136
    static {
17137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
17140
    }
17141
 
17142
    public markPaymentAsProcessed_result() {
17143
    }
17144
 
17145
    /**
17146
     * Performs a deep copy on <i>other</i>.
17147
     */
17148
    public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
17149
    }
17150
 
17151
    public markPaymentAsProcessed_result deepCopy() {
17152
      return new markPaymentAsProcessed_result(this);
17153
    }
17154
 
17155
    @Override
17156
    public void clear() {
17157
    }
17158
 
17159
    public void setFieldValue(_Fields field, Object value) {
17160
      switch (field) {
17161
      }
17162
    }
17163
 
17164
    public Object getFieldValue(_Fields field) {
17165
      switch (field) {
17166
      }
17167
      throw new IllegalStateException();
17168
    }
17169
 
17170
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17171
    public boolean isSet(_Fields field) {
17172
      if (field == null) {
17173
        throw new IllegalArgumentException();
17174
      }
17175
 
17176
      switch (field) {
17177
      }
17178
      throw new IllegalStateException();
17179
    }
17180
 
17181
    @Override
17182
    public boolean equals(Object that) {
17183
      if (that == null)
17184
        return false;
17185
      if (that instanceof markPaymentAsProcessed_result)
17186
        return this.equals((markPaymentAsProcessed_result)that);
17187
      return false;
17188
    }
17189
 
17190
    public boolean equals(markPaymentAsProcessed_result that) {
17191
      if (that == null)
17192
        return false;
17193
 
17194
      return true;
17195
    }
17196
 
17197
    @Override
17198
    public int hashCode() {
17199
      return 0;
17200
    }
17201
 
17202
    public int compareTo(markPaymentAsProcessed_result other) {
17203
      if (!getClass().equals(other.getClass())) {
17204
        return getClass().getName().compareTo(other.getClass().getName());
17205
      }
17206
 
17207
      int lastComparison = 0;
17208
      markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
17209
 
17210
      return 0;
17211
    }
17212
 
17213
    public _Fields fieldForId(int fieldId) {
17214
      return _Fields.findByThriftId(fieldId);
17215
    }
17216
 
17217
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17218
      org.apache.thrift.protocol.TField field;
17219
      iprot.readStructBegin();
17220
      while (true)
17221
      {
17222
        field = iprot.readFieldBegin();
17223
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17224
          break;
17225
        }
17226
        switch (field.id) {
17227
          default:
17228
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17229
        }
17230
        iprot.readFieldEnd();
17231
      }
17232
      iprot.readStructEnd();
17233
      validate();
17234
    }
17235
 
17236
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17237
      oprot.writeStructBegin(STRUCT_DESC);
17238
 
17239
      oprot.writeFieldStop();
17240
      oprot.writeStructEnd();
17241
    }
17242
 
17243
    @Override
17244
    public String toString() {
17245
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
17246
      boolean first = true;
17247
 
17248
      sb.append(")");
17249
      return sb.toString();
17250
    }
17251
 
17252
    public void validate() throws org.apache.thrift.TException {
17253
      // check for required fields
17254
    }
17255
 
17256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17257
      try {
17258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17259
      } catch (org.apache.thrift.TException te) {
17260
        throw new java.io.IOException(te);
17261
      }
17262
    }
17263
 
17264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17265
      try {
17266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17267
      } catch (org.apache.thrift.TException te) {
17268
        throw new java.io.IOException(te);
17269
      }
17270
    }
17271
 
17272
  }
17273
 
123 ashish 17274
}