Subversion Repositories SmartDukaan

Rev

Rev 4421 | Rev 6050 | 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
34
     */
3430 rajveer 35
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
123 ashish 36
 
695 rajveer 37
    /**
4141 chandransh 38
     * Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
695 rajveer 39
     * 
40
     * @param userId
41
     * @param fromTime
42
     * @param toTime
43
     * @param status
44
     * @param gatewayId
45
     */
3430 rajveer 46
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 47
 
695 rajveer 48
    /**
4141 chandransh 49
     * Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
695 rajveer 50
     * 
51
     * @param fromTime
52
     * @param toTime
53
     * @param status
54
     * @param gatewayId
55
     */
3430 rajveer 56
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 57
 
695 rajveer 58
    /**
4141 chandransh 59
     * Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
695 rajveer 60
     * 
4141 chandransh 61
     * @param fromTime
62
     * @param toTime
63
     * @param gatewayId
64
     */
65
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException;
66
 
67
    /**
68
     * Get the gateway for the given id.
695 rajveer 69
     * 
70
     * @param id
71
     */
3430 rajveer 72
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 73
 
695 rajveer 74
    /**
4600 varun.gupt 75
     * Get all active Payment Gateways
76
     * 
77
     */
78
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException;
79
 
80
    /**
695 rajveer 81
     * Get a particular payment info
82
     * 
83
     * 
84
     * @param id
85
     */
3430 rajveer 86
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 87
 
695 rajveer 88
    /**
4600 varun.gupt 89
     * Get payments for a transaction. Will raise exception.
695 rajveer 90
     * 
91
     * 
92
     * @param txnId
93
     */
3430 rajveer 94
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
420 ashish 95
 
695 rajveer 96
    /**
4600 varun.gupt 97
     * Get successful payment for a transaction. Will raise exception.
98
     * 
99
     * 
100
     * @param txnId
101
     */
102
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
103
 
104
    /**
695 rajveer 105
     * mark payment successful and store parameters
106
     * 
107
     * 
108
     * @param id
109
     * @param gatewayPaymentId
110
     * @param sessionId
111
     * @param gatewayTxnStatus
112
     * @param description
113
     * @param gatewayTxnId
114
     * @param authCode
115
     * @param referenceCode
116
     * @param errorCode
117
     * @param status
1119 rajveer 118
     * @param gatewayTxnDate
695 rajveer 119
     * @param attributes
120
     */
3430 rajveer 121
    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 122
 
1629 ankur.sing 123
    /**
1731 ankur.sing 124
     * Returns the minimum and maximum amounts among successful payments.
125
     * List contains two double values, first minimum and second maximum amount.
1629 ankur.sing 126
     */
3430 rajveer 127
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
1629 ankur.sing 128
 
2462 chandransh 129
    /**
130
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
131
     * In case of any processing error, an exception is raised.
132
     * 
133
     * @param merchantPaymentId
134
     */
3430 rajveer 135
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
2462 chandransh 136
 
2690 chandransh 137
    /**
3616 chandransh 138
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
139
     * In case of any processing error, an exception is raised.
140
     * 
141
     * @param merchantPaymentId
142
     */
143
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
144
 
145
    /**
2690 chandransh 146
     * Create a refund of the given amount corresponding to the given order to be processed through the same
147
     * payment gateway which processed the payment for the corresponding transaction.
148
     * Returns the id of the newly created Refund.
149
     * 
150
     * @param orderId
151
     * @param merchantTxnId
152
     * @param amount
153
     */
3430 rajveer 154
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
2690 chandransh 155
 
3010 chandransh 156
    /**
157
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
4421 mandeep.dh 158
     * transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
159
     * code 104 is	thrown in case no payments are found for the transaction id passed.
160
     * PaymentException is also thrown with error code 106 in case capture was not possible due to connection
161
     * issue. Here, we	payment also gets updated to CAPTURE_INPROCESS state
3010 chandransh 162
     * 
163
     * @param merchantTxnId
164
     */
3430 rajveer 165
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
3010 chandransh 166
 
3956 chandransh 167
    /**
168
     * Adds the given amount to the captured amount of a COD payment.
169
     * Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
170
     * If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
171
     * Also sets the name of the entity which transferred the money, the date on which it was transferred
172
     * and the corresponding transaction id.
173
     * 
174
     * Returns false if the payment couldn't be captured.
175
     * Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
176
     * 
177
     * @param merchantTxnId
178
     * @param amount
179
     * @param xferBy
180
     * @param xferTxnId
181
     * @param xferDate
182
     */
183
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
184
 
4008 mandeep.dh 185
    /**
186
     * Returns the list of payments that require some extra processing and
187
     * which belong to a particular category. This is currently used by CRM
188
     * application.
189
     * 
190
     * @param category
191
     */
192
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
193
 
194
    /**
195
     * Marks a particular payment as processed for a particular cateogory.
196
     * It essentially deletes the payment if it is processed for a particular
197
     * category. This is currently used by CRM application.
198
     * 
199
     * @param paymentId
200
     * @param category
201
     */
202
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
203
 
123 ashish 204
  }
205
 
3430 rajveer 206
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
207
 
208
    public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
209
 
210
    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;
211
 
212
    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;
213
 
4141 chandransh 214
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
215
 
3430 rajveer 216
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
217
 
4600 varun.gupt 218
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
219
 
3430 rajveer 220
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
221
 
222
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
223
 
4600 varun.gupt 224
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
225
 
3430 rajveer 226
    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;
227
 
228
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
229
 
230
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
231
 
3616 chandransh 232
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
233
 
3430 rajveer 234
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
235
 
236
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
237
 
3956 chandransh 238
    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;
239
 
4008 mandeep.dh 240
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
241
 
242
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
243
 
3430 rajveer 244
  }
245
 
3374 rajveer 246
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 247
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
248
      public Factory() {}
249
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
250
        return new Client(prot);
251
      }
252
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
253
        return new Client(iprot, oprot);
254
      }
255
    }
256
 
257
    public Client(org.apache.thrift.protocol.TProtocol prot)
123 ashish 258
    {
3430 rajveer 259
      super(prot, prot);
123 ashish 260
    }
261
 
3430 rajveer 262
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 263
      super(iprot, oprot);
123 ashish 264
    }
265
 
3430 rajveer 266
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException
123 ashish 267
    {
695 rajveer 268
      send_createPayment(userId, amount, gatewayId, txnId);
123 ashish 269
      return recv_createPayment();
270
    }
271
 
3430 rajveer 272
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws org.apache.thrift.TException
123 ashish 273
    {
274
      createPayment_args args = new createPayment_args();
3430 rajveer 275
      args.setUserId(userId);
276
      args.setAmount(amount);
277
      args.setGatewayId(gatewayId);
278
      args.setTxnId(txnId);
279
      sendBase("createPayment", args);
123 ashish 280
    }
281
 
3430 rajveer 282
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
123 ashish 283
    {
284
      createPayment_result result = new createPayment_result();
3430 rajveer 285
      receiveBase(result, "createPayment");
123 ashish 286
      if (result.isSetSuccess()) {
287
        return result.success;
288
      }
289
      if (result.pe != null) {
290
        throw result.pe;
291
      }
3430 rajveer 292
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
123 ashish 293
    }
294
 
3430 rajveer 295
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 296
    {
695 rajveer 297
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
123 ashish 298
      return recv_getPaymentsForUser();
299
    }
300
 
3430 rajveer 301
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 302
    {
303
      getPaymentsForUser_args args = new getPaymentsForUser_args();
3430 rajveer 304
      args.setUserId(userId);
305
      args.setFromTime(fromTime);
306
      args.setToTime(toTime);
307
      args.setStatus(status);
308
      args.setGatewayId(gatewayId);
309
      sendBase("getPaymentsForUser", args);
123 ashish 310
    }
311
 
3430 rajveer 312
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
123 ashish 313
    {
314
      getPaymentsForUser_result result = new getPaymentsForUser_result();
3430 rajveer 315
      receiveBase(result, "getPaymentsForUser");
123 ashish 316
      if (result.isSetSuccess()) {
317
        return result.success;
318
      }
319
      if (result.pe != null) {
320
        throw result.pe;
321
      }
3430 rajveer 322
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
123 ashish 323
    }
324
 
3430 rajveer 325
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 326
    {
695 rajveer 327
      send_getPayments(fromTime, toTime, status, gatewayId);
123 ashish 328
      return recv_getPayments();
329
    }
330
 
3430 rajveer 331
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 332
    {
333
      getPayments_args args = new getPayments_args();
3430 rajveer 334
      args.setFromTime(fromTime);
335
      args.setToTime(toTime);
336
      args.setStatus(status);
337
      args.setGatewayId(gatewayId);
338
      sendBase("getPayments", args);
123 ashish 339
    }
340
 
3430 rajveer 341
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
123 ashish 342
    {
343
      getPayments_result result = new getPayments_result();
3430 rajveer 344
      receiveBase(result, "getPayments");
123 ashish 345
      if (result.isSetSuccess()) {
346
        return result.success;
347
      }
348
      if (result.pe != null) {
349
        throw result.pe;
350
      }
3430 rajveer 351
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
123 ashish 352
    }
353
 
4141 chandransh 354
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
355
    {
356
      send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
357
      return recv_getPaymentsByCapturedDate();
358
    }
359
 
360
    public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
361
    {
362
      getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
363
      args.setFromTime(fromTime);
364
      args.setToTime(toTime);
365
      args.setGatewayId(gatewayId);
366
      sendBase("getPaymentsByCapturedDate", args);
367
    }
368
 
369
    public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
370
    {
371
      getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
372
      receiveBase(result, "getPaymentsByCapturedDate");
373
      if (result.isSetSuccess()) {
374
        return result.success;
375
      }
376
      if (result.pe != null) {
377
        throw result.pe;
378
      }
379
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
380
    }
381
 
3430 rajveer 382
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 383
    {
384
      send_getPaymentGateway(id);
385
      return recv_getPaymentGateway();
386
    }
387
 
3430 rajveer 388
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
420 ashish 389
    {
390
      getPaymentGateway_args args = new getPaymentGateway_args();
3430 rajveer 391
      args.setId(id);
392
      sendBase("getPaymentGateway", args);
420 ashish 393
    }
394
 
3430 rajveer 395
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
420 ashish 396
    {
397
      getPaymentGateway_result result = new getPaymentGateway_result();
3430 rajveer 398
      receiveBase(result, "getPaymentGateway");
420 ashish 399
      if (result.isSetSuccess()) {
400
        return result.success;
401
      }
402
      if (result.pe != null) {
403
        throw result.pe;
404
      }
3430 rajveer 405
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
420 ashish 406
    }
407
 
4600 varun.gupt 408
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
409
    {
410
      send_getActivePaymentGateways();
411
      return recv_getActivePaymentGateways();
412
    }
413
 
414
    public void send_getActivePaymentGateways() throws org.apache.thrift.TException
415
    {
416
      getActivePaymentGateways_args args = new getActivePaymentGateways_args();
417
      sendBase("getActivePaymentGateways", args);
418
    }
419
 
420
    public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
421
    {
422
      getActivePaymentGateways_result result = new getActivePaymentGateways_result();
423
      receiveBase(result, "getActivePaymentGateways");
424
      if (result.isSetSuccess()) {
425
        return result.success;
426
      }
427
      if (result.pe != null) {
428
        throw result.pe;
429
      }
430
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
431
    }
432
 
3430 rajveer 433
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 434
    {
695 rajveer 435
      send_getPayment(id);
436
      return recv_getPayment();
420 ashish 437
    }
438
 
3430 rajveer 439
    public void send_getPayment(long id) throws org.apache.thrift.TException
420 ashish 440
    {
695 rajveer 441
      getPayment_args args = new getPayment_args();
3430 rajveer 442
      args.setId(id);
443
      sendBase("getPayment", args);
420 ashish 444
    }
445
 
3430 rajveer 446
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
420 ashish 447
    {
695 rajveer 448
      getPayment_result result = new getPayment_result();
3430 rajveer 449
      receiveBase(result, "getPayment");
695 rajveer 450
      if (result.isSetSuccess()) {
451
        return result.success;
452
      }
420 ashish 453
      if (result.pe != null) {
454
        throw result.pe;
455
      }
3430 rajveer 456
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
420 ashish 457
    }
458
 
3430 rajveer 459
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
420 ashish 460
    {
695 rajveer 461
      send_getPaymentForTxnId(txnId);
462
      return recv_getPaymentForTxnId();
420 ashish 463
    }
464
 
3430 rajveer 465
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
420 ashish 466
    {
695 rajveer 467
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
3430 rajveer 468
      args.setTxnId(txnId);
469
      sendBase("getPaymentForTxnId", args);
420 ashish 470
    }
471
 
3430 rajveer 472
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
420 ashish 473
    {
695 rajveer 474
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
3430 rajveer 475
      receiveBase(result, "getPaymentForTxnId");
420 ashish 476
      if (result.isSetSuccess()) {
477
        return result.success;
478
      }
479
      if (result.pe != null) {
480
        throw result.pe;
481
      }
3430 rajveer 482
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
420 ashish 483
    }
484
 
4600 varun.gupt 485
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
486
    {
487
      send_getSuccessfulPaymentForTxnId(txnId);
488
      return recv_getSuccessfulPaymentForTxnId();
489
    }
490
 
491
    public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
492
    {
493
      getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
494
      args.setTxnId(txnId);
495
      sendBase("getSuccessfulPaymentForTxnId", args);
496
    }
497
 
498
    public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
499
    {
500
      getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
501
      receiveBase(result, "getSuccessfulPaymentForTxnId");
502
      if (result.isSetSuccess()) {
503
        return result.success;
504
      }
505
      if (result.pe != null) {
506
        throw result.pe;
507
      }
508
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
509
    }
510
 
3430 rajveer 511
    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 512
    {
1119 rajveer 513
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
695 rajveer 514
      return recv_updatePaymentDetails();
420 ashish 515
    }
516
 
3430 rajveer 517
    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 518
    {
695 rajveer 519
      updatePaymentDetails_args args = new updatePaymentDetails_args();
3430 rajveer 520
      args.setId(id);
521
      args.setGatewayPaymentId(gatewayPaymentId);
522
      args.setSessionId(sessionId);
523
      args.setGatewayTxnStatus(gatewayTxnStatus);
524
      args.setDescription(description);
525
      args.setGatewayTxnId(gatewayTxnId);
526
      args.setAuthCode(authCode);
527
      args.setReferenceCode(referenceCode);
528
      args.setErrorCode(errorCode);
529
      args.setStatus(status);
530
      args.setGatewayTxnDate(gatewayTxnDate);
531
      args.setAttributes(attributes);
532
      sendBase("updatePaymentDetails", args);
420 ashish 533
    }
534
 
3430 rajveer 535
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
420 ashish 536
    {
695 rajveer 537
      updatePaymentDetails_result result = new updatePaymentDetails_result();
3430 rajveer 538
      receiveBase(result, "updatePaymentDetails");
695 rajveer 539
      if (result.isSetSuccess()) {
540
        return result.success;
541
      }
420 ashish 542
      if (result.pe != null) {
543
        throw result.pe;
544
      }
3430 rajveer 545
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
420 ashish 546
    }
547
 
3430 rajveer 548
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 549
    {
1731 ankur.sing 550
      send_getSuccessfulPaymentsAmountRange();
551
      return recv_getSuccessfulPaymentsAmountRange();
1629 ankur.sing 552
    }
553
 
3430 rajveer 554
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 555
    {
1731 ankur.sing 556
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
3430 rajveer 557
      sendBase("getSuccessfulPaymentsAmountRange", args);
1629 ankur.sing 558
    }
559
 
3430 rajveer 560
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 561
    {
1731 ankur.sing 562
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 563
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
1629 ankur.sing 564
      if (result.isSetSuccess()) {
565
        return result.success;
566
      }
3430 rajveer 567
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
1629 ankur.sing 568
    }
569
 
3430 rajveer 570
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
2462 chandransh 571
    {
572
      send_initializeHdfcPayment(merchantPaymentId);
573
      return recv_initializeHdfcPayment();
574
    }
575
 
3430 rajveer 576
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
2462 chandransh 577
    {
578
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
3430 rajveer 579
      args.setMerchantPaymentId(merchantPaymentId);
580
      sendBase("initializeHdfcPayment", args);
2462 chandransh 581
    }
582
 
3430 rajveer 583
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
2462 chandransh 584
    {
585
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
3430 rajveer 586
      receiveBase(result, "initializeHdfcPayment");
2462 chandransh 587
      if (result.isSetSuccess()) {
588
        return result.success;
589
      }
590
      if (result.pe != null) {
591
        throw result.pe;
592
      }
3430 rajveer 593
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
2462 chandransh 594
    }
595
 
3616 chandransh 596
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
597
    {
598
      send_initializeHdfcEmiPayment(merchantPaymentId);
599
      return recv_initializeHdfcEmiPayment();
600
    }
601
 
602
    public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
603
    {
604
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
605
      args.setMerchantPaymentId(merchantPaymentId);
606
      sendBase("initializeHdfcEmiPayment", args);
607
    }
608
 
609
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
610
    {
611
      initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
612
      receiveBase(result, "initializeHdfcEmiPayment");
613
      if (result.isSetSuccess()) {
614
        return result.success;
615
      }
616
      if (result.pe != null) {
617
        throw result.pe;
618
      }
619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
620
    }
621
 
3430 rajveer 622
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
2690 chandransh 623
    {
624
      send_createRefund(orderId, merchantTxnId, amount);
625
      return recv_createRefund();
626
    }
627
 
3430 rajveer 628
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
2690 chandransh 629
    {
630
      createRefund_args args = new createRefund_args();
3430 rajveer 631
      args.setOrderId(orderId);
632
      args.setMerchantTxnId(merchantTxnId);
633
      args.setAmount(amount);
634
      sendBase("createRefund", args);
2690 chandransh 635
    }
636
 
3430 rajveer 637
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
2690 chandransh 638
    {
639
      createRefund_result result = new createRefund_result();
3430 rajveer 640
      receiveBase(result, "createRefund");
2690 chandransh 641
      if (result.isSetSuccess()) {
642
        return result.success;
643
      }
644
      if (result.pe != null) {
645
        throw result.pe;
646
      }
3430 rajveer 647
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
2690 chandransh 648
    }
649
 
3430 rajveer 650
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
3010 chandransh 651
    {
652
      send_capturePayment(merchantTxnId);
653
      return recv_capturePayment();
654
    }
655
 
3430 rajveer 656
    public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
3010 chandransh 657
    {
658
      capturePayment_args args = new capturePayment_args();
3430 rajveer 659
      args.setMerchantTxnId(merchantTxnId);
660
      sendBase("capturePayment", args);
3010 chandransh 661
    }
662
 
3430 rajveer 663
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
3010 chandransh 664
    {
665
      capturePayment_result result = new capturePayment_result();
3430 rajveer 666
      receiveBase(result, "capturePayment");
3010 chandransh 667
      if (result.isSetSuccess()) {
668
        return result.success;
669
      }
670
      if (result.pe != null) {
671
        throw result.pe;
672
      }
3430 rajveer 673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
3010 chandransh 674
    }
675
 
3956 chandransh 676
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
677
    {
678
      send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
679
      return recv_partiallyCapturePayment();
680
    }
681
 
682
    public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
683
    {
684
      partiallyCapturePayment_args args = new partiallyCapturePayment_args();
685
      args.setMerchantTxnId(merchantTxnId);
686
      args.setAmount(amount);
687
      args.setXferBy(xferBy);
688
      args.setXferTxnId(xferTxnId);
689
      args.setXferDate(xferDate);
690
      sendBase("partiallyCapturePayment", args);
691
    }
692
 
693
    public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
694
    {
695
      partiallyCapturePayment_result result = new partiallyCapturePayment_result();
696
      receiveBase(result, "partiallyCapturePayment");
697
      if (result.isSetSuccess()) {
698
        return result.success;
699
      }
700
      if (result.pe != null) {
701
        throw result.pe;
702
      }
703
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
704
    }
705
 
4008 mandeep.dh 706
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
707
    {
708
      send_getPaymentsRequiringExtraProcessing(category);
709
      return recv_getPaymentsRequiringExtraProcessing();
710
    }
711
 
712
    public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
713
    {
714
      getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
715
      args.setCategory(category);
716
      sendBase("getPaymentsRequiringExtraProcessing", args);
717
    }
718
 
719
    public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
720
    {
721
      getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
722
      receiveBase(result, "getPaymentsRequiringExtraProcessing");
723
      if (result.isSetSuccess()) {
724
        return result.success;
725
      }
726
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
727
    }
728
 
729
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
730
    {
731
      send_markPaymentAsProcessed(paymentId, category);
732
      recv_markPaymentAsProcessed();
733
    }
734
 
735
    public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
736
    {
737
      markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
738
      args.setPaymentId(paymentId);
739
      args.setCategory(category);
740
      sendBase("markPaymentAsProcessed", args);
741
    }
742
 
743
    public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
744
    {
745
      markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
746
      receiveBase(result, "markPaymentAsProcessed");
747
      return;
748
    }
749
 
123 ashish 750
  }
3430 rajveer 751
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
752
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
753
      private org.apache.thrift.async.TAsyncClientManager clientManager;
754
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
755
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
756
        this.clientManager = clientManager;
757
        this.protocolFactory = protocolFactory;
758
      }
759
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
760
        return new AsyncClient(protocolFactory, clientManager, transport);
761
      }
123 ashish 762
    }
763
 
3430 rajveer 764
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
765
      super(protocolFactory, clientManager, transport);
766
    }
123 ashish 767
 
3430 rajveer 768
    public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
769
      checkReady();
770
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, resultHandler, this, ___protocolFactory, ___transport);
771
      this.___currentMethod = method_call;
772
      ___manager.call(method_call);
773
    }
774
 
775
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
776
      private long userId;
777
      private double amount;
778
      private long gatewayId;
779
      private long txnId;
780
      public createPayment_call(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
781
        super(client, protocolFactory, transport, resultHandler, false);
782
        this.userId = userId;
783
        this.amount = amount;
784
        this.gatewayId = gatewayId;
785
        this.txnId = txnId;
123 ashish 786
      }
3430 rajveer 787
 
788
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
789
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
790
        createPayment_args args = new createPayment_args();
791
        args.setUserId(userId);
792
        args.setAmount(amount);
793
        args.setGatewayId(gatewayId);
794
        args.setTxnId(txnId);
795
        args.write(prot);
796
        prot.writeMessageEnd();
797
      }
798
 
799
      public long getResult() throws PaymentException, org.apache.thrift.TException {
800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
801
          throw new IllegalStateException("Method call not finished!");
802
        }
803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
805
        return (new Client(prot)).recv_createPayment();
806
      }
123 ashish 807
    }
808
 
3430 rajveer 809
    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 {
810
      checkReady();
811
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
812
      this.___currentMethod = method_call;
813
      ___manager.call(method_call);
814
    }
815
 
816
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
817
      private long userId;
818
      private long fromTime;
819
      private long toTime;
820
      private PaymentStatus status;
821
      private long gatewayId;
822
      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 {
823
        super(client, protocolFactory, transport, resultHandler, false);
824
        this.userId = userId;
825
        this.fromTime = fromTime;
826
        this.toTime = toTime;
827
        this.status = status;
828
        this.gatewayId = gatewayId;
829
      }
830
 
831
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
832
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
833
        getPaymentsForUser_args args = new getPaymentsForUser_args();
834
        args.setUserId(userId);
835
        args.setFromTime(fromTime);
836
        args.setToTime(toTime);
837
        args.setStatus(status);
838
        args.setGatewayId(gatewayId);
839
        args.write(prot);
840
        prot.writeMessageEnd();
841
      }
842
 
843
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
844
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
845
          throw new IllegalStateException("Method call not finished!");
846
        }
847
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
848
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
849
        return (new Client(prot)).recv_getPaymentsForUser();
850
      }
851
    }
852
 
853
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
854
      checkReady();
855
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
856
      this.___currentMethod = method_call;
857
      ___manager.call(method_call);
858
    }
859
 
860
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
861
      private long fromTime;
862
      private long toTime;
863
      private PaymentStatus status;
864
      private long gatewayId;
865
      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 {
866
        super(client, protocolFactory, transport, resultHandler, false);
867
        this.fromTime = fromTime;
868
        this.toTime = toTime;
869
        this.status = status;
870
        this.gatewayId = gatewayId;
871
      }
872
 
873
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
874
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
875
        getPayments_args args = new getPayments_args();
876
        args.setFromTime(fromTime);
877
        args.setToTime(toTime);
878
        args.setStatus(status);
879
        args.setGatewayId(gatewayId);
880
        args.write(prot);
881
        prot.writeMessageEnd();
882
      }
883
 
884
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
885
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
886
          throw new IllegalStateException("Method call not finished!");
887
        }
888
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
889
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
890
        return (new Client(prot)).recv_getPayments();
891
      }
892
    }
893
 
4141 chandransh 894
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
895
      checkReady();
896
      getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
897
      this.___currentMethod = method_call;
898
      ___manager.call(method_call);
899
    }
900
 
901
    public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
902
      private long fromTime;
903
      private long toTime;
904
      private long gatewayId;
905
      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 {
906
        super(client, protocolFactory, transport, resultHandler, false);
907
        this.fromTime = fromTime;
908
        this.toTime = toTime;
909
        this.gatewayId = gatewayId;
910
      }
911
 
912
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
913
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
914
        getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
915
        args.setFromTime(fromTime);
916
        args.setToTime(toTime);
917
        args.setGatewayId(gatewayId);
918
        args.write(prot);
919
        prot.writeMessageEnd();
920
      }
921
 
922
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
923
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
924
          throw new IllegalStateException("Method call not finished!");
925
        }
926
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
927
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
928
        return (new Client(prot)).recv_getPaymentsByCapturedDate();
929
      }
930
    }
931
 
3430 rajveer 932
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
933
      checkReady();
934
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
935
      this.___currentMethod = method_call;
936
      ___manager.call(method_call);
937
    }
938
 
939
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
940
      private long id;
941
      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 {
942
        super(client, protocolFactory, transport, resultHandler, false);
943
        this.id = id;
944
      }
945
 
946
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
947
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
948
        getPaymentGateway_args args = new getPaymentGateway_args();
949
        args.setId(id);
950
        args.write(prot);
951
        prot.writeMessageEnd();
952
      }
953
 
954
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
955
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
956
          throw new IllegalStateException("Method call not finished!");
957
        }
958
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
959
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
960
        return (new Client(prot)).recv_getPaymentGateway();
961
      }
962
    }
963
 
4600 varun.gupt 964
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
965
      checkReady();
966
      getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
967
      this.___currentMethod = method_call;
968
      ___manager.call(method_call);
969
    }
970
 
971
    public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
972
      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 {
973
        super(client, protocolFactory, transport, resultHandler, false);
974
      }
975
 
976
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
977
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
978
        getActivePaymentGateways_args args = new getActivePaymentGateways_args();
979
        args.write(prot);
980
        prot.writeMessageEnd();
981
      }
982
 
983
      public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
985
          throw new IllegalStateException("Method call not finished!");
986
        }
987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
989
        return (new Client(prot)).recv_getActivePaymentGateways();
990
      }
991
    }
992
 
3430 rajveer 993
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
994
      checkReady();
995
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
996
      this.___currentMethod = method_call;
997
      ___manager.call(method_call);
998
    }
999
 
1000
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1001
      private long id;
1002
      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 {
1003
        super(client, protocolFactory, transport, resultHandler, false);
1004
        this.id = id;
1005
      }
1006
 
1007
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1008
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1009
        getPayment_args args = new getPayment_args();
1010
        args.setId(id);
1011
        args.write(prot);
1012
        prot.writeMessageEnd();
1013
      }
1014
 
1015
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1016
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1017
          throw new IllegalStateException("Method call not finished!");
1018
        }
1019
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1020
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1021
        return (new Client(prot)).recv_getPayment();
1022
      }
1023
    }
1024
 
1025
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1026
      checkReady();
1027
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1028
      this.___currentMethod = method_call;
1029
      ___manager.call(method_call);
1030
    }
1031
 
1032
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1033
      private long txnId;
1034
      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 {
1035
        super(client, protocolFactory, transport, resultHandler, false);
1036
        this.txnId = txnId;
1037
      }
1038
 
1039
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1040
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1041
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
1042
        args.setTxnId(txnId);
1043
        args.write(prot);
1044
        prot.writeMessageEnd();
1045
      }
1046
 
1047
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1048
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1049
          throw new IllegalStateException("Method call not finished!");
1050
        }
1051
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1052
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1053
        return (new Client(prot)).recv_getPaymentForTxnId();
1054
      }
1055
    }
1056
 
4600 varun.gupt 1057
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1058
      checkReady();
1059
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1060
      this.___currentMethod = method_call;
1061
      ___manager.call(method_call);
1062
    }
1063
 
1064
    public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1065
      private long txnId;
1066
      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 {
1067
        super(client, protocolFactory, transport, resultHandler, false);
1068
        this.txnId = txnId;
1069
      }
1070
 
1071
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1072
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1073
        getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
1074
        args.setTxnId(txnId);
1075
        args.write(prot);
1076
        prot.writeMessageEnd();
1077
      }
1078
 
1079
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1080
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1081
          throw new IllegalStateException("Method call not finished!");
1082
        }
1083
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1084
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1085
        return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
1086
      }
1087
    }
1088
 
3430 rajveer 1089
    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 {
1090
      checkReady();
1091
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
1092
      this.___currentMethod = method_call;
1093
      ___manager.call(method_call);
1094
    }
1095
 
1096
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
1097
      private long id;
1098
      private String gatewayPaymentId;
1099
      private String sessionId;
1100
      private String gatewayTxnStatus;
1101
      private String description;
1102
      private String gatewayTxnId;
1103
      private String authCode;
1104
      private String referenceCode;
1105
      private String errorCode;
1106
      private PaymentStatus status;
1107
      private String gatewayTxnDate;
1108
      private List<Attribute> attributes;
1109
      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 {
1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
        this.id = id;
1112
        this.gatewayPaymentId = gatewayPaymentId;
1113
        this.sessionId = sessionId;
1114
        this.gatewayTxnStatus = gatewayTxnStatus;
1115
        this.description = description;
1116
        this.gatewayTxnId = gatewayTxnId;
1117
        this.authCode = authCode;
1118
        this.referenceCode = referenceCode;
1119
        this.errorCode = errorCode;
1120
        this.status = status;
1121
        this.gatewayTxnDate = gatewayTxnDate;
1122
        this.attributes = attributes;
1123
      }
1124
 
1125
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1126
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
1127
        updatePaymentDetails_args args = new updatePaymentDetails_args();
1128
        args.setId(id);
1129
        args.setGatewayPaymentId(gatewayPaymentId);
1130
        args.setSessionId(sessionId);
1131
        args.setGatewayTxnStatus(gatewayTxnStatus);
1132
        args.setDescription(description);
1133
        args.setGatewayTxnId(gatewayTxnId);
1134
        args.setAuthCode(authCode);
1135
        args.setReferenceCode(referenceCode);
1136
        args.setErrorCode(errorCode);
1137
        args.setStatus(status);
1138
        args.setGatewayTxnDate(gatewayTxnDate);
1139
        args.setAttributes(attributes);
1140
        args.write(prot);
1141
        prot.writeMessageEnd();
1142
      }
1143
 
1144
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1145
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1146
          throw new IllegalStateException("Method call not finished!");
1147
        }
1148
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1149
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1150
        return (new Client(prot)).recv_updatePaymentDetails();
1151
      }
1152
    }
1153
 
1154
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
1155
      checkReady();
1156
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
1157
      this.___currentMethod = method_call;
1158
      ___manager.call(method_call);
1159
    }
1160
 
1161
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
1162
      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 {
1163
        super(client, protocolFactory, transport, resultHandler, false);
1164
      }
1165
 
1166
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1167
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
1168
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
1169
        args.write(prot);
1170
        prot.writeMessageEnd();
1171
      }
1172
 
1173
      public List<Double> getResult() throws org.apache.thrift.TException {
1174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1175
          throw new IllegalStateException("Method call not finished!");
1176
        }
1177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1179
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1180
      }
1181
    }
1182
 
1183
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
1184
      checkReady();
1185
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1186
      this.___currentMethod = method_call;
1187
      ___manager.call(method_call);
1188
    }
1189
 
1190
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1191
      private long merchantPaymentId;
1192
      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 {
1193
        super(client, protocolFactory, transport, resultHandler, false);
1194
        this.merchantPaymentId = merchantPaymentId;
1195
      }
1196
 
1197
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1198
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1199
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1200
        args.setMerchantPaymentId(merchantPaymentId);
1201
        args.write(prot);
1202
        prot.writeMessageEnd();
1203
      }
1204
 
1205
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1206
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1207
          throw new IllegalStateException("Method call not finished!");
1208
        }
1209
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1210
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1211
        return (new Client(prot)).recv_initializeHdfcPayment();
1212
      }
1213
    }
1214
 
3616 chandransh 1215
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1216
      checkReady();
1217
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1218
      this.___currentMethod = method_call;
1219
      ___manager.call(method_call);
1220
    }
1221
 
1222
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1223
      private long merchantPaymentId;
1224
      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 {
1225
        super(client, protocolFactory, transport, resultHandler, false);
1226
        this.merchantPaymentId = merchantPaymentId;
1227
      }
1228
 
1229
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1230
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1231
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1232
        args.setMerchantPaymentId(merchantPaymentId);
1233
        args.write(prot);
1234
        prot.writeMessageEnd();
1235
      }
1236
 
1237
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1238
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1239
          throw new IllegalStateException("Method call not finished!");
1240
        }
1241
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1242
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1243
        return (new Client(prot)).recv_initializeHdfcEmiPayment();
1244
      }
1245
    }
1246
 
3430 rajveer 1247
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
1248
      checkReady();
1249
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
1250
      this.___currentMethod = method_call;
1251
      ___manager.call(method_call);
1252
    }
1253
 
1254
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
1255
      private long orderId;
1256
      private long merchantTxnId;
1257
      private double amount;
1258
      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 {
1259
        super(client, protocolFactory, transport, resultHandler, false);
1260
        this.orderId = orderId;
1261
        this.merchantTxnId = merchantTxnId;
1262
        this.amount = amount;
1263
      }
1264
 
1265
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1266
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
1267
        createRefund_args args = new createRefund_args();
1268
        args.setOrderId(orderId);
1269
        args.setMerchantTxnId(merchantTxnId);
1270
        args.setAmount(amount);
1271
        args.write(prot);
1272
        prot.writeMessageEnd();
1273
      }
1274
 
1275
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1277
          throw new IllegalStateException("Method call not finished!");
1278
        }
1279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1281
        return (new Client(prot)).recv_createRefund();
1282
      }
1283
    }
1284
 
1285
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
1286
      checkReady();
1287
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
1288
      this.___currentMethod = method_call;
1289
      ___manager.call(method_call);
1290
    }
1291
 
1292
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1293
      private long merchantTxnId;
1294
      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 {
1295
        super(client, protocolFactory, transport, resultHandler, false);
1296
        this.merchantTxnId = merchantTxnId;
1297
      }
1298
 
1299
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1300
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1301
        capturePayment_args args = new capturePayment_args();
1302
        args.setMerchantTxnId(merchantTxnId);
1303
        args.write(prot);
1304
        prot.writeMessageEnd();
1305
      }
1306
 
1307
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1308
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1309
          throw new IllegalStateException("Method call not finished!");
1310
        }
1311
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1312
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1313
        return (new Client(prot)).recv_capturePayment();
1314
      }
1315
    }
1316
 
3956 chandransh 1317
    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 {
1318
      checkReady();
1319
      partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
1320
      this.___currentMethod = method_call;
1321
      ___manager.call(method_call);
1322
    }
1323
 
1324
    public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1325
      private long merchantTxnId;
1326
      private double amount;
1327
      private String xferBy;
1328
      private String xferTxnId;
1329
      private long xferDate;
1330
      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 {
1331
        super(client, protocolFactory, transport, resultHandler, false);
1332
        this.merchantTxnId = merchantTxnId;
1333
        this.amount = amount;
1334
        this.xferBy = xferBy;
1335
        this.xferTxnId = xferTxnId;
1336
        this.xferDate = xferDate;
1337
      }
1338
 
1339
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1340
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1341
        partiallyCapturePayment_args args = new partiallyCapturePayment_args();
1342
        args.setMerchantTxnId(merchantTxnId);
1343
        args.setAmount(amount);
1344
        args.setXferBy(xferBy);
1345
        args.setXferTxnId(xferTxnId);
1346
        args.setXferDate(xferDate);
1347
        args.write(prot);
1348
        prot.writeMessageEnd();
1349
      }
1350
 
1351
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1353
          throw new IllegalStateException("Method call not finished!");
1354
        }
1355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1357
        return (new Client(prot)).recv_partiallyCapturePayment();
1358
      }
1359
    }
1360
 
4008 mandeep.dh 1361
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
1362
      checkReady();
1363
      getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
1364
      this.___currentMethod = method_call;
1365
      ___manager.call(method_call);
1366
    }
1367
 
1368
    public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
1369
      private ExtraPaymentProcessingType category;
1370
      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 {
1371
        super(client, protocolFactory, transport, resultHandler, false);
1372
        this.category = category;
1373
      }
1374
 
1375
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1376
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1377
        getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
1378
        args.setCategory(category);
1379
        args.write(prot);
1380
        prot.writeMessageEnd();
1381
      }
1382
 
1383
      public List<Long> getResult() throws org.apache.thrift.TException {
1384
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1385
          throw new IllegalStateException("Method call not finished!");
1386
        }
1387
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1389
        return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
1390
      }
1391
    }
1392
 
1393
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
1394
      checkReady();
1395
      markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
1396
      this.___currentMethod = method_call;
1397
      ___manager.call(method_call);
1398
    }
1399
 
1400
    public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
1401
      private long paymentId;
1402
      private ExtraPaymentProcessingType category;
1403
      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 {
1404
        super(client, protocolFactory, transport, resultHandler, false);
1405
        this.paymentId = paymentId;
1406
        this.category = category;
1407
      }
1408
 
1409
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1410
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
1411
        markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
1412
        args.setPaymentId(paymentId);
1413
        args.setCategory(category);
1414
        args.write(prot);
1415
        prot.writeMessageEnd();
1416
      }
1417
 
1418
      public void getResult() throws org.apache.thrift.TException {
1419
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1420
          throw new IllegalStateException("Method call not finished!");
1421
        }
1422
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1423
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1424
        (new Client(prot)).recv_markPaymentAsProcessed();
1425
      }
1426
    }
1427
 
3430 rajveer 1428
  }
1429
 
1430
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1431
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1432
    public Processor(I iface) {
1433
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1434
    }
1435
 
1436
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1437
      super(iface, getProcessMap(processMap));
1438
    }
1439
 
1440
    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) {
1441
      processMap.put("createPayment", new createPayment());
1442
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1443
      processMap.put("getPayments", new getPayments());
4141 chandransh 1444
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
3430 rajveer 1445
      processMap.put("getPaymentGateway", new getPaymentGateway());
4600 varun.gupt 1446
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
3430 rajveer 1447
      processMap.put("getPayment", new getPayment());
1448
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
4600 varun.gupt 1449
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
3430 rajveer 1450
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1451
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1452
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
3616 chandransh 1453
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
3430 rajveer 1454
      processMap.put("createRefund", new createRefund());
1455
      processMap.put("capturePayment", new capturePayment());
3956 chandransh 1456
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
4008 mandeep.dh 1457
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
1458
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
3430 rajveer 1459
      return processMap;
1460
    }
1461
 
1462
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
1463
      public createPayment() {
1464
        super("createPayment");
1465
      }
1466
 
1467
      protected createPayment_args getEmptyArgsInstance() {
1468
        return new createPayment_args();
1469
      }
1470
 
1471
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
123 ashish 1472
        createPayment_result result = new createPayment_result();
1473
        try {
3430 rajveer 1474
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
420 ashish 1475
          result.setSuccessIsSet(true);
123 ashish 1476
        } catch (PaymentException pe) {
1477
          result.pe = pe;
1478
        }
3430 rajveer 1479
        return result;
123 ashish 1480
      }
1481
    }
1482
 
3430 rajveer 1483
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
1484
      public getPaymentsForUser() {
1485
        super("getPaymentsForUser");
1486
      }
1487
 
1488
      protected getPaymentsForUser_args getEmptyArgsInstance() {
1489
        return new getPaymentsForUser_args();
1490
      }
1491
 
1492
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
123 ashish 1493
        getPaymentsForUser_result result = new getPaymentsForUser_result();
1494
        try {
3430 rajveer 1495
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1496
        } catch (PaymentException pe) {
1497
          result.pe = pe;
1498
        }
3430 rajveer 1499
        return result;
123 ashish 1500
      }
1501
    }
1502
 
3430 rajveer 1503
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
1504
      public getPayments() {
1505
        super("getPayments");
1506
      }
1507
 
1508
      protected getPayments_args getEmptyArgsInstance() {
1509
        return new getPayments_args();
1510
      }
1511
 
1512
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
123 ashish 1513
        getPayments_result result = new getPayments_result();
1514
        try {
3430 rajveer 1515
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1516
        } catch (PaymentException pe) {
1517
          result.pe = pe;
1518
        }
3430 rajveer 1519
        return result;
123 ashish 1520
      }
1521
    }
1522
 
4141 chandransh 1523
    private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
1524
      public getPaymentsByCapturedDate() {
1525
        super("getPaymentsByCapturedDate");
1526
      }
1527
 
1528
      protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
1529
        return new getPaymentsByCapturedDate_args();
1530
      }
1531
 
1532
      protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
1533
        getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
1534
        try {
1535
          result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
1536
        } catch (PaymentException pe) {
1537
          result.pe = pe;
1538
        }
1539
        return result;
1540
      }
1541
    }
1542
 
3430 rajveer 1543
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1544
      public getPaymentGateway() {
1545
        super("getPaymentGateway");
1546
      }
1547
 
1548
      protected getPaymentGateway_args getEmptyArgsInstance() {
1549
        return new getPaymentGateway_args();
1550
      }
1551
 
1552
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
420 ashish 1553
        getPaymentGateway_result result = new getPaymentGateway_result();
1554
        try {
3430 rajveer 1555
          result.success = iface.getPaymentGateway(args.id);
420 ashish 1556
        } catch (PaymentException pe) {
1557
          result.pe = pe;
1558
        }
3430 rajveer 1559
        return result;
420 ashish 1560
      }
1561
    }
1562
 
4600 varun.gupt 1563
    private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
1564
      public getActivePaymentGateways() {
1565
        super("getActivePaymentGateways");
1566
      }
1567
 
1568
      protected getActivePaymentGateways_args getEmptyArgsInstance() {
1569
        return new getActivePaymentGateways_args();
1570
      }
1571
 
1572
      protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
1573
        getActivePaymentGateways_result result = new getActivePaymentGateways_result();
1574
        try {
1575
          result.success = iface.getActivePaymentGateways();
1576
        } catch (PaymentException pe) {
1577
          result.pe = pe;
1578
        }
1579
        return result;
1580
      }
1581
    }
1582
 
3430 rajveer 1583
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1584
      public getPayment() {
1585
        super("getPayment");
1586
      }
1587
 
1588
      protected getPayment_args getEmptyArgsInstance() {
1589
        return new getPayment_args();
1590
      }
1591
 
1592
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
695 rajveer 1593
        getPayment_result result = new getPayment_result();
420 ashish 1594
        try {
3430 rajveer 1595
          result.success = iface.getPayment(args.id);
420 ashish 1596
        } catch (PaymentException pe) {
1597
          result.pe = pe;
1598
        }
3430 rajveer 1599
        return result;
420 ashish 1600
      }
1601
    }
1602
 
3430 rajveer 1603
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
1604
      public getPaymentForTxnId() {
1605
        super("getPaymentForTxnId");
1606
      }
1607
 
1608
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
1609
        return new getPaymentForTxnId_args();
1610
      }
1611
 
1612
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
695 rajveer 1613
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
420 ashish 1614
        try {
3430 rajveer 1615
          result.success = iface.getPaymentForTxnId(args.txnId);
420 ashish 1616
        } catch (PaymentException pe) {
1617
          result.pe = pe;
1618
        }
3430 rajveer 1619
        return result;
420 ashish 1620
      }
1621
    }
1622
 
4600 varun.gupt 1623
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
1624
      public getSuccessfulPaymentForTxnId() {
1625
        super("getSuccessfulPaymentForTxnId");
1626
      }
1627
 
1628
      protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
1629
        return new getSuccessfulPaymentForTxnId_args();
1630
      }
1631
 
1632
      protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
1633
        getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
1634
        try {
1635
          result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
1636
        } catch (PaymentException pe) {
1637
          result.pe = pe;
1638
        }
1639
        return result;
1640
      }
1641
    }
1642
 
3430 rajveer 1643
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1644
      public updatePaymentDetails() {
1645
        super("updatePaymentDetails");
1646
      }
1647
 
1648
      protected updatePaymentDetails_args getEmptyArgsInstance() {
1649
        return new updatePaymentDetails_args();
1650
      }
1651
 
1652
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
695 rajveer 1653
        updatePaymentDetails_result result = new updatePaymentDetails_result();
420 ashish 1654
        try {
3430 rajveer 1655
          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 1656
          result.setSuccessIsSet(true);
420 ashish 1657
        } catch (PaymentException pe) {
1658
          result.pe = pe;
1659
        }
3430 rajveer 1660
        return result;
420 ashish 1661
      }
1662
    }
1663
 
3430 rajveer 1664
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
1665
      public getSuccessfulPaymentsAmountRange() {
1666
        super("getSuccessfulPaymentsAmountRange");
1667
      }
1668
 
1669
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
1670
        return new getSuccessfulPaymentsAmountRange_args();
1671
      }
1672
 
1673
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
1731 ankur.sing 1674
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 1675
        result.success = iface.getSuccessfulPaymentsAmountRange();
1676
        return result;
1629 ankur.sing 1677
      }
1678
    }
1679
 
3430 rajveer 1680
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1681
      public initializeHdfcPayment() {
1682
        super("initializeHdfcPayment");
1683
      }
1684
 
1685
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
1686
        return new initializeHdfcPayment_args();
1687
      }
1688
 
1689
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2462 chandransh 1690
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
1691
        try {
3430 rajveer 1692
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
2462 chandransh 1693
        } catch (PaymentException pe) {
1694
          result.pe = pe;
1695
        }
3430 rajveer 1696
        return result;
2462 chandransh 1697
      }
1698
    }
1699
 
3616 chandransh 1700
    private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
1701
      public initializeHdfcEmiPayment() {
1702
        super("initializeHdfcEmiPayment");
1703
      }
1704
 
1705
      protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
1706
        return new initializeHdfcEmiPayment_args();
1707
      }
1708
 
1709
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
1710
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
1711
        try {
1712
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
1713
        } catch (PaymentException pe) {
1714
          result.pe = pe;
1715
        }
1716
        return result;
1717
      }
1718
    }
1719
 
3430 rajveer 1720
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
1721
      public createRefund() {
1722
        super("createRefund");
1723
      }
1724
 
1725
      protected createRefund_args getEmptyArgsInstance() {
1726
        return new createRefund_args();
1727
      }
1728
 
1729
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
2690 chandransh 1730
        createRefund_result result = new createRefund_result();
1731
        try {
3430 rajveer 1732
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
2690 chandransh 1733
          result.setSuccessIsSet(true);
1734
        } catch (PaymentException pe) {
1735
          result.pe = pe;
1736
        }
3430 rajveer 1737
        return result;
2690 chandransh 1738
      }
1739
    }
1740
 
3430 rajveer 1741
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
1742
      public capturePayment() {
1743
        super("capturePayment");
1744
      }
1745
 
1746
      protected capturePayment_args getEmptyArgsInstance() {
1747
        return new capturePayment_args();
1748
      }
1749
 
1750
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
3010 chandransh 1751
        capturePayment_result result = new capturePayment_result();
1752
        try {
3430 rajveer 1753
          result.success = iface.capturePayment(args.merchantTxnId);
3010 chandransh 1754
          result.setSuccessIsSet(true);
1755
        } catch (PaymentException pe) {
1756
          result.pe = pe;
1757
        }
3430 rajveer 1758
        return result;
3010 chandransh 1759
      }
1760
    }
1761
 
3956 chandransh 1762
    private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
1763
      public partiallyCapturePayment() {
1764
        super("partiallyCapturePayment");
1765
      }
1766
 
1767
      protected partiallyCapturePayment_args getEmptyArgsInstance() {
1768
        return new partiallyCapturePayment_args();
1769
      }
1770
 
1771
      protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
1772
        partiallyCapturePayment_result result = new partiallyCapturePayment_result();
1773
        try {
1774
          result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
1775
          result.setSuccessIsSet(true);
1776
        } catch (PaymentException pe) {
1777
          result.pe = pe;
1778
        }
1779
        return result;
1780
      }
1781
    }
1782
 
4008 mandeep.dh 1783
    private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
1784
      public getPaymentsRequiringExtraProcessing() {
1785
        super("getPaymentsRequiringExtraProcessing");
1786
      }
1787
 
1788
      protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
1789
        return new getPaymentsRequiringExtraProcessing_args();
1790
      }
1791
 
1792
      protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
1793
        getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
1794
        result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
1795
        return result;
1796
      }
1797
    }
1798
 
1799
    private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
1800
      public markPaymentAsProcessed() {
1801
        super("markPaymentAsProcessed");
1802
      }
1803
 
1804
      protected markPaymentAsProcessed_args getEmptyArgsInstance() {
1805
        return new markPaymentAsProcessed_args();
1806
      }
1807
 
1808
      protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
1809
        markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
1810
        iface.markPaymentAsProcessed(args.paymentId, args.category);
1811
        return result;
1812
      }
1813
    }
1814
 
123 ashish 1815
  }
1816
 
3430 rajveer 1817
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
1818
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
123 ashish 1819
 
3430 rajveer 1820
    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);
1821
    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);
1822
    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);
1823
    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);
123 ashish 1824
 
3430 rajveer 1825
    private long userId; // required
1826
    private double amount; // required
1827
    private long gatewayId; // required
1828
    private long txnId; // required
123 ashish 1829
 
1830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 1832
      USER_ID((short)1, "userId"),
1833
      AMOUNT((short)2, "amount"),
1834
      GATEWAY_ID((short)3, "gatewayId"),
1835
      TXN_ID((short)4, "txnId");
123 ashish 1836
 
1837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1838
 
1839
      static {
1840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1841
          byName.put(field.getFieldName(), field);
1842
        }
1843
      }
1844
 
1845
      /**
1846
       * Find the _Fields constant that matches fieldId, or null if its not found.
1847
       */
1848
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1849
        switch(fieldId) {
1850
          case 1: // USER_ID
1851
            return USER_ID;
1852
          case 2: // AMOUNT
1853
            return AMOUNT;
1854
          case 3: // GATEWAY_ID
1855
            return GATEWAY_ID;
1856
          case 4: // TXN_ID
1857
            return TXN_ID;
1858
          default:
1859
            return null;
1860
        }
123 ashish 1861
      }
1862
 
1863
      /**
1864
       * Find the _Fields constant that matches fieldId, throwing an exception
1865
       * if it is not found.
1866
       */
1867
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1868
        _Fields fields = findByThriftId(fieldId);
1869
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1870
        return fields;
1871
      }
1872
 
1873
      /**
1874
       * Find the _Fields constant that matches name, or null if its not found.
1875
       */
1876
      public static _Fields findByName(String name) {
1877
        return byName.get(name);
1878
      }
1879
 
1880
      private final short _thriftId;
1881
      private final String _fieldName;
1882
 
1883
      _Fields(short thriftId, String fieldName) {
1884
        _thriftId = thriftId;
1885
        _fieldName = fieldName;
1886
      }
1887
 
1888
      public short getThriftFieldId() {
1889
        return _thriftId;
1890
      }
1891
 
1892
      public String getFieldName() {
1893
        return _fieldName;
1894
      }
1895
    }
1896
 
1897
    // isset id assignments
695 rajveer 1898
    private static final int __USERID_ISSET_ID = 0;
1899
    private static final int __AMOUNT_ISSET_ID = 1;
1900
    private static final int __GATEWAYID_ISSET_ID = 2;
1901
    private static final int __TXNID_ISSET_ID = 3;
420 ashish 1902
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 1903
 
3430 rajveer 1904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 1905
    static {
3430 rajveer 1906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1907
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1909
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
1911
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1913
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1915
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1916
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
123 ashish 1917
    }
1918
 
1919
    public createPayment_args() {
1920
    }
1921
 
1922
    public createPayment_args(
695 rajveer 1923
      long userId,
123 ashish 1924
      double amount,
695 rajveer 1925
      long gatewayId,
1926
      long txnId)
123 ashish 1927
    {
1928
      this();
695 rajveer 1929
      this.userId = userId;
1930
      setUserIdIsSet(true);
123 ashish 1931
      this.amount = amount;
1932
      setAmountIsSet(true);
695 rajveer 1933
      this.gatewayId = gatewayId;
1934
      setGatewayIdIsSet(true);
1935
      this.txnId = txnId;
1936
      setTxnIdIsSet(true);
123 ashish 1937
    }
1938
 
1939
    /**
1940
     * Performs a deep copy on <i>other</i>.
1941
     */
1942
    public createPayment_args(createPayment_args other) {
1943
      __isset_bit_vector.clear();
1944
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 1945
      this.userId = other.userId;
123 ashish 1946
      this.amount = other.amount;
695 rajveer 1947
      this.gatewayId = other.gatewayId;
1948
      this.txnId = other.txnId;
123 ashish 1949
    }
1950
 
1951
    public createPayment_args deepCopy() {
1952
      return new createPayment_args(this);
1953
    }
1954
 
3430 rajveer 1955
    @Override
1956
    public void clear() {
1957
      setUserIdIsSet(false);
1958
      this.userId = 0;
1959
      setAmountIsSet(false);
1960
      this.amount = 0.0;
1961
      setGatewayIdIsSet(false);
1962
      this.gatewayId = 0;
1963
      setTxnIdIsSet(false);
1964
      this.txnId = 0;
123 ashish 1965
    }
1966
 
695 rajveer 1967
    public long getUserId() {
1968
      return this.userId;
123 ashish 1969
    }
1970
 
3430 rajveer 1971
    public void setUserId(long userId) {
695 rajveer 1972
      this.userId = userId;
1973
      setUserIdIsSet(true);
123 ashish 1974
    }
1975
 
695 rajveer 1976
    public void unsetUserId() {
1977
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 1978
    }
1979
 
3430 rajveer 1980
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
695 rajveer 1981
    public boolean isSetUserId() {
1982
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 1983
    }
1984
 
695 rajveer 1985
    public void setUserIdIsSet(boolean value) {
1986
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
123 ashish 1987
    }
1988
 
1989
    public double getAmount() {
1990
      return this.amount;
1991
    }
1992
 
3430 rajveer 1993
    public void setAmount(double amount) {
123 ashish 1994
      this.amount = amount;
1995
      setAmountIsSet(true);
1996
    }
1997
 
1998
    public void unsetAmount() {
1999
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
2000
    }
2001
 
3430 rajveer 2002
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
123 ashish 2003
    public boolean isSetAmount() {
2004
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
2005
    }
2006
 
2007
    public void setAmountIsSet(boolean value) {
2008
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
2009
    }
2010
 
695 rajveer 2011
    public long getGatewayId() {
2012
      return this.gatewayId;
123 ashish 2013
    }
2014
 
3430 rajveer 2015
    public void setGatewayId(long gatewayId) {
695 rajveer 2016
      this.gatewayId = gatewayId;
2017
      setGatewayIdIsSet(true);
123 ashish 2018
    }
2019
 
695 rajveer 2020
    public void unsetGatewayId() {
2021
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 2022
    }
2023
 
3430 rajveer 2024
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 2025
    public boolean isSetGatewayId() {
2026
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 2027
    }
2028
 
695 rajveer 2029
    public void setGatewayIdIsSet(boolean value) {
2030
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 2031
    }
2032
 
695 rajveer 2033
    public long getTxnId() {
2034
      return this.txnId;
2035
    }
2036
 
3430 rajveer 2037
    public void setTxnId(long txnId) {
695 rajveer 2038
      this.txnId = txnId;
2039
      setTxnIdIsSet(true);
2040
    }
2041
 
2042
    public void unsetTxnId() {
2043
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
2044
    }
2045
 
3430 rajveer 2046
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 2047
    public boolean isSetTxnId() {
2048
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
2049
    }
2050
 
2051
    public void setTxnIdIsSet(boolean value) {
2052
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
2053
    }
2054
 
123 ashish 2055
    public void setFieldValue(_Fields field, Object value) {
2056
      switch (field) {
2057
      case USER_ID:
2058
        if (value == null) {
695 rajveer 2059
          unsetUserId();
123 ashish 2060
        } else {
695 rajveer 2061
          setUserId((Long)value);
123 ashish 2062
        }
2063
        break;
2064
 
695 rajveer 2065
      case AMOUNT:
123 ashish 2066
        if (value == null) {
695 rajveer 2067
          unsetAmount();
123 ashish 2068
        } else {
695 rajveer 2069
          setAmount((Double)value);
123 ashish 2070
        }
2071
        break;
2072
 
695 rajveer 2073
      case GATEWAY_ID:
123 ashish 2074
        if (value == null) {
695 rajveer 2075
          unsetGatewayId();
123 ashish 2076
        } else {
695 rajveer 2077
          setGatewayId((Long)value);
123 ashish 2078
        }
2079
        break;
2080
 
695 rajveer 2081
      case TXN_ID:
123 ashish 2082
        if (value == null) {
695 rajveer 2083
          unsetTxnId();
123 ashish 2084
        } else {
695 rajveer 2085
          setTxnId((Long)value);
123 ashish 2086
        }
2087
        break;
2088
 
2089
      }
2090
    }
2091
 
2092
    public Object getFieldValue(_Fields field) {
2093
      switch (field) {
2094
      case USER_ID:
3430 rajveer 2095
        return Long.valueOf(getUserId());
123 ashish 2096
 
2097
      case AMOUNT:
3430 rajveer 2098
        return Double.valueOf(getAmount());
123 ashish 2099
 
420 ashish 2100
      case GATEWAY_ID:
3430 rajveer 2101
        return Long.valueOf(getGatewayId());
123 ashish 2102
 
695 rajveer 2103
      case TXN_ID:
3430 rajveer 2104
        return Long.valueOf(getTxnId());
695 rajveer 2105
 
123 ashish 2106
      }
2107
      throw new IllegalStateException();
2108
    }
2109
 
3430 rajveer 2110
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2111
    public boolean isSet(_Fields field) {
2112
      if (field == null) {
2113
        throw new IllegalArgumentException();
2114
      }
123 ashish 2115
 
2116
      switch (field) {
2117
      case USER_ID:
695 rajveer 2118
        return isSetUserId();
123 ashish 2119
      case AMOUNT:
2120
        return isSetAmount();
420 ashish 2121
      case GATEWAY_ID:
695 rajveer 2122
        return isSetGatewayId();
2123
      case TXN_ID:
2124
        return isSetTxnId();
123 ashish 2125
      }
2126
      throw new IllegalStateException();
2127
    }
2128
 
2129
    @Override
2130
    public boolean equals(Object that) {
2131
      if (that == null)
2132
        return false;
2133
      if (that instanceof createPayment_args)
2134
        return this.equals((createPayment_args)that);
2135
      return false;
2136
    }
2137
 
2138
    public boolean equals(createPayment_args that) {
2139
      if (that == null)
2140
        return false;
2141
 
695 rajveer 2142
      boolean this_present_userId = true;
2143
      boolean that_present_userId = true;
2144
      if (this_present_userId || that_present_userId) {
2145
        if (!(this_present_userId && that_present_userId))
123 ashish 2146
          return false;
695 rajveer 2147
        if (this.userId != that.userId)
123 ashish 2148
          return false;
2149
      }
2150
 
2151
      boolean this_present_amount = true;
2152
      boolean that_present_amount = true;
2153
      if (this_present_amount || that_present_amount) {
2154
        if (!(this_present_amount && that_present_amount))
2155
          return false;
2156
        if (this.amount != that.amount)
2157
          return false;
2158
      }
2159
 
695 rajveer 2160
      boolean this_present_gatewayId = true;
2161
      boolean that_present_gatewayId = true;
2162
      if (this_present_gatewayId || that_present_gatewayId) {
2163
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 2164
          return false;
695 rajveer 2165
        if (this.gatewayId != that.gatewayId)
123 ashish 2166
          return false;
2167
      }
2168
 
695 rajveer 2169
      boolean this_present_txnId = true;
2170
      boolean that_present_txnId = true;
2171
      if (this_present_txnId || that_present_txnId) {
2172
        if (!(this_present_txnId && that_present_txnId))
2173
          return false;
2174
        if (this.txnId != that.txnId)
2175
          return false;
2176
      }
2177
 
123 ashish 2178
      return true;
2179
    }
2180
 
2181
    @Override
2182
    public int hashCode() {
2183
      return 0;
2184
    }
2185
 
2186
    public int compareTo(createPayment_args other) {
2187
      if (!getClass().equals(other.getClass())) {
2188
        return getClass().getName().compareTo(other.getClass().getName());
2189
      }
2190
 
2191
      int lastComparison = 0;
2192
      createPayment_args typedOther = (createPayment_args)other;
2193
 
3430 rajveer 2194
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 2195
      if (lastComparison != 0) {
2196
        return lastComparison;
2197
      }
3430 rajveer 2198
      if (isSetUserId()) {
2199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
2200
        if (lastComparison != 0) {
2201
          return lastComparison;
2202
        }
123 ashish 2203
      }
3430 rajveer 2204
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
123 ashish 2205
      if (lastComparison != 0) {
2206
        return lastComparison;
2207
      }
3430 rajveer 2208
      if (isSetAmount()) {
2209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
2210
        if (lastComparison != 0) {
2211
          return lastComparison;
2212
        }
123 ashish 2213
      }
3430 rajveer 2214
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 2215
      if (lastComparison != 0) {
2216
        return lastComparison;
2217
      }
3430 rajveer 2218
      if (isSetGatewayId()) {
2219
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
2220
        if (lastComparison != 0) {
2221
          return lastComparison;
2222
        }
123 ashish 2223
      }
3430 rajveer 2224
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
123 ashish 2225
      if (lastComparison != 0) {
2226
        return lastComparison;
2227
      }
3430 rajveer 2228
      if (isSetTxnId()) {
2229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
2230
        if (lastComparison != 0) {
2231
          return lastComparison;
2232
        }
123 ashish 2233
      }
2234
      return 0;
2235
    }
2236
 
3430 rajveer 2237
    public _Fields fieldForId(int fieldId) {
2238
      return _Fields.findByThriftId(fieldId);
2239
    }
2240
 
2241
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2242
      org.apache.thrift.protocol.TField field;
123 ashish 2243
      iprot.readStructBegin();
2244
      while (true)
2245
      {
2246
        field = iprot.readFieldBegin();
3430 rajveer 2247
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2248
          break;
2249
        }
3430 rajveer 2250
        switch (field.id) {
2251
          case 1: // USER_ID
2252
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2253
              this.userId = iprot.readI64();
2254
              setUserIdIsSet(true);
2255
            } else { 
2256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2257
            }
2258
            break;
2259
          case 2: // AMOUNT
2260
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2261
              this.amount = iprot.readDouble();
2262
              setAmountIsSet(true);
2263
            } else { 
2264
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2265
            }
2266
            break;
2267
          case 3: // GATEWAY_ID
2268
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2269
              this.gatewayId = iprot.readI64();
2270
              setGatewayIdIsSet(true);
2271
            } else { 
2272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2273
            }
2274
            break;
2275
          case 4: // TXN_ID
2276
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2277
              this.txnId = iprot.readI64();
2278
              setTxnIdIsSet(true);
2279
            } else { 
2280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2281
            }
2282
            break;
2283
          default:
2284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2285
        }
3430 rajveer 2286
        iprot.readFieldEnd();
123 ashish 2287
      }
2288
      iprot.readStructEnd();
2289
      validate();
2290
    }
2291
 
3430 rajveer 2292
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2293
      validate();
2294
 
2295
      oprot.writeStructBegin(STRUCT_DESC);
2296
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
695 rajveer 2297
      oprot.writeI64(this.userId);
123 ashish 2298
      oprot.writeFieldEnd();
2299
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
2300
      oprot.writeDouble(this.amount);
2301
      oprot.writeFieldEnd();
420 ashish 2302
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 2303
      oprot.writeI64(this.gatewayId);
420 ashish 2304
      oprot.writeFieldEnd();
695 rajveer 2305
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
2306
      oprot.writeI64(this.txnId);
2307
      oprot.writeFieldEnd();
123 ashish 2308
      oprot.writeFieldStop();
2309
      oprot.writeStructEnd();
2310
    }
2311
 
2312
    @Override
2313
    public String toString() {
2314
      StringBuilder sb = new StringBuilder("createPayment_args(");
2315
      boolean first = true;
2316
 
695 rajveer 2317
      sb.append("userId:");
2318
      sb.append(this.userId);
123 ashish 2319
      first = false;
2320
      if (!first) sb.append(", ");
2321
      sb.append("amount:");
2322
      sb.append(this.amount);
2323
      first = false;
2324
      if (!first) sb.append(", ");
695 rajveer 2325
      sb.append("gatewayId:");
2326
      sb.append(this.gatewayId);
123 ashish 2327
      first = false;
695 rajveer 2328
      if (!first) sb.append(", ");
2329
      sb.append("txnId:");
2330
      sb.append(this.txnId);
2331
      first = false;
123 ashish 2332
      sb.append(")");
2333
      return sb.toString();
2334
    }
2335
 
3430 rajveer 2336
    public void validate() throws org.apache.thrift.TException {
123 ashish 2337
      // check for required fields
2338
    }
2339
 
3430 rajveer 2340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2341
      try {
2342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2343
      } catch (org.apache.thrift.TException te) {
2344
        throw new java.io.IOException(te);
2345
      }
2346
    }
2347
 
2348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2349
      try {
2350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2351
      } catch (org.apache.thrift.TException te) {
2352
        throw new java.io.IOException(te);
2353
      }
2354
    }
2355
 
123 ashish 2356
  }
2357
 
3430 rajveer 2358
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
2359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
123 ashish 2360
 
3430 rajveer 2361
    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);
2362
    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 2363
 
3430 rajveer 2364
    private long success; // required
2365
    private PaymentException pe; // required
123 ashish 2366
 
2367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2369
      SUCCESS((short)0, "success"),
2370
      PE((short)1, "pe");
2371
 
2372
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2373
 
2374
      static {
2375
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2376
          byName.put(field.getFieldName(), field);
2377
        }
2378
      }
2379
 
2380
      /**
2381
       * Find the _Fields constant that matches fieldId, or null if its not found.
2382
       */
2383
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2384
        switch(fieldId) {
2385
          case 0: // SUCCESS
2386
            return SUCCESS;
2387
          case 1: // PE
2388
            return PE;
2389
          default:
2390
            return null;
2391
        }
123 ashish 2392
      }
2393
 
2394
      /**
2395
       * Find the _Fields constant that matches fieldId, throwing an exception
2396
       * if it is not found.
2397
       */
2398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2399
        _Fields fields = findByThriftId(fieldId);
2400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2401
        return fields;
2402
      }
2403
 
2404
      /**
2405
       * Find the _Fields constant that matches name, or null if its not found.
2406
       */
2407
      public static _Fields findByName(String name) {
2408
        return byName.get(name);
2409
      }
2410
 
2411
      private final short _thriftId;
2412
      private final String _fieldName;
2413
 
2414
      _Fields(short thriftId, String fieldName) {
2415
        _thriftId = thriftId;
2416
        _fieldName = fieldName;
2417
      }
2418
 
2419
      public short getThriftFieldId() {
2420
        return _thriftId;
2421
      }
2422
 
2423
      public String getFieldName() {
2424
        return _fieldName;
2425
      }
2426
    }
2427
 
2428
    // isset id assignments
420 ashish 2429
    private static final int __SUCCESS_ISSET_ID = 0;
2430
    private BitSet __isset_bit_vector = new BitSet(1);
123 ashish 2431
 
3430 rajveer 2432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2433
    static {
3430 rajveer 2434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2435
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2437
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
123 ashish 2441
    }
2442
 
2443
    public createPayment_result() {
2444
    }
2445
 
2446
    public createPayment_result(
420 ashish 2447
      long success,
123 ashish 2448
      PaymentException pe)
2449
    {
2450
      this();
2451
      this.success = success;
420 ashish 2452
      setSuccessIsSet(true);
123 ashish 2453
      this.pe = pe;
2454
    }
2455
 
2456
    /**
2457
     * Performs a deep copy on <i>other</i>.
2458
     */
2459
    public createPayment_result(createPayment_result other) {
420 ashish 2460
      __isset_bit_vector.clear();
2461
      __isset_bit_vector.or(other.__isset_bit_vector);
2462
      this.success = other.success;
123 ashish 2463
      if (other.isSetPe()) {
2464
        this.pe = new PaymentException(other.pe);
2465
      }
2466
    }
2467
 
2468
    public createPayment_result deepCopy() {
2469
      return new createPayment_result(this);
2470
    }
2471
 
3430 rajveer 2472
    @Override
2473
    public void clear() {
2474
      setSuccessIsSet(false);
2475
      this.success = 0;
2476
      this.pe = null;
123 ashish 2477
    }
2478
 
420 ashish 2479
    public long getSuccess() {
123 ashish 2480
      return this.success;
2481
    }
2482
 
3430 rajveer 2483
    public void setSuccess(long success) {
123 ashish 2484
      this.success = success;
420 ashish 2485
      setSuccessIsSet(true);
123 ashish 2486
    }
2487
 
2488
    public void unsetSuccess() {
420 ashish 2489
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 2490
    }
2491
 
3430 rajveer 2492
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 2493
    public boolean isSetSuccess() {
420 ashish 2494
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 2495
    }
2496
 
2497
    public void setSuccessIsSet(boolean value) {
420 ashish 2498
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
123 ashish 2499
    }
2500
 
2501
    public PaymentException getPe() {
2502
      return this.pe;
2503
    }
2504
 
3430 rajveer 2505
    public void setPe(PaymentException pe) {
123 ashish 2506
      this.pe = pe;
2507
    }
2508
 
2509
    public void unsetPe() {
2510
      this.pe = null;
2511
    }
2512
 
3430 rajveer 2513
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 2514
    public boolean isSetPe() {
2515
      return this.pe != null;
2516
    }
2517
 
2518
    public void setPeIsSet(boolean value) {
2519
      if (!value) {
2520
        this.pe = null;
2521
      }
2522
    }
2523
 
2524
    public void setFieldValue(_Fields field, Object value) {
2525
      switch (field) {
2526
      case SUCCESS:
2527
        if (value == null) {
2528
          unsetSuccess();
2529
        } else {
420 ashish 2530
          setSuccess((Long)value);
123 ashish 2531
        }
2532
        break;
2533
 
2534
      case PE:
2535
        if (value == null) {
2536
          unsetPe();
2537
        } else {
2538
          setPe((PaymentException)value);
2539
        }
2540
        break;
2541
 
2542
      }
2543
    }
2544
 
2545
    public Object getFieldValue(_Fields field) {
2546
      switch (field) {
2547
      case SUCCESS:
3430 rajveer 2548
        return Long.valueOf(getSuccess());
123 ashish 2549
 
2550
      case PE:
2551
        return getPe();
2552
 
2553
      }
2554
      throw new IllegalStateException();
2555
    }
2556
 
3430 rajveer 2557
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2558
    public boolean isSet(_Fields field) {
2559
      if (field == null) {
2560
        throw new IllegalArgumentException();
2561
      }
123 ashish 2562
 
2563
      switch (field) {
2564
      case SUCCESS:
2565
        return isSetSuccess();
2566
      case PE:
2567
        return isSetPe();
2568
      }
2569
      throw new IllegalStateException();
2570
    }
2571
 
2572
    @Override
2573
    public boolean equals(Object that) {
2574
      if (that == null)
2575
        return false;
2576
      if (that instanceof createPayment_result)
2577
        return this.equals((createPayment_result)that);
2578
      return false;
2579
    }
2580
 
2581
    public boolean equals(createPayment_result that) {
2582
      if (that == null)
2583
        return false;
2584
 
420 ashish 2585
      boolean this_present_success = true;
2586
      boolean that_present_success = true;
123 ashish 2587
      if (this_present_success || that_present_success) {
2588
        if (!(this_present_success && that_present_success))
2589
          return false;
420 ashish 2590
        if (this.success != that.success)
123 ashish 2591
          return false;
2592
      }
2593
 
2594
      boolean this_present_pe = true && this.isSetPe();
2595
      boolean that_present_pe = true && that.isSetPe();
2596
      if (this_present_pe || that_present_pe) {
2597
        if (!(this_present_pe && that_present_pe))
2598
          return false;
2599
        if (!this.pe.equals(that.pe))
2600
          return false;
2601
      }
2602
 
2603
      return true;
2604
    }
2605
 
2606
    @Override
2607
    public int hashCode() {
2608
      return 0;
2609
    }
2610
 
420 ashish 2611
    public int compareTo(createPayment_result other) {
2612
      if (!getClass().equals(other.getClass())) {
2613
        return getClass().getName().compareTo(other.getClass().getName());
2614
      }
2615
 
2616
      int lastComparison = 0;
2617
      createPayment_result typedOther = (createPayment_result)other;
2618
 
3430 rajveer 2619
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 2620
      if (lastComparison != 0) {
2621
        return lastComparison;
2622
      }
3430 rajveer 2623
      if (isSetSuccess()) {
2624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2625
        if (lastComparison != 0) {
2626
          return lastComparison;
2627
        }
420 ashish 2628
      }
3430 rajveer 2629
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 2630
      if (lastComparison != 0) {
2631
        return lastComparison;
2632
      }
3430 rajveer 2633
      if (isSetPe()) {
2634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
2635
        if (lastComparison != 0) {
2636
          return lastComparison;
2637
        }
420 ashish 2638
      }
2639
      return 0;
2640
    }
2641
 
3430 rajveer 2642
    public _Fields fieldForId(int fieldId) {
2643
      return _Fields.findByThriftId(fieldId);
2644
    }
2645
 
2646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2647
      org.apache.thrift.protocol.TField field;
123 ashish 2648
      iprot.readStructBegin();
2649
      while (true)
2650
      {
2651
        field = iprot.readFieldBegin();
3430 rajveer 2652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2653
          break;
2654
        }
3430 rajveer 2655
        switch (field.id) {
2656
          case 0: // SUCCESS
2657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2658
              this.success = iprot.readI64();
2659
              setSuccessIsSet(true);
2660
            } else { 
2661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2662
            }
2663
            break;
2664
          case 1: // PE
2665
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2666
              this.pe = new PaymentException();
2667
              this.pe.read(iprot);
2668
            } else { 
2669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2670
            }
2671
            break;
2672
          default:
2673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2674
        }
3430 rajveer 2675
        iprot.readFieldEnd();
123 ashish 2676
      }
2677
      iprot.readStructEnd();
2678
      validate();
2679
    }
2680
 
3430 rajveer 2681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2682
      oprot.writeStructBegin(STRUCT_DESC);
2683
 
2684
      if (this.isSetSuccess()) {
2685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 2686
        oprot.writeI64(this.success);
123 ashish 2687
        oprot.writeFieldEnd();
2688
      } else if (this.isSetPe()) {
2689
        oprot.writeFieldBegin(PE_FIELD_DESC);
2690
        this.pe.write(oprot);
2691
        oprot.writeFieldEnd();
2692
      }
2693
      oprot.writeFieldStop();
2694
      oprot.writeStructEnd();
2695
    }
2696
 
2697
    @Override
2698
    public String toString() {
2699
      StringBuilder sb = new StringBuilder("createPayment_result(");
2700
      boolean first = true;
2701
 
2702
      sb.append("success:");
420 ashish 2703
      sb.append(this.success);
123 ashish 2704
      first = false;
2705
      if (!first) sb.append(", ");
2706
      sb.append("pe:");
2707
      if (this.pe == null) {
2708
        sb.append("null");
2709
      } else {
2710
        sb.append(this.pe);
2711
      }
2712
      first = false;
2713
      sb.append(")");
2714
      return sb.toString();
2715
    }
2716
 
3430 rajveer 2717
    public void validate() throws org.apache.thrift.TException {
123 ashish 2718
      // check for required fields
2719
    }
2720
 
3430 rajveer 2721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2722
      try {
2723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2724
      } catch (org.apache.thrift.TException te) {
2725
        throw new java.io.IOException(te);
2726
      }
2727
    }
2728
 
2729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2730
      try {
2731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2732
      } catch (org.apache.thrift.TException te) {
2733
        throw new java.io.IOException(te);
2734
      }
2735
    }
2736
 
123 ashish 2737
  }
2738
 
3430 rajveer 2739
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
2740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
123 ashish 2741
 
3430 rajveer 2742
    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);
2743
    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);
2744
    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);
2745
    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);
2746
    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 2747
 
3430 rajveer 2748
    private long userId; // required
2749
    private long fromTime; // required
2750
    private long toTime; // required
2751
    private PaymentStatus status; // required
2752
    private long gatewayId; // required
123 ashish 2753
 
2754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2755
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2756
      USER_ID((short)1, "userId"),
695 rajveer 2757
      FROM_TIME((short)2, "fromTime"),
2758
      TO_TIME((short)3, "toTime"),
123 ashish 2759
      /**
2760
       * 
2761
       * @see PaymentStatus
2762
       */
2763
      STATUS((short)4, "status"),
695 rajveer 2764
      GATEWAY_ID((short)5, "gatewayId");
123 ashish 2765
 
2766
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2767
 
2768
      static {
2769
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2770
          byName.put(field.getFieldName(), field);
2771
        }
2772
      }
2773
 
2774
      /**
2775
       * Find the _Fields constant that matches fieldId, or null if its not found.
2776
       */
2777
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2778
        switch(fieldId) {
2779
          case 1: // USER_ID
2780
            return USER_ID;
2781
          case 2: // FROM_TIME
2782
            return FROM_TIME;
2783
          case 3: // TO_TIME
2784
            return TO_TIME;
2785
          case 4: // STATUS
2786
            return STATUS;
2787
          case 5: // GATEWAY_ID
2788
            return GATEWAY_ID;
2789
          default:
2790
            return null;
2791
        }
123 ashish 2792
      }
2793
 
2794
      /**
2795
       * Find the _Fields constant that matches fieldId, throwing an exception
2796
       * if it is not found.
2797
       */
2798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2799
        _Fields fields = findByThriftId(fieldId);
2800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2801
        return fields;
2802
      }
2803
 
2804
      /**
2805
       * Find the _Fields constant that matches name, or null if its not found.
2806
       */
2807
      public static _Fields findByName(String name) {
2808
        return byName.get(name);
2809
      }
2810
 
2811
      private final short _thriftId;
2812
      private final String _fieldName;
2813
 
2814
      _Fields(short thriftId, String fieldName) {
2815
        _thriftId = thriftId;
2816
        _fieldName = fieldName;
2817
      }
2818
 
2819
      public short getThriftFieldId() {
2820
        return _thriftId;
2821
      }
2822
 
2823
      public String getFieldName() {
2824
        return _fieldName;
2825
      }
2826
    }
2827
 
2828
    // isset id assignments
2829
    private static final int __USERID_ISSET_ID = 0;
695 rajveer 2830
    private static final int __FROMTIME_ISSET_ID = 1;
2831
    private static final int __TOTIME_ISSET_ID = 2;
2832
    private static final int __GATEWAYID_ISSET_ID = 3;
420 ashish 2833
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 2834
 
3430 rajveer 2835
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2836
    static {
3430 rajveer 2837
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2838
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2839
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2840
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2842
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2844
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2845
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
2846
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2847
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2848
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2849
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
123 ashish 2850
    }
2851
 
2852
    public getPaymentsForUser_args() {
2853
    }
2854
 
2855
    public getPaymentsForUser_args(
2856
      long userId,
695 rajveer 2857
      long fromTime,
2858
      long toTime,
123 ashish 2859
      PaymentStatus status,
695 rajveer 2860
      long gatewayId)
123 ashish 2861
    {
2862
      this();
2863
      this.userId = userId;
2864
      setUserIdIsSet(true);
695 rajveer 2865
      this.fromTime = fromTime;
2866
      setFromTimeIsSet(true);
2867
      this.toTime = toTime;
2868
      setToTimeIsSet(true);
123 ashish 2869
      this.status = status;
695 rajveer 2870
      this.gatewayId = gatewayId;
2871
      setGatewayIdIsSet(true);
123 ashish 2872
    }
2873
 
2874
    /**
2875
     * Performs a deep copy on <i>other</i>.
2876
     */
2877
    public getPaymentsForUser_args(getPaymentsForUser_args other) {
2878
      __isset_bit_vector.clear();
2879
      __isset_bit_vector.or(other.__isset_bit_vector);
2880
      this.userId = other.userId;
695 rajveer 2881
      this.fromTime = other.fromTime;
2882
      this.toTime = other.toTime;
123 ashish 2883
      if (other.isSetStatus()) {
2884
        this.status = other.status;
2885
      }
695 rajveer 2886
      this.gatewayId = other.gatewayId;
123 ashish 2887
    }
2888
 
2889
    public getPaymentsForUser_args deepCopy() {
2890
      return new getPaymentsForUser_args(this);
2891
    }
2892
 
3430 rajveer 2893
    @Override
2894
    public void clear() {
2895
      setUserIdIsSet(false);
2896
      this.userId = 0;
2897
      setFromTimeIsSet(false);
2898
      this.fromTime = 0;
2899
      setToTimeIsSet(false);
2900
      this.toTime = 0;
2901
      this.status = null;
2902
      setGatewayIdIsSet(false);
2903
      this.gatewayId = 0;
123 ashish 2904
    }
2905
 
2906
    public long getUserId() {
2907
      return this.userId;
2908
    }
2909
 
3430 rajveer 2910
    public void setUserId(long userId) {
123 ashish 2911
      this.userId = userId;
2912
      setUserIdIsSet(true);
2913
    }
2914
 
2915
    public void unsetUserId() {
2916
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2917
    }
2918
 
3430 rajveer 2919
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 2920
    public boolean isSetUserId() {
2921
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2922
    }
2923
 
2924
    public void setUserIdIsSet(boolean value) {
2925
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2926
    }
2927
 
695 rajveer 2928
    public long getFromTime() {
2929
      return this.fromTime;
123 ashish 2930
    }
2931
 
3430 rajveer 2932
    public void setFromTime(long fromTime) {
695 rajveer 2933
      this.fromTime = fromTime;
2934
      setFromTimeIsSet(true);
123 ashish 2935
    }
2936
 
695 rajveer 2937
    public void unsetFromTime() {
2938
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 2939
    }
2940
 
3430 rajveer 2941
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 2942
    public boolean isSetFromTime() {
2943
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 2944
    }
2945
 
695 rajveer 2946
    public void setFromTimeIsSet(boolean value) {
2947
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 2948
    }
2949
 
695 rajveer 2950
    public long getToTime() {
2951
      return this.toTime;
123 ashish 2952
    }
2953
 
3430 rajveer 2954
    public void setToTime(long toTime) {
695 rajveer 2955
      this.toTime = toTime;
2956
      setToTimeIsSet(true);
123 ashish 2957
    }
2958
 
695 rajveer 2959
    public void unsetToTime() {
2960
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 2961
    }
2962
 
3430 rajveer 2963
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 2964
    public boolean isSetToTime() {
2965
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 2966
    }
2967
 
695 rajveer 2968
    public void setToTimeIsSet(boolean value) {
2969
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 2970
    }
2971
 
2972
    /**
2973
     * 
2974
     * @see PaymentStatus
2975
     */
2976
    public PaymentStatus getStatus() {
2977
      return this.status;
2978
    }
2979
 
2980
    /**
2981
     * 
2982
     * @see PaymentStatus
2983
     */
3430 rajveer 2984
    public void setStatus(PaymentStatus status) {
123 ashish 2985
      this.status = status;
2986
    }
2987
 
2988
    public void unsetStatus() {
2989
      this.status = null;
2990
    }
2991
 
3430 rajveer 2992
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 2993
    public boolean isSetStatus() {
2994
      return this.status != null;
2995
    }
2996
 
2997
    public void setStatusIsSet(boolean value) {
2998
      if (!value) {
2999
        this.status = null;
3000
      }
3001
    }
3002
 
695 rajveer 3003
    public long getGatewayId() {
3004
      return this.gatewayId;
123 ashish 3005
    }
3006
 
3430 rajveer 3007
    public void setGatewayId(long gatewayId) {
695 rajveer 3008
      this.gatewayId = gatewayId;
3009
      setGatewayIdIsSet(true);
123 ashish 3010
    }
3011
 
695 rajveer 3012
    public void unsetGatewayId() {
3013
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 3014
    }
3015
 
3430 rajveer 3016
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 3017
    public boolean isSetGatewayId() {
3018
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 3019
    }
3020
 
695 rajveer 3021
    public void setGatewayIdIsSet(boolean value) {
3022
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 3023
    }
3024
 
3025
    public void setFieldValue(_Fields field, Object value) {
3026
      switch (field) {
3027
      case USER_ID:
3028
        if (value == null) {
3029
          unsetUserId();
3030
        } else {
3031
          setUserId((Long)value);
3032
        }
3033
        break;
3034
 
3035
      case FROM_TIME:
3036
        if (value == null) {
695 rajveer 3037
          unsetFromTime();
123 ashish 3038
        } else {
695 rajveer 3039
          setFromTime((Long)value);
123 ashish 3040
        }
3041
        break;
3042
 
3043
      case TO_TIME:
3044
        if (value == null) {
695 rajveer 3045
          unsetToTime();
123 ashish 3046
        } else {
695 rajveer 3047
          setToTime((Long)value);
123 ashish 3048
        }
3049
        break;
3050
 
3051
      case STATUS:
3052
        if (value == null) {
3053
          unsetStatus();
3054
        } else {
3055
          setStatus((PaymentStatus)value);
3056
        }
3057
        break;
3058
 
420 ashish 3059
      case GATEWAY_ID:
123 ashish 3060
        if (value == null) {
695 rajveer 3061
          unsetGatewayId();
123 ashish 3062
        } else {
695 rajveer 3063
          setGatewayId((Long)value);
123 ashish 3064
        }
3065
        break;
3066
 
3067
      }
3068
    }
3069
 
3070
    public Object getFieldValue(_Fields field) {
3071
      switch (field) {
3072
      case USER_ID:
3430 rajveer 3073
        return Long.valueOf(getUserId());
123 ashish 3074
 
3075
      case FROM_TIME:
3430 rajveer 3076
        return Long.valueOf(getFromTime());
123 ashish 3077
 
3078
      case TO_TIME:
3430 rajveer 3079
        return Long.valueOf(getToTime());
123 ashish 3080
 
3081
      case STATUS:
3082
        return getStatus();
3083
 
420 ashish 3084
      case GATEWAY_ID:
3430 rajveer 3085
        return Long.valueOf(getGatewayId());
123 ashish 3086
 
3087
      }
3088
      throw new IllegalStateException();
3089
    }
3090
 
3430 rajveer 3091
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3092
    public boolean isSet(_Fields field) {
3093
      if (field == null) {
3094
        throw new IllegalArgumentException();
3095
      }
123 ashish 3096
 
3097
      switch (field) {
3098
      case USER_ID:
3099
        return isSetUserId();
3100
      case FROM_TIME:
695 rajveer 3101
        return isSetFromTime();
123 ashish 3102
      case TO_TIME:
695 rajveer 3103
        return isSetToTime();
123 ashish 3104
      case STATUS:
3105
        return isSetStatus();
420 ashish 3106
      case GATEWAY_ID:
695 rajveer 3107
        return isSetGatewayId();
123 ashish 3108
      }
3109
      throw new IllegalStateException();
3110
    }
3111
 
3112
    @Override
3113
    public boolean equals(Object that) {
3114
      if (that == null)
3115
        return false;
3116
      if (that instanceof getPaymentsForUser_args)
3117
        return this.equals((getPaymentsForUser_args)that);
3118
      return false;
3119
    }
3120
 
3121
    public boolean equals(getPaymentsForUser_args that) {
3122
      if (that == null)
3123
        return false;
3124
 
3125
      boolean this_present_userId = true;
3126
      boolean that_present_userId = true;
3127
      if (this_present_userId || that_present_userId) {
3128
        if (!(this_present_userId && that_present_userId))
3129
          return false;
3130
        if (this.userId != that.userId)
3131
          return false;
3132
      }
3133
 
695 rajveer 3134
      boolean this_present_fromTime = true;
3135
      boolean that_present_fromTime = true;
3136
      if (this_present_fromTime || that_present_fromTime) {
3137
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 3138
          return false;
695 rajveer 3139
        if (this.fromTime != that.fromTime)
123 ashish 3140
          return false;
3141
      }
3142
 
695 rajveer 3143
      boolean this_present_toTime = true;
3144
      boolean that_present_toTime = true;
3145
      if (this_present_toTime || that_present_toTime) {
3146
        if (!(this_present_toTime && that_present_toTime))
123 ashish 3147
          return false;
695 rajveer 3148
        if (this.toTime != that.toTime)
123 ashish 3149
          return false;
3150
      }
3151
 
3152
      boolean this_present_status = true && this.isSetStatus();
3153
      boolean that_present_status = true && that.isSetStatus();
3154
      if (this_present_status || that_present_status) {
3155
        if (!(this_present_status && that_present_status))
3156
          return false;
3157
        if (!this.status.equals(that.status))
3158
          return false;
3159
      }
3160
 
695 rajveer 3161
      boolean this_present_gatewayId = true;
3162
      boolean that_present_gatewayId = true;
3163
      if (this_present_gatewayId || that_present_gatewayId) {
3164
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 3165
          return false;
695 rajveer 3166
        if (this.gatewayId != that.gatewayId)
123 ashish 3167
          return false;
3168
      }
3169
 
3170
      return true;
3171
    }
3172
 
3173
    @Override
3174
    public int hashCode() {
3175
      return 0;
3176
    }
3177
 
3178
    public int compareTo(getPaymentsForUser_args other) {
3179
      if (!getClass().equals(other.getClass())) {
3180
        return getClass().getName().compareTo(other.getClass().getName());
3181
      }
3182
 
3183
      int lastComparison = 0;
3184
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
3185
 
3430 rajveer 3186
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 3187
      if (lastComparison != 0) {
3188
        return lastComparison;
3189
      }
3430 rajveer 3190
      if (isSetUserId()) {
3191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
3192
        if (lastComparison != 0) {
3193
          return lastComparison;
3194
        }
123 ashish 3195
      }
3430 rajveer 3196
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 3197
      if (lastComparison != 0) {
3198
        return lastComparison;
3199
      }
3430 rajveer 3200
      if (isSetFromTime()) {
3201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
3202
        if (lastComparison != 0) {
3203
          return lastComparison;
3204
        }
123 ashish 3205
      }
3430 rajveer 3206
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 3207
      if (lastComparison != 0) {
3208
        return lastComparison;
3209
      }
3430 rajveer 3210
      if (isSetToTime()) {
3211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
3212
        if (lastComparison != 0) {
3213
          return lastComparison;
3214
        }
123 ashish 3215
      }
3430 rajveer 3216
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 3217
      if (lastComparison != 0) {
3218
        return lastComparison;
3219
      }
3430 rajveer 3220
      if (isSetStatus()) {
3221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3222
        if (lastComparison != 0) {
3223
          return lastComparison;
3224
        }
123 ashish 3225
      }
3430 rajveer 3226
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 3227
      if (lastComparison != 0) {
3228
        return lastComparison;
3229
      }
3430 rajveer 3230
      if (isSetGatewayId()) {
3231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3232
        if (lastComparison != 0) {
3233
          return lastComparison;
3234
        }
123 ashish 3235
      }
3236
      return 0;
3237
    }
3238
 
3430 rajveer 3239
    public _Fields fieldForId(int fieldId) {
3240
      return _Fields.findByThriftId(fieldId);
3241
    }
3242
 
3243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3244
      org.apache.thrift.protocol.TField field;
123 ashish 3245
      iprot.readStructBegin();
3246
      while (true)
3247
      {
3248
        field = iprot.readFieldBegin();
3430 rajveer 3249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3250
          break;
3251
        }
3430 rajveer 3252
        switch (field.id) {
3253
          case 1: // USER_ID
3254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3255
              this.userId = iprot.readI64();
3256
              setUserIdIsSet(true);
3257
            } else { 
3258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3259
            }
3260
            break;
3261
          case 2: // FROM_TIME
3262
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3263
              this.fromTime = iprot.readI64();
3264
              setFromTimeIsSet(true);
3265
            } else { 
3266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3267
            }
3268
            break;
3269
          case 3: // TO_TIME
3270
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3271
              this.toTime = iprot.readI64();
3272
              setToTimeIsSet(true);
3273
            } else { 
3274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3275
            }
3276
            break;
3277
          case 4: // STATUS
3278
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3279
              this.status = PaymentStatus.findByValue(iprot.readI32());
3280
            } else { 
3281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3282
            }
3283
            break;
3284
          case 5: // GATEWAY_ID
3285
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3286
              this.gatewayId = iprot.readI64();
3287
              setGatewayIdIsSet(true);
3288
            } else { 
3289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3290
            }
3291
            break;
3292
          default:
3293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3294
        }
3430 rajveer 3295
        iprot.readFieldEnd();
123 ashish 3296
      }
3297
      iprot.readStructEnd();
3298
      validate();
3299
    }
3300
 
3430 rajveer 3301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3302
      validate();
3303
 
3304
      oprot.writeStructBegin(STRUCT_DESC);
3305
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3306
      oprot.writeI64(this.userId);
3307
      oprot.writeFieldEnd();
3308
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 3309
      oprot.writeI64(this.fromTime);
123 ashish 3310
      oprot.writeFieldEnd();
3311
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 3312
      oprot.writeI64(this.toTime);
123 ashish 3313
      oprot.writeFieldEnd();
3314
      if (this.status != null) {
3315
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3316
        oprot.writeI32(this.status.getValue());
3317
        oprot.writeFieldEnd();
3318
      }
420 ashish 3319
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 3320
      oprot.writeI64(this.gatewayId);
420 ashish 3321
      oprot.writeFieldEnd();
123 ashish 3322
      oprot.writeFieldStop();
3323
      oprot.writeStructEnd();
3324
    }
3325
 
3326
    @Override
3327
    public String toString() {
3328
      StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
3329
      boolean first = true;
3330
 
3331
      sb.append("userId:");
3332
      sb.append(this.userId);
3333
      first = false;
3334
      if (!first) sb.append(", ");
695 rajveer 3335
      sb.append("fromTime:");
3336
      sb.append(this.fromTime);
123 ashish 3337
      first = false;
3338
      if (!first) sb.append(", ");
695 rajveer 3339
      sb.append("toTime:");
3340
      sb.append(this.toTime);
123 ashish 3341
      first = false;
3342
      if (!first) sb.append(", ");
3343
      sb.append("status:");
3344
      if (this.status == null) {
3345
        sb.append("null");
3346
      } else {
3347
        sb.append(this.status);
3348
      }
3349
      first = false;
3350
      if (!first) sb.append(", ");
695 rajveer 3351
      sb.append("gatewayId:");
3352
      sb.append(this.gatewayId);
123 ashish 3353
      first = false;
3354
      sb.append(")");
3355
      return sb.toString();
3356
    }
3357
 
3430 rajveer 3358
    public void validate() throws org.apache.thrift.TException {
123 ashish 3359
      // check for required fields
3360
    }
3361
 
3430 rajveer 3362
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3363
      try {
3364
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3365
      } catch (org.apache.thrift.TException te) {
3366
        throw new java.io.IOException(te);
3367
      }
3368
    }
3369
 
3370
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3371
      try {
3372
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3373
      } catch (org.apache.thrift.TException te) {
3374
        throw new java.io.IOException(te);
3375
      }
3376
    }
3377
 
123 ashish 3378
  }
3379
 
3430 rajveer 3380
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
3381
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
123 ashish 3382
 
3430 rajveer 3383
    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);
3384
    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 3385
 
3430 rajveer 3386
    private List<Payment> success; // required
3387
    private PaymentException pe; // required
123 ashish 3388
 
3389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3391
      SUCCESS((short)0, "success"),
3392
      PE((short)1, "pe");
3393
 
3394
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3395
 
3396
      static {
3397
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3398
          byName.put(field.getFieldName(), field);
3399
        }
3400
      }
3401
 
3402
      /**
3403
       * Find the _Fields constant that matches fieldId, or null if its not found.
3404
       */
3405
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3406
        switch(fieldId) {
3407
          case 0: // SUCCESS
3408
            return SUCCESS;
3409
          case 1: // PE
3410
            return PE;
3411
          default:
3412
            return null;
3413
        }
123 ashish 3414
      }
3415
 
3416
      /**
3417
       * Find the _Fields constant that matches fieldId, throwing an exception
3418
       * if it is not found.
3419
       */
3420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3421
        _Fields fields = findByThriftId(fieldId);
3422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3423
        return fields;
3424
      }
3425
 
3426
      /**
3427
       * Find the _Fields constant that matches name, or null if its not found.
3428
       */
3429
      public static _Fields findByName(String name) {
3430
        return byName.get(name);
3431
      }
3432
 
3433
      private final short _thriftId;
3434
      private final String _fieldName;
3435
 
3436
      _Fields(short thriftId, String fieldName) {
3437
        _thriftId = thriftId;
3438
        _fieldName = fieldName;
3439
      }
3440
 
3441
      public short getThriftFieldId() {
3442
        return _thriftId;
3443
      }
3444
 
3445
      public String getFieldName() {
3446
        return _fieldName;
3447
      }
3448
    }
3449
 
3450
    // isset id assignments
3451
 
3430 rajveer 3452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3453
    static {
3430 rajveer 3454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3455
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3456
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3457
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
3458
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3460
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3461
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
123 ashish 3462
    }
3463
 
3464
    public getPaymentsForUser_result() {
3465
    }
3466
 
3467
    public getPaymentsForUser_result(
3468
      List<Payment> success,
3469
      PaymentException pe)
3470
    {
3471
      this();
3472
      this.success = success;
3473
      this.pe = pe;
3474
    }
3475
 
3476
    /**
3477
     * Performs a deep copy on <i>other</i>.
3478
     */
3479
    public getPaymentsForUser_result(getPaymentsForUser_result other) {
3480
      if (other.isSetSuccess()) {
3481
        List<Payment> __this__success = new ArrayList<Payment>();
3482
        for (Payment other_element : other.success) {
3483
          __this__success.add(new Payment(other_element));
3484
        }
3485
        this.success = __this__success;
3486
      }
3487
      if (other.isSetPe()) {
3488
        this.pe = new PaymentException(other.pe);
3489
      }
3490
    }
3491
 
3492
    public getPaymentsForUser_result deepCopy() {
3493
      return new getPaymentsForUser_result(this);
3494
    }
3495
 
3430 rajveer 3496
    @Override
3497
    public void clear() {
3498
      this.success = null;
3499
      this.pe = null;
123 ashish 3500
    }
3501
 
3502
    public int getSuccessSize() {
3503
      return (this.success == null) ? 0 : this.success.size();
3504
    }
3505
 
3506
    public java.util.Iterator<Payment> getSuccessIterator() {
3507
      return (this.success == null) ? null : this.success.iterator();
3508
    }
3509
 
3510
    public void addToSuccess(Payment elem) {
3511
      if (this.success == null) {
3512
        this.success = new ArrayList<Payment>();
3513
      }
3514
      this.success.add(elem);
3515
    }
3516
 
3517
    public List<Payment> getSuccess() {
3518
      return this.success;
3519
    }
3520
 
3430 rajveer 3521
    public void setSuccess(List<Payment> success) {
123 ashish 3522
      this.success = success;
3523
    }
3524
 
3525
    public void unsetSuccess() {
3526
      this.success = null;
3527
    }
3528
 
3430 rajveer 3529
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 3530
    public boolean isSetSuccess() {
3531
      return this.success != null;
3532
    }
3533
 
3534
    public void setSuccessIsSet(boolean value) {
3535
      if (!value) {
3536
        this.success = null;
3537
      }
3538
    }
3539
 
3540
    public PaymentException getPe() {
3541
      return this.pe;
3542
    }
3543
 
3430 rajveer 3544
    public void setPe(PaymentException pe) {
123 ashish 3545
      this.pe = pe;
3546
    }
3547
 
3548
    public void unsetPe() {
3549
      this.pe = null;
3550
    }
3551
 
3430 rajveer 3552
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 3553
    public boolean isSetPe() {
3554
      return this.pe != null;
3555
    }
3556
 
3557
    public void setPeIsSet(boolean value) {
3558
      if (!value) {
3559
        this.pe = null;
3560
      }
3561
    }
3562
 
3563
    public void setFieldValue(_Fields field, Object value) {
3564
      switch (field) {
3565
      case SUCCESS:
3566
        if (value == null) {
3567
          unsetSuccess();
3568
        } else {
3569
          setSuccess((List<Payment>)value);
3570
        }
3571
        break;
3572
 
3573
      case PE:
3574
        if (value == null) {
3575
          unsetPe();
3576
        } else {
3577
          setPe((PaymentException)value);
3578
        }
3579
        break;
3580
 
3581
      }
3582
    }
3583
 
3584
    public Object getFieldValue(_Fields field) {
3585
      switch (field) {
3586
      case SUCCESS:
3587
        return getSuccess();
3588
 
3589
      case PE:
3590
        return getPe();
3591
 
3592
      }
3593
      throw new IllegalStateException();
3594
    }
3595
 
3430 rajveer 3596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3597
    public boolean isSet(_Fields field) {
3598
      if (field == null) {
3599
        throw new IllegalArgumentException();
3600
      }
123 ashish 3601
 
3602
      switch (field) {
3603
      case SUCCESS:
3604
        return isSetSuccess();
3605
      case PE:
3606
        return isSetPe();
3607
      }
3608
      throw new IllegalStateException();
3609
    }
3610
 
3611
    @Override
3612
    public boolean equals(Object that) {
3613
      if (that == null)
3614
        return false;
3615
      if (that instanceof getPaymentsForUser_result)
3616
        return this.equals((getPaymentsForUser_result)that);
3617
      return false;
3618
    }
3619
 
3620
    public boolean equals(getPaymentsForUser_result that) {
3621
      if (that == null)
3622
        return false;
3623
 
3624
      boolean this_present_success = true && this.isSetSuccess();
3625
      boolean that_present_success = true && that.isSetSuccess();
3626
      if (this_present_success || that_present_success) {
3627
        if (!(this_present_success && that_present_success))
3628
          return false;
3629
        if (!this.success.equals(that.success))
3630
          return false;
3631
      }
3632
 
3633
      boolean this_present_pe = true && this.isSetPe();
3634
      boolean that_present_pe = true && that.isSetPe();
3635
      if (this_present_pe || that_present_pe) {
3636
        if (!(this_present_pe && that_present_pe))
3637
          return false;
3638
        if (!this.pe.equals(that.pe))
3639
          return false;
3640
      }
3641
 
3642
      return true;
3643
    }
3644
 
3645
    @Override
3646
    public int hashCode() {
3647
      return 0;
3648
    }
3649
 
695 rajveer 3650
    public int compareTo(getPaymentsForUser_result other) {
123 ashish 3651
      if (!getClass().equals(other.getClass())) {
3652
        return getClass().getName().compareTo(other.getClass().getName());
3653
      }
3654
 
3655
      int lastComparison = 0;
695 rajveer 3656
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
123 ashish 3657
 
3430 rajveer 3658
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 3659
      if (lastComparison != 0) {
3660
        return lastComparison;
3661
      }
3430 rajveer 3662
      if (isSetSuccess()) {
3663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3664
        if (lastComparison != 0) {
3665
          return lastComparison;
3666
        }
123 ashish 3667
      }
3430 rajveer 3668
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
123 ashish 3669
      if (lastComparison != 0) {
3670
        return lastComparison;
3671
      }
3430 rajveer 3672
      if (isSetPe()) {
3673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3674
        if (lastComparison != 0) {
3675
          return lastComparison;
3676
        }
123 ashish 3677
      }
3678
      return 0;
3679
    }
3680
 
3430 rajveer 3681
    public _Fields fieldForId(int fieldId) {
3682
      return _Fields.findByThriftId(fieldId);
3683
    }
3684
 
3685
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3686
      org.apache.thrift.protocol.TField field;
123 ashish 3687
      iprot.readStructBegin();
3688
      while (true)
3689
      {
3690
        field = iprot.readFieldBegin();
3430 rajveer 3691
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3692
          break;
3693
        }
3430 rajveer 3694
        switch (field.id) {
3695
          case 0: // SUCCESS
3696
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3697
              {
3698
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
3699
                this.success = new ArrayList<Payment>(_list12.size);
3700
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
123 ashish 3701
                {
3430 rajveer 3702
                  Payment _elem14; // required
3703
                  _elem14 = new Payment();
3704
                  _elem14.read(iprot);
3705
                  this.success.add(_elem14);
123 ashish 3706
                }
3430 rajveer 3707
                iprot.readListEnd();
123 ashish 3708
              }
3430 rajveer 3709
            } else { 
3710
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3711
            }
3712
            break;
3713
          case 1: // PE
3714
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3715
              this.pe = new PaymentException();
3716
              this.pe.read(iprot);
3717
            } else { 
3718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3719
            }
3720
            break;
3721
          default:
3722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3723
        }
3430 rajveer 3724
        iprot.readFieldEnd();
123 ashish 3725
      }
3726
      iprot.readStructEnd();
3727
      validate();
3728
    }
3729
 
3430 rajveer 3730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3731
      oprot.writeStructBegin(STRUCT_DESC);
3732
 
3733
      if (this.isSetSuccess()) {
3734
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3735
        {
3430 rajveer 3736
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 3737
          for (Payment _iter15 : this.success)
123 ashish 3738
          {
2747 chandransh 3739
            _iter15.write(oprot);
123 ashish 3740
          }
3741
          oprot.writeListEnd();
3742
        }
3743
        oprot.writeFieldEnd();
3744
      } else if (this.isSetPe()) {
3745
        oprot.writeFieldBegin(PE_FIELD_DESC);
3746
        this.pe.write(oprot);
3747
        oprot.writeFieldEnd();
3748
      }
3749
      oprot.writeFieldStop();
3750
      oprot.writeStructEnd();
3751
    }
3752
 
3753
    @Override
3754
    public String toString() {
695 rajveer 3755
      StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
123 ashish 3756
      boolean first = true;
3757
 
3758
      sb.append("success:");
3759
      if (this.success == null) {
3760
        sb.append("null");
3761
      } else {
3762
        sb.append(this.success);
3763
      }
3764
      first = false;
3765
      if (!first) sb.append(", ");
3766
      sb.append("pe:");
3767
      if (this.pe == null) {
3768
        sb.append("null");
3769
      } else {
3770
        sb.append(this.pe);
3771
      }
3772
      first = false;
3773
      sb.append(")");
3774
      return sb.toString();
3775
    }
3776
 
3430 rajveer 3777
    public void validate() throws org.apache.thrift.TException {
123 ashish 3778
      // check for required fields
3779
    }
3780
 
3430 rajveer 3781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3782
      try {
3783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3784
      } catch (org.apache.thrift.TException te) {
3785
        throw new java.io.IOException(te);
3786
      }
3787
    }
3788
 
3789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3790
      try {
3791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3792
      } catch (org.apache.thrift.TException te) {
3793
        throw new java.io.IOException(te);
3794
      }
3795
    }
3796
 
123 ashish 3797
  }
3798
 
3430 rajveer 3799
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
3800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
123 ashish 3801
 
3430 rajveer 3802
    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);
3803
    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);
3804
    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);
3805
    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 3806
 
3430 rajveer 3807
    private long fromTime; // required
3808
    private long toTime; // required
3809
    private PaymentStatus status; // required
3810
    private long gatewayId; // required
123 ashish 3811
 
3812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 3814
      FROM_TIME((short)1, "fromTime"),
3815
      TO_TIME((short)2, "toTime"),
123 ashish 3816
      /**
3817
       * 
3818
       * @see PaymentStatus
3819
       */
3820
      STATUS((short)3, "status"),
695 rajveer 3821
      GATEWAY_ID((short)4, "gatewayId");
123 ashish 3822
 
3823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3824
 
3825
      static {
3826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3827
          byName.put(field.getFieldName(), field);
3828
        }
3829
      }
3830
 
3831
      /**
3832
       * Find the _Fields constant that matches fieldId, or null if its not found.
3833
       */
3834
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3835
        switch(fieldId) {
3836
          case 1: // FROM_TIME
3837
            return FROM_TIME;
3838
          case 2: // TO_TIME
3839
            return TO_TIME;
3840
          case 3: // STATUS
3841
            return STATUS;
3842
          case 4: // GATEWAY_ID
3843
            return GATEWAY_ID;
3844
          default:
3845
            return null;
3846
        }
123 ashish 3847
      }
3848
 
3849
      /**
3850
       * Find the _Fields constant that matches fieldId, throwing an exception
3851
       * if it is not found.
3852
       */
3853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3854
        _Fields fields = findByThriftId(fieldId);
3855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3856
        return fields;
3857
      }
3858
 
3859
      /**
3860
       * Find the _Fields constant that matches name, or null if its not found.
3861
       */
3862
      public static _Fields findByName(String name) {
3863
        return byName.get(name);
3864
      }
3865
 
3866
      private final short _thriftId;
3867
      private final String _fieldName;
3868
 
3869
      _Fields(short thriftId, String fieldName) {
3870
        _thriftId = thriftId;
3871
        _fieldName = fieldName;
3872
      }
3873
 
3874
      public short getThriftFieldId() {
3875
        return _thriftId;
3876
      }
3877
 
3878
      public String getFieldName() {
3879
        return _fieldName;
3880
      }
3881
    }
3882
 
3883
    // isset id assignments
695 rajveer 3884
    private static final int __FROMTIME_ISSET_ID = 0;
3885
    private static final int __TOTIME_ISSET_ID = 1;
3886
    private static final int __GATEWAYID_ISSET_ID = 2;
420 ashish 3887
    private BitSet __isset_bit_vector = new BitSet(3);
123 ashish 3888
 
3430 rajveer 3889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3890
    static {
3430 rajveer 3891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3892
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3894
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3895
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3896
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3897
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
3898
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
123 ashish 3902
    }
3903
 
3904
    public getPayments_args() {
3905
    }
3906
 
3907
    public getPayments_args(
695 rajveer 3908
      long fromTime,
3909
      long toTime,
123 ashish 3910
      PaymentStatus status,
695 rajveer 3911
      long gatewayId)
123 ashish 3912
    {
3913
      this();
695 rajveer 3914
      this.fromTime = fromTime;
3915
      setFromTimeIsSet(true);
3916
      this.toTime = toTime;
3917
      setToTimeIsSet(true);
123 ashish 3918
      this.status = status;
695 rajveer 3919
      this.gatewayId = gatewayId;
3920
      setGatewayIdIsSet(true);
123 ashish 3921
    }
3922
 
3923
    /**
3924
     * Performs a deep copy on <i>other</i>.
3925
     */
3926
    public getPayments_args(getPayments_args other) {
3927
      __isset_bit_vector.clear();
3928
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 3929
      this.fromTime = other.fromTime;
3930
      this.toTime = other.toTime;
123 ashish 3931
      if (other.isSetStatus()) {
3932
        this.status = other.status;
3933
      }
695 rajveer 3934
      this.gatewayId = other.gatewayId;
123 ashish 3935
    }
3936
 
3937
    public getPayments_args deepCopy() {
3938
      return new getPayments_args(this);
3939
    }
3940
 
3430 rajveer 3941
    @Override
3942
    public void clear() {
3943
      setFromTimeIsSet(false);
3944
      this.fromTime = 0;
3945
      setToTimeIsSet(false);
3946
      this.toTime = 0;
3947
      this.status = null;
3948
      setGatewayIdIsSet(false);
3949
      this.gatewayId = 0;
123 ashish 3950
    }
3951
 
695 rajveer 3952
    public long getFromTime() {
3953
      return this.fromTime;
123 ashish 3954
    }
3955
 
3430 rajveer 3956
    public void setFromTime(long fromTime) {
695 rajveer 3957
      this.fromTime = fromTime;
3958
      setFromTimeIsSet(true);
123 ashish 3959
    }
3960
 
695 rajveer 3961
    public void unsetFromTime() {
3962
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 3963
    }
3964
 
3430 rajveer 3965
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 3966
    public boolean isSetFromTime() {
3967
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 3968
    }
3969
 
695 rajveer 3970
    public void setFromTimeIsSet(boolean value) {
3971
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 3972
    }
3973
 
695 rajveer 3974
    public long getToTime() {
3975
      return this.toTime;
123 ashish 3976
    }
3977
 
3430 rajveer 3978
    public void setToTime(long toTime) {
695 rajveer 3979
      this.toTime = toTime;
3980
      setToTimeIsSet(true);
123 ashish 3981
    }
3982
 
695 rajveer 3983
    public void unsetToTime() {
3984
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 3985
    }
3986
 
3430 rajveer 3987
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 3988
    public boolean isSetToTime() {
3989
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 3990
    }
3991
 
695 rajveer 3992
    public void setToTimeIsSet(boolean value) {
3993
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 3994
    }
3995
 
3996
    /**
3997
     * 
3998
     * @see PaymentStatus
3999
     */
4000
    public PaymentStatus getStatus() {
4001
      return this.status;
4002
    }
4003
 
4004
    /**
4005
     * 
4006
     * @see PaymentStatus
4007
     */
3430 rajveer 4008
    public void setStatus(PaymentStatus status) {
123 ashish 4009
      this.status = status;
4010
    }
4011
 
4012
    public void unsetStatus() {
4013
      this.status = null;
4014
    }
4015
 
3430 rajveer 4016
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 4017
    public boolean isSetStatus() {
4018
      return this.status != null;
4019
    }
4020
 
4021
    public void setStatusIsSet(boolean value) {
4022
      if (!value) {
4023
        this.status = null;
4024
      }
4025
    }
4026
 
695 rajveer 4027
    public long getGatewayId() {
4028
      return this.gatewayId;
123 ashish 4029
    }
4030
 
3430 rajveer 4031
    public void setGatewayId(long gatewayId) {
695 rajveer 4032
      this.gatewayId = gatewayId;
4033
      setGatewayIdIsSet(true);
123 ashish 4034
    }
4035
 
695 rajveer 4036
    public void unsetGatewayId() {
4037
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 4038
    }
4039
 
3430 rajveer 4040
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 4041
    public boolean isSetGatewayId() {
4042
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 4043
    }
4044
 
695 rajveer 4045
    public void setGatewayIdIsSet(boolean value) {
4046
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 4047
    }
4048
 
4049
    public void setFieldValue(_Fields field, Object value) {
4050
      switch (field) {
4051
      case FROM_TIME:
4052
        if (value == null) {
695 rajveer 4053
          unsetFromTime();
123 ashish 4054
        } else {
695 rajveer 4055
          setFromTime((Long)value);
123 ashish 4056
        }
4057
        break;
4058
 
4059
      case TO_TIME:
4060
        if (value == null) {
695 rajveer 4061
          unsetToTime();
123 ashish 4062
        } else {
695 rajveer 4063
          setToTime((Long)value);
123 ashish 4064
        }
4065
        break;
4066
 
4067
      case STATUS:
4068
        if (value == null) {
4069
          unsetStatus();
4070
        } else {
4071
          setStatus((PaymentStatus)value);
4072
        }
4073
        break;
4074
 
420 ashish 4075
      case GATEWAY_ID:
123 ashish 4076
        if (value == null) {
695 rajveer 4077
          unsetGatewayId();
123 ashish 4078
        } else {
695 rajveer 4079
          setGatewayId((Long)value);
123 ashish 4080
        }
4081
        break;
4082
 
4083
      }
4084
    }
4085
 
4086
    public Object getFieldValue(_Fields field) {
4087
      switch (field) {
4088
      case FROM_TIME:
3430 rajveer 4089
        return Long.valueOf(getFromTime());
123 ashish 4090
 
4091
      case TO_TIME:
3430 rajveer 4092
        return Long.valueOf(getToTime());
123 ashish 4093
 
4094
      case STATUS:
4095
        return getStatus();
4096
 
420 ashish 4097
      case GATEWAY_ID:
3430 rajveer 4098
        return Long.valueOf(getGatewayId());
123 ashish 4099
 
4100
      }
4101
      throw new IllegalStateException();
4102
    }
4103
 
3430 rajveer 4104
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4105
    public boolean isSet(_Fields field) {
4106
      if (field == null) {
4107
        throw new IllegalArgumentException();
4108
      }
123 ashish 4109
 
4110
      switch (field) {
4111
      case FROM_TIME:
695 rajveer 4112
        return isSetFromTime();
123 ashish 4113
      case TO_TIME:
695 rajveer 4114
        return isSetToTime();
123 ashish 4115
      case STATUS:
4116
        return isSetStatus();
420 ashish 4117
      case GATEWAY_ID:
695 rajveer 4118
        return isSetGatewayId();
123 ashish 4119
      }
4120
      throw new IllegalStateException();
4121
    }
4122
 
4123
    @Override
4124
    public boolean equals(Object that) {
4125
      if (that == null)
4126
        return false;
4127
      if (that instanceof getPayments_args)
4128
        return this.equals((getPayments_args)that);
4129
      return false;
4130
    }
4131
 
4132
    public boolean equals(getPayments_args that) {
4133
      if (that == null)
4134
        return false;
4135
 
695 rajveer 4136
      boolean this_present_fromTime = true;
4137
      boolean that_present_fromTime = true;
4138
      if (this_present_fromTime || that_present_fromTime) {
4139
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 4140
          return false;
695 rajveer 4141
        if (this.fromTime != that.fromTime)
123 ashish 4142
          return false;
4143
      }
4144
 
695 rajveer 4145
      boolean this_present_toTime = true;
4146
      boolean that_present_toTime = true;
4147
      if (this_present_toTime || that_present_toTime) {
4148
        if (!(this_present_toTime && that_present_toTime))
123 ashish 4149
          return false;
695 rajveer 4150
        if (this.toTime != that.toTime)
123 ashish 4151
          return false;
4152
      }
4153
 
4154
      boolean this_present_status = true && this.isSetStatus();
4155
      boolean that_present_status = true && that.isSetStatus();
4156
      if (this_present_status || that_present_status) {
4157
        if (!(this_present_status && that_present_status))
4158
          return false;
4159
        if (!this.status.equals(that.status))
4160
          return false;
4161
      }
4162
 
695 rajveer 4163
      boolean this_present_gatewayId = true;
4164
      boolean that_present_gatewayId = true;
4165
      if (this_present_gatewayId || that_present_gatewayId) {
4166
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 4167
          return false;
695 rajveer 4168
        if (this.gatewayId != that.gatewayId)
123 ashish 4169
          return false;
4170
      }
4171
 
4172
      return true;
4173
    }
4174
 
4175
    @Override
4176
    public int hashCode() {
4177
      return 0;
4178
    }
4179
 
4180
    public int compareTo(getPayments_args other) {
4181
      if (!getClass().equals(other.getClass())) {
4182
        return getClass().getName().compareTo(other.getClass().getName());
4183
      }
4184
 
4185
      int lastComparison = 0;
4186
      getPayments_args typedOther = (getPayments_args)other;
4187
 
3430 rajveer 4188
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 4189
      if (lastComparison != 0) {
4190
        return lastComparison;
4191
      }
3430 rajveer 4192
      if (isSetFromTime()) {
4193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
4194
        if (lastComparison != 0) {
4195
          return lastComparison;
4196
        }
123 ashish 4197
      }
3430 rajveer 4198
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 4199
      if (lastComparison != 0) {
4200
        return lastComparison;
4201
      }
3430 rajveer 4202
      if (isSetToTime()) {
4203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
4204
        if (lastComparison != 0) {
4205
          return lastComparison;
4206
        }
123 ashish 4207
      }
3430 rajveer 4208
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 4209
      if (lastComparison != 0) {
4210
        return lastComparison;
4211
      }
3430 rajveer 4212
      if (isSetStatus()) {
4213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
4214
        if (lastComparison != 0) {
4215
          return lastComparison;
4216
        }
123 ashish 4217
      }
3430 rajveer 4218
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 4219
      if (lastComparison != 0) {
4220
        return lastComparison;
4221
      }
3430 rajveer 4222
      if (isSetGatewayId()) {
4223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
4224
        if (lastComparison != 0) {
4225
          return lastComparison;
4226
        }
123 ashish 4227
      }
4228
      return 0;
4229
    }
4230
 
3430 rajveer 4231
    public _Fields fieldForId(int fieldId) {
4232
      return _Fields.findByThriftId(fieldId);
4233
    }
4234
 
4235
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4236
      org.apache.thrift.protocol.TField field;
123 ashish 4237
      iprot.readStructBegin();
4238
      while (true)
4239
      {
4240
        field = iprot.readFieldBegin();
3430 rajveer 4241
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4242
          break;
4243
        }
3430 rajveer 4244
        switch (field.id) {
4245
          case 1: // FROM_TIME
4246
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4247
              this.fromTime = iprot.readI64();
4248
              setFromTimeIsSet(true);
4249
            } else { 
4250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4251
            }
4252
            break;
4253
          case 2: // TO_TIME
4254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4255
              this.toTime = iprot.readI64();
4256
              setToTimeIsSet(true);
4257
            } else { 
4258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4259
            }
4260
            break;
4261
          case 3: // STATUS
4262
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4263
              this.status = PaymentStatus.findByValue(iprot.readI32());
4264
            } else { 
4265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4266
            }
4267
            break;
4268
          case 4: // GATEWAY_ID
4269
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4270
              this.gatewayId = iprot.readI64();
4271
              setGatewayIdIsSet(true);
4272
            } else { 
4273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4274
            }
4275
            break;
4276
          default:
4277
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4278
        }
3430 rajveer 4279
        iprot.readFieldEnd();
123 ashish 4280
      }
4281
      iprot.readStructEnd();
4282
      validate();
4283
    }
4284
 
3430 rajveer 4285
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4286
      validate();
4287
 
4288
      oprot.writeStructBegin(STRUCT_DESC);
4289
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 4290
      oprot.writeI64(this.fromTime);
123 ashish 4291
      oprot.writeFieldEnd();
4292
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 4293
      oprot.writeI64(this.toTime);
123 ashish 4294
      oprot.writeFieldEnd();
4295
      if (this.status != null) {
4296
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4297
        oprot.writeI32(this.status.getValue());
4298
        oprot.writeFieldEnd();
4299
      }
420 ashish 4300
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 4301
      oprot.writeI64(this.gatewayId);
420 ashish 4302
      oprot.writeFieldEnd();
123 ashish 4303
      oprot.writeFieldStop();
4304
      oprot.writeStructEnd();
4305
    }
4306
 
4307
    @Override
4308
    public String toString() {
4309
      StringBuilder sb = new StringBuilder("getPayments_args(");
4310
      boolean first = true;
4311
 
695 rajveer 4312
      sb.append("fromTime:");
4313
      sb.append(this.fromTime);
123 ashish 4314
      first = false;
4315
      if (!first) sb.append(", ");
695 rajveer 4316
      sb.append("toTime:");
4317
      sb.append(this.toTime);
123 ashish 4318
      first = false;
4319
      if (!first) sb.append(", ");
4320
      sb.append("status:");
4321
      if (this.status == null) {
4322
        sb.append("null");
4323
      } else {
4324
        sb.append(this.status);
4325
      }
4326
      first = false;
4327
      if (!first) sb.append(", ");
695 rajveer 4328
      sb.append("gatewayId:");
4329
      sb.append(this.gatewayId);
123 ashish 4330
      first = false;
4331
      sb.append(")");
4332
      return sb.toString();
4333
    }
4334
 
3430 rajveer 4335
    public void validate() throws org.apache.thrift.TException {
123 ashish 4336
      // check for required fields
4337
    }
4338
 
3430 rajveer 4339
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4340
      try {
4341
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4342
      } catch (org.apache.thrift.TException te) {
4343
        throw new java.io.IOException(te);
4344
      }
4345
    }
4346
 
4347
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4348
      try {
4349
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4350
      } catch (org.apache.thrift.TException te) {
4351
        throw new java.io.IOException(te);
4352
      }
4353
    }
4354
 
123 ashish 4355
  }
4356
 
3430 rajveer 4357
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
4358
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
123 ashish 4359
 
3430 rajveer 4360
    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);
4361
    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 4362
 
3430 rajveer 4363
    private List<Payment> success; // required
4364
    private PaymentException pe; // required
123 ashish 4365
 
4366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 4368
      SUCCESS((short)0, "success"),
4369
      PE((short)1, "pe");
4370
 
4371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4372
 
4373
      static {
4374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4375
          byName.put(field.getFieldName(), field);
4376
        }
4377
      }
4378
 
4379
      /**
4380
       * Find the _Fields constant that matches fieldId, or null if its not found.
4381
       */
4382
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4383
        switch(fieldId) {
4384
          case 0: // SUCCESS
4385
            return SUCCESS;
4386
          case 1: // PE
4387
            return PE;
4388
          default:
4389
            return null;
4390
        }
123 ashish 4391
      }
4392
 
4393
      /**
4394
       * Find the _Fields constant that matches fieldId, throwing an exception
4395
       * if it is not found.
4396
       */
4397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4398
        _Fields fields = findByThriftId(fieldId);
4399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4400
        return fields;
4401
      }
4402
 
4403
      /**
4404
       * Find the _Fields constant that matches name, or null if its not found.
4405
       */
4406
      public static _Fields findByName(String name) {
4407
        return byName.get(name);
4408
      }
4409
 
4410
      private final short _thriftId;
4411
      private final String _fieldName;
4412
 
4413
      _Fields(short thriftId, String fieldName) {
4414
        _thriftId = thriftId;
4415
        _fieldName = fieldName;
4416
      }
4417
 
4418
      public short getThriftFieldId() {
4419
        return _thriftId;
4420
      }
4421
 
4422
      public String getFieldName() {
4423
        return _fieldName;
4424
      }
4425
    }
4426
 
4427
    // isset id assignments
4428
 
3430 rajveer 4429
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4430
    static {
3430 rajveer 4431
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4432
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4433
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4434
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
4435
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
123 ashish 4439
    }
4440
 
4441
    public getPayments_result() {
4442
    }
4443
 
4444
    public getPayments_result(
4445
      List<Payment> success,
4446
      PaymentException pe)
4447
    {
4448
      this();
4449
      this.success = success;
4450
      this.pe = pe;
4451
    }
4452
 
4453
    /**
4454
     * Performs a deep copy on <i>other</i>.
4455
     */
4456
    public getPayments_result(getPayments_result other) {
4457
      if (other.isSetSuccess()) {
4458
        List<Payment> __this__success = new ArrayList<Payment>();
4459
        for (Payment other_element : other.success) {
4460
          __this__success.add(new Payment(other_element));
4461
        }
4462
        this.success = __this__success;
4463
      }
4464
      if (other.isSetPe()) {
4465
        this.pe = new PaymentException(other.pe);
4466
      }
4467
    }
4468
 
4469
    public getPayments_result deepCopy() {
4470
      return new getPayments_result(this);
4471
    }
4472
 
3430 rajveer 4473
    @Override
4474
    public void clear() {
4475
      this.success = null;
4476
      this.pe = null;
123 ashish 4477
    }
4478
 
4479
    public int getSuccessSize() {
4480
      return (this.success == null) ? 0 : this.success.size();
4481
    }
4482
 
4483
    public java.util.Iterator<Payment> getSuccessIterator() {
4484
      return (this.success == null) ? null : this.success.iterator();
4485
    }
4486
 
4487
    public void addToSuccess(Payment elem) {
4488
      if (this.success == null) {
4489
        this.success = new ArrayList<Payment>();
4490
      }
4491
      this.success.add(elem);
4492
    }
4493
 
4494
    public List<Payment> getSuccess() {
4495
      return this.success;
4496
    }
4497
 
3430 rajveer 4498
    public void setSuccess(List<Payment> success) {
123 ashish 4499
      this.success = success;
4500
    }
4501
 
4502
    public void unsetSuccess() {
4503
      this.success = null;
4504
    }
4505
 
3430 rajveer 4506
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 4507
    public boolean isSetSuccess() {
4508
      return this.success != null;
4509
    }
4510
 
4511
    public void setSuccessIsSet(boolean value) {
4512
      if (!value) {
4513
        this.success = null;
4514
      }
4515
    }
4516
 
4517
    public PaymentException getPe() {
4518
      return this.pe;
4519
    }
4520
 
3430 rajveer 4521
    public void setPe(PaymentException pe) {
123 ashish 4522
      this.pe = pe;
4523
    }
4524
 
4525
    public void unsetPe() {
4526
      this.pe = null;
4527
    }
4528
 
3430 rajveer 4529
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 4530
    public boolean isSetPe() {
4531
      return this.pe != null;
4532
    }
4533
 
4534
    public void setPeIsSet(boolean value) {
4535
      if (!value) {
4536
        this.pe = null;
4537
      }
4538
    }
4539
 
4540
    public void setFieldValue(_Fields field, Object value) {
4541
      switch (field) {
4542
      case SUCCESS:
4543
        if (value == null) {
4544
          unsetSuccess();
4545
        } else {
4546
          setSuccess((List<Payment>)value);
4547
        }
4548
        break;
4549
 
4550
      case PE:
4551
        if (value == null) {
4552
          unsetPe();
4553
        } else {
4554
          setPe((PaymentException)value);
4555
        }
4556
        break;
4557
 
4558
      }
4559
    }
4560
 
4561
    public Object getFieldValue(_Fields field) {
4562
      switch (field) {
4563
      case SUCCESS:
4564
        return getSuccess();
4565
 
4566
      case PE:
4567
        return getPe();
4568
 
4569
      }
4570
      throw new IllegalStateException();
4571
    }
4572
 
3430 rajveer 4573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4574
    public boolean isSet(_Fields field) {
4575
      if (field == null) {
4576
        throw new IllegalArgumentException();
4577
      }
123 ashish 4578
 
4579
      switch (field) {
4580
      case SUCCESS:
4581
        return isSetSuccess();
4582
      case PE:
4583
        return isSetPe();
4584
      }
4585
      throw new IllegalStateException();
4586
    }
4587
 
4588
    @Override
4589
    public boolean equals(Object that) {
4590
      if (that == null)
4591
        return false;
4592
      if (that instanceof getPayments_result)
4593
        return this.equals((getPayments_result)that);
4594
      return false;
4595
    }
4596
 
4597
    public boolean equals(getPayments_result that) {
4598
      if (that == null)
4599
        return false;
4600
 
4601
      boolean this_present_success = true && this.isSetSuccess();
4602
      boolean that_present_success = true && that.isSetSuccess();
4603
      if (this_present_success || that_present_success) {
4604
        if (!(this_present_success && that_present_success))
4605
          return false;
4606
        if (!this.success.equals(that.success))
4607
          return false;
4608
      }
4609
 
4610
      boolean this_present_pe = true && this.isSetPe();
4611
      boolean that_present_pe = true && that.isSetPe();
4612
      if (this_present_pe || that_present_pe) {
4613
        if (!(this_present_pe && that_present_pe))
4614
          return false;
4615
        if (!this.pe.equals(that.pe))
4616
          return false;
4617
      }
4618
 
4619
      return true;
4620
    }
4621
 
4622
    @Override
4623
    public int hashCode() {
4624
      return 0;
4625
    }
4626
 
695 rajveer 4627
    public int compareTo(getPayments_result other) {
123 ashish 4628
      if (!getClass().equals(other.getClass())) {
4629
        return getClass().getName().compareTo(other.getClass().getName());
4630
      }
4631
 
4632
      int lastComparison = 0;
695 rajveer 4633
      getPayments_result typedOther = (getPayments_result)other;
123 ashish 4634
 
3430 rajveer 4635
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 4636
      if (lastComparison != 0) {
4637
        return lastComparison;
4638
      }
3430 rajveer 4639
      if (isSetSuccess()) {
4640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4641
        if (lastComparison != 0) {
4642
          return lastComparison;
4643
        }
123 ashish 4644
      }
3430 rajveer 4645
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 4646
      if (lastComparison != 0) {
4647
        return lastComparison;
123 ashish 4648
      }
3430 rajveer 4649
      if (isSetPe()) {
4650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4651
        if (lastComparison != 0) {
4652
          return lastComparison;
4653
        }
123 ashish 4654
      }
4655
      return 0;
4656
    }
4657
 
3430 rajveer 4658
    public _Fields fieldForId(int fieldId) {
4659
      return _Fields.findByThriftId(fieldId);
4660
    }
4661
 
4662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4663
      org.apache.thrift.protocol.TField field;
123 ashish 4664
      iprot.readStructBegin();
4665
      while (true)
4666
      {
4667
        field = iprot.readFieldBegin();
3430 rajveer 4668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4669
          break;
4670
        }
3430 rajveer 4671
        switch (field.id) {
4672
          case 0: // SUCCESS
4673
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4674
              {
4675
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
4676
                this.success = new ArrayList<Payment>(_list16.size);
4677
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
420 ashish 4678
                {
3430 rajveer 4679
                  Payment _elem18; // required
4680
                  _elem18 = new Payment();
4681
                  _elem18.read(iprot);
4682
                  this.success.add(_elem18);
420 ashish 4683
                }
3430 rajveer 4684
                iprot.readListEnd();
123 ashish 4685
              }
3430 rajveer 4686
            } else { 
4687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4688
            }
4689
            break;
4690
          case 1: // PE
4691
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4692
              this.pe = new PaymentException();
4693
              this.pe.read(iprot);
4694
            } else { 
4695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4696
            }
4697
            break;
4698
          default:
4699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4700
        }
3430 rajveer 4701
        iprot.readFieldEnd();
123 ashish 4702
      }
4703
      iprot.readStructEnd();
4704
      validate();
4705
    }
4706
 
3430 rajveer 4707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4708
      oprot.writeStructBegin(STRUCT_DESC);
4709
 
4710
      if (this.isSetSuccess()) {
4711
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 4712
        {
3430 rajveer 4713
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 4714
          for (Payment _iter19 : this.success)
420 ashish 4715
          {
2747 chandransh 4716
            _iter19.write(oprot);
420 ashish 4717
          }
4718
          oprot.writeListEnd();
4719
        }
123 ashish 4720
        oprot.writeFieldEnd();
4721
      } else if (this.isSetPe()) {
4722
        oprot.writeFieldBegin(PE_FIELD_DESC);
4723
        this.pe.write(oprot);
4724
        oprot.writeFieldEnd();
4725
      }
4726
      oprot.writeFieldStop();
4727
      oprot.writeStructEnd();
4728
    }
4729
 
4730
    @Override
4731
    public String toString() {
695 rajveer 4732
      StringBuilder sb = new StringBuilder("getPayments_result(");
123 ashish 4733
      boolean first = true;
4734
 
4735
      sb.append("success:");
4736
      if (this.success == null) {
4737
        sb.append("null");
4738
      } else {
4739
        sb.append(this.success);
4740
      }
4741
      first = false;
4742
      if (!first) sb.append(", ");
4743
      sb.append("pe:");
4744
      if (this.pe == null) {
4745
        sb.append("null");
4746
      } else {
4747
        sb.append(this.pe);
4748
      }
4749
      first = false;
4750
      sb.append(")");
4751
      return sb.toString();
4752
    }
4753
 
3430 rajveer 4754
    public void validate() throws org.apache.thrift.TException {
123 ashish 4755
      // check for required fields
4756
    }
4757
 
3430 rajveer 4758
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4759
      try {
4760
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4761
      } catch (org.apache.thrift.TException te) {
4762
        throw new java.io.IOException(te);
4763
      }
4764
    }
4765
 
4766
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4767
      try {
4768
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4769
      } catch (org.apache.thrift.TException te) {
4770
        throw new java.io.IOException(te);
4771
      }
4772
    }
4773
 
123 ashish 4774
  }
4775
 
4141 chandransh 4776
  public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable   {
4777
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
4778
 
4779
    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);
4780
    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);
4781
    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);
4782
 
4783
    private long fromTime; // required
4784
    private long toTime; // required
4785
    private long gatewayId; // required
4786
 
4787
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4788
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4789
      FROM_TIME((short)1, "fromTime"),
4790
      TO_TIME((short)2, "toTime"),
4791
      GATEWAY_ID((short)3, "gatewayId");
4792
 
4793
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4794
 
4795
      static {
4796
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4797
          byName.put(field.getFieldName(), field);
4798
        }
4799
      }
4800
 
4801
      /**
4802
       * Find the _Fields constant that matches fieldId, or null if its not found.
4803
       */
4804
      public static _Fields findByThriftId(int fieldId) {
4805
        switch(fieldId) {
4806
          case 1: // FROM_TIME
4807
            return FROM_TIME;
4808
          case 2: // TO_TIME
4809
            return TO_TIME;
4810
          case 3: // GATEWAY_ID
4811
            return GATEWAY_ID;
4812
          default:
4813
            return null;
4814
        }
4815
      }
4816
 
4817
      /**
4818
       * Find the _Fields constant that matches fieldId, throwing an exception
4819
       * if it is not found.
4820
       */
4821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4822
        _Fields fields = findByThriftId(fieldId);
4823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4824
        return fields;
4825
      }
4826
 
4827
      /**
4828
       * Find the _Fields constant that matches name, or null if its not found.
4829
       */
4830
      public static _Fields findByName(String name) {
4831
        return byName.get(name);
4832
      }
4833
 
4834
      private final short _thriftId;
4835
      private final String _fieldName;
4836
 
4837
      _Fields(short thriftId, String fieldName) {
4838
        _thriftId = thriftId;
4839
        _fieldName = fieldName;
4840
      }
4841
 
4842
      public short getThriftFieldId() {
4843
        return _thriftId;
4844
      }
4845
 
4846
      public String getFieldName() {
4847
        return _fieldName;
4848
      }
4849
    }
4850
 
4851
    // isset id assignments
4852
    private static final int __FROMTIME_ISSET_ID = 0;
4853
    private static final int __TOTIME_ISSET_ID = 1;
4854
    private static final int __GATEWAYID_ISSET_ID = 2;
4855
    private BitSet __isset_bit_vector = new BitSet(3);
4856
 
4857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4858
    static {
4859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4860
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4862
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4864
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
4868
    }
4869
 
4870
    public getPaymentsByCapturedDate_args() {
4871
    }
4872
 
4873
    public getPaymentsByCapturedDate_args(
4874
      long fromTime,
4875
      long toTime,
4876
      long gatewayId)
4877
    {
4878
      this();
4879
      this.fromTime = fromTime;
4880
      setFromTimeIsSet(true);
4881
      this.toTime = toTime;
4882
      setToTimeIsSet(true);
4883
      this.gatewayId = gatewayId;
4884
      setGatewayIdIsSet(true);
4885
    }
4886
 
4887
    /**
4888
     * Performs a deep copy on <i>other</i>.
4889
     */
4890
    public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
4891
      __isset_bit_vector.clear();
4892
      __isset_bit_vector.or(other.__isset_bit_vector);
4893
      this.fromTime = other.fromTime;
4894
      this.toTime = other.toTime;
4895
      this.gatewayId = other.gatewayId;
4896
    }
4897
 
4898
    public getPaymentsByCapturedDate_args deepCopy() {
4899
      return new getPaymentsByCapturedDate_args(this);
4900
    }
4901
 
4902
    @Override
4903
    public void clear() {
4904
      setFromTimeIsSet(false);
4905
      this.fromTime = 0;
4906
      setToTimeIsSet(false);
4907
      this.toTime = 0;
4908
      setGatewayIdIsSet(false);
4909
      this.gatewayId = 0;
4910
    }
4911
 
4912
    public long getFromTime() {
4913
      return this.fromTime;
4914
    }
4915
 
4916
    public void setFromTime(long fromTime) {
4917
      this.fromTime = fromTime;
4918
      setFromTimeIsSet(true);
4919
    }
4920
 
4921
    public void unsetFromTime() {
4922
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
4923
    }
4924
 
4925
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
4926
    public boolean isSetFromTime() {
4927
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
4928
    }
4929
 
4930
    public void setFromTimeIsSet(boolean value) {
4931
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
4932
    }
4933
 
4934
    public long getToTime() {
4935
      return this.toTime;
4936
    }
4937
 
4938
    public void setToTime(long toTime) {
4939
      this.toTime = toTime;
4940
      setToTimeIsSet(true);
4941
    }
4942
 
4943
    public void unsetToTime() {
4944
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
4945
    }
4946
 
4947
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
4948
    public boolean isSetToTime() {
4949
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
4950
    }
4951
 
4952
    public void setToTimeIsSet(boolean value) {
4953
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
4954
    }
4955
 
4956
    public long getGatewayId() {
4957
      return this.gatewayId;
4958
    }
4959
 
4960
    public void setGatewayId(long gatewayId) {
4961
      this.gatewayId = gatewayId;
4962
      setGatewayIdIsSet(true);
4963
    }
4964
 
4965
    public void unsetGatewayId() {
4966
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
4967
    }
4968
 
4969
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
4970
    public boolean isSetGatewayId() {
4971
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
4972
    }
4973
 
4974
    public void setGatewayIdIsSet(boolean value) {
4975
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
4976
    }
4977
 
4978
    public void setFieldValue(_Fields field, Object value) {
4979
      switch (field) {
4980
      case FROM_TIME:
4981
        if (value == null) {
4982
          unsetFromTime();
4983
        } else {
4984
          setFromTime((Long)value);
4985
        }
4986
        break;
4987
 
4988
      case TO_TIME:
4989
        if (value == null) {
4990
          unsetToTime();
4991
        } else {
4992
          setToTime((Long)value);
4993
        }
4994
        break;
4995
 
4996
      case GATEWAY_ID:
4997
        if (value == null) {
4998
          unsetGatewayId();
4999
        } else {
5000
          setGatewayId((Long)value);
5001
        }
5002
        break;
5003
 
5004
      }
5005
    }
5006
 
5007
    public Object getFieldValue(_Fields field) {
5008
      switch (field) {
5009
      case FROM_TIME:
5010
        return Long.valueOf(getFromTime());
5011
 
5012
      case TO_TIME:
5013
        return Long.valueOf(getToTime());
5014
 
5015
      case GATEWAY_ID:
5016
        return Long.valueOf(getGatewayId());
5017
 
5018
      }
5019
      throw new IllegalStateException();
5020
    }
5021
 
5022
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5023
    public boolean isSet(_Fields field) {
5024
      if (field == null) {
5025
        throw new IllegalArgumentException();
5026
      }
5027
 
5028
      switch (field) {
5029
      case FROM_TIME:
5030
        return isSetFromTime();
5031
      case TO_TIME:
5032
        return isSetToTime();
5033
      case GATEWAY_ID:
5034
        return isSetGatewayId();
5035
      }
5036
      throw new IllegalStateException();
5037
    }
5038
 
5039
    @Override
5040
    public boolean equals(Object that) {
5041
      if (that == null)
5042
        return false;
5043
      if (that instanceof getPaymentsByCapturedDate_args)
5044
        return this.equals((getPaymentsByCapturedDate_args)that);
5045
      return false;
5046
    }
5047
 
5048
    public boolean equals(getPaymentsByCapturedDate_args that) {
5049
      if (that == null)
5050
        return false;
5051
 
5052
      boolean this_present_fromTime = true;
5053
      boolean that_present_fromTime = true;
5054
      if (this_present_fromTime || that_present_fromTime) {
5055
        if (!(this_present_fromTime && that_present_fromTime))
5056
          return false;
5057
        if (this.fromTime != that.fromTime)
5058
          return false;
5059
      }
5060
 
5061
      boolean this_present_toTime = true;
5062
      boolean that_present_toTime = true;
5063
      if (this_present_toTime || that_present_toTime) {
5064
        if (!(this_present_toTime && that_present_toTime))
5065
          return false;
5066
        if (this.toTime != that.toTime)
5067
          return false;
5068
      }
5069
 
5070
      boolean this_present_gatewayId = true;
5071
      boolean that_present_gatewayId = true;
5072
      if (this_present_gatewayId || that_present_gatewayId) {
5073
        if (!(this_present_gatewayId && that_present_gatewayId))
5074
          return false;
5075
        if (this.gatewayId != that.gatewayId)
5076
          return false;
5077
      }
5078
 
5079
      return true;
5080
    }
5081
 
5082
    @Override
5083
    public int hashCode() {
5084
      return 0;
5085
    }
5086
 
5087
    public int compareTo(getPaymentsByCapturedDate_args other) {
5088
      if (!getClass().equals(other.getClass())) {
5089
        return getClass().getName().compareTo(other.getClass().getName());
5090
      }
5091
 
5092
      int lastComparison = 0;
5093
      getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
5094
 
5095
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
5096
      if (lastComparison != 0) {
5097
        return lastComparison;
5098
      }
5099
      if (isSetFromTime()) {
5100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
5101
        if (lastComparison != 0) {
5102
          return lastComparison;
5103
        }
5104
      }
5105
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
5106
      if (lastComparison != 0) {
5107
        return lastComparison;
5108
      }
5109
      if (isSetToTime()) {
5110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
5111
        if (lastComparison != 0) {
5112
          return lastComparison;
5113
        }
5114
      }
5115
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
5116
      if (lastComparison != 0) {
5117
        return lastComparison;
5118
      }
5119
      if (isSetGatewayId()) {
5120
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
5121
        if (lastComparison != 0) {
5122
          return lastComparison;
5123
        }
5124
      }
5125
      return 0;
5126
    }
5127
 
5128
    public _Fields fieldForId(int fieldId) {
5129
      return _Fields.findByThriftId(fieldId);
5130
    }
5131
 
5132
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5133
      org.apache.thrift.protocol.TField field;
5134
      iprot.readStructBegin();
5135
      while (true)
5136
      {
5137
        field = iprot.readFieldBegin();
5138
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5139
          break;
5140
        }
5141
        switch (field.id) {
5142
          case 1: // FROM_TIME
5143
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5144
              this.fromTime = iprot.readI64();
5145
              setFromTimeIsSet(true);
5146
            } else { 
5147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5148
            }
5149
            break;
5150
          case 2: // TO_TIME
5151
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5152
              this.toTime = iprot.readI64();
5153
              setToTimeIsSet(true);
5154
            } else { 
5155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5156
            }
5157
            break;
5158
          case 3: // GATEWAY_ID
5159
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5160
              this.gatewayId = iprot.readI64();
5161
              setGatewayIdIsSet(true);
5162
            } else { 
5163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5164
            }
5165
            break;
5166
          default:
5167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5168
        }
5169
        iprot.readFieldEnd();
5170
      }
5171
      iprot.readStructEnd();
5172
      validate();
5173
    }
5174
 
5175
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5176
      validate();
5177
 
5178
      oprot.writeStructBegin(STRUCT_DESC);
5179
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
5180
      oprot.writeI64(this.fromTime);
5181
      oprot.writeFieldEnd();
5182
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
5183
      oprot.writeI64(this.toTime);
5184
      oprot.writeFieldEnd();
5185
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
5186
      oprot.writeI64(this.gatewayId);
5187
      oprot.writeFieldEnd();
5188
      oprot.writeFieldStop();
5189
      oprot.writeStructEnd();
5190
    }
5191
 
5192
    @Override
5193
    public String toString() {
5194
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
5195
      boolean first = true;
5196
 
5197
      sb.append("fromTime:");
5198
      sb.append(this.fromTime);
5199
      first = false;
5200
      if (!first) sb.append(", ");
5201
      sb.append("toTime:");
5202
      sb.append(this.toTime);
5203
      first = false;
5204
      if (!first) sb.append(", ");
5205
      sb.append("gatewayId:");
5206
      sb.append(this.gatewayId);
5207
      first = false;
5208
      sb.append(")");
5209
      return sb.toString();
5210
    }
5211
 
5212
    public void validate() throws org.apache.thrift.TException {
5213
      // check for required fields
5214
    }
5215
 
5216
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5217
      try {
5218
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5219
      } catch (org.apache.thrift.TException te) {
5220
        throw new java.io.IOException(te);
5221
      }
5222
    }
5223
 
5224
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5225
      try {
5226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5227
      } catch (org.apache.thrift.TException te) {
5228
        throw new java.io.IOException(te);
5229
      }
5230
    }
5231
 
5232
  }
5233
 
5234
  public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable   {
5235
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
5236
 
5237
    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);
5238
    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);
5239
 
5240
    private List<Payment> success; // required
5241
    private PaymentException pe; // required
5242
 
5243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5244
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5245
      SUCCESS((short)0, "success"),
5246
      PE((short)1, "pe");
5247
 
5248
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5249
 
5250
      static {
5251
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5252
          byName.put(field.getFieldName(), field);
5253
        }
5254
      }
5255
 
5256
      /**
5257
       * Find the _Fields constant that matches fieldId, or null if its not found.
5258
       */
5259
      public static _Fields findByThriftId(int fieldId) {
5260
        switch(fieldId) {
5261
          case 0: // SUCCESS
5262
            return SUCCESS;
5263
          case 1: // PE
5264
            return PE;
5265
          default:
5266
            return null;
5267
        }
5268
      }
5269
 
5270
      /**
5271
       * Find the _Fields constant that matches fieldId, throwing an exception
5272
       * if it is not found.
5273
       */
5274
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5275
        _Fields fields = findByThriftId(fieldId);
5276
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5277
        return fields;
5278
      }
5279
 
5280
      /**
5281
       * Find the _Fields constant that matches name, or null if its not found.
5282
       */
5283
      public static _Fields findByName(String name) {
5284
        return byName.get(name);
5285
      }
5286
 
5287
      private final short _thriftId;
5288
      private final String _fieldName;
5289
 
5290
      _Fields(short thriftId, String fieldName) {
5291
        _thriftId = thriftId;
5292
        _fieldName = fieldName;
5293
      }
5294
 
5295
      public short getThriftFieldId() {
5296
        return _thriftId;
5297
      }
5298
 
5299
      public String getFieldName() {
5300
        return _fieldName;
5301
      }
5302
    }
5303
 
5304
    // isset id assignments
5305
 
5306
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5307
    static {
5308
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5309
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5310
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5311
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
5312
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
5316
    }
5317
 
5318
    public getPaymentsByCapturedDate_result() {
5319
    }
5320
 
5321
    public getPaymentsByCapturedDate_result(
5322
      List<Payment> success,
5323
      PaymentException pe)
5324
    {
5325
      this();
5326
      this.success = success;
5327
      this.pe = pe;
5328
    }
5329
 
5330
    /**
5331
     * Performs a deep copy on <i>other</i>.
5332
     */
5333
    public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
5334
      if (other.isSetSuccess()) {
5335
        List<Payment> __this__success = new ArrayList<Payment>();
5336
        for (Payment other_element : other.success) {
5337
          __this__success.add(new Payment(other_element));
5338
        }
5339
        this.success = __this__success;
5340
      }
5341
      if (other.isSetPe()) {
5342
        this.pe = new PaymentException(other.pe);
5343
      }
5344
    }
5345
 
5346
    public getPaymentsByCapturedDate_result deepCopy() {
5347
      return new getPaymentsByCapturedDate_result(this);
5348
    }
5349
 
5350
    @Override
5351
    public void clear() {
5352
      this.success = null;
5353
      this.pe = null;
5354
    }
5355
 
5356
    public int getSuccessSize() {
5357
      return (this.success == null) ? 0 : this.success.size();
5358
    }
5359
 
5360
    public java.util.Iterator<Payment> getSuccessIterator() {
5361
      return (this.success == null) ? null : this.success.iterator();
5362
    }
5363
 
5364
    public void addToSuccess(Payment elem) {
5365
      if (this.success == null) {
5366
        this.success = new ArrayList<Payment>();
5367
      }
5368
      this.success.add(elem);
5369
    }
5370
 
5371
    public List<Payment> getSuccess() {
5372
      return this.success;
5373
    }
5374
 
5375
    public void setSuccess(List<Payment> success) {
5376
      this.success = success;
5377
    }
5378
 
5379
    public void unsetSuccess() {
5380
      this.success = null;
5381
    }
5382
 
5383
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5384
    public boolean isSetSuccess() {
5385
      return this.success != null;
5386
    }
5387
 
5388
    public void setSuccessIsSet(boolean value) {
5389
      if (!value) {
5390
        this.success = null;
5391
      }
5392
    }
5393
 
5394
    public PaymentException getPe() {
5395
      return this.pe;
5396
    }
5397
 
5398
    public void setPe(PaymentException pe) {
5399
      this.pe = pe;
5400
    }
5401
 
5402
    public void unsetPe() {
5403
      this.pe = null;
5404
    }
5405
 
5406
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
5407
    public boolean isSetPe() {
5408
      return this.pe != null;
5409
    }
5410
 
5411
    public void setPeIsSet(boolean value) {
5412
      if (!value) {
5413
        this.pe = null;
5414
      }
5415
    }
5416
 
5417
    public void setFieldValue(_Fields field, Object value) {
5418
      switch (field) {
5419
      case SUCCESS:
5420
        if (value == null) {
5421
          unsetSuccess();
5422
        } else {
5423
          setSuccess((List<Payment>)value);
5424
        }
5425
        break;
5426
 
5427
      case PE:
5428
        if (value == null) {
5429
          unsetPe();
5430
        } else {
5431
          setPe((PaymentException)value);
5432
        }
5433
        break;
5434
 
5435
      }
5436
    }
5437
 
5438
    public Object getFieldValue(_Fields field) {
5439
      switch (field) {
5440
      case SUCCESS:
5441
        return getSuccess();
5442
 
5443
      case PE:
5444
        return getPe();
5445
 
5446
      }
5447
      throw new IllegalStateException();
5448
    }
5449
 
5450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5451
    public boolean isSet(_Fields field) {
5452
      if (field == null) {
5453
        throw new IllegalArgumentException();
5454
      }
5455
 
5456
      switch (field) {
5457
      case SUCCESS:
5458
        return isSetSuccess();
5459
      case PE:
5460
        return isSetPe();
5461
      }
5462
      throw new IllegalStateException();
5463
    }
5464
 
5465
    @Override
5466
    public boolean equals(Object that) {
5467
      if (that == null)
5468
        return false;
5469
      if (that instanceof getPaymentsByCapturedDate_result)
5470
        return this.equals((getPaymentsByCapturedDate_result)that);
5471
      return false;
5472
    }
5473
 
5474
    public boolean equals(getPaymentsByCapturedDate_result that) {
5475
      if (that == null)
5476
        return false;
5477
 
5478
      boolean this_present_success = true && this.isSetSuccess();
5479
      boolean that_present_success = true && that.isSetSuccess();
5480
      if (this_present_success || that_present_success) {
5481
        if (!(this_present_success && that_present_success))
5482
          return false;
5483
        if (!this.success.equals(that.success))
5484
          return false;
5485
      }
5486
 
5487
      boolean this_present_pe = true && this.isSetPe();
5488
      boolean that_present_pe = true && that.isSetPe();
5489
      if (this_present_pe || that_present_pe) {
5490
        if (!(this_present_pe && that_present_pe))
5491
          return false;
5492
        if (!this.pe.equals(that.pe))
5493
          return false;
5494
      }
5495
 
5496
      return true;
5497
    }
5498
 
5499
    @Override
5500
    public int hashCode() {
5501
      return 0;
5502
    }
5503
 
5504
    public int compareTo(getPaymentsByCapturedDate_result other) {
5505
      if (!getClass().equals(other.getClass())) {
5506
        return getClass().getName().compareTo(other.getClass().getName());
5507
      }
5508
 
5509
      int lastComparison = 0;
5510
      getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
5511
 
5512
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5513
      if (lastComparison != 0) {
5514
        return lastComparison;
5515
      }
5516
      if (isSetSuccess()) {
5517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5518
        if (lastComparison != 0) {
5519
          return lastComparison;
5520
        }
5521
      }
5522
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
5523
      if (lastComparison != 0) {
5524
        return lastComparison;
5525
      }
5526
      if (isSetPe()) {
5527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5528
        if (lastComparison != 0) {
5529
          return lastComparison;
5530
        }
5531
      }
5532
      return 0;
5533
    }
5534
 
5535
    public _Fields fieldForId(int fieldId) {
5536
      return _Fields.findByThriftId(fieldId);
5537
    }
5538
 
5539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5540
      org.apache.thrift.protocol.TField field;
5541
      iprot.readStructBegin();
5542
      while (true)
5543
      {
5544
        field = iprot.readFieldBegin();
5545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5546
          break;
5547
        }
5548
        switch (field.id) {
5549
          case 0: // SUCCESS
5550
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5551
              {
5552
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5553
                this.success = new ArrayList<Payment>(_list20.size);
5554
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5555
                {
5556
                  Payment _elem22; // required
5557
                  _elem22 = new Payment();
5558
                  _elem22.read(iprot);
5559
                  this.success.add(_elem22);
5560
                }
5561
                iprot.readListEnd();
5562
              }
5563
            } else { 
5564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5565
            }
5566
            break;
5567
          case 1: // PE
5568
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5569
              this.pe = new PaymentException();
5570
              this.pe.read(iprot);
5571
            } else { 
5572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5573
            }
5574
            break;
5575
          default:
5576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5577
        }
5578
        iprot.readFieldEnd();
5579
      }
5580
      iprot.readStructEnd();
5581
      validate();
5582
    }
5583
 
5584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5585
      oprot.writeStructBegin(STRUCT_DESC);
5586
 
5587
      if (this.isSetSuccess()) {
5588
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5589
        {
5590
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5591
          for (Payment _iter23 : this.success)
5592
          {
5593
            _iter23.write(oprot);
5594
          }
5595
          oprot.writeListEnd();
5596
        }
5597
        oprot.writeFieldEnd();
5598
      } else if (this.isSetPe()) {
5599
        oprot.writeFieldBegin(PE_FIELD_DESC);
5600
        this.pe.write(oprot);
5601
        oprot.writeFieldEnd();
5602
      }
5603
      oprot.writeFieldStop();
5604
      oprot.writeStructEnd();
5605
    }
5606
 
5607
    @Override
5608
    public String toString() {
5609
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
5610
      boolean first = true;
5611
 
5612
      sb.append("success:");
5613
      if (this.success == null) {
5614
        sb.append("null");
5615
      } else {
5616
        sb.append(this.success);
5617
      }
5618
      first = false;
5619
      if (!first) sb.append(", ");
5620
      sb.append("pe:");
5621
      if (this.pe == null) {
5622
        sb.append("null");
5623
      } else {
5624
        sb.append(this.pe);
5625
      }
5626
      first = false;
5627
      sb.append(")");
5628
      return sb.toString();
5629
    }
5630
 
5631
    public void validate() throws org.apache.thrift.TException {
5632
      // check for required fields
5633
    }
5634
 
5635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5636
      try {
5637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5638
      } catch (org.apache.thrift.TException te) {
5639
        throw new java.io.IOException(te);
5640
      }
5641
    }
5642
 
5643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5644
      try {
5645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5646
      } catch (org.apache.thrift.TException te) {
5647
        throw new java.io.IOException(te);
5648
      }
5649
    }
5650
 
5651
  }
5652
 
3430 rajveer 5653
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
5654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
123 ashish 5655
 
3430 rajveer 5656
    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 5657
 
3430 rajveer 5658
    private long id; // required
123 ashish 5659
 
5660
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5661
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 5662
      ID((short)1, "id");
123 ashish 5663
 
5664
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5665
 
5666
      static {
5667
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5668
          byName.put(field.getFieldName(), field);
5669
        }
5670
      }
5671
 
5672
      /**
5673
       * Find the _Fields constant that matches fieldId, or null if its not found.
5674
       */
5675
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5676
        switch(fieldId) {
5677
          case 1: // ID
5678
            return ID;
5679
          default:
5680
            return null;
5681
        }
123 ashish 5682
      }
5683
 
5684
      /**
5685
       * Find the _Fields constant that matches fieldId, throwing an exception
5686
       * if it is not found.
5687
       */
5688
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5689
        _Fields fields = findByThriftId(fieldId);
5690
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5691
        return fields;
5692
      }
5693
 
5694
      /**
5695
       * Find the _Fields constant that matches name, or null if its not found.
5696
       */
5697
      public static _Fields findByName(String name) {
5698
        return byName.get(name);
5699
      }
5700
 
5701
      private final short _thriftId;
5702
      private final String _fieldName;
5703
 
5704
      _Fields(short thriftId, String fieldName) {
5705
        _thriftId = thriftId;
5706
        _fieldName = fieldName;
5707
      }
5708
 
5709
      public short getThriftFieldId() {
5710
        return _thriftId;
5711
      }
5712
 
5713
      public String getFieldName() {
5714
        return _fieldName;
5715
      }
5716
    }
5717
 
5718
    // isset id assignments
420 ashish 5719
    private static final int __ID_ISSET_ID = 0;
123 ashish 5720
    private BitSet __isset_bit_vector = new BitSet(1);
5721
 
3430 rajveer 5722
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 5723
    static {
3430 rajveer 5724
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5725
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5726
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5727
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5728
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
123 ashish 5729
    }
5730
 
695 rajveer 5731
    public getPaymentGateway_args() {
123 ashish 5732
    }
5733
 
695 rajveer 5734
    public getPaymentGateway_args(
5735
      long id)
123 ashish 5736
    {
5737
      this();
420 ashish 5738
      this.id = id;
5739
      setIdIsSet(true);
123 ashish 5740
    }
5741
 
5742
    /**
5743
     * Performs a deep copy on <i>other</i>.
5744
     */
695 rajveer 5745
    public getPaymentGateway_args(getPaymentGateway_args other) {
123 ashish 5746
      __isset_bit_vector.clear();
5747
      __isset_bit_vector.or(other.__isset_bit_vector);
420 ashish 5748
      this.id = other.id;
123 ashish 5749
    }
5750
 
695 rajveer 5751
    public getPaymentGateway_args deepCopy() {
5752
      return new getPaymentGateway_args(this);
123 ashish 5753
    }
5754
 
3430 rajveer 5755
    @Override
5756
    public void clear() {
5757
      setIdIsSet(false);
5758
      this.id = 0;
123 ashish 5759
    }
5760
 
420 ashish 5761
    public long getId() {
5762
      return this.id;
123 ashish 5763
    }
5764
 
3430 rajveer 5765
    public void setId(long id) {
420 ashish 5766
      this.id = id;
5767
      setIdIsSet(true);
123 ashish 5768
    }
5769
 
420 ashish 5770
    public void unsetId() {
5771
      __isset_bit_vector.clear(__ID_ISSET_ID);
123 ashish 5772
    }
5773
 
3430 rajveer 5774
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 5775
    public boolean isSetId() {
5776
      return __isset_bit_vector.get(__ID_ISSET_ID);
123 ashish 5777
    }
5778
 
420 ashish 5779
    public void setIdIsSet(boolean value) {
5780
      __isset_bit_vector.set(__ID_ISSET_ID, value);
123 ashish 5781
    }
5782
 
5783
    public void setFieldValue(_Fields field, Object value) {
5784
      switch (field) {
420 ashish 5785
      case ID:
123 ashish 5786
        if (value == null) {
420 ashish 5787
          unsetId();
123 ashish 5788
        } else {
420 ashish 5789
          setId((Long)value);
123 ashish 5790
        }
5791
        break;
5792
 
5793
      }
5794
    }
5795
 
5796
    public Object getFieldValue(_Fields field) {
5797
      switch (field) {
420 ashish 5798
      case ID:
3430 rajveer 5799
        return Long.valueOf(getId());
123 ashish 5800
 
5801
      }
5802
      throw new IllegalStateException();
5803
    }
5804
 
3430 rajveer 5805
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5806
    public boolean isSet(_Fields field) {
5807
      if (field == null) {
5808
        throw new IllegalArgumentException();
5809
      }
123 ashish 5810
 
5811
      switch (field) {
420 ashish 5812
      case ID:
5813
        return isSetId();
123 ashish 5814
      }
5815
      throw new IllegalStateException();
5816
    }
5817
 
5818
    @Override
5819
    public boolean equals(Object that) {
5820
      if (that == null)
5821
        return false;
695 rajveer 5822
      if (that instanceof getPaymentGateway_args)
5823
        return this.equals((getPaymentGateway_args)that);
123 ashish 5824
      return false;
5825
    }
5826
 
695 rajveer 5827
    public boolean equals(getPaymentGateway_args that) {
123 ashish 5828
      if (that == null)
5829
        return false;
5830
 
420 ashish 5831
      boolean this_present_id = true;
5832
      boolean that_present_id = true;
5833
      if (this_present_id || that_present_id) {
5834
        if (!(this_present_id && that_present_id))
123 ashish 5835
          return false;
420 ashish 5836
        if (this.id != that.id)
123 ashish 5837
          return false;
5838
      }
5839
 
5840
      return true;
5841
    }
5842
 
5843
    @Override
5844
    public int hashCode() {
5845
      return 0;
5846
    }
5847
 
695 rajveer 5848
    public int compareTo(getPaymentGateway_args other) {
123 ashish 5849
      if (!getClass().equals(other.getClass())) {
5850
        return getClass().getName().compareTo(other.getClass().getName());
5851
      }
5852
 
5853
      int lastComparison = 0;
695 rajveer 5854
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
123 ashish 5855
 
3430 rajveer 5856
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
123 ashish 5857
      if (lastComparison != 0) {
5858
        return lastComparison;
5859
      }
3430 rajveer 5860
      if (isSetId()) {
5861
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
5862
        if (lastComparison != 0) {
5863
          return lastComparison;
5864
        }
123 ashish 5865
      }
5866
      return 0;
5867
    }
5868
 
3430 rajveer 5869
    public _Fields fieldForId(int fieldId) {
5870
      return _Fields.findByThriftId(fieldId);
5871
    }
5872
 
5873
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5874
      org.apache.thrift.protocol.TField field;
123 ashish 5875
      iprot.readStructBegin();
5876
      while (true)
5877
      {
5878
        field = iprot.readFieldBegin();
3430 rajveer 5879
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 5880
          break;
5881
        }
3430 rajveer 5882
        switch (field.id) {
5883
          case 1: // ID
5884
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5885
              this.id = iprot.readI64();
5886
              setIdIsSet(true);
5887
            } else { 
5888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5889
            }
5890
            break;
5891
          default:
5892
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 5893
        }
3430 rajveer 5894
        iprot.readFieldEnd();
123 ashish 5895
      }
5896
      iprot.readStructEnd();
5897
      validate();
5898
    }
5899
 
3430 rajveer 5900
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 5901
      validate();
5902
 
5903
      oprot.writeStructBegin(STRUCT_DESC);
420 ashish 5904
      oprot.writeFieldBegin(ID_FIELD_DESC);
5905
      oprot.writeI64(this.id);
123 ashish 5906
      oprot.writeFieldEnd();
5907
      oprot.writeFieldStop();
5908
      oprot.writeStructEnd();
5909
    }
5910
 
5911
    @Override
5912
    public String toString() {
695 rajveer 5913
      StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
123 ashish 5914
      boolean first = true;
5915
 
420 ashish 5916
      sb.append("id:");
5917
      sb.append(this.id);
123 ashish 5918
      first = false;
5919
      sb.append(")");
5920
      return sb.toString();
5921
    }
5922
 
3430 rajveer 5923
    public void validate() throws org.apache.thrift.TException {
123 ashish 5924
      // check for required fields
5925
    }
5926
 
3430 rajveer 5927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5928
      try {
5929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5930
      } catch (org.apache.thrift.TException te) {
5931
        throw new java.io.IOException(te);
5932
      }
5933
    }
5934
 
5935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5936
      try {
5937
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5938
        __isset_bit_vector = new BitSet(1);
5939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5940
      } catch (org.apache.thrift.TException te) {
5941
        throw new java.io.IOException(te);
5942
      }
5943
    }
5944
 
123 ashish 5945
  }
5946
 
3430 rajveer 5947
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
5948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
123 ashish 5949
 
3430 rajveer 5950
    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);
5951
    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 5952
 
3430 rajveer 5953
    private PaymentGateway success; // required
5954
    private PaymentException pe; // required
123 ashish 5955
 
5956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 5958
      SUCCESS((short)0, "success"),
5959
      PE((short)1, "pe");
5960
 
5961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5962
 
5963
      static {
5964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5965
          byName.put(field.getFieldName(), field);
5966
        }
5967
      }
5968
 
5969
      /**
5970
       * Find the _Fields constant that matches fieldId, or null if its not found.
5971
       */
5972
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5973
        switch(fieldId) {
5974
          case 0: // SUCCESS
5975
            return SUCCESS;
5976
          case 1: // PE
5977
            return PE;
5978
          default:
5979
            return null;
5980
        }
420 ashish 5981
      }
5982
 
5983
      /**
5984
       * Find the _Fields constant that matches fieldId, throwing an exception
5985
       * if it is not found.
5986
       */
5987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5988
        _Fields fields = findByThriftId(fieldId);
5989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5990
        return fields;
5991
      }
5992
 
5993
      /**
5994
       * Find the _Fields constant that matches name, or null if its not found.
5995
       */
5996
      public static _Fields findByName(String name) {
5997
        return byName.get(name);
5998
      }
5999
 
6000
      private final short _thriftId;
6001
      private final String _fieldName;
6002
 
6003
      _Fields(short thriftId, String fieldName) {
6004
        _thriftId = thriftId;
6005
        _fieldName = fieldName;
6006
      }
6007
 
6008
      public short getThriftFieldId() {
6009
        return _thriftId;
6010
      }
6011
 
6012
      public String getFieldName() {
6013
        return _fieldName;
6014
      }
6015
    }
6016
 
6017
    // isset id assignments
6018
 
3430 rajveer 6019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 6020
    static {
3430 rajveer 6021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6022
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6023
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
6024
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
420 ashish 6028
    }
6029
 
695 rajveer 6030
    public getPaymentGateway_result() {
420 ashish 6031
    }
6032
 
695 rajveer 6033
    public getPaymentGateway_result(
6034
      PaymentGateway success,
420 ashish 6035
      PaymentException pe)
6036
    {
6037
      this();
6038
      this.success = success;
6039
      this.pe = pe;
6040
    }
6041
 
6042
    /**
6043
     * Performs a deep copy on <i>other</i>.
6044
     */
695 rajveer 6045
    public getPaymentGateway_result(getPaymentGateway_result other) {
420 ashish 6046
      if (other.isSetSuccess()) {
695 rajveer 6047
        this.success = new PaymentGateway(other.success);
420 ashish 6048
      }
6049
      if (other.isSetPe()) {
6050
        this.pe = new PaymentException(other.pe);
6051
      }
6052
    }
6053
 
695 rajveer 6054
    public getPaymentGateway_result deepCopy() {
6055
      return new getPaymentGateway_result(this);
420 ashish 6056
    }
6057
 
3430 rajveer 6058
    @Override
6059
    public void clear() {
6060
      this.success = null;
6061
      this.pe = null;
420 ashish 6062
    }
6063
 
695 rajveer 6064
    public PaymentGateway getSuccess() {
420 ashish 6065
      return this.success;
6066
    }
6067
 
3430 rajveer 6068
    public void setSuccess(PaymentGateway success) {
420 ashish 6069
      this.success = success;
6070
    }
6071
 
6072
    public void unsetSuccess() {
6073
      this.success = null;
6074
    }
6075
 
3430 rajveer 6076
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 6077
    public boolean isSetSuccess() {
6078
      return this.success != null;
6079
    }
6080
 
6081
    public void setSuccessIsSet(boolean value) {
6082
      if (!value) {
6083
        this.success = null;
6084
      }
6085
    }
6086
 
6087
    public PaymentException getPe() {
6088
      return this.pe;
6089
    }
6090
 
3430 rajveer 6091
    public void setPe(PaymentException pe) {
420 ashish 6092
      this.pe = pe;
6093
    }
6094
 
6095
    public void unsetPe() {
6096
      this.pe = null;
6097
    }
6098
 
3430 rajveer 6099
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 6100
    public boolean isSetPe() {
6101
      return this.pe != null;
6102
    }
6103
 
6104
    public void setPeIsSet(boolean value) {
6105
      if (!value) {
6106
        this.pe = null;
6107
      }
6108
    }
6109
 
6110
    public void setFieldValue(_Fields field, Object value) {
6111
      switch (field) {
6112
      case SUCCESS:
6113
        if (value == null) {
6114
          unsetSuccess();
6115
        } else {
695 rajveer 6116
          setSuccess((PaymentGateway)value);
420 ashish 6117
        }
6118
        break;
6119
 
6120
      case PE:
6121
        if (value == null) {
6122
          unsetPe();
6123
        } else {
6124
          setPe((PaymentException)value);
6125
        }
6126
        break;
6127
 
6128
      }
6129
    }
6130
 
6131
    public Object getFieldValue(_Fields field) {
6132
      switch (field) {
6133
      case SUCCESS:
6134
        return getSuccess();
6135
 
6136
      case PE:
6137
        return getPe();
6138
 
6139
      }
6140
      throw new IllegalStateException();
6141
    }
6142
 
3430 rajveer 6143
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6144
    public boolean isSet(_Fields field) {
6145
      if (field == null) {
6146
        throw new IllegalArgumentException();
6147
      }
420 ashish 6148
 
6149
      switch (field) {
6150
      case SUCCESS:
6151
        return isSetSuccess();
6152
      case PE:
6153
        return isSetPe();
6154
      }
6155
      throw new IllegalStateException();
6156
    }
6157
 
6158
    @Override
6159
    public boolean equals(Object that) {
6160
      if (that == null)
6161
        return false;
695 rajveer 6162
      if (that instanceof getPaymentGateway_result)
6163
        return this.equals((getPaymentGateway_result)that);
420 ashish 6164
      return false;
6165
    }
6166
 
695 rajveer 6167
    public boolean equals(getPaymentGateway_result that) {
420 ashish 6168
      if (that == null)
6169
        return false;
6170
 
6171
      boolean this_present_success = true && this.isSetSuccess();
6172
      boolean that_present_success = true && that.isSetSuccess();
6173
      if (this_present_success || that_present_success) {
6174
        if (!(this_present_success && that_present_success))
6175
          return false;
6176
        if (!this.success.equals(that.success))
6177
          return false;
6178
      }
6179
 
6180
      boolean this_present_pe = true && this.isSetPe();
6181
      boolean that_present_pe = true && that.isSetPe();
6182
      if (this_present_pe || that_present_pe) {
6183
        if (!(this_present_pe && that_present_pe))
6184
          return false;
6185
        if (!this.pe.equals(that.pe))
6186
          return false;
6187
      }
6188
 
6189
      return true;
6190
    }
6191
 
6192
    @Override
6193
    public int hashCode() {
6194
      return 0;
6195
    }
6196
 
695 rajveer 6197
    public int compareTo(getPaymentGateway_result other) {
6198
      if (!getClass().equals(other.getClass())) {
6199
        return getClass().getName().compareTo(other.getClass().getName());
6200
      }
6201
 
6202
      int lastComparison = 0;
6203
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
6204
 
3430 rajveer 6205
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 6206
      if (lastComparison != 0) {
6207
        return lastComparison;
6208
      }
3430 rajveer 6209
      if (isSetSuccess()) {
6210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6211
        if (lastComparison != 0) {
6212
          return lastComparison;
6213
        }
695 rajveer 6214
      }
3430 rajveer 6215
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 6216
      if (lastComparison != 0) {
6217
        return lastComparison;
6218
      }
3430 rajveer 6219
      if (isSetPe()) {
6220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6221
        if (lastComparison != 0) {
6222
          return lastComparison;
6223
        }
695 rajveer 6224
      }
6225
      return 0;
6226
    }
6227
 
3430 rajveer 6228
    public _Fields fieldForId(int fieldId) {
6229
      return _Fields.findByThriftId(fieldId);
6230
    }
6231
 
6232
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6233
      org.apache.thrift.protocol.TField field;
420 ashish 6234
      iprot.readStructBegin();
6235
      while (true)
6236
      {
6237
        field = iprot.readFieldBegin();
3430 rajveer 6238
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 6239
          break;
6240
        }
3430 rajveer 6241
        switch (field.id) {
6242
          case 0: // SUCCESS
6243
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6244
              this.success = new PaymentGateway();
6245
              this.success.read(iprot);
6246
            } else { 
6247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6248
            }
6249
            break;
6250
          case 1: // PE
6251
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6252
              this.pe = new PaymentException();
6253
              this.pe.read(iprot);
6254
            } else { 
6255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6256
            }
6257
            break;
6258
          default:
6259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 6260
        }
3430 rajveer 6261
        iprot.readFieldEnd();
420 ashish 6262
      }
6263
      iprot.readStructEnd();
6264
      validate();
6265
    }
6266
 
3430 rajveer 6267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 6268
      oprot.writeStructBegin(STRUCT_DESC);
6269
 
6270
      if (this.isSetSuccess()) {
6271
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 6272
        this.success.write(oprot);
420 ashish 6273
        oprot.writeFieldEnd();
6274
      } else if (this.isSetPe()) {
6275
        oprot.writeFieldBegin(PE_FIELD_DESC);
6276
        this.pe.write(oprot);
6277
        oprot.writeFieldEnd();
6278
      }
6279
      oprot.writeFieldStop();
6280
      oprot.writeStructEnd();
6281
    }
6282
 
6283
    @Override
6284
    public String toString() {
695 rajveer 6285
      StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
420 ashish 6286
      boolean first = true;
6287
 
6288
      sb.append("success:");
6289
      if (this.success == null) {
6290
        sb.append("null");
6291
      } else {
6292
        sb.append(this.success);
6293
      }
6294
      first = false;
6295
      if (!first) sb.append(", ");
6296
      sb.append("pe:");
6297
      if (this.pe == null) {
6298
        sb.append("null");
6299
      } else {
6300
        sb.append(this.pe);
6301
      }
6302
      first = false;
6303
      sb.append(")");
6304
      return sb.toString();
6305
    }
6306
 
3430 rajveer 6307
    public void validate() throws org.apache.thrift.TException {
420 ashish 6308
      // check for required fields
6309
    }
6310
 
3430 rajveer 6311
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6312
      try {
6313
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6314
      } catch (org.apache.thrift.TException te) {
6315
        throw new java.io.IOException(te);
6316
      }
6317
    }
6318
 
6319
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6320
      try {
6321
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6322
      } catch (org.apache.thrift.TException te) {
6323
        throw new java.io.IOException(te);
6324
      }
6325
    }
6326
 
420 ashish 6327
  }
6328
 
4600 varun.gupt 6329
  public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable   {
6330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
6331
 
6332
 
6333
 
6334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6336
;
6337
 
6338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6339
 
6340
      static {
6341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6342
          byName.put(field.getFieldName(), field);
6343
        }
6344
      }
6345
 
6346
      /**
6347
       * Find the _Fields constant that matches fieldId, or null if its not found.
6348
       */
6349
      public static _Fields findByThriftId(int fieldId) {
6350
        switch(fieldId) {
6351
          default:
6352
            return null;
6353
        }
6354
      }
6355
 
6356
      /**
6357
       * Find the _Fields constant that matches fieldId, throwing an exception
6358
       * if it is not found.
6359
       */
6360
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6361
        _Fields fields = findByThriftId(fieldId);
6362
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6363
        return fields;
6364
      }
6365
 
6366
      /**
6367
       * Find the _Fields constant that matches name, or null if its not found.
6368
       */
6369
      public static _Fields findByName(String name) {
6370
        return byName.get(name);
6371
      }
6372
 
6373
      private final short _thriftId;
6374
      private final String _fieldName;
6375
 
6376
      _Fields(short thriftId, String fieldName) {
6377
        _thriftId = thriftId;
6378
        _fieldName = fieldName;
6379
      }
6380
 
6381
      public short getThriftFieldId() {
6382
        return _thriftId;
6383
      }
6384
 
6385
      public String getFieldName() {
6386
        return _fieldName;
6387
      }
6388
    }
6389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6390
    static {
6391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6392
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6393
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
6394
    }
6395
 
6396
    public getActivePaymentGateways_args() {
6397
    }
6398
 
6399
    /**
6400
     * Performs a deep copy on <i>other</i>.
6401
     */
6402
    public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
6403
    }
6404
 
6405
    public getActivePaymentGateways_args deepCopy() {
6406
      return new getActivePaymentGateways_args(this);
6407
    }
6408
 
6409
    @Override
6410
    public void clear() {
6411
    }
6412
 
6413
    public void setFieldValue(_Fields field, Object value) {
6414
      switch (field) {
6415
      }
6416
    }
6417
 
6418
    public Object getFieldValue(_Fields field) {
6419
      switch (field) {
6420
      }
6421
      throw new IllegalStateException();
6422
    }
6423
 
6424
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6425
    public boolean isSet(_Fields field) {
6426
      if (field == null) {
6427
        throw new IllegalArgumentException();
6428
      }
6429
 
6430
      switch (field) {
6431
      }
6432
      throw new IllegalStateException();
6433
    }
6434
 
6435
    @Override
6436
    public boolean equals(Object that) {
6437
      if (that == null)
6438
        return false;
6439
      if (that instanceof getActivePaymentGateways_args)
6440
        return this.equals((getActivePaymentGateways_args)that);
6441
      return false;
6442
    }
6443
 
6444
    public boolean equals(getActivePaymentGateways_args that) {
6445
      if (that == null)
6446
        return false;
6447
 
6448
      return true;
6449
    }
6450
 
6451
    @Override
6452
    public int hashCode() {
6453
      return 0;
6454
    }
6455
 
6456
    public int compareTo(getActivePaymentGateways_args other) {
6457
      if (!getClass().equals(other.getClass())) {
6458
        return getClass().getName().compareTo(other.getClass().getName());
6459
      }
6460
 
6461
      int lastComparison = 0;
6462
      getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
6463
 
6464
      return 0;
6465
    }
6466
 
6467
    public _Fields fieldForId(int fieldId) {
6468
      return _Fields.findByThriftId(fieldId);
6469
    }
6470
 
6471
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6472
      org.apache.thrift.protocol.TField field;
6473
      iprot.readStructBegin();
6474
      while (true)
6475
      {
6476
        field = iprot.readFieldBegin();
6477
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6478
          break;
6479
        }
6480
        switch (field.id) {
6481
          default:
6482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6483
        }
6484
        iprot.readFieldEnd();
6485
      }
6486
      iprot.readStructEnd();
6487
      validate();
6488
    }
6489
 
6490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6491
      validate();
6492
 
6493
      oprot.writeStructBegin(STRUCT_DESC);
6494
      oprot.writeFieldStop();
6495
      oprot.writeStructEnd();
6496
    }
6497
 
6498
    @Override
6499
    public String toString() {
6500
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
6501
      boolean first = true;
6502
 
6503
      sb.append(")");
6504
      return sb.toString();
6505
    }
6506
 
6507
    public void validate() throws org.apache.thrift.TException {
6508
      // check for required fields
6509
    }
6510
 
6511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6512
      try {
6513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6514
      } catch (org.apache.thrift.TException te) {
6515
        throw new java.io.IOException(te);
6516
      }
6517
    }
6518
 
6519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6520
      try {
6521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6522
      } catch (org.apache.thrift.TException te) {
6523
        throw new java.io.IOException(te);
6524
      }
6525
    }
6526
 
6527
  }
6528
 
6529
  public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable   {
6530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
6531
 
6532
    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);
6533
    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);
6534
 
6535
    private List<PaymentGateway> success; // required
6536
    private PaymentException pe; // required
6537
 
6538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6540
      SUCCESS((short)0, "success"),
6541
      PE((short)1, "pe");
6542
 
6543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6544
 
6545
      static {
6546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6547
          byName.put(field.getFieldName(), field);
6548
        }
6549
      }
6550
 
6551
      /**
6552
       * Find the _Fields constant that matches fieldId, or null if its not found.
6553
       */
6554
      public static _Fields findByThriftId(int fieldId) {
6555
        switch(fieldId) {
6556
          case 0: // SUCCESS
6557
            return SUCCESS;
6558
          case 1: // PE
6559
            return PE;
6560
          default:
6561
            return null;
6562
        }
6563
      }
6564
 
6565
      /**
6566
       * Find the _Fields constant that matches fieldId, throwing an exception
6567
       * if it is not found.
6568
       */
6569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6570
        _Fields fields = findByThriftId(fieldId);
6571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6572
        return fields;
6573
      }
6574
 
6575
      /**
6576
       * Find the _Fields constant that matches name, or null if its not found.
6577
       */
6578
      public static _Fields findByName(String name) {
6579
        return byName.get(name);
6580
      }
6581
 
6582
      private final short _thriftId;
6583
      private final String _fieldName;
6584
 
6585
      _Fields(short thriftId, String fieldName) {
6586
        _thriftId = thriftId;
6587
        _fieldName = fieldName;
6588
      }
6589
 
6590
      public short getThriftFieldId() {
6591
        return _thriftId;
6592
      }
6593
 
6594
      public String getFieldName() {
6595
        return _fieldName;
6596
      }
6597
    }
6598
 
6599
    // isset id assignments
6600
 
6601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6602
    static {
6603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6604
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6605
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6606
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
6607
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
6611
    }
6612
 
6613
    public getActivePaymentGateways_result() {
6614
    }
6615
 
6616
    public getActivePaymentGateways_result(
6617
      List<PaymentGateway> success,
6618
      PaymentException pe)
6619
    {
6620
      this();
6621
      this.success = success;
6622
      this.pe = pe;
6623
    }
6624
 
6625
    /**
6626
     * Performs a deep copy on <i>other</i>.
6627
     */
6628
    public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
6629
      if (other.isSetSuccess()) {
6630
        List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
6631
        for (PaymentGateway other_element : other.success) {
6632
          __this__success.add(new PaymentGateway(other_element));
6633
        }
6634
        this.success = __this__success;
6635
      }
6636
      if (other.isSetPe()) {
6637
        this.pe = new PaymentException(other.pe);
6638
      }
6639
    }
6640
 
6641
    public getActivePaymentGateways_result deepCopy() {
6642
      return new getActivePaymentGateways_result(this);
6643
    }
6644
 
6645
    @Override
6646
    public void clear() {
6647
      this.success = null;
6648
      this.pe = null;
6649
    }
6650
 
6651
    public int getSuccessSize() {
6652
      return (this.success == null) ? 0 : this.success.size();
6653
    }
6654
 
6655
    public java.util.Iterator<PaymentGateway> getSuccessIterator() {
6656
      return (this.success == null) ? null : this.success.iterator();
6657
    }
6658
 
6659
    public void addToSuccess(PaymentGateway elem) {
6660
      if (this.success == null) {
6661
        this.success = new ArrayList<PaymentGateway>();
6662
      }
6663
      this.success.add(elem);
6664
    }
6665
 
6666
    public List<PaymentGateway> getSuccess() {
6667
      return this.success;
6668
    }
6669
 
6670
    public void setSuccess(List<PaymentGateway> success) {
6671
      this.success = success;
6672
    }
6673
 
6674
    public void unsetSuccess() {
6675
      this.success = null;
6676
    }
6677
 
6678
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6679
    public boolean isSetSuccess() {
6680
      return this.success != null;
6681
    }
6682
 
6683
    public void setSuccessIsSet(boolean value) {
6684
      if (!value) {
6685
        this.success = null;
6686
      }
6687
    }
6688
 
6689
    public PaymentException getPe() {
6690
      return this.pe;
6691
    }
6692
 
6693
    public void setPe(PaymentException pe) {
6694
      this.pe = pe;
6695
    }
6696
 
6697
    public void unsetPe() {
6698
      this.pe = null;
6699
    }
6700
 
6701
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
6702
    public boolean isSetPe() {
6703
      return this.pe != null;
6704
    }
6705
 
6706
    public void setPeIsSet(boolean value) {
6707
      if (!value) {
6708
        this.pe = null;
6709
      }
6710
    }
6711
 
6712
    public void setFieldValue(_Fields field, Object value) {
6713
      switch (field) {
6714
      case SUCCESS:
6715
        if (value == null) {
6716
          unsetSuccess();
6717
        } else {
6718
          setSuccess((List<PaymentGateway>)value);
6719
        }
6720
        break;
6721
 
6722
      case PE:
6723
        if (value == null) {
6724
          unsetPe();
6725
        } else {
6726
          setPe((PaymentException)value);
6727
        }
6728
        break;
6729
 
6730
      }
6731
    }
6732
 
6733
    public Object getFieldValue(_Fields field) {
6734
      switch (field) {
6735
      case SUCCESS:
6736
        return getSuccess();
6737
 
6738
      case PE:
6739
        return getPe();
6740
 
6741
      }
6742
      throw new IllegalStateException();
6743
    }
6744
 
6745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6746
    public boolean isSet(_Fields field) {
6747
      if (field == null) {
6748
        throw new IllegalArgumentException();
6749
      }
6750
 
6751
      switch (field) {
6752
      case SUCCESS:
6753
        return isSetSuccess();
6754
      case PE:
6755
        return isSetPe();
6756
      }
6757
      throw new IllegalStateException();
6758
    }
6759
 
6760
    @Override
6761
    public boolean equals(Object that) {
6762
      if (that == null)
6763
        return false;
6764
      if (that instanceof getActivePaymentGateways_result)
6765
        return this.equals((getActivePaymentGateways_result)that);
6766
      return false;
6767
    }
6768
 
6769
    public boolean equals(getActivePaymentGateways_result that) {
6770
      if (that == null)
6771
        return false;
6772
 
6773
      boolean this_present_success = true && this.isSetSuccess();
6774
      boolean that_present_success = true && that.isSetSuccess();
6775
      if (this_present_success || that_present_success) {
6776
        if (!(this_present_success && that_present_success))
6777
          return false;
6778
        if (!this.success.equals(that.success))
6779
          return false;
6780
      }
6781
 
6782
      boolean this_present_pe = true && this.isSetPe();
6783
      boolean that_present_pe = true && that.isSetPe();
6784
      if (this_present_pe || that_present_pe) {
6785
        if (!(this_present_pe && that_present_pe))
6786
          return false;
6787
        if (!this.pe.equals(that.pe))
6788
          return false;
6789
      }
6790
 
6791
      return true;
6792
    }
6793
 
6794
    @Override
6795
    public int hashCode() {
6796
      return 0;
6797
    }
6798
 
6799
    public int compareTo(getActivePaymentGateways_result other) {
6800
      if (!getClass().equals(other.getClass())) {
6801
        return getClass().getName().compareTo(other.getClass().getName());
6802
      }
6803
 
6804
      int lastComparison = 0;
6805
      getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
6806
 
6807
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6808
      if (lastComparison != 0) {
6809
        return lastComparison;
6810
      }
6811
      if (isSetSuccess()) {
6812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6813
        if (lastComparison != 0) {
6814
          return lastComparison;
6815
        }
6816
      }
6817
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
6818
      if (lastComparison != 0) {
6819
        return lastComparison;
6820
      }
6821
      if (isSetPe()) {
6822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6823
        if (lastComparison != 0) {
6824
          return lastComparison;
6825
        }
6826
      }
6827
      return 0;
6828
    }
6829
 
6830
    public _Fields fieldForId(int fieldId) {
6831
      return _Fields.findByThriftId(fieldId);
6832
    }
6833
 
6834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6835
      org.apache.thrift.protocol.TField field;
6836
      iprot.readStructBegin();
6837
      while (true)
6838
      {
6839
        field = iprot.readFieldBegin();
6840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6841
          break;
6842
        }
6843
        switch (field.id) {
6844
          case 0: // SUCCESS
6845
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6846
              {
6847
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6848
                this.success = new ArrayList<PaymentGateway>(_list24.size);
6849
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
6850
                {
6851
                  PaymentGateway _elem26; // required
6852
                  _elem26 = new PaymentGateway();
6853
                  _elem26.read(iprot);
6854
                  this.success.add(_elem26);
6855
                }
6856
                iprot.readListEnd();
6857
              }
6858
            } else { 
6859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6860
            }
6861
            break;
6862
          case 1: // PE
6863
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6864
              this.pe = new PaymentException();
6865
              this.pe.read(iprot);
6866
            } else { 
6867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6868
            }
6869
            break;
6870
          default:
6871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6872
        }
6873
        iprot.readFieldEnd();
6874
      }
6875
      iprot.readStructEnd();
6876
      validate();
6877
    }
6878
 
6879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6880
      oprot.writeStructBegin(STRUCT_DESC);
6881
 
6882
      if (this.isSetSuccess()) {
6883
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6884
        {
6885
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6886
          for (PaymentGateway _iter27 : this.success)
6887
          {
6888
            _iter27.write(oprot);
6889
          }
6890
          oprot.writeListEnd();
6891
        }
6892
        oprot.writeFieldEnd();
6893
      } else if (this.isSetPe()) {
6894
        oprot.writeFieldBegin(PE_FIELD_DESC);
6895
        this.pe.write(oprot);
6896
        oprot.writeFieldEnd();
6897
      }
6898
      oprot.writeFieldStop();
6899
      oprot.writeStructEnd();
6900
    }
6901
 
6902
    @Override
6903
    public String toString() {
6904
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
6905
      boolean first = true;
6906
 
6907
      sb.append("success:");
6908
      if (this.success == null) {
6909
        sb.append("null");
6910
      } else {
6911
        sb.append(this.success);
6912
      }
6913
      first = false;
6914
      if (!first) sb.append(", ");
6915
      sb.append("pe:");
6916
      if (this.pe == null) {
6917
        sb.append("null");
6918
      } else {
6919
        sb.append(this.pe);
6920
      }
6921
      first = false;
6922
      sb.append(")");
6923
      return sb.toString();
6924
    }
6925
 
6926
    public void validate() throws org.apache.thrift.TException {
6927
      // check for required fields
6928
    }
6929
 
6930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6931
      try {
6932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6933
      } catch (org.apache.thrift.TException te) {
6934
        throw new java.io.IOException(te);
6935
      }
6936
    }
6937
 
6938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6939
      try {
6940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6941
      } catch (org.apache.thrift.TException te) {
6942
        throw new java.io.IOException(te);
6943
      }
6944
    }
6945
 
6946
  }
6947
 
3430 rajveer 6948
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
6949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
420 ashish 6950
 
3430 rajveer 6951
    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 6952
 
3430 rajveer 6953
    private long id; // required
420 ashish 6954
 
6955
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6956
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 6957
      ID((short)1, "id");
6958
 
6959
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6960
 
6961
      static {
6962
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6963
          byName.put(field.getFieldName(), field);
6964
        }
6965
      }
6966
 
6967
      /**
6968
       * Find the _Fields constant that matches fieldId, or null if its not found.
6969
       */
6970
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6971
        switch(fieldId) {
6972
          case 1: // ID
6973
            return ID;
6974
          default:
6975
            return null;
6976
        }
420 ashish 6977
      }
6978
 
6979
      /**
6980
       * Find the _Fields constant that matches fieldId, throwing an exception
6981
       * if it is not found.
6982
       */
6983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6984
        _Fields fields = findByThriftId(fieldId);
6985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6986
        return fields;
6987
      }
6988
 
6989
      /**
6990
       * Find the _Fields constant that matches name, or null if its not found.
6991
       */
6992
      public static _Fields findByName(String name) {
6993
        return byName.get(name);
6994
      }
6995
 
6996
      private final short _thriftId;
6997
      private final String _fieldName;
6998
 
6999
      _Fields(short thriftId, String fieldName) {
7000
        _thriftId = thriftId;
7001
        _fieldName = fieldName;
7002
      }
7003
 
7004
      public short getThriftFieldId() {
7005
        return _thriftId;
7006
      }
7007
 
7008
      public String getFieldName() {
7009
        return _fieldName;
7010
      }
7011
    }
7012
 
7013
    // isset id assignments
7014
    private static final int __ID_ISSET_ID = 0;
7015
    private BitSet __isset_bit_vector = new BitSet(1);
7016
 
3430 rajveer 7017
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7018
    static {
3430 rajveer 7019
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7020
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
420 ashish 7024
    }
7025
 
695 rajveer 7026
    public getPayment_args() {
420 ashish 7027
    }
7028
 
695 rajveer 7029
    public getPayment_args(
420 ashish 7030
      long id)
7031
    {
7032
      this();
7033
      this.id = id;
7034
      setIdIsSet(true);
7035
    }
7036
 
7037
    /**
7038
     * Performs a deep copy on <i>other</i>.
7039
     */
695 rajveer 7040
    public getPayment_args(getPayment_args other) {
420 ashish 7041
      __isset_bit_vector.clear();
7042
      __isset_bit_vector.or(other.__isset_bit_vector);
7043
      this.id = other.id;
7044
    }
7045
 
695 rajveer 7046
    public getPayment_args deepCopy() {
7047
      return new getPayment_args(this);
420 ashish 7048
    }
7049
 
3430 rajveer 7050
    @Override
7051
    public void clear() {
7052
      setIdIsSet(false);
7053
      this.id = 0;
420 ashish 7054
    }
7055
 
7056
    public long getId() {
7057
      return this.id;
7058
    }
7059
 
3430 rajveer 7060
    public void setId(long id) {
420 ashish 7061
      this.id = id;
7062
      setIdIsSet(true);
7063
    }
7064
 
7065
    public void unsetId() {
7066
      __isset_bit_vector.clear(__ID_ISSET_ID);
7067
    }
7068
 
3430 rajveer 7069
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 7070
    public boolean isSetId() {
7071
      return __isset_bit_vector.get(__ID_ISSET_ID);
7072
    }
7073
 
7074
    public void setIdIsSet(boolean value) {
7075
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7076
    }
7077
 
7078
    public void setFieldValue(_Fields field, Object value) {
7079
      switch (field) {
7080
      case ID:
7081
        if (value == null) {
7082
          unsetId();
7083
        } else {
7084
          setId((Long)value);
7085
        }
7086
        break;
7087
 
7088
      }
7089
    }
7090
 
7091
    public Object getFieldValue(_Fields field) {
7092
      switch (field) {
7093
      case ID:
3430 rajveer 7094
        return Long.valueOf(getId());
420 ashish 7095
 
7096
      }
7097
      throw new IllegalStateException();
7098
    }
7099
 
3430 rajveer 7100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7101
    public boolean isSet(_Fields field) {
7102
      if (field == null) {
7103
        throw new IllegalArgumentException();
7104
      }
420 ashish 7105
 
7106
      switch (field) {
7107
      case ID:
7108
        return isSetId();
7109
      }
7110
      throw new IllegalStateException();
7111
    }
7112
 
7113
    @Override
7114
    public boolean equals(Object that) {
7115
      if (that == null)
7116
        return false;
695 rajveer 7117
      if (that instanceof getPayment_args)
7118
        return this.equals((getPayment_args)that);
420 ashish 7119
      return false;
7120
    }
7121
 
695 rajveer 7122
    public boolean equals(getPayment_args that) {
420 ashish 7123
      if (that == null)
7124
        return false;
7125
 
7126
      boolean this_present_id = true;
7127
      boolean that_present_id = true;
7128
      if (this_present_id || that_present_id) {
7129
        if (!(this_present_id && that_present_id))
7130
          return false;
7131
        if (this.id != that.id)
7132
          return false;
7133
      }
7134
 
7135
      return true;
7136
    }
7137
 
7138
    @Override
7139
    public int hashCode() {
7140
      return 0;
7141
    }
7142
 
695 rajveer 7143
    public int compareTo(getPayment_args other) {
420 ashish 7144
      if (!getClass().equals(other.getClass())) {
7145
        return getClass().getName().compareTo(other.getClass().getName());
7146
      }
7147
 
7148
      int lastComparison = 0;
695 rajveer 7149
      getPayment_args typedOther = (getPayment_args)other;
420 ashish 7150
 
3430 rajveer 7151
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 7152
      if (lastComparison != 0) {
7153
        return lastComparison;
7154
      }
3430 rajveer 7155
      if (isSetId()) {
7156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7157
        if (lastComparison != 0) {
7158
          return lastComparison;
7159
        }
420 ashish 7160
      }
7161
      return 0;
7162
    }
7163
 
3430 rajveer 7164
    public _Fields fieldForId(int fieldId) {
7165
      return _Fields.findByThriftId(fieldId);
7166
    }
7167
 
7168
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7169
      org.apache.thrift.protocol.TField field;
420 ashish 7170
      iprot.readStructBegin();
7171
      while (true)
7172
      {
7173
        field = iprot.readFieldBegin();
3430 rajveer 7174
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7175
          break;
7176
        }
3430 rajveer 7177
        switch (field.id) {
7178
          case 1: // ID
7179
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7180
              this.id = iprot.readI64();
7181
              setIdIsSet(true);
7182
            } else { 
7183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7184
            }
7185
            break;
7186
          default:
7187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7188
        }
3430 rajveer 7189
        iprot.readFieldEnd();
420 ashish 7190
      }
7191
      iprot.readStructEnd();
7192
      validate();
7193
    }
7194
 
3430 rajveer 7195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7196
      validate();
7197
 
7198
      oprot.writeStructBegin(STRUCT_DESC);
7199
      oprot.writeFieldBegin(ID_FIELD_DESC);
7200
      oprot.writeI64(this.id);
7201
      oprot.writeFieldEnd();
7202
      oprot.writeFieldStop();
7203
      oprot.writeStructEnd();
7204
    }
7205
 
7206
    @Override
7207
    public String toString() {
695 rajveer 7208
      StringBuilder sb = new StringBuilder("getPayment_args(");
420 ashish 7209
      boolean first = true;
7210
 
7211
      sb.append("id:");
7212
      sb.append(this.id);
7213
      first = false;
7214
      sb.append(")");
7215
      return sb.toString();
7216
    }
7217
 
3430 rajveer 7218
    public void validate() throws org.apache.thrift.TException {
420 ashish 7219
      // check for required fields
7220
    }
7221
 
3430 rajveer 7222
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7223
      try {
7224
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7225
      } catch (org.apache.thrift.TException te) {
7226
        throw new java.io.IOException(te);
7227
      }
7228
    }
7229
 
7230
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7231
      try {
7232
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7233
        __isset_bit_vector = new BitSet(1);
7234
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7235
      } catch (org.apache.thrift.TException te) {
7236
        throw new java.io.IOException(te);
7237
      }
7238
    }
7239
 
420 ashish 7240
  }
7241
 
3430 rajveer 7242
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
7243
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
420 ashish 7244
 
3430 rajveer 7245
    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);
7246
    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 7247
 
3430 rajveer 7248
    private Payment success; // required
7249
    private PaymentException pe; // required
420 ashish 7250
 
7251
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7252
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7253
      SUCCESS((short)0, "success"),
7254
      PE((short)1, "pe");
7255
 
7256
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7257
 
7258
      static {
7259
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7260
          byName.put(field.getFieldName(), field);
7261
        }
7262
      }
7263
 
7264
      /**
7265
       * Find the _Fields constant that matches fieldId, or null if its not found.
7266
       */
7267
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7268
        switch(fieldId) {
7269
          case 0: // SUCCESS
7270
            return SUCCESS;
7271
          case 1: // PE
7272
            return PE;
7273
          default:
7274
            return null;
7275
        }
420 ashish 7276
      }
7277
 
7278
      /**
7279
       * Find the _Fields constant that matches fieldId, throwing an exception
7280
       * if it is not found.
7281
       */
7282
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7283
        _Fields fields = findByThriftId(fieldId);
7284
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7285
        return fields;
7286
      }
7287
 
7288
      /**
7289
       * Find the _Fields constant that matches name, or null if its not found.
7290
       */
7291
      public static _Fields findByName(String name) {
7292
        return byName.get(name);
7293
      }
7294
 
7295
      private final short _thriftId;
7296
      private final String _fieldName;
7297
 
7298
      _Fields(short thriftId, String fieldName) {
7299
        _thriftId = thriftId;
7300
        _fieldName = fieldName;
7301
      }
7302
 
7303
      public short getThriftFieldId() {
7304
        return _thriftId;
7305
      }
7306
 
7307
      public String getFieldName() {
7308
        return _fieldName;
7309
      }
7310
    }
7311
 
7312
    // isset id assignments
7313
 
3430 rajveer 7314
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7315
    static {
3430 rajveer 7316
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7317
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7318
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
7319
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7321
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7322
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
420 ashish 7323
    }
7324
 
695 rajveer 7325
    public getPayment_result() {
420 ashish 7326
    }
7327
 
695 rajveer 7328
    public getPayment_result(
7329
      Payment success,
420 ashish 7330
      PaymentException pe)
7331
    {
7332
      this();
7333
      this.success = success;
7334
      this.pe = pe;
7335
    }
7336
 
7337
    /**
7338
     * Performs a deep copy on <i>other</i>.
7339
     */
695 rajveer 7340
    public getPayment_result(getPayment_result other) {
420 ashish 7341
      if (other.isSetSuccess()) {
695 rajveer 7342
        this.success = new Payment(other.success);
420 ashish 7343
      }
7344
      if (other.isSetPe()) {
7345
        this.pe = new PaymentException(other.pe);
7346
      }
7347
    }
7348
 
695 rajveer 7349
    public getPayment_result deepCopy() {
7350
      return new getPayment_result(this);
420 ashish 7351
    }
7352
 
3430 rajveer 7353
    @Override
7354
    public void clear() {
7355
      this.success = null;
7356
      this.pe = null;
420 ashish 7357
    }
7358
 
695 rajveer 7359
    public Payment getSuccess() {
420 ashish 7360
      return this.success;
7361
    }
7362
 
3430 rajveer 7363
    public void setSuccess(Payment success) {
420 ashish 7364
      this.success = success;
7365
    }
7366
 
7367
    public void unsetSuccess() {
7368
      this.success = null;
7369
    }
7370
 
3430 rajveer 7371
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 7372
    public boolean isSetSuccess() {
7373
      return this.success != null;
7374
    }
7375
 
7376
    public void setSuccessIsSet(boolean value) {
7377
      if (!value) {
7378
        this.success = null;
7379
      }
7380
    }
7381
 
7382
    public PaymentException getPe() {
7383
      return this.pe;
7384
    }
7385
 
3430 rajveer 7386
    public void setPe(PaymentException pe) {
420 ashish 7387
      this.pe = pe;
7388
    }
7389
 
7390
    public void unsetPe() {
7391
      this.pe = null;
7392
    }
7393
 
3430 rajveer 7394
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 7395
    public boolean isSetPe() {
7396
      return this.pe != null;
7397
    }
7398
 
7399
    public void setPeIsSet(boolean value) {
7400
      if (!value) {
7401
        this.pe = null;
7402
      }
7403
    }
7404
 
7405
    public void setFieldValue(_Fields field, Object value) {
7406
      switch (field) {
7407
      case SUCCESS:
7408
        if (value == null) {
7409
          unsetSuccess();
7410
        } else {
695 rajveer 7411
          setSuccess((Payment)value);
420 ashish 7412
        }
7413
        break;
7414
 
7415
      case PE:
7416
        if (value == null) {
7417
          unsetPe();
7418
        } else {
7419
          setPe((PaymentException)value);
7420
        }
7421
        break;
7422
 
7423
      }
7424
    }
7425
 
7426
    public Object getFieldValue(_Fields field) {
7427
      switch (field) {
7428
      case SUCCESS:
7429
        return getSuccess();
7430
 
7431
      case PE:
7432
        return getPe();
7433
 
7434
      }
7435
      throw new IllegalStateException();
7436
    }
7437
 
3430 rajveer 7438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7439
    public boolean isSet(_Fields field) {
7440
      if (field == null) {
7441
        throw new IllegalArgumentException();
7442
      }
420 ashish 7443
 
7444
      switch (field) {
7445
      case SUCCESS:
7446
        return isSetSuccess();
7447
      case PE:
7448
        return isSetPe();
7449
      }
7450
      throw new IllegalStateException();
7451
    }
7452
 
7453
    @Override
7454
    public boolean equals(Object that) {
7455
      if (that == null)
7456
        return false;
695 rajveer 7457
      if (that instanceof getPayment_result)
7458
        return this.equals((getPayment_result)that);
420 ashish 7459
      return false;
7460
    }
7461
 
695 rajveer 7462
    public boolean equals(getPayment_result that) {
420 ashish 7463
      if (that == null)
7464
        return false;
7465
 
7466
      boolean this_present_success = true && this.isSetSuccess();
7467
      boolean that_present_success = true && that.isSetSuccess();
7468
      if (this_present_success || that_present_success) {
7469
        if (!(this_present_success && that_present_success))
7470
          return false;
7471
        if (!this.success.equals(that.success))
7472
          return false;
7473
      }
7474
 
7475
      boolean this_present_pe = true && this.isSetPe();
7476
      boolean that_present_pe = true && that.isSetPe();
7477
      if (this_present_pe || that_present_pe) {
7478
        if (!(this_present_pe && that_present_pe))
7479
          return false;
7480
        if (!this.pe.equals(that.pe))
7481
          return false;
7482
      }
7483
 
7484
      return true;
7485
    }
7486
 
7487
    @Override
7488
    public int hashCode() {
7489
      return 0;
7490
    }
7491
 
695 rajveer 7492
    public int compareTo(getPayment_result other) {
420 ashish 7493
      if (!getClass().equals(other.getClass())) {
7494
        return getClass().getName().compareTo(other.getClass().getName());
7495
      }
7496
 
7497
      int lastComparison = 0;
695 rajveer 7498
      getPayment_result typedOther = (getPayment_result)other;
420 ashish 7499
 
3430 rajveer 7500
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 7501
      if (lastComparison != 0) {
7502
        return lastComparison;
7503
      }
3430 rajveer 7504
      if (isSetSuccess()) {
7505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7506
        if (lastComparison != 0) {
7507
          return lastComparison;
7508
        }
420 ashish 7509
      }
3430 rajveer 7510
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 7511
      if (lastComparison != 0) {
7512
        return lastComparison;
7513
      }
3430 rajveer 7514
      if (isSetPe()) {
7515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7516
        if (lastComparison != 0) {
7517
          return lastComparison;
7518
        }
420 ashish 7519
      }
7520
      return 0;
7521
    }
7522
 
3430 rajveer 7523
    public _Fields fieldForId(int fieldId) {
7524
      return _Fields.findByThriftId(fieldId);
7525
    }
7526
 
7527
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7528
      org.apache.thrift.protocol.TField field;
420 ashish 7529
      iprot.readStructBegin();
7530
      while (true)
7531
      {
7532
        field = iprot.readFieldBegin();
3430 rajveer 7533
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7534
          break;
7535
        }
3430 rajveer 7536
        switch (field.id) {
7537
          case 0: // SUCCESS
7538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7539
              this.success = new Payment();
7540
              this.success.read(iprot);
7541
            } else { 
7542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7543
            }
7544
            break;
7545
          case 1: // PE
7546
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7547
              this.pe = new PaymentException();
7548
              this.pe.read(iprot);
7549
            } else { 
7550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7551
            }
7552
            break;
7553
          default:
7554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7555
        }
3430 rajveer 7556
        iprot.readFieldEnd();
420 ashish 7557
      }
7558
      iprot.readStructEnd();
7559
      validate();
7560
    }
7561
 
3430 rajveer 7562
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7563
      oprot.writeStructBegin(STRUCT_DESC);
7564
 
695 rajveer 7565
      if (this.isSetSuccess()) {
7566
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7567
        this.success.write(oprot);
7568
        oprot.writeFieldEnd();
7569
      } else if (this.isSetPe()) {
420 ashish 7570
        oprot.writeFieldBegin(PE_FIELD_DESC);
7571
        this.pe.write(oprot);
7572
        oprot.writeFieldEnd();
7573
      }
7574
      oprot.writeFieldStop();
7575
      oprot.writeStructEnd();
7576
    }
7577
 
7578
    @Override
7579
    public String toString() {
695 rajveer 7580
      StringBuilder sb = new StringBuilder("getPayment_result(");
420 ashish 7581
      boolean first = true;
7582
 
695 rajveer 7583
      sb.append("success:");
7584
      if (this.success == null) {
7585
        sb.append("null");
7586
      } else {
7587
        sb.append(this.success);
7588
      }
7589
      first = false;
7590
      if (!first) sb.append(", ");
420 ashish 7591
      sb.append("pe:");
7592
      if (this.pe == null) {
7593
        sb.append("null");
7594
      } else {
7595
        sb.append(this.pe);
7596
      }
7597
      first = false;
7598
      sb.append(")");
7599
      return sb.toString();
7600
    }
7601
 
3430 rajveer 7602
    public void validate() throws org.apache.thrift.TException {
420 ashish 7603
      // check for required fields
7604
    }
7605
 
3430 rajveer 7606
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7607
      try {
7608
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7609
      } catch (org.apache.thrift.TException te) {
7610
        throw new java.io.IOException(te);
7611
      }
7612
    }
7613
 
7614
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7615
      try {
7616
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7617
      } catch (org.apache.thrift.TException te) {
7618
        throw new java.io.IOException(te);
7619
      }
7620
    }
7621
 
420 ashish 7622
  }
7623
 
3430 rajveer 7624
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
7625
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
420 ashish 7626
 
3430 rajveer 7627
    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 7628
 
3430 rajveer 7629
    private long txnId; // required
420 ashish 7630
 
7631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 7633
      TXN_ID((short)1, "txnId");
420 ashish 7634
 
7635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7636
 
7637
      static {
7638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7639
          byName.put(field.getFieldName(), field);
7640
        }
7641
      }
7642
 
7643
      /**
7644
       * Find the _Fields constant that matches fieldId, or null if its not found.
7645
       */
7646
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7647
        switch(fieldId) {
7648
          case 1: // TXN_ID
7649
            return TXN_ID;
7650
          default:
7651
            return null;
7652
        }
420 ashish 7653
      }
7654
 
7655
      /**
7656
       * Find the _Fields constant that matches fieldId, throwing an exception
7657
       * if it is not found.
7658
       */
7659
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7660
        _Fields fields = findByThriftId(fieldId);
7661
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7662
        return fields;
7663
      }
7664
 
7665
      /**
7666
       * Find the _Fields constant that matches name, or null if its not found.
7667
       */
7668
      public static _Fields findByName(String name) {
7669
        return byName.get(name);
7670
      }
7671
 
7672
      private final short _thriftId;
7673
      private final String _fieldName;
7674
 
7675
      _Fields(short thriftId, String fieldName) {
7676
        _thriftId = thriftId;
7677
        _fieldName = fieldName;
7678
      }
7679
 
7680
      public short getThriftFieldId() {
7681
        return _thriftId;
7682
      }
7683
 
7684
      public String getFieldName() {
7685
        return _fieldName;
7686
      }
7687
    }
7688
 
7689
    // isset id assignments
695 rajveer 7690
    private static final int __TXNID_ISSET_ID = 0;
420 ashish 7691
    private BitSet __isset_bit_vector = new BitSet(1);
7692
 
3430 rajveer 7693
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7694
    static {
3430 rajveer 7695
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7696
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7698
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7699
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
420 ashish 7700
    }
7701
 
695 rajveer 7702
    public getPaymentForTxnId_args() {
420 ashish 7703
    }
7704
 
695 rajveer 7705
    public getPaymentForTxnId_args(
7706
      long txnId)
420 ashish 7707
    {
7708
      this();
695 rajveer 7709
      this.txnId = txnId;
7710
      setTxnIdIsSet(true);
420 ashish 7711
    }
7712
 
7713
    /**
7714
     * Performs a deep copy on <i>other</i>.
7715
     */
695 rajveer 7716
    public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
420 ashish 7717
      __isset_bit_vector.clear();
7718
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 7719
      this.txnId = other.txnId;
420 ashish 7720
    }
7721
 
695 rajveer 7722
    public getPaymentForTxnId_args deepCopy() {
7723
      return new getPaymentForTxnId_args(this);
420 ashish 7724
    }
7725
 
3430 rajveer 7726
    @Override
7727
    public void clear() {
7728
      setTxnIdIsSet(false);
7729
      this.txnId = 0;
420 ashish 7730
    }
7731
 
695 rajveer 7732
    public long getTxnId() {
7733
      return this.txnId;
420 ashish 7734
    }
7735
 
3430 rajveer 7736
    public void setTxnId(long txnId) {
695 rajveer 7737
      this.txnId = txnId;
7738
      setTxnIdIsSet(true);
420 ashish 7739
    }
7740
 
695 rajveer 7741
    public void unsetTxnId() {
7742
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
420 ashish 7743
    }
7744
 
3430 rajveer 7745
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 7746
    public boolean isSetTxnId() {
7747
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
420 ashish 7748
    }
7749
 
695 rajveer 7750
    public void setTxnIdIsSet(boolean value) {
7751
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
420 ashish 7752
    }
7753
 
7754
    public void setFieldValue(_Fields field, Object value) {
7755
      switch (field) {
695 rajveer 7756
      case TXN_ID:
420 ashish 7757
        if (value == null) {
695 rajveer 7758
          unsetTxnId();
420 ashish 7759
        } else {
695 rajveer 7760
          setTxnId((Long)value);
420 ashish 7761
        }
7762
        break;
7763
 
7764
      }
7765
    }
7766
 
7767
    public Object getFieldValue(_Fields field) {
7768
      switch (field) {
695 rajveer 7769
      case TXN_ID:
3430 rajveer 7770
        return Long.valueOf(getTxnId());
420 ashish 7771
 
7772
      }
7773
      throw new IllegalStateException();
7774
    }
7775
 
3430 rajveer 7776
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7777
    public boolean isSet(_Fields field) {
7778
      if (field == null) {
7779
        throw new IllegalArgumentException();
7780
      }
420 ashish 7781
 
7782
      switch (field) {
695 rajveer 7783
      case TXN_ID:
7784
        return isSetTxnId();
420 ashish 7785
      }
7786
      throw new IllegalStateException();
7787
    }
7788
 
7789
    @Override
7790
    public boolean equals(Object that) {
7791
      if (that == null)
7792
        return false;
695 rajveer 7793
      if (that instanceof getPaymentForTxnId_args)
7794
        return this.equals((getPaymentForTxnId_args)that);
420 ashish 7795
      return false;
7796
    }
7797
 
695 rajveer 7798
    public boolean equals(getPaymentForTxnId_args that) {
420 ashish 7799
      if (that == null)
7800
        return false;
7801
 
695 rajveer 7802
      boolean this_present_txnId = true;
7803
      boolean that_present_txnId = true;
7804
      if (this_present_txnId || that_present_txnId) {
7805
        if (!(this_present_txnId && that_present_txnId))
420 ashish 7806
          return false;
695 rajveer 7807
        if (this.txnId != that.txnId)
420 ashish 7808
          return false;
7809
      }
7810
 
7811
      return true;
7812
    }
7813
 
7814
    @Override
7815
    public int hashCode() {
7816
      return 0;
7817
    }
7818
 
695 rajveer 7819
    public int compareTo(getPaymentForTxnId_args other) {
420 ashish 7820
      if (!getClass().equals(other.getClass())) {
7821
        return getClass().getName().compareTo(other.getClass().getName());
7822
      }
7823
 
7824
      int lastComparison = 0;
695 rajveer 7825
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
420 ashish 7826
 
3430 rajveer 7827
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
420 ashish 7828
      if (lastComparison != 0) {
7829
        return lastComparison;
7830
      }
3430 rajveer 7831
      if (isSetTxnId()) {
7832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
7833
        if (lastComparison != 0) {
7834
          return lastComparison;
7835
        }
420 ashish 7836
      }
7837
      return 0;
7838
    }
7839
 
3430 rajveer 7840
    public _Fields fieldForId(int fieldId) {
7841
      return _Fields.findByThriftId(fieldId);
7842
    }
7843
 
7844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7845
      org.apache.thrift.protocol.TField field;
420 ashish 7846
      iprot.readStructBegin();
7847
      while (true)
7848
      {
7849
        field = iprot.readFieldBegin();
3430 rajveer 7850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7851
          break;
7852
        }
3430 rajveer 7853
        switch (field.id) {
7854
          case 1: // TXN_ID
7855
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7856
              this.txnId = iprot.readI64();
7857
              setTxnIdIsSet(true);
7858
            } else { 
7859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7860
            }
7861
            break;
7862
          default:
7863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7864
        }
3430 rajveer 7865
        iprot.readFieldEnd();
420 ashish 7866
      }
7867
      iprot.readStructEnd();
7868
      validate();
7869
    }
7870
 
3430 rajveer 7871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7872
      validate();
7873
 
7874
      oprot.writeStructBegin(STRUCT_DESC);
695 rajveer 7875
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
7876
      oprot.writeI64(this.txnId);
420 ashish 7877
      oprot.writeFieldEnd();
7878
      oprot.writeFieldStop();
7879
      oprot.writeStructEnd();
7880
    }
7881
 
7882
    @Override
7883
    public String toString() {
695 rajveer 7884
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
420 ashish 7885
      boolean first = true;
7886
 
695 rajveer 7887
      sb.append("txnId:");
7888
      sb.append(this.txnId);
420 ashish 7889
      first = false;
7890
      sb.append(")");
7891
      return sb.toString();
7892
    }
7893
 
3430 rajveer 7894
    public void validate() throws org.apache.thrift.TException {
420 ashish 7895
      // check for required fields
7896
    }
7897
 
3430 rajveer 7898
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7899
      try {
7900
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7901
      } catch (org.apache.thrift.TException te) {
7902
        throw new java.io.IOException(te);
7903
      }
7904
    }
7905
 
7906
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7907
      try {
7908
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7909
        __isset_bit_vector = new BitSet(1);
7910
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7911
      } catch (org.apache.thrift.TException te) {
7912
        throw new java.io.IOException(te);
7913
      }
7914
    }
7915
 
420 ashish 7916
  }
7917
 
3430 rajveer 7918
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
7919
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
420 ashish 7920
 
3430 rajveer 7921
    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);
7922
    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 7923
 
3430 rajveer 7924
    private List<Payment> success; // required
7925
    private PaymentException pe; // required
420 ashish 7926
 
7927
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7928
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7929
      SUCCESS((short)0, "success"),
7930
      PE((short)1, "pe");
7931
 
7932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7933
 
7934
      static {
7935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7936
          byName.put(field.getFieldName(), field);
7937
        }
7938
      }
7939
 
7940
      /**
7941
       * Find the _Fields constant that matches fieldId, or null if its not found.
7942
       */
7943
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7944
        switch(fieldId) {
7945
          case 0: // SUCCESS
7946
            return SUCCESS;
7947
          case 1: // PE
7948
            return PE;
7949
          default:
7950
            return null;
7951
        }
420 ashish 7952
      }
7953
 
7954
      /**
7955
       * Find the _Fields constant that matches fieldId, throwing an exception
7956
       * if it is not found.
7957
       */
7958
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7959
        _Fields fields = findByThriftId(fieldId);
7960
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7961
        return fields;
7962
      }
7963
 
7964
      /**
7965
       * Find the _Fields constant that matches name, or null if its not found.
7966
       */
7967
      public static _Fields findByName(String name) {
7968
        return byName.get(name);
7969
      }
7970
 
7971
      private final short _thriftId;
7972
      private final String _fieldName;
7973
 
7974
      _Fields(short thriftId, String fieldName) {
7975
        _thriftId = thriftId;
7976
        _fieldName = fieldName;
7977
      }
7978
 
7979
      public short getThriftFieldId() {
7980
        return _thriftId;
7981
      }
7982
 
7983
      public String getFieldName() {
7984
        return _fieldName;
7985
      }
7986
    }
7987
 
7988
    // isset id assignments
7989
 
3430 rajveer 7990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7991
    static {
3430 rajveer 7992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7993
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7994
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7995
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
7996
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7997
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7998
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7999
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
420 ashish 8000
    }
8001
 
695 rajveer 8002
    public getPaymentForTxnId_result() {
420 ashish 8003
    }
8004
 
695 rajveer 8005
    public getPaymentForTxnId_result(
8006
      List<Payment> success,
420 ashish 8007
      PaymentException pe)
8008
    {
8009
      this();
8010
      this.success = success;
8011
      this.pe = pe;
8012
    }
8013
 
8014
    /**
8015
     * Performs a deep copy on <i>other</i>.
8016
     */
695 rajveer 8017
    public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
420 ashish 8018
      if (other.isSetSuccess()) {
695 rajveer 8019
        List<Payment> __this__success = new ArrayList<Payment>();
8020
        for (Payment other_element : other.success) {
8021
          __this__success.add(new Payment(other_element));
8022
        }
8023
        this.success = __this__success;
420 ashish 8024
      }
8025
      if (other.isSetPe()) {
8026
        this.pe = new PaymentException(other.pe);
8027
      }
8028
    }
8029
 
695 rajveer 8030
    public getPaymentForTxnId_result deepCopy() {
8031
      return new getPaymentForTxnId_result(this);
420 ashish 8032
    }
8033
 
3430 rajveer 8034
    @Override
8035
    public void clear() {
8036
      this.success = null;
8037
      this.pe = null;
420 ashish 8038
    }
8039
 
695 rajveer 8040
    public int getSuccessSize() {
8041
      return (this.success == null) ? 0 : this.success.size();
8042
    }
8043
 
8044
    public java.util.Iterator<Payment> getSuccessIterator() {
8045
      return (this.success == null) ? null : this.success.iterator();
8046
    }
8047
 
8048
    public void addToSuccess(Payment elem) {
8049
      if (this.success == null) {
8050
        this.success = new ArrayList<Payment>();
8051
      }
8052
      this.success.add(elem);
8053
    }
8054
 
8055
    public List<Payment> getSuccess() {
420 ashish 8056
      return this.success;
8057
    }
8058
 
3430 rajveer 8059
    public void setSuccess(List<Payment> success) {
420 ashish 8060
      this.success = success;
8061
    }
8062
 
8063
    public void unsetSuccess() {
8064
      this.success = null;
8065
    }
8066
 
3430 rajveer 8067
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 8068
    public boolean isSetSuccess() {
8069
      return this.success != null;
8070
    }
8071
 
8072
    public void setSuccessIsSet(boolean value) {
8073
      if (!value) {
8074
        this.success = null;
8075
      }
8076
    }
8077
 
8078
    public PaymentException getPe() {
8079
      return this.pe;
8080
    }
8081
 
3430 rajveer 8082
    public void setPe(PaymentException pe) {
420 ashish 8083
      this.pe = pe;
8084
    }
8085
 
8086
    public void unsetPe() {
8087
      this.pe = null;
8088
    }
8089
 
3430 rajveer 8090
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 8091
    public boolean isSetPe() {
8092
      return this.pe != null;
8093
    }
8094
 
8095
    public void setPeIsSet(boolean value) {
8096
      if (!value) {
8097
        this.pe = null;
8098
      }
8099
    }
8100
 
8101
    public void setFieldValue(_Fields field, Object value) {
8102
      switch (field) {
8103
      case SUCCESS:
8104
        if (value == null) {
8105
          unsetSuccess();
8106
        } else {
695 rajveer 8107
          setSuccess((List<Payment>)value);
420 ashish 8108
        }
8109
        break;
8110
 
8111
      case PE:
8112
        if (value == null) {
8113
          unsetPe();
8114
        } else {
8115
          setPe((PaymentException)value);
8116
        }
8117
        break;
8118
 
8119
      }
8120
    }
8121
 
8122
    public Object getFieldValue(_Fields field) {
8123
      switch (field) {
8124
      case SUCCESS:
8125
        return getSuccess();
8126
 
8127
      case PE:
8128
        return getPe();
8129
 
8130
      }
8131
      throw new IllegalStateException();
8132
    }
8133
 
3430 rajveer 8134
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8135
    public boolean isSet(_Fields field) {
8136
      if (field == null) {
8137
        throw new IllegalArgumentException();
8138
      }
420 ashish 8139
 
8140
      switch (field) {
8141
      case SUCCESS:
8142
        return isSetSuccess();
8143
      case PE:
8144
        return isSetPe();
8145
      }
8146
      throw new IllegalStateException();
8147
    }
8148
 
8149
    @Override
8150
    public boolean equals(Object that) {
8151
      if (that == null)
8152
        return false;
695 rajveer 8153
      if (that instanceof getPaymentForTxnId_result)
8154
        return this.equals((getPaymentForTxnId_result)that);
420 ashish 8155
      return false;
8156
    }
8157
 
695 rajveer 8158
    public boolean equals(getPaymentForTxnId_result that) {
420 ashish 8159
      if (that == null)
8160
        return false;
8161
 
8162
      boolean this_present_success = true && this.isSetSuccess();
8163
      boolean that_present_success = true && that.isSetSuccess();
8164
      if (this_present_success || that_present_success) {
8165
        if (!(this_present_success && that_present_success))
8166
          return false;
8167
        if (!this.success.equals(that.success))
8168
          return false;
8169
      }
8170
 
8171
      boolean this_present_pe = true && this.isSetPe();
8172
      boolean that_present_pe = true && that.isSetPe();
8173
      if (this_present_pe || that_present_pe) {
8174
        if (!(this_present_pe && that_present_pe))
8175
          return false;
8176
        if (!this.pe.equals(that.pe))
8177
          return false;
8178
      }
8179
 
8180
      return true;
8181
    }
8182
 
8183
    @Override
8184
    public int hashCode() {
8185
      return 0;
8186
    }
8187
 
695 rajveer 8188
    public int compareTo(getPaymentForTxnId_result other) {
8189
      if (!getClass().equals(other.getClass())) {
8190
        return getClass().getName().compareTo(other.getClass().getName());
8191
      }
8192
 
8193
      int lastComparison = 0;
8194
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
8195
 
3430 rajveer 8196
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 8197
      if (lastComparison != 0) {
8198
        return lastComparison;
8199
      }
3430 rajveer 8200
      if (isSetSuccess()) {
8201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8202
        if (lastComparison != 0) {
8203
          return lastComparison;
8204
        }
695 rajveer 8205
      }
3430 rajveer 8206
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 8207
      if (lastComparison != 0) {
8208
        return lastComparison;
8209
      }
3430 rajveer 8210
      if (isSetPe()) {
8211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8212
        if (lastComparison != 0) {
8213
          return lastComparison;
8214
        }
695 rajveer 8215
      }
8216
      return 0;
8217
    }
8218
 
3430 rajveer 8219
    public _Fields fieldForId(int fieldId) {
8220
      return _Fields.findByThriftId(fieldId);
8221
    }
8222
 
8223
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8224
      org.apache.thrift.protocol.TField field;
420 ashish 8225
      iprot.readStructBegin();
8226
      while (true)
8227
      {
8228
        field = iprot.readFieldBegin();
3430 rajveer 8229
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8230
          break;
8231
        }
3430 rajveer 8232
        switch (field.id) {
8233
          case 0: // SUCCESS
8234
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8235
              {
4600 varun.gupt 8236
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8237
                this.success = new ArrayList<Payment>(_list28.size);
8238
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
695 rajveer 8239
                {
4600 varun.gupt 8240
                  Payment _elem30; // required
8241
                  _elem30 = new Payment();
8242
                  _elem30.read(iprot);
8243
                  this.success.add(_elem30);
695 rajveer 8244
                }
3430 rajveer 8245
                iprot.readListEnd();
420 ashish 8246
              }
3430 rajveer 8247
            } else { 
8248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8249
            }
8250
            break;
8251
          case 1: // PE
8252
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8253
              this.pe = new PaymentException();
8254
              this.pe.read(iprot);
8255
            } else { 
8256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8257
            }
8258
            break;
8259
          default:
8260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8261
        }
3430 rajveer 8262
        iprot.readFieldEnd();
420 ashish 8263
      }
8264
      iprot.readStructEnd();
8265
      validate();
8266
    }
8267
 
3430 rajveer 8268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8269
      oprot.writeStructBegin(STRUCT_DESC);
8270
 
8271
      if (this.isSetSuccess()) {
8272
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 8273
        {
3430 rajveer 8274
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4600 varun.gupt 8275
          for (Payment _iter31 : this.success)
695 rajveer 8276
          {
4600 varun.gupt 8277
            _iter31.write(oprot);
695 rajveer 8278
          }
8279
          oprot.writeListEnd();
8280
        }
420 ashish 8281
        oprot.writeFieldEnd();
8282
      } else if (this.isSetPe()) {
8283
        oprot.writeFieldBegin(PE_FIELD_DESC);
8284
        this.pe.write(oprot);
8285
        oprot.writeFieldEnd();
8286
      }
8287
      oprot.writeFieldStop();
8288
      oprot.writeStructEnd();
8289
    }
8290
 
8291
    @Override
8292
    public String toString() {
695 rajveer 8293
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
420 ashish 8294
      boolean first = true;
8295
 
8296
      sb.append("success:");
8297
      if (this.success == null) {
8298
        sb.append("null");
8299
      } else {
8300
        sb.append(this.success);
8301
      }
8302
      first = false;
8303
      if (!first) sb.append(", ");
8304
      sb.append("pe:");
8305
      if (this.pe == null) {
8306
        sb.append("null");
8307
      } else {
8308
        sb.append(this.pe);
8309
      }
8310
      first = false;
8311
      sb.append(")");
8312
      return sb.toString();
8313
    }
8314
 
3430 rajveer 8315
    public void validate() throws org.apache.thrift.TException {
420 ashish 8316
      // check for required fields
8317
    }
8318
 
3430 rajveer 8319
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8320
      try {
8321
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8322
      } catch (org.apache.thrift.TException te) {
8323
        throw new java.io.IOException(te);
8324
      }
8325
    }
8326
 
8327
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8328
      try {
8329
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8330
      } catch (org.apache.thrift.TException te) {
8331
        throw new java.io.IOException(te);
8332
      }
8333
    }
8334
 
420 ashish 8335
  }
8336
 
4600 varun.gupt 8337
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
8339
 
8340
    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);
8341
 
8342
    private long txnId; // required
8343
 
8344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8346
      TXN_ID((short)1, "txnId");
8347
 
8348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8349
 
8350
      static {
8351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8352
          byName.put(field.getFieldName(), field);
8353
        }
8354
      }
8355
 
8356
      /**
8357
       * Find the _Fields constant that matches fieldId, or null if its not found.
8358
       */
8359
      public static _Fields findByThriftId(int fieldId) {
8360
        switch(fieldId) {
8361
          case 1: // TXN_ID
8362
            return TXN_ID;
8363
          default:
8364
            return null;
8365
        }
8366
      }
8367
 
8368
      /**
8369
       * Find the _Fields constant that matches fieldId, throwing an exception
8370
       * if it is not found.
8371
       */
8372
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8373
        _Fields fields = findByThriftId(fieldId);
8374
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8375
        return fields;
8376
      }
8377
 
8378
      /**
8379
       * Find the _Fields constant that matches name, or null if its not found.
8380
       */
8381
      public static _Fields findByName(String name) {
8382
        return byName.get(name);
8383
      }
8384
 
8385
      private final short _thriftId;
8386
      private final String _fieldName;
8387
 
8388
      _Fields(short thriftId, String fieldName) {
8389
        _thriftId = thriftId;
8390
        _fieldName = fieldName;
8391
      }
8392
 
8393
      public short getThriftFieldId() {
8394
        return _thriftId;
8395
      }
8396
 
8397
      public String getFieldName() {
8398
        return _fieldName;
8399
      }
8400
    }
8401
 
8402
    // isset id assignments
8403
    private static final int __TXNID_ISSET_ID = 0;
8404
    private BitSet __isset_bit_vector = new BitSet(1);
8405
 
8406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8407
    static {
8408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8409
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
8413
    }
8414
 
8415
    public getSuccessfulPaymentForTxnId_args() {
8416
    }
8417
 
8418
    public getSuccessfulPaymentForTxnId_args(
8419
      long txnId)
8420
    {
8421
      this();
8422
      this.txnId = txnId;
8423
      setTxnIdIsSet(true);
8424
    }
8425
 
8426
    /**
8427
     * Performs a deep copy on <i>other</i>.
8428
     */
8429
    public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
8430
      __isset_bit_vector.clear();
8431
      __isset_bit_vector.or(other.__isset_bit_vector);
8432
      this.txnId = other.txnId;
8433
    }
8434
 
8435
    public getSuccessfulPaymentForTxnId_args deepCopy() {
8436
      return new getSuccessfulPaymentForTxnId_args(this);
8437
    }
8438
 
8439
    @Override
8440
    public void clear() {
8441
      setTxnIdIsSet(false);
8442
      this.txnId = 0;
8443
    }
8444
 
8445
    public long getTxnId() {
8446
      return this.txnId;
8447
    }
8448
 
8449
    public void setTxnId(long txnId) {
8450
      this.txnId = txnId;
8451
      setTxnIdIsSet(true);
8452
    }
8453
 
8454
    public void unsetTxnId() {
8455
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
8456
    }
8457
 
8458
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
8459
    public boolean isSetTxnId() {
8460
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
8461
    }
8462
 
8463
    public void setTxnIdIsSet(boolean value) {
8464
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
8465
    }
8466
 
8467
    public void setFieldValue(_Fields field, Object value) {
8468
      switch (field) {
8469
      case TXN_ID:
8470
        if (value == null) {
8471
          unsetTxnId();
8472
        } else {
8473
          setTxnId((Long)value);
8474
        }
8475
        break;
8476
 
8477
      }
8478
    }
8479
 
8480
    public Object getFieldValue(_Fields field) {
8481
      switch (field) {
8482
      case TXN_ID:
8483
        return Long.valueOf(getTxnId());
8484
 
8485
      }
8486
      throw new IllegalStateException();
8487
    }
8488
 
8489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8490
    public boolean isSet(_Fields field) {
8491
      if (field == null) {
8492
        throw new IllegalArgumentException();
8493
      }
8494
 
8495
      switch (field) {
8496
      case TXN_ID:
8497
        return isSetTxnId();
8498
      }
8499
      throw new IllegalStateException();
8500
    }
8501
 
8502
    @Override
8503
    public boolean equals(Object that) {
8504
      if (that == null)
8505
        return false;
8506
      if (that instanceof getSuccessfulPaymentForTxnId_args)
8507
        return this.equals((getSuccessfulPaymentForTxnId_args)that);
8508
      return false;
8509
    }
8510
 
8511
    public boolean equals(getSuccessfulPaymentForTxnId_args that) {
8512
      if (that == null)
8513
        return false;
8514
 
8515
      boolean this_present_txnId = true;
8516
      boolean that_present_txnId = true;
8517
      if (this_present_txnId || that_present_txnId) {
8518
        if (!(this_present_txnId && that_present_txnId))
8519
          return false;
8520
        if (this.txnId != that.txnId)
8521
          return false;
8522
      }
8523
 
8524
      return true;
8525
    }
8526
 
8527
    @Override
8528
    public int hashCode() {
8529
      return 0;
8530
    }
8531
 
8532
    public int compareTo(getSuccessfulPaymentForTxnId_args other) {
8533
      if (!getClass().equals(other.getClass())) {
8534
        return getClass().getName().compareTo(other.getClass().getName());
8535
      }
8536
 
8537
      int lastComparison = 0;
8538
      getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
8539
 
8540
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
8541
      if (lastComparison != 0) {
8542
        return lastComparison;
8543
      }
8544
      if (isSetTxnId()) {
8545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8546
        if (lastComparison != 0) {
8547
          return lastComparison;
8548
        }
8549
      }
8550
      return 0;
8551
    }
8552
 
8553
    public _Fields fieldForId(int fieldId) {
8554
      return _Fields.findByThriftId(fieldId);
8555
    }
8556
 
8557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8558
      org.apache.thrift.protocol.TField field;
8559
      iprot.readStructBegin();
8560
      while (true)
8561
      {
8562
        field = iprot.readFieldBegin();
8563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8564
          break;
8565
        }
8566
        switch (field.id) {
8567
          case 1: // TXN_ID
8568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8569
              this.txnId = iprot.readI64();
8570
              setTxnIdIsSet(true);
8571
            } else { 
8572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8573
            }
8574
            break;
8575
          default:
8576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8577
        }
8578
        iprot.readFieldEnd();
8579
      }
8580
      iprot.readStructEnd();
8581
      validate();
8582
    }
8583
 
8584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8585
      validate();
8586
 
8587
      oprot.writeStructBegin(STRUCT_DESC);
8588
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8589
      oprot.writeI64(this.txnId);
8590
      oprot.writeFieldEnd();
8591
      oprot.writeFieldStop();
8592
      oprot.writeStructEnd();
8593
    }
8594
 
8595
    @Override
8596
    public String toString() {
8597
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
8598
      boolean first = true;
8599
 
8600
      sb.append("txnId:");
8601
      sb.append(this.txnId);
8602
      first = false;
8603
      sb.append(")");
8604
      return sb.toString();
8605
    }
8606
 
8607
    public void validate() throws org.apache.thrift.TException {
8608
      // check for required fields
8609
    }
8610
 
8611
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8612
      try {
8613
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8614
      } catch (org.apache.thrift.TException te) {
8615
        throw new java.io.IOException(te);
8616
      }
8617
    }
8618
 
8619
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8620
      try {
8621
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8622
        __isset_bit_vector = new BitSet(1);
8623
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8624
      } catch (org.apache.thrift.TException te) {
8625
        throw new java.io.IOException(te);
8626
      }
8627
    }
8628
 
8629
  }
8630
 
8631
  public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
8632
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
8633
 
8634
    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);
8635
    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);
8636
 
8637
    private Payment success; // required
8638
    private PaymentException pe; // required
8639
 
8640
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8641
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8642
      SUCCESS((short)0, "success"),
8643
      PE((short)1, "pe");
8644
 
8645
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8646
 
8647
      static {
8648
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8649
          byName.put(field.getFieldName(), field);
8650
        }
8651
      }
8652
 
8653
      /**
8654
       * Find the _Fields constant that matches fieldId, or null if its not found.
8655
       */
8656
      public static _Fields findByThriftId(int fieldId) {
8657
        switch(fieldId) {
8658
          case 0: // SUCCESS
8659
            return SUCCESS;
8660
          case 1: // PE
8661
            return PE;
8662
          default:
8663
            return null;
8664
        }
8665
      }
8666
 
8667
      /**
8668
       * Find the _Fields constant that matches fieldId, throwing an exception
8669
       * if it is not found.
8670
       */
8671
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8672
        _Fields fields = findByThriftId(fieldId);
8673
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8674
        return fields;
8675
      }
8676
 
8677
      /**
8678
       * Find the _Fields constant that matches name, or null if its not found.
8679
       */
8680
      public static _Fields findByName(String name) {
8681
        return byName.get(name);
8682
      }
8683
 
8684
      private final short _thriftId;
8685
      private final String _fieldName;
8686
 
8687
      _Fields(short thriftId, String fieldName) {
8688
        _thriftId = thriftId;
8689
        _fieldName = fieldName;
8690
      }
8691
 
8692
      public short getThriftFieldId() {
8693
        return _thriftId;
8694
      }
8695
 
8696
      public String getFieldName() {
8697
        return _fieldName;
8698
      }
8699
    }
8700
 
8701
    // isset id assignments
8702
 
8703
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8704
    static {
8705
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8706
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8707
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
8708
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
8712
    }
8713
 
8714
    public getSuccessfulPaymentForTxnId_result() {
8715
    }
8716
 
8717
    public getSuccessfulPaymentForTxnId_result(
8718
      Payment success,
8719
      PaymentException pe)
8720
    {
8721
      this();
8722
      this.success = success;
8723
      this.pe = pe;
8724
    }
8725
 
8726
    /**
8727
     * Performs a deep copy on <i>other</i>.
8728
     */
8729
    public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
8730
      if (other.isSetSuccess()) {
8731
        this.success = new Payment(other.success);
8732
      }
8733
      if (other.isSetPe()) {
8734
        this.pe = new PaymentException(other.pe);
8735
      }
8736
    }
8737
 
8738
    public getSuccessfulPaymentForTxnId_result deepCopy() {
8739
      return new getSuccessfulPaymentForTxnId_result(this);
8740
    }
8741
 
8742
    @Override
8743
    public void clear() {
8744
      this.success = null;
8745
      this.pe = null;
8746
    }
8747
 
8748
    public Payment getSuccess() {
8749
      return this.success;
8750
    }
8751
 
8752
    public void setSuccess(Payment success) {
8753
      this.success = success;
8754
    }
8755
 
8756
    public void unsetSuccess() {
8757
      this.success = null;
8758
    }
8759
 
8760
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8761
    public boolean isSetSuccess() {
8762
      return this.success != null;
8763
    }
8764
 
8765
    public void setSuccessIsSet(boolean value) {
8766
      if (!value) {
8767
        this.success = null;
8768
      }
8769
    }
8770
 
8771
    public PaymentException getPe() {
8772
      return this.pe;
8773
    }
8774
 
8775
    public void setPe(PaymentException pe) {
8776
      this.pe = pe;
8777
    }
8778
 
8779
    public void unsetPe() {
8780
      this.pe = null;
8781
    }
8782
 
8783
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
8784
    public boolean isSetPe() {
8785
      return this.pe != null;
8786
    }
8787
 
8788
    public void setPeIsSet(boolean value) {
8789
      if (!value) {
8790
        this.pe = null;
8791
      }
8792
    }
8793
 
8794
    public void setFieldValue(_Fields field, Object value) {
8795
      switch (field) {
8796
      case SUCCESS:
8797
        if (value == null) {
8798
          unsetSuccess();
8799
        } else {
8800
          setSuccess((Payment)value);
8801
        }
8802
        break;
8803
 
8804
      case PE:
8805
        if (value == null) {
8806
          unsetPe();
8807
        } else {
8808
          setPe((PaymentException)value);
8809
        }
8810
        break;
8811
 
8812
      }
8813
    }
8814
 
8815
    public Object getFieldValue(_Fields field) {
8816
      switch (field) {
8817
      case SUCCESS:
8818
        return getSuccess();
8819
 
8820
      case PE:
8821
        return getPe();
8822
 
8823
      }
8824
      throw new IllegalStateException();
8825
    }
8826
 
8827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8828
    public boolean isSet(_Fields field) {
8829
      if (field == null) {
8830
        throw new IllegalArgumentException();
8831
      }
8832
 
8833
      switch (field) {
8834
      case SUCCESS:
8835
        return isSetSuccess();
8836
      case PE:
8837
        return isSetPe();
8838
      }
8839
      throw new IllegalStateException();
8840
    }
8841
 
8842
    @Override
8843
    public boolean equals(Object that) {
8844
      if (that == null)
8845
        return false;
8846
      if (that instanceof getSuccessfulPaymentForTxnId_result)
8847
        return this.equals((getSuccessfulPaymentForTxnId_result)that);
8848
      return false;
8849
    }
8850
 
8851
    public boolean equals(getSuccessfulPaymentForTxnId_result that) {
8852
      if (that == null)
8853
        return false;
8854
 
8855
      boolean this_present_success = true && this.isSetSuccess();
8856
      boolean that_present_success = true && that.isSetSuccess();
8857
      if (this_present_success || that_present_success) {
8858
        if (!(this_present_success && that_present_success))
8859
          return false;
8860
        if (!this.success.equals(that.success))
8861
          return false;
8862
      }
8863
 
8864
      boolean this_present_pe = true && this.isSetPe();
8865
      boolean that_present_pe = true && that.isSetPe();
8866
      if (this_present_pe || that_present_pe) {
8867
        if (!(this_present_pe && that_present_pe))
8868
          return false;
8869
        if (!this.pe.equals(that.pe))
8870
          return false;
8871
      }
8872
 
8873
      return true;
8874
    }
8875
 
8876
    @Override
8877
    public int hashCode() {
8878
      return 0;
8879
    }
8880
 
8881
    public int compareTo(getSuccessfulPaymentForTxnId_result other) {
8882
      if (!getClass().equals(other.getClass())) {
8883
        return getClass().getName().compareTo(other.getClass().getName());
8884
      }
8885
 
8886
      int lastComparison = 0;
8887
      getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
8888
 
8889
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8890
      if (lastComparison != 0) {
8891
        return lastComparison;
8892
      }
8893
      if (isSetSuccess()) {
8894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8895
        if (lastComparison != 0) {
8896
          return lastComparison;
8897
        }
8898
      }
8899
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
8900
      if (lastComparison != 0) {
8901
        return lastComparison;
8902
      }
8903
      if (isSetPe()) {
8904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8905
        if (lastComparison != 0) {
8906
          return lastComparison;
8907
        }
8908
      }
8909
      return 0;
8910
    }
8911
 
8912
    public _Fields fieldForId(int fieldId) {
8913
      return _Fields.findByThriftId(fieldId);
8914
    }
8915
 
8916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8917
      org.apache.thrift.protocol.TField field;
8918
      iprot.readStructBegin();
8919
      while (true)
8920
      {
8921
        field = iprot.readFieldBegin();
8922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8923
          break;
8924
        }
8925
        switch (field.id) {
8926
          case 0: // SUCCESS
8927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8928
              this.success = new Payment();
8929
              this.success.read(iprot);
8930
            } else { 
8931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8932
            }
8933
            break;
8934
          case 1: // PE
8935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8936
              this.pe = new PaymentException();
8937
              this.pe.read(iprot);
8938
            } else { 
8939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8940
            }
8941
            break;
8942
          default:
8943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8944
        }
8945
        iprot.readFieldEnd();
8946
      }
8947
      iprot.readStructEnd();
8948
      validate();
8949
    }
8950
 
8951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8952
      oprot.writeStructBegin(STRUCT_DESC);
8953
 
8954
      if (this.isSetSuccess()) {
8955
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8956
        this.success.write(oprot);
8957
        oprot.writeFieldEnd();
8958
      } else if (this.isSetPe()) {
8959
        oprot.writeFieldBegin(PE_FIELD_DESC);
8960
        this.pe.write(oprot);
8961
        oprot.writeFieldEnd();
8962
      }
8963
      oprot.writeFieldStop();
8964
      oprot.writeStructEnd();
8965
    }
8966
 
8967
    @Override
8968
    public String toString() {
8969
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
8970
      boolean first = true;
8971
 
8972
      sb.append("success:");
8973
      if (this.success == null) {
8974
        sb.append("null");
8975
      } else {
8976
        sb.append(this.success);
8977
      }
8978
      first = false;
8979
      if (!first) sb.append(", ");
8980
      sb.append("pe:");
8981
      if (this.pe == null) {
8982
        sb.append("null");
8983
      } else {
8984
        sb.append(this.pe);
8985
      }
8986
      first = false;
8987
      sb.append(")");
8988
      return sb.toString();
8989
    }
8990
 
8991
    public void validate() throws org.apache.thrift.TException {
8992
      // check for required fields
8993
    }
8994
 
8995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8996
      try {
8997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8998
      } catch (org.apache.thrift.TException te) {
8999
        throw new java.io.IOException(te);
9000
      }
9001
    }
9002
 
9003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9004
      try {
9005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9006
      } catch (org.apache.thrift.TException te) {
9007
        throw new java.io.IOException(te);
9008
      }
9009
    }
9010
 
9011
  }
9012
 
3430 rajveer 9013
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
9014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
420 ashish 9015
 
3430 rajveer 9016
    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);
9017
    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);
9018
    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);
9019
    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);
9020
    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);
9021
    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);
9022
    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);
9023
    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);
9024
    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);
9025
    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);
9026
    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);
9027
    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 9028
 
3430 rajveer 9029
    private long id; // required
9030
    private String gatewayPaymentId; // required
9031
    private String sessionId; // required
9032
    private String gatewayTxnStatus; // required
9033
    private String description; // required
9034
    private String gatewayTxnId; // required
9035
    private String authCode; // required
9036
    private String referenceCode; // required
9037
    private String errorCode; // required
9038
    private PaymentStatus status; // required
9039
    private String gatewayTxnDate; // required
9040
    private List<Attribute> attributes; // required
420 ashish 9041
 
9042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 9044
      ID((short)1, "id"),
695 rajveer 9045
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
9046
      SESSION_ID((short)3, "sessionId"),
9047
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
9048
      DESCRIPTION((short)5, "description"),
9049
      GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
9050
      AUTH_CODE((short)7, "authCode"),
9051
      REFERENCE_CODE((short)8, "referenceCode"),
9052
      ERROR_CODE((short)9, "errorCode"),
9053
      /**
9054
       * 
9055
       * @see PaymentStatus
9056
       */
9057
      STATUS((short)10, "status"),
1119 rajveer 9058
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
9059
      ATTRIBUTES((short)12, "attributes");
420 ashish 9060
 
9061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9062
 
9063
      static {
9064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9065
          byName.put(field.getFieldName(), field);
9066
        }
9067
      }
9068
 
9069
      /**
9070
       * Find the _Fields constant that matches fieldId, or null if its not found.
9071
       */
9072
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9073
        switch(fieldId) {
9074
          case 1: // ID
9075
            return ID;
9076
          case 2: // GATEWAY_PAYMENT_ID
9077
            return GATEWAY_PAYMENT_ID;
9078
          case 3: // SESSION_ID
9079
            return SESSION_ID;
9080
          case 4: // GATEWAY_TXN_STATUS
9081
            return GATEWAY_TXN_STATUS;
9082
          case 5: // DESCRIPTION
9083
            return DESCRIPTION;
9084
          case 6: // GATEWAY_TXN_ID
9085
            return GATEWAY_TXN_ID;
9086
          case 7: // AUTH_CODE
9087
            return AUTH_CODE;
9088
          case 8: // REFERENCE_CODE
9089
            return REFERENCE_CODE;
9090
          case 9: // ERROR_CODE
9091
            return ERROR_CODE;
9092
          case 10: // STATUS
9093
            return STATUS;
9094
          case 11: // GATEWAY_TXN_DATE
9095
            return GATEWAY_TXN_DATE;
9096
          case 12: // ATTRIBUTES
9097
            return ATTRIBUTES;
9098
          default:
9099
            return null;
9100
        }
420 ashish 9101
      }
9102
 
9103
      /**
9104
       * Find the _Fields constant that matches fieldId, throwing an exception
9105
       * if it is not found.
9106
       */
9107
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9108
        _Fields fields = findByThriftId(fieldId);
9109
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9110
        return fields;
9111
      }
9112
 
9113
      /**
9114
       * Find the _Fields constant that matches name, or null if its not found.
9115
       */
9116
      public static _Fields findByName(String name) {
9117
        return byName.get(name);
9118
      }
9119
 
9120
      private final short _thriftId;
9121
      private final String _fieldName;
9122
 
9123
      _Fields(short thriftId, String fieldName) {
9124
        _thriftId = thriftId;
9125
        _fieldName = fieldName;
9126
      }
9127
 
9128
      public short getThriftFieldId() {
9129
        return _thriftId;
9130
      }
9131
 
9132
      public String getFieldName() {
9133
        return _fieldName;
9134
      }
9135
    }
9136
 
9137
    // isset id assignments
9138
    private static final int __ID_ISSET_ID = 0;
9139
    private BitSet __isset_bit_vector = new BitSet(1);
9140
 
3430 rajveer 9141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 9142
    static {
3430 rajveer 9143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9144
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9146
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9148
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9149
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9150
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9152
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9153
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9154
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9155
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9156
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9158
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9160
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9162
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9163
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
9164
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9165
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9166
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9167
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9168
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
9169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
420 ashish 9171
    }
9172
 
695 rajveer 9173
    public updatePaymentDetails_args() {
420 ashish 9174
    }
9175
 
695 rajveer 9176
    public updatePaymentDetails_args(
420 ashish 9177
      long id,
695 rajveer 9178
      String gatewayPaymentId,
9179
      String sessionId,
9180
      String gatewayTxnStatus,
9181
      String description,
9182
      String gatewayTxnId,
9183
      String authCode,
9184
      String referenceCode,
9185
      String errorCode,
9186
      PaymentStatus status,
1119 rajveer 9187
      String gatewayTxnDate,
695 rajveer 9188
      List<Attribute> attributes)
420 ashish 9189
    {
9190
      this();
9191
      this.id = id;
9192
      setIdIsSet(true);
695 rajveer 9193
      this.gatewayPaymentId = gatewayPaymentId;
9194
      this.sessionId = sessionId;
9195
      this.gatewayTxnStatus = gatewayTxnStatus;
9196
      this.description = description;
9197
      this.gatewayTxnId = gatewayTxnId;
9198
      this.authCode = authCode;
9199
      this.referenceCode = referenceCode;
9200
      this.errorCode = errorCode;
9201
      this.status = status;
1119 rajveer 9202
      this.gatewayTxnDate = gatewayTxnDate;
695 rajveer 9203
      this.attributes = attributes;
420 ashish 9204
    }
9205
 
9206
    /**
9207
     * Performs a deep copy on <i>other</i>.
9208
     */
695 rajveer 9209
    public updatePaymentDetails_args(updatePaymentDetails_args other) {
420 ashish 9210
      __isset_bit_vector.clear();
9211
      __isset_bit_vector.or(other.__isset_bit_vector);
9212
      this.id = other.id;
695 rajveer 9213
      if (other.isSetGatewayPaymentId()) {
9214
        this.gatewayPaymentId = other.gatewayPaymentId;
420 ashish 9215
      }
695 rajveer 9216
      if (other.isSetSessionId()) {
9217
        this.sessionId = other.sessionId;
420 ashish 9218
      }
695 rajveer 9219
      if (other.isSetGatewayTxnStatus()) {
9220
        this.gatewayTxnStatus = other.gatewayTxnStatus;
420 ashish 9221
      }
695 rajveer 9222
      if (other.isSetDescription()) {
9223
        this.description = other.description;
420 ashish 9224
      }
695 rajveer 9225
      if (other.isSetGatewayTxnId()) {
9226
        this.gatewayTxnId = other.gatewayTxnId;
420 ashish 9227
      }
695 rajveer 9228
      if (other.isSetAuthCode()) {
9229
        this.authCode = other.authCode;
420 ashish 9230
      }
695 rajveer 9231
      if (other.isSetReferenceCode()) {
9232
        this.referenceCode = other.referenceCode;
420 ashish 9233
      }
695 rajveer 9234
      if (other.isSetErrorCode()) {
9235
        this.errorCode = other.errorCode;
9236
      }
9237
      if (other.isSetStatus()) {
9238
        this.status = other.status;
9239
      }
1119 rajveer 9240
      if (other.isSetGatewayTxnDate()) {
9241
        this.gatewayTxnDate = other.gatewayTxnDate;
9242
      }
695 rajveer 9243
      if (other.isSetAttributes()) {
9244
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
9245
        for (Attribute other_element : other.attributes) {
9246
          __this__attributes.add(new Attribute(other_element));
9247
        }
9248
        this.attributes = __this__attributes;
9249
      }
420 ashish 9250
    }
9251
 
695 rajveer 9252
    public updatePaymentDetails_args deepCopy() {
9253
      return new updatePaymentDetails_args(this);
420 ashish 9254
    }
9255
 
3430 rajveer 9256
    @Override
9257
    public void clear() {
9258
      setIdIsSet(false);
9259
      this.id = 0;
9260
      this.gatewayPaymentId = null;
9261
      this.sessionId = null;
9262
      this.gatewayTxnStatus = null;
9263
      this.description = null;
9264
      this.gatewayTxnId = null;
9265
      this.authCode = null;
9266
      this.referenceCode = null;
9267
      this.errorCode = null;
9268
      this.status = null;
9269
      this.gatewayTxnDate = null;
9270
      this.attributes = null;
420 ashish 9271
    }
9272
 
9273
    public long getId() {
9274
      return this.id;
9275
    }
9276
 
3430 rajveer 9277
    public void setId(long id) {
420 ashish 9278
      this.id = id;
9279
      setIdIsSet(true);
9280
    }
9281
 
9282
    public void unsetId() {
9283
      __isset_bit_vector.clear(__ID_ISSET_ID);
9284
    }
9285
 
3430 rajveer 9286
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 9287
    public boolean isSetId() {
9288
      return __isset_bit_vector.get(__ID_ISSET_ID);
9289
    }
9290
 
9291
    public void setIdIsSet(boolean value) {
9292
      __isset_bit_vector.set(__ID_ISSET_ID, value);
9293
    }
9294
 
695 rajveer 9295
    public String getGatewayPaymentId() {
9296
      return this.gatewayPaymentId;
420 ashish 9297
    }
9298
 
3430 rajveer 9299
    public void setGatewayPaymentId(String gatewayPaymentId) {
695 rajveer 9300
      this.gatewayPaymentId = gatewayPaymentId;
420 ashish 9301
    }
9302
 
695 rajveer 9303
    public void unsetGatewayPaymentId() {
9304
      this.gatewayPaymentId = null;
420 ashish 9305
    }
9306
 
3430 rajveer 9307
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
695 rajveer 9308
    public boolean isSetGatewayPaymentId() {
9309
      return this.gatewayPaymentId != null;
420 ashish 9310
    }
9311
 
695 rajveer 9312
    public void setGatewayPaymentIdIsSet(boolean value) {
420 ashish 9313
      if (!value) {
695 rajveer 9314
        this.gatewayPaymentId = null;
420 ashish 9315
      }
9316
    }
9317
 
695 rajveer 9318
    public String getSessionId() {
9319
      return this.sessionId;
420 ashish 9320
    }
9321
 
3430 rajveer 9322
    public void setSessionId(String sessionId) {
695 rajveer 9323
      this.sessionId = sessionId;
420 ashish 9324
    }
9325
 
695 rajveer 9326
    public void unsetSessionId() {
9327
      this.sessionId = null;
420 ashish 9328
    }
9329
 
3430 rajveer 9330
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
695 rajveer 9331
    public boolean isSetSessionId() {
9332
      return this.sessionId != null;
420 ashish 9333
    }
9334
 
695 rajveer 9335
    public void setSessionIdIsSet(boolean value) {
420 ashish 9336
      if (!value) {
695 rajveer 9337
        this.sessionId = null;
420 ashish 9338
      }
9339
    }
9340
 
695 rajveer 9341
    public String getGatewayTxnStatus() {
9342
      return this.gatewayTxnStatus;
420 ashish 9343
    }
9344
 
3430 rajveer 9345
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
695 rajveer 9346
      this.gatewayTxnStatus = gatewayTxnStatus;
420 ashish 9347
    }
9348
 
695 rajveer 9349
    public void unsetGatewayTxnStatus() {
9350
      this.gatewayTxnStatus = null;
420 ashish 9351
    }
9352
 
3430 rajveer 9353
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
695 rajveer 9354
    public boolean isSetGatewayTxnStatus() {
9355
      return this.gatewayTxnStatus != null;
420 ashish 9356
    }
9357
 
695 rajveer 9358
    public void setGatewayTxnStatusIsSet(boolean value) {
420 ashish 9359
      if (!value) {
695 rajveer 9360
        this.gatewayTxnStatus = null;
420 ashish 9361
      }
9362
    }
9363
 
695 rajveer 9364
    public String getDescription() {
9365
      return this.description;
420 ashish 9366
    }
9367
 
3430 rajveer 9368
    public void setDescription(String description) {
695 rajveer 9369
      this.description = description;
420 ashish 9370
    }
9371
 
695 rajveer 9372
    public void unsetDescription() {
9373
      this.description = null;
420 ashish 9374
    }
9375
 
3430 rajveer 9376
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
695 rajveer 9377
    public boolean isSetDescription() {
9378
      return this.description != null;
420 ashish 9379
    }
9380
 
695 rajveer 9381
    public void setDescriptionIsSet(boolean value) {
420 ashish 9382
      if (!value) {
695 rajveer 9383
        this.description = null;
420 ashish 9384
      }
9385
    }
9386
 
695 rajveer 9387
    public String getGatewayTxnId() {
9388
      return this.gatewayTxnId;
420 ashish 9389
    }
9390
 
3430 rajveer 9391
    public void setGatewayTxnId(String gatewayTxnId) {
695 rajveer 9392
      this.gatewayTxnId = gatewayTxnId;
420 ashish 9393
    }
9394
 
695 rajveer 9395
    public void unsetGatewayTxnId() {
9396
      this.gatewayTxnId = null;
420 ashish 9397
    }
9398
 
3430 rajveer 9399
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
695 rajveer 9400
    public boolean isSetGatewayTxnId() {
9401
      return this.gatewayTxnId != null;
420 ashish 9402
    }
9403
 
695 rajveer 9404
    public void setGatewayTxnIdIsSet(boolean value) {
420 ashish 9405
      if (!value) {
695 rajveer 9406
        this.gatewayTxnId = null;
420 ashish 9407
      }
9408
    }
9409
 
695 rajveer 9410
    public String getAuthCode() {
9411
      return this.authCode;
420 ashish 9412
    }
9413
 
3430 rajveer 9414
    public void setAuthCode(String authCode) {
695 rajveer 9415
      this.authCode = authCode;
420 ashish 9416
    }
9417
 
695 rajveer 9418
    public void unsetAuthCode() {
9419
      this.authCode = null;
420 ashish 9420
    }
9421
 
3430 rajveer 9422
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
695 rajveer 9423
    public boolean isSetAuthCode() {
9424
      return this.authCode != null;
420 ashish 9425
    }
9426
 
695 rajveer 9427
    public void setAuthCodeIsSet(boolean value) {
420 ashish 9428
      if (!value) {
695 rajveer 9429
        this.authCode = null;
420 ashish 9430
      }
9431
    }
9432
 
695 rajveer 9433
    public String getReferenceCode() {
9434
      return this.referenceCode;
420 ashish 9435
    }
9436
 
3430 rajveer 9437
    public void setReferenceCode(String referenceCode) {
695 rajveer 9438
      this.referenceCode = referenceCode;
420 ashish 9439
    }
9440
 
695 rajveer 9441
    public void unsetReferenceCode() {
9442
      this.referenceCode = null;
420 ashish 9443
    }
9444
 
3430 rajveer 9445
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
695 rajveer 9446
    public boolean isSetReferenceCode() {
9447
      return this.referenceCode != null;
420 ashish 9448
    }
9449
 
695 rajveer 9450
    public void setReferenceCodeIsSet(boolean value) {
420 ashish 9451
      if (!value) {
695 rajveer 9452
        this.referenceCode = null;
420 ashish 9453
      }
9454
    }
9455
 
695 rajveer 9456
    public String getErrorCode() {
9457
      return this.errorCode;
9458
    }
9459
 
3430 rajveer 9460
    public void setErrorCode(String errorCode) {
695 rajveer 9461
      this.errorCode = errorCode;
9462
    }
9463
 
9464
    public void unsetErrorCode() {
9465
      this.errorCode = null;
9466
    }
9467
 
3430 rajveer 9468
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
695 rajveer 9469
    public boolean isSetErrorCode() {
9470
      return this.errorCode != null;
9471
    }
9472
 
9473
    public void setErrorCodeIsSet(boolean value) {
9474
      if (!value) {
9475
        this.errorCode = null;
9476
      }
9477
    }
9478
 
9479
    /**
9480
     * 
9481
     * @see PaymentStatus
9482
     */
9483
    public PaymentStatus getStatus() {
9484
      return this.status;
9485
    }
9486
 
9487
    /**
9488
     * 
9489
     * @see PaymentStatus
9490
     */
3430 rajveer 9491
    public void setStatus(PaymentStatus status) {
695 rajveer 9492
      this.status = status;
9493
    }
9494
 
9495
    public void unsetStatus() {
9496
      this.status = null;
9497
    }
9498
 
3430 rajveer 9499
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
695 rajveer 9500
    public boolean isSetStatus() {
9501
      return this.status != null;
9502
    }
9503
 
9504
    public void setStatusIsSet(boolean value) {
9505
      if (!value) {
9506
        this.status = null;
9507
      }
9508
    }
9509
 
1119 rajveer 9510
    public String getGatewayTxnDate() {
9511
      return this.gatewayTxnDate;
9512
    }
9513
 
3430 rajveer 9514
    public void setGatewayTxnDate(String gatewayTxnDate) {
1119 rajveer 9515
      this.gatewayTxnDate = gatewayTxnDate;
9516
    }
9517
 
9518
    public void unsetGatewayTxnDate() {
9519
      this.gatewayTxnDate = null;
9520
    }
9521
 
3430 rajveer 9522
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
1119 rajveer 9523
    public boolean isSetGatewayTxnDate() {
9524
      return this.gatewayTxnDate != null;
9525
    }
9526
 
9527
    public void setGatewayTxnDateIsSet(boolean value) {
9528
      if (!value) {
9529
        this.gatewayTxnDate = null;
9530
      }
9531
    }
9532
 
695 rajveer 9533
    public int getAttributesSize() {
9534
      return (this.attributes == null) ? 0 : this.attributes.size();
9535
    }
9536
 
9537
    public java.util.Iterator<Attribute> getAttributesIterator() {
9538
      return (this.attributes == null) ? null : this.attributes.iterator();
9539
    }
9540
 
9541
    public void addToAttributes(Attribute elem) {
9542
      if (this.attributes == null) {
9543
        this.attributes = new ArrayList<Attribute>();
9544
      }
9545
      this.attributes.add(elem);
9546
    }
9547
 
9548
    public List<Attribute> getAttributes() {
9549
      return this.attributes;
9550
    }
9551
 
3430 rajveer 9552
    public void setAttributes(List<Attribute> attributes) {
695 rajveer 9553
      this.attributes = attributes;
9554
    }
9555
 
9556
    public void unsetAttributes() {
9557
      this.attributes = null;
9558
    }
9559
 
3430 rajveer 9560
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
695 rajveer 9561
    public boolean isSetAttributes() {
9562
      return this.attributes != null;
9563
    }
9564
 
9565
    public void setAttributesIsSet(boolean value) {
9566
      if (!value) {
9567
        this.attributes = null;
9568
      }
9569
    }
9570
 
420 ashish 9571
    public void setFieldValue(_Fields field, Object value) {
9572
      switch (field) {
9573
      case ID:
9574
        if (value == null) {
9575
          unsetId();
9576
        } else {
9577
          setId((Long)value);
9578
        }
9579
        break;
9580
 
695 rajveer 9581
      case GATEWAY_PAYMENT_ID:
420 ashish 9582
        if (value == null) {
695 rajveer 9583
          unsetGatewayPaymentId();
420 ashish 9584
        } else {
695 rajveer 9585
          setGatewayPaymentId((String)value);
420 ashish 9586
        }
9587
        break;
9588
 
695 rajveer 9589
      case SESSION_ID:
420 ashish 9590
        if (value == null) {
695 rajveer 9591
          unsetSessionId();
420 ashish 9592
        } else {
695 rajveer 9593
          setSessionId((String)value);
420 ashish 9594
        }
9595
        break;
9596
 
695 rajveer 9597
      case GATEWAY_TXN_STATUS:
420 ashish 9598
        if (value == null) {
695 rajveer 9599
          unsetGatewayTxnStatus();
420 ashish 9600
        } else {
695 rajveer 9601
          setGatewayTxnStatus((String)value);
420 ashish 9602
        }
9603
        break;
9604
 
695 rajveer 9605
      case DESCRIPTION:
420 ashish 9606
        if (value == null) {
695 rajveer 9607
          unsetDescription();
420 ashish 9608
        } else {
695 rajveer 9609
          setDescription((String)value);
420 ashish 9610
        }
9611
        break;
9612
 
695 rajveer 9613
      case GATEWAY_TXN_ID:
420 ashish 9614
        if (value == null) {
695 rajveer 9615
          unsetGatewayTxnId();
420 ashish 9616
        } else {
695 rajveer 9617
          setGatewayTxnId((String)value);
420 ashish 9618
        }
9619
        break;
9620
 
9621
      case AUTH_CODE:
9622
        if (value == null) {
695 rajveer 9623
          unsetAuthCode();
420 ashish 9624
        } else {
695 rajveer 9625
          setAuthCode((String)value);
420 ashish 9626
        }
9627
        break;
9628
 
695 rajveer 9629
      case REFERENCE_CODE:
420 ashish 9630
        if (value == null) {
695 rajveer 9631
          unsetReferenceCode();
420 ashish 9632
        } else {
695 rajveer 9633
          setReferenceCode((String)value);
420 ashish 9634
        }
9635
        break;
9636
 
695 rajveer 9637
      case ERROR_CODE:
9638
        if (value == null) {
9639
          unsetErrorCode();
9640
        } else {
9641
          setErrorCode((String)value);
9642
        }
9643
        break;
9644
 
9645
      case STATUS:
9646
        if (value == null) {
9647
          unsetStatus();
9648
        } else {
9649
          setStatus((PaymentStatus)value);
9650
        }
9651
        break;
9652
 
1119 rajveer 9653
      case GATEWAY_TXN_DATE:
9654
        if (value == null) {
9655
          unsetGatewayTxnDate();
9656
        } else {
9657
          setGatewayTxnDate((String)value);
9658
        }
9659
        break;
9660
 
695 rajveer 9661
      case ATTRIBUTES:
9662
        if (value == null) {
9663
          unsetAttributes();
9664
        } else {
9665
          setAttributes((List<Attribute>)value);
9666
        }
9667
        break;
9668
 
420 ashish 9669
      }
9670
    }
9671
 
9672
    public Object getFieldValue(_Fields field) {
9673
      switch (field) {
9674
      case ID:
3430 rajveer 9675
        return Long.valueOf(getId());
420 ashish 9676
 
695 rajveer 9677
      case GATEWAY_PAYMENT_ID:
9678
        return getGatewayPaymentId();
420 ashish 9679
 
695 rajveer 9680
      case SESSION_ID:
9681
        return getSessionId();
420 ashish 9682
 
695 rajveer 9683
      case GATEWAY_TXN_STATUS:
9684
        return getGatewayTxnStatus();
420 ashish 9685
 
695 rajveer 9686
      case DESCRIPTION:
9687
        return getDescription();
420 ashish 9688
 
695 rajveer 9689
      case GATEWAY_TXN_ID:
9690
        return getGatewayTxnId();
420 ashish 9691
 
9692
      case AUTH_CODE:
695 rajveer 9693
        return getAuthCode();
420 ashish 9694
 
695 rajveer 9695
      case REFERENCE_CODE:
9696
        return getReferenceCode();
420 ashish 9697
 
695 rajveer 9698
      case ERROR_CODE:
9699
        return getErrorCode();
9700
 
9701
      case STATUS:
9702
        return getStatus();
9703
 
1119 rajveer 9704
      case GATEWAY_TXN_DATE:
9705
        return getGatewayTxnDate();
9706
 
695 rajveer 9707
      case ATTRIBUTES:
9708
        return getAttributes();
9709
 
420 ashish 9710
      }
9711
      throw new IllegalStateException();
9712
    }
9713
 
3430 rajveer 9714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9715
    public boolean isSet(_Fields field) {
9716
      if (field == null) {
9717
        throw new IllegalArgumentException();
9718
      }
420 ashish 9719
 
9720
      switch (field) {
9721
      case ID:
9722
        return isSetId();
695 rajveer 9723
      case GATEWAY_PAYMENT_ID:
9724
        return isSetGatewayPaymentId();
420 ashish 9725
      case SESSION_ID:
695 rajveer 9726
        return isSetSessionId();
9727
      case GATEWAY_TXN_STATUS:
9728
        return isSetGatewayTxnStatus();
9729
      case DESCRIPTION:
9730
        return isSetDescription();
9731
      case GATEWAY_TXN_ID:
9732
        return isSetGatewayTxnId();
420 ashish 9733
      case AUTH_CODE:
695 rajveer 9734
        return isSetAuthCode();
9735
      case REFERENCE_CODE:
9736
        return isSetReferenceCode();
9737
      case ERROR_CODE:
9738
        return isSetErrorCode();
9739
      case STATUS:
9740
        return isSetStatus();
1119 rajveer 9741
      case GATEWAY_TXN_DATE:
9742
        return isSetGatewayTxnDate();
695 rajveer 9743
      case ATTRIBUTES:
9744
        return isSetAttributes();
420 ashish 9745
      }
9746
      throw new IllegalStateException();
9747
    }
9748
 
9749
    @Override
9750
    public boolean equals(Object that) {
9751
      if (that == null)
9752
        return false;
695 rajveer 9753
      if (that instanceof updatePaymentDetails_args)
9754
        return this.equals((updatePaymentDetails_args)that);
420 ashish 9755
      return false;
9756
    }
9757
 
695 rajveer 9758
    public boolean equals(updatePaymentDetails_args that) {
420 ashish 9759
      if (that == null)
9760
        return false;
9761
 
9762
      boolean this_present_id = true;
9763
      boolean that_present_id = true;
9764
      if (this_present_id || that_present_id) {
9765
        if (!(this_present_id && that_present_id))
9766
          return false;
9767
        if (this.id != that.id)
9768
          return false;
9769
      }
9770
 
695 rajveer 9771
      boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
9772
      boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
9773
      if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
9774
        if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
420 ashish 9775
          return false;
695 rajveer 9776
        if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
420 ashish 9777
          return false;
9778
      }
9779
 
695 rajveer 9780
      boolean this_present_sessionId = true && this.isSetSessionId();
9781
      boolean that_present_sessionId = true && that.isSetSessionId();
9782
      if (this_present_sessionId || that_present_sessionId) {
9783
        if (!(this_present_sessionId && that_present_sessionId))
420 ashish 9784
          return false;
695 rajveer 9785
        if (!this.sessionId.equals(that.sessionId))
420 ashish 9786
          return false;
9787
      }
9788
 
695 rajveer 9789
      boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
9790
      boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
9791
      if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
9792
        if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
420 ashish 9793
          return false;
695 rajveer 9794
        if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
420 ashish 9795
          return false;
9796
      }
9797
 
695 rajveer 9798
      boolean this_present_description = true && this.isSetDescription();
9799
      boolean that_present_description = true && that.isSetDescription();
9800
      if (this_present_description || that_present_description) {
9801
        if (!(this_present_description && that_present_description))
420 ashish 9802
          return false;
695 rajveer 9803
        if (!this.description.equals(that.description))
420 ashish 9804
          return false;
9805
      }
9806
 
695 rajveer 9807
      boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
9808
      boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
9809
      if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
9810
        if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
420 ashish 9811
          return false;
695 rajveer 9812
        if (!this.gatewayTxnId.equals(that.gatewayTxnId))
420 ashish 9813
          return false;
9814
      }
9815
 
695 rajveer 9816
      boolean this_present_authCode = true && this.isSetAuthCode();
9817
      boolean that_present_authCode = true && that.isSetAuthCode();
9818
      if (this_present_authCode || that_present_authCode) {
9819
        if (!(this_present_authCode && that_present_authCode))
420 ashish 9820
          return false;
695 rajveer 9821
        if (!this.authCode.equals(that.authCode))
420 ashish 9822
          return false;
9823
      }
9824
 
695 rajveer 9825
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
9826
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
9827
      if (this_present_referenceCode || that_present_referenceCode) {
9828
        if (!(this_present_referenceCode && that_present_referenceCode))
420 ashish 9829
          return false;
695 rajveer 9830
        if (!this.referenceCode.equals(that.referenceCode))
420 ashish 9831
          return false;
9832
      }
9833
 
695 rajveer 9834
      boolean this_present_errorCode = true && this.isSetErrorCode();
9835
      boolean that_present_errorCode = true && that.isSetErrorCode();
9836
      if (this_present_errorCode || that_present_errorCode) {
9837
        if (!(this_present_errorCode && that_present_errorCode))
9838
          return false;
9839
        if (!this.errorCode.equals(that.errorCode))
9840
          return false;
9841
      }
9842
 
9843
      boolean this_present_status = true && this.isSetStatus();
9844
      boolean that_present_status = true && that.isSetStatus();
9845
      if (this_present_status || that_present_status) {
9846
        if (!(this_present_status && that_present_status))
9847
          return false;
9848
        if (!this.status.equals(that.status))
9849
          return false;
9850
      }
9851
 
1119 rajveer 9852
      boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
9853
      boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
9854
      if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
9855
        if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
9856
          return false;
9857
        if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
9858
          return false;
9859
      }
9860
 
695 rajveer 9861
      boolean this_present_attributes = true && this.isSetAttributes();
9862
      boolean that_present_attributes = true && that.isSetAttributes();
9863
      if (this_present_attributes || that_present_attributes) {
9864
        if (!(this_present_attributes && that_present_attributes))
9865
          return false;
9866
        if (!this.attributes.equals(that.attributes))
9867
          return false;
9868
      }
9869
 
420 ashish 9870
      return true;
9871
    }
9872
 
9873
    @Override
9874
    public int hashCode() {
9875
      return 0;
9876
    }
9877
 
695 rajveer 9878
    public int compareTo(updatePaymentDetails_args other) {
420 ashish 9879
      if (!getClass().equals(other.getClass())) {
9880
        return getClass().getName().compareTo(other.getClass().getName());
9881
      }
9882
 
9883
      int lastComparison = 0;
695 rajveer 9884
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
420 ashish 9885
 
3430 rajveer 9886
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 9887
      if (lastComparison != 0) {
9888
        return lastComparison;
9889
      }
3430 rajveer 9890
      if (isSetId()) {
9891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
9892
        if (lastComparison != 0) {
9893
          return lastComparison;
9894
        }
420 ashish 9895
      }
3430 rajveer 9896
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
420 ashish 9897
      if (lastComparison != 0) {
9898
        return lastComparison;
9899
      }
3430 rajveer 9900
      if (isSetGatewayPaymentId()) {
9901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
9902
        if (lastComparison != 0) {
9903
          return lastComparison;
9904
        }
420 ashish 9905
      }
3430 rajveer 9906
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
420 ashish 9907
      if (lastComparison != 0) {
9908
        return lastComparison;
9909
      }
3430 rajveer 9910
      if (isSetSessionId()) {
9911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
9912
        if (lastComparison != 0) {
9913
          return lastComparison;
9914
        }
420 ashish 9915
      }
3430 rajveer 9916
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
420 ashish 9917
      if (lastComparison != 0) {
9918
        return lastComparison;
9919
      }
3430 rajveer 9920
      if (isSetGatewayTxnStatus()) {
9921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
9922
        if (lastComparison != 0) {
9923
          return lastComparison;
9924
        }
420 ashish 9925
      }
3430 rajveer 9926
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
420 ashish 9927
      if (lastComparison != 0) {
9928
        return lastComparison;
9929
      }
3430 rajveer 9930
      if (isSetDescription()) {
9931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
9932
        if (lastComparison != 0) {
9933
          return lastComparison;
9934
        }
420 ashish 9935
      }
3430 rajveer 9936
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
420 ashish 9937
      if (lastComparison != 0) {
9938
        return lastComparison;
9939
      }
3430 rajveer 9940
      if (isSetGatewayTxnId()) {
9941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
9942
        if (lastComparison != 0) {
9943
          return lastComparison;
9944
        }
420 ashish 9945
      }
3430 rajveer 9946
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
420 ashish 9947
      if (lastComparison != 0) {
9948
        return lastComparison;
9949
      }
3430 rajveer 9950
      if (isSetAuthCode()) {
9951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
9952
        if (lastComparison != 0) {
9953
          return lastComparison;
9954
        }
420 ashish 9955
      }
3430 rajveer 9956
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
420 ashish 9957
      if (lastComparison != 0) {
9958
        return lastComparison;
9959
      }
3430 rajveer 9960
      if (isSetReferenceCode()) {
9961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
9962
        if (lastComparison != 0) {
9963
          return lastComparison;
9964
        }
420 ashish 9965
      }
3430 rajveer 9966
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
695 rajveer 9967
      if (lastComparison != 0) {
9968
        return lastComparison;
9969
      }
3430 rajveer 9970
      if (isSetErrorCode()) {
9971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
9972
        if (lastComparison != 0) {
9973
          return lastComparison;
9974
        }
695 rajveer 9975
      }
3430 rajveer 9976
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
695 rajveer 9977
      if (lastComparison != 0) {
9978
        return lastComparison;
9979
      }
3430 rajveer 9980
      if (isSetStatus()) {
9981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
9982
        if (lastComparison != 0) {
9983
          return lastComparison;
9984
        }
695 rajveer 9985
      }
3430 rajveer 9986
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1119 rajveer 9987
      if (lastComparison != 0) {
9988
        return lastComparison;
9989
      }
3430 rajveer 9990
      if (isSetGatewayTxnDate()) {
9991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
9992
        if (lastComparison != 0) {
9993
          return lastComparison;
9994
        }
1119 rajveer 9995
      }
3430 rajveer 9996
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
695 rajveer 9997
      if (lastComparison != 0) {
9998
        return lastComparison;
9999
      }
3430 rajveer 10000
      if (isSetAttributes()) {
10001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
10002
        if (lastComparison != 0) {
10003
          return lastComparison;
10004
        }
695 rajveer 10005
      }
420 ashish 10006
      return 0;
10007
    }
10008
 
3430 rajveer 10009
    public _Fields fieldForId(int fieldId) {
10010
      return _Fields.findByThriftId(fieldId);
10011
    }
10012
 
10013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10014
      org.apache.thrift.protocol.TField field;
420 ashish 10015
      iprot.readStructBegin();
10016
      while (true)
10017
      {
10018
        field = iprot.readFieldBegin();
3430 rajveer 10019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 10020
          break;
10021
        }
3430 rajveer 10022
        switch (field.id) {
10023
          case 1: // ID
10024
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10025
              this.id = iprot.readI64();
10026
              setIdIsSet(true);
10027
            } else { 
10028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10029
            }
10030
            break;
10031
          case 2: // GATEWAY_PAYMENT_ID
10032
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10033
              this.gatewayPaymentId = iprot.readString();
10034
            } else { 
10035
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10036
            }
10037
            break;
10038
          case 3: // SESSION_ID
10039
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10040
              this.sessionId = iprot.readString();
10041
            } else { 
10042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10043
            }
10044
            break;
10045
          case 4: // GATEWAY_TXN_STATUS
10046
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10047
              this.gatewayTxnStatus = iprot.readString();
10048
            } else { 
10049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10050
            }
10051
            break;
10052
          case 5: // DESCRIPTION
10053
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10054
              this.description = iprot.readString();
10055
            } else { 
10056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10057
            }
10058
            break;
10059
          case 6: // GATEWAY_TXN_ID
10060
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10061
              this.gatewayTxnId = iprot.readString();
10062
            } else { 
10063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10064
            }
10065
            break;
10066
          case 7: // AUTH_CODE
10067
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10068
              this.authCode = iprot.readString();
10069
            } else { 
10070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10071
            }
10072
            break;
10073
          case 8: // REFERENCE_CODE
10074
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10075
              this.referenceCode = iprot.readString();
10076
            } else { 
10077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10078
            }
10079
            break;
10080
          case 9: // ERROR_CODE
10081
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10082
              this.errorCode = iprot.readString();
10083
            } else { 
10084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10085
            }
10086
            break;
10087
          case 10: // STATUS
10088
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10089
              this.status = PaymentStatus.findByValue(iprot.readI32());
10090
            } else { 
10091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10092
            }
10093
            break;
10094
          case 11: // GATEWAY_TXN_DATE
10095
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10096
              this.gatewayTxnDate = iprot.readString();
10097
            } else { 
10098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10099
            }
10100
            break;
10101
          case 12: // ATTRIBUTES
10102
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10103
              {
4600 varun.gupt 10104
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
10105
                this.attributes = new ArrayList<Attribute>(_list32.size);
10106
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
695 rajveer 10107
                {
4600 varun.gupt 10108
                  Attribute _elem34; // required
10109
                  _elem34 = new Attribute();
10110
                  _elem34.read(iprot);
10111
                  this.attributes.add(_elem34);
695 rajveer 10112
                }
3430 rajveer 10113
                iprot.readListEnd();
695 rajveer 10114
              }
3430 rajveer 10115
            } else { 
10116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10117
            }
10118
            break;
10119
          default:
10120
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 10121
        }
3430 rajveer 10122
        iprot.readFieldEnd();
420 ashish 10123
      }
10124
      iprot.readStructEnd();
10125
      validate();
10126
    }
10127
 
3430 rajveer 10128
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 10129
      validate();
10130
 
10131
      oprot.writeStructBegin(STRUCT_DESC);
10132
      oprot.writeFieldBegin(ID_FIELD_DESC);
10133
      oprot.writeI64(this.id);
10134
      oprot.writeFieldEnd();
695 rajveer 10135
      if (this.gatewayPaymentId != null) {
10136
        oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
10137
        oprot.writeString(this.gatewayPaymentId);
420 ashish 10138
        oprot.writeFieldEnd();
10139
      }
695 rajveer 10140
      if (this.sessionId != null) {
10141
        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
10142
        oprot.writeString(this.sessionId);
420 ashish 10143
        oprot.writeFieldEnd();
10144
      }
695 rajveer 10145
      if (this.gatewayTxnStatus != null) {
10146
        oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
10147
        oprot.writeString(this.gatewayTxnStatus);
420 ashish 10148
        oprot.writeFieldEnd();
10149
      }
695 rajveer 10150
      if (this.description != null) {
10151
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
10152
        oprot.writeString(this.description);
420 ashish 10153
        oprot.writeFieldEnd();
10154
      }
695 rajveer 10155
      if (this.gatewayTxnId != null) {
10156
        oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
10157
        oprot.writeString(this.gatewayTxnId);
420 ashish 10158
        oprot.writeFieldEnd();
10159
      }
695 rajveer 10160
      if (this.authCode != null) {
420 ashish 10161
        oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
695 rajveer 10162
        oprot.writeString(this.authCode);
420 ashish 10163
        oprot.writeFieldEnd();
10164
      }
695 rajveer 10165
      if (this.referenceCode != null) {
10166
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
10167
        oprot.writeString(this.referenceCode);
420 ashish 10168
        oprot.writeFieldEnd();
10169
      }
695 rajveer 10170
      if (this.errorCode != null) {
10171
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
10172
        oprot.writeString(this.errorCode);
10173
        oprot.writeFieldEnd();
10174
      }
10175
      if (this.status != null) {
10176
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
10177
        oprot.writeI32(this.status.getValue());
10178
        oprot.writeFieldEnd();
10179
      }
1119 rajveer 10180
      if (this.gatewayTxnDate != null) {
10181
        oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
10182
        oprot.writeString(this.gatewayTxnDate);
10183
        oprot.writeFieldEnd();
10184
      }
695 rajveer 10185
      if (this.attributes != null) {
10186
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
10187
        {
3430 rajveer 10188
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
4600 varun.gupt 10189
          for (Attribute _iter35 : this.attributes)
695 rajveer 10190
          {
4600 varun.gupt 10191
            _iter35.write(oprot);
695 rajveer 10192
          }
10193
          oprot.writeListEnd();
10194
        }
10195
        oprot.writeFieldEnd();
10196
      }
420 ashish 10197
      oprot.writeFieldStop();
10198
      oprot.writeStructEnd();
10199
    }
10200
 
10201
    @Override
10202
    public String toString() {
695 rajveer 10203
      StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
420 ashish 10204
      boolean first = true;
10205
 
10206
      sb.append("id:");
10207
      sb.append(this.id);
10208
      first = false;
10209
      if (!first) sb.append(", ");
695 rajveer 10210
      sb.append("gatewayPaymentId:");
10211
      if (this.gatewayPaymentId == null) {
420 ashish 10212
        sb.append("null");
10213
      } else {
695 rajveer 10214
        sb.append(this.gatewayPaymentId);
420 ashish 10215
      }
10216
      first = false;
10217
      if (!first) sb.append(", ");
695 rajveer 10218
      sb.append("sessionId:");
10219
      if (this.sessionId == null) {
420 ashish 10220
        sb.append("null");
10221
      } else {
695 rajveer 10222
        sb.append(this.sessionId);
420 ashish 10223
      }
10224
      first = false;
10225
      if (!first) sb.append(", ");
695 rajveer 10226
      sb.append("gatewayTxnStatus:");
10227
      if (this.gatewayTxnStatus == null) {
420 ashish 10228
        sb.append("null");
10229
      } else {
695 rajveer 10230
        sb.append(this.gatewayTxnStatus);
420 ashish 10231
      }
10232
      first = false;
10233
      if (!first) sb.append(", ");
695 rajveer 10234
      sb.append("description:");
10235
      if (this.description == null) {
420 ashish 10236
        sb.append("null");
10237
      } else {
695 rajveer 10238
        sb.append(this.description);
420 ashish 10239
      }
10240
      first = false;
10241
      if (!first) sb.append(", ");
695 rajveer 10242
      sb.append("gatewayTxnId:");
10243
      if (this.gatewayTxnId == null) {
420 ashish 10244
        sb.append("null");
10245
      } else {
695 rajveer 10246
        sb.append(this.gatewayTxnId);
420 ashish 10247
      }
10248
      first = false;
10249
      if (!first) sb.append(", ");
695 rajveer 10250
      sb.append("authCode:");
10251
      if (this.authCode == null) {
420 ashish 10252
        sb.append("null");
10253
      } else {
695 rajveer 10254
        sb.append(this.authCode);
420 ashish 10255
      }
10256
      first = false;
10257
      if (!first) sb.append(", ");
695 rajveer 10258
      sb.append("referenceCode:");
10259
      if (this.referenceCode == null) {
420 ashish 10260
        sb.append("null");
10261
      } else {
695 rajveer 10262
        sb.append(this.referenceCode);
420 ashish 10263
      }
10264
      first = false;
695 rajveer 10265
      if (!first) sb.append(", ");
10266
      sb.append("errorCode:");
10267
      if (this.errorCode == null) {
10268
        sb.append("null");
10269
      } else {
10270
        sb.append(this.errorCode);
10271
      }
10272
      first = false;
10273
      if (!first) sb.append(", ");
10274
      sb.append("status:");
10275
      if (this.status == null) {
10276
        sb.append("null");
10277
      } else {
10278
        sb.append(this.status);
10279
      }
10280
      first = false;
10281
      if (!first) sb.append(", ");
1119 rajveer 10282
      sb.append("gatewayTxnDate:");
10283
      if (this.gatewayTxnDate == null) {
10284
        sb.append("null");
10285
      } else {
10286
        sb.append(this.gatewayTxnDate);
10287
      }
10288
      first = false;
10289
      if (!first) sb.append(", ");
695 rajveer 10290
      sb.append("attributes:");
10291
      if (this.attributes == null) {
10292
        sb.append("null");
10293
      } else {
10294
        sb.append(this.attributes);
10295
      }
10296
      first = false;
420 ashish 10297
      sb.append(")");
10298
      return sb.toString();
10299
    }
10300
 
3430 rajveer 10301
    public void validate() throws org.apache.thrift.TException {
420 ashish 10302
      // check for required fields
10303
    }
10304
 
3430 rajveer 10305
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10306
      try {
10307
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10308
      } catch (org.apache.thrift.TException te) {
10309
        throw new java.io.IOException(te);
10310
      }
10311
    }
10312
 
10313
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10314
      try {
10315
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10316
        __isset_bit_vector = new BitSet(1);
10317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10318
      } catch (org.apache.thrift.TException te) {
10319
        throw new java.io.IOException(te);
10320
      }
10321
    }
10322
 
420 ashish 10323
  }
10324
 
3430 rajveer 10325
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
10326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
420 ashish 10327
 
3430 rajveer 10328
    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);
10329
    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 10330
 
3430 rajveer 10331
    private boolean success; // required
10332
    private PaymentException pe; // required
420 ashish 10333
 
10334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 10336
      SUCCESS((short)0, "success"),
420 ashish 10337
      PE((short)1, "pe");
10338
 
10339
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10340
 
10341
      static {
10342
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10343
          byName.put(field.getFieldName(), field);
10344
        }
10345
      }
10346
 
10347
      /**
10348
       * Find the _Fields constant that matches fieldId, or null if its not found.
10349
       */
10350
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10351
        switch(fieldId) {
10352
          case 0: // SUCCESS
10353
            return SUCCESS;
10354
          case 1: // PE
10355
            return PE;
10356
          default:
10357
            return null;
10358
        }
420 ashish 10359
      }
10360
 
10361
      /**
10362
       * Find the _Fields constant that matches fieldId, throwing an exception
10363
       * if it is not found.
10364
       */
10365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10366
        _Fields fields = findByThriftId(fieldId);
10367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10368
        return fields;
10369
      }
10370
 
10371
      /**
10372
       * Find the _Fields constant that matches name, or null if its not found.
10373
       */
10374
      public static _Fields findByName(String name) {
10375
        return byName.get(name);
10376
      }
10377
 
10378
      private final short _thriftId;
10379
      private final String _fieldName;
10380
 
10381
      _Fields(short thriftId, String fieldName) {
10382
        _thriftId = thriftId;
10383
        _fieldName = fieldName;
10384
      }
10385
 
10386
      public short getThriftFieldId() {
10387
        return _thriftId;
10388
      }
10389
 
10390
      public String getFieldName() {
10391
        return _fieldName;
10392
      }
10393
    }
10394
 
10395
    // isset id assignments
695 rajveer 10396
    private static final int __SUCCESS_ISSET_ID = 0;
10397
    private BitSet __isset_bit_vector = new BitSet(1);
420 ashish 10398
 
3430 rajveer 10399
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 10400
    static {
3430 rajveer 10401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10402
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10404
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
420 ashish 10408
    }
10409
 
695 rajveer 10410
    public updatePaymentDetails_result() {
420 ashish 10411
    }
10412
 
695 rajveer 10413
    public updatePaymentDetails_result(
10414
      boolean success,
420 ashish 10415
      PaymentException pe)
10416
    {
10417
      this();
695 rajveer 10418
      this.success = success;
10419
      setSuccessIsSet(true);
420 ashish 10420
      this.pe = pe;
10421
    }
10422
 
10423
    /**
10424
     * Performs a deep copy on <i>other</i>.
10425
     */
695 rajveer 10426
    public updatePaymentDetails_result(updatePaymentDetails_result other) {
10427
      __isset_bit_vector.clear();
10428
      __isset_bit_vector.or(other.__isset_bit_vector);
10429
      this.success = other.success;
420 ashish 10430
      if (other.isSetPe()) {
10431
        this.pe = new PaymentException(other.pe);
10432
      }
10433
    }
10434
 
695 rajveer 10435
    public updatePaymentDetails_result deepCopy() {
10436
      return new updatePaymentDetails_result(this);
420 ashish 10437
    }
10438
 
3430 rajveer 10439
    @Override
10440
    public void clear() {
10441
      setSuccessIsSet(false);
10442
      this.success = false;
10443
      this.pe = null;
420 ashish 10444
    }
10445
 
695 rajveer 10446
    public boolean isSuccess() {
10447
      return this.success;
10448
    }
10449
 
3430 rajveer 10450
    public void setSuccess(boolean success) {
695 rajveer 10451
      this.success = success;
10452
      setSuccessIsSet(true);
10453
    }
10454
 
10455
    public void unsetSuccess() {
10456
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10457
    }
10458
 
3430 rajveer 10459
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
695 rajveer 10460
    public boolean isSetSuccess() {
10461
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10462
    }
10463
 
10464
    public void setSuccessIsSet(boolean value) {
10465
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10466
    }
10467
 
420 ashish 10468
    public PaymentException getPe() {
10469
      return this.pe;
10470
    }
10471
 
3430 rajveer 10472
    public void setPe(PaymentException pe) {
420 ashish 10473
      this.pe = pe;
10474
    }
10475
 
10476
    public void unsetPe() {
10477
      this.pe = null;
10478
    }
10479
 
3430 rajveer 10480
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 10481
    public boolean isSetPe() {
10482
      return this.pe != null;
10483
    }
10484
 
10485
    public void setPeIsSet(boolean value) {
10486
      if (!value) {
10487
        this.pe = null;
10488
      }
10489
    }
10490
 
10491
    public void setFieldValue(_Fields field, Object value) {
10492
      switch (field) {
695 rajveer 10493
      case SUCCESS:
10494
        if (value == null) {
10495
          unsetSuccess();
10496
        } else {
10497
          setSuccess((Boolean)value);
10498
        }
10499
        break;
10500
 
420 ashish 10501
      case PE:
10502
        if (value == null) {
10503
          unsetPe();
10504
        } else {
10505
          setPe((PaymentException)value);
10506
        }
10507
        break;
10508
 
10509
      }
10510
    }
10511
 
10512
    public Object getFieldValue(_Fields field) {
10513
      switch (field) {
695 rajveer 10514
      case SUCCESS:
3430 rajveer 10515
        return Boolean.valueOf(isSuccess());
695 rajveer 10516
 
420 ashish 10517
      case PE:
10518
        return getPe();
10519
 
10520
      }
10521
      throw new IllegalStateException();
10522
    }
10523
 
3430 rajveer 10524
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10525
    public boolean isSet(_Fields field) {
10526
      if (field == null) {
10527
        throw new IllegalArgumentException();
10528
      }
420 ashish 10529
 
10530
      switch (field) {
695 rajveer 10531
      case SUCCESS:
10532
        return isSetSuccess();
420 ashish 10533
      case PE:
10534
        return isSetPe();
10535
      }
10536
      throw new IllegalStateException();
10537
    }
10538
 
10539
    @Override
10540
    public boolean equals(Object that) {
10541
      if (that == null)
10542
        return false;
695 rajveer 10543
      if (that instanceof updatePaymentDetails_result)
10544
        return this.equals((updatePaymentDetails_result)that);
420 ashish 10545
      return false;
10546
    }
10547
 
695 rajveer 10548
    public boolean equals(updatePaymentDetails_result that) {
420 ashish 10549
      if (that == null)
10550
        return false;
10551
 
695 rajveer 10552
      boolean this_present_success = true;
10553
      boolean that_present_success = true;
10554
      if (this_present_success || that_present_success) {
10555
        if (!(this_present_success && that_present_success))
10556
          return false;
10557
        if (this.success != that.success)
10558
          return false;
10559
      }
10560
 
420 ashish 10561
      boolean this_present_pe = true && this.isSetPe();
10562
      boolean that_present_pe = true && that.isSetPe();
10563
      if (this_present_pe || that_present_pe) {
10564
        if (!(this_present_pe && that_present_pe))
10565
          return false;
10566
        if (!this.pe.equals(that.pe))
10567
          return false;
10568
      }
10569
 
10570
      return true;
10571
    }
10572
 
10573
    @Override
10574
    public int hashCode() {
10575
      return 0;
10576
    }
10577
 
695 rajveer 10578
    public int compareTo(updatePaymentDetails_result other) {
420 ashish 10579
      if (!getClass().equals(other.getClass())) {
10580
        return getClass().getName().compareTo(other.getClass().getName());
10581
      }
10582
 
10583
      int lastComparison = 0;
695 rajveer 10584
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
420 ashish 10585
 
3430 rajveer 10586
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 10587
      if (lastComparison != 0) {
10588
        return lastComparison;
10589
      }
3430 rajveer 10590
      if (isSetSuccess()) {
10591
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10592
        if (lastComparison != 0) {
10593
          return lastComparison;
10594
        }
695 rajveer 10595
      }
3430 rajveer 10596
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 10597
      if (lastComparison != 0) {
10598
        return lastComparison;
10599
      }
3430 rajveer 10600
      if (isSetPe()) {
10601
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10602
        if (lastComparison != 0) {
10603
          return lastComparison;
10604
        }
420 ashish 10605
      }
10606
      return 0;
10607
    }
10608
 
3430 rajveer 10609
    public _Fields fieldForId(int fieldId) {
10610
      return _Fields.findByThriftId(fieldId);
10611
    }
10612
 
10613
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10614
      org.apache.thrift.protocol.TField field;
420 ashish 10615
      iprot.readStructBegin();
10616
      while (true)
10617
      {
10618
        field = iprot.readFieldBegin();
3430 rajveer 10619
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 10620
          break;
10621
        }
3430 rajveer 10622
        switch (field.id) {
10623
          case 0: // SUCCESS
10624
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10625
              this.success = iprot.readBool();
10626
              setSuccessIsSet(true);
10627
            } else { 
10628
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10629
            }
10630
            break;
10631
          case 1: // PE
10632
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10633
              this.pe = new PaymentException();
10634
              this.pe.read(iprot);
10635
            } else { 
10636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10637
            }
10638
            break;
10639
          default:
10640
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 10641
        }
3430 rajveer 10642
        iprot.readFieldEnd();
420 ashish 10643
      }
10644
      iprot.readStructEnd();
10645
      validate();
10646
    }
10647
 
3430 rajveer 10648
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 10649
      oprot.writeStructBegin(STRUCT_DESC);
10650
 
695 rajveer 10651
      if (this.isSetSuccess()) {
10652
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10653
        oprot.writeBool(this.success);
10654
        oprot.writeFieldEnd();
10655
      } else if (this.isSetPe()) {
420 ashish 10656
        oprot.writeFieldBegin(PE_FIELD_DESC);
10657
        this.pe.write(oprot);
10658
        oprot.writeFieldEnd();
10659
      }
10660
      oprot.writeFieldStop();
10661
      oprot.writeStructEnd();
10662
    }
10663
 
10664
    @Override
10665
    public String toString() {
695 rajveer 10666
      StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
420 ashish 10667
      boolean first = true;
10668
 
695 rajveer 10669
      sb.append("success:");
10670
      sb.append(this.success);
10671
      first = false;
10672
      if (!first) sb.append(", ");
420 ashish 10673
      sb.append("pe:");
10674
      if (this.pe == null) {
10675
        sb.append("null");
10676
      } else {
10677
        sb.append(this.pe);
10678
      }
10679
      first = false;
10680
      sb.append(")");
10681
      return sb.toString();
10682
    }
10683
 
3430 rajveer 10684
    public void validate() throws org.apache.thrift.TException {
420 ashish 10685
      // check for required fields
10686
    }
10687
 
3430 rajveer 10688
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10689
      try {
10690
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10691
      } catch (org.apache.thrift.TException te) {
10692
        throw new java.io.IOException(te);
10693
      }
10694
    }
10695
 
10696
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10697
      try {
10698
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10699
      } catch (org.apache.thrift.TException te) {
10700
        throw new java.io.IOException(te);
10701
      }
10702
    }
10703
 
420 ashish 10704
  }
10705
 
3430 rajveer 10706
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
10707
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
1629 ankur.sing 10708
 
10709
 
10710
 
10711
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10712
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 10713
;
10714
 
10715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10716
 
10717
      static {
10718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10719
          byName.put(field.getFieldName(), field);
10720
        }
10721
      }
10722
 
10723
      /**
10724
       * Find the _Fields constant that matches fieldId, or null if its not found.
10725
       */
10726
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10727
        switch(fieldId) {
10728
          default:
10729
            return null;
10730
        }
1629 ankur.sing 10731
      }
10732
 
10733
      /**
10734
       * Find the _Fields constant that matches fieldId, throwing an exception
10735
       * if it is not found.
10736
       */
10737
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10738
        _Fields fields = findByThriftId(fieldId);
10739
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10740
        return fields;
10741
      }
10742
 
10743
      /**
10744
       * Find the _Fields constant that matches name, or null if its not found.
10745
       */
10746
      public static _Fields findByName(String name) {
10747
        return byName.get(name);
10748
      }
10749
 
10750
      private final short _thriftId;
10751
      private final String _fieldName;
10752
 
10753
      _Fields(short thriftId, String fieldName) {
10754
        _thriftId = thriftId;
10755
        _fieldName = fieldName;
10756
      }
10757
 
10758
      public short getThriftFieldId() {
10759
        return _thriftId;
10760
      }
10761
 
10762
      public String getFieldName() {
10763
        return _fieldName;
10764
      }
10765
    }
3430 rajveer 10766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 10767
    static {
3430 rajveer 10768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
1629 ankur.sing 10771
    }
10772
 
1731 ankur.sing 10773
    public getSuccessfulPaymentsAmountRange_args() {
1629 ankur.sing 10774
    }
10775
 
10776
    /**
10777
     * Performs a deep copy on <i>other</i>.
10778
     */
1731 ankur.sing 10779
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 10780
    }
10781
 
1731 ankur.sing 10782
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
10783
      return new getSuccessfulPaymentsAmountRange_args(this);
1629 ankur.sing 10784
    }
10785
 
3430 rajveer 10786
    @Override
10787
    public void clear() {
1629 ankur.sing 10788
    }
10789
 
10790
    public void setFieldValue(_Fields field, Object value) {
10791
      switch (field) {
10792
      }
10793
    }
10794
 
10795
    public Object getFieldValue(_Fields field) {
10796
      switch (field) {
10797
      }
10798
      throw new IllegalStateException();
10799
    }
10800
 
3430 rajveer 10801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10802
    public boolean isSet(_Fields field) {
10803
      if (field == null) {
10804
        throw new IllegalArgumentException();
10805
      }
1629 ankur.sing 10806
 
10807
      switch (field) {
10808
      }
10809
      throw new IllegalStateException();
10810
    }
10811
 
10812
    @Override
10813
    public boolean equals(Object that) {
10814
      if (that == null)
10815
        return false;
1731 ankur.sing 10816
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
10817
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
1629 ankur.sing 10818
      return false;
10819
    }
10820
 
1731 ankur.sing 10821
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
1629 ankur.sing 10822
      if (that == null)
10823
        return false;
10824
 
10825
      return true;
10826
    }
10827
 
10828
    @Override
10829
    public int hashCode() {
10830
      return 0;
10831
    }
10832
 
1731 ankur.sing 10833
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 10834
      if (!getClass().equals(other.getClass())) {
10835
        return getClass().getName().compareTo(other.getClass().getName());
10836
      }
10837
 
10838
      int lastComparison = 0;
1731 ankur.sing 10839
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
1629 ankur.sing 10840
 
10841
      return 0;
10842
    }
10843
 
3430 rajveer 10844
    public _Fields fieldForId(int fieldId) {
10845
      return _Fields.findByThriftId(fieldId);
10846
    }
10847
 
10848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10849
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 10850
      iprot.readStructBegin();
10851
      while (true)
10852
      {
10853
        field = iprot.readFieldBegin();
3430 rajveer 10854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 10855
          break;
10856
        }
3430 rajveer 10857
        switch (field.id) {
10858
          default:
10859
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 10860
        }
3430 rajveer 10861
        iprot.readFieldEnd();
1629 ankur.sing 10862
      }
10863
      iprot.readStructEnd();
10864
      validate();
10865
    }
10866
 
3430 rajveer 10867
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 10868
      validate();
10869
 
10870
      oprot.writeStructBegin(STRUCT_DESC);
10871
      oprot.writeFieldStop();
10872
      oprot.writeStructEnd();
10873
    }
10874
 
10875
    @Override
10876
    public String toString() {
1731 ankur.sing 10877
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
1629 ankur.sing 10878
      boolean first = true;
10879
 
10880
      sb.append(")");
10881
      return sb.toString();
10882
    }
10883
 
3430 rajveer 10884
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 10885
      // check for required fields
10886
    }
10887
 
3430 rajveer 10888
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10889
      try {
10890
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10891
      } catch (org.apache.thrift.TException te) {
10892
        throw new java.io.IOException(te);
10893
      }
10894
    }
10895
 
10896
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10897
      try {
10898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10899
      } catch (org.apache.thrift.TException te) {
10900
        throw new java.io.IOException(te);
10901
      }
10902
    }
10903
 
1629 ankur.sing 10904
  }
10905
 
3430 rajveer 10906
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
10907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
1629 ankur.sing 10908
 
3430 rajveer 10909
    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 10910
 
3430 rajveer 10911
    private List<Double> success; // required
1629 ankur.sing 10912
 
10913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 10915
      SUCCESS((short)0, "success");
10916
 
10917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10918
 
10919
      static {
10920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10921
          byName.put(field.getFieldName(), field);
10922
        }
10923
      }
10924
 
10925
      /**
10926
       * Find the _Fields constant that matches fieldId, or null if its not found.
10927
       */
10928
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10929
        switch(fieldId) {
10930
          case 0: // SUCCESS
10931
            return SUCCESS;
10932
          default:
10933
            return null;
10934
        }
1629 ankur.sing 10935
      }
10936
 
10937
      /**
10938
       * Find the _Fields constant that matches fieldId, throwing an exception
10939
       * if it is not found.
10940
       */
10941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10942
        _Fields fields = findByThriftId(fieldId);
10943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10944
        return fields;
10945
      }
10946
 
10947
      /**
10948
       * Find the _Fields constant that matches name, or null if its not found.
10949
       */
10950
      public static _Fields findByName(String name) {
10951
        return byName.get(name);
10952
      }
10953
 
10954
      private final short _thriftId;
10955
      private final String _fieldName;
10956
 
10957
      _Fields(short thriftId, String fieldName) {
10958
        _thriftId = thriftId;
10959
        _fieldName = fieldName;
10960
      }
10961
 
10962
      public short getThriftFieldId() {
10963
        return _thriftId;
10964
      }
10965
 
10966
      public String getFieldName() {
10967
        return _fieldName;
10968
      }
10969
    }
10970
 
10971
    // isset id assignments
10972
 
3430 rajveer 10973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 10974
    static {
3430 rajveer 10975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10977
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10978
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
10979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
1629 ankur.sing 10981
    }
10982
 
1731 ankur.sing 10983
    public getSuccessfulPaymentsAmountRange_result() {
1629 ankur.sing 10984
    }
10985
 
1731 ankur.sing 10986
    public getSuccessfulPaymentsAmountRange_result(
10987
      List<Double> success)
1629 ankur.sing 10988
    {
10989
      this();
10990
      this.success = success;
10991
    }
10992
 
10993
    /**
10994
     * Performs a deep copy on <i>other</i>.
10995
     */
1731 ankur.sing 10996
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
10997
      if (other.isSetSuccess()) {
10998
        List<Double> __this__success = new ArrayList<Double>();
10999
        for (Double other_element : other.success) {
11000
          __this__success.add(other_element);
1629 ankur.sing 11001
        }
1731 ankur.sing 11002
        this.success = __this__success;
1629 ankur.sing 11003
      }
11004
    }
11005
 
1731 ankur.sing 11006
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
11007
      return new getSuccessfulPaymentsAmountRange_result(this);
1629 ankur.sing 11008
    }
11009
 
3430 rajveer 11010
    @Override
11011
    public void clear() {
11012
      this.success = null;
1629 ankur.sing 11013
    }
11014
 
1731 ankur.sing 11015
    public int getSuccessSize() {
11016
      return (this.success == null) ? 0 : this.success.size();
1629 ankur.sing 11017
    }
11018
 
1731 ankur.sing 11019
    public java.util.Iterator<Double> getSuccessIterator() {
11020
      return (this.success == null) ? null : this.success.iterator();
1629 ankur.sing 11021
    }
11022
 
1731 ankur.sing 11023
    public void addToSuccess(double elem) {
11024
      if (this.success == null) {
11025
        this.success = new ArrayList<Double>();
1629 ankur.sing 11026
      }
1731 ankur.sing 11027
      this.success.add(elem);
1629 ankur.sing 11028
    }
11029
 
1731 ankur.sing 11030
    public List<Double> getSuccess() {
1629 ankur.sing 11031
      return this.success;
11032
    }
11033
 
3430 rajveer 11034
    public void setSuccess(List<Double> success) {
1629 ankur.sing 11035
      this.success = success;
11036
    }
11037
 
11038
    public void unsetSuccess() {
1731 ankur.sing 11039
      this.success = null;
1629 ankur.sing 11040
    }
11041
 
3430 rajveer 11042
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1629 ankur.sing 11043
    public boolean isSetSuccess() {
1731 ankur.sing 11044
      return this.success != null;
1629 ankur.sing 11045
    }
11046
 
11047
    public void setSuccessIsSet(boolean value) {
1731 ankur.sing 11048
      if (!value) {
11049
        this.success = null;
11050
      }
1629 ankur.sing 11051
    }
11052
 
11053
    public void setFieldValue(_Fields field, Object value) {
11054
      switch (field) {
11055
      case SUCCESS:
11056
        if (value == null) {
11057
          unsetSuccess();
11058
        } else {
1731 ankur.sing 11059
          setSuccess((List<Double>)value);
1629 ankur.sing 11060
        }
11061
        break;
11062
 
11063
      }
11064
    }
11065
 
11066
    public Object getFieldValue(_Fields field) {
11067
      switch (field) {
11068
      case SUCCESS:
1731 ankur.sing 11069
        return getSuccess();
1629 ankur.sing 11070
 
11071
      }
11072
      throw new IllegalStateException();
11073
    }
11074
 
3430 rajveer 11075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11076
    public boolean isSet(_Fields field) {
11077
      if (field == null) {
11078
        throw new IllegalArgumentException();
11079
      }
1629 ankur.sing 11080
 
11081
      switch (field) {
11082
      case SUCCESS:
11083
        return isSetSuccess();
11084
      }
11085
      throw new IllegalStateException();
11086
    }
11087
 
11088
    @Override
11089
    public boolean equals(Object that) {
11090
      if (that == null)
11091
        return false;
1731 ankur.sing 11092
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
11093
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
1629 ankur.sing 11094
      return false;
11095
    }
11096
 
1731 ankur.sing 11097
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
1629 ankur.sing 11098
      if (that == null)
11099
        return false;
11100
 
1731 ankur.sing 11101
      boolean this_present_success = true && this.isSetSuccess();
11102
      boolean that_present_success = true && that.isSetSuccess();
1629 ankur.sing 11103
      if (this_present_success || that_present_success) {
11104
        if (!(this_present_success && that_present_success))
11105
          return false;
1731 ankur.sing 11106
        if (!this.success.equals(that.success))
1629 ankur.sing 11107
          return false;
11108
      }
11109
 
11110
      return true;
11111
    }
11112
 
11113
    @Override
11114
    public int hashCode() {
11115
      return 0;
11116
    }
11117
 
1731 ankur.sing 11118
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
1629 ankur.sing 11119
      if (!getClass().equals(other.getClass())) {
11120
        return getClass().getName().compareTo(other.getClass().getName());
11121
      }
11122
 
11123
      int lastComparison = 0;
1731 ankur.sing 11124
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
1629 ankur.sing 11125
 
3430 rajveer 11126
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1629 ankur.sing 11127
      if (lastComparison != 0) {
11128
        return lastComparison;
11129
      }
3430 rajveer 11130
      if (isSetSuccess()) {
11131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11132
        if (lastComparison != 0) {
11133
          return lastComparison;
11134
        }
1629 ankur.sing 11135
      }
11136
      return 0;
11137
    }
11138
 
3430 rajveer 11139
    public _Fields fieldForId(int fieldId) {
11140
      return _Fields.findByThriftId(fieldId);
11141
    }
11142
 
11143
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11144
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 11145
      iprot.readStructBegin();
11146
      while (true)
11147
      {
11148
        field = iprot.readFieldBegin();
3430 rajveer 11149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 11150
          break;
11151
        }
3430 rajveer 11152
        switch (field.id) {
11153
          case 0: // SUCCESS
11154
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11155
              {
4600 varun.gupt 11156
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
11157
                this.success = new ArrayList<Double>(_list36.size);
11158
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
1731 ankur.sing 11159
                {
4600 varun.gupt 11160
                  double _elem38; // required
11161
                  _elem38 = iprot.readDouble();
11162
                  this.success.add(_elem38);
1731 ankur.sing 11163
                }
3430 rajveer 11164
                iprot.readListEnd();
1629 ankur.sing 11165
              }
3430 rajveer 11166
            } else { 
11167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11168
            }
11169
            break;
11170
          default:
11171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 11172
        }
3430 rajveer 11173
        iprot.readFieldEnd();
1629 ankur.sing 11174
      }
11175
      iprot.readStructEnd();
11176
      validate();
11177
    }
11178
 
3430 rajveer 11179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 11180
      oprot.writeStructBegin(STRUCT_DESC);
11181
 
11182
      if (this.isSetSuccess()) {
11183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1731 ankur.sing 11184
        {
3430 rajveer 11185
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
4600 varun.gupt 11186
          for (double _iter39 : this.success)
1731 ankur.sing 11187
          {
4600 varun.gupt 11188
            oprot.writeDouble(_iter39);
1731 ankur.sing 11189
          }
11190
          oprot.writeListEnd();
11191
        }
1629 ankur.sing 11192
        oprot.writeFieldEnd();
11193
      }
11194
      oprot.writeFieldStop();
11195
      oprot.writeStructEnd();
11196
    }
11197
 
11198
    @Override
11199
    public String toString() {
1731 ankur.sing 11200
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
1629 ankur.sing 11201
      boolean first = true;
11202
 
11203
      sb.append("success:");
1731 ankur.sing 11204
      if (this.success == null) {
11205
        sb.append("null");
11206
      } else {
11207
        sb.append(this.success);
11208
      }
1629 ankur.sing 11209
      first = false;
11210
      sb.append(")");
11211
      return sb.toString();
11212
    }
11213
 
3430 rajveer 11214
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 11215
      // check for required fields
11216
    }
11217
 
3430 rajveer 11218
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11219
      try {
11220
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11221
      } catch (org.apache.thrift.TException te) {
11222
        throw new java.io.IOException(te);
11223
      }
11224
    }
11225
 
11226
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11227
      try {
11228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11229
      } catch (org.apache.thrift.TException te) {
11230
        throw new java.io.IOException(te);
11231
      }
11232
    }
11233
 
1629 ankur.sing 11234
  }
11235
 
3430 rajveer 11236
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
11237
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
2462 chandransh 11238
 
3430 rajveer 11239
    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 11240
 
3430 rajveer 11241
    private long merchantPaymentId; // required
2462 chandransh 11242
 
11243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11244
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 11245
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
11246
 
11247
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11248
 
11249
      static {
11250
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11251
          byName.put(field.getFieldName(), field);
11252
        }
11253
      }
11254
 
11255
      /**
11256
       * Find the _Fields constant that matches fieldId, or null if its not found.
11257
       */
11258
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11259
        switch(fieldId) {
11260
          case 1: // MERCHANT_PAYMENT_ID
11261
            return MERCHANT_PAYMENT_ID;
11262
          default:
11263
            return null;
11264
        }
2462 chandransh 11265
      }
11266
 
11267
      /**
11268
       * Find the _Fields constant that matches fieldId, throwing an exception
11269
       * if it is not found.
11270
       */
11271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11272
        _Fields fields = findByThriftId(fieldId);
11273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11274
        return fields;
11275
      }
11276
 
11277
      /**
11278
       * Find the _Fields constant that matches name, or null if its not found.
11279
       */
11280
      public static _Fields findByName(String name) {
11281
        return byName.get(name);
11282
      }
11283
 
11284
      private final short _thriftId;
11285
      private final String _fieldName;
11286
 
11287
      _Fields(short thriftId, String fieldName) {
11288
        _thriftId = thriftId;
11289
        _fieldName = fieldName;
11290
      }
11291
 
11292
      public short getThriftFieldId() {
11293
        return _thriftId;
11294
      }
11295
 
11296
      public String getFieldName() {
11297
        return _fieldName;
11298
      }
11299
    }
11300
 
11301
    // isset id assignments
11302
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
11303
    private BitSet __isset_bit_vector = new BitSet(1);
11304
 
3430 rajveer 11305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 11306
    static {
3430 rajveer 11307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11308
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11310
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11311
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
2462 chandransh 11312
    }
11313
 
3010 chandransh 11314
    public initializeHdfcPayment_args() {
2462 chandransh 11315
    }
11316
 
3010 chandransh 11317
    public initializeHdfcPayment_args(
2462 chandransh 11318
      long merchantPaymentId)
11319
    {
11320
      this();
11321
      this.merchantPaymentId = merchantPaymentId;
11322
      setMerchantPaymentIdIsSet(true);
11323
    }
11324
 
11325
    /**
11326
     * Performs a deep copy on <i>other</i>.
11327
     */
3010 chandransh 11328
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
2462 chandransh 11329
      __isset_bit_vector.clear();
11330
      __isset_bit_vector.or(other.__isset_bit_vector);
11331
      this.merchantPaymentId = other.merchantPaymentId;
11332
    }
11333
 
3010 chandransh 11334
    public initializeHdfcPayment_args deepCopy() {
11335
      return new initializeHdfcPayment_args(this);
2462 chandransh 11336
    }
11337
 
3430 rajveer 11338
    @Override
11339
    public void clear() {
11340
      setMerchantPaymentIdIsSet(false);
11341
      this.merchantPaymentId = 0;
2462 chandransh 11342
    }
11343
 
11344
    public long getMerchantPaymentId() {
11345
      return this.merchantPaymentId;
11346
    }
11347
 
3430 rajveer 11348
    public void setMerchantPaymentId(long merchantPaymentId) {
2462 chandransh 11349
      this.merchantPaymentId = merchantPaymentId;
11350
      setMerchantPaymentIdIsSet(true);
11351
    }
11352
 
11353
    public void unsetMerchantPaymentId() {
11354
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
11355
    }
11356
 
3430 rajveer 11357
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
2462 chandransh 11358
    public boolean isSetMerchantPaymentId() {
11359
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
11360
    }
11361
 
11362
    public void setMerchantPaymentIdIsSet(boolean value) {
11363
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
11364
    }
11365
 
11366
    public void setFieldValue(_Fields field, Object value) {
11367
      switch (field) {
11368
      case MERCHANT_PAYMENT_ID:
11369
        if (value == null) {
11370
          unsetMerchantPaymentId();
11371
        } else {
11372
          setMerchantPaymentId((Long)value);
11373
        }
11374
        break;
11375
 
11376
      }
11377
    }
11378
 
11379
    public Object getFieldValue(_Fields field) {
11380
      switch (field) {
11381
      case MERCHANT_PAYMENT_ID:
3430 rajveer 11382
        return Long.valueOf(getMerchantPaymentId());
2462 chandransh 11383
 
11384
      }
11385
      throw new IllegalStateException();
11386
    }
11387
 
3430 rajveer 11388
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11389
    public boolean isSet(_Fields field) {
11390
      if (field == null) {
11391
        throw new IllegalArgumentException();
11392
      }
2462 chandransh 11393
 
11394
      switch (field) {
11395
      case MERCHANT_PAYMENT_ID:
11396
        return isSetMerchantPaymentId();
11397
      }
11398
      throw new IllegalStateException();
11399
    }
11400
 
11401
    @Override
11402
    public boolean equals(Object that) {
11403
      if (that == null)
11404
        return false;
3010 chandransh 11405
      if (that instanceof initializeHdfcPayment_args)
11406
        return this.equals((initializeHdfcPayment_args)that);
2462 chandransh 11407
      return false;
11408
    }
11409
 
3010 chandransh 11410
    public boolean equals(initializeHdfcPayment_args that) {
2462 chandransh 11411
      if (that == null)
11412
        return false;
11413
 
11414
      boolean this_present_merchantPaymentId = true;
11415
      boolean that_present_merchantPaymentId = true;
11416
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
11417
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
11418
          return false;
11419
        if (this.merchantPaymentId != that.merchantPaymentId)
11420
          return false;
11421
      }
11422
 
11423
      return true;
11424
    }
11425
 
11426
    @Override
11427
    public int hashCode() {
11428
      return 0;
11429
    }
11430
 
3010 chandransh 11431
    public int compareTo(initializeHdfcPayment_args other) {
2462 chandransh 11432
      if (!getClass().equals(other.getClass())) {
11433
        return getClass().getName().compareTo(other.getClass().getName());
11434
      }
11435
 
11436
      int lastComparison = 0;
3010 chandransh 11437
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
2462 chandransh 11438
 
3430 rajveer 11439
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
2462 chandransh 11440
      if (lastComparison != 0) {
11441
        return lastComparison;
11442
      }
3430 rajveer 11443
      if (isSetMerchantPaymentId()) {
11444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
11445
        if (lastComparison != 0) {
11446
          return lastComparison;
11447
        }
2462 chandransh 11448
      }
11449
      return 0;
11450
    }
11451
 
3430 rajveer 11452
    public _Fields fieldForId(int fieldId) {
11453
      return _Fields.findByThriftId(fieldId);
11454
    }
11455
 
11456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11457
      org.apache.thrift.protocol.TField field;
2462 chandransh 11458
      iprot.readStructBegin();
11459
      while (true)
11460
      {
11461
        field = iprot.readFieldBegin();
3430 rajveer 11462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 11463
          break;
11464
        }
3430 rajveer 11465
        switch (field.id) {
11466
          case 1: // MERCHANT_PAYMENT_ID
11467
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11468
              this.merchantPaymentId = iprot.readI64();
11469
              setMerchantPaymentIdIsSet(true);
11470
            } else { 
11471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11472
            }
11473
            break;
11474
          default:
11475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 11476
        }
3430 rajveer 11477
        iprot.readFieldEnd();
2462 chandransh 11478
      }
11479
      iprot.readStructEnd();
11480
      validate();
11481
    }
11482
 
3430 rajveer 11483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 11484
      validate();
11485
 
11486
      oprot.writeStructBegin(STRUCT_DESC);
11487
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
11488
      oprot.writeI64(this.merchantPaymentId);
11489
      oprot.writeFieldEnd();
11490
      oprot.writeFieldStop();
11491
      oprot.writeStructEnd();
11492
    }
11493
 
11494
    @Override
11495
    public String toString() {
3010 chandransh 11496
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
2462 chandransh 11497
      boolean first = true;
11498
 
11499
      sb.append("merchantPaymentId:");
11500
      sb.append(this.merchantPaymentId);
11501
      first = false;
11502
      sb.append(")");
11503
      return sb.toString();
11504
    }
11505
 
3430 rajveer 11506
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 11507
      // check for required fields
11508
    }
11509
 
3430 rajveer 11510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11511
      try {
11512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11513
      } catch (org.apache.thrift.TException te) {
11514
        throw new java.io.IOException(te);
11515
      }
11516
    }
11517
 
11518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11519
      try {
11520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11521
      } catch (org.apache.thrift.TException te) {
11522
        throw new java.io.IOException(te);
11523
      }
11524
    }
11525
 
2462 chandransh 11526
  }
11527
 
3430 rajveer 11528
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
11529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
2462 chandransh 11530
 
3430 rajveer 11531
    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);
11532
    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 11533
 
3430 rajveer 11534
    private String success; // required
11535
    private PaymentException pe; // required
2462 chandransh 11536
 
11537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11538
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 11539
      SUCCESS((short)0, "success"),
11540
      PE((short)1, "pe");
11541
 
11542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11543
 
11544
      static {
11545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11546
          byName.put(field.getFieldName(), field);
11547
        }
11548
      }
11549
 
11550
      /**
11551
       * Find the _Fields constant that matches fieldId, or null if its not found.
11552
       */
11553
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11554
        switch(fieldId) {
11555
          case 0: // SUCCESS
11556
            return SUCCESS;
11557
          case 1: // PE
11558
            return PE;
11559
          default:
11560
            return null;
11561
        }
2462 chandransh 11562
      }
11563
 
11564
      /**
11565
       * Find the _Fields constant that matches fieldId, throwing an exception
11566
       * if it is not found.
11567
       */
11568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11569
        _Fields fields = findByThriftId(fieldId);
11570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11571
        return fields;
11572
      }
11573
 
11574
      /**
11575
       * Find the _Fields constant that matches name, or null if its not found.
11576
       */
11577
      public static _Fields findByName(String name) {
11578
        return byName.get(name);
11579
      }
11580
 
11581
      private final short _thriftId;
11582
      private final String _fieldName;
11583
 
11584
      _Fields(short thriftId, String fieldName) {
11585
        _thriftId = thriftId;
11586
        _fieldName = fieldName;
11587
      }
11588
 
11589
      public short getThriftFieldId() {
11590
        return _thriftId;
11591
      }
11592
 
11593
      public String getFieldName() {
11594
        return _fieldName;
11595
      }
11596
    }
11597
 
11598
    // isset id assignments
11599
 
3430 rajveer 11600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 11601
    static {
3430 rajveer 11602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11603
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11605
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
2462 chandransh 11609
    }
11610
 
3010 chandransh 11611
    public initializeHdfcPayment_result() {
2462 chandransh 11612
    }
11613
 
3010 chandransh 11614
    public initializeHdfcPayment_result(
11615
      String success,
2462 chandransh 11616
      PaymentException pe)
11617
    {
11618
      this();
11619
      this.success = success;
11620
      this.pe = pe;
11621
    }
11622
 
11623
    /**
11624
     * Performs a deep copy on <i>other</i>.
11625
     */
3010 chandransh 11626
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
2462 chandransh 11627
      if (other.isSetSuccess()) {
3010 chandransh 11628
        this.success = other.success;
2462 chandransh 11629
      }
11630
      if (other.isSetPe()) {
11631
        this.pe = new PaymentException(other.pe);
11632
      }
11633
    }
11634
 
3010 chandransh 11635
    public initializeHdfcPayment_result deepCopy() {
11636
      return new initializeHdfcPayment_result(this);
2462 chandransh 11637
    }
11638
 
3430 rajveer 11639
    @Override
11640
    public void clear() {
11641
      this.success = null;
11642
      this.pe = null;
2462 chandransh 11643
    }
11644
 
3010 chandransh 11645
    public String getSuccess() {
2462 chandransh 11646
      return this.success;
11647
    }
11648
 
3430 rajveer 11649
    public void setSuccess(String success) {
2462 chandransh 11650
      this.success = success;
11651
    }
11652
 
11653
    public void unsetSuccess() {
11654
      this.success = null;
11655
    }
11656
 
3430 rajveer 11657
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 11658
    public boolean isSetSuccess() {
11659
      return this.success != null;
11660
    }
11661
 
11662
    public void setSuccessIsSet(boolean value) {
11663
      if (!value) {
11664
        this.success = null;
11665
      }
11666
    }
11667
 
11668
    public PaymentException getPe() {
11669
      return this.pe;
11670
    }
11671
 
3430 rajveer 11672
    public void setPe(PaymentException pe) {
2462 chandransh 11673
      this.pe = pe;
11674
    }
11675
 
11676
    public void unsetPe() {
11677
      this.pe = null;
11678
    }
11679
 
3430 rajveer 11680
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 11681
    public boolean isSetPe() {
11682
      return this.pe != null;
11683
    }
11684
 
11685
    public void setPeIsSet(boolean value) {
11686
      if (!value) {
11687
        this.pe = null;
11688
      }
11689
    }
11690
 
11691
    public void setFieldValue(_Fields field, Object value) {
11692
      switch (field) {
11693
      case SUCCESS:
11694
        if (value == null) {
11695
          unsetSuccess();
11696
        } else {
3010 chandransh 11697
          setSuccess((String)value);
2462 chandransh 11698
        }
11699
        break;
11700
 
11701
      case PE:
11702
        if (value == null) {
11703
          unsetPe();
11704
        } else {
11705
          setPe((PaymentException)value);
11706
        }
11707
        break;
11708
 
11709
      }
11710
    }
11711
 
11712
    public Object getFieldValue(_Fields field) {
11713
      switch (field) {
11714
      case SUCCESS:
11715
        return getSuccess();
11716
 
11717
      case PE:
11718
        return getPe();
11719
 
11720
      }
11721
      throw new IllegalStateException();
11722
    }
11723
 
3430 rajveer 11724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11725
    public boolean isSet(_Fields field) {
11726
      if (field == null) {
11727
        throw new IllegalArgumentException();
11728
      }
2462 chandransh 11729
 
11730
      switch (field) {
11731
      case SUCCESS:
11732
        return isSetSuccess();
11733
      case PE:
11734
        return isSetPe();
11735
      }
11736
      throw new IllegalStateException();
11737
    }
11738
 
11739
    @Override
11740
    public boolean equals(Object that) {
11741
      if (that == null)
11742
        return false;
3010 chandransh 11743
      if (that instanceof initializeHdfcPayment_result)
11744
        return this.equals((initializeHdfcPayment_result)that);
2462 chandransh 11745
      return false;
11746
    }
11747
 
3010 chandransh 11748
    public boolean equals(initializeHdfcPayment_result that) {
2462 chandransh 11749
      if (that == null)
11750
        return false;
11751
 
11752
      boolean this_present_success = true && this.isSetSuccess();
11753
      boolean that_present_success = true && that.isSetSuccess();
11754
      if (this_present_success || that_present_success) {
11755
        if (!(this_present_success && that_present_success))
11756
          return false;
11757
        if (!this.success.equals(that.success))
11758
          return false;
11759
      }
11760
 
11761
      boolean this_present_pe = true && this.isSetPe();
11762
      boolean that_present_pe = true && that.isSetPe();
11763
      if (this_present_pe || that_present_pe) {
11764
        if (!(this_present_pe && that_present_pe))
11765
          return false;
11766
        if (!this.pe.equals(that.pe))
11767
          return false;
11768
      }
11769
 
11770
      return true;
11771
    }
11772
 
11773
    @Override
11774
    public int hashCode() {
11775
      return 0;
11776
    }
11777
 
3010 chandransh 11778
    public int compareTo(initializeHdfcPayment_result other) {
11779
      if (!getClass().equals(other.getClass())) {
11780
        return getClass().getName().compareTo(other.getClass().getName());
11781
      }
11782
 
11783
      int lastComparison = 0;
11784
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
11785
 
3430 rajveer 11786
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3010 chandransh 11787
      if (lastComparison != 0) {
11788
        return lastComparison;
11789
      }
3430 rajveer 11790
      if (isSetSuccess()) {
11791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11792
        if (lastComparison != 0) {
11793
          return lastComparison;
11794
        }
3010 chandransh 11795
      }
3430 rajveer 11796
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3010 chandransh 11797
      if (lastComparison != 0) {
11798
        return lastComparison;
11799
      }
3430 rajveer 11800
      if (isSetPe()) {
11801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
11802
        if (lastComparison != 0) {
11803
          return lastComparison;
11804
        }
3010 chandransh 11805
      }
11806
      return 0;
11807
    }
11808
 
3430 rajveer 11809
    public _Fields fieldForId(int fieldId) {
11810
      return _Fields.findByThriftId(fieldId);
11811
    }
11812
 
11813
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11814
      org.apache.thrift.protocol.TField field;
2462 chandransh 11815
      iprot.readStructBegin();
11816
      while (true)
11817
      {
11818
        field = iprot.readFieldBegin();
3430 rajveer 11819
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 11820
          break;
11821
        }
3430 rajveer 11822
        switch (field.id) {
11823
          case 0: // SUCCESS
11824
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11825
              this.success = iprot.readString();
11826
            } else { 
11827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11828
            }
11829
            break;
11830
          case 1: // PE
11831
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11832
              this.pe = new PaymentException();
11833
              this.pe.read(iprot);
11834
            } else { 
11835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11836
            }
11837
            break;
11838
          default:
11839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 11840
        }
3430 rajveer 11841
        iprot.readFieldEnd();
2462 chandransh 11842
      }
11843
      iprot.readStructEnd();
11844
      validate();
11845
    }
11846
 
3430 rajveer 11847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 11848
      oprot.writeStructBegin(STRUCT_DESC);
11849
 
11850
      if (this.isSetSuccess()) {
11851
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 11852
        oprot.writeString(this.success);
2462 chandransh 11853
        oprot.writeFieldEnd();
11854
      } else if (this.isSetPe()) {
11855
        oprot.writeFieldBegin(PE_FIELD_DESC);
11856
        this.pe.write(oprot);
11857
        oprot.writeFieldEnd();
11858
      }
11859
      oprot.writeFieldStop();
11860
      oprot.writeStructEnd();
11861
    }
11862
 
11863
    @Override
11864
    public String toString() {
3010 chandransh 11865
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
2462 chandransh 11866
      boolean first = true;
11867
 
11868
      sb.append("success:");
11869
      if (this.success == null) {
11870
        sb.append("null");
11871
      } else {
11872
        sb.append(this.success);
11873
      }
11874
      first = false;
11875
      if (!first) sb.append(", ");
11876
      sb.append("pe:");
11877
      if (this.pe == null) {
11878
        sb.append("null");
11879
      } else {
11880
        sb.append(this.pe);
11881
      }
11882
      first = false;
11883
      sb.append(")");
11884
      return sb.toString();
11885
    }
11886
 
3430 rajveer 11887
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 11888
      // check for required fields
11889
    }
11890
 
3430 rajveer 11891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11892
      try {
11893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11894
      } catch (org.apache.thrift.TException te) {
11895
        throw new java.io.IOException(te);
11896
      }
11897
    }
11898
 
11899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11900
      try {
11901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11902
      } catch (org.apache.thrift.TException te) {
11903
        throw new java.io.IOException(te);
11904
      }
11905
    }
11906
 
2462 chandransh 11907
  }
11908
 
3616 chandransh 11909
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
11910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
11911
 
11912
    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);
11913
 
11914
    private long merchantPaymentId; // required
11915
 
11916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11918
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
11919
 
11920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11921
 
11922
      static {
11923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11924
          byName.put(field.getFieldName(), field);
11925
        }
11926
      }
11927
 
11928
      /**
11929
       * Find the _Fields constant that matches fieldId, or null if its not found.
11930
       */
11931
      public static _Fields findByThriftId(int fieldId) {
11932
        switch(fieldId) {
11933
          case 1: // MERCHANT_PAYMENT_ID
11934
            return MERCHANT_PAYMENT_ID;
11935
          default:
11936
            return null;
11937
        }
11938
      }
11939
 
11940
      /**
11941
       * Find the _Fields constant that matches fieldId, throwing an exception
11942
       * if it is not found.
11943
       */
11944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11945
        _Fields fields = findByThriftId(fieldId);
11946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11947
        return fields;
11948
      }
11949
 
11950
      /**
11951
       * Find the _Fields constant that matches name, or null if its not found.
11952
       */
11953
      public static _Fields findByName(String name) {
11954
        return byName.get(name);
11955
      }
11956
 
11957
      private final short _thriftId;
11958
      private final String _fieldName;
11959
 
11960
      _Fields(short thriftId, String fieldName) {
11961
        _thriftId = thriftId;
11962
        _fieldName = fieldName;
11963
      }
11964
 
11965
      public short getThriftFieldId() {
11966
        return _thriftId;
11967
      }
11968
 
11969
      public String getFieldName() {
11970
        return _fieldName;
11971
      }
11972
    }
11973
 
11974
    // isset id assignments
11975
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
11976
    private BitSet __isset_bit_vector = new BitSet(1);
11977
 
11978
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11979
    static {
11980
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11981
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
11985
    }
11986
 
11987
    public initializeHdfcEmiPayment_args() {
11988
    }
11989
 
11990
    public initializeHdfcEmiPayment_args(
11991
      long merchantPaymentId)
11992
    {
11993
      this();
11994
      this.merchantPaymentId = merchantPaymentId;
11995
      setMerchantPaymentIdIsSet(true);
11996
    }
11997
 
11998
    /**
11999
     * Performs a deep copy on <i>other</i>.
12000
     */
12001
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
12002
      __isset_bit_vector.clear();
12003
      __isset_bit_vector.or(other.__isset_bit_vector);
12004
      this.merchantPaymentId = other.merchantPaymentId;
12005
    }
12006
 
12007
    public initializeHdfcEmiPayment_args deepCopy() {
12008
      return new initializeHdfcEmiPayment_args(this);
12009
    }
12010
 
12011
    @Override
12012
    public void clear() {
12013
      setMerchantPaymentIdIsSet(false);
12014
      this.merchantPaymentId = 0;
12015
    }
12016
 
12017
    public long getMerchantPaymentId() {
12018
      return this.merchantPaymentId;
12019
    }
12020
 
12021
    public void setMerchantPaymentId(long merchantPaymentId) {
12022
      this.merchantPaymentId = merchantPaymentId;
12023
      setMerchantPaymentIdIsSet(true);
12024
    }
12025
 
12026
    public void unsetMerchantPaymentId() {
12027
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
12028
    }
12029
 
12030
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
12031
    public boolean isSetMerchantPaymentId() {
12032
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
12033
    }
12034
 
12035
    public void setMerchantPaymentIdIsSet(boolean value) {
12036
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12037
    }
12038
 
12039
    public void setFieldValue(_Fields field, Object value) {
12040
      switch (field) {
12041
      case MERCHANT_PAYMENT_ID:
12042
        if (value == null) {
12043
          unsetMerchantPaymentId();
12044
        } else {
12045
          setMerchantPaymentId((Long)value);
12046
        }
12047
        break;
12048
 
12049
      }
12050
    }
12051
 
12052
    public Object getFieldValue(_Fields field) {
12053
      switch (field) {
12054
      case MERCHANT_PAYMENT_ID:
12055
        return Long.valueOf(getMerchantPaymentId());
12056
 
12057
      }
12058
      throw new IllegalStateException();
12059
    }
12060
 
12061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12062
    public boolean isSet(_Fields field) {
12063
      if (field == null) {
12064
        throw new IllegalArgumentException();
12065
      }
12066
 
12067
      switch (field) {
12068
      case MERCHANT_PAYMENT_ID:
12069
        return isSetMerchantPaymentId();
12070
      }
12071
      throw new IllegalStateException();
12072
    }
12073
 
12074
    @Override
12075
    public boolean equals(Object that) {
12076
      if (that == null)
12077
        return false;
12078
      if (that instanceof initializeHdfcEmiPayment_args)
12079
        return this.equals((initializeHdfcEmiPayment_args)that);
12080
      return false;
12081
    }
12082
 
12083
    public boolean equals(initializeHdfcEmiPayment_args that) {
12084
      if (that == null)
12085
        return false;
12086
 
12087
      boolean this_present_merchantPaymentId = true;
12088
      boolean that_present_merchantPaymentId = true;
12089
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
12090
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
12091
          return false;
12092
        if (this.merchantPaymentId != that.merchantPaymentId)
12093
          return false;
12094
      }
12095
 
12096
      return true;
12097
    }
12098
 
12099
    @Override
12100
    public int hashCode() {
12101
      return 0;
12102
    }
12103
 
12104
    public int compareTo(initializeHdfcEmiPayment_args other) {
12105
      if (!getClass().equals(other.getClass())) {
12106
        return getClass().getName().compareTo(other.getClass().getName());
12107
      }
12108
 
12109
      int lastComparison = 0;
12110
      initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
12111
 
12112
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
12113
      if (lastComparison != 0) {
12114
        return lastComparison;
12115
      }
12116
      if (isSetMerchantPaymentId()) {
12117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
12118
        if (lastComparison != 0) {
12119
          return lastComparison;
12120
        }
12121
      }
12122
      return 0;
12123
    }
12124
 
12125
    public _Fields fieldForId(int fieldId) {
12126
      return _Fields.findByThriftId(fieldId);
12127
    }
12128
 
12129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12130
      org.apache.thrift.protocol.TField field;
12131
      iprot.readStructBegin();
12132
      while (true)
12133
      {
12134
        field = iprot.readFieldBegin();
12135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12136
          break;
12137
        }
12138
        switch (field.id) {
12139
          case 1: // MERCHANT_PAYMENT_ID
12140
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12141
              this.merchantPaymentId = iprot.readI64();
12142
              setMerchantPaymentIdIsSet(true);
12143
            } else { 
12144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12145
            }
12146
            break;
12147
          default:
12148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12149
        }
12150
        iprot.readFieldEnd();
12151
      }
12152
      iprot.readStructEnd();
12153
      validate();
12154
    }
12155
 
12156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12157
      validate();
12158
 
12159
      oprot.writeStructBegin(STRUCT_DESC);
12160
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12161
      oprot.writeI64(this.merchantPaymentId);
12162
      oprot.writeFieldEnd();
12163
      oprot.writeFieldStop();
12164
      oprot.writeStructEnd();
12165
    }
12166
 
12167
    @Override
12168
    public String toString() {
12169
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
12170
      boolean first = true;
12171
 
12172
      sb.append("merchantPaymentId:");
12173
      sb.append(this.merchantPaymentId);
12174
      first = false;
12175
      sb.append(")");
12176
      return sb.toString();
12177
    }
12178
 
12179
    public void validate() throws org.apache.thrift.TException {
12180
      // check for required fields
12181
    }
12182
 
12183
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12184
      try {
12185
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12186
      } catch (org.apache.thrift.TException te) {
12187
        throw new java.io.IOException(te);
12188
      }
12189
    }
12190
 
12191
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12192
      try {
12193
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12194
      } catch (org.apache.thrift.TException te) {
12195
        throw new java.io.IOException(te);
12196
      }
12197
    }
12198
 
12199
  }
12200
 
12201
  public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable   {
12202
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
12203
 
12204
    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);
12205
    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);
12206
 
12207
    private String success; // required
12208
    private PaymentException pe; // required
12209
 
12210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12211
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12212
      SUCCESS((short)0, "success"),
12213
      PE((short)1, "pe");
12214
 
12215
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12216
 
12217
      static {
12218
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12219
          byName.put(field.getFieldName(), field);
12220
        }
12221
      }
12222
 
12223
      /**
12224
       * Find the _Fields constant that matches fieldId, or null if its not found.
12225
       */
12226
      public static _Fields findByThriftId(int fieldId) {
12227
        switch(fieldId) {
12228
          case 0: // SUCCESS
12229
            return SUCCESS;
12230
          case 1: // PE
12231
            return PE;
12232
          default:
12233
            return null;
12234
        }
12235
      }
12236
 
12237
      /**
12238
       * Find the _Fields constant that matches fieldId, throwing an exception
12239
       * if it is not found.
12240
       */
12241
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12242
        _Fields fields = findByThriftId(fieldId);
12243
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12244
        return fields;
12245
      }
12246
 
12247
      /**
12248
       * Find the _Fields constant that matches name, or null if its not found.
12249
       */
12250
      public static _Fields findByName(String name) {
12251
        return byName.get(name);
12252
      }
12253
 
12254
      private final short _thriftId;
12255
      private final String _fieldName;
12256
 
12257
      _Fields(short thriftId, String fieldName) {
12258
        _thriftId = thriftId;
12259
        _fieldName = fieldName;
12260
      }
12261
 
12262
      public short getThriftFieldId() {
12263
        return _thriftId;
12264
      }
12265
 
12266
      public String getFieldName() {
12267
        return _fieldName;
12268
      }
12269
    }
12270
 
12271
    // isset id assignments
12272
 
12273
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12274
    static {
12275
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12276
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12278
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
12282
    }
12283
 
12284
    public initializeHdfcEmiPayment_result() {
12285
    }
12286
 
12287
    public initializeHdfcEmiPayment_result(
12288
      String success,
12289
      PaymentException pe)
12290
    {
12291
      this();
12292
      this.success = success;
12293
      this.pe = pe;
12294
    }
12295
 
12296
    /**
12297
     * Performs a deep copy on <i>other</i>.
12298
     */
12299
    public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
12300
      if (other.isSetSuccess()) {
12301
        this.success = other.success;
12302
      }
12303
      if (other.isSetPe()) {
12304
        this.pe = new PaymentException(other.pe);
12305
      }
12306
    }
12307
 
12308
    public initializeHdfcEmiPayment_result deepCopy() {
12309
      return new initializeHdfcEmiPayment_result(this);
12310
    }
12311
 
12312
    @Override
12313
    public void clear() {
12314
      this.success = null;
12315
      this.pe = null;
12316
    }
12317
 
12318
    public String getSuccess() {
12319
      return this.success;
12320
    }
12321
 
12322
    public void setSuccess(String success) {
12323
      this.success = success;
12324
    }
12325
 
12326
    public void unsetSuccess() {
12327
      this.success = null;
12328
    }
12329
 
12330
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12331
    public boolean isSetSuccess() {
12332
      return this.success != null;
12333
    }
12334
 
12335
    public void setSuccessIsSet(boolean value) {
12336
      if (!value) {
12337
        this.success = null;
12338
      }
12339
    }
12340
 
12341
    public PaymentException getPe() {
12342
      return this.pe;
12343
    }
12344
 
12345
    public void setPe(PaymentException pe) {
12346
      this.pe = pe;
12347
    }
12348
 
12349
    public void unsetPe() {
12350
      this.pe = null;
12351
    }
12352
 
12353
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
12354
    public boolean isSetPe() {
12355
      return this.pe != null;
12356
    }
12357
 
12358
    public void setPeIsSet(boolean value) {
12359
      if (!value) {
12360
        this.pe = null;
12361
      }
12362
    }
12363
 
12364
    public void setFieldValue(_Fields field, Object value) {
12365
      switch (field) {
12366
      case SUCCESS:
12367
        if (value == null) {
12368
          unsetSuccess();
12369
        } else {
12370
          setSuccess((String)value);
12371
        }
12372
        break;
12373
 
12374
      case PE:
12375
        if (value == null) {
12376
          unsetPe();
12377
        } else {
12378
          setPe((PaymentException)value);
12379
        }
12380
        break;
12381
 
12382
      }
12383
    }
12384
 
12385
    public Object getFieldValue(_Fields field) {
12386
      switch (field) {
12387
      case SUCCESS:
12388
        return getSuccess();
12389
 
12390
      case PE:
12391
        return getPe();
12392
 
12393
      }
12394
      throw new IllegalStateException();
12395
    }
12396
 
12397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12398
    public boolean isSet(_Fields field) {
12399
      if (field == null) {
12400
        throw new IllegalArgumentException();
12401
      }
12402
 
12403
      switch (field) {
12404
      case SUCCESS:
12405
        return isSetSuccess();
12406
      case PE:
12407
        return isSetPe();
12408
      }
12409
      throw new IllegalStateException();
12410
    }
12411
 
12412
    @Override
12413
    public boolean equals(Object that) {
12414
      if (that == null)
12415
        return false;
12416
      if (that instanceof initializeHdfcEmiPayment_result)
12417
        return this.equals((initializeHdfcEmiPayment_result)that);
12418
      return false;
12419
    }
12420
 
12421
    public boolean equals(initializeHdfcEmiPayment_result that) {
12422
      if (that == null)
12423
        return false;
12424
 
12425
      boolean this_present_success = true && this.isSetSuccess();
12426
      boolean that_present_success = true && that.isSetSuccess();
12427
      if (this_present_success || that_present_success) {
12428
        if (!(this_present_success && that_present_success))
12429
          return false;
12430
        if (!this.success.equals(that.success))
12431
          return false;
12432
      }
12433
 
12434
      boolean this_present_pe = true && this.isSetPe();
12435
      boolean that_present_pe = true && that.isSetPe();
12436
      if (this_present_pe || that_present_pe) {
12437
        if (!(this_present_pe && that_present_pe))
12438
          return false;
12439
        if (!this.pe.equals(that.pe))
12440
          return false;
12441
      }
12442
 
12443
      return true;
12444
    }
12445
 
12446
    @Override
12447
    public int hashCode() {
12448
      return 0;
12449
    }
12450
 
12451
    public int compareTo(initializeHdfcEmiPayment_result other) {
12452
      if (!getClass().equals(other.getClass())) {
12453
        return getClass().getName().compareTo(other.getClass().getName());
12454
      }
12455
 
12456
      int lastComparison = 0;
12457
      initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
12458
 
12459
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12460
      if (lastComparison != 0) {
12461
        return lastComparison;
12462
      }
12463
      if (isSetSuccess()) {
12464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12465
        if (lastComparison != 0) {
12466
          return lastComparison;
12467
        }
12468
      }
12469
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
12470
      if (lastComparison != 0) {
12471
        return lastComparison;
12472
      }
12473
      if (isSetPe()) {
12474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
12475
        if (lastComparison != 0) {
12476
          return lastComparison;
12477
        }
12478
      }
12479
      return 0;
12480
    }
12481
 
12482
    public _Fields fieldForId(int fieldId) {
12483
      return _Fields.findByThriftId(fieldId);
12484
    }
12485
 
12486
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12487
      org.apache.thrift.protocol.TField field;
12488
      iprot.readStructBegin();
12489
      while (true)
12490
      {
12491
        field = iprot.readFieldBegin();
12492
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12493
          break;
12494
        }
12495
        switch (field.id) {
12496
          case 0: // SUCCESS
12497
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12498
              this.success = iprot.readString();
12499
            } else { 
12500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12501
            }
12502
            break;
12503
          case 1: // PE
12504
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12505
              this.pe = new PaymentException();
12506
              this.pe.read(iprot);
12507
            } else { 
12508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12509
            }
12510
            break;
12511
          default:
12512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12513
        }
12514
        iprot.readFieldEnd();
12515
      }
12516
      iprot.readStructEnd();
12517
      validate();
12518
    }
12519
 
12520
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12521
      oprot.writeStructBegin(STRUCT_DESC);
12522
 
12523
      if (this.isSetSuccess()) {
12524
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12525
        oprot.writeString(this.success);
12526
        oprot.writeFieldEnd();
12527
      } else if (this.isSetPe()) {
12528
        oprot.writeFieldBegin(PE_FIELD_DESC);
12529
        this.pe.write(oprot);
12530
        oprot.writeFieldEnd();
12531
      }
12532
      oprot.writeFieldStop();
12533
      oprot.writeStructEnd();
12534
    }
12535
 
12536
    @Override
12537
    public String toString() {
12538
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
12539
      boolean first = true;
12540
 
12541
      sb.append("success:");
12542
      if (this.success == null) {
12543
        sb.append("null");
12544
      } else {
12545
        sb.append(this.success);
12546
      }
12547
      first = false;
12548
      if (!first) sb.append(", ");
12549
      sb.append("pe:");
12550
      if (this.pe == null) {
12551
        sb.append("null");
12552
      } else {
12553
        sb.append(this.pe);
12554
      }
12555
      first = false;
12556
      sb.append(")");
12557
      return sb.toString();
12558
    }
12559
 
12560
    public void validate() throws org.apache.thrift.TException {
12561
      // check for required fields
12562
    }
12563
 
12564
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12565
      try {
12566
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12567
      } catch (org.apache.thrift.TException te) {
12568
        throw new java.io.IOException(te);
12569
      }
12570
    }
12571
 
12572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12573
      try {
12574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12575
      } catch (org.apache.thrift.TException te) {
12576
        throw new java.io.IOException(te);
12577
      }
12578
    }
12579
 
12580
  }
12581
 
3430 rajveer 12582
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
12583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
2462 chandransh 12584
 
3430 rajveer 12585
    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);
12586
    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);
12587
    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 12588
 
3430 rajveer 12589
    private long orderId; // required
12590
    private long merchantTxnId; // required
12591
    private double amount; // required
2462 chandransh 12592
 
12593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 12595
      ORDER_ID((short)1, "orderId"),
12596
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
12597
      AMOUNT((short)3, "amount");
2462 chandransh 12598
 
12599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12600
 
12601
      static {
12602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12603
          byName.put(field.getFieldName(), field);
12604
        }
12605
      }
12606
 
12607
      /**
12608
       * Find the _Fields constant that matches fieldId, or null if its not found.
12609
       */
12610
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12611
        switch(fieldId) {
12612
          case 1: // ORDER_ID
12613
            return ORDER_ID;
12614
          case 2: // MERCHANT_TXN_ID
12615
            return MERCHANT_TXN_ID;
12616
          case 3: // AMOUNT
12617
            return AMOUNT;
12618
          default:
12619
            return null;
12620
        }
2462 chandransh 12621
      }
12622
 
12623
      /**
12624
       * Find the _Fields constant that matches fieldId, throwing an exception
12625
       * if it is not found.
12626
       */
12627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12628
        _Fields fields = findByThriftId(fieldId);
12629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12630
        return fields;
12631
      }
12632
 
12633
      /**
12634
       * Find the _Fields constant that matches name, or null if its not found.
12635
       */
12636
      public static _Fields findByName(String name) {
12637
        return byName.get(name);
12638
      }
12639
 
12640
      private final short _thriftId;
12641
      private final String _fieldName;
12642
 
12643
      _Fields(short thriftId, String fieldName) {
12644
        _thriftId = thriftId;
12645
        _fieldName = fieldName;
12646
      }
12647
 
12648
      public short getThriftFieldId() {
12649
        return _thriftId;
12650
      }
12651
 
12652
      public String getFieldName() {
12653
        return _fieldName;
12654
      }
12655
    }
12656
 
12657
    // isset id assignments
3010 chandransh 12658
    private static final int __ORDERID_ISSET_ID = 0;
12659
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
12660
    private static final int __AMOUNT_ISSET_ID = 2;
12661
    private BitSet __isset_bit_vector = new BitSet(3);
2462 chandransh 12662
 
3430 rajveer 12663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 12664
    static {
3430 rajveer 12665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12666
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12668
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12670
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
2462 chandransh 12674
    }
12675
 
3010 chandransh 12676
    public createRefund_args() {
2462 chandransh 12677
    }
12678
 
3010 chandransh 12679
    public createRefund_args(
12680
      long orderId,
12681
      long merchantTxnId,
12682
      double amount)
2462 chandransh 12683
    {
12684
      this();
3010 chandransh 12685
      this.orderId = orderId;
12686
      setOrderIdIsSet(true);
12687
      this.merchantTxnId = merchantTxnId;
12688
      setMerchantTxnIdIsSet(true);
12689
      this.amount = amount;
12690
      setAmountIsSet(true);
2462 chandransh 12691
    }
12692
 
12693
    /**
12694
     * Performs a deep copy on <i>other</i>.
12695
     */
3010 chandransh 12696
    public createRefund_args(createRefund_args other) {
2462 chandransh 12697
      __isset_bit_vector.clear();
12698
      __isset_bit_vector.or(other.__isset_bit_vector);
3010 chandransh 12699
      this.orderId = other.orderId;
12700
      this.merchantTxnId = other.merchantTxnId;
12701
      this.amount = other.amount;
2462 chandransh 12702
    }
12703
 
3010 chandransh 12704
    public createRefund_args deepCopy() {
12705
      return new createRefund_args(this);
2462 chandransh 12706
    }
12707
 
3430 rajveer 12708
    @Override
12709
    public void clear() {
12710
      setOrderIdIsSet(false);
12711
      this.orderId = 0;
12712
      setMerchantTxnIdIsSet(false);
12713
      this.merchantTxnId = 0;
12714
      setAmountIsSet(false);
12715
      this.amount = 0.0;
2462 chandransh 12716
    }
12717
 
3010 chandransh 12718
    public long getOrderId() {
12719
      return this.orderId;
2462 chandransh 12720
    }
12721
 
3430 rajveer 12722
    public void setOrderId(long orderId) {
3010 chandransh 12723
      this.orderId = orderId;
12724
      setOrderIdIsSet(true);
2462 chandransh 12725
    }
12726
 
3010 chandransh 12727
    public void unsetOrderId() {
12728
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2462 chandransh 12729
    }
12730
 
3430 rajveer 12731
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3010 chandransh 12732
    public boolean isSetOrderId() {
12733
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2462 chandransh 12734
    }
12735
 
3010 chandransh 12736
    public void setOrderIdIsSet(boolean value) {
12737
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2462 chandransh 12738
    }
12739
 
3010 chandransh 12740
    public long getMerchantTxnId() {
12741
      return this.merchantTxnId;
12742
    }
12743
 
3430 rajveer 12744
    public void setMerchantTxnId(long merchantTxnId) {
3010 chandransh 12745
      this.merchantTxnId = merchantTxnId;
12746
      setMerchantTxnIdIsSet(true);
12747
    }
12748
 
12749
    public void unsetMerchantTxnId() {
12750
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
12751
    }
12752
 
3430 rajveer 12753
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
3010 chandransh 12754
    public boolean isSetMerchantTxnId() {
12755
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
12756
    }
12757
 
12758
    public void setMerchantTxnIdIsSet(boolean value) {
12759
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
12760
    }
12761
 
12762
    public double getAmount() {
12763
      return this.amount;
12764
    }
12765
 
3430 rajveer 12766
    public void setAmount(double amount) {
3010 chandransh 12767
      this.amount = amount;
12768
      setAmountIsSet(true);
12769
    }
12770
 
12771
    public void unsetAmount() {
12772
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
12773
    }
12774
 
3430 rajveer 12775
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
3010 chandransh 12776
    public boolean isSetAmount() {
12777
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
12778
    }
12779
 
12780
    public void setAmountIsSet(boolean value) {
12781
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
12782
    }
12783
 
2462 chandransh 12784
    public void setFieldValue(_Fields field, Object value) {
12785
      switch (field) {
3010 chandransh 12786
      case ORDER_ID:
2462 chandransh 12787
        if (value == null) {
3010 chandransh 12788
          unsetOrderId();
2462 chandransh 12789
        } else {
3010 chandransh 12790
          setOrderId((Long)value);
2462 chandransh 12791
        }
12792
        break;
12793
 
3010 chandransh 12794
      case MERCHANT_TXN_ID:
12795
        if (value == null) {
12796
          unsetMerchantTxnId();
12797
        } else {
12798
          setMerchantTxnId((Long)value);
12799
        }
12800
        break;
12801
 
12802
      case AMOUNT:
12803
        if (value == null) {
12804
          unsetAmount();
12805
        } else {
12806
          setAmount((Double)value);
12807
        }
12808
        break;
12809
 
2462 chandransh 12810
      }
12811
    }
12812
 
12813
    public Object getFieldValue(_Fields field) {
12814
      switch (field) {
3010 chandransh 12815
      case ORDER_ID:
3430 rajveer 12816
        return Long.valueOf(getOrderId());
2462 chandransh 12817
 
3010 chandransh 12818
      case MERCHANT_TXN_ID:
3430 rajveer 12819
        return Long.valueOf(getMerchantTxnId());
3010 chandransh 12820
 
12821
      case AMOUNT:
3430 rajveer 12822
        return Double.valueOf(getAmount());
3010 chandransh 12823
 
2462 chandransh 12824
      }
12825
      throw new IllegalStateException();
12826
    }
12827
 
3430 rajveer 12828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12829
    public boolean isSet(_Fields field) {
12830
      if (field == null) {
12831
        throw new IllegalArgumentException();
12832
      }
2462 chandransh 12833
 
12834
      switch (field) {
3010 chandransh 12835
      case ORDER_ID:
12836
        return isSetOrderId();
12837
      case MERCHANT_TXN_ID:
12838
        return isSetMerchantTxnId();
12839
      case AMOUNT:
12840
        return isSetAmount();
2462 chandransh 12841
      }
12842
      throw new IllegalStateException();
12843
    }
12844
 
12845
    @Override
12846
    public boolean equals(Object that) {
12847
      if (that == null)
12848
        return false;
3010 chandransh 12849
      if (that instanceof createRefund_args)
12850
        return this.equals((createRefund_args)that);
2462 chandransh 12851
      return false;
12852
    }
12853
 
3010 chandransh 12854
    public boolean equals(createRefund_args that) {
2462 chandransh 12855
      if (that == null)
12856
        return false;
12857
 
3010 chandransh 12858
      boolean this_present_orderId = true;
12859
      boolean that_present_orderId = true;
12860
      if (this_present_orderId || that_present_orderId) {
12861
        if (!(this_present_orderId && that_present_orderId))
2462 chandransh 12862
          return false;
3010 chandransh 12863
        if (this.orderId != that.orderId)
2462 chandransh 12864
          return false;
12865
      }
12866
 
3010 chandransh 12867
      boolean this_present_merchantTxnId = true;
12868
      boolean that_present_merchantTxnId = true;
12869
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
12870
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
12871
          return false;
12872
        if (this.merchantTxnId != that.merchantTxnId)
12873
          return false;
12874
      }
12875
 
12876
      boolean this_present_amount = true;
12877
      boolean that_present_amount = true;
12878
      if (this_present_amount || that_present_amount) {
12879
        if (!(this_present_amount && that_present_amount))
12880
          return false;
12881
        if (this.amount != that.amount)
12882
          return false;
12883
      }
12884
 
2462 chandransh 12885
      return true;
12886
    }
12887
 
12888
    @Override
12889
    public int hashCode() {
12890
      return 0;
12891
    }
12892
 
3010 chandransh 12893
    public int compareTo(createRefund_args other) {
2462 chandransh 12894
      if (!getClass().equals(other.getClass())) {
12895
        return getClass().getName().compareTo(other.getClass().getName());
12896
      }
12897
 
12898
      int lastComparison = 0;
3010 chandransh 12899
      createRefund_args typedOther = (createRefund_args)other;
2462 chandransh 12900
 
3430 rajveer 12901
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2462 chandransh 12902
      if (lastComparison != 0) {
12903
        return lastComparison;
12904
      }
3430 rajveer 12905
      if (isSetOrderId()) {
12906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
12907
        if (lastComparison != 0) {
12908
          return lastComparison;
12909
        }
2462 chandransh 12910
      }
3430 rajveer 12911
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
3010 chandransh 12912
      if (lastComparison != 0) {
12913
        return lastComparison;
12914
      }
3430 rajveer 12915
      if (isSetMerchantTxnId()) {
12916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
12917
        if (lastComparison != 0) {
12918
          return lastComparison;
12919
        }
3010 chandransh 12920
      }
3430 rajveer 12921
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
3010 chandransh 12922
      if (lastComparison != 0) {
12923
        return lastComparison;
12924
      }
3430 rajveer 12925
      if (isSetAmount()) {
12926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
12927
        if (lastComparison != 0) {
12928
          return lastComparison;
12929
        }
3010 chandransh 12930
      }
2462 chandransh 12931
      return 0;
12932
    }
12933
 
3430 rajveer 12934
    public _Fields fieldForId(int fieldId) {
12935
      return _Fields.findByThriftId(fieldId);
12936
    }
12937
 
12938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12939
      org.apache.thrift.protocol.TField field;
2462 chandransh 12940
      iprot.readStructBegin();
12941
      while (true)
12942
      {
12943
        field = iprot.readFieldBegin();
3430 rajveer 12944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 12945
          break;
12946
        }
3430 rajveer 12947
        switch (field.id) {
12948
          case 1: // ORDER_ID
12949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12950
              this.orderId = iprot.readI64();
12951
              setOrderIdIsSet(true);
12952
            } else { 
12953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12954
            }
12955
            break;
12956
          case 2: // MERCHANT_TXN_ID
12957
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12958
              this.merchantTxnId = iprot.readI64();
12959
              setMerchantTxnIdIsSet(true);
12960
            } else { 
12961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12962
            }
12963
            break;
12964
          case 3: // AMOUNT
12965
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
12966
              this.amount = iprot.readDouble();
12967
              setAmountIsSet(true);
12968
            } else { 
12969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12970
            }
12971
            break;
12972
          default:
12973
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 12974
        }
3430 rajveer 12975
        iprot.readFieldEnd();
2462 chandransh 12976
      }
12977
      iprot.readStructEnd();
12978
      validate();
12979
    }
12980
 
3430 rajveer 12981
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 12982
      validate();
12983
 
12984
      oprot.writeStructBegin(STRUCT_DESC);
3010 chandransh 12985
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
12986
      oprot.writeI64(this.orderId);
2462 chandransh 12987
      oprot.writeFieldEnd();
3010 chandransh 12988
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
12989
      oprot.writeI64(this.merchantTxnId);
12990
      oprot.writeFieldEnd();
12991
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
12992
      oprot.writeDouble(this.amount);
12993
      oprot.writeFieldEnd();
2462 chandransh 12994
      oprot.writeFieldStop();
12995
      oprot.writeStructEnd();
12996
    }
12997
 
12998
    @Override
12999
    public String toString() {
3010 chandransh 13000
      StringBuilder sb = new StringBuilder("createRefund_args(");
2462 chandransh 13001
      boolean first = true;
13002
 
3010 chandransh 13003
      sb.append("orderId:");
13004
      sb.append(this.orderId);
2462 chandransh 13005
      first = false;
3010 chandransh 13006
      if (!first) sb.append(", ");
13007
      sb.append("merchantTxnId:");
13008
      sb.append(this.merchantTxnId);
13009
      first = false;
13010
      if (!first) sb.append(", ");
13011
      sb.append("amount:");
13012
      sb.append(this.amount);
13013
      first = false;
2462 chandransh 13014
      sb.append(")");
13015
      return sb.toString();
13016
    }
13017
 
3430 rajveer 13018
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 13019
      // check for required fields
13020
    }
13021
 
3430 rajveer 13022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13023
      try {
13024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13025
      } catch (org.apache.thrift.TException te) {
13026
        throw new java.io.IOException(te);
13027
      }
13028
    }
13029
 
13030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13031
      try {
13032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13033
      } catch (org.apache.thrift.TException te) {
13034
        throw new java.io.IOException(te);
13035
      }
13036
    }
13037
 
2462 chandransh 13038
  }
13039
 
3430 rajveer 13040
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
13041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
2462 chandransh 13042
 
3430 rajveer 13043
    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);
13044
    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 13045
 
3430 rajveer 13046
    private long success; // required
13047
    private PaymentException pe; // required
2462 chandransh 13048
 
13049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 13051
      SUCCESS((short)0, "success"),
13052
      PE((short)1, "pe");
13053
 
13054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13055
 
13056
      static {
13057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13058
          byName.put(field.getFieldName(), field);
13059
        }
13060
      }
13061
 
13062
      /**
13063
       * Find the _Fields constant that matches fieldId, or null if its not found.
13064
       */
13065
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13066
        switch(fieldId) {
13067
          case 0: // SUCCESS
13068
            return SUCCESS;
13069
          case 1: // PE
13070
            return PE;
13071
          default:
13072
            return null;
13073
        }
2462 chandransh 13074
      }
13075
 
13076
      /**
13077
       * Find the _Fields constant that matches fieldId, throwing an exception
13078
       * if it is not found.
13079
       */
13080
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13081
        _Fields fields = findByThriftId(fieldId);
13082
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13083
        return fields;
13084
      }
13085
 
13086
      /**
13087
       * Find the _Fields constant that matches name, or null if its not found.
13088
       */
13089
      public static _Fields findByName(String name) {
13090
        return byName.get(name);
13091
      }
13092
 
13093
      private final short _thriftId;
13094
      private final String _fieldName;
13095
 
13096
      _Fields(short thriftId, String fieldName) {
13097
        _thriftId = thriftId;
13098
        _fieldName = fieldName;
13099
      }
13100
 
13101
      public short getThriftFieldId() {
13102
        return _thriftId;
13103
      }
13104
 
13105
      public String getFieldName() {
13106
        return _fieldName;
13107
      }
13108
    }
13109
 
13110
    // isset id assignments
3010 chandransh 13111
    private static final int __SUCCESS_ISSET_ID = 0;
13112
    private BitSet __isset_bit_vector = new BitSet(1);
2462 chandransh 13113
 
3430 rajveer 13114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 13115
    static {
3430 rajveer 13116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13117
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13119
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13121
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13122
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
2462 chandransh 13123
    }
13124
 
3010 chandransh 13125
    public createRefund_result() {
2462 chandransh 13126
    }
13127
 
3010 chandransh 13128
    public createRefund_result(
13129
      long success,
2462 chandransh 13130
      PaymentException pe)
13131
    {
13132
      this();
13133
      this.success = success;
3010 chandransh 13134
      setSuccessIsSet(true);
2462 chandransh 13135
      this.pe = pe;
13136
    }
13137
 
13138
    /**
13139
     * Performs a deep copy on <i>other</i>.
13140
     */
3010 chandransh 13141
    public createRefund_result(createRefund_result other) {
13142
      __isset_bit_vector.clear();
13143
      __isset_bit_vector.or(other.__isset_bit_vector);
13144
      this.success = other.success;
2462 chandransh 13145
      if (other.isSetPe()) {
13146
        this.pe = new PaymentException(other.pe);
13147
      }
13148
    }
13149
 
3010 chandransh 13150
    public createRefund_result deepCopy() {
13151
      return new createRefund_result(this);
2462 chandransh 13152
    }
13153
 
3430 rajveer 13154
    @Override
13155
    public void clear() {
13156
      setSuccessIsSet(false);
13157
      this.success = 0;
13158
      this.pe = null;
2462 chandransh 13159
    }
13160
 
3010 chandransh 13161
    public long getSuccess() {
2462 chandransh 13162
      return this.success;
13163
    }
13164
 
3430 rajveer 13165
    public void setSuccess(long success) {
2462 chandransh 13166
      this.success = success;
3010 chandransh 13167
      setSuccessIsSet(true);
2462 chandransh 13168
    }
13169
 
13170
    public void unsetSuccess() {
3010 chandransh 13171
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2462 chandransh 13172
    }
13173
 
3430 rajveer 13174
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 13175
    public boolean isSetSuccess() {
3010 chandransh 13176
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2462 chandransh 13177
    }
13178
 
13179
    public void setSuccessIsSet(boolean value) {
3010 chandransh 13180
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2462 chandransh 13181
    }
13182
 
13183
    public PaymentException getPe() {
13184
      return this.pe;
13185
    }
13186
 
3430 rajveer 13187
    public void setPe(PaymentException pe) {
2462 chandransh 13188
      this.pe = pe;
13189
    }
13190
 
13191
    public void unsetPe() {
13192
      this.pe = null;
13193
    }
13194
 
3430 rajveer 13195
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 13196
    public boolean isSetPe() {
13197
      return this.pe != null;
13198
    }
13199
 
13200
    public void setPeIsSet(boolean value) {
13201
      if (!value) {
13202
        this.pe = null;
13203
      }
13204
    }
13205
 
13206
    public void setFieldValue(_Fields field, Object value) {
13207
      switch (field) {
13208
      case SUCCESS:
13209
        if (value == null) {
13210
          unsetSuccess();
13211
        } else {
3010 chandransh 13212
          setSuccess((Long)value);
2462 chandransh 13213
        }
13214
        break;
13215
 
13216
      case PE:
13217
        if (value == null) {
13218
          unsetPe();
13219
        } else {
13220
          setPe((PaymentException)value);
13221
        }
13222
        break;
13223
 
13224
      }
13225
    }
13226
 
13227
    public Object getFieldValue(_Fields field) {
13228
      switch (field) {
13229
      case SUCCESS:
3430 rajveer 13230
        return Long.valueOf(getSuccess());
2462 chandransh 13231
 
13232
      case PE:
13233
        return getPe();
13234
 
13235
      }
13236
      throw new IllegalStateException();
13237
    }
13238
 
3430 rajveer 13239
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13240
    public boolean isSet(_Fields field) {
13241
      if (field == null) {
13242
        throw new IllegalArgumentException();
13243
      }
2462 chandransh 13244
 
13245
      switch (field) {
13246
      case SUCCESS:
13247
        return isSetSuccess();
13248
      case PE:
13249
        return isSetPe();
13250
      }
13251
      throw new IllegalStateException();
13252
    }
13253
 
13254
    @Override
13255
    public boolean equals(Object that) {
13256
      if (that == null)
13257
        return false;
3010 chandransh 13258
      if (that instanceof createRefund_result)
13259
        return this.equals((createRefund_result)that);
2462 chandransh 13260
      return false;
13261
    }
13262
 
3010 chandransh 13263
    public boolean equals(createRefund_result that) {
2462 chandransh 13264
      if (that == null)
13265
        return false;
13266
 
3010 chandransh 13267
      boolean this_present_success = true;
13268
      boolean that_present_success = true;
2462 chandransh 13269
      if (this_present_success || that_present_success) {
13270
        if (!(this_present_success && that_present_success))
13271
          return false;
3010 chandransh 13272
        if (this.success != that.success)
2462 chandransh 13273
          return false;
13274
      }
13275
 
13276
      boolean this_present_pe = true && this.isSetPe();
13277
      boolean that_present_pe = true && that.isSetPe();
13278
      if (this_present_pe || that_present_pe) {
13279
        if (!(this_present_pe && that_present_pe))
13280
          return false;
13281
        if (!this.pe.equals(that.pe))
13282
          return false;
13283
      }
13284
 
13285
      return true;
13286
    }
13287
 
13288
    @Override
13289
    public int hashCode() {
13290
      return 0;
13291
    }
13292
 
3010 chandransh 13293
    public int compareTo(createRefund_result other) {
2462 chandransh 13294
      if (!getClass().equals(other.getClass())) {
13295
        return getClass().getName().compareTo(other.getClass().getName());
13296
      }
13297
 
13298
      int lastComparison = 0;
3010 chandransh 13299
      createRefund_result typedOther = (createRefund_result)other;
2462 chandransh 13300
 
3430 rajveer 13301
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2462 chandransh 13302
      if (lastComparison != 0) {
13303
        return lastComparison;
13304
      }
3430 rajveer 13305
      if (isSetSuccess()) {
13306
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13307
        if (lastComparison != 0) {
13308
          return lastComparison;
13309
        }
2462 chandransh 13310
      }
3430 rajveer 13311
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2462 chandransh 13312
      if (lastComparison != 0) {
13313
        return lastComparison;
13314
      }
3430 rajveer 13315
      if (isSetPe()) {
13316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
13317
        if (lastComparison != 0) {
13318
          return lastComparison;
13319
        }
2462 chandransh 13320
      }
13321
      return 0;
13322
    }
13323
 
3430 rajveer 13324
    public _Fields fieldForId(int fieldId) {
13325
      return _Fields.findByThriftId(fieldId);
13326
    }
13327
 
13328
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13329
      org.apache.thrift.protocol.TField field;
2462 chandransh 13330
      iprot.readStructBegin();
13331
      while (true)
13332
      {
13333
        field = iprot.readFieldBegin();
3430 rajveer 13334
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 13335
          break;
13336
        }
3430 rajveer 13337
        switch (field.id) {
13338
          case 0: // SUCCESS
13339
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13340
              this.success = iprot.readI64();
13341
              setSuccessIsSet(true);
13342
            } else { 
13343
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13344
            }
13345
            break;
13346
          case 1: // PE
13347
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13348
              this.pe = new PaymentException();
13349
              this.pe.read(iprot);
13350
            } else { 
13351
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13352
            }
13353
            break;
13354
          default:
13355
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 13356
        }
3430 rajveer 13357
        iprot.readFieldEnd();
2462 chandransh 13358
      }
13359
      iprot.readStructEnd();
13360
      validate();
13361
    }
13362
 
3430 rajveer 13363
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 13364
      oprot.writeStructBegin(STRUCT_DESC);
13365
 
13366
      if (this.isSetSuccess()) {
13367
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 13368
        oprot.writeI64(this.success);
2462 chandransh 13369
        oprot.writeFieldEnd();
13370
      } else if (this.isSetPe()) {
13371
        oprot.writeFieldBegin(PE_FIELD_DESC);
13372
        this.pe.write(oprot);
13373
        oprot.writeFieldEnd();
13374
      }
13375
      oprot.writeFieldStop();
13376
      oprot.writeStructEnd();
13377
    }
13378
 
13379
    @Override
13380
    public String toString() {
3010 chandransh 13381
      StringBuilder sb = new StringBuilder("createRefund_result(");
2462 chandransh 13382
      boolean first = true;
13383
 
13384
      sb.append("success:");
3010 chandransh 13385
      sb.append(this.success);
2462 chandransh 13386
      first = false;
13387
      if (!first) sb.append(", ");
13388
      sb.append("pe:");
13389
      if (this.pe == null) {
13390
        sb.append("null");
13391
      } else {
13392
        sb.append(this.pe);
13393
      }
13394
      first = false;
13395
      sb.append(")");
13396
      return sb.toString();
13397
    }
13398
 
3430 rajveer 13399
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 13400
      // check for required fields
13401
    }
13402
 
3430 rajveer 13403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13404
      try {
13405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13406
      } catch (org.apache.thrift.TException te) {
13407
        throw new java.io.IOException(te);
13408
      }
13409
    }
13410
 
13411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13412
      try {
13413
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13414
      } catch (org.apache.thrift.TException te) {
13415
        throw new java.io.IOException(te);
13416
      }
13417
    }
13418
 
2462 chandransh 13419
  }
13420
 
3430 rajveer 13421
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
13422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
2690 chandransh 13423
 
3430 rajveer 13424
    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 13425
 
3430 rajveer 13426
    private long merchantTxnId; // required
2690 chandransh 13427
 
13428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 13430
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
2690 chandransh 13431
 
13432
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13433
 
13434
      static {
13435
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13436
          byName.put(field.getFieldName(), field);
13437
        }
13438
      }
13439
 
13440
      /**
13441
       * Find the _Fields constant that matches fieldId, or null if its not found.
13442
       */
13443
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13444
        switch(fieldId) {
13445
          case 1: // MERCHANT_TXN_ID
13446
            return MERCHANT_TXN_ID;
13447
          default:
13448
            return null;
13449
        }
2690 chandransh 13450
      }
13451
 
13452
      /**
13453
       * Find the _Fields constant that matches fieldId, throwing an exception
13454
       * if it is not found.
13455
       */
13456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13457
        _Fields fields = findByThriftId(fieldId);
13458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13459
        return fields;
13460
      }
13461
 
13462
      /**
13463
       * Find the _Fields constant that matches name, or null if its not found.
13464
       */
13465
      public static _Fields findByName(String name) {
13466
        return byName.get(name);
13467
      }
13468
 
13469
      private final short _thriftId;
13470
      private final String _fieldName;
13471
 
13472
      _Fields(short thriftId, String fieldName) {
13473
        _thriftId = thriftId;
13474
        _fieldName = fieldName;
13475
      }
13476
 
13477
      public short getThriftFieldId() {
13478
        return _thriftId;
13479
      }
13480
 
13481
      public String getFieldName() {
13482
        return _fieldName;
13483
      }
13484
    }
13485
 
13486
    // isset id assignments
3010 chandransh 13487
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
13488
    private BitSet __isset_bit_vector = new BitSet(1);
2690 chandransh 13489
 
3430 rajveer 13490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 13491
    static {
3430 rajveer 13492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13493
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
2690 chandransh 13497
    }
13498
 
3010 chandransh 13499
    public capturePayment_args() {
2690 chandransh 13500
    }
13501
 
3010 chandransh 13502
    public capturePayment_args(
13503
      long merchantTxnId)
2690 chandransh 13504
    {
13505
      this();
13506
      this.merchantTxnId = merchantTxnId;
13507
      setMerchantTxnIdIsSet(true);
13508
    }
13509
 
13510
    /**
13511
     * Performs a deep copy on <i>other</i>.
13512
     */
3010 chandransh 13513
    public capturePayment_args(capturePayment_args other) {
2690 chandransh 13514
      __isset_bit_vector.clear();
13515
      __isset_bit_vector.or(other.__isset_bit_vector);
13516
      this.merchantTxnId = other.merchantTxnId;
13517
    }
13518
 
3010 chandransh 13519
    public capturePayment_args deepCopy() {
13520
      return new capturePayment_args(this);
2690 chandransh 13521
    }
13522
 
3430 rajveer 13523
    @Override
13524
    public void clear() {
13525
      setMerchantTxnIdIsSet(false);
13526
      this.merchantTxnId = 0;
2690 chandransh 13527
    }
13528
 
13529
    public long getMerchantTxnId() {
13530
      return this.merchantTxnId;
13531
    }
13532
 
3430 rajveer 13533
    public void setMerchantTxnId(long merchantTxnId) {
2690 chandransh 13534
      this.merchantTxnId = merchantTxnId;
13535
      setMerchantTxnIdIsSet(true);
13536
    }
13537
 
13538
    public void unsetMerchantTxnId() {
13539
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
13540
    }
13541
 
3430 rajveer 13542
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
2690 chandransh 13543
    public boolean isSetMerchantTxnId() {
13544
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
13545
    }
13546
 
13547
    public void setMerchantTxnIdIsSet(boolean value) {
13548
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
13549
    }
13550
 
13551
    public void setFieldValue(_Fields field, Object value) {
13552
      switch (field) {
13553
      case MERCHANT_TXN_ID:
13554
        if (value == null) {
13555
          unsetMerchantTxnId();
13556
        } else {
13557
          setMerchantTxnId((Long)value);
13558
        }
13559
        break;
13560
 
13561
      }
13562
    }
13563
 
13564
    public Object getFieldValue(_Fields field) {
13565
      switch (field) {
13566
      case MERCHANT_TXN_ID:
3430 rajveer 13567
        return Long.valueOf(getMerchantTxnId());
2690 chandransh 13568
 
13569
      }
13570
      throw new IllegalStateException();
13571
    }
13572
 
3430 rajveer 13573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13574
    public boolean isSet(_Fields field) {
13575
      if (field == null) {
13576
        throw new IllegalArgumentException();
13577
      }
2690 chandransh 13578
 
13579
      switch (field) {
13580
      case MERCHANT_TXN_ID:
13581
        return isSetMerchantTxnId();
13582
      }
13583
      throw new IllegalStateException();
13584
    }
13585
 
13586
    @Override
13587
    public boolean equals(Object that) {
13588
      if (that == null)
13589
        return false;
3010 chandransh 13590
      if (that instanceof capturePayment_args)
13591
        return this.equals((capturePayment_args)that);
2690 chandransh 13592
      return false;
13593
    }
13594
 
3010 chandransh 13595
    public boolean equals(capturePayment_args that) {
2690 chandransh 13596
      if (that == null)
13597
        return false;
13598
 
13599
      boolean this_present_merchantTxnId = true;
13600
      boolean that_present_merchantTxnId = true;
13601
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
13602
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
13603
          return false;
13604
        if (this.merchantTxnId != that.merchantTxnId)
13605
          return false;
13606
      }
13607
 
13608
      return true;
13609
    }
13610
 
13611
    @Override
13612
    public int hashCode() {
13613
      return 0;
13614
    }
13615
 
3010 chandransh 13616
    public int compareTo(capturePayment_args other) {
2690 chandransh 13617
      if (!getClass().equals(other.getClass())) {
13618
        return getClass().getName().compareTo(other.getClass().getName());
13619
      }
13620
 
13621
      int lastComparison = 0;
3010 chandransh 13622
      capturePayment_args typedOther = (capturePayment_args)other;
2690 chandransh 13623
 
3430 rajveer 13624
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
2690 chandransh 13625
      if (lastComparison != 0) {
13626
        return lastComparison;
13627
      }
3430 rajveer 13628
      if (isSetMerchantTxnId()) {
13629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
13630
        if (lastComparison != 0) {
13631
          return lastComparison;
13632
        }
2690 chandransh 13633
      }
13634
      return 0;
13635
    }
13636
 
3430 rajveer 13637
    public _Fields fieldForId(int fieldId) {
13638
      return _Fields.findByThriftId(fieldId);
13639
    }
13640
 
13641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13642
      org.apache.thrift.protocol.TField field;
2690 chandransh 13643
      iprot.readStructBegin();
13644
      while (true)
13645
      {
13646
        field = iprot.readFieldBegin();
3430 rajveer 13647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 13648
          break;
13649
        }
3430 rajveer 13650
        switch (field.id) {
13651
          case 1: // MERCHANT_TXN_ID
13652
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13653
              this.merchantTxnId = iprot.readI64();
13654
              setMerchantTxnIdIsSet(true);
13655
            } else { 
13656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13657
            }
13658
            break;
13659
          default:
13660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 13661
        }
3430 rajveer 13662
        iprot.readFieldEnd();
2690 chandransh 13663
      }
13664
      iprot.readStructEnd();
13665
      validate();
13666
    }
13667
 
3430 rajveer 13668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 13669
      validate();
13670
 
13671
      oprot.writeStructBegin(STRUCT_DESC);
13672
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
13673
      oprot.writeI64(this.merchantTxnId);
13674
      oprot.writeFieldEnd();
13675
      oprot.writeFieldStop();
13676
      oprot.writeStructEnd();
13677
    }
13678
 
13679
    @Override
13680
    public String toString() {
3010 chandransh 13681
      StringBuilder sb = new StringBuilder("capturePayment_args(");
2690 chandransh 13682
      boolean first = true;
13683
 
13684
      sb.append("merchantTxnId:");
13685
      sb.append(this.merchantTxnId);
13686
      first = false;
13687
      sb.append(")");
13688
      return sb.toString();
13689
    }
13690
 
3430 rajveer 13691
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 13692
      // check for required fields
13693
    }
13694
 
3430 rajveer 13695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13696
      try {
13697
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13698
      } catch (org.apache.thrift.TException te) {
13699
        throw new java.io.IOException(te);
13700
      }
13701
    }
13702
 
13703
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13704
      try {
13705
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13706
      } catch (org.apache.thrift.TException te) {
13707
        throw new java.io.IOException(te);
13708
      }
13709
    }
13710
 
2690 chandransh 13711
  }
13712
 
3430 rajveer 13713
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
13714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
2690 chandransh 13715
 
3430 rajveer 13716
    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);
13717
    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 13718
 
3430 rajveer 13719
    private boolean success; // required
13720
    private PaymentException pe; // required
2690 chandransh 13721
 
13722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 13724
      SUCCESS((short)0, "success"),
13725
      PE((short)1, "pe");
13726
 
13727
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13728
 
13729
      static {
13730
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13731
          byName.put(field.getFieldName(), field);
13732
        }
13733
      }
13734
 
13735
      /**
13736
       * Find the _Fields constant that matches fieldId, or null if its not found.
13737
       */
13738
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13739
        switch(fieldId) {
13740
          case 0: // SUCCESS
13741
            return SUCCESS;
13742
          case 1: // PE
13743
            return PE;
13744
          default:
13745
            return null;
13746
        }
2690 chandransh 13747
      }
13748
 
13749
      /**
13750
       * Find the _Fields constant that matches fieldId, throwing an exception
13751
       * if it is not found.
13752
       */
13753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13754
        _Fields fields = findByThriftId(fieldId);
13755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13756
        return fields;
13757
      }
13758
 
13759
      /**
13760
       * Find the _Fields constant that matches name, or null if its not found.
13761
       */
13762
      public static _Fields findByName(String name) {
13763
        return byName.get(name);
13764
      }
13765
 
13766
      private final short _thriftId;
13767
      private final String _fieldName;
13768
 
13769
      _Fields(short thriftId, String fieldName) {
13770
        _thriftId = thriftId;
13771
        _fieldName = fieldName;
13772
      }
13773
 
13774
      public short getThriftFieldId() {
13775
        return _thriftId;
13776
      }
13777
 
13778
      public String getFieldName() {
13779
        return _fieldName;
13780
      }
13781
    }
13782
 
13783
    // isset id assignments
13784
    private static final int __SUCCESS_ISSET_ID = 0;
13785
    private BitSet __isset_bit_vector = new BitSet(1);
13786
 
3430 rajveer 13787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 13788
    static {
3430 rajveer 13789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13790
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13792
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13794
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13795
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
2690 chandransh 13796
    }
13797
 
3010 chandransh 13798
    public capturePayment_result() {
2690 chandransh 13799
    }
13800
 
3010 chandransh 13801
    public capturePayment_result(
13802
      boolean success,
2690 chandransh 13803
      PaymentException pe)
13804
    {
13805
      this();
13806
      this.success = success;
13807
      setSuccessIsSet(true);
13808
      this.pe = pe;
13809
    }
13810
 
13811
    /**
13812
     * Performs a deep copy on <i>other</i>.
13813
     */
3010 chandransh 13814
    public capturePayment_result(capturePayment_result other) {
2690 chandransh 13815
      __isset_bit_vector.clear();
13816
      __isset_bit_vector.or(other.__isset_bit_vector);
13817
      this.success = other.success;
13818
      if (other.isSetPe()) {
13819
        this.pe = new PaymentException(other.pe);
13820
      }
13821
    }
13822
 
3010 chandransh 13823
    public capturePayment_result deepCopy() {
13824
      return new capturePayment_result(this);
2690 chandransh 13825
    }
13826
 
3430 rajveer 13827
    @Override
13828
    public void clear() {
13829
      setSuccessIsSet(false);
13830
      this.success = false;
13831
      this.pe = null;
2690 chandransh 13832
    }
13833
 
3010 chandransh 13834
    public boolean isSuccess() {
2690 chandransh 13835
      return this.success;
13836
    }
13837
 
3430 rajveer 13838
    public void setSuccess(boolean success) {
2690 chandransh 13839
      this.success = success;
13840
      setSuccessIsSet(true);
13841
    }
13842
 
13843
    public void unsetSuccess() {
13844
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13845
    }
13846
 
3430 rajveer 13847
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 13848
    public boolean isSetSuccess() {
13849
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13850
    }
13851
 
13852
    public void setSuccessIsSet(boolean value) {
13853
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13854
    }
13855
 
13856
    public PaymentException getPe() {
13857
      return this.pe;
13858
    }
13859
 
3430 rajveer 13860
    public void setPe(PaymentException pe) {
2690 chandransh 13861
      this.pe = pe;
13862
    }
13863
 
13864
    public void unsetPe() {
13865
      this.pe = null;
13866
    }
13867
 
3430 rajveer 13868
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2690 chandransh 13869
    public boolean isSetPe() {
13870
      return this.pe != null;
13871
    }
13872
 
13873
    public void setPeIsSet(boolean value) {
13874
      if (!value) {
13875
        this.pe = null;
13876
      }
13877
    }
13878
 
13879
    public void setFieldValue(_Fields field, Object value) {
13880
      switch (field) {
13881
      case SUCCESS:
13882
        if (value == null) {
13883
          unsetSuccess();
13884
        } else {
3010 chandransh 13885
          setSuccess((Boolean)value);
2690 chandransh 13886
        }
13887
        break;
13888
 
13889
      case PE:
13890
        if (value == null) {
13891
          unsetPe();
13892
        } else {
13893
          setPe((PaymentException)value);
13894
        }
13895
        break;
13896
 
13897
      }
13898
    }
13899
 
13900
    public Object getFieldValue(_Fields field) {
13901
      switch (field) {
13902
      case SUCCESS:
3430 rajveer 13903
        return Boolean.valueOf(isSuccess());
2690 chandransh 13904
 
13905
      case PE:
13906
        return getPe();
13907
 
13908
      }
13909
      throw new IllegalStateException();
13910
    }
13911
 
3430 rajveer 13912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13913
    public boolean isSet(_Fields field) {
13914
      if (field == null) {
13915
        throw new IllegalArgumentException();
13916
      }
2690 chandransh 13917
 
13918
      switch (field) {
13919
      case SUCCESS:
13920
        return isSetSuccess();
13921
      case PE:
13922
        return isSetPe();
13923
      }
13924
      throw new IllegalStateException();
13925
    }
13926
 
13927
    @Override
13928
    public boolean equals(Object that) {
13929
      if (that == null)
13930
        return false;
3010 chandransh 13931
      if (that instanceof capturePayment_result)
13932
        return this.equals((capturePayment_result)that);
2690 chandransh 13933
      return false;
13934
    }
13935
 
3010 chandransh 13936
    public boolean equals(capturePayment_result that) {
2690 chandransh 13937
      if (that == null)
13938
        return false;
13939
 
13940
      boolean this_present_success = true;
13941
      boolean that_present_success = true;
13942
      if (this_present_success || that_present_success) {
13943
        if (!(this_present_success && that_present_success))
13944
          return false;
13945
        if (this.success != that.success)
13946
          return false;
13947
      }
13948
 
13949
      boolean this_present_pe = true && this.isSetPe();
13950
      boolean that_present_pe = true && that.isSetPe();
13951
      if (this_present_pe || that_present_pe) {
13952
        if (!(this_present_pe && that_present_pe))
13953
          return false;
13954
        if (!this.pe.equals(that.pe))
13955
          return false;
13956
      }
13957
 
13958
      return true;
13959
    }
13960
 
13961
    @Override
13962
    public int hashCode() {
13963
      return 0;
13964
    }
13965
 
3010 chandransh 13966
    public int compareTo(capturePayment_result other) {
2690 chandransh 13967
      if (!getClass().equals(other.getClass())) {
13968
        return getClass().getName().compareTo(other.getClass().getName());
13969
      }
13970
 
13971
      int lastComparison = 0;
3010 chandransh 13972
      capturePayment_result typedOther = (capturePayment_result)other;
2690 chandransh 13973
 
3430 rajveer 13974
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 13975
      if (lastComparison != 0) {
13976
        return lastComparison;
13977
      }
3430 rajveer 13978
      if (isSetSuccess()) {
13979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13980
        if (lastComparison != 0) {
13981
          return lastComparison;
13982
        }
2690 chandransh 13983
      }
3430 rajveer 13984
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2690 chandransh 13985
      if (lastComparison != 0) {
13986
        return lastComparison;
13987
      }
3430 rajveer 13988
      if (isSetPe()) {
13989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
13990
        if (lastComparison != 0) {
13991
          return lastComparison;
13992
        }
2690 chandransh 13993
      }
13994
      return 0;
13995
    }
13996
 
3430 rajveer 13997
    public _Fields fieldForId(int fieldId) {
13998
      return _Fields.findByThriftId(fieldId);
13999
    }
14000
 
14001
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14002
      org.apache.thrift.protocol.TField field;
2690 chandransh 14003
      iprot.readStructBegin();
14004
      while (true)
14005
      {
14006
        field = iprot.readFieldBegin();
3430 rajveer 14007
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 14008
          break;
14009
        }
3430 rajveer 14010
        switch (field.id) {
14011
          case 0: // SUCCESS
14012
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14013
              this.success = iprot.readBool();
14014
              setSuccessIsSet(true);
14015
            } else { 
14016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14017
            }
14018
            break;
14019
          case 1: // PE
14020
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14021
              this.pe = new PaymentException();
14022
              this.pe.read(iprot);
14023
            } else { 
14024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14025
            }
14026
            break;
14027
          default:
14028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 14029
        }
3430 rajveer 14030
        iprot.readFieldEnd();
2690 chandransh 14031
      }
14032
      iprot.readStructEnd();
14033
      validate();
14034
    }
14035
 
3430 rajveer 14036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 14037
      oprot.writeStructBegin(STRUCT_DESC);
14038
 
14039
      if (this.isSetSuccess()) {
14040
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 14041
        oprot.writeBool(this.success);
2690 chandransh 14042
        oprot.writeFieldEnd();
14043
      } else if (this.isSetPe()) {
14044
        oprot.writeFieldBegin(PE_FIELD_DESC);
14045
        this.pe.write(oprot);
14046
        oprot.writeFieldEnd();
14047
      }
14048
      oprot.writeFieldStop();
14049
      oprot.writeStructEnd();
14050
    }
14051
 
14052
    @Override
14053
    public String toString() {
3010 chandransh 14054
      StringBuilder sb = new StringBuilder("capturePayment_result(");
2690 chandransh 14055
      boolean first = true;
14056
 
14057
      sb.append("success:");
14058
      sb.append(this.success);
14059
      first = false;
14060
      if (!first) sb.append(", ");
14061
      sb.append("pe:");
14062
      if (this.pe == null) {
14063
        sb.append("null");
14064
      } else {
14065
        sb.append(this.pe);
14066
      }
14067
      first = false;
14068
      sb.append(")");
14069
      return sb.toString();
14070
    }
14071
 
3430 rajveer 14072
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 14073
      // check for required fields
14074
    }
14075
 
3430 rajveer 14076
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14077
      try {
14078
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14079
      } catch (org.apache.thrift.TException te) {
14080
        throw new java.io.IOException(te);
14081
      }
14082
    }
14083
 
14084
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14085
      try {
14086
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14087
      } catch (org.apache.thrift.TException te) {
14088
        throw new java.io.IOException(te);
14089
      }
14090
    }
14091
 
2690 chandransh 14092
  }
14093
 
3956 chandransh 14094
  public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable   {
14095
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
14096
 
14097
    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);
14098
    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);
14099
    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);
14100
    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);
14101
    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);
14102
 
14103
    private long merchantTxnId; // required
14104
    private double amount; // required
14105
    private String xferBy; // required
14106
    private String xferTxnId; // required
14107
    private long xferDate; // required
14108
 
14109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14111
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
14112
      AMOUNT((short)2, "amount"),
14113
      XFER_BY((short)3, "xferBy"),
14114
      XFER_TXN_ID((short)4, "xferTxnId"),
14115
      XFER_DATE((short)5, "xferDate");
14116
 
14117
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14118
 
14119
      static {
14120
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14121
          byName.put(field.getFieldName(), field);
14122
        }
14123
      }
14124
 
14125
      /**
14126
       * Find the _Fields constant that matches fieldId, or null if its not found.
14127
       */
14128
      public static _Fields findByThriftId(int fieldId) {
14129
        switch(fieldId) {
14130
          case 1: // MERCHANT_TXN_ID
14131
            return MERCHANT_TXN_ID;
14132
          case 2: // AMOUNT
14133
            return AMOUNT;
14134
          case 3: // XFER_BY
14135
            return XFER_BY;
14136
          case 4: // XFER_TXN_ID
14137
            return XFER_TXN_ID;
14138
          case 5: // XFER_DATE
14139
            return XFER_DATE;
14140
          default:
14141
            return null;
14142
        }
14143
      }
14144
 
14145
      /**
14146
       * Find the _Fields constant that matches fieldId, throwing an exception
14147
       * if it is not found.
14148
       */
14149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14150
        _Fields fields = findByThriftId(fieldId);
14151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14152
        return fields;
14153
      }
14154
 
14155
      /**
14156
       * Find the _Fields constant that matches name, or null if its not found.
14157
       */
14158
      public static _Fields findByName(String name) {
14159
        return byName.get(name);
14160
      }
14161
 
14162
      private final short _thriftId;
14163
      private final String _fieldName;
14164
 
14165
      _Fields(short thriftId, String fieldName) {
14166
        _thriftId = thriftId;
14167
        _fieldName = fieldName;
14168
      }
14169
 
14170
      public short getThriftFieldId() {
14171
        return _thriftId;
14172
      }
14173
 
14174
      public String getFieldName() {
14175
        return _fieldName;
14176
      }
14177
    }
14178
 
14179
    // isset id assignments
14180
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
14181
    private static final int __AMOUNT_ISSET_ID = 1;
14182
    private static final int __XFERDATE_ISSET_ID = 2;
14183
    private BitSet __isset_bit_vector = new BitSet(3);
14184
 
14185
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14186
    static {
14187
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14188
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14189
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14190
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14192
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14193
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14194
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14195
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14196
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14197
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14198
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14199
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
14200
    }
14201
 
14202
    public partiallyCapturePayment_args() {
14203
    }
14204
 
14205
    public partiallyCapturePayment_args(
14206
      long merchantTxnId,
14207
      double amount,
14208
      String xferBy,
14209
      String xferTxnId,
14210
      long xferDate)
14211
    {
14212
      this();
14213
      this.merchantTxnId = merchantTxnId;
14214
      setMerchantTxnIdIsSet(true);
14215
      this.amount = amount;
14216
      setAmountIsSet(true);
14217
      this.xferBy = xferBy;
14218
      this.xferTxnId = xferTxnId;
14219
      this.xferDate = xferDate;
14220
      setXferDateIsSet(true);
14221
    }
14222
 
14223
    /**
14224
     * Performs a deep copy on <i>other</i>.
14225
     */
14226
    public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
14227
      __isset_bit_vector.clear();
14228
      __isset_bit_vector.or(other.__isset_bit_vector);
14229
      this.merchantTxnId = other.merchantTxnId;
14230
      this.amount = other.amount;
14231
      if (other.isSetXferBy()) {
14232
        this.xferBy = other.xferBy;
14233
      }
14234
      if (other.isSetXferTxnId()) {
14235
        this.xferTxnId = other.xferTxnId;
14236
      }
14237
      this.xferDate = other.xferDate;
14238
    }
14239
 
14240
    public partiallyCapturePayment_args deepCopy() {
14241
      return new partiallyCapturePayment_args(this);
14242
    }
14243
 
14244
    @Override
14245
    public void clear() {
14246
      setMerchantTxnIdIsSet(false);
14247
      this.merchantTxnId = 0;
14248
      setAmountIsSet(false);
14249
      this.amount = 0.0;
14250
      this.xferBy = null;
14251
      this.xferTxnId = null;
14252
      setXferDateIsSet(false);
14253
      this.xferDate = 0;
14254
    }
14255
 
14256
    public long getMerchantTxnId() {
14257
      return this.merchantTxnId;
14258
    }
14259
 
14260
    public void setMerchantTxnId(long merchantTxnId) {
14261
      this.merchantTxnId = merchantTxnId;
14262
      setMerchantTxnIdIsSet(true);
14263
    }
14264
 
14265
    public void unsetMerchantTxnId() {
14266
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
14267
    }
14268
 
14269
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
14270
    public boolean isSetMerchantTxnId() {
14271
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
14272
    }
14273
 
14274
    public void setMerchantTxnIdIsSet(boolean value) {
14275
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
14276
    }
14277
 
14278
    public double getAmount() {
14279
      return this.amount;
14280
    }
14281
 
14282
    public void setAmount(double amount) {
14283
      this.amount = amount;
14284
      setAmountIsSet(true);
14285
    }
14286
 
14287
    public void unsetAmount() {
14288
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
14289
    }
14290
 
14291
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
14292
    public boolean isSetAmount() {
14293
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
14294
    }
14295
 
14296
    public void setAmountIsSet(boolean value) {
14297
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
14298
    }
14299
 
14300
    public String getXferBy() {
14301
      return this.xferBy;
14302
    }
14303
 
14304
    public void setXferBy(String xferBy) {
14305
      this.xferBy = xferBy;
14306
    }
14307
 
14308
    public void unsetXferBy() {
14309
      this.xferBy = null;
14310
    }
14311
 
14312
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
14313
    public boolean isSetXferBy() {
14314
      return this.xferBy != null;
14315
    }
14316
 
14317
    public void setXferByIsSet(boolean value) {
14318
      if (!value) {
14319
        this.xferBy = null;
14320
      }
14321
    }
14322
 
14323
    public String getXferTxnId() {
14324
      return this.xferTxnId;
14325
    }
14326
 
14327
    public void setXferTxnId(String xferTxnId) {
14328
      this.xferTxnId = xferTxnId;
14329
    }
14330
 
14331
    public void unsetXferTxnId() {
14332
      this.xferTxnId = null;
14333
    }
14334
 
14335
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
14336
    public boolean isSetXferTxnId() {
14337
      return this.xferTxnId != null;
14338
    }
14339
 
14340
    public void setXferTxnIdIsSet(boolean value) {
14341
      if (!value) {
14342
        this.xferTxnId = null;
14343
      }
14344
    }
14345
 
14346
    public long getXferDate() {
14347
      return this.xferDate;
14348
    }
14349
 
14350
    public void setXferDate(long xferDate) {
14351
      this.xferDate = xferDate;
14352
      setXferDateIsSet(true);
14353
    }
14354
 
14355
    public void unsetXferDate() {
14356
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
14357
    }
14358
 
14359
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
14360
    public boolean isSetXferDate() {
14361
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
14362
    }
14363
 
14364
    public void setXferDateIsSet(boolean value) {
14365
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
14366
    }
14367
 
14368
    public void setFieldValue(_Fields field, Object value) {
14369
      switch (field) {
14370
      case MERCHANT_TXN_ID:
14371
        if (value == null) {
14372
          unsetMerchantTxnId();
14373
        } else {
14374
          setMerchantTxnId((Long)value);
14375
        }
14376
        break;
14377
 
14378
      case AMOUNT:
14379
        if (value == null) {
14380
          unsetAmount();
14381
        } else {
14382
          setAmount((Double)value);
14383
        }
14384
        break;
14385
 
14386
      case XFER_BY:
14387
        if (value == null) {
14388
          unsetXferBy();
14389
        } else {
14390
          setXferBy((String)value);
14391
        }
14392
        break;
14393
 
14394
      case XFER_TXN_ID:
14395
        if (value == null) {
14396
          unsetXferTxnId();
14397
        } else {
14398
          setXferTxnId((String)value);
14399
        }
14400
        break;
14401
 
14402
      case XFER_DATE:
14403
        if (value == null) {
14404
          unsetXferDate();
14405
        } else {
14406
          setXferDate((Long)value);
14407
        }
14408
        break;
14409
 
14410
      }
14411
    }
14412
 
14413
    public Object getFieldValue(_Fields field) {
14414
      switch (field) {
14415
      case MERCHANT_TXN_ID:
14416
        return Long.valueOf(getMerchantTxnId());
14417
 
14418
      case AMOUNT:
14419
        return Double.valueOf(getAmount());
14420
 
14421
      case XFER_BY:
14422
        return getXferBy();
14423
 
14424
      case XFER_TXN_ID:
14425
        return getXferTxnId();
14426
 
14427
      case XFER_DATE:
14428
        return Long.valueOf(getXferDate());
14429
 
14430
      }
14431
      throw new IllegalStateException();
14432
    }
14433
 
14434
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14435
    public boolean isSet(_Fields field) {
14436
      if (field == null) {
14437
        throw new IllegalArgumentException();
14438
      }
14439
 
14440
      switch (field) {
14441
      case MERCHANT_TXN_ID:
14442
        return isSetMerchantTxnId();
14443
      case AMOUNT:
14444
        return isSetAmount();
14445
      case XFER_BY:
14446
        return isSetXferBy();
14447
      case XFER_TXN_ID:
14448
        return isSetXferTxnId();
14449
      case XFER_DATE:
14450
        return isSetXferDate();
14451
      }
14452
      throw new IllegalStateException();
14453
    }
14454
 
14455
    @Override
14456
    public boolean equals(Object that) {
14457
      if (that == null)
14458
        return false;
14459
      if (that instanceof partiallyCapturePayment_args)
14460
        return this.equals((partiallyCapturePayment_args)that);
14461
      return false;
14462
    }
14463
 
14464
    public boolean equals(partiallyCapturePayment_args that) {
14465
      if (that == null)
14466
        return false;
14467
 
14468
      boolean this_present_merchantTxnId = true;
14469
      boolean that_present_merchantTxnId = true;
14470
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
14471
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
14472
          return false;
14473
        if (this.merchantTxnId != that.merchantTxnId)
14474
          return false;
14475
      }
14476
 
14477
      boolean this_present_amount = true;
14478
      boolean that_present_amount = true;
14479
      if (this_present_amount || that_present_amount) {
14480
        if (!(this_present_amount && that_present_amount))
14481
          return false;
14482
        if (this.amount != that.amount)
14483
          return false;
14484
      }
14485
 
14486
      boolean this_present_xferBy = true && this.isSetXferBy();
14487
      boolean that_present_xferBy = true && that.isSetXferBy();
14488
      if (this_present_xferBy || that_present_xferBy) {
14489
        if (!(this_present_xferBy && that_present_xferBy))
14490
          return false;
14491
        if (!this.xferBy.equals(that.xferBy))
14492
          return false;
14493
      }
14494
 
14495
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
14496
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
14497
      if (this_present_xferTxnId || that_present_xferTxnId) {
14498
        if (!(this_present_xferTxnId && that_present_xferTxnId))
14499
          return false;
14500
        if (!this.xferTxnId.equals(that.xferTxnId))
14501
          return false;
14502
      }
14503
 
14504
      boolean this_present_xferDate = true;
14505
      boolean that_present_xferDate = true;
14506
      if (this_present_xferDate || that_present_xferDate) {
14507
        if (!(this_present_xferDate && that_present_xferDate))
14508
          return false;
14509
        if (this.xferDate != that.xferDate)
14510
          return false;
14511
      }
14512
 
14513
      return true;
14514
    }
14515
 
14516
    @Override
14517
    public int hashCode() {
14518
      return 0;
14519
    }
14520
 
14521
    public int compareTo(partiallyCapturePayment_args other) {
14522
      if (!getClass().equals(other.getClass())) {
14523
        return getClass().getName().compareTo(other.getClass().getName());
14524
      }
14525
 
14526
      int lastComparison = 0;
14527
      partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
14528
 
14529
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
14530
      if (lastComparison != 0) {
14531
        return lastComparison;
14532
      }
14533
      if (isSetMerchantTxnId()) {
14534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
14535
        if (lastComparison != 0) {
14536
          return lastComparison;
14537
        }
14538
      }
14539
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
14540
      if (lastComparison != 0) {
14541
        return lastComparison;
14542
      }
14543
      if (isSetAmount()) {
14544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
14545
        if (lastComparison != 0) {
14546
          return lastComparison;
14547
        }
14548
      }
14549
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
14550
      if (lastComparison != 0) {
14551
        return lastComparison;
14552
      }
14553
      if (isSetXferBy()) {
14554
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
14555
        if (lastComparison != 0) {
14556
          return lastComparison;
14557
        }
14558
      }
14559
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
14560
      if (lastComparison != 0) {
14561
        return lastComparison;
14562
      }
14563
      if (isSetXferTxnId()) {
14564
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
14565
        if (lastComparison != 0) {
14566
          return lastComparison;
14567
        }
14568
      }
14569
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
14570
      if (lastComparison != 0) {
14571
        return lastComparison;
14572
      }
14573
      if (isSetXferDate()) {
14574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
14575
        if (lastComparison != 0) {
14576
          return lastComparison;
14577
        }
14578
      }
14579
      return 0;
14580
    }
14581
 
14582
    public _Fields fieldForId(int fieldId) {
14583
      return _Fields.findByThriftId(fieldId);
14584
    }
14585
 
14586
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14587
      org.apache.thrift.protocol.TField field;
14588
      iprot.readStructBegin();
14589
      while (true)
14590
      {
14591
        field = iprot.readFieldBegin();
14592
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14593
          break;
14594
        }
14595
        switch (field.id) {
14596
          case 1: // MERCHANT_TXN_ID
14597
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14598
              this.merchantTxnId = iprot.readI64();
14599
              setMerchantTxnIdIsSet(true);
14600
            } else { 
14601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14602
            }
14603
            break;
14604
          case 2: // AMOUNT
14605
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14606
              this.amount = iprot.readDouble();
14607
              setAmountIsSet(true);
14608
            } else { 
14609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14610
            }
14611
            break;
14612
          case 3: // XFER_BY
14613
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14614
              this.xferBy = iprot.readString();
14615
            } else { 
14616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14617
            }
14618
            break;
14619
          case 4: // XFER_TXN_ID
14620
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14621
              this.xferTxnId = iprot.readString();
14622
            } else { 
14623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14624
            }
14625
            break;
14626
          case 5: // XFER_DATE
14627
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14628
              this.xferDate = iprot.readI64();
14629
              setXferDateIsSet(true);
14630
            } else { 
14631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14632
            }
14633
            break;
14634
          default:
14635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14636
        }
14637
        iprot.readFieldEnd();
14638
      }
14639
      iprot.readStructEnd();
14640
      validate();
14641
    }
14642
 
14643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14644
      validate();
14645
 
14646
      oprot.writeStructBegin(STRUCT_DESC);
14647
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
14648
      oprot.writeI64(this.merchantTxnId);
14649
      oprot.writeFieldEnd();
14650
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
14651
      oprot.writeDouble(this.amount);
14652
      oprot.writeFieldEnd();
14653
      if (this.xferBy != null) {
14654
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
14655
        oprot.writeString(this.xferBy);
14656
        oprot.writeFieldEnd();
14657
      }
14658
      if (this.xferTxnId != null) {
14659
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
14660
        oprot.writeString(this.xferTxnId);
14661
        oprot.writeFieldEnd();
14662
      }
14663
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
14664
      oprot.writeI64(this.xferDate);
14665
      oprot.writeFieldEnd();
14666
      oprot.writeFieldStop();
14667
      oprot.writeStructEnd();
14668
    }
14669
 
14670
    @Override
14671
    public String toString() {
14672
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
14673
      boolean first = true;
14674
 
14675
      sb.append("merchantTxnId:");
14676
      sb.append(this.merchantTxnId);
14677
      first = false;
14678
      if (!first) sb.append(", ");
14679
      sb.append("amount:");
14680
      sb.append(this.amount);
14681
      first = false;
14682
      if (!first) sb.append(", ");
14683
      sb.append("xferBy:");
14684
      if (this.xferBy == null) {
14685
        sb.append("null");
14686
      } else {
14687
        sb.append(this.xferBy);
14688
      }
14689
      first = false;
14690
      if (!first) sb.append(", ");
14691
      sb.append("xferTxnId:");
14692
      if (this.xferTxnId == null) {
14693
        sb.append("null");
14694
      } else {
14695
        sb.append(this.xferTxnId);
14696
      }
14697
      first = false;
14698
      if (!first) sb.append(", ");
14699
      sb.append("xferDate:");
14700
      sb.append(this.xferDate);
14701
      first = false;
14702
      sb.append(")");
14703
      return sb.toString();
14704
    }
14705
 
14706
    public void validate() throws org.apache.thrift.TException {
14707
      // check for required fields
14708
    }
14709
 
14710
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14711
      try {
14712
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14713
      } catch (org.apache.thrift.TException te) {
14714
        throw new java.io.IOException(te);
14715
      }
14716
    }
14717
 
14718
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14719
      try {
14720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14721
      } catch (org.apache.thrift.TException te) {
14722
        throw new java.io.IOException(te);
14723
      }
14724
    }
14725
 
14726
  }
14727
 
14728
  public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable   {
14729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
14730
 
14731
    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);
14732
    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);
14733
 
14734
    private boolean success; // required
14735
    private PaymentException pe; // required
14736
 
14737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14739
      SUCCESS((short)0, "success"),
14740
      PE((short)1, "pe");
14741
 
14742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14743
 
14744
      static {
14745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14746
          byName.put(field.getFieldName(), field);
14747
        }
14748
      }
14749
 
14750
      /**
14751
       * Find the _Fields constant that matches fieldId, or null if its not found.
14752
       */
14753
      public static _Fields findByThriftId(int fieldId) {
14754
        switch(fieldId) {
14755
          case 0: // SUCCESS
14756
            return SUCCESS;
14757
          case 1: // PE
14758
            return PE;
14759
          default:
14760
            return null;
14761
        }
14762
      }
14763
 
14764
      /**
14765
       * Find the _Fields constant that matches fieldId, throwing an exception
14766
       * if it is not found.
14767
       */
14768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14769
        _Fields fields = findByThriftId(fieldId);
14770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14771
        return fields;
14772
      }
14773
 
14774
      /**
14775
       * Find the _Fields constant that matches name, or null if its not found.
14776
       */
14777
      public static _Fields findByName(String name) {
14778
        return byName.get(name);
14779
      }
14780
 
14781
      private final short _thriftId;
14782
      private final String _fieldName;
14783
 
14784
      _Fields(short thriftId, String fieldName) {
14785
        _thriftId = thriftId;
14786
        _fieldName = fieldName;
14787
      }
14788
 
14789
      public short getThriftFieldId() {
14790
        return _thriftId;
14791
      }
14792
 
14793
      public String getFieldName() {
14794
        return _fieldName;
14795
      }
14796
    }
14797
 
14798
    // isset id assignments
14799
    private static final int __SUCCESS_ISSET_ID = 0;
14800
    private BitSet __isset_bit_vector = new BitSet(1);
14801
 
14802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14803
    static {
14804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14805
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14807
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14809
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14810
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
14811
    }
14812
 
14813
    public partiallyCapturePayment_result() {
14814
    }
14815
 
14816
    public partiallyCapturePayment_result(
14817
      boolean success,
14818
      PaymentException pe)
14819
    {
14820
      this();
14821
      this.success = success;
14822
      setSuccessIsSet(true);
14823
      this.pe = pe;
14824
    }
14825
 
14826
    /**
14827
     * Performs a deep copy on <i>other</i>.
14828
     */
14829
    public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
14830
      __isset_bit_vector.clear();
14831
      __isset_bit_vector.or(other.__isset_bit_vector);
14832
      this.success = other.success;
14833
      if (other.isSetPe()) {
14834
        this.pe = new PaymentException(other.pe);
14835
      }
14836
    }
14837
 
14838
    public partiallyCapturePayment_result deepCopy() {
14839
      return new partiallyCapturePayment_result(this);
14840
    }
14841
 
14842
    @Override
14843
    public void clear() {
14844
      setSuccessIsSet(false);
14845
      this.success = false;
14846
      this.pe = null;
14847
    }
14848
 
14849
    public boolean isSuccess() {
14850
      return this.success;
14851
    }
14852
 
14853
    public void setSuccess(boolean success) {
14854
      this.success = success;
14855
      setSuccessIsSet(true);
14856
    }
14857
 
14858
    public void unsetSuccess() {
14859
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14860
    }
14861
 
14862
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14863
    public boolean isSetSuccess() {
14864
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14865
    }
14866
 
14867
    public void setSuccessIsSet(boolean value) {
14868
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14869
    }
14870
 
14871
    public PaymentException getPe() {
14872
      return this.pe;
14873
    }
14874
 
14875
    public void setPe(PaymentException pe) {
14876
      this.pe = pe;
14877
    }
14878
 
14879
    public void unsetPe() {
14880
      this.pe = null;
14881
    }
14882
 
14883
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
14884
    public boolean isSetPe() {
14885
      return this.pe != null;
14886
    }
14887
 
14888
    public void setPeIsSet(boolean value) {
14889
      if (!value) {
14890
        this.pe = null;
14891
      }
14892
    }
14893
 
14894
    public void setFieldValue(_Fields field, Object value) {
14895
      switch (field) {
14896
      case SUCCESS:
14897
        if (value == null) {
14898
          unsetSuccess();
14899
        } else {
14900
          setSuccess((Boolean)value);
14901
        }
14902
        break;
14903
 
14904
      case PE:
14905
        if (value == null) {
14906
          unsetPe();
14907
        } else {
14908
          setPe((PaymentException)value);
14909
        }
14910
        break;
14911
 
14912
      }
14913
    }
14914
 
14915
    public Object getFieldValue(_Fields field) {
14916
      switch (field) {
14917
      case SUCCESS:
14918
        return Boolean.valueOf(isSuccess());
14919
 
14920
      case PE:
14921
        return getPe();
14922
 
14923
      }
14924
      throw new IllegalStateException();
14925
    }
14926
 
14927
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14928
    public boolean isSet(_Fields field) {
14929
      if (field == null) {
14930
        throw new IllegalArgumentException();
14931
      }
14932
 
14933
      switch (field) {
14934
      case SUCCESS:
14935
        return isSetSuccess();
14936
      case PE:
14937
        return isSetPe();
14938
      }
14939
      throw new IllegalStateException();
14940
    }
14941
 
14942
    @Override
14943
    public boolean equals(Object that) {
14944
      if (that == null)
14945
        return false;
14946
      if (that instanceof partiallyCapturePayment_result)
14947
        return this.equals((partiallyCapturePayment_result)that);
14948
      return false;
14949
    }
14950
 
14951
    public boolean equals(partiallyCapturePayment_result that) {
14952
      if (that == null)
14953
        return false;
14954
 
14955
      boolean this_present_success = true;
14956
      boolean that_present_success = true;
14957
      if (this_present_success || that_present_success) {
14958
        if (!(this_present_success && that_present_success))
14959
          return false;
14960
        if (this.success != that.success)
14961
          return false;
14962
      }
14963
 
14964
      boolean this_present_pe = true && this.isSetPe();
14965
      boolean that_present_pe = true && that.isSetPe();
14966
      if (this_present_pe || that_present_pe) {
14967
        if (!(this_present_pe && that_present_pe))
14968
          return false;
14969
        if (!this.pe.equals(that.pe))
14970
          return false;
14971
      }
14972
 
14973
      return true;
14974
    }
14975
 
14976
    @Override
14977
    public int hashCode() {
14978
      return 0;
14979
    }
14980
 
14981
    public int compareTo(partiallyCapturePayment_result other) {
14982
      if (!getClass().equals(other.getClass())) {
14983
        return getClass().getName().compareTo(other.getClass().getName());
14984
      }
14985
 
14986
      int lastComparison = 0;
14987
      partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
14988
 
14989
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14990
      if (lastComparison != 0) {
14991
        return lastComparison;
14992
      }
14993
      if (isSetSuccess()) {
14994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14995
        if (lastComparison != 0) {
14996
          return lastComparison;
14997
        }
14998
      }
14999
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
15000
      if (lastComparison != 0) {
15001
        return lastComparison;
15002
      }
15003
      if (isSetPe()) {
15004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
15005
        if (lastComparison != 0) {
15006
          return lastComparison;
15007
        }
15008
      }
15009
      return 0;
15010
    }
15011
 
15012
    public _Fields fieldForId(int fieldId) {
15013
      return _Fields.findByThriftId(fieldId);
15014
    }
15015
 
15016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15017
      org.apache.thrift.protocol.TField field;
15018
      iprot.readStructBegin();
15019
      while (true)
15020
      {
15021
        field = iprot.readFieldBegin();
15022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15023
          break;
15024
        }
15025
        switch (field.id) {
15026
          case 0: // SUCCESS
15027
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15028
              this.success = iprot.readBool();
15029
              setSuccessIsSet(true);
15030
            } else { 
15031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15032
            }
15033
            break;
15034
          case 1: // PE
15035
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15036
              this.pe = new PaymentException();
15037
              this.pe.read(iprot);
15038
            } else { 
15039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15040
            }
15041
            break;
15042
          default:
15043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15044
        }
15045
        iprot.readFieldEnd();
15046
      }
15047
      iprot.readStructEnd();
15048
      validate();
15049
    }
15050
 
15051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15052
      oprot.writeStructBegin(STRUCT_DESC);
15053
 
15054
      if (this.isSetSuccess()) {
15055
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15056
        oprot.writeBool(this.success);
15057
        oprot.writeFieldEnd();
15058
      } else if (this.isSetPe()) {
15059
        oprot.writeFieldBegin(PE_FIELD_DESC);
15060
        this.pe.write(oprot);
15061
        oprot.writeFieldEnd();
15062
      }
15063
      oprot.writeFieldStop();
15064
      oprot.writeStructEnd();
15065
    }
15066
 
15067
    @Override
15068
    public String toString() {
15069
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
15070
      boolean first = true;
15071
 
15072
      sb.append("success:");
15073
      sb.append(this.success);
15074
      first = false;
15075
      if (!first) sb.append(", ");
15076
      sb.append("pe:");
15077
      if (this.pe == null) {
15078
        sb.append("null");
15079
      } else {
15080
        sb.append(this.pe);
15081
      }
15082
      first = false;
15083
      sb.append(")");
15084
      return sb.toString();
15085
    }
15086
 
15087
    public void validate() throws org.apache.thrift.TException {
15088
      // check for required fields
15089
    }
15090
 
15091
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15092
      try {
15093
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15094
      } catch (org.apache.thrift.TException te) {
15095
        throw new java.io.IOException(te);
15096
      }
15097
    }
15098
 
15099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15100
      try {
15101
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15102
      } catch (org.apache.thrift.TException te) {
15103
        throw new java.io.IOException(te);
15104
      }
15105
    }
15106
 
15107
  }
15108
 
4008 mandeep.dh 15109
  public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
15110
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
15111
 
15112
    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);
15113
 
15114
    private ExtraPaymentProcessingType category; // required
15115
 
15116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15117
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15118
      /**
15119
       * 
15120
       * @see ExtraPaymentProcessingType
15121
       */
15122
      CATEGORY((short)1, "category");
15123
 
15124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15125
 
15126
      static {
15127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15128
          byName.put(field.getFieldName(), field);
15129
        }
15130
      }
15131
 
15132
      /**
15133
       * Find the _Fields constant that matches fieldId, or null if its not found.
15134
       */
15135
      public static _Fields findByThriftId(int fieldId) {
15136
        switch(fieldId) {
15137
          case 1: // CATEGORY
15138
            return CATEGORY;
15139
          default:
15140
            return null;
15141
        }
15142
      }
15143
 
15144
      /**
15145
       * Find the _Fields constant that matches fieldId, throwing an exception
15146
       * if it is not found.
15147
       */
15148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15149
        _Fields fields = findByThriftId(fieldId);
15150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15151
        return fields;
15152
      }
15153
 
15154
      /**
15155
       * Find the _Fields constant that matches name, or null if its not found.
15156
       */
15157
      public static _Fields findByName(String name) {
15158
        return byName.get(name);
15159
      }
15160
 
15161
      private final short _thriftId;
15162
      private final String _fieldName;
15163
 
15164
      _Fields(short thriftId, String fieldName) {
15165
        _thriftId = thriftId;
15166
        _fieldName = fieldName;
15167
      }
15168
 
15169
      public short getThriftFieldId() {
15170
        return _thriftId;
15171
      }
15172
 
15173
      public String getFieldName() {
15174
        return _fieldName;
15175
      }
15176
    }
15177
 
15178
    // isset id assignments
15179
 
15180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15181
    static {
15182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15183
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15184
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
15185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
15187
    }
15188
 
15189
    public getPaymentsRequiringExtraProcessing_args() {
15190
    }
15191
 
15192
    public getPaymentsRequiringExtraProcessing_args(
15193
      ExtraPaymentProcessingType category)
15194
    {
15195
      this();
15196
      this.category = category;
15197
    }
15198
 
15199
    /**
15200
     * Performs a deep copy on <i>other</i>.
15201
     */
15202
    public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
15203
      if (other.isSetCategory()) {
15204
        this.category = other.category;
15205
      }
15206
    }
15207
 
15208
    public getPaymentsRequiringExtraProcessing_args deepCopy() {
15209
      return new getPaymentsRequiringExtraProcessing_args(this);
15210
    }
15211
 
15212
    @Override
15213
    public void clear() {
15214
      this.category = null;
15215
    }
15216
 
15217
    /**
15218
     * 
15219
     * @see ExtraPaymentProcessingType
15220
     */
15221
    public ExtraPaymentProcessingType getCategory() {
15222
      return this.category;
15223
    }
15224
 
15225
    /**
15226
     * 
15227
     * @see ExtraPaymentProcessingType
15228
     */
15229
    public void setCategory(ExtraPaymentProcessingType category) {
15230
      this.category = category;
15231
    }
15232
 
15233
    public void unsetCategory() {
15234
      this.category = null;
15235
    }
15236
 
15237
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
15238
    public boolean isSetCategory() {
15239
      return this.category != null;
15240
    }
15241
 
15242
    public void setCategoryIsSet(boolean value) {
15243
      if (!value) {
15244
        this.category = null;
15245
      }
15246
    }
15247
 
15248
    public void setFieldValue(_Fields field, Object value) {
15249
      switch (field) {
15250
      case CATEGORY:
15251
        if (value == null) {
15252
          unsetCategory();
15253
        } else {
15254
          setCategory((ExtraPaymentProcessingType)value);
15255
        }
15256
        break;
15257
 
15258
      }
15259
    }
15260
 
15261
    public Object getFieldValue(_Fields field) {
15262
      switch (field) {
15263
      case CATEGORY:
15264
        return getCategory();
15265
 
15266
      }
15267
      throw new IllegalStateException();
15268
    }
15269
 
15270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15271
    public boolean isSet(_Fields field) {
15272
      if (field == null) {
15273
        throw new IllegalArgumentException();
15274
      }
15275
 
15276
      switch (field) {
15277
      case CATEGORY:
15278
        return isSetCategory();
15279
      }
15280
      throw new IllegalStateException();
15281
    }
15282
 
15283
    @Override
15284
    public boolean equals(Object that) {
15285
      if (that == null)
15286
        return false;
15287
      if (that instanceof getPaymentsRequiringExtraProcessing_args)
15288
        return this.equals((getPaymentsRequiringExtraProcessing_args)that);
15289
      return false;
15290
    }
15291
 
15292
    public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
15293
      if (that == null)
15294
        return false;
15295
 
15296
      boolean this_present_category = true && this.isSetCategory();
15297
      boolean that_present_category = true && that.isSetCategory();
15298
      if (this_present_category || that_present_category) {
15299
        if (!(this_present_category && that_present_category))
15300
          return false;
15301
        if (!this.category.equals(that.category))
15302
          return false;
15303
      }
15304
 
15305
      return true;
15306
    }
15307
 
15308
    @Override
15309
    public int hashCode() {
15310
      return 0;
15311
    }
15312
 
15313
    public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
15314
      if (!getClass().equals(other.getClass())) {
15315
        return getClass().getName().compareTo(other.getClass().getName());
15316
      }
15317
 
15318
      int lastComparison = 0;
15319
      getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
15320
 
15321
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
15322
      if (lastComparison != 0) {
15323
        return lastComparison;
15324
      }
15325
      if (isSetCategory()) {
15326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
15327
        if (lastComparison != 0) {
15328
          return lastComparison;
15329
        }
15330
      }
15331
      return 0;
15332
    }
15333
 
15334
    public _Fields fieldForId(int fieldId) {
15335
      return _Fields.findByThriftId(fieldId);
15336
    }
15337
 
15338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15339
      org.apache.thrift.protocol.TField field;
15340
      iprot.readStructBegin();
15341
      while (true)
15342
      {
15343
        field = iprot.readFieldBegin();
15344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15345
          break;
15346
        }
15347
        switch (field.id) {
15348
          case 1: // CATEGORY
15349
            if (field.type == org.apache.thrift.protocol.TType.I32) {
15350
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
15351
            } else { 
15352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15353
            }
15354
            break;
15355
          default:
15356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15357
        }
15358
        iprot.readFieldEnd();
15359
      }
15360
      iprot.readStructEnd();
15361
      validate();
15362
    }
15363
 
15364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15365
      validate();
15366
 
15367
      oprot.writeStructBegin(STRUCT_DESC);
15368
      if (this.category != null) {
15369
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
15370
        oprot.writeI32(this.category.getValue());
15371
        oprot.writeFieldEnd();
15372
      }
15373
      oprot.writeFieldStop();
15374
      oprot.writeStructEnd();
15375
    }
15376
 
15377
    @Override
15378
    public String toString() {
15379
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
15380
      boolean first = true;
15381
 
15382
      sb.append("category:");
15383
      if (this.category == null) {
15384
        sb.append("null");
15385
      } else {
15386
        sb.append(this.category);
15387
      }
15388
      first = false;
15389
      sb.append(")");
15390
      return sb.toString();
15391
    }
15392
 
15393
    public void validate() throws org.apache.thrift.TException {
15394
      // check for required fields
15395
    }
15396
 
15397
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15398
      try {
15399
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15400
      } catch (org.apache.thrift.TException te) {
15401
        throw new java.io.IOException(te);
15402
      }
15403
    }
15404
 
15405
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15406
      try {
15407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15408
      } catch (org.apache.thrift.TException te) {
15409
        throw new java.io.IOException(te);
15410
      }
15411
    }
15412
 
15413
  }
15414
 
15415
  public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
15416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
15417
 
15418
    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);
15419
 
15420
    private List<Long> success; // required
15421
 
15422
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15423
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15424
      SUCCESS((short)0, "success");
15425
 
15426
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15427
 
15428
      static {
15429
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15430
          byName.put(field.getFieldName(), field);
15431
        }
15432
      }
15433
 
15434
      /**
15435
       * Find the _Fields constant that matches fieldId, or null if its not found.
15436
       */
15437
      public static _Fields findByThriftId(int fieldId) {
15438
        switch(fieldId) {
15439
          case 0: // SUCCESS
15440
            return SUCCESS;
15441
          default:
15442
            return null;
15443
        }
15444
      }
15445
 
15446
      /**
15447
       * Find the _Fields constant that matches fieldId, throwing an exception
15448
       * if it is not found.
15449
       */
15450
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15451
        _Fields fields = findByThriftId(fieldId);
15452
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15453
        return fields;
15454
      }
15455
 
15456
      /**
15457
       * Find the _Fields constant that matches name, or null if its not found.
15458
       */
15459
      public static _Fields findByName(String name) {
15460
        return byName.get(name);
15461
      }
15462
 
15463
      private final short _thriftId;
15464
      private final String _fieldName;
15465
 
15466
      _Fields(short thriftId, String fieldName) {
15467
        _thriftId = thriftId;
15468
        _fieldName = fieldName;
15469
      }
15470
 
15471
      public short getThriftFieldId() {
15472
        return _thriftId;
15473
      }
15474
 
15475
      public String getFieldName() {
15476
        return _fieldName;
15477
      }
15478
    }
15479
 
15480
    // isset id assignments
15481
 
15482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15483
    static {
15484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15485
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15486
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15487
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15488
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15489
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
15490
    }
15491
 
15492
    public getPaymentsRequiringExtraProcessing_result() {
15493
    }
15494
 
15495
    public getPaymentsRequiringExtraProcessing_result(
15496
      List<Long> success)
15497
    {
15498
      this();
15499
      this.success = success;
15500
    }
15501
 
15502
    /**
15503
     * Performs a deep copy on <i>other</i>.
15504
     */
15505
    public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
15506
      if (other.isSetSuccess()) {
15507
        List<Long> __this__success = new ArrayList<Long>();
15508
        for (Long other_element : other.success) {
15509
          __this__success.add(other_element);
15510
        }
15511
        this.success = __this__success;
15512
      }
15513
    }
15514
 
15515
    public getPaymentsRequiringExtraProcessing_result deepCopy() {
15516
      return new getPaymentsRequiringExtraProcessing_result(this);
15517
    }
15518
 
15519
    @Override
15520
    public void clear() {
15521
      this.success = null;
15522
    }
15523
 
15524
    public int getSuccessSize() {
15525
      return (this.success == null) ? 0 : this.success.size();
15526
    }
15527
 
15528
    public java.util.Iterator<Long> getSuccessIterator() {
15529
      return (this.success == null) ? null : this.success.iterator();
15530
    }
15531
 
15532
    public void addToSuccess(long elem) {
15533
      if (this.success == null) {
15534
        this.success = new ArrayList<Long>();
15535
      }
15536
      this.success.add(elem);
15537
    }
15538
 
15539
    public List<Long> getSuccess() {
15540
      return this.success;
15541
    }
15542
 
15543
    public void setSuccess(List<Long> success) {
15544
      this.success = success;
15545
    }
15546
 
15547
    public void unsetSuccess() {
15548
      this.success = null;
15549
    }
15550
 
15551
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15552
    public boolean isSetSuccess() {
15553
      return this.success != null;
15554
    }
15555
 
15556
    public void setSuccessIsSet(boolean value) {
15557
      if (!value) {
15558
        this.success = null;
15559
      }
15560
    }
15561
 
15562
    public void setFieldValue(_Fields field, Object value) {
15563
      switch (field) {
15564
      case SUCCESS:
15565
        if (value == null) {
15566
          unsetSuccess();
15567
        } else {
15568
          setSuccess((List<Long>)value);
15569
        }
15570
        break;
15571
 
15572
      }
15573
    }
15574
 
15575
    public Object getFieldValue(_Fields field) {
15576
      switch (field) {
15577
      case SUCCESS:
15578
        return getSuccess();
15579
 
15580
      }
15581
      throw new IllegalStateException();
15582
    }
15583
 
15584
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15585
    public boolean isSet(_Fields field) {
15586
      if (field == null) {
15587
        throw new IllegalArgumentException();
15588
      }
15589
 
15590
      switch (field) {
15591
      case SUCCESS:
15592
        return isSetSuccess();
15593
      }
15594
      throw new IllegalStateException();
15595
    }
15596
 
15597
    @Override
15598
    public boolean equals(Object that) {
15599
      if (that == null)
15600
        return false;
15601
      if (that instanceof getPaymentsRequiringExtraProcessing_result)
15602
        return this.equals((getPaymentsRequiringExtraProcessing_result)that);
15603
      return false;
15604
    }
15605
 
15606
    public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
15607
      if (that == null)
15608
        return false;
15609
 
15610
      boolean this_present_success = true && this.isSetSuccess();
15611
      boolean that_present_success = true && that.isSetSuccess();
15612
      if (this_present_success || that_present_success) {
15613
        if (!(this_present_success && that_present_success))
15614
          return false;
15615
        if (!this.success.equals(that.success))
15616
          return false;
15617
      }
15618
 
15619
      return true;
15620
    }
15621
 
15622
    @Override
15623
    public int hashCode() {
15624
      return 0;
15625
    }
15626
 
15627
    public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
15628
      if (!getClass().equals(other.getClass())) {
15629
        return getClass().getName().compareTo(other.getClass().getName());
15630
      }
15631
 
15632
      int lastComparison = 0;
15633
      getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
15634
 
15635
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15636
      if (lastComparison != 0) {
15637
        return lastComparison;
15638
      }
15639
      if (isSetSuccess()) {
15640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15641
        if (lastComparison != 0) {
15642
          return lastComparison;
15643
        }
15644
      }
15645
      return 0;
15646
    }
15647
 
15648
    public _Fields fieldForId(int fieldId) {
15649
      return _Fields.findByThriftId(fieldId);
15650
    }
15651
 
15652
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15653
      org.apache.thrift.protocol.TField field;
15654
      iprot.readStructBegin();
15655
      while (true)
15656
      {
15657
        field = iprot.readFieldBegin();
15658
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15659
          break;
15660
        }
15661
        switch (field.id) {
15662
          case 0: // SUCCESS
15663
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15664
              {
4600 varun.gupt 15665
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
15666
                this.success = new ArrayList<Long>(_list40.size);
15667
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
4008 mandeep.dh 15668
                {
4600 varun.gupt 15669
                  long _elem42; // required
15670
                  _elem42 = iprot.readI64();
15671
                  this.success.add(_elem42);
4008 mandeep.dh 15672
                }
15673
                iprot.readListEnd();
15674
              }
15675
            } else { 
15676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15677
            }
15678
            break;
15679
          default:
15680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15681
        }
15682
        iprot.readFieldEnd();
15683
      }
15684
      iprot.readStructEnd();
15685
      validate();
15686
    }
15687
 
15688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15689
      oprot.writeStructBegin(STRUCT_DESC);
15690
 
15691
      if (this.isSetSuccess()) {
15692
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15693
        {
15694
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4600 varun.gupt 15695
          for (long _iter43 : this.success)
4008 mandeep.dh 15696
          {
4600 varun.gupt 15697
            oprot.writeI64(_iter43);
4008 mandeep.dh 15698
          }
15699
          oprot.writeListEnd();
15700
        }
15701
        oprot.writeFieldEnd();
15702
      }
15703
      oprot.writeFieldStop();
15704
      oprot.writeStructEnd();
15705
    }
15706
 
15707
    @Override
15708
    public String toString() {
15709
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
15710
      boolean first = true;
15711
 
15712
      sb.append("success:");
15713
      if (this.success == null) {
15714
        sb.append("null");
15715
      } else {
15716
        sb.append(this.success);
15717
      }
15718
      first = false;
15719
      sb.append(")");
15720
      return sb.toString();
15721
    }
15722
 
15723
    public void validate() throws org.apache.thrift.TException {
15724
      // check for required fields
15725
    }
15726
 
15727
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15728
      try {
15729
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15730
      } catch (org.apache.thrift.TException te) {
15731
        throw new java.io.IOException(te);
15732
      }
15733
    }
15734
 
15735
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15736
      try {
15737
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15738
      } catch (org.apache.thrift.TException te) {
15739
        throw new java.io.IOException(te);
15740
      }
15741
    }
15742
 
15743
  }
15744
 
15745
  public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
15746
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
15747
 
15748
    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);
15749
    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);
15750
 
15751
    private long paymentId; // required
15752
    private ExtraPaymentProcessingType category; // required
15753
 
15754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15755
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15756
      PAYMENT_ID((short)1, "paymentId"),
15757
      /**
15758
       * 
15759
       * @see ExtraPaymentProcessingType
15760
       */
15761
      CATEGORY((short)2, "category");
15762
 
15763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15764
 
15765
      static {
15766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15767
          byName.put(field.getFieldName(), field);
15768
        }
15769
      }
15770
 
15771
      /**
15772
       * Find the _Fields constant that matches fieldId, or null if its not found.
15773
       */
15774
      public static _Fields findByThriftId(int fieldId) {
15775
        switch(fieldId) {
15776
          case 1: // PAYMENT_ID
15777
            return PAYMENT_ID;
15778
          case 2: // CATEGORY
15779
            return CATEGORY;
15780
          default:
15781
            return null;
15782
        }
15783
      }
15784
 
15785
      /**
15786
       * Find the _Fields constant that matches fieldId, throwing an exception
15787
       * if it is not found.
15788
       */
15789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15790
        _Fields fields = findByThriftId(fieldId);
15791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15792
        return fields;
15793
      }
15794
 
15795
      /**
15796
       * Find the _Fields constant that matches name, or null if its not found.
15797
       */
15798
      public static _Fields findByName(String name) {
15799
        return byName.get(name);
15800
      }
15801
 
15802
      private final short _thriftId;
15803
      private final String _fieldName;
15804
 
15805
      _Fields(short thriftId, String fieldName) {
15806
        _thriftId = thriftId;
15807
        _fieldName = fieldName;
15808
      }
15809
 
15810
      public short getThriftFieldId() {
15811
        return _thriftId;
15812
      }
15813
 
15814
      public String getFieldName() {
15815
        return _fieldName;
15816
      }
15817
    }
15818
 
15819
    // isset id assignments
15820
    private static final int __PAYMENTID_ISSET_ID = 0;
15821
    private BitSet __isset_bit_vector = new BitSet(1);
15822
 
15823
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15824
    static {
15825
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15826
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15827
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15828
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15829
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
15830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
15832
    }
15833
 
15834
    public markPaymentAsProcessed_args() {
15835
    }
15836
 
15837
    public markPaymentAsProcessed_args(
15838
      long paymentId,
15839
      ExtraPaymentProcessingType category)
15840
    {
15841
      this();
15842
      this.paymentId = paymentId;
15843
      setPaymentIdIsSet(true);
15844
      this.category = category;
15845
    }
15846
 
15847
    /**
15848
     * Performs a deep copy on <i>other</i>.
15849
     */
15850
    public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
15851
      __isset_bit_vector.clear();
15852
      __isset_bit_vector.or(other.__isset_bit_vector);
15853
      this.paymentId = other.paymentId;
15854
      if (other.isSetCategory()) {
15855
        this.category = other.category;
15856
      }
15857
    }
15858
 
15859
    public markPaymentAsProcessed_args deepCopy() {
15860
      return new markPaymentAsProcessed_args(this);
15861
    }
15862
 
15863
    @Override
15864
    public void clear() {
15865
      setPaymentIdIsSet(false);
15866
      this.paymentId = 0;
15867
      this.category = null;
15868
    }
15869
 
15870
    public long getPaymentId() {
15871
      return this.paymentId;
15872
    }
15873
 
15874
    public void setPaymentId(long paymentId) {
15875
      this.paymentId = paymentId;
15876
      setPaymentIdIsSet(true);
15877
    }
15878
 
15879
    public void unsetPaymentId() {
15880
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
15881
    }
15882
 
15883
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
15884
    public boolean isSetPaymentId() {
15885
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
15886
    }
15887
 
15888
    public void setPaymentIdIsSet(boolean value) {
15889
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
15890
    }
15891
 
15892
    /**
15893
     * 
15894
     * @see ExtraPaymentProcessingType
15895
     */
15896
    public ExtraPaymentProcessingType getCategory() {
15897
      return this.category;
15898
    }
15899
 
15900
    /**
15901
     * 
15902
     * @see ExtraPaymentProcessingType
15903
     */
15904
    public void setCategory(ExtraPaymentProcessingType category) {
15905
      this.category = category;
15906
    }
15907
 
15908
    public void unsetCategory() {
15909
      this.category = null;
15910
    }
15911
 
15912
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
15913
    public boolean isSetCategory() {
15914
      return this.category != null;
15915
    }
15916
 
15917
    public void setCategoryIsSet(boolean value) {
15918
      if (!value) {
15919
        this.category = null;
15920
      }
15921
    }
15922
 
15923
    public void setFieldValue(_Fields field, Object value) {
15924
      switch (field) {
15925
      case PAYMENT_ID:
15926
        if (value == null) {
15927
          unsetPaymentId();
15928
        } else {
15929
          setPaymentId((Long)value);
15930
        }
15931
        break;
15932
 
15933
      case CATEGORY:
15934
        if (value == null) {
15935
          unsetCategory();
15936
        } else {
15937
          setCategory((ExtraPaymentProcessingType)value);
15938
        }
15939
        break;
15940
 
15941
      }
15942
    }
15943
 
15944
    public Object getFieldValue(_Fields field) {
15945
      switch (field) {
15946
      case PAYMENT_ID:
15947
        return Long.valueOf(getPaymentId());
15948
 
15949
      case CATEGORY:
15950
        return getCategory();
15951
 
15952
      }
15953
      throw new IllegalStateException();
15954
    }
15955
 
15956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15957
    public boolean isSet(_Fields field) {
15958
      if (field == null) {
15959
        throw new IllegalArgumentException();
15960
      }
15961
 
15962
      switch (field) {
15963
      case PAYMENT_ID:
15964
        return isSetPaymentId();
15965
      case CATEGORY:
15966
        return isSetCategory();
15967
      }
15968
      throw new IllegalStateException();
15969
    }
15970
 
15971
    @Override
15972
    public boolean equals(Object that) {
15973
      if (that == null)
15974
        return false;
15975
      if (that instanceof markPaymentAsProcessed_args)
15976
        return this.equals((markPaymentAsProcessed_args)that);
15977
      return false;
15978
    }
15979
 
15980
    public boolean equals(markPaymentAsProcessed_args that) {
15981
      if (that == null)
15982
        return false;
15983
 
15984
      boolean this_present_paymentId = true;
15985
      boolean that_present_paymentId = true;
15986
      if (this_present_paymentId || that_present_paymentId) {
15987
        if (!(this_present_paymentId && that_present_paymentId))
15988
          return false;
15989
        if (this.paymentId != that.paymentId)
15990
          return false;
15991
      }
15992
 
15993
      boolean this_present_category = true && this.isSetCategory();
15994
      boolean that_present_category = true && that.isSetCategory();
15995
      if (this_present_category || that_present_category) {
15996
        if (!(this_present_category && that_present_category))
15997
          return false;
15998
        if (!this.category.equals(that.category))
15999
          return false;
16000
      }
16001
 
16002
      return true;
16003
    }
16004
 
16005
    @Override
16006
    public int hashCode() {
16007
      return 0;
16008
    }
16009
 
16010
    public int compareTo(markPaymentAsProcessed_args other) {
16011
      if (!getClass().equals(other.getClass())) {
16012
        return getClass().getName().compareTo(other.getClass().getName());
16013
      }
16014
 
16015
      int lastComparison = 0;
16016
      markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
16017
 
16018
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
16019
      if (lastComparison != 0) {
16020
        return lastComparison;
16021
      }
16022
      if (isSetPaymentId()) {
16023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
16024
        if (lastComparison != 0) {
16025
          return lastComparison;
16026
        }
16027
      }
16028
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
16029
      if (lastComparison != 0) {
16030
        return lastComparison;
16031
      }
16032
      if (isSetCategory()) {
16033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
16034
        if (lastComparison != 0) {
16035
          return lastComparison;
16036
        }
16037
      }
16038
      return 0;
16039
    }
16040
 
16041
    public _Fields fieldForId(int fieldId) {
16042
      return _Fields.findByThriftId(fieldId);
16043
    }
16044
 
16045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16046
      org.apache.thrift.protocol.TField field;
16047
      iprot.readStructBegin();
16048
      while (true)
16049
      {
16050
        field = iprot.readFieldBegin();
16051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16052
          break;
16053
        }
16054
        switch (field.id) {
16055
          case 1: // PAYMENT_ID
16056
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16057
              this.paymentId = iprot.readI64();
16058
              setPaymentIdIsSet(true);
16059
            } else { 
16060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16061
            }
16062
            break;
16063
          case 2: // CATEGORY
16064
            if (field.type == org.apache.thrift.protocol.TType.I32) {
16065
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
16066
            } else { 
16067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16068
            }
16069
            break;
16070
          default:
16071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16072
        }
16073
        iprot.readFieldEnd();
16074
      }
16075
      iprot.readStructEnd();
16076
      validate();
16077
    }
16078
 
16079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16080
      validate();
16081
 
16082
      oprot.writeStructBegin(STRUCT_DESC);
16083
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
16084
      oprot.writeI64(this.paymentId);
16085
      oprot.writeFieldEnd();
16086
      if (this.category != null) {
16087
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
16088
        oprot.writeI32(this.category.getValue());
16089
        oprot.writeFieldEnd();
16090
      }
16091
      oprot.writeFieldStop();
16092
      oprot.writeStructEnd();
16093
    }
16094
 
16095
    @Override
16096
    public String toString() {
16097
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
16098
      boolean first = true;
16099
 
16100
      sb.append("paymentId:");
16101
      sb.append(this.paymentId);
16102
      first = false;
16103
      if (!first) sb.append(", ");
16104
      sb.append("category:");
16105
      if (this.category == null) {
16106
        sb.append("null");
16107
      } else {
16108
        sb.append(this.category);
16109
      }
16110
      first = false;
16111
      sb.append(")");
16112
      return sb.toString();
16113
    }
16114
 
16115
    public void validate() throws org.apache.thrift.TException {
16116
      // check for required fields
16117
    }
16118
 
16119
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16120
      try {
16121
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16122
      } catch (org.apache.thrift.TException te) {
16123
        throw new java.io.IOException(te);
16124
      }
16125
    }
16126
 
16127
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16128
      try {
16129
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16130
      } catch (org.apache.thrift.TException te) {
16131
        throw new java.io.IOException(te);
16132
      }
16133
    }
16134
 
16135
  }
16136
 
16137
  public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
16138
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
16139
 
16140
 
16141
 
16142
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16143
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16144
;
16145
 
16146
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16147
 
16148
      static {
16149
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16150
          byName.put(field.getFieldName(), field);
16151
        }
16152
      }
16153
 
16154
      /**
16155
       * Find the _Fields constant that matches fieldId, or null if its not found.
16156
       */
16157
      public static _Fields findByThriftId(int fieldId) {
16158
        switch(fieldId) {
16159
          default:
16160
            return null;
16161
        }
16162
      }
16163
 
16164
      /**
16165
       * Find the _Fields constant that matches fieldId, throwing an exception
16166
       * if it is not found.
16167
       */
16168
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16169
        _Fields fields = findByThriftId(fieldId);
16170
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16171
        return fields;
16172
      }
16173
 
16174
      /**
16175
       * Find the _Fields constant that matches name, or null if its not found.
16176
       */
16177
      public static _Fields findByName(String name) {
16178
        return byName.get(name);
16179
      }
16180
 
16181
      private final short _thriftId;
16182
      private final String _fieldName;
16183
 
16184
      _Fields(short thriftId, String fieldName) {
16185
        _thriftId = thriftId;
16186
        _fieldName = fieldName;
16187
      }
16188
 
16189
      public short getThriftFieldId() {
16190
        return _thriftId;
16191
      }
16192
 
16193
      public String getFieldName() {
16194
        return _fieldName;
16195
      }
16196
    }
16197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16198
    static {
16199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
16202
    }
16203
 
16204
    public markPaymentAsProcessed_result() {
16205
    }
16206
 
16207
    /**
16208
     * Performs a deep copy on <i>other</i>.
16209
     */
16210
    public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
16211
    }
16212
 
16213
    public markPaymentAsProcessed_result deepCopy() {
16214
      return new markPaymentAsProcessed_result(this);
16215
    }
16216
 
16217
    @Override
16218
    public void clear() {
16219
    }
16220
 
16221
    public void setFieldValue(_Fields field, Object value) {
16222
      switch (field) {
16223
      }
16224
    }
16225
 
16226
    public Object getFieldValue(_Fields field) {
16227
      switch (field) {
16228
      }
16229
      throw new IllegalStateException();
16230
    }
16231
 
16232
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16233
    public boolean isSet(_Fields field) {
16234
      if (field == null) {
16235
        throw new IllegalArgumentException();
16236
      }
16237
 
16238
      switch (field) {
16239
      }
16240
      throw new IllegalStateException();
16241
    }
16242
 
16243
    @Override
16244
    public boolean equals(Object that) {
16245
      if (that == null)
16246
        return false;
16247
      if (that instanceof markPaymentAsProcessed_result)
16248
        return this.equals((markPaymentAsProcessed_result)that);
16249
      return false;
16250
    }
16251
 
16252
    public boolean equals(markPaymentAsProcessed_result that) {
16253
      if (that == null)
16254
        return false;
16255
 
16256
      return true;
16257
    }
16258
 
16259
    @Override
16260
    public int hashCode() {
16261
      return 0;
16262
    }
16263
 
16264
    public int compareTo(markPaymentAsProcessed_result other) {
16265
      if (!getClass().equals(other.getClass())) {
16266
        return getClass().getName().compareTo(other.getClass().getName());
16267
      }
16268
 
16269
      int lastComparison = 0;
16270
      markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
16271
 
16272
      return 0;
16273
    }
16274
 
16275
    public _Fields fieldForId(int fieldId) {
16276
      return _Fields.findByThriftId(fieldId);
16277
    }
16278
 
16279
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16280
      org.apache.thrift.protocol.TField field;
16281
      iprot.readStructBegin();
16282
      while (true)
16283
      {
16284
        field = iprot.readFieldBegin();
16285
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16286
          break;
16287
        }
16288
        switch (field.id) {
16289
          default:
16290
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16291
        }
16292
        iprot.readFieldEnd();
16293
      }
16294
      iprot.readStructEnd();
16295
      validate();
16296
    }
16297
 
16298
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16299
      oprot.writeStructBegin(STRUCT_DESC);
16300
 
16301
      oprot.writeFieldStop();
16302
      oprot.writeStructEnd();
16303
    }
16304
 
16305
    @Override
16306
    public String toString() {
16307
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
16308
      boolean first = true;
16309
 
16310
      sb.append(")");
16311
      return sb.toString();
16312
    }
16313
 
16314
    public void validate() throws org.apache.thrift.TException {
16315
      // check for required fields
16316
    }
16317
 
16318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16319
      try {
16320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16321
      } catch (org.apache.thrift.TException te) {
16322
        throw new java.io.IOException(te);
16323
      }
16324
    }
16325
 
16326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16327
      try {
16328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16329
      } catch (org.apache.thrift.TException te) {
16330
        throw new java.io.IOException(te);
16331
      }
16332
    }
16333
 
16334
  }
16335
 
123 ashish 16336
}