Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
123 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
123 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.payments;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
123 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class PaymentService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
123 ashish 26
 
695 rajveer 27
    /**
28
     * create a new payment and return payment id, throws an exception if gateway is not active
29
     * 
30
     * @param userId
31
     * @param amount
32
     * @param gatewayId
33
     * @param txnId
6050 anupam.sin 34
     * @param isDigital
695 rajveer 35
     */
6050 anupam.sin 36
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
123 ashish 37
 
695 rajveer 38
    /**
4141 chandransh 39
     * Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
695 rajveer 40
     * 
41
     * @param userId
42
     * @param fromTime
43
     * @param toTime
44
     * @param status
45
     * @param gatewayId
46
     */
3430 rajveer 47
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 48
 
695 rajveer 49
    /**
4141 chandransh 50
     * Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
695 rajveer 51
     * 
52
     * @param fromTime
53
     * @param toTime
54
     * @param status
55
     * @param gatewayId
56
     */
3430 rajveer 57
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 58
 
695 rajveer 59
    /**
4141 chandransh 60
     * Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
695 rajveer 61
     * 
4141 chandransh 62
     * @param fromTime
63
     * @param toTime
64
     * @param gatewayId
65
     */
66
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException;
67
 
68
    /**
69
     * Get the gateway for the given id.
695 rajveer 70
     * 
71
     * @param id
72
     */
3430 rajveer 73
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 74
 
695 rajveer 75
    /**
4600 varun.gupt 76
     * Get all active Payment Gateways
77
     * 
78
     */
79
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException;
80
 
81
    /**
695 rajveer 82
     * Get a particular payment info
83
     * 
84
     * 
85
     * @param id
86
     */
3430 rajveer 87
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 88
 
695 rajveer 89
    /**
4600 varun.gupt 90
     * Get payments for a transaction. Will raise exception.
695 rajveer 91
     * 
92
     * 
93
     * @param txnId
94
     */
3430 rajveer 95
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
420 ashish 96
 
695 rajveer 97
    /**
7049 anupam.sin 98
     * Get payments for a recharge transaction id. Will raise exception.
99
     * 
100
     * 
101
     * @param txnId
102
     */
103
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
104
 
105
    /**
4600 varun.gupt 106
     * Get successful payment for a transaction. Will raise exception.
107
     * 
108
     * 
109
     * @param txnId
110
     */
111
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
112
 
113
    /**
695 rajveer 114
     * mark payment successful and store parameters
115
     * 
116
     * 
117
     * @param id
118
     * @param gatewayPaymentId
119
     * @param sessionId
120
     * @param gatewayTxnStatus
121
     * @param description
122
     * @param gatewayTxnId
123
     * @param authCode
124
     * @param referenceCode
125
     * @param errorCode
126
     * @param status
1119 rajveer 127
     * @param gatewayTxnDate
695 rajveer 128
     * @param attributes
129
     */
3430 rajveer 130
    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 131
 
1629 ankur.sing 132
    /**
1731 ankur.sing 133
     * Returns the minimum and maximum amounts among successful payments.
134
     * List contains two double values, first minimum and second maximum amount.
1629 ankur.sing 135
     */
3430 rajveer 136
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
1629 ankur.sing 137
 
2462 chandransh 138
    /**
139
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
140
     * In case of any processing error, an exception is raised.
141
     * 
142
     * @param merchantPaymentId
143
     */
3430 rajveer 144
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
2462 chandransh 145
 
2690 chandransh 146
    /**
6050 anupam.sin 147
     * Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
6228 anupam.sin 148
     * In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
6050 anupam.sin 149
     * 
150
     * @param merchantPaymentId
151
     * @param rechargeOrderId
6228 anupam.sin 152
     * @param phone
6050 anupam.sin 153
     */
6228 anupam.sin 154
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException;
6050 anupam.sin 155
 
156
    /**
3616 chandransh 157
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
158
     * In case of any processing error, an exception is raised.
159
     * 
160
     * @param merchantPaymentId
161
     */
162
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
163
 
164
    /**
2690 chandransh 165
     * Create a refund of the given amount corresponding to the given order to be processed through the same
166
     * payment gateway which processed the payment for the corresponding transaction.
167
     * Returns the id of the newly created Refund.
168
     * 
169
     * @param orderId
170
     * @param merchantTxnId
171
     * @param amount
172
     */
3430 rajveer 173
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
2690 chandransh 174
 
3010 chandransh 175
    /**
176
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
6503 rajveer 177
     * transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
178
     * code 104 is	thrown in case no payments are found for the transaction id passed. PaymentException is also
179
     * thrown with error code 106 in case capture was not possible due to connection
180
     * issue.
3010 chandransh 181
     * 
182
     * @param merchantTxnId
183
     */
3430 rajveer 184
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
3010 chandransh 185
 
3956 chandransh 186
    /**
6503 rajveer 187
     * Refund the payment for the given merchant transaction id. It processes the last payment for the given
188
     * transaction. If refund will be failed nothing will be updated in database.
6486 rajveer 189
     * 
190
     * @param merchantTxnId
191
     * @param amount
192
     * @param isDigital
193
     */
194
    public boolean refundPayment(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
195
 
196
    /**
3956 chandransh 197
     * Adds the given amount to the captured amount of a COD payment.
198
     * Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
199
     * If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
200
     * Also sets the name of the entity which transferred the money, the date on which it was transferred
201
     * and the corresponding transaction id.
202
     * 
203
     * Returns false if the payment couldn't be captured.
204
     * Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
205
     * 
206
     * @param merchantTxnId
207
     * @param amount
208
     * @param xferBy
209
     * @param xferTxnId
210
     * @param xferDate
211
     */
212
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
213
 
4008 mandeep.dh 214
    /**
215
     * Returns the list of payments that require some extra processing and
216
     * which belong to a particular category. This is currently used by CRM
217
     * application.
218
     * 
219
     * @param category
220
     */
221
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
222
 
223
    /**
224
     * Marks a particular payment as processed for a particular cateogory.
225
     * It essentially deletes the payment if it is processed for a particular
226
     * category. This is currently used by CRM application.
227
     * 
228
     * @param paymentId
229
     * @param category
230
     */
231
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
232
 
123 ashish 233
  }
234
 
3430 rajveer 235
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
236
 
6050 anupam.sin 237
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 238
 
239
    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;
240
 
241
    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;
242
 
4141 chandransh 243
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
244
 
3430 rajveer 245
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
246
 
4600 varun.gupt 247
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
248
 
3430 rajveer 249
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
250
 
251
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
252
 
7049 anupam.sin 253
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException;
254
 
4600 varun.gupt 255
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
256
 
3430 rajveer 257
    public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException;
258
 
259
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
260
 
261
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
262
 
6228 anupam.sin 263
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
6050 anupam.sin 264
 
3616 chandransh 265
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
266
 
3430 rajveer 267
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
268
 
269
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
270
 
6486 rajveer 271
    public void refundPayment(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundPayment_call> resultHandler) throws org.apache.thrift.TException;
272
 
3956 chandransh 273
    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;
274
 
4008 mandeep.dh 275
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
276
 
277
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
278
 
3430 rajveer 279
  }
280
 
3374 rajveer 281
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 282
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
283
      public Factory() {}
284
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
285
        return new Client(prot);
286
      }
287
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
288
        return new Client(iprot, oprot);
289
      }
290
    }
291
 
292
    public Client(org.apache.thrift.protocol.TProtocol prot)
123 ashish 293
    {
3430 rajveer 294
      super(prot, prot);
123 ashish 295
    }
296
 
3430 rajveer 297
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 298
      super(iprot, oprot);
123 ashish 299
    }
300
 
6050 anupam.sin 301
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
123 ashish 302
    {
6050 anupam.sin 303
      send_createPayment(userId, amount, gatewayId, txnId, isDigital);
123 ashish 304
      return recv_createPayment();
305
    }
306
 
6050 anupam.sin 307
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws org.apache.thrift.TException
123 ashish 308
    {
309
      createPayment_args args = new createPayment_args();
3430 rajveer 310
      args.setUserId(userId);
311
      args.setAmount(amount);
312
      args.setGatewayId(gatewayId);
313
      args.setTxnId(txnId);
6050 anupam.sin 314
      args.setIsDigital(isDigital);
3430 rajveer 315
      sendBase("createPayment", args);
123 ashish 316
    }
317
 
3430 rajveer 318
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
123 ashish 319
    {
320
      createPayment_result result = new createPayment_result();
3430 rajveer 321
      receiveBase(result, "createPayment");
123 ashish 322
      if (result.isSetSuccess()) {
323
        return result.success;
324
      }
325
      if (result.pe != null) {
326
        throw result.pe;
327
      }
3430 rajveer 328
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
123 ashish 329
    }
330
 
3430 rajveer 331
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 332
    {
695 rajveer 333
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
123 ashish 334
      return recv_getPaymentsForUser();
335
    }
336
 
3430 rajveer 337
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 338
    {
339
      getPaymentsForUser_args args = new getPaymentsForUser_args();
3430 rajveer 340
      args.setUserId(userId);
341
      args.setFromTime(fromTime);
342
      args.setToTime(toTime);
343
      args.setStatus(status);
344
      args.setGatewayId(gatewayId);
345
      sendBase("getPaymentsForUser", args);
123 ashish 346
    }
347
 
3430 rajveer 348
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
123 ashish 349
    {
350
      getPaymentsForUser_result result = new getPaymentsForUser_result();
3430 rajveer 351
      receiveBase(result, "getPaymentsForUser");
123 ashish 352
      if (result.isSetSuccess()) {
353
        return result.success;
354
      }
355
      if (result.pe != null) {
356
        throw result.pe;
357
      }
3430 rajveer 358
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
123 ashish 359
    }
360
 
3430 rajveer 361
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 362
    {
695 rajveer 363
      send_getPayments(fromTime, toTime, status, gatewayId);
123 ashish 364
      return recv_getPayments();
365
    }
366
 
3430 rajveer 367
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 368
    {
369
      getPayments_args args = new getPayments_args();
3430 rajveer 370
      args.setFromTime(fromTime);
371
      args.setToTime(toTime);
372
      args.setStatus(status);
373
      args.setGatewayId(gatewayId);
374
      sendBase("getPayments", args);
123 ashish 375
    }
376
 
3430 rajveer 377
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
123 ashish 378
    {
379
      getPayments_result result = new getPayments_result();
3430 rajveer 380
      receiveBase(result, "getPayments");
123 ashish 381
      if (result.isSetSuccess()) {
382
        return result.success;
383
      }
384
      if (result.pe != null) {
385
        throw result.pe;
386
      }
3430 rajveer 387
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
123 ashish 388
    }
389
 
4141 chandransh 390
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
391
    {
392
      send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
393
      return recv_getPaymentsByCapturedDate();
394
    }
395
 
396
    public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
397
    {
398
      getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
399
      args.setFromTime(fromTime);
400
      args.setToTime(toTime);
401
      args.setGatewayId(gatewayId);
402
      sendBase("getPaymentsByCapturedDate", args);
403
    }
404
 
405
    public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
406
    {
407
      getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
408
      receiveBase(result, "getPaymentsByCapturedDate");
409
      if (result.isSetSuccess()) {
410
        return result.success;
411
      }
412
      if (result.pe != null) {
413
        throw result.pe;
414
      }
415
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
416
    }
417
 
3430 rajveer 418
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 419
    {
420
      send_getPaymentGateway(id);
421
      return recv_getPaymentGateway();
422
    }
423
 
3430 rajveer 424
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
420 ashish 425
    {
426
      getPaymentGateway_args args = new getPaymentGateway_args();
3430 rajveer 427
      args.setId(id);
428
      sendBase("getPaymentGateway", args);
420 ashish 429
    }
430
 
3430 rajveer 431
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
420 ashish 432
    {
433
      getPaymentGateway_result result = new getPaymentGateway_result();
3430 rajveer 434
      receiveBase(result, "getPaymentGateway");
420 ashish 435
      if (result.isSetSuccess()) {
436
        return result.success;
437
      }
438
      if (result.pe != null) {
439
        throw result.pe;
440
      }
3430 rajveer 441
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
420 ashish 442
    }
443
 
4600 varun.gupt 444
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
445
    {
446
      send_getActivePaymentGateways();
447
      return recv_getActivePaymentGateways();
448
    }
449
 
450
    public void send_getActivePaymentGateways() throws org.apache.thrift.TException
451
    {
452
      getActivePaymentGateways_args args = new getActivePaymentGateways_args();
453
      sendBase("getActivePaymentGateways", args);
454
    }
455
 
456
    public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
457
    {
458
      getActivePaymentGateways_result result = new getActivePaymentGateways_result();
459
      receiveBase(result, "getActivePaymentGateways");
460
      if (result.isSetSuccess()) {
461
        return result.success;
462
      }
463
      if (result.pe != null) {
464
        throw result.pe;
465
      }
466
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
467
    }
468
 
3430 rajveer 469
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 470
    {
695 rajveer 471
      send_getPayment(id);
472
      return recv_getPayment();
420 ashish 473
    }
474
 
3430 rajveer 475
    public void send_getPayment(long id) throws org.apache.thrift.TException
420 ashish 476
    {
695 rajveer 477
      getPayment_args args = new getPayment_args();
3430 rajveer 478
      args.setId(id);
479
      sendBase("getPayment", args);
420 ashish 480
    }
481
 
3430 rajveer 482
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
420 ashish 483
    {
695 rajveer 484
      getPayment_result result = new getPayment_result();
3430 rajveer 485
      receiveBase(result, "getPayment");
695 rajveer 486
      if (result.isSetSuccess()) {
487
        return result.success;
488
      }
420 ashish 489
      if (result.pe != null) {
490
        throw result.pe;
491
      }
3430 rajveer 492
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
420 ashish 493
    }
494
 
3430 rajveer 495
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
420 ashish 496
    {
695 rajveer 497
      send_getPaymentForTxnId(txnId);
498
      return recv_getPaymentForTxnId();
420 ashish 499
    }
500
 
3430 rajveer 501
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
420 ashish 502
    {
695 rajveer 503
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
3430 rajveer 504
      args.setTxnId(txnId);
505
      sendBase("getPaymentForTxnId", args);
420 ashish 506
    }
507
 
3430 rajveer 508
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
420 ashish 509
    {
695 rajveer 510
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
3430 rajveer 511
      receiveBase(result, "getPaymentForTxnId");
420 ashish 512
      if (result.isSetSuccess()) {
513
        return result.success;
514
      }
515
      if (result.pe != null) {
516
        throw result.pe;
517
      }
3430 rajveer 518
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
420 ashish 519
    }
520
 
7049 anupam.sin 521
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
522
    {
523
      send_getPaymentForRechargeTxnId(txnId);
524
      return recv_getPaymentForRechargeTxnId();
525
    }
526
 
527
    public void send_getPaymentForRechargeTxnId(long txnId) throws org.apache.thrift.TException
528
    {
529
      getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
530
      args.setTxnId(txnId);
531
      sendBase("getPaymentForRechargeTxnId", args);
532
    }
533
 
534
    public List<Payment> recv_getPaymentForRechargeTxnId() throws PaymentException, org.apache.thrift.TException
535
    {
536
      getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
537
      receiveBase(result, "getPaymentForRechargeTxnId");
538
      if (result.isSetSuccess()) {
539
        return result.success;
540
      }
541
      if (result.pe != null) {
542
        throw result.pe;
543
      }
544
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForRechargeTxnId failed: unknown result");
545
    }
546
 
4600 varun.gupt 547
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
548
    {
549
      send_getSuccessfulPaymentForTxnId(txnId);
550
      return recv_getSuccessfulPaymentForTxnId();
551
    }
552
 
553
    public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
554
    {
555
      getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
556
      args.setTxnId(txnId);
557
      sendBase("getSuccessfulPaymentForTxnId", args);
558
    }
559
 
560
    public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
561
    {
562
      getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
563
      receiveBase(result, "getSuccessfulPaymentForTxnId");
564
      if (result.isSetSuccess()) {
565
        return result.success;
566
      }
567
      if (result.pe != null) {
568
        throw result.pe;
569
      }
570
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
571
    }
572
 
3430 rajveer 573
    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 574
    {
1119 rajveer 575
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
695 rajveer 576
      return recv_updatePaymentDetails();
420 ashish 577
    }
578
 
3430 rajveer 579
    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 580
    {
695 rajveer 581
      updatePaymentDetails_args args = new updatePaymentDetails_args();
3430 rajveer 582
      args.setId(id);
583
      args.setGatewayPaymentId(gatewayPaymentId);
584
      args.setSessionId(sessionId);
585
      args.setGatewayTxnStatus(gatewayTxnStatus);
586
      args.setDescription(description);
587
      args.setGatewayTxnId(gatewayTxnId);
588
      args.setAuthCode(authCode);
589
      args.setReferenceCode(referenceCode);
590
      args.setErrorCode(errorCode);
591
      args.setStatus(status);
592
      args.setGatewayTxnDate(gatewayTxnDate);
593
      args.setAttributes(attributes);
594
      sendBase("updatePaymentDetails", args);
420 ashish 595
    }
596
 
3430 rajveer 597
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
420 ashish 598
    {
695 rajveer 599
      updatePaymentDetails_result result = new updatePaymentDetails_result();
3430 rajveer 600
      receiveBase(result, "updatePaymentDetails");
695 rajveer 601
      if (result.isSetSuccess()) {
602
        return result.success;
603
      }
420 ashish 604
      if (result.pe != null) {
605
        throw result.pe;
606
      }
3430 rajveer 607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
420 ashish 608
    }
609
 
3430 rajveer 610
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 611
    {
1731 ankur.sing 612
      send_getSuccessfulPaymentsAmountRange();
613
      return recv_getSuccessfulPaymentsAmountRange();
1629 ankur.sing 614
    }
615
 
3430 rajveer 616
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 617
    {
1731 ankur.sing 618
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
3430 rajveer 619
      sendBase("getSuccessfulPaymentsAmountRange", args);
1629 ankur.sing 620
    }
621
 
3430 rajveer 622
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 623
    {
1731 ankur.sing 624
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 625
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
1629 ankur.sing 626
      if (result.isSetSuccess()) {
627
        return result.success;
628
      }
3430 rajveer 629
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
1629 ankur.sing 630
    }
631
 
3430 rajveer 632
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
2462 chandransh 633
    {
634
      send_initializeHdfcPayment(merchantPaymentId);
635
      return recv_initializeHdfcPayment();
636
    }
637
 
3430 rajveer 638
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
2462 chandransh 639
    {
640
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
3430 rajveer 641
      args.setMerchantPaymentId(merchantPaymentId);
642
      sendBase("initializeHdfcPayment", args);
2462 chandransh 643
    }
644
 
3430 rajveer 645
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
2462 chandransh 646
    {
647
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
3430 rajveer 648
      receiveBase(result, "initializeHdfcPayment");
2462 chandransh 649
      if (result.isSetSuccess()) {
650
        return result.success;
651
      }
652
      if (result.pe != null) {
653
        throw result.pe;
654
      }
3430 rajveer 655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
2462 chandransh 656
    }
657
 
6228 anupam.sin 658
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException
6050 anupam.sin 659
    {
6228 anupam.sin 660
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone);
6050 anupam.sin 661
      return recv_doHdfcPaymentForDigitalOrder();
662
    }
663
 
6228 anupam.sin 664
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws org.apache.thrift.TException
6050 anupam.sin 665
    {
666
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
667
      args.setMerchantPaymentId(merchantPaymentId);
668
      args.setRechargeOrderId(rechargeOrderId);
6228 anupam.sin 669
      args.setPhone(phone);
6050 anupam.sin 670
      sendBase("doHdfcPaymentForDigitalOrder", args);
671
    }
672
 
673
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
674
    {
675
      doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
676
      receiveBase(result, "doHdfcPaymentForDigitalOrder");
677
      if (result.isSetSuccess()) {
678
        return result.success;
679
      }
680
      if (result.pe != null) {
681
        throw result.pe;
682
      }
683
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
684
    }
685
 
3616 chandransh 686
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
687
    {
688
      send_initializeHdfcEmiPayment(merchantPaymentId);
689
      return recv_initializeHdfcEmiPayment();
690
    }
691
 
692
    public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
693
    {
694
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
695
      args.setMerchantPaymentId(merchantPaymentId);
696
      sendBase("initializeHdfcEmiPayment", args);
697
    }
698
 
699
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
700
    {
701
      initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
702
      receiveBase(result, "initializeHdfcEmiPayment");
703
      if (result.isSetSuccess()) {
704
        return result.success;
705
      }
706
      if (result.pe != null) {
707
        throw result.pe;
708
      }
709
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
710
    }
711
 
3430 rajveer 712
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
2690 chandransh 713
    {
714
      send_createRefund(orderId, merchantTxnId, amount);
715
      return recv_createRefund();
716
    }
717
 
3430 rajveer 718
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
2690 chandransh 719
    {
720
      createRefund_args args = new createRefund_args();
3430 rajveer 721
      args.setOrderId(orderId);
722
      args.setMerchantTxnId(merchantTxnId);
723
      args.setAmount(amount);
724
      sendBase("createRefund", args);
2690 chandransh 725
    }
726
 
3430 rajveer 727
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
2690 chandransh 728
    {
729
      createRefund_result result = new createRefund_result();
3430 rajveer 730
      receiveBase(result, "createRefund");
2690 chandransh 731
      if (result.isSetSuccess()) {
732
        return result.success;
733
      }
734
      if (result.pe != null) {
735
        throw result.pe;
736
      }
3430 rajveer 737
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
2690 chandransh 738
    }
739
 
3430 rajveer 740
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
3010 chandransh 741
    {
742
      send_capturePayment(merchantTxnId);
743
      return recv_capturePayment();
744
    }
745
 
3430 rajveer 746
    public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
3010 chandransh 747
    {
748
      capturePayment_args args = new capturePayment_args();
3430 rajveer 749
      args.setMerchantTxnId(merchantTxnId);
750
      sendBase("capturePayment", args);
3010 chandransh 751
    }
752
 
3430 rajveer 753
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
3010 chandransh 754
    {
755
      capturePayment_result result = new capturePayment_result();
3430 rajveer 756
      receiveBase(result, "capturePayment");
3010 chandransh 757
      if (result.isSetSuccess()) {
758
        return result.success;
759
      }
760
      if (result.pe != null) {
761
        throw result.pe;
762
      }
3430 rajveer 763
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
3010 chandransh 764
    }
765
 
6486 rajveer 766
    public boolean refundPayment(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException
767
    {
768
      send_refundPayment(merchantTxnId, amount, isDigital);
769
      return recv_refundPayment();
770
    }
771
 
772
    public void send_refundPayment(long merchantTxnId, double amount, boolean isDigital) throws org.apache.thrift.TException
773
    {
774
      refundPayment_args args = new refundPayment_args();
775
      args.setMerchantTxnId(merchantTxnId);
776
      args.setAmount(amount);
777
      args.setIsDigital(isDigital);
778
      sendBase("refundPayment", args);
779
    }
780
 
781
    public boolean recv_refundPayment() throws PaymentException, org.apache.thrift.TException
782
    {
783
      refundPayment_result result = new refundPayment_result();
784
      receiveBase(result, "refundPayment");
785
      if (result.isSetSuccess()) {
786
        return result.success;
787
      }
788
      if (result.pe != null) {
789
        throw result.pe;
790
      }
791
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundPayment failed: unknown result");
792
    }
793
 
3956 chandransh 794
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
795
    {
796
      send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
797
      return recv_partiallyCapturePayment();
798
    }
799
 
800
    public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
801
    {
802
      partiallyCapturePayment_args args = new partiallyCapturePayment_args();
803
      args.setMerchantTxnId(merchantTxnId);
804
      args.setAmount(amount);
805
      args.setXferBy(xferBy);
806
      args.setXferTxnId(xferTxnId);
807
      args.setXferDate(xferDate);
808
      sendBase("partiallyCapturePayment", args);
809
    }
810
 
811
    public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
812
    {
813
      partiallyCapturePayment_result result = new partiallyCapturePayment_result();
814
      receiveBase(result, "partiallyCapturePayment");
815
      if (result.isSetSuccess()) {
816
        return result.success;
817
      }
818
      if (result.pe != null) {
819
        throw result.pe;
820
      }
821
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
822
    }
823
 
4008 mandeep.dh 824
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
825
    {
826
      send_getPaymentsRequiringExtraProcessing(category);
827
      return recv_getPaymentsRequiringExtraProcessing();
828
    }
829
 
830
    public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
831
    {
832
      getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
833
      args.setCategory(category);
834
      sendBase("getPaymentsRequiringExtraProcessing", args);
835
    }
836
 
837
    public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
838
    {
839
      getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
840
      receiveBase(result, "getPaymentsRequiringExtraProcessing");
841
      if (result.isSetSuccess()) {
842
        return result.success;
843
      }
844
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
845
    }
846
 
847
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
848
    {
849
      send_markPaymentAsProcessed(paymentId, category);
850
      recv_markPaymentAsProcessed();
851
    }
852
 
853
    public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
854
    {
855
      markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
856
      args.setPaymentId(paymentId);
857
      args.setCategory(category);
858
      sendBase("markPaymentAsProcessed", args);
859
    }
860
 
861
    public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
862
    {
863
      markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
864
      receiveBase(result, "markPaymentAsProcessed");
865
      return;
866
    }
867
 
123 ashish 868
  }
3430 rajveer 869
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
870
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
871
      private org.apache.thrift.async.TAsyncClientManager clientManager;
872
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
873
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
874
        this.clientManager = clientManager;
875
        this.protocolFactory = protocolFactory;
876
      }
877
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
878
        return new AsyncClient(protocolFactory, clientManager, transport);
879
      }
123 ashish 880
    }
881
 
3430 rajveer 882
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
883
      super(protocolFactory, clientManager, transport);
884
    }
123 ashish 885
 
6050 anupam.sin 886
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 887
      checkReady();
6050 anupam.sin 888
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 889
      this.___currentMethod = method_call;
890
      ___manager.call(method_call);
891
    }
892
 
893
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
894
      private long userId;
895
      private double amount;
896
      private long gatewayId;
897
      private long txnId;
6050 anupam.sin 898
      private boolean isDigital;
899
      public createPayment_call(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 900
        super(client, protocolFactory, transport, resultHandler, false);
901
        this.userId = userId;
902
        this.amount = amount;
903
        this.gatewayId = gatewayId;
904
        this.txnId = txnId;
6050 anupam.sin 905
        this.isDigital = isDigital;
123 ashish 906
      }
3430 rajveer 907
 
908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
910
        createPayment_args args = new createPayment_args();
911
        args.setUserId(userId);
912
        args.setAmount(amount);
913
        args.setGatewayId(gatewayId);
914
        args.setTxnId(txnId);
6050 anupam.sin 915
        args.setIsDigital(isDigital);
3430 rajveer 916
        args.write(prot);
917
        prot.writeMessageEnd();
918
      }
919
 
920
      public long getResult() throws PaymentException, org.apache.thrift.TException {
921
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
922
          throw new IllegalStateException("Method call not finished!");
923
        }
924
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
925
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
926
        return (new Client(prot)).recv_createPayment();
927
      }
123 ashish 928
    }
929
 
3430 rajveer 930
    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 {
931
      checkReady();
932
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
933
      this.___currentMethod = method_call;
934
      ___manager.call(method_call);
935
    }
936
 
937
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
938
      private long userId;
939
      private long fromTime;
940
      private long toTime;
941
      private PaymentStatus status;
942
      private long gatewayId;
943
      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 {
944
        super(client, protocolFactory, transport, resultHandler, false);
945
        this.userId = userId;
946
        this.fromTime = fromTime;
947
        this.toTime = toTime;
948
        this.status = status;
949
        this.gatewayId = gatewayId;
950
      }
951
 
952
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
953
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
954
        getPaymentsForUser_args args = new getPaymentsForUser_args();
955
        args.setUserId(userId);
956
        args.setFromTime(fromTime);
957
        args.setToTime(toTime);
958
        args.setStatus(status);
959
        args.setGatewayId(gatewayId);
960
        args.write(prot);
961
        prot.writeMessageEnd();
962
      }
963
 
964
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
965
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
966
          throw new IllegalStateException("Method call not finished!");
967
        }
968
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
969
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
970
        return (new Client(prot)).recv_getPaymentsForUser();
971
      }
972
    }
973
 
974
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
975
      checkReady();
976
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
977
      this.___currentMethod = method_call;
978
      ___manager.call(method_call);
979
    }
980
 
981
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
982
      private long fromTime;
983
      private long toTime;
984
      private PaymentStatus status;
985
      private long gatewayId;
986
      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 {
987
        super(client, protocolFactory, transport, resultHandler, false);
988
        this.fromTime = fromTime;
989
        this.toTime = toTime;
990
        this.status = status;
991
        this.gatewayId = gatewayId;
992
      }
993
 
994
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
995
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
996
        getPayments_args args = new getPayments_args();
997
        args.setFromTime(fromTime);
998
        args.setToTime(toTime);
999
        args.setStatus(status);
1000
        args.setGatewayId(gatewayId);
1001
        args.write(prot);
1002
        prot.writeMessageEnd();
1003
      }
1004
 
1005
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1006
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1007
          throw new IllegalStateException("Method call not finished!");
1008
        }
1009
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1011
        return (new Client(prot)).recv_getPayments();
1012
      }
1013
    }
1014
 
4141 chandransh 1015
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
1016
      checkReady();
1017
      getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
1018
      this.___currentMethod = method_call;
1019
      ___manager.call(method_call);
1020
    }
1021
 
1022
    public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1023
      private long fromTime;
1024
      private long toTime;
1025
      private long gatewayId;
1026
      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 {
1027
        super(client, protocolFactory, transport, resultHandler, false);
1028
        this.fromTime = fromTime;
1029
        this.toTime = toTime;
1030
        this.gatewayId = gatewayId;
1031
      }
1032
 
1033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1035
        getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
1036
        args.setFromTime(fromTime);
1037
        args.setToTime(toTime);
1038
        args.setGatewayId(gatewayId);
1039
        args.write(prot);
1040
        prot.writeMessageEnd();
1041
      }
1042
 
1043
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1044
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1045
          throw new IllegalStateException("Method call not finished!");
1046
        }
1047
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1049
        return (new Client(prot)).recv_getPaymentsByCapturedDate();
1050
      }
1051
    }
1052
 
3430 rajveer 1053
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
1054
      checkReady();
1055
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
1056
      this.___currentMethod = method_call;
1057
      ___manager.call(method_call);
1058
    }
1059
 
1060
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
1061
      private long id;
1062
      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 {
1063
        super(client, protocolFactory, transport, resultHandler, false);
1064
        this.id = id;
1065
      }
1066
 
1067
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1068
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
1069
        getPaymentGateway_args args = new getPaymentGateway_args();
1070
        args.setId(id);
1071
        args.write(prot);
1072
        prot.writeMessageEnd();
1073
      }
1074
 
1075
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
1076
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1077
          throw new IllegalStateException("Method call not finished!");
1078
        }
1079
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1080
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1081
        return (new Client(prot)).recv_getPaymentGateway();
1082
      }
1083
    }
1084
 
4600 varun.gupt 1085
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
1086
      checkReady();
1087
      getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
1088
      this.___currentMethod = method_call;
1089
      ___manager.call(method_call);
1090
    }
1091
 
1092
    public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
1093
      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 {
1094
        super(client, protocolFactory, transport, resultHandler, false);
1095
      }
1096
 
1097
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1098
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
1099
        getActivePaymentGateways_args args = new getActivePaymentGateways_args();
1100
        args.write(prot);
1101
        prot.writeMessageEnd();
1102
      }
1103
 
1104
      public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
1105
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1106
          throw new IllegalStateException("Method call not finished!");
1107
        }
1108
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1109
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1110
        return (new Client(prot)).recv_getActivePaymentGateways();
1111
      }
1112
    }
1113
 
3430 rajveer 1114
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
1115
      checkReady();
1116
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
1117
      this.___currentMethod = method_call;
1118
      ___manager.call(method_call);
1119
    }
1120
 
1121
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1122
      private long id;
1123
      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 {
1124
        super(client, protocolFactory, transport, resultHandler, false);
1125
        this.id = id;
1126
      }
1127
 
1128
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1129
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1130
        getPayment_args args = new getPayment_args();
1131
        args.setId(id);
1132
        args.write(prot);
1133
        prot.writeMessageEnd();
1134
      }
1135
 
1136
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1137
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1138
          throw new IllegalStateException("Method call not finished!");
1139
        }
1140
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1141
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1142
        return (new Client(prot)).recv_getPayment();
1143
      }
1144
    }
1145
 
1146
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1147
      checkReady();
1148
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1149
      this.___currentMethod = method_call;
1150
      ___manager.call(method_call);
1151
    }
1152
 
1153
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1154
      private long txnId;
1155
      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 {
1156
        super(client, protocolFactory, transport, resultHandler, false);
1157
        this.txnId = txnId;
1158
      }
1159
 
1160
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1161
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1162
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
1163
        args.setTxnId(txnId);
1164
        args.write(prot);
1165
        prot.writeMessageEnd();
1166
      }
1167
 
1168
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1169
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1170
          throw new IllegalStateException("Method call not finished!");
1171
        }
1172
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1173
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1174
        return (new Client(prot)).recv_getPaymentForTxnId();
1175
      }
1176
    }
1177
 
7049 anupam.sin 1178
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException {
1179
      checkReady();
1180
      getPaymentForRechargeTxnId_call method_call = new getPaymentForRechargeTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1181
      this.___currentMethod = method_call;
1182
      ___manager.call(method_call);
1183
    }
1184
 
1185
    public static class getPaymentForRechargeTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1186
      private long txnId;
1187
      public getPaymentForRechargeTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1188
        super(client, protocolFactory, transport, resultHandler, false);
1189
        this.txnId = txnId;
1190
      }
1191
 
1192
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1193
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForRechargeTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1194
        getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
1195
        args.setTxnId(txnId);
1196
        args.write(prot);
1197
        prot.writeMessageEnd();
1198
      }
1199
 
1200
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1201
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1202
          throw new IllegalStateException("Method call not finished!");
1203
        }
1204
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1205
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1206
        return (new Client(prot)).recv_getPaymentForRechargeTxnId();
1207
      }
1208
    }
1209
 
4600 varun.gupt 1210
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1211
      checkReady();
1212
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1213
      this.___currentMethod = method_call;
1214
      ___manager.call(method_call);
1215
    }
1216
 
1217
    public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1218
      private long txnId;
1219
      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 {
1220
        super(client, protocolFactory, transport, resultHandler, false);
1221
        this.txnId = txnId;
1222
      }
1223
 
1224
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1225
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1226
        getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
1227
        args.setTxnId(txnId);
1228
        args.write(prot);
1229
        prot.writeMessageEnd();
1230
      }
1231
 
1232
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1233
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1234
          throw new IllegalStateException("Method call not finished!");
1235
        }
1236
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1237
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1238
        return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
1239
      }
1240
    }
1241
 
3430 rajveer 1242
    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 {
1243
      checkReady();
1244
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
1245
      this.___currentMethod = method_call;
1246
      ___manager.call(method_call);
1247
    }
1248
 
1249
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
1250
      private long id;
1251
      private String gatewayPaymentId;
1252
      private String sessionId;
1253
      private String gatewayTxnStatus;
1254
      private String description;
1255
      private String gatewayTxnId;
1256
      private String authCode;
1257
      private String referenceCode;
1258
      private String errorCode;
1259
      private PaymentStatus status;
1260
      private String gatewayTxnDate;
1261
      private List<Attribute> attributes;
1262
      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 {
1263
        super(client, protocolFactory, transport, resultHandler, false);
1264
        this.id = id;
1265
        this.gatewayPaymentId = gatewayPaymentId;
1266
        this.sessionId = sessionId;
1267
        this.gatewayTxnStatus = gatewayTxnStatus;
1268
        this.description = description;
1269
        this.gatewayTxnId = gatewayTxnId;
1270
        this.authCode = authCode;
1271
        this.referenceCode = referenceCode;
1272
        this.errorCode = errorCode;
1273
        this.status = status;
1274
        this.gatewayTxnDate = gatewayTxnDate;
1275
        this.attributes = attributes;
1276
      }
1277
 
1278
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1279
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
1280
        updatePaymentDetails_args args = new updatePaymentDetails_args();
1281
        args.setId(id);
1282
        args.setGatewayPaymentId(gatewayPaymentId);
1283
        args.setSessionId(sessionId);
1284
        args.setGatewayTxnStatus(gatewayTxnStatus);
1285
        args.setDescription(description);
1286
        args.setGatewayTxnId(gatewayTxnId);
1287
        args.setAuthCode(authCode);
1288
        args.setReferenceCode(referenceCode);
1289
        args.setErrorCode(errorCode);
1290
        args.setStatus(status);
1291
        args.setGatewayTxnDate(gatewayTxnDate);
1292
        args.setAttributes(attributes);
1293
        args.write(prot);
1294
        prot.writeMessageEnd();
1295
      }
1296
 
1297
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1298
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1299
          throw new IllegalStateException("Method call not finished!");
1300
        }
1301
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1302
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1303
        return (new Client(prot)).recv_updatePaymentDetails();
1304
      }
1305
    }
1306
 
1307
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
1308
      checkReady();
1309
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
1310
      this.___currentMethod = method_call;
1311
      ___manager.call(method_call);
1312
    }
1313
 
1314
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
1315
      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 {
1316
        super(client, protocolFactory, transport, resultHandler, false);
1317
      }
1318
 
1319
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1320
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
1321
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
1322
        args.write(prot);
1323
        prot.writeMessageEnd();
1324
      }
1325
 
1326
      public List<Double> getResult() throws org.apache.thrift.TException {
1327
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1328
          throw new IllegalStateException("Method call not finished!");
1329
        }
1330
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1331
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1332
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1333
      }
1334
    }
1335
 
1336
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
1337
      checkReady();
1338
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1339
      this.___currentMethod = method_call;
1340
      ___manager.call(method_call);
1341
    }
1342
 
1343
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1344
      private long merchantPaymentId;
1345
      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 {
1346
        super(client, protocolFactory, transport, resultHandler, false);
1347
        this.merchantPaymentId = merchantPaymentId;
1348
      }
1349
 
1350
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1351
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1352
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1353
        args.setMerchantPaymentId(merchantPaymentId);
1354
        args.write(prot);
1355
        prot.writeMessageEnd();
1356
      }
1357
 
1358
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1359
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1360
          throw new IllegalStateException("Method call not finished!");
1361
        }
1362
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1363
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1364
        return (new Client(prot)).recv_initializeHdfcPayment();
1365
      }
1366
    }
1367
 
6228 anupam.sin 1368
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
6050 anupam.sin 1369
      checkReady();
6228 anupam.sin 1370
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, resultHandler, this, ___protocolFactory, ___transport);
6050 anupam.sin 1371
      this.___currentMethod = method_call;
1372
      ___manager.call(method_call);
1373
    }
1374
 
1375
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1376
      private long merchantPaymentId;
1377
      private long rechargeOrderId;
6228 anupam.sin 1378
      private String phone;
1379
      public doHdfcPaymentForDigitalOrder_call(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
6050 anupam.sin 1380
        super(client, protocolFactory, transport, resultHandler, false);
1381
        this.merchantPaymentId = merchantPaymentId;
1382
        this.rechargeOrderId = rechargeOrderId;
6228 anupam.sin 1383
        this.phone = phone;
6050 anupam.sin 1384
      }
1385
 
1386
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1387
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1388
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1389
        args.setMerchantPaymentId(merchantPaymentId);
1390
        args.setRechargeOrderId(rechargeOrderId);
6228 anupam.sin 1391
        args.setPhone(phone);
6050 anupam.sin 1392
        args.write(prot);
1393
        prot.writeMessageEnd();
1394
      }
1395
 
1396
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1397
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1398
          throw new IllegalStateException("Method call not finished!");
1399
        }
1400
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1401
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1402
        return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
1403
      }
1404
    }
1405
 
3616 chandransh 1406
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1407
      checkReady();
1408
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1409
      this.___currentMethod = method_call;
1410
      ___manager.call(method_call);
1411
    }
1412
 
1413
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1414
      private long merchantPaymentId;
1415
      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 {
1416
        super(client, protocolFactory, transport, resultHandler, false);
1417
        this.merchantPaymentId = merchantPaymentId;
1418
      }
1419
 
1420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1422
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1423
        args.setMerchantPaymentId(merchantPaymentId);
1424
        args.write(prot);
1425
        prot.writeMessageEnd();
1426
      }
1427
 
1428
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1429
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1430
          throw new IllegalStateException("Method call not finished!");
1431
        }
1432
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1434
        return (new Client(prot)).recv_initializeHdfcEmiPayment();
1435
      }
1436
    }
1437
 
3430 rajveer 1438
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
1439
      checkReady();
1440
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
1441
      this.___currentMethod = method_call;
1442
      ___manager.call(method_call);
1443
    }
1444
 
1445
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
1446
      private long orderId;
1447
      private long merchantTxnId;
1448
      private double amount;
1449
      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 {
1450
        super(client, protocolFactory, transport, resultHandler, false);
1451
        this.orderId = orderId;
1452
        this.merchantTxnId = merchantTxnId;
1453
        this.amount = amount;
1454
      }
1455
 
1456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
1458
        createRefund_args args = new createRefund_args();
1459
        args.setOrderId(orderId);
1460
        args.setMerchantTxnId(merchantTxnId);
1461
        args.setAmount(amount);
1462
        args.write(prot);
1463
        prot.writeMessageEnd();
1464
      }
1465
 
1466
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1467
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1468
          throw new IllegalStateException("Method call not finished!");
1469
        }
1470
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1471
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1472
        return (new Client(prot)).recv_createRefund();
1473
      }
1474
    }
1475
 
1476
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
1477
      checkReady();
1478
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
1479
      this.___currentMethod = method_call;
1480
      ___manager.call(method_call);
1481
    }
1482
 
1483
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1484
      private long merchantTxnId;
1485
      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 {
1486
        super(client, protocolFactory, transport, resultHandler, false);
1487
        this.merchantTxnId = merchantTxnId;
1488
      }
1489
 
1490
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1491
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1492
        capturePayment_args args = new capturePayment_args();
1493
        args.setMerchantTxnId(merchantTxnId);
1494
        args.write(prot);
1495
        prot.writeMessageEnd();
1496
      }
1497
 
1498
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1499
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1500
          throw new IllegalStateException("Method call not finished!");
1501
        }
1502
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1503
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1504
        return (new Client(prot)).recv_capturePayment();
1505
      }
1506
    }
1507
 
6486 rajveer 1508
    public void refundPayment(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<refundPayment_call> resultHandler) throws org.apache.thrift.TException {
1509
      checkReady();
1510
      refundPayment_call method_call = new refundPayment_call(merchantTxnId, amount, isDigital, resultHandler, this, ___protocolFactory, ___transport);
1511
      this.___currentMethod = method_call;
1512
      ___manager.call(method_call);
1513
    }
1514
 
1515
    public static class refundPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1516
      private long merchantTxnId;
1517
      private double amount;
1518
      private boolean isDigital;
1519
      public refundPayment_call(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<refundPayment_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 {
1520
        super(client, protocolFactory, transport, resultHandler, false);
1521
        this.merchantTxnId = merchantTxnId;
1522
        this.amount = amount;
1523
        this.isDigital = isDigital;
1524
      }
1525
 
1526
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1527
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1528
        refundPayment_args args = new refundPayment_args();
1529
        args.setMerchantTxnId(merchantTxnId);
1530
        args.setAmount(amount);
1531
        args.setIsDigital(isDigital);
1532
        args.write(prot);
1533
        prot.writeMessageEnd();
1534
      }
1535
 
1536
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1537
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1538
          throw new IllegalStateException("Method call not finished!");
1539
        }
1540
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1541
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1542
        return (new Client(prot)).recv_refundPayment();
1543
      }
1544
    }
1545
 
3956 chandransh 1546
    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 {
1547
      checkReady();
1548
      partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
1549
      this.___currentMethod = method_call;
1550
      ___manager.call(method_call);
1551
    }
1552
 
1553
    public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1554
      private long merchantTxnId;
1555
      private double amount;
1556
      private String xferBy;
1557
      private String xferTxnId;
1558
      private long xferDate;
1559
      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 {
1560
        super(client, protocolFactory, transport, resultHandler, false);
1561
        this.merchantTxnId = merchantTxnId;
1562
        this.amount = amount;
1563
        this.xferBy = xferBy;
1564
        this.xferTxnId = xferTxnId;
1565
        this.xferDate = xferDate;
1566
      }
1567
 
1568
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1569
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1570
        partiallyCapturePayment_args args = new partiallyCapturePayment_args();
1571
        args.setMerchantTxnId(merchantTxnId);
1572
        args.setAmount(amount);
1573
        args.setXferBy(xferBy);
1574
        args.setXferTxnId(xferTxnId);
1575
        args.setXferDate(xferDate);
1576
        args.write(prot);
1577
        prot.writeMessageEnd();
1578
      }
1579
 
1580
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1581
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1582
          throw new IllegalStateException("Method call not finished!");
1583
        }
1584
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1585
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1586
        return (new Client(prot)).recv_partiallyCapturePayment();
1587
      }
1588
    }
1589
 
4008 mandeep.dh 1590
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
1591
      checkReady();
1592
      getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
1593
      this.___currentMethod = method_call;
1594
      ___manager.call(method_call);
1595
    }
1596
 
1597
    public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
1598
      private ExtraPaymentProcessingType category;
1599
      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 {
1600
        super(client, protocolFactory, transport, resultHandler, false);
1601
        this.category = category;
1602
      }
1603
 
1604
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1605
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1606
        getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
1607
        args.setCategory(category);
1608
        args.write(prot);
1609
        prot.writeMessageEnd();
1610
      }
1611
 
1612
      public List<Long> getResult() throws org.apache.thrift.TException {
1613
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1614
          throw new IllegalStateException("Method call not finished!");
1615
        }
1616
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1617
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1618
        return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
1619
      }
1620
    }
1621
 
1622
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
1623
      checkReady();
1624
      markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
1625
      this.___currentMethod = method_call;
1626
      ___manager.call(method_call);
1627
    }
1628
 
1629
    public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
1630
      private long paymentId;
1631
      private ExtraPaymentProcessingType category;
1632
      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 {
1633
        super(client, protocolFactory, transport, resultHandler, false);
1634
        this.paymentId = paymentId;
1635
        this.category = category;
1636
      }
1637
 
1638
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1639
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
1640
        markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
1641
        args.setPaymentId(paymentId);
1642
        args.setCategory(category);
1643
        args.write(prot);
1644
        prot.writeMessageEnd();
1645
      }
1646
 
1647
      public void getResult() throws org.apache.thrift.TException {
1648
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1649
          throw new IllegalStateException("Method call not finished!");
1650
        }
1651
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1652
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1653
        (new Client(prot)).recv_markPaymentAsProcessed();
1654
      }
1655
    }
1656
 
3430 rajveer 1657
  }
1658
 
1659
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1660
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1661
    public Processor(I iface) {
1662
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1663
    }
1664
 
1665
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1666
      super(iface, getProcessMap(processMap));
1667
    }
1668
 
1669
    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) {
1670
      processMap.put("createPayment", new createPayment());
1671
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1672
      processMap.put("getPayments", new getPayments());
4141 chandransh 1673
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
3430 rajveer 1674
      processMap.put("getPaymentGateway", new getPaymentGateway());
4600 varun.gupt 1675
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
3430 rajveer 1676
      processMap.put("getPayment", new getPayment());
1677
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
7049 anupam.sin 1678
      processMap.put("getPaymentForRechargeTxnId", new getPaymentForRechargeTxnId());
4600 varun.gupt 1679
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
3430 rajveer 1680
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1681
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1682
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
6050 anupam.sin 1683
      processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
3616 chandransh 1684
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
3430 rajveer 1685
      processMap.put("createRefund", new createRefund());
1686
      processMap.put("capturePayment", new capturePayment());
6486 rajveer 1687
      processMap.put("refundPayment", new refundPayment());
3956 chandransh 1688
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
4008 mandeep.dh 1689
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
1690
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
3430 rajveer 1691
      return processMap;
1692
    }
1693
 
1694
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
1695
      public createPayment() {
1696
        super("createPayment");
1697
      }
1698
 
1699
      protected createPayment_args getEmptyArgsInstance() {
1700
        return new createPayment_args();
1701
      }
1702
 
1703
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
123 ashish 1704
        createPayment_result result = new createPayment_result();
1705
        try {
6050 anupam.sin 1706
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital);
420 ashish 1707
          result.setSuccessIsSet(true);
123 ashish 1708
        } catch (PaymentException pe) {
1709
          result.pe = pe;
1710
        }
3430 rajveer 1711
        return result;
123 ashish 1712
      }
1713
    }
1714
 
3430 rajveer 1715
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
1716
      public getPaymentsForUser() {
1717
        super("getPaymentsForUser");
1718
      }
1719
 
1720
      protected getPaymentsForUser_args getEmptyArgsInstance() {
1721
        return new getPaymentsForUser_args();
1722
      }
1723
 
1724
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
123 ashish 1725
        getPaymentsForUser_result result = new getPaymentsForUser_result();
1726
        try {
3430 rajveer 1727
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1728
        } catch (PaymentException pe) {
1729
          result.pe = pe;
1730
        }
3430 rajveer 1731
        return result;
123 ashish 1732
      }
1733
    }
1734
 
3430 rajveer 1735
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
1736
      public getPayments() {
1737
        super("getPayments");
1738
      }
1739
 
1740
      protected getPayments_args getEmptyArgsInstance() {
1741
        return new getPayments_args();
1742
      }
1743
 
1744
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
123 ashish 1745
        getPayments_result result = new getPayments_result();
1746
        try {
3430 rajveer 1747
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1748
        } catch (PaymentException pe) {
1749
          result.pe = pe;
1750
        }
3430 rajveer 1751
        return result;
123 ashish 1752
      }
1753
    }
1754
 
4141 chandransh 1755
    private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
1756
      public getPaymentsByCapturedDate() {
1757
        super("getPaymentsByCapturedDate");
1758
      }
1759
 
1760
      protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
1761
        return new getPaymentsByCapturedDate_args();
1762
      }
1763
 
1764
      protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
1765
        getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
1766
        try {
1767
          result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
1768
        } catch (PaymentException pe) {
1769
          result.pe = pe;
1770
        }
1771
        return result;
1772
      }
1773
    }
1774
 
3430 rajveer 1775
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1776
      public getPaymentGateway() {
1777
        super("getPaymentGateway");
1778
      }
1779
 
1780
      protected getPaymentGateway_args getEmptyArgsInstance() {
1781
        return new getPaymentGateway_args();
1782
      }
1783
 
1784
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
420 ashish 1785
        getPaymentGateway_result result = new getPaymentGateway_result();
1786
        try {
3430 rajveer 1787
          result.success = iface.getPaymentGateway(args.id);
420 ashish 1788
        } catch (PaymentException pe) {
1789
          result.pe = pe;
1790
        }
3430 rajveer 1791
        return result;
420 ashish 1792
      }
1793
    }
1794
 
4600 varun.gupt 1795
    private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
1796
      public getActivePaymentGateways() {
1797
        super("getActivePaymentGateways");
1798
      }
1799
 
1800
      protected getActivePaymentGateways_args getEmptyArgsInstance() {
1801
        return new getActivePaymentGateways_args();
1802
      }
1803
 
1804
      protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
1805
        getActivePaymentGateways_result result = new getActivePaymentGateways_result();
1806
        try {
1807
          result.success = iface.getActivePaymentGateways();
1808
        } catch (PaymentException pe) {
1809
          result.pe = pe;
1810
        }
1811
        return result;
1812
      }
1813
    }
1814
 
3430 rajveer 1815
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1816
      public getPayment() {
1817
        super("getPayment");
1818
      }
1819
 
1820
      protected getPayment_args getEmptyArgsInstance() {
1821
        return new getPayment_args();
1822
      }
1823
 
1824
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
695 rajveer 1825
        getPayment_result result = new getPayment_result();
420 ashish 1826
        try {
3430 rajveer 1827
          result.success = iface.getPayment(args.id);
420 ashish 1828
        } catch (PaymentException pe) {
1829
          result.pe = pe;
1830
        }
3430 rajveer 1831
        return result;
420 ashish 1832
      }
1833
    }
1834
 
3430 rajveer 1835
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
1836
      public getPaymentForTxnId() {
1837
        super("getPaymentForTxnId");
1838
      }
1839
 
1840
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
1841
        return new getPaymentForTxnId_args();
1842
      }
1843
 
1844
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
695 rajveer 1845
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
420 ashish 1846
        try {
3430 rajveer 1847
          result.success = iface.getPaymentForTxnId(args.txnId);
420 ashish 1848
        } catch (PaymentException pe) {
1849
          result.pe = pe;
1850
        }
3430 rajveer 1851
        return result;
420 ashish 1852
      }
1853
    }
1854
 
7049 anupam.sin 1855
    private static class getPaymentForRechargeTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForRechargeTxnId_args> {
1856
      public getPaymentForRechargeTxnId() {
1857
        super("getPaymentForRechargeTxnId");
1858
      }
1859
 
1860
      protected getPaymentForRechargeTxnId_args getEmptyArgsInstance() {
1861
        return new getPaymentForRechargeTxnId_args();
1862
      }
1863
 
1864
      protected getPaymentForRechargeTxnId_result getResult(I iface, getPaymentForRechargeTxnId_args args) throws org.apache.thrift.TException {
1865
        getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
1866
        try {
1867
          result.success = iface.getPaymentForRechargeTxnId(args.txnId);
1868
        } catch (PaymentException pe) {
1869
          result.pe = pe;
1870
        }
1871
        return result;
1872
      }
1873
    }
1874
 
4600 varun.gupt 1875
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
1876
      public getSuccessfulPaymentForTxnId() {
1877
        super("getSuccessfulPaymentForTxnId");
1878
      }
1879
 
1880
      protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
1881
        return new getSuccessfulPaymentForTxnId_args();
1882
      }
1883
 
1884
      protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
1885
        getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
1886
        try {
1887
          result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
1888
        } catch (PaymentException pe) {
1889
          result.pe = pe;
1890
        }
1891
        return result;
1892
      }
1893
    }
1894
 
3430 rajveer 1895
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1896
      public updatePaymentDetails() {
1897
        super("updatePaymentDetails");
1898
      }
1899
 
1900
      protected updatePaymentDetails_args getEmptyArgsInstance() {
1901
        return new updatePaymentDetails_args();
1902
      }
1903
 
1904
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
695 rajveer 1905
        updatePaymentDetails_result result = new updatePaymentDetails_result();
420 ashish 1906
        try {
3430 rajveer 1907
          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 1908
          result.setSuccessIsSet(true);
420 ashish 1909
        } catch (PaymentException pe) {
1910
          result.pe = pe;
1911
        }
3430 rajveer 1912
        return result;
420 ashish 1913
      }
1914
    }
1915
 
3430 rajveer 1916
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
1917
      public getSuccessfulPaymentsAmountRange() {
1918
        super("getSuccessfulPaymentsAmountRange");
1919
      }
1920
 
1921
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
1922
        return new getSuccessfulPaymentsAmountRange_args();
1923
      }
1924
 
1925
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
1731 ankur.sing 1926
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 1927
        result.success = iface.getSuccessfulPaymentsAmountRange();
1928
        return result;
1629 ankur.sing 1929
      }
1930
    }
1931
 
3430 rajveer 1932
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1933
      public initializeHdfcPayment() {
1934
        super("initializeHdfcPayment");
1935
      }
1936
 
1937
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
1938
        return new initializeHdfcPayment_args();
1939
      }
1940
 
1941
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2462 chandransh 1942
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
1943
        try {
3430 rajveer 1944
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
2462 chandransh 1945
        } catch (PaymentException pe) {
1946
          result.pe = pe;
1947
        }
3430 rajveer 1948
        return result;
2462 chandransh 1949
      }
1950
    }
1951
 
6050 anupam.sin 1952
    private static class doHdfcPaymentForDigitalOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doHdfcPaymentForDigitalOrder_args> {
1953
      public doHdfcPaymentForDigitalOrder() {
1954
        super("doHdfcPaymentForDigitalOrder");
1955
      }
1956
 
1957
      protected doHdfcPaymentForDigitalOrder_args getEmptyArgsInstance() {
1958
        return new doHdfcPaymentForDigitalOrder_args();
1959
      }
1960
 
1961
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
1962
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
1963
        try {
6228 anupam.sin 1964
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone);
6050 anupam.sin 1965
        } catch (PaymentException pe) {
1966
          result.pe = pe;
1967
        }
1968
        return result;
1969
      }
1970
    }
1971
 
3616 chandransh 1972
    private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
1973
      public initializeHdfcEmiPayment() {
1974
        super("initializeHdfcEmiPayment");
1975
      }
1976
 
1977
      protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
1978
        return new initializeHdfcEmiPayment_args();
1979
      }
1980
 
1981
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
1982
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
1983
        try {
1984
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
1985
        } catch (PaymentException pe) {
1986
          result.pe = pe;
1987
        }
1988
        return result;
1989
      }
1990
    }
1991
 
3430 rajveer 1992
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
1993
      public createRefund() {
1994
        super("createRefund");
1995
      }
1996
 
1997
      protected createRefund_args getEmptyArgsInstance() {
1998
        return new createRefund_args();
1999
      }
2000
 
2001
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
2690 chandransh 2002
        createRefund_result result = new createRefund_result();
2003
        try {
3430 rajveer 2004
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
2690 chandransh 2005
          result.setSuccessIsSet(true);
2006
        } catch (PaymentException pe) {
2007
          result.pe = pe;
2008
        }
3430 rajveer 2009
        return result;
2690 chandransh 2010
      }
2011
    }
2012
 
3430 rajveer 2013
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
2014
      public capturePayment() {
2015
        super("capturePayment");
2016
      }
2017
 
2018
      protected capturePayment_args getEmptyArgsInstance() {
2019
        return new capturePayment_args();
2020
      }
2021
 
2022
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
3010 chandransh 2023
        capturePayment_result result = new capturePayment_result();
2024
        try {
3430 rajveer 2025
          result.success = iface.capturePayment(args.merchantTxnId);
3010 chandransh 2026
          result.setSuccessIsSet(true);
2027
        } catch (PaymentException pe) {
2028
          result.pe = pe;
2029
        }
3430 rajveer 2030
        return result;
3010 chandransh 2031
      }
2032
    }
2033
 
6486 rajveer 2034
    private static class refundPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundPayment_args> {
2035
      public refundPayment() {
2036
        super("refundPayment");
2037
      }
2038
 
2039
      protected refundPayment_args getEmptyArgsInstance() {
2040
        return new refundPayment_args();
2041
      }
2042
 
2043
      protected refundPayment_result getResult(I iface, refundPayment_args args) throws org.apache.thrift.TException {
2044
        refundPayment_result result = new refundPayment_result();
2045
        try {
2046
          result.success = iface.refundPayment(args.merchantTxnId, args.amount, args.isDigital);
2047
          result.setSuccessIsSet(true);
2048
        } catch (PaymentException pe) {
2049
          result.pe = pe;
2050
        }
2051
        return result;
2052
      }
2053
    }
2054
 
3956 chandransh 2055
    private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
2056
      public partiallyCapturePayment() {
2057
        super("partiallyCapturePayment");
2058
      }
2059
 
2060
      protected partiallyCapturePayment_args getEmptyArgsInstance() {
2061
        return new partiallyCapturePayment_args();
2062
      }
2063
 
2064
      protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
2065
        partiallyCapturePayment_result result = new partiallyCapturePayment_result();
2066
        try {
2067
          result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
2068
          result.setSuccessIsSet(true);
2069
        } catch (PaymentException pe) {
2070
          result.pe = pe;
2071
        }
2072
        return result;
2073
      }
2074
    }
2075
 
4008 mandeep.dh 2076
    private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
2077
      public getPaymentsRequiringExtraProcessing() {
2078
        super("getPaymentsRequiringExtraProcessing");
2079
      }
2080
 
2081
      protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
2082
        return new getPaymentsRequiringExtraProcessing_args();
2083
      }
2084
 
2085
      protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
2086
        getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
2087
        result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
2088
        return result;
2089
      }
2090
    }
2091
 
2092
    private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
2093
      public markPaymentAsProcessed() {
2094
        super("markPaymentAsProcessed");
2095
      }
2096
 
2097
      protected markPaymentAsProcessed_args getEmptyArgsInstance() {
2098
        return new markPaymentAsProcessed_args();
2099
      }
2100
 
2101
      protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
2102
        markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
2103
        iface.markPaymentAsProcessed(args.paymentId, args.category);
2104
        return result;
2105
      }
2106
    }
2107
 
123 ashish 2108
  }
2109
 
3430 rajveer 2110
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
2111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
123 ashish 2112
 
3430 rajveer 2113
    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);
2114
    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);
2115
    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);
2116
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)4);
6050 anupam.sin 2117
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)5);
123 ashish 2118
 
3430 rajveer 2119
    private long userId; // required
2120
    private double amount; // required
2121
    private long gatewayId; // required
2122
    private long txnId; // required
6050 anupam.sin 2123
    private boolean isDigital; // required
123 ashish 2124
 
2125
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2126
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 2127
      USER_ID((short)1, "userId"),
2128
      AMOUNT((short)2, "amount"),
2129
      GATEWAY_ID((short)3, "gatewayId"),
6050 anupam.sin 2130
      TXN_ID((short)4, "txnId"),
2131
      IS_DIGITAL((short)5, "isDigital");
123 ashish 2132
 
2133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2134
 
2135
      static {
2136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2137
          byName.put(field.getFieldName(), field);
2138
        }
2139
      }
2140
 
2141
      /**
2142
       * Find the _Fields constant that matches fieldId, or null if its not found.
2143
       */
2144
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2145
        switch(fieldId) {
2146
          case 1: // USER_ID
2147
            return USER_ID;
2148
          case 2: // AMOUNT
2149
            return AMOUNT;
2150
          case 3: // GATEWAY_ID
2151
            return GATEWAY_ID;
2152
          case 4: // TXN_ID
2153
            return TXN_ID;
6050 anupam.sin 2154
          case 5: // IS_DIGITAL
2155
            return IS_DIGITAL;
3430 rajveer 2156
          default:
2157
            return null;
2158
        }
123 ashish 2159
      }
2160
 
2161
      /**
2162
       * Find the _Fields constant that matches fieldId, throwing an exception
2163
       * if it is not found.
2164
       */
2165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2166
        _Fields fields = findByThriftId(fieldId);
2167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2168
        return fields;
2169
      }
2170
 
2171
      /**
2172
       * Find the _Fields constant that matches name, or null if its not found.
2173
       */
2174
      public static _Fields findByName(String name) {
2175
        return byName.get(name);
2176
      }
2177
 
2178
      private final short _thriftId;
2179
      private final String _fieldName;
2180
 
2181
      _Fields(short thriftId, String fieldName) {
2182
        _thriftId = thriftId;
2183
        _fieldName = fieldName;
2184
      }
2185
 
2186
      public short getThriftFieldId() {
2187
        return _thriftId;
2188
      }
2189
 
2190
      public String getFieldName() {
2191
        return _fieldName;
2192
      }
2193
    }
2194
 
2195
    // isset id assignments
695 rajveer 2196
    private static final int __USERID_ISSET_ID = 0;
2197
    private static final int __AMOUNT_ISSET_ID = 1;
2198
    private static final int __GATEWAYID_ISSET_ID = 2;
2199
    private static final int __TXNID_ISSET_ID = 3;
6050 anupam.sin 2200
    private static final int __ISDIGITAL_ISSET_ID = 4;
2201
    private BitSet __isset_bit_vector = new BitSet(5);
123 ashish 2202
 
3430 rajveer 2203
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2204
    static {
3430 rajveer 2205
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2206
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2208
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2209
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
2210
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2211
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2212
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2213
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6050 anupam.sin 2214
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 2216
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2217
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
123 ashish 2218
    }
2219
 
2220
    public createPayment_args() {
2221
    }
2222
 
2223
    public createPayment_args(
695 rajveer 2224
      long userId,
123 ashish 2225
      double amount,
695 rajveer 2226
      long gatewayId,
6050 anupam.sin 2227
      long txnId,
2228
      boolean isDigital)
123 ashish 2229
    {
2230
      this();
695 rajveer 2231
      this.userId = userId;
2232
      setUserIdIsSet(true);
123 ashish 2233
      this.amount = amount;
2234
      setAmountIsSet(true);
695 rajveer 2235
      this.gatewayId = gatewayId;
2236
      setGatewayIdIsSet(true);
2237
      this.txnId = txnId;
2238
      setTxnIdIsSet(true);
6050 anupam.sin 2239
      this.isDigital = isDigital;
2240
      setIsDigitalIsSet(true);
123 ashish 2241
    }
2242
 
2243
    /**
2244
     * Performs a deep copy on <i>other</i>.
2245
     */
2246
    public createPayment_args(createPayment_args other) {
2247
      __isset_bit_vector.clear();
2248
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 2249
      this.userId = other.userId;
123 ashish 2250
      this.amount = other.amount;
695 rajveer 2251
      this.gatewayId = other.gatewayId;
2252
      this.txnId = other.txnId;
6050 anupam.sin 2253
      this.isDigital = other.isDigital;
123 ashish 2254
    }
2255
 
2256
    public createPayment_args deepCopy() {
2257
      return new createPayment_args(this);
2258
    }
2259
 
3430 rajveer 2260
    @Override
2261
    public void clear() {
2262
      setUserIdIsSet(false);
2263
      this.userId = 0;
2264
      setAmountIsSet(false);
2265
      this.amount = 0.0;
2266
      setGatewayIdIsSet(false);
2267
      this.gatewayId = 0;
2268
      setTxnIdIsSet(false);
2269
      this.txnId = 0;
6050 anupam.sin 2270
      setIsDigitalIsSet(false);
2271
      this.isDigital = false;
123 ashish 2272
    }
2273
 
695 rajveer 2274
    public long getUserId() {
2275
      return this.userId;
123 ashish 2276
    }
2277
 
3430 rajveer 2278
    public void setUserId(long userId) {
695 rajveer 2279
      this.userId = userId;
2280
      setUserIdIsSet(true);
123 ashish 2281
    }
2282
 
695 rajveer 2283
    public void unsetUserId() {
2284
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 2285
    }
2286
 
3430 rajveer 2287
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
695 rajveer 2288
    public boolean isSetUserId() {
2289
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 2290
    }
2291
 
695 rajveer 2292
    public void setUserIdIsSet(boolean value) {
2293
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
123 ashish 2294
    }
2295
 
2296
    public double getAmount() {
2297
      return this.amount;
2298
    }
2299
 
3430 rajveer 2300
    public void setAmount(double amount) {
123 ashish 2301
      this.amount = amount;
2302
      setAmountIsSet(true);
2303
    }
2304
 
2305
    public void unsetAmount() {
2306
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
2307
    }
2308
 
3430 rajveer 2309
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
123 ashish 2310
    public boolean isSetAmount() {
2311
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
2312
    }
2313
 
2314
    public void setAmountIsSet(boolean value) {
2315
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
2316
    }
2317
 
695 rajveer 2318
    public long getGatewayId() {
2319
      return this.gatewayId;
123 ashish 2320
    }
2321
 
3430 rajveer 2322
    public void setGatewayId(long gatewayId) {
695 rajveer 2323
      this.gatewayId = gatewayId;
2324
      setGatewayIdIsSet(true);
123 ashish 2325
    }
2326
 
695 rajveer 2327
    public void unsetGatewayId() {
2328
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 2329
    }
2330
 
3430 rajveer 2331
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 2332
    public boolean isSetGatewayId() {
2333
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 2334
    }
2335
 
695 rajveer 2336
    public void setGatewayIdIsSet(boolean value) {
2337
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 2338
    }
2339
 
695 rajveer 2340
    public long getTxnId() {
2341
      return this.txnId;
2342
    }
2343
 
3430 rajveer 2344
    public void setTxnId(long txnId) {
695 rajveer 2345
      this.txnId = txnId;
2346
      setTxnIdIsSet(true);
2347
    }
2348
 
2349
    public void unsetTxnId() {
2350
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
2351
    }
2352
 
3430 rajveer 2353
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 2354
    public boolean isSetTxnId() {
2355
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
2356
    }
2357
 
2358
    public void setTxnIdIsSet(boolean value) {
2359
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
2360
    }
2361
 
6050 anupam.sin 2362
    public boolean isIsDigital() {
2363
      return this.isDigital;
2364
    }
2365
 
2366
    public void setIsDigital(boolean isDigital) {
2367
      this.isDigital = isDigital;
2368
      setIsDigitalIsSet(true);
2369
    }
2370
 
2371
    public void unsetIsDigital() {
2372
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
2373
    }
2374
 
2375
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
2376
    public boolean isSetIsDigital() {
2377
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
2378
    }
2379
 
2380
    public void setIsDigitalIsSet(boolean value) {
2381
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
2382
    }
2383
 
123 ashish 2384
    public void setFieldValue(_Fields field, Object value) {
2385
      switch (field) {
2386
      case USER_ID:
2387
        if (value == null) {
695 rajveer 2388
          unsetUserId();
123 ashish 2389
        } else {
695 rajveer 2390
          setUserId((Long)value);
123 ashish 2391
        }
2392
        break;
2393
 
695 rajveer 2394
      case AMOUNT:
123 ashish 2395
        if (value == null) {
695 rajveer 2396
          unsetAmount();
123 ashish 2397
        } else {
695 rajveer 2398
          setAmount((Double)value);
123 ashish 2399
        }
2400
        break;
2401
 
695 rajveer 2402
      case GATEWAY_ID:
123 ashish 2403
        if (value == null) {
695 rajveer 2404
          unsetGatewayId();
123 ashish 2405
        } else {
695 rajveer 2406
          setGatewayId((Long)value);
123 ashish 2407
        }
2408
        break;
2409
 
695 rajveer 2410
      case TXN_ID:
123 ashish 2411
        if (value == null) {
695 rajveer 2412
          unsetTxnId();
123 ashish 2413
        } else {
695 rajveer 2414
          setTxnId((Long)value);
123 ashish 2415
        }
2416
        break;
2417
 
6050 anupam.sin 2418
      case IS_DIGITAL:
2419
        if (value == null) {
2420
          unsetIsDigital();
2421
        } else {
2422
          setIsDigital((Boolean)value);
2423
        }
2424
        break;
2425
 
123 ashish 2426
      }
2427
    }
2428
 
2429
    public Object getFieldValue(_Fields field) {
2430
      switch (field) {
2431
      case USER_ID:
3430 rajveer 2432
        return Long.valueOf(getUserId());
123 ashish 2433
 
2434
      case AMOUNT:
3430 rajveer 2435
        return Double.valueOf(getAmount());
123 ashish 2436
 
420 ashish 2437
      case GATEWAY_ID:
3430 rajveer 2438
        return Long.valueOf(getGatewayId());
123 ashish 2439
 
695 rajveer 2440
      case TXN_ID:
3430 rajveer 2441
        return Long.valueOf(getTxnId());
695 rajveer 2442
 
6050 anupam.sin 2443
      case IS_DIGITAL:
2444
        return Boolean.valueOf(isIsDigital());
2445
 
123 ashish 2446
      }
2447
      throw new IllegalStateException();
2448
    }
2449
 
3430 rajveer 2450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2451
    public boolean isSet(_Fields field) {
2452
      if (field == null) {
2453
        throw new IllegalArgumentException();
2454
      }
123 ashish 2455
 
2456
      switch (field) {
2457
      case USER_ID:
695 rajveer 2458
        return isSetUserId();
123 ashish 2459
      case AMOUNT:
2460
        return isSetAmount();
420 ashish 2461
      case GATEWAY_ID:
695 rajveer 2462
        return isSetGatewayId();
2463
      case TXN_ID:
2464
        return isSetTxnId();
6050 anupam.sin 2465
      case IS_DIGITAL:
2466
        return isSetIsDigital();
123 ashish 2467
      }
2468
      throw new IllegalStateException();
2469
    }
2470
 
2471
    @Override
2472
    public boolean equals(Object that) {
2473
      if (that == null)
2474
        return false;
2475
      if (that instanceof createPayment_args)
2476
        return this.equals((createPayment_args)that);
2477
      return false;
2478
    }
2479
 
2480
    public boolean equals(createPayment_args that) {
2481
      if (that == null)
2482
        return false;
2483
 
695 rajveer 2484
      boolean this_present_userId = true;
2485
      boolean that_present_userId = true;
2486
      if (this_present_userId || that_present_userId) {
2487
        if (!(this_present_userId && that_present_userId))
123 ashish 2488
          return false;
695 rajveer 2489
        if (this.userId != that.userId)
123 ashish 2490
          return false;
2491
      }
2492
 
2493
      boolean this_present_amount = true;
2494
      boolean that_present_amount = true;
2495
      if (this_present_amount || that_present_amount) {
2496
        if (!(this_present_amount && that_present_amount))
2497
          return false;
2498
        if (this.amount != that.amount)
2499
          return false;
2500
      }
2501
 
695 rajveer 2502
      boolean this_present_gatewayId = true;
2503
      boolean that_present_gatewayId = true;
2504
      if (this_present_gatewayId || that_present_gatewayId) {
2505
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 2506
          return false;
695 rajveer 2507
        if (this.gatewayId != that.gatewayId)
123 ashish 2508
          return false;
2509
      }
2510
 
695 rajveer 2511
      boolean this_present_txnId = true;
2512
      boolean that_present_txnId = true;
2513
      if (this_present_txnId || that_present_txnId) {
2514
        if (!(this_present_txnId && that_present_txnId))
2515
          return false;
2516
        if (this.txnId != that.txnId)
2517
          return false;
2518
      }
2519
 
6050 anupam.sin 2520
      boolean this_present_isDigital = true;
2521
      boolean that_present_isDigital = true;
2522
      if (this_present_isDigital || that_present_isDigital) {
2523
        if (!(this_present_isDigital && that_present_isDigital))
2524
          return false;
2525
        if (this.isDigital != that.isDigital)
2526
          return false;
2527
      }
2528
 
123 ashish 2529
      return true;
2530
    }
2531
 
2532
    @Override
2533
    public int hashCode() {
2534
      return 0;
2535
    }
2536
 
2537
    public int compareTo(createPayment_args other) {
2538
      if (!getClass().equals(other.getClass())) {
2539
        return getClass().getName().compareTo(other.getClass().getName());
2540
      }
2541
 
2542
      int lastComparison = 0;
2543
      createPayment_args typedOther = (createPayment_args)other;
2544
 
3430 rajveer 2545
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 2546
      if (lastComparison != 0) {
2547
        return lastComparison;
2548
      }
3430 rajveer 2549
      if (isSetUserId()) {
2550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
2551
        if (lastComparison != 0) {
2552
          return lastComparison;
2553
        }
123 ashish 2554
      }
3430 rajveer 2555
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
123 ashish 2556
      if (lastComparison != 0) {
2557
        return lastComparison;
2558
      }
3430 rajveer 2559
      if (isSetAmount()) {
2560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
2561
        if (lastComparison != 0) {
2562
          return lastComparison;
2563
        }
123 ashish 2564
      }
3430 rajveer 2565
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 2566
      if (lastComparison != 0) {
2567
        return lastComparison;
2568
      }
3430 rajveer 2569
      if (isSetGatewayId()) {
2570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
2571
        if (lastComparison != 0) {
2572
          return lastComparison;
2573
        }
123 ashish 2574
      }
3430 rajveer 2575
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
123 ashish 2576
      if (lastComparison != 0) {
2577
        return lastComparison;
2578
      }
3430 rajveer 2579
      if (isSetTxnId()) {
2580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
2581
        if (lastComparison != 0) {
2582
          return lastComparison;
2583
        }
123 ashish 2584
      }
6050 anupam.sin 2585
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
2586
      if (lastComparison != 0) {
2587
        return lastComparison;
2588
      }
2589
      if (isSetIsDigital()) {
2590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
2591
        if (lastComparison != 0) {
2592
          return lastComparison;
2593
        }
2594
      }
123 ashish 2595
      return 0;
2596
    }
2597
 
3430 rajveer 2598
    public _Fields fieldForId(int fieldId) {
2599
      return _Fields.findByThriftId(fieldId);
2600
    }
2601
 
2602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2603
      org.apache.thrift.protocol.TField field;
123 ashish 2604
      iprot.readStructBegin();
2605
      while (true)
2606
      {
2607
        field = iprot.readFieldBegin();
3430 rajveer 2608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2609
          break;
2610
        }
3430 rajveer 2611
        switch (field.id) {
2612
          case 1: // USER_ID
2613
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2614
              this.userId = iprot.readI64();
2615
              setUserIdIsSet(true);
2616
            } else { 
2617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2618
            }
2619
            break;
2620
          case 2: // AMOUNT
2621
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2622
              this.amount = iprot.readDouble();
2623
              setAmountIsSet(true);
2624
            } else { 
2625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2626
            }
2627
            break;
2628
          case 3: // GATEWAY_ID
2629
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2630
              this.gatewayId = iprot.readI64();
2631
              setGatewayIdIsSet(true);
2632
            } else { 
2633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2634
            }
2635
            break;
2636
          case 4: // TXN_ID
2637
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2638
              this.txnId = iprot.readI64();
2639
              setTxnIdIsSet(true);
2640
            } else { 
2641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642
            }
2643
            break;
6050 anupam.sin 2644
          case 5: // IS_DIGITAL
2645
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2646
              this.isDigital = iprot.readBool();
2647
              setIsDigitalIsSet(true);
2648
            } else { 
2649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2650
            }
2651
            break;
3430 rajveer 2652
          default:
2653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2654
        }
3430 rajveer 2655
        iprot.readFieldEnd();
123 ashish 2656
      }
2657
      iprot.readStructEnd();
2658
      validate();
2659
    }
2660
 
3430 rajveer 2661
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2662
      validate();
2663
 
2664
      oprot.writeStructBegin(STRUCT_DESC);
2665
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
695 rajveer 2666
      oprot.writeI64(this.userId);
123 ashish 2667
      oprot.writeFieldEnd();
2668
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
2669
      oprot.writeDouble(this.amount);
2670
      oprot.writeFieldEnd();
420 ashish 2671
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 2672
      oprot.writeI64(this.gatewayId);
420 ashish 2673
      oprot.writeFieldEnd();
695 rajveer 2674
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
2675
      oprot.writeI64(this.txnId);
2676
      oprot.writeFieldEnd();
6050 anupam.sin 2677
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
2678
      oprot.writeBool(this.isDigital);
2679
      oprot.writeFieldEnd();
123 ashish 2680
      oprot.writeFieldStop();
2681
      oprot.writeStructEnd();
2682
    }
2683
 
2684
    @Override
2685
    public String toString() {
2686
      StringBuilder sb = new StringBuilder("createPayment_args(");
2687
      boolean first = true;
2688
 
695 rajveer 2689
      sb.append("userId:");
2690
      sb.append(this.userId);
123 ashish 2691
      first = false;
2692
      if (!first) sb.append(", ");
2693
      sb.append("amount:");
2694
      sb.append(this.amount);
2695
      first = false;
2696
      if (!first) sb.append(", ");
695 rajveer 2697
      sb.append("gatewayId:");
2698
      sb.append(this.gatewayId);
123 ashish 2699
      first = false;
695 rajveer 2700
      if (!first) sb.append(", ");
2701
      sb.append("txnId:");
2702
      sb.append(this.txnId);
2703
      first = false;
6050 anupam.sin 2704
      if (!first) sb.append(", ");
2705
      sb.append("isDigital:");
2706
      sb.append(this.isDigital);
2707
      first = false;
123 ashish 2708
      sb.append(")");
2709
      return sb.toString();
2710
    }
2711
 
3430 rajveer 2712
    public void validate() throws org.apache.thrift.TException {
123 ashish 2713
      // check for required fields
2714
    }
2715
 
3430 rajveer 2716
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2717
      try {
2718
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2719
      } catch (org.apache.thrift.TException te) {
2720
        throw new java.io.IOException(te);
2721
      }
2722
    }
2723
 
2724
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2725
      try {
2726
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2727
      } catch (org.apache.thrift.TException te) {
2728
        throw new java.io.IOException(te);
2729
      }
2730
    }
2731
 
123 ashish 2732
  }
2733
 
3430 rajveer 2734
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
2735
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
123 ashish 2736
 
3430 rajveer 2737
    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);
2738
    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 2739
 
3430 rajveer 2740
    private long success; // required
2741
    private PaymentException pe; // required
123 ashish 2742
 
2743
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2744
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2745
      SUCCESS((short)0, "success"),
2746
      PE((short)1, "pe");
2747
 
2748
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2749
 
2750
      static {
2751
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2752
          byName.put(field.getFieldName(), field);
2753
        }
2754
      }
2755
 
2756
      /**
2757
       * Find the _Fields constant that matches fieldId, or null if its not found.
2758
       */
2759
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2760
        switch(fieldId) {
2761
          case 0: // SUCCESS
2762
            return SUCCESS;
2763
          case 1: // PE
2764
            return PE;
2765
          default:
2766
            return null;
2767
        }
123 ashish 2768
      }
2769
 
2770
      /**
2771
       * Find the _Fields constant that matches fieldId, throwing an exception
2772
       * if it is not found.
2773
       */
2774
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2775
        _Fields fields = findByThriftId(fieldId);
2776
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2777
        return fields;
2778
      }
2779
 
2780
      /**
2781
       * Find the _Fields constant that matches name, or null if its not found.
2782
       */
2783
      public static _Fields findByName(String name) {
2784
        return byName.get(name);
2785
      }
2786
 
2787
      private final short _thriftId;
2788
      private final String _fieldName;
2789
 
2790
      _Fields(short thriftId, String fieldName) {
2791
        _thriftId = thriftId;
2792
        _fieldName = fieldName;
2793
      }
2794
 
2795
      public short getThriftFieldId() {
2796
        return _thriftId;
2797
      }
2798
 
2799
      public String getFieldName() {
2800
        return _fieldName;
2801
      }
2802
    }
2803
 
2804
    // isset id assignments
420 ashish 2805
    private static final int __SUCCESS_ISSET_ID = 0;
2806
    private BitSet __isset_bit_vector = new BitSet(1);
123 ashish 2807
 
3430 rajveer 2808
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2809
    static {
3430 rajveer 2810
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2811
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2812
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2813
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2814
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2815
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2816
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
123 ashish 2817
    }
2818
 
2819
    public createPayment_result() {
2820
    }
2821
 
2822
    public createPayment_result(
420 ashish 2823
      long success,
123 ashish 2824
      PaymentException pe)
2825
    {
2826
      this();
2827
      this.success = success;
420 ashish 2828
      setSuccessIsSet(true);
123 ashish 2829
      this.pe = pe;
2830
    }
2831
 
2832
    /**
2833
     * Performs a deep copy on <i>other</i>.
2834
     */
2835
    public createPayment_result(createPayment_result other) {
420 ashish 2836
      __isset_bit_vector.clear();
2837
      __isset_bit_vector.or(other.__isset_bit_vector);
2838
      this.success = other.success;
123 ashish 2839
      if (other.isSetPe()) {
2840
        this.pe = new PaymentException(other.pe);
2841
      }
2842
    }
2843
 
2844
    public createPayment_result deepCopy() {
2845
      return new createPayment_result(this);
2846
    }
2847
 
3430 rajveer 2848
    @Override
2849
    public void clear() {
2850
      setSuccessIsSet(false);
2851
      this.success = 0;
2852
      this.pe = null;
123 ashish 2853
    }
2854
 
420 ashish 2855
    public long getSuccess() {
123 ashish 2856
      return this.success;
2857
    }
2858
 
3430 rajveer 2859
    public void setSuccess(long success) {
123 ashish 2860
      this.success = success;
420 ashish 2861
      setSuccessIsSet(true);
123 ashish 2862
    }
2863
 
2864
    public void unsetSuccess() {
420 ashish 2865
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 2866
    }
2867
 
3430 rajveer 2868
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 2869
    public boolean isSetSuccess() {
420 ashish 2870
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 2871
    }
2872
 
2873
    public void setSuccessIsSet(boolean value) {
420 ashish 2874
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
123 ashish 2875
    }
2876
 
2877
    public PaymentException getPe() {
2878
      return this.pe;
2879
    }
2880
 
3430 rajveer 2881
    public void setPe(PaymentException pe) {
123 ashish 2882
      this.pe = pe;
2883
    }
2884
 
2885
    public void unsetPe() {
2886
      this.pe = null;
2887
    }
2888
 
3430 rajveer 2889
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 2890
    public boolean isSetPe() {
2891
      return this.pe != null;
2892
    }
2893
 
2894
    public void setPeIsSet(boolean value) {
2895
      if (!value) {
2896
        this.pe = null;
2897
      }
2898
    }
2899
 
2900
    public void setFieldValue(_Fields field, Object value) {
2901
      switch (field) {
2902
      case SUCCESS:
2903
        if (value == null) {
2904
          unsetSuccess();
2905
        } else {
420 ashish 2906
          setSuccess((Long)value);
123 ashish 2907
        }
2908
        break;
2909
 
2910
      case PE:
2911
        if (value == null) {
2912
          unsetPe();
2913
        } else {
2914
          setPe((PaymentException)value);
2915
        }
2916
        break;
2917
 
2918
      }
2919
    }
2920
 
2921
    public Object getFieldValue(_Fields field) {
2922
      switch (field) {
2923
      case SUCCESS:
3430 rajveer 2924
        return Long.valueOf(getSuccess());
123 ashish 2925
 
2926
      case PE:
2927
        return getPe();
2928
 
2929
      }
2930
      throw new IllegalStateException();
2931
    }
2932
 
3430 rajveer 2933
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2934
    public boolean isSet(_Fields field) {
2935
      if (field == null) {
2936
        throw new IllegalArgumentException();
2937
      }
123 ashish 2938
 
2939
      switch (field) {
2940
      case SUCCESS:
2941
        return isSetSuccess();
2942
      case PE:
2943
        return isSetPe();
2944
      }
2945
      throw new IllegalStateException();
2946
    }
2947
 
2948
    @Override
2949
    public boolean equals(Object that) {
2950
      if (that == null)
2951
        return false;
2952
      if (that instanceof createPayment_result)
2953
        return this.equals((createPayment_result)that);
2954
      return false;
2955
    }
2956
 
2957
    public boolean equals(createPayment_result that) {
2958
      if (that == null)
2959
        return false;
2960
 
420 ashish 2961
      boolean this_present_success = true;
2962
      boolean that_present_success = true;
123 ashish 2963
      if (this_present_success || that_present_success) {
2964
        if (!(this_present_success && that_present_success))
2965
          return false;
420 ashish 2966
        if (this.success != that.success)
123 ashish 2967
          return false;
2968
      }
2969
 
2970
      boolean this_present_pe = true && this.isSetPe();
2971
      boolean that_present_pe = true && that.isSetPe();
2972
      if (this_present_pe || that_present_pe) {
2973
        if (!(this_present_pe && that_present_pe))
2974
          return false;
2975
        if (!this.pe.equals(that.pe))
2976
          return false;
2977
      }
2978
 
2979
      return true;
2980
    }
2981
 
2982
    @Override
2983
    public int hashCode() {
2984
      return 0;
2985
    }
2986
 
420 ashish 2987
    public int compareTo(createPayment_result other) {
2988
      if (!getClass().equals(other.getClass())) {
2989
        return getClass().getName().compareTo(other.getClass().getName());
2990
      }
2991
 
2992
      int lastComparison = 0;
2993
      createPayment_result typedOther = (createPayment_result)other;
2994
 
3430 rajveer 2995
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 2996
      if (lastComparison != 0) {
2997
        return lastComparison;
2998
      }
3430 rajveer 2999
      if (isSetSuccess()) {
3000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3001
        if (lastComparison != 0) {
3002
          return lastComparison;
3003
        }
420 ashish 3004
      }
3430 rajveer 3005
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 3006
      if (lastComparison != 0) {
3007
        return lastComparison;
3008
      }
3430 rajveer 3009
      if (isSetPe()) {
3010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3011
        if (lastComparison != 0) {
3012
          return lastComparison;
3013
        }
420 ashish 3014
      }
3015
      return 0;
3016
    }
3017
 
3430 rajveer 3018
    public _Fields fieldForId(int fieldId) {
3019
      return _Fields.findByThriftId(fieldId);
3020
    }
3021
 
3022
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3023
      org.apache.thrift.protocol.TField field;
123 ashish 3024
      iprot.readStructBegin();
3025
      while (true)
3026
      {
3027
        field = iprot.readFieldBegin();
3430 rajveer 3028
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3029
          break;
3030
        }
3430 rajveer 3031
        switch (field.id) {
3032
          case 0: // SUCCESS
3033
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3034
              this.success = iprot.readI64();
3035
              setSuccessIsSet(true);
3036
            } else { 
3037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3038
            }
3039
            break;
3040
          case 1: // PE
3041
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3042
              this.pe = new PaymentException();
3043
              this.pe.read(iprot);
3044
            } else { 
3045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3046
            }
3047
            break;
3048
          default:
3049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3050
        }
3430 rajveer 3051
        iprot.readFieldEnd();
123 ashish 3052
      }
3053
      iprot.readStructEnd();
3054
      validate();
3055
    }
3056
 
3430 rajveer 3057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3058
      oprot.writeStructBegin(STRUCT_DESC);
3059
 
3060
      if (this.isSetSuccess()) {
3061
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 3062
        oprot.writeI64(this.success);
123 ashish 3063
        oprot.writeFieldEnd();
3064
      } else if (this.isSetPe()) {
3065
        oprot.writeFieldBegin(PE_FIELD_DESC);
3066
        this.pe.write(oprot);
3067
        oprot.writeFieldEnd();
3068
      }
3069
      oprot.writeFieldStop();
3070
      oprot.writeStructEnd();
3071
    }
3072
 
3073
    @Override
3074
    public String toString() {
3075
      StringBuilder sb = new StringBuilder("createPayment_result(");
3076
      boolean first = true;
3077
 
3078
      sb.append("success:");
420 ashish 3079
      sb.append(this.success);
123 ashish 3080
      first = false;
3081
      if (!first) sb.append(", ");
3082
      sb.append("pe:");
3083
      if (this.pe == null) {
3084
        sb.append("null");
3085
      } else {
3086
        sb.append(this.pe);
3087
      }
3088
      first = false;
3089
      sb.append(")");
3090
      return sb.toString();
3091
    }
3092
 
3430 rajveer 3093
    public void validate() throws org.apache.thrift.TException {
123 ashish 3094
      // check for required fields
3095
    }
3096
 
3430 rajveer 3097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3098
      try {
3099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3100
      } catch (org.apache.thrift.TException te) {
3101
        throw new java.io.IOException(te);
3102
      }
3103
    }
3104
 
3105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3106
      try {
3107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3108
      } catch (org.apache.thrift.TException te) {
3109
        throw new java.io.IOException(te);
3110
      }
3111
    }
3112
 
123 ashish 3113
  }
3114
 
3430 rajveer 3115
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
3116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
123 ashish 3117
 
3430 rajveer 3118
    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);
3119
    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);
3120
    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);
3121
    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);
3122
    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 3123
 
3430 rajveer 3124
    private long userId; // required
3125
    private long fromTime; // required
3126
    private long toTime; // required
3127
    private PaymentStatus status; // required
3128
    private long gatewayId; // required
123 ashish 3129
 
3130
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3131
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3132
      USER_ID((short)1, "userId"),
695 rajveer 3133
      FROM_TIME((short)2, "fromTime"),
3134
      TO_TIME((short)3, "toTime"),
123 ashish 3135
      /**
3136
       * 
3137
       * @see PaymentStatus
3138
       */
3139
      STATUS((short)4, "status"),
695 rajveer 3140
      GATEWAY_ID((short)5, "gatewayId");
123 ashish 3141
 
3142
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3143
 
3144
      static {
3145
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3146
          byName.put(field.getFieldName(), field);
3147
        }
3148
      }
3149
 
3150
      /**
3151
       * Find the _Fields constant that matches fieldId, or null if its not found.
3152
       */
3153
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3154
        switch(fieldId) {
3155
          case 1: // USER_ID
3156
            return USER_ID;
3157
          case 2: // FROM_TIME
3158
            return FROM_TIME;
3159
          case 3: // TO_TIME
3160
            return TO_TIME;
3161
          case 4: // STATUS
3162
            return STATUS;
3163
          case 5: // GATEWAY_ID
3164
            return GATEWAY_ID;
3165
          default:
3166
            return null;
3167
        }
123 ashish 3168
      }
3169
 
3170
      /**
3171
       * Find the _Fields constant that matches fieldId, throwing an exception
3172
       * if it is not found.
3173
       */
3174
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3175
        _Fields fields = findByThriftId(fieldId);
3176
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3177
        return fields;
3178
      }
3179
 
3180
      /**
3181
       * Find the _Fields constant that matches name, or null if its not found.
3182
       */
3183
      public static _Fields findByName(String name) {
3184
        return byName.get(name);
3185
      }
3186
 
3187
      private final short _thriftId;
3188
      private final String _fieldName;
3189
 
3190
      _Fields(short thriftId, String fieldName) {
3191
        _thriftId = thriftId;
3192
        _fieldName = fieldName;
3193
      }
3194
 
3195
      public short getThriftFieldId() {
3196
        return _thriftId;
3197
      }
3198
 
3199
      public String getFieldName() {
3200
        return _fieldName;
3201
      }
3202
    }
3203
 
3204
    // isset id assignments
3205
    private static final int __USERID_ISSET_ID = 0;
695 rajveer 3206
    private static final int __FROMTIME_ISSET_ID = 1;
3207
    private static final int __TOTIME_ISSET_ID = 2;
3208
    private static final int __GATEWAYID_ISSET_ID = 3;
420 ashish 3209
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 3210
 
3430 rajveer 3211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3212
    static {
3430 rajveer 3213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3214
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3216
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3218
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3220
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3221
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
3222
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3223
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3224
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3225
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
123 ashish 3226
    }
3227
 
3228
    public getPaymentsForUser_args() {
3229
    }
3230
 
3231
    public getPaymentsForUser_args(
3232
      long userId,
695 rajveer 3233
      long fromTime,
3234
      long toTime,
123 ashish 3235
      PaymentStatus status,
695 rajveer 3236
      long gatewayId)
123 ashish 3237
    {
3238
      this();
3239
      this.userId = userId;
3240
      setUserIdIsSet(true);
695 rajveer 3241
      this.fromTime = fromTime;
3242
      setFromTimeIsSet(true);
3243
      this.toTime = toTime;
3244
      setToTimeIsSet(true);
123 ashish 3245
      this.status = status;
695 rajveer 3246
      this.gatewayId = gatewayId;
3247
      setGatewayIdIsSet(true);
123 ashish 3248
    }
3249
 
3250
    /**
3251
     * Performs a deep copy on <i>other</i>.
3252
     */
3253
    public getPaymentsForUser_args(getPaymentsForUser_args other) {
3254
      __isset_bit_vector.clear();
3255
      __isset_bit_vector.or(other.__isset_bit_vector);
3256
      this.userId = other.userId;
695 rajveer 3257
      this.fromTime = other.fromTime;
3258
      this.toTime = other.toTime;
123 ashish 3259
      if (other.isSetStatus()) {
3260
        this.status = other.status;
3261
      }
695 rajveer 3262
      this.gatewayId = other.gatewayId;
123 ashish 3263
    }
3264
 
3265
    public getPaymentsForUser_args deepCopy() {
3266
      return new getPaymentsForUser_args(this);
3267
    }
3268
 
3430 rajveer 3269
    @Override
3270
    public void clear() {
3271
      setUserIdIsSet(false);
3272
      this.userId = 0;
3273
      setFromTimeIsSet(false);
3274
      this.fromTime = 0;
3275
      setToTimeIsSet(false);
3276
      this.toTime = 0;
3277
      this.status = null;
3278
      setGatewayIdIsSet(false);
3279
      this.gatewayId = 0;
123 ashish 3280
    }
3281
 
3282
    public long getUserId() {
3283
      return this.userId;
3284
    }
3285
 
3430 rajveer 3286
    public void setUserId(long userId) {
123 ashish 3287
      this.userId = userId;
3288
      setUserIdIsSet(true);
3289
    }
3290
 
3291
    public void unsetUserId() {
3292
      __isset_bit_vector.clear(__USERID_ISSET_ID);
3293
    }
3294
 
3430 rajveer 3295
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 3296
    public boolean isSetUserId() {
3297
      return __isset_bit_vector.get(__USERID_ISSET_ID);
3298
    }
3299
 
3300
    public void setUserIdIsSet(boolean value) {
3301
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
3302
    }
3303
 
695 rajveer 3304
    public long getFromTime() {
3305
      return this.fromTime;
123 ashish 3306
    }
3307
 
3430 rajveer 3308
    public void setFromTime(long fromTime) {
695 rajveer 3309
      this.fromTime = fromTime;
3310
      setFromTimeIsSet(true);
123 ashish 3311
    }
3312
 
695 rajveer 3313
    public void unsetFromTime() {
3314
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 3315
    }
3316
 
3430 rajveer 3317
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 3318
    public boolean isSetFromTime() {
3319
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 3320
    }
3321
 
695 rajveer 3322
    public void setFromTimeIsSet(boolean value) {
3323
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 3324
    }
3325
 
695 rajveer 3326
    public long getToTime() {
3327
      return this.toTime;
123 ashish 3328
    }
3329
 
3430 rajveer 3330
    public void setToTime(long toTime) {
695 rajveer 3331
      this.toTime = toTime;
3332
      setToTimeIsSet(true);
123 ashish 3333
    }
3334
 
695 rajveer 3335
    public void unsetToTime() {
3336
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 3337
    }
3338
 
3430 rajveer 3339
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 3340
    public boolean isSetToTime() {
3341
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 3342
    }
3343
 
695 rajveer 3344
    public void setToTimeIsSet(boolean value) {
3345
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 3346
    }
3347
 
3348
    /**
3349
     * 
3350
     * @see PaymentStatus
3351
     */
3352
    public PaymentStatus getStatus() {
3353
      return this.status;
3354
    }
3355
 
3356
    /**
3357
     * 
3358
     * @see PaymentStatus
3359
     */
3430 rajveer 3360
    public void setStatus(PaymentStatus status) {
123 ashish 3361
      this.status = status;
3362
    }
3363
 
3364
    public void unsetStatus() {
3365
      this.status = null;
3366
    }
3367
 
3430 rajveer 3368
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 3369
    public boolean isSetStatus() {
3370
      return this.status != null;
3371
    }
3372
 
3373
    public void setStatusIsSet(boolean value) {
3374
      if (!value) {
3375
        this.status = null;
3376
      }
3377
    }
3378
 
695 rajveer 3379
    public long getGatewayId() {
3380
      return this.gatewayId;
123 ashish 3381
    }
3382
 
3430 rajveer 3383
    public void setGatewayId(long gatewayId) {
695 rajveer 3384
      this.gatewayId = gatewayId;
3385
      setGatewayIdIsSet(true);
123 ashish 3386
    }
3387
 
695 rajveer 3388
    public void unsetGatewayId() {
3389
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 3390
    }
3391
 
3430 rajveer 3392
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 3393
    public boolean isSetGatewayId() {
3394
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 3395
    }
3396
 
695 rajveer 3397
    public void setGatewayIdIsSet(boolean value) {
3398
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 3399
    }
3400
 
3401
    public void setFieldValue(_Fields field, Object value) {
3402
      switch (field) {
3403
      case USER_ID:
3404
        if (value == null) {
3405
          unsetUserId();
3406
        } else {
3407
          setUserId((Long)value);
3408
        }
3409
        break;
3410
 
3411
      case FROM_TIME:
3412
        if (value == null) {
695 rajveer 3413
          unsetFromTime();
123 ashish 3414
        } else {
695 rajveer 3415
          setFromTime((Long)value);
123 ashish 3416
        }
3417
        break;
3418
 
3419
      case TO_TIME:
3420
        if (value == null) {
695 rajveer 3421
          unsetToTime();
123 ashish 3422
        } else {
695 rajveer 3423
          setToTime((Long)value);
123 ashish 3424
        }
3425
        break;
3426
 
3427
      case STATUS:
3428
        if (value == null) {
3429
          unsetStatus();
3430
        } else {
3431
          setStatus((PaymentStatus)value);
3432
        }
3433
        break;
3434
 
420 ashish 3435
      case GATEWAY_ID:
123 ashish 3436
        if (value == null) {
695 rajveer 3437
          unsetGatewayId();
123 ashish 3438
        } else {
695 rajveer 3439
          setGatewayId((Long)value);
123 ashish 3440
        }
3441
        break;
3442
 
3443
      }
3444
    }
3445
 
3446
    public Object getFieldValue(_Fields field) {
3447
      switch (field) {
3448
      case USER_ID:
3430 rajveer 3449
        return Long.valueOf(getUserId());
123 ashish 3450
 
3451
      case FROM_TIME:
3430 rajveer 3452
        return Long.valueOf(getFromTime());
123 ashish 3453
 
3454
      case TO_TIME:
3430 rajveer 3455
        return Long.valueOf(getToTime());
123 ashish 3456
 
3457
      case STATUS:
3458
        return getStatus();
3459
 
420 ashish 3460
      case GATEWAY_ID:
3430 rajveer 3461
        return Long.valueOf(getGatewayId());
123 ashish 3462
 
3463
      }
3464
      throw new IllegalStateException();
3465
    }
3466
 
3430 rajveer 3467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3468
    public boolean isSet(_Fields field) {
3469
      if (field == null) {
3470
        throw new IllegalArgumentException();
3471
      }
123 ashish 3472
 
3473
      switch (field) {
3474
      case USER_ID:
3475
        return isSetUserId();
3476
      case FROM_TIME:
695 rajveer 3477
        return isSetFromTime();
123 ashish 3478
      case TO_TIME:
695 rajveer 3479
        return isSetToTime();
123 ashish 3480
      case STATUS:
3481
        return isSetStatus();
420 ashish 3482
      case GATEWAY_ID:
695 rajveer 3483
        return isSetGatewayId();
123 ashish 3484
      }
3485
      throw new IllegalStateException();
3486
    }
3487
 
3488
    @Override
3489
    public boolean equals(Object that) {
3490
      if (that == null)
3491
        return false;
3492
      if (that instanceof getPaymentsForUser_args)
3493
        return this.equals((getPaymentsForUser_args)that);
3494
      return false;
3495
    }
3496
 
3497
    public boolean equals(getPaymentsForUser_args that) {
3498
      if (that == null)
3499
        return false;
3500
 
3501
      boolean this_present_userId = true;
3502
      boolean that_present_userId = true;
3503
      if (this_present_userId || that_present_userId) {
3504
        if (!(this_present_userId && that_present_userId))
3505
          return false;
3506
        if (this.userId != that.userId)
3507
          return false;
3508
      }
3509
 
695 rajveer 3510
      boolean this_present_fromTime = true;
3511
      boolean that_present_fromTime = true;
3512
      if (this_present_fromTime || that_present_fromTime) {
3513
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 3514
          return false;
695 rajveer 3515
        if (this.fromTime != that.fromTime)
123 ashish 3516
          return false;
3517
      }
3518
 
695 rajveer 3519
      boolean this_present_toTime = true;
3520
      boolean that_present_toTime = true;
3521
      if (this_present_toTime || that_present_toTime) {
3522
        if (!(this_present_toTime && that_present_toTime))
123 ashish 3523
          return false;
695 rajveer 3524
        if (this.toTime != that.toTime)
123 ashish 3525
          return false;
3526
      }
3527
 
3528
      boolean this_present_status = true && this.isSetStatus();
3529
      boolean that_present_status = true && that.isSetStatus();
3530
      if (this_present_status || that_present_status) {
3531
        if (!(this_present_status && that_present_status))
3532
          return false;
3533
        if (!this.status.equals(that.status))
3534
          return false;
3535
      }
3536
 
695 rajveer 3537
      boolean this_present_gatewayId = true;
3538
      boolean that_present_gatewayId = true;
3539
      if (this_present_gatewayId || that_present_gatewayId) {
3540
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 3541
          return false;
695 rajveer 3542
        if (this.gatewayId != that.gatewayId)
123 ashish 3543
          return false;
3544
      }
3545
 
3546
      return true;
3547
    }
3548
 
3549
    @Override
3550
    public int hashCode() {
3551
      return 0;
3552
    }
3553
 
3554
    public int compareTo(getPaymentsForUser_args other) {
3555
      if (!getClass().equals(other.getClass())) {
3556
        return getClass().getName().compareTo(other.getClass().getName());
3557
      }
3558
 
3559
      int lastComparison = 0;
3560
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
3561
 
3430 rajveer 3562
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 3563
      if (lastComparison != 0) {
3564
        return lastComparison;
3565
      }
3430 rajveer 3566
      if (isSetUserId()) {
3567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
3568
        if (lastComparison != 0) {
3569
          return lastComparison;
3570
        }
123 ashish 3571
      }
3430 rajveer 3572
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 3573
      if (lastComparison != 0) {
3574
        return lastComparison;
3575
      }
3430 rajveer 3576
      if (isSetFromTime()) {
3577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
3578
        if (lastComparison != 0) {
3579
          return lastComparison;
3580
        }
123 ashish 3581
      }
3430 rajveer 3582
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 3583
      if (lastComparison != 0) {
3584
        return lastComparison;
3585
      }
3430 rajveer 3586
      if (isSetToTime()) {
3587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
3588
        if (lastComparison != 0) {
3589
          return lastComparison;
3590
        }
123 ashish 3591
      }
3430 rajveer 3592
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 3593
      if (lastComparison != 0) {
3594
        return lastComparison;
3595
      }
3430 rajveer 3596
      if (isSetStatus()) {
3597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3598
        if (lastComparison != 0) {
3599
          return lastComparison;
3600
        }
123 ashish 3601
      }
3430 rajveer 3602
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 3603
      if (lastComparison != 0) {
3604
        return lastComparison;
3605
      }
3430 rajveer 3606
      if (isSetGatewayId()) {
3607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3608
        if (lastComparison != 0) {
3609
          return lastComparison;
3610
        }
123 ashish 3611
      }
3612
      return 0;
3613
    }
3614
 
3430 rajveer 3615
    public _Fields fieldForId(int fieldId) {
3616
      return _Fields.findByThriftId(fieldId);
3617
    }
3618
 
3619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3620
      org.apache.thrift.protocol.TField field;
123 ashish 3621
      iprot.readStructBegin();
3622
      while (true)
3623
      {
3624
        field = iprot.readFieldBegin();
3430 rajveer 3625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3626
          break;
3627
        }
3430 rajveer 3628
        switch (field.id) {
3629
          case 1: // USER_ID
3630
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3631
              this.userId = iprot.readI64();
3632
              setUserIdIsSet(true);
3633
            } else { 
3634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3635
            }
3636
            break;
3637
          case 2: // FROM_TIME
3638
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3639
              this.fromTime = iprot.readI64();
3640
              setFromTimeIsSet(true);
3641
            } else { 
3642
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3643
            }
3644
            break;
3645
          case 3: // TO_TIME
3646
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3647
              this.toTime = iprot.readI64();
3648
              setToTimeIsSet(true);
3649
            } else { 
3650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3651
            }
3652
            break;
3653
          case 4: // STATUS
3654
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3655
              this.status = PaymentStatus.findByValue(iprot.readI32());
3656
            } else { 
3657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3658
            }
3659
            break;
3660
          case 5: // GATEWAY_ID
3661
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3662
              this.gatewayId = iprot.readI64();
3663
              setGatewayIdIsSet(true);
3664
            } else { 
3665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3666
            }
3667
            break;
3668
          default:
3669
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3670
        }
3430 rajveer 3671
        iprot.readFieldEnd();
123 ashish 3672
      }
3673
      iprot.readStructEnd();
3674
      validate();
3675
    }
3676
 
3430 rajveer 3677
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3678
      validate();
3679
 
3680
      oprot.writeStructBegin(STRUCT_DESC);
3681
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3682
      oprot.writeI64(this.userId);
3683
      oprot.writeFieldEnd();
3684
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 3685
      oprot.writeI64(this.fromTime);
123 ashish 3686
      oprot.writeFieldEnd();
3687
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 3688
      oprot.writeI64(this.toTime);
123 ashish 3689
      oprot.writeFieldEnd();
3690
      if (this.status != null) {
3691
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3692
        oprot.writeI32(this.status.getValue());
3693
        oprot.writeFieldEnd();
3694
      }
420 ashish 3695
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 3696
      oprot.writeI64(this.gatewayId);
420 ashish 3697
      oprot.writeFieldEnd();
123 ashish 3698
      oprot.writeFieldStop();
3699
      oprot.writeStructEnd();
3700
    }
3701
 
3702
    @Override
3703
    public String toString() {
3704
      StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
3705
      boolean first = true;
3706
 
3707
      sb.append("userId:");
3708
      sb.append(this.userId);
3709
      first = false;
3710
      if (!first) sb.append(", ");
695 rajveer 3711
      sb.append("fromTime:");
3712
      sb.append(this.fromTime);
123 ashish 3713
      first = false;
3714
      if (!first) sb.append(", ");
695 rajveer 3715
      sb.append("toTime:");
3716
      sb.append(this.toTime);
123 ashish 3717
      first = false;
3718
      if (!first) sb.append(", ");
3719
      sb.append("status:");
3720
      if (this.status == null) {
3721
        sb.append("null");
3722
      } else {
3723
        sb.append(this.status);
3724
      }
3725
      first = false;
3726
      if (!first) sb.append(", ");
695 rajveer 3727
      sb.append("gatewayId:");
3728
      sb.append(this.gatewayId);
123 ashish 3729
      first = false;
3730
      sb.append(")");
3731
      return sb.toString();
3732
    }
3733
 
3430 rajveer 3734
    public void validate() throws org.apache.thrift.TException {
123 ashish 3735
      // check for required fields
3736
    }
3737
 
3430 rajveer 3738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3739
      try {
3740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3741
      } catch (org.apache.thrift.TException te) {
3742
        throw new java.io.IOException(te);
3743
      }
3744
    }
3745
 
3746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3747
      try {
3748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3749
      } catch (org.apache.thrift.TException te) {
3750
        throw new java.io.IOException(te);
3751
      }
3752
    }
3753
 
123 ashish 3754
  }
3755
 
3430 rajveer 3756
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
3757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
123 ashish 3758
 
3430 rajveer 3759
    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);
3760
    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 3761
 
3430 rajveer 3762
    private List<Payment> success; // required
3763
    private PaymentException pe; // required
123 ashish 3764
 
3765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3767
      SUCCESS((short)0, "success"),
3768
      PE((short)1, "pe");
3769
 
3770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3771
 
3772
      static {
3773
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3774
          byName.put(field.getFieldName(), field);
3775
        }
3776
      }
3777
 
3778
      /**
3779
       * Find the _Fields constant that matches fieldId, or null if its not found.
3780
       */
3781
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3782
        switch(fieldId) {
3783
          case 0: // SUCCESS
3784
            return SUCCESS;
3785
          case 1: // PE
3786
            return PE;
3787
          default:
3788
            return null;
3789
        }
123 ashish 3790
      }
3791
 
3792
      /**
3793
       * Find the _Fields constant that matches fieldId, throwing an exception
3794
       * if it is not found.
3795
       */
3796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3797
        _Fields fields = findByThriftId(fieldId);
3798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3799
        return fields;
3800
      }
3801
 
3802
      /**
3803
       * Find the _Fields constant that matches name, or null if its not found.
3804
       */
3805
      public static _Fields findByName(String name) {
3806
        return byName.get(name);
3807
      }
3808
 
3809
      private final short _thriftId;
3810
      private final String _fieldName;
3811
 
3812
      _Fields(short thriftId, String fieldName) {
3813
        _thriftId = thriftId;
3814
        _fieldName = fieldName;
3815
      }
3816
 
3817
      public short getThriftFieldId() {
3818
        return _thriftId;
3819
      }
3820
 
3821
      public String getFieldName() {
3822
        return _fieldName;
3823
      }
3824
    }
3825
 
3826
    // isset id assignments
3827
 
3430 rajveer 3828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3829
    static {
3430 rajveer 3830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3831
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3832
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3833
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
3834
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3835
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3836
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3837
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
123 ashish 3838
    }
3839
 
3840
    public getPaymentsForUser_result() {
3841
    }
3842
 
3843
    public getPaymentsForUser_result(
3844
      List<Payment> success,
3845
      PaymentException pe)
3846
    {
3847
      this();
3848
      this.success = success;
3849
      this.pe = pe;
3850
    }
3851
 
3852
    /**
3853
     * Performs a deep copy on <i>other</i>.
3854
     */
3855
    public getPaymentsForUser_result(getPaymentsForUser_result other) {
3856
      if (other.isSetSuccess()) {
3857
        List<Payment> __this__success = new ArrayList<Payment>();
3858
        for (Payment other_element : other.success) {
3859
          __this__success.add(new Payment(other_element));
3860
        }
3861
        this.success = __this__success;
3862
      }
3863
      if (other.isSetPe()) {
3864
        this.pe = new PaymentException(other.pe);
3865
      }
3866
    }
3867
 
3868
    public getPaymentsForUser_result deepCopy() {
3869
      return new getPaymentsForUser_result(this);
3870
    }
3871
 
3430 rajveer 3872
    @Override
3873
    public void clear() {
3874
      this.success = null;
3875
      this.pe = null;
123 ashish 3876
    }
3877
 
3878
    public int getSuccessSize() {
3879
      return (this.success == null) ? 0 : this.success.size();
3880
    }
3881
 
3882
    public java.util.Iterator<Payment> getSuccessIterator() {
3883
      return (this.success == null) ? null : this.success.iterator();
3884
    }
3885
 
3886
    public void addToSuccess(Payment elem) {
3887
      if (this.success == null) {
3888
        this.success = new ArrayList<Payment>();
3889
      }
3890
      this.success.add(elem);
3891
    }
3892
 
3893
    public List<Payment> getSuccess() {
3894
      return this.success;
3895
    }
3896
 
3430 rajveer 3897
    public void setSuccess(List<Payment> success) {
123 ashish 3898
      this.success = success;
3899
    }
3900
 
3901
    public void unsetSuccess() {
3902
      this.success = null;
3903
    }
3904
 
3430 rajveer 3905
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 3906
    public boolean isSetSuccess() {
3907
      return this.success != null;
3908
    }
3909
 
3910
    public void setSuccessIsSet(boolean value) {
3911
      if (!value) {
3912
        this.success = null;
3913
      }
3914
    }
3915
 
3916
    public PaymentException getPe() {
3917
      return this.pe;
3918
    }
3919
 
3430 rajveer 3920
    public void setPe(PaymentException pe) {
123 ashish 3921
      this.pe = pe;
3922
    }
3923
 
3924
    public void unsetPe() {
3925
      this.pe = null;
3926
    }
3927
 
3430 rajveer 3928
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 3929
    public boolean isSetPe() {
3930
      return this.pe != null;
3931
    }
3932
 
3933
    public void setPeIsSet(boolean value) {
3934
      if (!value) {
3935
        this.pe = null;
3936
      }
3937
    }
3938
 
3939
    public void setFieldValue(_Fields field, Object value) {
3940
      switch (field) {
3941
      case SUCCESS:
3942
        if (value == null) {
3943
          unsetSuccess();
3944
        } else {
3945
          setSuccess((List<Payment>)value);
3946
        }
3947
        break;
3948
 
3949
      case PE:
3950
        if (value == null) {
3951
          unsetPe();
3952
        } else {
3953
          setPe((PaymentException)value);
3954
        }
3955
        break;
3956
 
3957
      }
3958
    }
3959
 
3960
    public Object getFieldValue(_Fields field) {
3961
      switch (field) {
3962
      case SUCCESS:
3963
        return getSuccess();
3964
 
3965
      case PE:
3966
        return getPe();
3967
 
3968
      }
3969
      throw new IllegalStateException();
3970
    }
3971
 
3430 rajveer 3972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3973
    public boolean isSet(_Fields field) {
3974
      if (field == null) {
3975
        throw new IllegalArgumentException();
3976
      }
123 ashish 3977
 
3978
      switch (field) {
3979
      case SUCCESS:
3980
        return isSetSuccess();
3981
      case PE:
3982
        return isSetPe();
3983
      }
3984
      throw new IllegalStateException();
3985
    }
3986
 
3987
    @Override
3988
    public boolean equals(Object that) {
3989
      if (that == null)
3990
        return false;
3991
      if (that instanceof getPaymentsForUser_result)
3992
        return this.equals((getPaymentsForUser_result)that);
3993
      return false;
3994
    }
3995
 
3996
    public boolean equals(getPaymentsForUser_result that) {
3997
      if (that == null)
3998
        return false;
3999
 
4000
      boolean this_present_success = true && this.isSetSuccess();
4001
      boolean that_present_success = true && that.isSetSuccess();
4002
      if (this_present_success || that_present_success) {
4003
        if (!(this_present_success && that_present_success))
4004
          return false;
4005
        if (!this.success.equals(that.success))
4006
          return false;
4007
      }
4008
 
4009
      boolean this_present_pe = true && this.isSetPe();
4010
      boolean that_present_pe = true && that.isSetPe();
4011
      if (this_present_pe || that_present_pe) {
4012
        if (!(this_present_pe && that_present_pe))
4013
          return false;
4014
        if (!this.pe.equals(that.pe))
4015
          return false;
4016
      }
4017
 
4018
      return true;
4019
    }
4020
 
4021
    @Override
4022
    public int hashCode() {
4023
      return 0;
4024
    }
4025
 
695 rajveer 4026
    public int compareTo(getPaymentsForUser_result other) {
123 ashish 4027
      if (!getClass().equals(other.getClass())) {
4028
        return getClass().getName().compareTo(other.getClass().getName());
4029
      }
4030
 
4031
      int lastComparison = 0;
695 rajveer 4032
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
123 ashish 4033
 
3430 rajveer 4034
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 4035
      if (lastComparison != 0) {
4036
        return lastComparison;
4037
      }
3430 rajveer 4038
      if (isSetSuccess()) {
4039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4040
        if (lastComparison != 0) {
4041
          return lastComparison;
4042
        }
123 ashish 4043
      }
3430 rajveer 4044
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
123 ashish 4045
      if (lastComparison != 0) {
4046
        return lastComparison;
4047
      }
3430 rajveer 4048
      if (isSetPe()) {
4049
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4050
        if (lastComparison != 0) {
4051
          return lastComparison;
4052
        }
123 ashish 4053
      }
4054
      return 0;
4055
    }
4056
 
3430 rajveer 4057
    public _Fields fieldForId(int fieldId) {
4058
      return _Fields.findByThriftId(fieldId);
4059
    }
4060
 
4061
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4062
      org.apache.thrift.protocol.TField field;
123 ashish 4063
      iprot.readStructBegin();
4064
      while (true)
4065
      {
4066
        field = iprot.readFieldBegin();
3430 rajveer 4067
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4068
          break;
4069
        }
3430 rajveer 4070
        switch (field.id) {
4071
          case 0: // SUCCESS
4072
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4073
              {
4074
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
4075
                this.success = new ArrayList<Payment>(_list12.size);
4076
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
123 ashish 4077
                {
3430 rajveer 4078
                  Payment _elem14; // required
4079
                  _elem14 = new Payment();
4080
                  _elem14.read(iprot);
4081
                  this.success.add(_elem14);
123 ashish 4082
                }
3430 rajveer 4083
                iprot.readListEnd();
123 ashish 4084
              }
3430 rajveer 4085
            } else { 
4086
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4087
            }
4088
            break;
4089
          case 1: // PE
4090
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4091
              this.pe = new PaymentException();
4092
              this.pe.read(iprot);
4093
            } else { 
4094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4095
            }
4096
            break;
4097
          default:
4098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4099
        }
3430 rajveer 4100
        iprot.readFieldEnd();
123 ashish 4101
      }
4102
      iprot.readStructEnd();
4103
      validate();
4104
    }
4105
 
3430 rajveer 4106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4107
      oprot.writeStructBegin(STRUCT_DESC);
4108
 
4109
      if (this.isSetSuccess()) {
4110
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4111
        {
3430 rajveer 4112
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 4113
          for (Payment _iter15 : this.success)
123 ashish 4114
          {
2747 chandransh 4115
            _iter15.write(oprot);
123 ashish 4116
          }
4117
          oprot.writeListEnd();
4118
        }
4119
        oprot.writeFieldEnd();
4120
      } else if (this.isSetPe()) {
4121
        oprot.writeFieldBegin(PE_FIELD_DESC);
4122
        this.pe.write(oprot);
4123
        oprot.writeFieldEnd();
4124
      }
4125
      oprot.writeFieldStop();
4126
      oprot.writeStructEnd();
4127
    }
4128
 
4129
    @Override
4130
    public String toString() {
695 rajveer 4131
      StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
123 ashish 4132
      boolean first = true;
4133
 
4134
      sb.append("success:");
4135
      if (this.success == null) {
4136
        sb.append("null");
4137
      } else {
4138
        sb.append(this.success);
4139
      }
4140
      first = false;
4141
      if (!first) sb.append(", ");
4142
      sb.append("pe:");
4143
      if (this.pe == null) {
4144
        sb.append("null");
4145
      } else {
4146
        sb.append(this.pe);
4147
      }
4148
      first = false;
4149
      sb.append(")");
4150
      return sb.toString();
4151
    }
4152
 
3430 rajveer 4153
    public void validate() throws org.apache.thrift.TException {
123 ashish 4154
      // check for required fields
4155
    }
4156
 
3430 rajveer 4157
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4158
      try {
4159
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4160
      } catch (org.apache.thrift.TException te) {
4161
        throw new java.io.IOException(te);
4162
      }
4163
    }
4164
 
4165
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4166
      try {
4167
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4168
      } catch (org.apache.thrift.TException te) {
4169
        throw new java.io.IOException(te);
4170
      }
4171
    }
4172
 
123 ashish 4173
  }
4174
 
3430 rajveer 4175
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
4176
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
123 ashish 4177
 
3430 rajveer 4178
    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);
4179
    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);
4180
    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);
4181
    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 4182
 
3430 rajveer 4183
    private long fromTime; // required
4184
    private long toTime; // required
4185
    private PaymentStatus status; // required
4186
    private long gatewayId; // required
123 ashish 4187
 
4188
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4189
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 4190
      FROM_TIME((short)1, "fromTime"),
4191
      TO_TIME((short)2, "toTime"),
123 ashish 4192
      /**
4193
       * 
4194
       * @see PaymentStatus
4195
       */
4196
      STATUS((short)3, "status"),
695 rajveer 4197
      GATEWAY_ID((short)4, "gatewayId");
123 ashish 4198
 
4199
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4200
 
4201
      static {
4202
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4203
          byName.put(field.getFieldName(), field);
4204
        }
4205
      }
4206
 
4207
      /**
4208
       * Find the _Fields constant that matches fieldId, or null if its not found.
4209
       */
4210
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4211
        switch(fieldId) {
4212
          case 1: // FROM_TIME
4213
            return FROM_TIME;
4214
          case 2: // TO_TIME
4215
            return TO_TIME;
4216
          case 3: // STATUS
4217
            return STATUS;
4218
          case 4: // GATEWAY_ID
4219
            return GATEWAY_ID;
4220
          default:
4221
            return null;
4222
        }
123 ashish 4223
      }
4224
 
4225
      /**
4226
       * Find the _Fields constant that matches fieldId, throwing an exception
4227
       * if it is not found.
4228
       */
4229
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4230
        _Fields fields = findByThriftId(fieldId);
4231
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4232
        return fields;
4233
      }
4234
 
4235
      /**
4236
       * Find the _Fields constant that matches name, or null if its not found.
4237
       */
4238
      public static _Fields findByName(String name) {
4239
        return byName.get(name);
4240
      }
4241
 
4242
      private final short _thriftId;
4243
      private final String _fieldName;
4244
 
4245
      _Fields(short thriftId, String fieldName) {
4246
        _thriftId = thriftId;
4247
        _fieldName = fieldName;
4248
      }
4249
 
4250
      public short getThriftFieldId() {
4251
        return _thriftId;
4252
      }
4253
 
4254
      public String getFieldName() {
4255
        return _fieldName;
4256
      }
4257
    }
4258
 
4259
    // isset id assignments
695 rajveer 4260
    private static final int __FROMTIME_ISSET_ID = 0;
4261
    private static final int __TOTIME_ISSET_ID = 1;
4262
    private static final int __GATEWAYID_ISSET_ID = 2;
420 ashish 4263
    private BitSet __isset_bit_vector = new BitSet(3);
123 ashish 4264
 
3430 rajveer 4265
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4266
    static {
3430 rajveer 4267
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4268
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4269
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4270
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4272
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4273
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
4274
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
123 ashish 4278
    }
4279
 
4280
    public getPayments_args() {
4281
    }
4282
 
4283
    public getPayments_args(
695 rajveer 4284
      long fromTime,
4285
      long toTime,
123 ashish 4286
      PaymentStatus status,
695 rajveer 4287
      long gatewayId)
123 ashish 4288
    {
4289
      this();
695 rajveer 4290
      this.fromTime = fromTime;
4291
      setFromTimeIsSet(true);
4292
      this.toTime = toTime;
4293
      setToTimeIsSet(true);
123 ashish 4294
      this.status = status;
695 rajveer 4295
      this.gatewayId = gatewayId;
4296
      setGatewayIdIsSet(true);
123 ashish 4297
    }
4298
 
4299
    /**
4300
     * Performs a deep copy on <i>other</i>.
4301
     */
4302
    public getPayments_args(getPayments_args other) {
4303
      __isset_bit_vector.clear();
4304
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 4305
      this.fromTime = other.fromTime;
4306
      this.toTime = other.toTime;
123 ashish 4307
      if (other.isSetStatus()) {
4308
        this.status = other.status;
4309
      }
695 rajveer 4310
      this.gatewayId = other.gatewayId;
123 ashish 4311
    }
4312
 
4313
    public getPayments_args deepCopy() {
4314
      return new getPayments_args(this);
4315
    }
4316
 
3430 rajveer 4317
    @Override
4318
    public void clear() {
4319
      setFromTimeIsSet(false);
4320
      this.fromTime = 0;
4321
      setToTimeIsSet(false);
4322
      this.toTime = 0;
4323
      this.status = null;
4324
      setGatewayIdIsSet(false);
4325
      this.gatewayId = 0;
123 ashish 4326
    }
4327
 
695 rajveer 4328
    public long getFromTime() {
4329
      return this.fromTime;
123 ashish 4330
    }
4331
 
3430 rajveer 4332
    public void setFromTime(long fromTime) {
695 rajveer 4333
      this.fromTime = fromTime;
4334
      setFromTimeIsSet(true);
123 ashish 4335
    }
4336
 
695 rajveer 4337
    public void unsetFromTime() {
4338
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 4339
    }
4340
 
3430 rajveer 4341
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 4342
    public boolean isSetFromTime() {
4343
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 4344
    }
4345
 
695 rajveer 4346
    public void setFromTimeIsSet(boolean value) {
4347
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 4348
    }
4349
 
695 rajveer 4350
    public long getToTime() {
4351
      return this.toTime;
123 ashish 4352
    }
4353
 
3430 rajveer 4354
    public void setToTime(long toTime) {
695 rajveer 4355
      this.toTime = toTime;
4356
      setToTimeIsSet(true);
123 ashish 4357
    }
4358
 
695 rajveer 4359
    public void unsetToTime() {
4360
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 4361
    }
4362
 
3430 rajveer 4363
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 4364
    public boolean isSetToTime() {
4365
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 4366
    }
4367
 
695 rajveer 4368
    public void setToTimeIsSet(boolean value) {
4369
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 4370
    }
4371
 
4372
    /**
4373
     * 
4374
     * @see PaymentStatus
4375
     */
4376
    public PaymentStatus getStatus() {
4377
      return this.status;
4378
    }
4379
 
4380
    /**
4381
     * 
4382
     * @see PaymentStatus
4383
     */
3430 rajveer 4384
    public void setStatus(PaymentStatus status) {
123 ashish 4385
      this.status = status;
4386
    }
4387
 
4388
    public void unsetStatus() {
4389
      this.status = null;
4390
    }
4391
 
3430 rajveer 4392
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 4393
    public boolean isSetStatus() {
4394
      return this.status != null;
4395
    }
4396
 
4397
    public void setStatusIsSet(boolean value) {
4398
      if (!value) {
4399
        this.status = null;
4400
      }
4401
    }
4402
 
695 rajveer 4403
    public long getGatewayId() {
4404
      return this.gatewayId;
123 ashish 4405
    }
4406
 
3430 rajveer 4407
    public void setGatewayId(long gatewayId) {
695 rajveer 4408
      this.gatewayId = gatewayId;
4409
      setGatewayIdIsSet(true);
123 ashish 4410
    }
4411
 
695 rajveer 4412
    public void unsetGatewayId() {
4413
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 4414
    }
4415
 
3430 rajveer 4416
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 4417
    public boolean isSetGatewayId() {
4418
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 4419
    }
4420
 
695 rajveer 4421
    public void setGatewayIdIsSet(boolean value) {
4422
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 4423
    }
4424
 
4425
    public void setFieldValue(_Fields field, Object value) {
4426
      switch (field) {
4427
      case FROM_TIME:
4428
        if (value == null) {
695 rajveer 4429
          unsetFromTime();
123 ashish 4430
        } else {
695 rajveer 4431
          setFromTime((Long)value);
123 ashish 4432
        }
4433
        break;
4434
 
4435
      case TO_TIME:
4436
        if (value == null) {
695 rajveer 4437
          unsetToTime();
123 ashish 4438
        } else {
695 rajveer 4439
          setToTime((Long)value);
123 ashish 4440
        }
4441
        break;
4442
 
4443
      case STATUS:
4444
        if (value == null) {
4445
          unsetStatus();
4446
        } else {
4447
          setStatus((PaymentStatus)value);
4448
        }
4449
        break;
4450
 
420 ashish 4451
      case GATEWAY_ID:
123 ashish 4452
        if (value == null) {
695 rajveer 4453
          unsetGatewayId();
123 ashish 4454
        } else {
695 rajveer 4455
          setGatewayId((Long)value);
123 ashish 4456
        }
4457
        break;
4458
 
4459
      }
4460
    }
4461
 
4462
    public Object getFieldValue(_Fields field) {
4463
      switch (field) {
4464
      case FROM_TIME:
3430 rajveer 4465
        return Long.valueOf(getFromTime());
123 ashish 4466
 
4467
      case TO_TIME:
3430 rajveer 4468
        return Long.valueOf(getToTime());
123 ashish 4469
 
4470
      case STATUS:
4471
        return getStatus();
4472
 
420 ashish 4473
      case GATEWAY_ID:
3430 rajveer 4474
        return Long.valueOf(getGatewayId());
123 ashish 4475
 
4476
      }
4477
      throw new IllegalStateException();
4478
    }
4479
 
3430 rajveer 4480
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4481
    public boolean isSet(_Fields field) {
4482
      if (field == null) {
4483
        throw new IllegalArgumentException();
4484
      }
123 ashish 4485
 
4486
      switch (field) {
4487
      case FROM_TIME:
695 rajveer 4488
        return isSetFromTime();
123 ashish 4489
      case TO_TIME:
695 rajveer 4490
        return isSetToTime();
123 ashish 4491
      case STATUS:
4492
        return isSetStatus();
420 ashish 4493
      case GATEWAY_ID:
695 rajveer 4494
        return isSetGatewayId();
123 ashish 4495
      }
4496
      throw new IllegalStateException();
4497
    }
4498
 
4499
    @Override
4500
    public boolean equals(Object that) {
4501
      if (that == null)
4502
        return false;
4503
      if (that instanceof getPayments_args)
4504
        return this.equals((getPayments_args)that);
4505
      return false;
4506
    }
4507
 
4508
    public boolean equals(getPayments_args that) {
4509
      if (that == null)
4510
        return false;
4511
 
695 rajveer 4512
      boolean this_present_fromTime = true;
4513
      boolean that_present_fromTime = true;
4514
      if (this_present_fromTime || that_present_fromTime) {
4515
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 4516
          return false;
695 rajveer 4517
        if (this.fromTime != that.fromTime)
123 ashish 4518
          return false;
4519
      }
4520
 
695 rajveer 4521
      boolean this_present_toTime = true;
4522
      boolean that_present_toTime = true;
4523
      if (this_present_toTime || that_present_toTime) {
4524
        if (!(this_present_toTime && that_present_toTime))
123 ashish 4525
          return false;
695 rajveer 4526
        if (this.toTime != that.toTime)
123 ashish 4527
          return false;
4528
      }
4529
 
4530
      boolean this_present_status = true && this.isSetStatus();
4531
      boolean that_present_status = true && that.isSetStatus();
4532
      if (this_present_status || that_present_status) {
4533
        if (!(this_present_status && that_present_status))
4534
          return false;
4535
        if (!this.status.equals(that.status))
4536
          return false;
4537
      }
4538
 
695 rajveer 4539
      boolean this_present_gatewayId = true;
4540
      boolean that_present_gatewayId = true;
4541
      if (this_present_gatewayId || that_present_gatewayId) {
4542
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 4543
          return false;
695 rajveer 4544
        if (this.gatewayId != that.gatewayId)
123 ashish 4545
          return false;
4546
      }
4547
 
4548
      return true;
4549
    }
4550
 
4551
    @Override
4552
    public int hashCode() {
4553
      return 0;
4554
    }
4555
 
4556
    public int compareTo(getPayments_args other) {
4557
      if (!getClass().equals(other.getClass())) {
4558
        return getClass().getName().compareTo(other.getClass().getName());
4559
      }
4560
 
4561
      int lastComparison = 0;
4562
      getPayments_args typedOther = (getPayments_args)other;
4563
 
3430 rajveer 4564
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 4565
      if (lastComparison != 0) {
4566
        return lastComparison;
4567
      }
3430 rajveer 4568
      if (isSetFromTime()) {
4569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
4570
        if (lastComparison != 0) {
4571
          return lastComparison;
4572
        }
123 ashish 4573
      }
3430 rajveer 4574
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 4575
      if (lastComparison != 0) {
4576
        return lastComparison;
4577
      }
3430 rajveer 4578
      if (isSetToTime()) {
4579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
4580
        if (lastComparison != 0) {
4581
          return lastComparison;
4582
        }
123 ashish 4583
      }
3430 rajveer 4584
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 4585
      if (lastComparison != 0) {
4586
        return lastComparison;
4587
      }
3430 rajveer 4588
      if (isSetStatus()) {
4589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
4590
        if (lastComparison != 0) {
4591
          return lastComparison;
4592
        }
123 ashish 4593
      }
3430 rajveer 4594
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 4595
      if (lastComparison != 0) {
4596
        return lastComparison;
4597
      }
3430 rajveer 4598
      if (isSetGatewayId()) {
4599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
4600
        if (lastComparison != 0) {
4601
          return lastComparison;
4602
        }
123 ashish 4603
      }
4604
      return 0;
4605
    }
4606
 
3430 rajveer 4607
    public _Fields fieldForId(int fieldId) {
4608
      return _Fields.findByThriftId(fieldId);
4609
    }
4610
 
4611
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4612
      org.apache.thrift.protocol.TField field;
123 ashish 4613
      iprot.readStructBegin();
4614
      while (true)
4615
      {
4616
        field = iprot.readFieldBegin();
3430 rajveer 4617
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4618
          break;
4619
        }
3430 rajveer 4620
        switch (field.id) {
4621
          case 1: // FROM_TIME
4622
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4623
              this.fromTime = iprot.readI64();
4624
              setFromTimeIsSet(true);
4625
            } else { 
4626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4627
            }
4628
            break;
4629
          case 2: // TO_TIME
4630
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4631
              this.toTime = iprot.readI64();
4632
              setToTimeIsSet(true);
4633
            } else { 
4634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4635
            }
4636
            break;
4637
          case 3: // STATUS
4638
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4639
              this.status = PaymentStatus.findByValue(iprot.readI32());
4640
            } else { 
4641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4642
            }
4643
            break;
4644
          case 4: // GATEWAY_ID
4645
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4646
              this.gatewayId = iprot.readI64();
4647
              setGatewayIdIsSet(true);
4648
            } else { 
4649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4650
            }
4651
            break;
4652
          default:
4653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4654
        }
3430 rajveer 4655
        iprot.readFieldEnd();
123 ashish 4656
      }
4657
      iprot.readStructEnd();
4658
      validate();
4659
    }
4660
 
3430 rajveer 4661
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4662
      validate();
4663
 
4664
      oprot.writeStructBegin(STRUCT_DESC);
4665
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 4666
      oprot.writeI64(this.fromTime);
123 ashish 4667
      oprot.writeFieldEnd();
4668
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 4669
      oprot.writeI64(this.toTime);
123 ashish 4670
      oprot.writeFieldEnd();
4671
      if (this.status != null) {
4672
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4673
        oprot.writeI32(this.status.getValue());
4674
        oprot.writeFieldEnd();
4675
      }
420 ashish 4676
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 4677
      oprot.writeI64(this.gatewayId);
420 ashish 4678
      oprot.writeFieldEnd();
123 ashish 4679
      oprot.writeFieldStop();
4680
      oprot.writeStructEnd();
4681
    }
4682
 
4683
    @Override
4684
    public String toString() {
4685
      StringBuilder sb = new StringBuilder("getPayments_args(");
4686
      boolean first = true;
4687
 
695 rajveer 4688
      sb.append("fromTime:");
4689
      sb.append(this.fromTime);
123 ashish 4690
      first = false;
4691
      if (!first) sb.append(", ");
695 rajveer 4692
      sb.append("toTime:");
4693
      sb.append(this.toTime);
123 ashish 4694
      first = false;
4695
      if (!first) sb.append(", ");
4696
      sb.append("status:");
4697
      if (this.status == null) {
4698
        sb.append("null");
4699
      } else {
4700
        sb.append(this.status);
4701
      }
4702
      first = false;
4703
      if (!first) sb.append(", ");
695 rajveer 4704
      sb.append("gatewayId:");
4705
      sb.append(this.gatewayId);
123 ashish 4706
      first = false;
4707
      sb.append(")");
4708
      return sb.toString();
4709
    }
4710
 
3430 rajveer 4711
    public void validate() throws org.apache.thrift.TException {
123 ashish 4712
      // check for required fields
4713
    }
4714
 
3430 rajveer 4715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4716
      try {
4717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4718
      } catch (org.apache.thrift.TException te) {
4719
        throw new java.io.IOException(te);
4720
      }
4721
    }
4722
 
4723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4724
      try {
4725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4726
      } catch (org.apache.thrift.TException te) {
4727
        throw new java.io.IOException(te);
4728
      }
4729
    }
4730
 
123 ashish 4731
  }
4732
 
3430 rajveer 4733
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
4734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
123 ashish 4735
 
3430 rajveer 4736
    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);
4737
    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 4738
 
3430 rajveer 4739
    private List<Payment> success; // required
4740
    private PaymentException pe; // required
123 ashish 4741
 
4742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 4744
      SUCCESS((short)0, "success"),
4745
      PE((short)1, "pe");
4746
 
4747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4748
 
4749
      static {
4750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4751
          byName.put(field.getFieldName(), field);
4752
        }
4753
      }
4754
 
4755
      /**
4756
       * Find the _Fields constant that matches fieldId, or null if its not found.
4757
       */
4758
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4759
        switch(fieldId) {
4760
          case 0: // SUCCESS
4761
            return SUCCESS;
4762
          case 1: // PE
4763
            return PE;
4764
          default:
4765
            return null;
4766
        }
123 ashish 4767
      }
4768
 
4769
      /**
4770
       * Find the _Fields constant that matches fieldId, throwing an exception
4771
       * if it is not found.
4772
       */
4773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4774
        _Fields fields = findByThriftId(fieldId);
4775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4776
        return fields;
4777
      }
4778
 
4779
      /**
4780
       * Find the _Fields constant that matches name, or null if its not found.
4781
       */
4782
      public static _Fields findByName(String name) {
4783
        return byName.get(name);
4784
      }
4785
 
4786
      private final short _thriftId;
4787
      private final String _fieldName;
4788
 
4789
      _Fields(short thriftId, String fieldName) {
4790
        _thriftId = thriftId;
4791
        _fieldName = fieldName;
4792
      }
4793
 
4794
      public short getThriftFieldId() {
4795
        return _thriftId;
4796
      }
4797
 
4798
      public String getFieldName() {
4799
        return _fieldName;
4800
      }
4801
    }
4802
 
4803
    // isset id assignments
4804
 
3430 rajveer 4805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4806
    static {
3430 rajveer 4807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4808
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4809
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4810
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
4811
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4812
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4813
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4814
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
123 ashish 4815
    }
4816
 
4817
    public getPayments_result() {
4818
    }
4819
 
4820
    public getPayments_result(
4821
      List<Payment> success,
4822
      PaymentException pe)
4823
    {
4824
      this();
4825
      this.success = success;
4826
      this.pe = pe;
4827
    }
4828
 
4829
    /**
4830
     * Performs a deep copy on <i>other</i>.
4831
     */
4832
    public getPayments_result(getPayments_result other) {
4833
      if (other.isSetSuccess()) {
4834
        List<Payment> __this__success = new ArrayList<Payment>();
4835
        for (Payment other_element : other.success) {
4836
          __this__success.add(new Payment(other_element));
4837
        }
4838
        this.success = __this__success;
4839
      }
4840
      if (other.isSetPe()) {
4841
        this.pe = new PaymentException(other.pe);
4842
      }
4843
    }
4844
 
4845
    public getPayments_result deepCopy() {
4846
      return new getPayments_result(this);
4847
    }
4848
 
3430 rajveer 4849
    @Override
4850
    public void clear() {
4851
      this.success = null;
4852
      this.pe = null;
123 ashish 4853
    }
4854
 
4855
    public int getSuccessSize() {
4856
      return (this.success == null) ? 0 : this.success.size();
4857
    }
4858
 
4859
    public java.util.Iterator<Payment> getSuccessIterator() {
4860
      return (this.success == null) ? null : this.success.iterator();
4861
    }
4862
 
4863
    public void addToSuccess(Payment elem) {
4864
      if (this.success == null) {
4865
        this.success = new ArrayList<Payment>();
4866
      }
4867
      this.success.add(elem);
4868
    }
4869
 
4870
    public List<Payment> getSuccess() {
4871
      return this.success;
4872
    }
4873
 
3430 rajveer 4874
    public void setSuccess(List<Payment> success) {
123 ashish 4875
      this.success = success;
4876
    }
4877
 
4878
    public void unsetSuccess() {
4879
      this.success = null;
4880
    }
4881
 
3430 rajveer 4882
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 4883
    public boolean isSetSuccess() {
4884
      return this.success != null;
4885
    }
4886
 
4887
    public void setSuccessIsSet(boolean value) {
4888
      if (!value) {
4889
        this.success = null;
4890
      }
4891
    }
4892
 
4893
    public PaymentException getPe() {
4894
      return this.pe;
4895
    }
4896
 
3430 rajveer 4897
    public void setPe(PaymentException pe) {
123 ashish 4898
      this.pe = pe;
4899
    }
4900
 
4901
    public void unsetPe() {
4902
      this.pe = null;
4903
    }
4904
 
3430 rajveer 4905
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 4906
    public boolean isSetPe() {
4907
      return this.pe != null;
4908
    }
4909
 
4910
    public void setPeIsSet(boolean value) {
4911
      if (!value) {
4912
        this.pe = null;
4913
      }
4914
    }
4915
 
4916
    public void setFieldValue(_Fields field, Object value) {
4917
      switch (field) {
4918
      case SUCCESS:
4919
        if (value == null) {
4920
          unsetSuccess();
4921
        } else {
4922
          setSuccess((List<Payment>)value);
4923
        }
4924
        break;
4925
 
4926
      case PE:
4927
        if (value == null) {
4928
          unsetPe();
4929
        } else {
4930
          setPe((PaymentException)value);
4931
        }
4932
        break;
4933
 
4934
      }
4935
    }
4936
 
4937
    public Object getFieldValue(_Fields field) {
4938
      switch (field) {
4939
      case SUCCESS:
4940
        return getSuccess();
4941
 
4942
      case PE:
4943
        return getPe();
4944
 
4945
      }
4946
      throw new IllegalStateException();
4947
    }
4948
 
3430 rajveer 4949
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4950
    public boolean isSet(_Fields field) {
4951
      if (field == null) {
4952
        throw new IllegalArgumentException();
4953
      }
123 ashish 4954
 
4955
      switch (field) {
4956
      case SUCCESS:
4957
        return isSetSuccess();
4958
      case PE:
4959
        return isSetPe();
4960
      }
4961
      throw new IllegalStateException();
4962
    }
4963
 
4964
    @Override
4965
    public boolean equals(Object that) {
4966
      if (that == null)
4967
        return false;
4968
      if (that instanceof getPayments_result)
4969
        return this.equals((getPayments_result)that);
4970
      return false;
4971
    }
4972
 
4973
    public boolean equals(getPayments_result that) {
4974
      if (that == null)
4975
        return false;
4976
 
4977
      boolean this_present_success = true && this.isSetSuccess();
4978
      boolean that_present_success = true && that.isSetSuccess();
4979
      if (this_present_success || that_present_success) {
4980
        if (!(this_present_success && that_present_success))
4981
          return false;
4982
        if (!this.success.equals(that.success))
4983
          return false;
4984
      }
4985
 
4986
      boolean this_present_pe = true && this.isSetPe();
4987
      boolean that_present_pe = true && that.isSetPe();
4988
      if (this_present_pe || that_present_pe) {
4989
        if (!(this_present_pe && that_present_pe))
4990
          return false;
4991
        if (!this.pe.equals(that.pe))
4992
          return false;
4993
      }
4994
 
4995
      return true;
4996
    }
4997
 
4998
    @Override
4999
    public int hashCode() {
5000
      return 0;
5001
    }
5002
 
695 rajveer 5003
    public int compareTo(getPayments_result other) {
123 ashish 5004
      if (!getClass().equals(other.getClass())) {
5005
        return getClass().getName().compareTo(other.getClass().getName());
5006
      }
5007
 
5008
      int lastComparison = 0;
695 rajveer 5009
      getPayments_result typedOther = (getPayments_result)other;
123 ashish 5010
 
3430 rajveer 5011
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 5012
      if (lastComparison != 0) {
5013
        return lastComparison;
5014
      }
3430 rajveer 5015
      if (isSetSuccess()) {
5016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5017
        if (lastComparison != 0) {
5018
          return lastComparison;
5019
        }
123 ashish 5020
      }
3430 rajveer 5021
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 5022
      if (lastComparison != 0) {
5023
        return lastComparison;
123 ashish 5024
      }
3430 rajveer 5025
      if (isSetPe()) {
5026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5027
        if (lastComparison != 0) {
5028
          return lastComparison;
5029
        }
123 ashish 5030
      }
5031
      return 0;
5032
    }
5033
 
3430 rajveer 5034
    public _Fields fieldForId(int fieldId) {
5035
      return _Fields.findByThriftId(fieldId);
5036
    }
5037
 
5038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5039
      org.apache.thrift.protocol.TField field;
123 ashish 5040
      iprot.readStructBegin();
5041
      while (true)
5042
      {
5043
        field = iprot.readFieldBegin();
3430 rajveer 5044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 5045
          break;
5046
        }
3430 rajveer 5047
        switch (field.id) {
5048
          case 0: // SUCCESS
5049
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5050
              {
5051
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
5052
                this.success = new ArrayList<Payment>(_list16.size);
5053
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
420 ashish 5054
                {
3430 rajveer 5055
                  Payment _elem18; // required
5056
                  _elem18 = new Payment();
5057
                  _elem18.read(iprot);
5058
                  this.success.add(_elem18);
420 ashish 5059
                }
3430 rajveer 5060
                iprot.readListEnd();
123 ashish 5061
              }
3430 rajveer 5062
            } else { 
5063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5064
            }
5065
            break;
5066
          case 1: // PE
5067
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5068
              this.pe = new PaymentException();
5069
              this.pe.read(iprot);
5070
            } else { 
5071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5072
            }
5073
            break;
5074
          default:
5075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 5076
        }
3430 rajveer 5077
        iprot.readFieldEnd();
123 ashish 5078
      }
5079
      iprot.readStructEnd();
5080
      validate();
5081
    }
5082
 
3430 rajveer 5083
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 5084
      oprot.writeStructBegin(STRUCT_DESC);
5085
 
5086
      if (this.isSetSuccess()) {
5087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 5088
        {
3430 rajveer 5089
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 5090
          for (Payment _iter19 : this.success)
420 ashish 5091
          {
2747 chandransh 5092
            _iter19.write(oprot);
420 ashish 5093
          }
5094
          oprot.writeListEnd();
5095
        }
123 ashish 5096
        oprot.writeFieldEnd();
5097
      } else if (this.isSetPe()) {
5098
        oprot.writeFieldBegin(PE_FIELD_DESC);
5099
        this.pe.write(oprot);
5100
        oprot.writeFieldEnd();
5101
      }
5102
      oprot.writeFieldStop();
5103
      oprot.writeStructEnd();
5104
    }
5105
 
5106
    @Override
5107
    public String toString() {
695 rajveer 5108
      StringBuilder sb = new StringBuilder("getPayments_result(");
123 ashish 5109
      boolean first = true;
5110
 
5111
      sb.append("success:");
5112
      if (this.success == null) {
5113
        sb.append("null");
5114
      } else {
5115
        sb.append(this.success);
5116
      }
5117
      first = false;
5118
      if (!first) sb.append(", ");
5119
      sb.append("pe:");
5120
      if (this.pe == null) {
5121
        sb.append("null");
5122
      } else {
5123
        sb.append(this.pe);
5124
      }
5125
      first = false;
5126
      sb.append(")");
5127
      return sb.toString();
5128
    }
5129
 
3430 rajveer 5130
    public void validate() throws org.apache.thrift.TException {
123 ashish 5131
      // check for required fields
5132
    }
5133
 
3430 rajveer 5134
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5135
      try {
5136
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5137
      } catch (org.apache.thrift.TException te) {
5138
        throw new java.io.IOException(te);
5139
      }
5140
    }
5141
 
5142
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5143
      try {
5144
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5145
      } catch (org.apache.thrift.TException te) {
5146
        throw new java.io.IOException(te);
5147
      }
5148
    }
5149
 
123 ashish 5150
  }
5151
 
4141 chandransh 5152
  public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable   {
5153
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
5154
 
5155
    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);
5156
    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);
5157
    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);
5158
 
5159
    private long fromTime; // required
5160
    private long toTime; // required
5161
    private long gatewayId; // required
5162
 
5163
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5164
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5165
      FROM_TIME((short)1, "fromTime"),
5166
      TO_TIME((short)2, "toTime"),
5167
      GATEWAY_ID((short)3, "gatewayId");
5168
 
5169
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5170
 
5171
      static {
5172
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5173
          byName.put(field.getFieldName(), field);
5174
        }
5175
      }
5176
 
5177
      /**
5178
       * Find the _Fields constant that matches fieldId, or null if its not found.
5179
       */
5180
      public static _Fields findByThriftId(int fieldId) {
5181
        switch(fieldId) {
5182
          case 1: // FROM_TIME
5183
            return FROM_TIME;
5184
          case 2: // TO_TIME
5185
            return TO_TIME;
5186
          case 3: // GATEWAY_ID
5187
            return GATEWAY_ID;
5188
          default:
5189
            return null;
5190
        }
5191
      }
5192
 
5193
      /**
5194
       * Find the _Fields constant that matches fieldId, throwing an exception
5195
       * if it is not found.
5196
       */
5197
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5198
        _Fields fields = findByThriftId(fieldId);
5199
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5200
        return fields;
5201
      }
5202
 
5203
      /**
5204
       * Find the _Fields constant that matches name, or null if its not found.
5205
       */
5206
      public static _Fields findByName(String name) {
5207
        return byName.get(name);
5208
      }
5209
 
5210
      private final short _thriftId;
5211
      private final String _fieldName;
5212
 
5213
      _Fields(short thriftId, String fieldName) {
5214
        _thriftId = thriftId;
5215
        _fieldName = fieldName;
5216
      }
5217
 
5218
      public short getThriftFieldId() {
5219
        return _thriftId;
5220
      }
5221
 
5222
      public String getFieldName() {
5223
        return _fieldName;
5224
      }
5225
    }
5226
 
5227
    // isset id assignments
5228
    private static final int __FROMTIME_ISSET_ID = 0;
5229
    private static final int __TOTIME_ISSET_ID = 1;
5230
    private static final int __GATEWAYID_ISSET_ID = 2;
5231
    private BitSet __isset_bit_vector = new BitSet(3);
5232
 
5233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5234
    static {
5235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5236
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5238
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5239
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5240
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5241
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5242
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5243
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
5244
    }
5245
 
5246
    public getPaymentsByCapturedDate_args() {
5247
    }
5248
 
5249
    public getPaymentsByCapturedDate_args(
5250
      long fromTime,
5251
      long toTime,
5252
      long gatewayId)
5253
    {
5254
      this();
5255
      this.fromTime = fromTime;
5256
      setFromTimeIsSet(true);
5257
      this.toTime = toTime;
5258
      setToTimeIsSet(true);
5259
      this.gatewayId = gatewayId;
5260
      setGatewayIdIsSet(true);
5261
    }
5262
 
5263
    /**
5264
     * Performs a deep copy on <i>other</i>.
5265
     */
5266
    public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
5267
      __isset_bit_vector.clear();
5268
      __isset_bit_vector.or(other.__isset_bit_vector);
5269
      this.fromTime = other.fromTime;
5270
      this.toTime = other.toTime;
5271
      this.gatewayId = other.gatewayId;
5272
    }
5273
 
5274
    public getPaymentsByCapturedDate_args deepCopy() {
5275
      return new getPaymentsByCapturedDate_args(this);
5276
    }
5277
 
5278
    @Override
5279
    public void clear() {
5280
      setFromTimeIsSet(false);
5281
      this.fromTime = 0;
5282
      setToTimeIsSet(false);
5283
      this.toTime = 0;
5284
      setGatewayIdIsSet(false);
5285
      this.gatewayId = 0;
5286
    }
5287
 
5288
    public long getFromTime() {
5289
      return this.fromTime;
5290
    }
5291
 
5292
    public void setFromTime(long fromTime) {
5293
      this.fromTime = fromTime;
5294
      setFromTimeIsSet(true);
5295
    }
5296
 
5297
    public void unsetFromTime() {
5298
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
5299
    }
5300
 
5301
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
5302
    public boolean isSetFromTime() {
5303
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
5304
    }
5305
 
5306
    public void setFromTimeIsSet(boolean value) {
5307
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
5308
    }
5309
 
5310
    public long getToTime() {
5311
      return this.toTime;
5312
    }
5313
 
5314
    public void setToTime(long toTime) {
5315
      this.toTime = toTime;
5316
      setToTimeIsSet(true);
5317
    }
5318
 
5319
    public void unsetToTime() {
5320
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
5321
    }
5322
 
5323
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
5324
    public boolean isSetToTime() {
5325
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
5326
    }
5327
 
5328
    public void setToTimeIsSet(boolean value) {
5329
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
5330
    }
5331
 
5332
    public long getGatewayId() {
5333
      return this.gatewayId;
5334
    }
5335
 
5336
    public void setGatewayId(long gatewayId) {
5337
      this.gatewayId = gatewayId;
5338
      setGatewayIdIsSet(true);
5339
    }
5340
 
5341
    public void unsetGatewayId() {
5342
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
5343
    }
5344
 
5345
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
5346
    public boolean isSetGatewayId() {
5347
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
5348
    }
5349
 
5350
    public void setGatewayIdIsSet(boolean value) {
5351
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
5352
    }
5353
 
5354
    public void setFieldValue(_Fields field, Object value) {
5355
      switch (field) {
5356
      case FROM_TIME:
5357
        if (value == null) {
5358
          unsetFromTime();
5359
        } else {
5360
          setFromTime((Long)value);
5361
        }
5362
        break;
5363
 
5364
      case TO_TIME:
5365
        if (value == null) {
5366
          unsetToTime();
5367
        } else {
5368
          setToTime((Long)value);
5369
        }
5370
        break;
5371
 
5372
      case GATEWAY_ID:
5373
        if (value == null) {
5374
          unsetGatewayId();
5375
        } else {
5376
          setGatewayId((Long)value);
5377
        }
5378
        break;
5379
 
5380
      }
5381
    }
5382
 
5383
    public Object getFieldValue(_Fields field) {
5384
      switch (field) {
5385
      case FROM_TIME:
5386
        return Long.valueOf(getFromTime());
5387
 
5388
      case TO_TIME:
5389
        return Long.valueOf(getToTime());
5390
 
5391
      case GATEWAY_ID:
5392
        return Long.valueOf(getGatewayId());
5393
 
5394
      }
5395
      throw new IllegalStateException();
5396
    }
5397
 
5398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5399
    public boolean isSet(_Fields field) {
5400
      if (field == null) {
5401
        throw new IllegalArgumentException();
5402
      }
5403
 
5404
      switch (field) {
5405
      case FROM_TIME:
5406
        return isSetFromTime();
5407
      case TO_TIME:
5408
        return isSetToTime();
5409
      case GATEWAY_ID:
5410
        return isSetGatewayId();
5411
      }
5412
      throw new IllegalStateException();
5413
    }
5414
 
5415
    @Override
5416
    public boolean equals(Object that) {
5417
      if (that == null)
5418
        return false;
5419
      if (that instanceof getPaymentsByCapturedDate_args)
5420
        return this.equals((getPaymentsByCapturedDate_args)that);
5421
      return false;
5422
    }
5423
 
5424
    public boolean equals(getPaymentsByCapturedDate_args that) {
5425
      if (that == null)
5426
        return false;
5427
 
5428
      boolean this_present_fromTime = true;
5429
      boolean that_present_fromTime = true;
5430
      if (this_present_fromTime || that_present_fromTime) {
5431
        if (!(this_present_fromTime && that_present_fromTime))
5432
          return false;
5433
        if (this.fromTime != that.fromTime)
5434
          return false;
5435
      }
5436
 
5437
      boolean this_present_toTime = true;
5438
      boolean that_present_toTime = true;
5439
      if (this_present_toTime || that_present_toTime) {
5440
        if (!(this_present_toTime && that_present_toTime))
5441
          return false;
5442
        if (this.toTime != that.toTime)
5443
          return false;
5444
      }
5445
 
5446
      boolean this_present_gatewayId = true;
5447
      boolean that_present_gatewayId = true;
5448
      if (this_present_gatewayId || that_present_gatewayId) {
5449
        if (!(this_present_gatewayId && that_present_gatewayId))
5450
          return false;
5451
        if (this.gatewayId != that.gatewayId)
5452
          return false;
5453
      }
5454
 
5455
      return true;
5456
    }
5457
 
5458
    @Override
5459
    public int hashCode() {
5460
      return 0;
5461
    }
5462
 
5463
    public int compareTo(getPaymentsByCapturedDate_args other) {
5464
      if (!getClass().equals(other.getClass())) {
5465
        return getClass().getName().compareTo(other.getClass().getName());
5466
      }
5467
 
5468
      int lastComparison = 0;
5469
      getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
5470
 
5471
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
5472
      if (lastComparison != 0) {
5473
        return lastComparison;
5474
      }
5475
      if (isSetFromTime()) {
5476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
5477
        if (lastComparison != 0) {
5478
          return lastComparison;
5479
        }
5480
      }
5481
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
5482
      if (lastComparison != 0) {
5483
        return lastComparison;
5484
      }
5485
      if (isSetToTime()) {
5486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
5487
        if (lastComparison != 0) {
5488
          return lastComparison;
5489
        }
5490
      }
5491
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
5492
      if (lastComparison != 0) {
5493
        return lastComparison;
5494
      }
5495
      if (isSetGatewayId()) {
5496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
5497
        if (lastComparison != 0) {
5498
          return lastComparison;
5499
        }
5500
      }
5501
      return 0;
5502
    }
5503
 
5504
    public _Fields fieldForId(int fieldId) {
5505
      return _Fields.findByThriftId(fieldId);
5506
    }
5507
 
5508
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5509
      org.apache.thrift.protocol.TField field;
5510
      iprot.readStructBegin();
5511
      while (true)
5512
      {
5513
        field = iprot.readFieldBegin();
5514
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5515
          break;
5516
        }
5517
        switch (field.id) {
5518
          case 1: // FROM_TIME
5519
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5520
              this.fromTime = iprot.readI64();
5521
              setFromTimeIsSet(true);
5522
            } else { 
5523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5524
            }
5525
            break;
5526
          case 2: // TO_TIME
5527
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5528
              this.toTime = iprot.readI64();
5529
              setToTimeIsSet(true);
5530
            } else { 
5531
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5532
            }
5533
            break;
5534
          case 3: // GATEWAY_ID
5535
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5536
              this.gatewayId = iprot.readI64();
5537
              setGatewayIdIsSet(true);
5538
            } else { 
5539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5540
            }
5541
            break;
5542
          default:
5543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5544
        }
5545
        iprot.readFieldEnd();
5546
      }
5547
      iprot.readStructEnd();
5548
      validate();
5549
    }
5550
 
5551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5552
      validate();
5553
 
5554
      oprot.writeStructBegin(STRUCT_DESC);
5555
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
5556
      oprot.writeI64(this.fromTime);
5557
      oprot.writeFieldEnd();
5558
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
5559
      oprot.writeI64(this.toTime);
5560
      oprot.writeFieldEnd();
5561
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
5562
      oprot.writeI64(this.gatewayId);
5563
      oprot.writeFieldEnd();
5564
      oprot.writeFieldStop();
5565
      oprot.writeStructEnd();
5566
    }
5567
 
5568
    @Override
5569
    public String toString() {
5570
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
5571
      boolean first = true;
5572
 
5573
      sb.append("fromTime:");
5574
      sb.append(this.fromTime);
5575
      first = false;
5576
      if (!first) sb.append(", ");
5577
      sb.append("toTime:");
5578
      sb.append(this.toTime);
5579
      first = false;
5580
      if (!first) sb.append(", ");
5581
      sb.append("gatewayId:");
5582
      sb.append(this.gatewayId);
5583
      first = false;
5584
      sb.append(")");
5585
      return sb.toString();
5586
    }
5587
 
5588
    public void validate() throws org.apache.thrift.TException {
5589
      // check for required fields
5590
    }
5591
 
5592
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5593
      try {
5594
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5595
      } catch (org.apache.thrift.TException te) {
5596
        throw new java.io.IOException(te);
5597
      }
5598
    }
5599
 
5600
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5601
      try {
5602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5603
      } catch (org.apache.thrift.TException te) {
5604
        throw new java.io.IOException(te);
5605
      }
5606
    }
5607
 
5608
  }
5609
 
5610
  public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable   {
5611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
5612
 
5613
    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);
5614
    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);
5615
 
5616
    private List<Payment> success; // required
5617
    private PaymentException pe; // required
5618
 
5619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5621
      SUCCESS((short)0, "success"),
5622
      PE((short)1, "pe");
5623
 
5624
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5625
 
5626
      static {
5627
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5628
          byName.put(field.getFieldName(), field);
5629
        }
5630
      }
5631
 
5632
      /**
5633
       * Find the _Fields constant that matches fieldId, or null if its not found.
5634
       */
5635
      public static _Fields findByThriftId(int fieldId) {
5636
        switch(fieldId) {
5637
          case 0: // SUCCESS
5638
            return SUCCESS;
5639
          case 1: // PE
5640
            return PE;
5641
          default:
5642
            return null;
5643
        }
5644
      }
5645
 
5646
      /**
5647
       * Find the _Fields constant that matches fieldId, throwing an exception
5648
       * if it is not found.
5649
       */
5650
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5651
        _Fields fields = findByThriftId(fieldId);
5652
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5653
        return fields;
5654
      }
5655
 
5656
      /**
5657
       * Find the _Fields constant that matches name, or null if its not found.
5658
       */
5659
      public static _Fields findByName(String name) {
5660
        return byName.get(name);
5661
      }
5662
 
5663
      private final short _thriftId;
5664
      private final String _fieldName;
5665
 
5666
      _Fields(short thriftId, String fieldName) {
5667
        _thriftId = thriftId;
5668
        _fieldName = fieldName;
5669
      }
5670
 
5671
      public short getThriftFieldId() {
5672
        return _thriftId;
5673
      }
5674
 
5675
      public String getFieldName() {
5676
        return _fieldName;
5677
      }
5678
    }
5679
 
5680
    // isset id assignments
5681
 
5682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5683
    static {
5684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5685
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5686
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5687
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
5688
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
5692
    }
5693
 
5694
    public getPaymentsByCapturedDate_result() {
5695
    }
5696
 
5697
    public getPaymentsByCapturedDate_result(
5698
      List<Payment> success,
5699
      PaymentException pe)
5700
    {
5701
      this();
5702
      this.success = success;
5703
      this.pe = pe;
5704
    }
5705
 
5706
    /**
5707
     * Performs a deep copy on <i>other</i>.
5708
     */
5709
    public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
5710
      if (other.isSetSuccess()) {
5711
        List<Payment> __this__success = new ArrayList<Payment>();
5712
        for (Payment other_element : other.success) {
5713
          __this__success.add(new Payment(other_element));
5714
        }
5715
        this.success = __this__success;
5716
      }
5717
      if (other.isSetPe()) {
5718
        this.pe = new PaymentException(other.pe);
5719
      }
5720
    }
5721
 
5722
    public getPaymentsByCapturedDate_result deepCopy() {
5723
      return new getPaymentsByCapturedDate_result(this);
5724
    }
5725
 
5726
    @Override
5727
    public void clear() {
5728
      this.success = null;
5729
      this.pe = null;
5730
    }
5731
 
5732
    public int getSuccessSize() {
5733
      return (this.success == null) ? 0 : this.success.size();
5734
    }
5735
 
5736
    public java.util.Iterator<Payment> getSuccessIterator() {
5737
      return (this.success == null) ? null : this.success.iterator();
5738
    }
5739
 
5740
    public void addToSuccess(Payment elem) {
5741
      if (this.success == null) {
5742
        this.success = new ArrayList<Payment>();
5743
      }
5744
      this.success.add(elem);
5745
    }
5746
 
5747
    public List<Payment> getSuccess() {
5748
      return this.success;
5749
    }
5750
 
5751
    public void setSuccess(List<Payment> success) {
5752
      this.success = success;
5753
    }
5754
 
5755
    public void unsetSuccess() {
5756
      this.success = null;
5757
    }
5758
 
5759
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5760
    public boolean isSetSuccess() {
5761
      return this.success != null;
5762
    }
5763
 
5764
    public void setSuccessIsSet(boolean value) {
5765
      if (!value) {
5766
        this.success = null;
5767
      }
5768
    }
5769
 
5770
    public PaymentException getPe() {
5771
      return this.pe;
5772
    }
5773
 
5774
    public void setPe(PaymentException pe) {
5775
      this.pe = pe;
5776
    }
5777
 
5778
    public void unsetPe() {
5779
      this.pe = null;
5780
    }
5781
 
5782
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
5783
    public boolean isSetPe() {
5784
      return this.pe != null;
5785
    }
5786
 
5787
    public void setPeIsSet(boolean value) {
5788
      if (!value) {
5789
        this.pe = null;
5790
      }
5791
    }
5792
 
5793
    public void setFieldValue(_Fields field, Object value) {
5794
      switch (field) {
5795
      case SUCCESS:
5796
        if (value == null) {
5797
          unsetSuccess();
5798
        } else {
5799
          setSuccess((List<Payment>)value);
5800
        }
5801
        break;
5802
 
5803
      case PE:
5804
        if (value == null) {
5805
          unsetPe();
5806
        } else {
5807
          setPe((PaymentException)value);
5808
        }
5809
        break;
5810
 
5811
      }
5812
    }
5813
 
5814
    public Object getFieldValue(_Fields field) {
5815
      switch (field) {
5816
      case SUCCESS:
5817
        return getSuccess();
5818
 
5819
      case PE:
5820
        return getPe();
5821
 
5822
      }
5823
      throw new IllegalStateException();
5824
    }
5825
 
5826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5827
    public boolean isSet(_Fields field) {
5828
      if (field == null) {
5829
        throw new IllegalArgumentException();
5830
      }
5831
 
5832
      switch (field) {
5833
      case SUCCESS:
5834
        return isSetSuccess();
5835
      case PE:
5836
        return isSetPe();
5837
      }
5838
      throw new IllegalStateException();
5839
    }
5840
 
5841
    @Override
5842
    public boolean equals(Object that) {
5843
      if (that == null)
5844
        return false;
5845
      if (that instanceof getPaymentsByCapturedDate_result)
5846
        return this.equals((getPaymentsByCapturedDate_result)that);
5847
      return false;
5848
    }
5849
 
5850
    public boolean equals(getPaymentsByCapturedDate_result that) {
5851
      if (that == null)
5852
        return false;
5853
 
5854
      boolean this_present_success = true && this.isSetSuccess();
5855
      boolean that_present_success = true && that.isSetSuccess();
5856
      if (this_present_success || that_present_success) {
5857
        if (!(this_present_success && that_present_success))
5858
          return false;
5859
        if (!this.success.equals(that.success))
5860
          return false;
5861
      }
5862
 
5863
      boolean this_present_pe = true && this.isSetPe();
5864
      boolean that_present_pe = true && that.isSetPe();
5865
      if (this_present_pe || that_present_pe) {
5866
        if (!(this_present_pe && that_present_pe))
5867
          return false;
5868
        if (!this.pe.equals(that.pe))
5869
          return false;
5870
      }
5871
 
5872
      return true;
5873
    }
5874
 
5875
    @Override
5876
    public int hashCode() {
5877
      return 0;
5878
    }
5879
 
5880
    public int compareTo(getPaymentsByCapturedDate_result other) {
5881
      if (!getClass().equals(other.getClass())) {
5882
        return getClass().getName().compareTo(other.getClass().getName());
5883
      }
5884
 
5885
      int lastComparison = 0;
5886
      getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
5887
 
5888
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5889
      if (lastComparison != 0) {
5890
        return lastComparison;
5891
      }
5892
      if (isSetSuccess()) {
5893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5894
        if (lastComparison != 0) {
5895
          return lastComparison;
5896
        }
5897
      }
5898
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
5899
      if (lastComparison != 0) {
5900
        return lastComparison;
5901
      }
5902
      if (isSetPe()) {
5903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5904
        if (lastComparison != 0) {
5905
          return lastComparison;
5906
        }
5907
      }
5908
      return 0;
5909
    }
5910
 
5911
    public _Fields fieldForId(int fieldId) {
5912
      return _Fields.findByThriftId(fieldId);
5913
    }
5914
 
5915
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5916
      org.apache.thrift.protocol.TField field;
5917
      iprot.readStructBegin();
5918
      while (true)
5919
      {
5920
        field = iprot.readFieldBegin();
5921
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5922
          break;
5923
        }
5924
        switch (field.id) {
5925
          case 0: // SUCCESS
5926
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5927
              {
5928
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5929
                this.success = new ArrayList<Payment>(_list20.size);
5930
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5931
                {
5932
                  Payment _elem22; // required
5933
                  _elem22 = new Payment();
5934
                  _elem22.read(iprot);
5935
                  this.success.add(_elem22);
5936
                }
5937
                iprot.readListEnd();
5938
              }
5939
            } else { 
5940
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5941
            }
5942
            break;
5943
          case 1: // PE
5944
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5945
              this.pe = new PaymentException();
5946
              this.pe.read(iprot);
5947
            } else { 
5948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5949
            }
5950
            break;
5951
          default:
5952
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5953
        }
5954
        iprot.readFieldEnd();
5955
      }
5956
      iprot.readStructEnd();
5957
      validate();
5958
    }
5959
 
5960
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5961
      oprot.writeStructBegin(STRUCT_DESC);
5962
 
5963
      if (this.isSetSuccess()) {
5964
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5965
        {
5966
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5967
          for (Payment _iter23 : this.success)
5968
          {
5969
            _iter23.write(oprot);
5970
          }
5971
          oprot.writeListEnd();
5972
        }
5973
        oprot.writeFieldEnd();
5974
      } else if (this.isSetPe()) {
5975
        oprot.writeFieldBegin(PE_FIELD_DESC);
5976
        this.pe.write(oprot);
5977
        oprot.writeFieldEnd();
5978
      }
5979
      oprot.writeFieldStop();
5980
      oprot.writeStructEnd();
5981
    }
5982
 
5983
    @Override
5984
    public String toString() {
5985
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
5986
      boolean first = true;
5987
 
5988
      sb.append("success:");
5989
      if (this.success == null) {
5990
        sb.append("null");
5991
      } else {
5992
        sb.append(this.success);
5993
      }
5994
      first = false;
5995
      if (!first) sb.append(", ");
5996
      sb.append("pe:");
5997
      if (this.pe == null) {
5998
        sb.append("null");
5999
      } else {
6000
        sb.append(this.pe);
6001
      }
6002
      first = false;
6003
      sb.append(")");
6004
      return sb.toString();
6005
    }
6006
 
6007
    public void validate() throws org.apache.thrift.TException {
6008
      // check for required fields
6009
    }
6010
 
6011
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6012
      try {
6013
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6014
      } catch (org.apache.thrift.TException te) {
6015
        throw new java.io.IOException(te);
6016
      }
6017
    }
6018
 
6019
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6020
      try {
6021
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6022
      } catch (org.apache.thrift.TException te) {
6023
        throw new java.io.IOException(te);
6024
      }
6025
    }
6026
 
6027
  }
6028
 
3430 rajveer 6029
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
6030
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
123 ashish 6031
 
3430 rajveer 6032
    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 6033
 
3430 rajveer 6034
    private long id; // required
123 ashish 6035
 
6036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6037
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 6038
      ID((short)1, "id");
123 ashish 6039
 
6040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6041
 
6042
      static {
6043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6044
          byName.put(field.getFieldName(), field);
6045
        }
6046
      }
6047
 
6048
      /**
6049
       * Find the _Fields constant that matches fieldId, or null if its not found.
6050
       */
6051
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6052
        switch(fieldId) {
6053
          case 1: // ID
6054
            return ID;
6055
          default:
6056
            return null;
6057
        }
123 ashish 6058
      }
6059
 
6060
      /**
6061
       * Find the _Fields constant that matches fieldId, throwing an exception
6062
       * if it is not found.
6063
       */
6064
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6065
        _Fields fields = findByThriftId(fieldId);
6066
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6067
        return fields;
6068
      }
6069
 
6070
      /**
6071
       * Find the _Fields constant that matches name, or null if its not found.
6072
       */
6073
      public static _Fields findByName(String name) {
6074
        return byName.get(name);
6075
      }
6076
 
6077
      private final short _thriftId;
6078
      private final String _fieldName;
6079
 
6080
      _Fields(short thriftId, String fieldName) {
6081
        _thriftId = thriftId;
6082
        _fieldName = fieldName;
6083
      }
6084
 
6085
      public short getThriftFieldId() {
6086
        return _thriftId;
6087
      }
6088
 
6089
      public String getFieldName() {
6090
        return _fieldName;
6091
      }
6092
    }
6093
 
6094
    // isset id assignments
420 ashish 6095
    private static final int __ID_ISSET_ID = 0;
123 ashish 6096
    private BitSet __isset_bit_vector = new BitSet(1);
6097
 
3430 rajveer 6098
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 6099
    static {
3430 rajveer 6100
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6101
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6102
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6103
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6104
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
123 ashish 6105
    }
6106
 
695 rajveer 6107
    public getPaymentGateway_args() {
123 ashish 6108
    }
6109
 
695 rajveer 6110
    public getPaymentGateway_args(
6111
      long id)
123 ashish 6112
    {
6113
      this();
420 ashish 6114
      this.id = id;
6115
      setIdIsSet(true);
123 ashish 6116
    }
6117
 
6118
    /**
6119
     * Performs a deep copy on <i>other</i>.
6120
     */
695 rajveer 6121
    public getPaymentGateway_args(getPaymentGateway_args other) {
123 ashish 6122
      __isset_bit_vector.clear();
6123
      __isset_bit_vector.or(other.__isset_bit_vector);
420 ashish 6124
      this.id = other.id;
123 ashish 6125
    }
6126
 
695 rajveer 6127
    public getPaymentGateway_args deepCopy() {
6128
      return new getPaymentGateway_args(this);
123 ashish 6129
    }
6130
 
3430 rajveer 6131
    @Override
6132
    public void clear() {
6133
      setIdIsSet(false);
6134
      this.id = 0;
123 ashish 6135
    }
6136
 
420 ashish 6137
    public long getId() {
6138
      return this.id;
123 ashish 6139
    }
6140
 
3430 rajveer 6141
    public void setId(long id) {
420 ashish 6142
      this.id = id;
6143
      setIdIsSet(true);
123 ashish 6144
    }
6145
 
420 ashish 6146
    public void unsetId() {
6147
      __isset_bit_vector.clear(__ID_ISSET_ID);
123 ashish 6148
    }
6149
 
3430 rajveer 6150
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 6151
    public boolean isSetId() {
6152
      return __isset_bit_vector.get(__ID_ISSET_ID);
123 ashish 6153
    }
6154
 
420 ashish 6155
    public void setIdIsSet(boolean value) {
6156
      __isset_bit_vector.set(__ID_ISSET_ID, value);
123 ashish 6157
    }
6158
 
6159
    public void setFieldValue(_Fields field, Object value) {
6160
      switch (field) {
420 ashish 6161
      case ID:
123 ashish 6162
        if (value == null) {
420 ashish 6163
          unsetId();
123 ashish 6164
        } else {
420 ashish 6165
          setId((Long)value);
123 ashish 6166
        }
6167
        break;
6168
 
6169
      }
6170
    }
6171
 
6172
    public Object getFieldValue(_Fields field) {
6173
      switch (field) {
420 ashish 6174
      case ID:
3430 rajveer 6175
        return Long.valueOf(getId());
123 ashish 6176
 
6177
      }
6178
      throw new IllegalStateException();
6179
    }
6180
 
3430 rajveer 6181
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6182
    public boolean isSet(_Fields field) {
6183
      if (field == null) {
6184
        throw new IllegalArgumentException();
6185
      }
123 ashish 6186
 
6187
      switch (field) {
420 ashish 6188
      case ID:
6189
        return isSetId();
123 ashish 6190
      }
6191
      throw new IllegalStateException();
6192
    }
6193
 
6194
    @Override
6195
    public boolean equals(Object that) {
6196
      if (that == null)
6197
        return false;
695 rajveer 6198
      if (that instanceof getPaymentGateway_args)
6199
        return this.equals((getPaymentGateway_args)that);
123 ashish 6200
      return false;
6201
    }
6202
 
695 rajveer 6203
    public boolean equals(getPaymentGateway_args that) {
123 ashish 6204
      if (that == null)
6205
        return false;
6206
 
420 ashish 6207
      boolean this_present_id = true;
6208
      boolean that_present_id = true;
6209
      if (this_present_id || that_present_id) {
6210
        if (!(this_present_id && that_present_id))
123 ashish 6211
          return false;
420 ashish 6212
        if (this.id != that.id)
123 ashish 6213
          return false;
6214
      }
6215
 
6216
      return true;
6217
    }
6218
 
6219
    @Override
6220
    public int hashCode() {
6221
      return 0;
6222
    }
6223
 
695 rajveer 6224
    public int compareTo(getPaymentGateway_args other) {
123 ashish 6225
      if (!getClass().equals(other.getClass())) {
6226
        return getClass().getName().compareTo(other.getClass().getName());
6227
      }
6228
 
6229
      int lastComparison = 0;
695 rajveer 6230
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
123 ashish 6231
 
3430 rajveer 6232
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
123 ashish 6233
      if (lastComparison != 0) {
6234
        return lastComparison;
6235
      }
3430 rajveer 6236
      if (isSetId()) {
6237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6238
        if (lastComparison != 0) {
6239
          return lastComparison;
6240
        }
123 ashish 6241
      }
6242
      return 0;
6243
    }
6244
 
3430 rajveer 6245
    public _Fields fieldForId(int fieldId) {
6246
      return _Fields.findByThriftId(fieldId);
6247
    }
6248
 
6249
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6250
      org.apache.thrift.protocol.TField field;
123 ashish 6251
      iprot.readStructBegin();
6252
      while (true)
6253
      {
6254
        field = iprot.readFieldBegin();
3430 rajveer 6255
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 6256
          break;
6257
        }
3430 rajveer 6258
        switch (field.id) {
6259
          case 1: // ID
6260
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6261
              this.id = iprot.readI64();
6262
              setIdIsSet(true);
6263
            } else { 
6264
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6265
            }
6266
            break;
6267
          default:
6268
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 6269
        }
3430 rajveer 6270
        iprot.readFieldEnd();
123 ashish 6271
      }
6272
      iprot.readStructEnd();
6273
      validate();
6274
    }
6275
 
3430 rajveer 6276
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 6277
      validate();
6278
 
6279
      oprot.writeStructBegin(STRUCT_DESC);
420 ashish 6280
      oprot.writeFieldBegin(ID_FIELD_DESC);
6281
      oprot.writeI64(this.id);
123 ashish 6282
      oprot.writeFieldEnd();
6283
      oprot.writeFieldStop();
6284
      oprot.writeStructEnd();
6285
    }
6286
 
6287
    @Override
6288
    public String toString() {
695 rajveer 6289
      StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
123 ashish 6290
      boolean first = true;
6291
 
420 ashish 6292
      sb.append("id:");
6293
      sb.append(this.id);
123 ashish 6294
      first = false;
6295
      sb.append(")");
6296
      return sb.toString();
6297
    }
6298
 
3430 rajveer 6299
    public void validate() throws org.apache.thrift.TException {
123 ashish 6300
      // check for required fields
6301
    }
6302
 
3430 rajveer 6303
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6304
      try {
6305
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6306
      } catch (org.apache.thrift.TException te) {
6307
        throw new java.io.IOException(te);
6308
      }
6309
    }
6310
 
6311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6312
      try {
6313
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6314
        __isset_bit_vector = new BitSet(1);
6315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6316
      } catch (org.apache.thrift.TException te) {
6317
        throw new java.io.IOException(te);
6318
      }
6319
    }
6320
 
123 ashish 6321
  }
6322
 
3430 rajveer 6323
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
6324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
123 ashish 6325
 
3430 rajveer 6326
    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);
6327
    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 6328
 
3430 rajveer 6329
    private PaymentGateway success; // required
6330
    private PaymentException pe; // required
123 ashish 6331
 
6332
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6333
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 6334
      SUCCESS((short)0, "success"),
6335
      PE((short)1, "pe");
6336
 
6337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6338
 
6339
      static {
6340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6341
          byName.put(field.getFieldName(), field);
6342
        }
6343
      }
6344
 
6345
      /**
6346
       * Find the _Fields constant that matches fieldId, or null if its not found.
6347
       */
6348
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6349
        switch(fieldId) {
6350
          case 0: // SUCCESS
6351
            return SUCCESS;
6352
          case 1: // PE
6353
            return PE;
6354
          default:
6355
            return null;
6356
        }
420 ashish 6357
      }
6358
 
6359
      /**
6360
       * Find the _Fields constant that matches fieldId, throwing an exception
6361
       * if it is not found.
6362
       */
6363
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6364
        _Fields fields = findByThriftId(fieldId);
6365
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6366
        return fields;
6367
      }
6368
 
6369
      /**
6370
       * Find the _Fields constant that matches name, or null if its not found.
6371
       */
6372
      public static _Fields findByName(String name) {
6373
        return byName.get(name);
6374
      }
6375
 
6376
      private final short _thriftId;
6377
      private final String _fieldName;
6378
 
6379
      _Fields(short thriftId, String fieldName) {
6380
        _thriftId = thriftId;
6381
        _fieldName = fieldName;
6382
      }
6383
 
6384
      public short getThriftFieldId() {
6385
        return _thriftId;
6386
      }
6387
 
6388
      public String getFieldName() {
6389
        return _fieldName;
6390
      }
6391
    }
6392
 
6393
    // isset id assignments
6394
 
3430 rajveer 6395
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 6396
    static {
3430 rajveer 6397
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6398
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6399
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
6400
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6401
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6402
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6403
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
420 ashish 6404
    }
6405
 
695 rajveer 6406
    public getPaymentGateway_result() {
420 ashish 6407
    }
6408
 
695 rajveer 6409
    public getPaymentGateway_result(
6410
      PaymentGateway success,
420 ashish 6411
      PaymentException pe)
6412
    {
6413
      this();
6414
      this.success = success;
6415
      this.pe = pe;
6416
    }
6417
 
6418
    /**
6419
     * Performs a deep copy on <i>other</i>.
6420
     */
695 rajveer 6421
    public getPaymentGateway_result(getPaymentGateway_result other) {
420 ashish 6422
      if (other.isSetSuccess()) {
695 rajveer 6423
        this.success = new PaymentGateway(other.success);
420 ashish 6424
      }
6425
      if (other.isSetPe()) {
6426
        this.pe = new PaymentException(other.pe);
6427
      }
6428
    }
6429
 
695 rajveer 6430
    public getPaymentGateway_result deepCopy() {
6431
      return new getPaymentGateway_result(this);
420 ashish 6432
    }
6433
 
3430 rajveer 6434
    @Override
6435
    public void clear() {
6436
      this.success = null;
6437
      this.pe = null;
420 ashish 6438
    }
6439
 
695 rajveer 6440
    public PaymentGateway getSuccess() {
420 ashish 6441
      return this.success;
6442
    }
6443
 
3430 rajveer 6444
    public void setSuccess(PaymentGateway success) {
420 ashish 6445
      this.success = success;
6446
    }
6447
 
6448
    public void unsetSuccess() {
6449
      this.success = null;
6450
    }
6451
 
3430 rajveer 6452
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 6453
    public boolean isSetSuccess() {
6454
      return this.success != null;
6455
    }
6456
 
6457
    public void setSuccessIsSet(boolean value) {
6458
      if (!value) {
6459
        this.success = null;
6460
      }
6461
    }
6462
 
6463
    public PaymentException getPe() {
6464
      return this.pe;
6465
    }
6466
 
3430 rajveer 6467
    public void setPe(PaymentException pe) {
420 ashish 6468
      this.pe = pe;
6469
    }
6470
 
6471
    public void unsetPe() {
6472
      this.pe = null;
6473
    }
6474
 
3430 rajveer 6475
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 6476
    public boolean isSetPe() {
6477
      return this.pe != null;
6478
    }
6479
 
6480
    public void setPeIsSet(boolean value) {
6481
      if (!value) {
6482
        this.pe = null;
6483
      }
6484
    }
6485
 
6486
    public void setFieldValue(_Fields field, Object value) {
6487
      switch (field) {
6488
      case SUCCESS:
6489
        if (value == null) {
6490
          unsetSuccess();
6491
        } else {
695 rajveer 6492
          setSuccess((PaymentGateway)value);
420 ashish 6493
        }
6494
        break;
6495
 
6496
      case PE:
6497
        if (value == null) {
6498
          unsetPe();
6499
        } else {
6500
          setPe((PaymentException)value);
6501
        }
6502
        break;
6503
 
6504
      }
6505
    }
6506
 
6507
    public Object getFieldValue(_Fields field) {
6508
      switch (field) {
6509
      case SUCCESS:
6510
        return getSuccess();
6511
 
6512
      case PE:
6513
        return getPe();
6514
 
6515
      }
6516
      throw new IllegalStateException();
6517
    }
6518
 
3430 rajveer 6519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6520
    public boolean isSet(_Fields field) {
6521
      if (field == null) {
6522
        throw new IllegalArgumentException();
6523
      }
420 ashish 6524
 
6525
      switch (field) {
6526
      case SUCCESS:
6527
        return isSetSuccess();
6528
      case PE:
6529
        return isSetPe();
6530
      }
6531
      throw new IllegalStateException();
6532
    }
6533
 
6534
    @Override
6535
    public boolean equals(Object that) {
6536
      if (that == null)
6537
        return false;
695 rajveer 6538
      if (that instanceof getPaymentGateway_result)
6539
        return this.equals((getPaymentGateway_result)that);
420 ashish 6540
      return false;
6541
    }
6542
 
695 rajveer 6543
    public boolean equals(getPaymentGateway_result that) {
420 ashish 6544
      if (that == null)
6545
        return false;
6546
 
6547
      boolean this_present_success = true && this.isSetSuccess();
6548
      boolean that_present_success = true && that.isSetSuccess();
6549
      if (this_present_success || that_present_success) {
6550
        if (!(this_present_success && that_present_success))
6551
          return false;
6552
        if (!this.success.equals(that.success))
6553
          return false;
6554
      }
6555
 
6556
      boolean this_present_pe = true && this.isSetPe();
6557
      boolean that_present_pe = true && that.isSetPe();
6558
      if (this_present_pe || that_present_pe) {
6559
        if (!(this_present_pe && that_present_pe))
6560
          return false;
6561
        if (!this.pe.equals(that.pe))
6562
          return false;
6563
      }
6564
 
6565
      return true;
6566
    }
6567
 
6568
    @Override
6569
    public int hashCode() {
6570
      return 0;
6571
    }
6572
 
695 rajveer 6573
    public int compareTo(getPaymentGateway_result other) {
6574
      if (!getClass().equals(other.getClass())) {
6575
        return getClass().getName().compareTo(other.getClass().getName());
6576
      }
6577
 
6578
      int lastComparison = 0;
6579
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
6580
 
3430 rajveer 6581
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 6582
      if (lastComparison != 0) {
6583
        return lastComparison;
6584
      }
3430 rajveer 6585
      if (isSetSuccess()) {
6586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6587
        if (lastComparison != 0) {
6588
          return lastComparison;
6589
        }
695 rajveer 6590
      }
3430 rajveer 6591
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 6592
      if (lastComparison != 0) {
6593
        return lastComparison;
6594
      }
3430 rajveer 6595
      if (isSetPe()) {
6596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6597
        if (lastComparison != 0) {
6598
          return lastComparison;
6599
        }
695 rajveer 6600
      }
6601
      return 0;
6602
    }
6603
 
3430 rajveer 6604
    public _Fields fieldForId(int fieldId) {
6605
      return _Fields.findByThriftId(fieldId);
6606
    }
6607
 
6608
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6609
      org.apache.thrift.protocol.TField field;
420 ashish 6610
      iprot.readStructBegin();
6611
      while (true)
6612
      {
6613
        field = iprot.readFieldBegin();
3430 rajveer 6614
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 6615
          break;
6616
        }
3430 rajveer 6617
        switch (field.id) {
6618
          case 0: // SUCCESS
6619
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6620
              this.success = new PaymentGateway();
6621
              this.success.read(iprot);
6622
            } else { 
6623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6624
            }
6625
            break;
6626
          case 1: // PE
6627
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6628
              this.pe = new PaymentException();
6629
              this.pe.read(iprot);
6630
            } else { 
6631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6632
            }
6633
            break;
6634
          default:
6635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 6636
        }
3430 rajveer 6637
        iprot.readFieldEnd();
420 ashish 6638
      }
6639
      iprot.readStructEnd();
6640
      validate();
6641
    }
6642
 
3430 rajveer 6643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 6644
      oprot.writeStructBegin(STRUCT_DESC);
6645
 
6646
      if (this.isSetSuccess()) {
6647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 6648
        this.success.write(oprot);
420 ashish 6649
        oprot.writeFieldEnd();
6650
      } else if (this.isSetPe()) {
6651
        oprot.writeFieldBegin(PE_FIELD_DESC);
6652
        this.pe.write(oprot);
6653
        oprot.writeFieldEnd();
6654
      }
6655
      oprot.writeFieldStop();
6656
      oprot.writeStructEnd();
6657
    }
6658
 
6659
    @Override
6660
    public String toString() {
695 rajveer 6661
      StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
420 ashish 6662
      boolean first = true;
6663
 
6664
      sb.append("success:");
6665
      if (this.success == null) {
6666
        sb.append("null");
6667
      } else {
6668
        sb.append(this.success);
6669
      }
6670
      first = false;
6671
      if (!first) sb.append(", ");
6672
      sb.append("pe:");
6673
      if (this.pe == null) {
6674
        sb.append("null");
6675
      } else {
6676
        sb.append(this.pe);
6677
      }
6678
      first = false;
6679
      sb.append(")");
6680
      return sb.toString();
6681
    }
6682
 
3430 rajveer 6683
    public void validate() throws org.apache.thrift.TException {
420 ashish 6684
      // check for required fields
6685
    }
6686
 
3430 rajveer 6687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6688
      try {
6689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6690
      } catch (org.apache.thrift.TException te) {
6691
        throw new java.io.IOException(te);
6692
      }
6693
    }
6694
 
6695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6696
      try {
6697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6698
      } catch (org.apache.thrift.TException te) {
6699
        throw new java.io.IOException(te);
6700
      }
6701
    }
6702
 
420 ashish 6703
  }
6704
 
4600 varun.gupt 6705
  public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable   {
6706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
6707
 
6708
 
6709
 
6710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6712
;
6713
 
6714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6715
 
6716
      static {
6717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6718
          byName.put(field.getFieldName(), field);
6719
        }
6720
      }
6721
 
6722
      /**
6723
       * Find the _Fields constant that matches fieldId, or null if its not found.
6724
       */
6725
      public static _Fields findByThriftId(int fieldId) {
6726
        switch(fieldId) {
6727
          default:
6728
            return null;
6729
        }
6730
      }
6731
 
6732
      /**
6733
       * Find the _Fields constant that matches fieldId, throwing an exception
6734
       * if it is not found.
6735
       */
6736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6737
        _Fields fields = findByThriftId(fieldId);
6738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6739
        return fields;
6740
      }
6741
 
6742
      /**
6743
       * Find the _Fields constant that matches name, or null if its not found.
6744
       */
6745
      public static _Fields findByName(String name) {
6746
        return byName.get(name);
6747
      }
6748
 
6749
      private final short _thriftId;
6750
      private final String _fieldName;
6751
 
6752
      _Fields(short thriftId, String fieldName) {
6753
        _thriftId = thriftId;
6754
        _fieldName = fieldName;
6755
      }
6756
 
6757
      public short getThriftFieldId() {
6758
        return _thriftId;
6759
      }
6760
 
6761
      public String getFieldName() {
6762
        return _fieldName;
6763
      }
6764
    }
6765
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6766
    static {
6767
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
6770
    }
6771
 
6772
    public getActivePaymentGateways_args() {
6773
    }
6774
 
6775
    /**
6776
     * Performs a deep copy on <i>other</i>.
6777
     */
6778
    public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
6779
    }
6780
 
6781
    public getActivePaymentGateways_args deepCopy() {
6782
      return new getActivePaymentGateways_args(this);
6783
    }
6784
 
6785
    @Override
6786
    public void clear() {
6787
    }
6788
 
6789
    public void setFieldValue(_Fields field, Object value) {
6790
      switch (field) {
6791
      }
6792
    }
6793
 
6794
    public Object getFieldValue(_Fields field) {
6795
      switch (field) {
6796
      }
6797
      throw new IllegalStateException();
6798
    }
6799
 
6800
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6801
    public boolean isSet(_Fields field) {
6802
      if (field == null) {
6803
        throw new IllegalArgumentException();
6804
      }
6805
 
6806
      switch (field) {
6807
      }
6808
      throw new IllegalStateException();
6809
    }
6810
 
6811
    @Override
6812
    public boolean equals(Object that) {
6813
      if (that == null)
6814
        return false;
6815
      if (that instanceof getActivePaymentGateways_args)
6816
        return this.equals((getActivePaymentGateways_args)that);
6817
      return false;
6818
    }
6819
 
6820
    public boolean equals(getActivePaymentGateways_args that) {
6821
      if (that == null)
6822
        return false;
6823
 
6824
      return true;
6825
    }
6826
 
6827
    @Override
6828
    public int hashCode() {
6829
      return 0;
6830
    }
6831
 
6832
    public int compareTo(getActivePaymentGateways_args other) {
6833
      if (!getClass().equals(other.getClass())) {
6834
        return getClass().getName().compareTo(other.getClass().getName());
6835
      }
6836
 
6837
      int lastComparison = 0;
6838
      getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
6839
 
6840
      return 0;
6841
    }
6842
 
6843
    public _Fields fieldForId(int fieldId) {
6844
      return _Fields.findByThriftId(fieldId);
6845
    }
6846
 
6847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6848
      org.apache.thrift.protocol.TField field;
6849
      iprot.readStructBegin();
6850
      while (true)
6851
      {
6852
        field = iprot.readFieldBegin();
6853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6854
          break;
6855
        }
6856
        switch (field.id) {
6857
          default:
6858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6859
        }
6860
        iprot.readFieldEnd();
6861
      }
6862
      iprot.readStructEnd();
6863
      validate();
6864
    }
6865
 
6866
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6867
      validate();
6868
 
6869
      oprot.writeStructBegin(STRUCT_DESC);
6870
      oprot.writeFieldStop();
6871
      oprot.writeStructEnd();
6872
    }
6873
 
6874
    @Override
6875
    public String toString() {
6876
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
6877
      boolean first = true;
6878
 
6879
      sb.append(")");
6880
      return sb.toString();
6881
    }
6882
 
6883
    public void validate() throws org.apache.thrift.TException {
6884
      // check for required fields
6885
    }
6886
 
6887
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6888
      try {
6889
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6890
      } catch (org.apache.thrift.TException te) {
6891
        throw new java.io.IOException(te);
6892
      }
6893
    }
6894
 
6895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6896
      try {
6897
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6898
      } catch (org.apache.thrift.TException te) {
6899
        throw new java.io.IOException(te);
6900
      }
6901
    }
6902
 
6903
  }
6904
 
6905
  public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable   {
6906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
6907
 
6908
    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);
6909
    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);
6910
 
6911
    private List<PaymentGateway> success; // required
6912
    private PaymentException pe; // required
6913
 
6914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6916
      SUCCESS((short)0, "success"),
6917
      PE((short)1, "pe");
6918
 
6919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6920
 
6921
      static {
6922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6923
          byName.put(field.getFieldName(), field);
6924
        }
6925
      }
6926
 
6927
      /**
6928
       * Find the _Fields constant that matches fieldId, or null if its not found.
6929
       */
6930
      public static _Fields findByThriftId(int fieldId) {
6931
        switch(fieldId) {
6932
          case 0: // SUCCESS
6933
            return SUCCESS;
6934
          case 1: // PE
6935
            return PE;
6936
          default:
6937
            return null;
6938
        }
6939
      }
6940
 
6941
      /**
6942
       * Find the _Fields constant that matches fieldId, throwing an exception
6943
       * if it is not found.
6944
       */
6945
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6946
        _Fields fields = findByThriftId(fieldId);
6947
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6948
        return fields;
6949
      }
6950
 
6951
      /**
6952
       * Find the _Fields constant that matches name, or null if its not found.
6953
       */
6954
      public static _Fields findByName(String name) {
6955
        return byName.get(name);
6956
      }
6957
 
6958
      private final short _thriftId;
6959
      private final String _fieldName;
6960
 
6961
      _Fields(short thriftId, String fieldName) {
6962
        _thriftId = thriftId;
6963
        _fieldName = fieldName;
6964
      }
6965
 
6966
      public short getThriftFieldId() {
6967
        return _thriftId;
6968
      }
6969
 
6970
      public String getFieldName() {
6971
        return _fieldName;
6972
      }
6973
    }
6974
 
6975
    // isset id assignments
6976
 
6977
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6978
    static {
6979
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6980
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6981
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6982
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
6983
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6985
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6986
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
6987
    }
6988
 
6989
    public getActivePaymentGateways_result() {
6990
    }
6991
 
6992
    public getActivePaymentGateways_result(
6993
      List<PaymentGateway> success,
6994
      PaymentException pe)
6995
    {
6996
      this();
6997
      this.success = success;
6998
      this.pe = pe;
6999
    }
7000
 
7001
    /**
7002
     * Performs a deep copy on <i>other</i>.
7003
     */
7004
    public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
7005
      if (other.isSetSuccess()) {
7006
        List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
7007
        for (PaymentGateway other_element : other.success) {
7008
          __this__success.add(new PaymentGateway(other_element));
7009
        }
7010
        this.success = __this__success;
7011
      }
7012
      if (other.isSetPe()) {
7013
        this.pe = new PaymentException(other.pe);
7014
      }
7015
    }
7016
 
7017
    public getActivePaymentGateways_result deepCopy() {
7018
      return new getActivePaymentGateways_result(this);
7019
    }
7020
 
7021
    @Override
7022
    public void clear() {
7023
      this.success = null;
7024
      this.pe = null;
7025
    }
7026
 
7027
    public int getSuccessSize() {
7028
      return (this.success == null) ? 0 : this.success.size();
7029
    }
7030
 
7031
    public java.util.Iterator<PaymentGateway> getSuccessIterator() {
7032
      return (this.success == null) ? null : this.success.iterator();
7033
    }
7034
 
7035
    public void addToSuccess(PaymentGateway elem) {
7036
      if (this.success == null) {
7037
        this.success = new ArrayList<PaymentGateway>();
7038
      }
7039
      this.success.add(elem);
7040
    }
7041
 
7042
    public List<PaymentGateway> getSuccess() {
7043
      return this.success;
7044
    }
7045
 
7046
    public void setSuccess(List<PaymentGateway> success) {
7047
      this.success = success;
7048
    }
7049
 
7050
    public void unsetSuccess() {
7051
      this.success = null;
7052
    }
7053
 
7054
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7055
    public boolean isSetSuccess() {
7056
      return this.success != null;
7057
    }
7058
 
7059
    public void setSuccessIsSet(boolean value) {
7060
      if (!value) {
7061
        this.success = null;
7062
      }
7063
    }
7064
 
7065
    public PaymentException getPe() {
7066
      return this.pe;
7067
    }
7068
 
7069
    public void setPe(PaymentException pe) {
7070
      this.pe = pe;
7071
    }
7072
 
7073
    public void unsetPe() {
7074
      this.pe = null;
7075
    }
7076
 
7077
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
7078
    public boolean isSetPe() {
7079
      return this.pe != null;
7080
    }
7081
 
7082
    public void setPeIsSet(boolean value) {
7083
      if (!value) {
7084
        this.pe = null;
7085
      }
7086
    }
7087
 
7088
    public void setFieldValue(_Fields field, Object value) {
7089
      switch (field) {
7090
      case SUCCESS:
7091
        if (value == null) {
7092
          unsetSuccess();
7093
        } else {
7094
          setSuccess((List<PaymentGateway>)value);
7095
        }
7096
        break;
7097
 
7098
      case PE:
7099
        if (value == null) {
7100
          unsetPe();
7101
        } else {
7102
          setPe((PaymentException)value);
7103
        }
7104
        break;
7105
 
7106
      }
7107
    }
7108
 
7109
    public Object getFieldValue(_Fields field) {
7110
      switch (field) {
7111
      case SUCCESS:
7112
        return getSuccess();
7113
 
7114
      case PE:
7115
        return getPe();
7116
 
7117
      }
7118
      throw new IllegalStateException();
7119
    }
7120
 
7121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7122
    public boolean isSet(_Fields field) {
7123
      if (field == null) {
7124
        throw new IllegalArgumentException();
7125
      }
7126
 
7127
      switch (field) {
7128
      case SUCCESS:
7129
        return isSetSuccess();
7130
      case PE:
7131
        return isSetPe();
7132
      }
7133
      throw new IllegalStateException();
7134
    }
7135
 
7136
    @Override
7137
    public boolean equals(Object that) {
7138
      if (that == null)
7139
        return false;
7140
      if (that instanceof getActivePaymentGateways_result)
7141
        return this.equals((getActivePaymentGateways_result)that);
7142
      return false;
7143
    }
7144
 
7145
    public boolean equals(getActivePaymentGateways_result that) {
7146
      if (that == null)
7147
        return false;
7148
 
7149
      boolean this_present_success = true && this.isSetSuccess();
7150
      boolean that_present_success = true && that.isSetSuccess();
7151
      if (this_present_success || that_present_success) {
7152
        if (!(this_present_success && that_present_success))
7153
          return false;
7154
        if (!this.success.equals(that.success))
7155
          return false;
7156
      }
7157
 
7158
      boolean this_present_pe = true && this.isSetPe();
7159
      boolean that_present_pe = true && that.isSetPe();
7160
      if (this_present_pe || that_present_pe) {
7161
        if (!(this_present_pe && that_present_pe))
7162
          return false;
7163
        if (!this.pe.equals(that.pe))
7164
          return false;
7165
      }
7166
 
7167
      return true;
7168
    }
7169
 
7170
    @Override
7171
    public int hashCode() {
7172
      return 0;
7173
    }
7174
 
7175
    public int compareTo(getActivePaymentGateways_result other) {
7176
      if (!getClass().equals(other.getClass())) {
7177
        return getClass().getName().compareTo(other.getClass().getName());
7178
      }
7179
 
7180
      int lastComparison = 0;
7181
      getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
7182
 
7183
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7184
      if (lastComparison != 0) {
7185
        return lastComparison;
7186
      }
7187
      if (isSetSuccess()) {
7188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7189
        if (lastComparison != 0) {
7190
          return lastComparison;
7191
        }
7192
      }
7193
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
7194
      if (lastComparison != 0) {
7195
        return lastComparison;
7196
      }
7197
      if (isSetPe()) {
7198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7199
        if (lastComparison != 0) {
7200
          return lastComparison;
7201
        }
7202
      }
7203
      return 0;
7204
    }
7205
 
7206
    public _Fields fieldForId(int fieldId) {
7207
      return _Fields.findByThriftId(fieldId);
7208
    }
7209
 
7210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7211
      org.apache.thrift.protocol.TField field;
7212
      iprot.readStructBegin();
7213
      while (true)
7214
      {
7215
        field = iprot.readFieldBegin();
7216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7217
          break;
7218
        }
7219
        switch (field.id) {
7220
          case 0: // SUCCESS
7221
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7222
              {
7223
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
7224
                this.success = new ArrayList<PaymentGateway>(_list24.size);
7225
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7226
                {
7227
                  PaymentGateway _elem26; // required
7228
                  _elem26 = new PaymentGateway();
7229
                  _elem26.read(iprot);
7230
                  this.success.add(_elem26);
7231
                }
7232
                iprot.readListEnd();
7233
              }
7234
            } else { 
7235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7236
            }
7237
            break;
7238
          case 1: // PE
7239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7240
              this.pe = new PaymentException();
7241
              this.pe.read(iprot);
7242
            } else { 
7243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7244
            }
7245
            break;
7246
          default:
7247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7248
        }
7249
        iprot.readFieldEnd();
7250
      }
7251
      iprot.readStructEnd();
7252
      validate();
7253
    }
7254
 
7255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7256
      oprot.writeStructBegin(STRUCT_DESC);
7257
 
7258
      if (this.isSetSuccess()) {
7259
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7260
        {
7261
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7262
          for (PaymentGateway _iter27 : this.success)
7263
          {
7264
            _iter27.write(oprot);
7265
          }
7266
          oprot.writeListEnd();
7267
        }
7268
        oprot.writeFieldEnd();
7269
      } else if (this.isSetPe()) {
7270
        oprot.writeFieldBegin(PE_FIELD_DESC);
7271
        this.pe.write(oprot);
7272
        oprot.writeFieldEnd();
7273
      }
7274
      oprot.writeFieldStop();
7275
      oprot.writeStructEnd();
7276
    }
7277
 
7278
    @Override
7279
    public String toString() {
7280
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
7281
      boolean first = true;
7282
 
7283
      sb.append("success:");
7284
      if (this.success == null) {
7285
        sb.append("null");
7286
      } else {
7287
        sb.append(this.success);
7288
      }
7289
      first = false;
7290
      if (!first) sb.append(", ");
7291
      sb.append("pe:");
7292
      if (this.pe == null) {
7293
        sb.append("null");
7294
      } else {
7295
        sb.append(this.pe);
7296
      }
7297
      first = false;
7298
      sb.append(")");
7299
      return sb.toString();
7300
    }
7301
 
7302
    public void validate() throws org.apache.thrift.TException {
7303
      // check for required fields
7304
    }
7305
 
7306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7307
      try {
7308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7309
      } catch (org.apache.thrift.TException te) {
7310
        throw new java.io.IOException(te);
7311
      }
7312
    }
7313
 
7314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7315
      try {
7316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7317
      } catch (org.apache.thrift.TException te) {
7318
        throw new java.io.IOException(te);
7319
      }
7320
    }
7321
 
7322
  }
7323
 
3430 rajveer 7324
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
7325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
420 ashish 7326
 
3430 rajveer 7327
    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 7328
 
3430 rajveer 7329
    private long id; // required
420 ashish 7330
 
7331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7333
      ID((short)1, "id");
7334
 
7335
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7336
 
7337
      static {
7338
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7339
          byName.put(field.getFieldName(), field);
7340
        }
7341
      }
7342
 
7343
      /**
7344
       * Find the _Fields constant that matches fieldId, or null if its not found.
7345
       */
7346
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7347
        switch(fieldId) {
7348
          case 1: // ID
7349
            return ID;
7350
          default:
7351
            return null;
7352
        }
420 ashish 7353
      }
7354
 
7355
      /**
7356
       * Find the _Fields constant that matches fieldId, throwing an exception
7357
       * if it is not found.
7358
       */
7359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7360
        _Fields fields = findByThriftId(fieldId);
7361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7362
        return fields;
7363
      }
7364
 
7365
      /**
7366
       * Find the _Fields constant that matches name, or null if its not found.
7367
       */
7368
      public static _Fields findByName(String name) {
7369
        return byName.get(name);
7370
      }
7371
 
7372
      private final short _thriftId;
7373
      private final String _fieldName;
7374
 
7375
      _Fields(short thriftId, String fieldName) {
7376
        _thriftId = thriftId;
7377
        _fieldName = fieldName;
7378
      }
7379
 
7380
      public short getThriftFieldId() {
7381
        return _thriftId;
7382
      }
7383
 
7384
      public String getFieldName() {
7385
        return _fieldName;
7386
      }
7387
    }
7388
 
7389
    // isset id assignments
7390
    private static final int __ID_ISSET_ID = 0;
7391
    private BitSet __isset_bit_vector = new BitSet(1);
7392
 
3430 rajveer 7393
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7394
    static {
3430 rajveer 7395
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7396
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
420 ashish 7400
    }
7401
 
695 rajveer 7402
    public getPayment_args() {
420 ashish 7403
    }
7404
 
695 rajveer 7405
    public getPayment_args(
420 ashish 7406
      long id)
7407
    {
7408
      this();
7409
      this.id = id;
7410
      setIdIsSet(true);
7411
    }
7412
 
7413
    /**
7414
     * Performs a deep copy on <i>other</i>.
7415
     */
695 rajveer 7416
    public getPayment_args(getPayment_args other) {
420 ashish 7417
      __isset_bit_vector.clear();
7418
      __isset_bit_vector.or(other.__isset_bit_vector);
7419
      this.id = other.id;
7420
    }
7421
 
695 rajveer 7422
    public getPayment_args deepCopy() {
7423
      return new getPayment_args(this);
420 ashish 7424
    }
7425
 
3430 rajveer 7426
    @Override
7427
    public void clear() {
7428
      setIdIsSet(false);
7429
      this.id = 0;
420 ashish 7430
    }
7431
 
7432
    public long getId() {
7433
      return this.id;
7434
    }
7435
 
3430 rajveer 7436
    public void setId(long id) {
420 ashish 7437
      this.id = id;
7438
      setIdIsSet(true);
7439
    }
7440
 
7441
    public void unsetId() {
7442
      __isset_bit_vector.clear(__ID_ISSET_ID);
7443
    }
7444
 
3430 rajveer 7445
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 7446
    public boolean isSetId() {
7447
      return __isset_bit_vector.get(__ID_ISSET_ID);
7448
    }
7449
 
7450
    public void setIdIsSet(boolean value) {
7451
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7452
    }
7453
 
7454
    public void setFieldValue(_Fields field, Object value) {
7455
      switch (field) {
7456
      case ID:
7457
        if (value == null) {
7458
          unsetId();
7459
        } else {
7460
          setId((Long)value);
7461
        }
7462
        break;
7463
 
7464
      }
7465
    }
7466
 
7467
    public Object getFieldValue(_Fields field) {
7468
      switch (field) {
7469
      case ID:
3430 rajveer 7470
        return Long.valueOf(getId());
420 ashish 7471
 
7472
      }
7473
      throw new IllegalStateException();
7474
    }
7475
 
3430 rajveer 7476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7477
    public boolean isSet(_Fields field) {
7478
      if (field == null) {
7479
        throw new IllegalArgumentException();
7480
      }
420 ashish 7481
 
7482
      switch (field) {
7483
      case ID:
7484
        return isSetId();
7485
      }
7486
      throw new IllegalStateException();
7487
    }
7488
 
7489
    @Override
7490
    public boolean equals(Object that) {
7491
      if (that == null)
7492
        return false;
695 rajveer 7493
      if (that instanceof getPayment_args)
7494
        return this.equals((getPayment_args)that);
420 ashish 7495
      return false;
7496
    }
7497
 
695 rajveer 7498
    public boolean equals(getPayment_args that) {
420 ashish 7499
      if (that == null)
7500
        return false;
7501
 
7502
      boolean this_present_id = true;
7503
      boolean that_present_id = true;
7504
      if (this_present_id || that_present_id) {
7505
        if (!(this_present_id && that_present_id))
7506
          return false;
7507
        if (this.id != that.id)
7508
          return false;
7509
      }
7510
 
7511
      return true;
7512
    }
7513
 
7514
    @Override
7515
    public int hashCode() {
7516
      return 0;
7517
    }
7518
 
695 rajveer 7519
    public int compareTo(getPayment_args other) {
420 ashish 7520
      if (!getClass().equals(other.getClass())) {
7521
        return getClass().getName().compareTo(other.getClass().getName());
7522
      }
7523
 
7524
      int lastComparison = 0;
695 rajveer 7525
      getPayment_args typedOther = (getPayment_args)other;
420 ashish 7526
 
3430 rajveer 7527
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 7528
      if (lastComparison != 0) {
7529
        return lastComparison;
7530
      }
3430 rajveer 7531
      if (isSetId()) {
7532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7533
        if (lastComparison != 0) {
7534
          return lastComparison;
7535
        }
420 ashish 7536
      }
7537
      return 0;
7538
    }
7539
 
3430 rajveer 7540
    public _Fields fieldForId(int fieldId) {
7541
      return _Fields.findByThriftId(fieldId);
7542
    }
7543
 
7544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7545
      org.apache.thrift.protocol.TField field;
420 ashish 7546
      iprot.readStructBegin();
7547
      while (true)
7548
      {
7549
        field = iprot.readFieldBegin();
3430 rajveer 7550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7551
          break;
7552
        }
3430 rajveer 7553
        switch (field.id) {
7554
          case 1: // ID
7555
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7556
              this.id = iprot.readI64();
7557
              setIdIsSet(true);
7558
            } else { 
7559
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7560
            }
7561
            break;
7562
          default:
7563
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7564
        }
3430 rajveer 7565
        iprot.readFieldEnd();
420 ashish 7566
      }
7567
      iprot.readStructEnd();
7568
      validate();
7569
    }
7570
 
3430 rajveer 7571
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7572
      validate();
7573
 
7574
      oprot.writeStructBegin(STRUCT_DESC);
7575
      oprot.writeFieldBegin(ID_FIELD_DESC);
7576
      oprot.writeI64(this.id);
7577
      oprot.writeFieldEnd();
7578
      oprot.writeFieldStop();
7579
      oprot.writeStructEnd();
7580
    }
7581
 
7582
    @Override
7583
    public String toString() {
695 rajveer 7584
      StringBuilder sb = new StringBuilder("getPayment_args(");
420 ashish 7585
      boolean first = true;
7586
 
7587
      sb.append("id:");
7588
      sb.append(this.id);
7589
      first = false;
7590
      sb.append(")");
7591
      return sb.toString();
7592
    }
7593
 
3430 rajveer 7594
    public void validate() throws org.apache.thrift.TException {
420 ashish 7595
      // check for required fields
7596
    }
7597
 
3430 rajveer 7598
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7599
      try {
7600
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7601
      } catch (org.apache.thrift.TException te) {
7602
        throw new java.io.IOException(te);
7603
      }
7604
    }
7605
 
7606
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7607
      try {
7608
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7609
        __isset_bit_vector = new BitSet(1);
7610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7611
      } catch (org.apache.thrift.TException te) {
7612
        throw new java.io.IOException(te);
7613
      }
7614
    }
7615
 
420 ashish 7616
  }
7617
 
3430 rajveer 7618
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
7619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
420 ashish 7620
 
3430 rajveer 7621
    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);
7622
    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 7623
 
3430 rajveer 7624
    private Payment success; // required
7625
    private PaymentException pe; // required
420 ashish 7626
 
7627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7629
      SUCCESS((short)0, "success"),
7630
      PE((short)1, "pe");
7631
 
7632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7633
 
7634
      static {
7635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7636
          byName.put(field.getFieldName(), field);
7637
        }
7638
      }
7639
 
7640
      /**
7641
       * Find the _Fields constant that matches fieldId, or null if its not found.
7642
       */
7643
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7644
        switch(fieldId) {
7645
          case 0: // SUCCESS
7646
            return SUCCESS;
7647
          case 1: // PE
7648
            return PE;
7649
          default:
7650
            return null;
7651
        }
420 ashish 7652
      }
7653
 
7654
      /**
7655
       * Find the _Fields constant that matches fieldId, throwing an exception
7656
       * if it is not found.
7657
       */
7658
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7659
        _Fields fields = findByThriftId(fieldId);
7660
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7661
        return fields;
7662
      }
7663
 
7664
      /**
7665
       * Find the _Fields constant that matches name, or null if its not found.
7666
       */
7667
      public static _Fields findByName(String name) {
7668
        return byName.get(name);
7669
      }
7670
 
7671
      private final short _thriftId;
7672
      private final String _fieldName;
7673
 
7674
      _Fields(short thriftId, String fieldName) {
7675
        _thriftId = thriftId;
7676
        _fieldName = fieldName;
7677
      }
7678
 
7679
      public short getThriftFieldId() {
7680
        return _thriftId;
7681
      }
7682
 
7683
      public String getFieldName() {
7684
        return _fieldName;
7685
      }
7686
    }
7687
 
7688
    // isset id assignments
7689
 
3430 rajveer 7690
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7691
    static {
3430 rajveer 7692
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7693
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7694
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
7695
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7697
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7698
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
420 ashish 7699
    }
7700
 
695 rajveer 7701
    public getPayment_result() {
420 ashish 7702
    }
7703
 
695 rajveer 7704
    public getPayment_result(
7705
      Payment success,
420 ashish 7706
      PaymentException pe)
7707
    {
7708
      this();
7709
      this.success = success;
7710
      this.pe = pe;
7711
    }
7712
 
7713
    /**
7714
     * Performs a deep copy on <i>other</i>.
7715
     */
695 rajveer 7716
    public getPayment_result(getPayment_result other) {
420 ashish 7717
      if (other.isSetSuccess()) {
695 rajveer 7718
        this.success = new Payment(other.success);
420 ashish 7719
      }
7720
      if (other.isSetPe()) {
7721
        this.pe = new PaymentException(other.pe);
7722
      }
7723
    }
7724
 
695 rajveer 7725
    public getPayment_result deepCopy() {
7726
      return new getPayment_result(this);
420 ashish 7727
    }
7728
 
3430 rajveer 7729
    @Override
7730
    public void clear() {
7731
      this.success = null;
7732
      this.pe = null;
420 ashish 7733
    }
7734
 
695 rajveer 7735
    public Payment getSuccess() {
420 ashish 7736
      return this.success;
7737
    }
7738
 
3430 rajveer 7739
    public void setSuccess(Payment success) {
420 ashish 7740
      this.success = success;
7741
    }
7742
 
7743
    public void unsetSuccess() {
7744
      this.success = null;
7745
    }
7746
 
3430 rajveer 7747
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 7748
    public boolean isSetSuccess() {
7749
      return this.success != null;
7750
    }
7751
 
7752
    public void setSuccessIsSet(boolean value) {
7753
      if (!value) {
7754
        this.success = null;
7755
      }
7756
    }
7757
 
7758
    public PaymentException getPe() {
7759
      return this.pe;
7760
    }
7761
 
3430 rajveer 7762
    public void setPe(PaymentException pe) {
420 ashish 7763
      this.pe = pe;
7764
    }
7765
 
7766
    public void unsetPe() {
7767
      this.pe = null;
7768
    }
7769
 
3430 rajveer 7770
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 7771
    public boolean isSetPe() {
7772
      return this.pe != null;
7773
    }
7774
 
7775
    public void setPeIsSet(boolean value) {
7776
      if (!value) {
7777
        this.pe = null;
7778
      }
7779
    }
7780
 
7781
    public void setFieldValue(_Fields field, Object value) {
7782
      switch (field) {
7783
      case SUCCESS:
7784
        if (value == null) {
7785
          unsetSuccess();
7786
        } else {
695 rajveer 7787
          setSuccess((Payment)value);
420 ashish 7788
        }
7789
        break;
7790
 
7791
      case PE:
7792
        if (value == null) {
7793
          unsetPe();
7794
        } else {
7795
          setPe((PaymentException)value);
7796
        }
7797
        break;
7798
 
7799
      }
7800
    }
7801
 
7802
    public Object getFieldValue(_Fields field) {
7803
      switch (field) {
7804
      case SUCCESS:
7805
        return getSuccess();
7806
 
7807
      case PE:
7808
        return getPe();
7809
 
7810
      }
7811
      throw new IllegalStateException();
7812
    }
7813
 
3430 rajveer 7814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7815
    public boolean isSet(_Fields field) {
7816
      if (field == null) {
7817
        throw new IllegalArgumentException();
7818
      }
420 ashish 7819
 
7820
      switch (field) {
7821
      case SUCCESS:
7822
        return isSetSuccess();
7823
      case PE:
7824
        return isSetPe();
7825
      }
7826
      throw new IllegalStateException();
7827
    }
7828
 
7829
    @Override
7830
    public boolean equals(Object that) {
7831
      if (that == null)
7832
        return false;
695 rajveer 7833
      if (that instanceof getPayment_result)
7834
        return this.equals((getPayment_result)that);
420 ashish 7835
      return false;
7836
    }
7837
 
695 rajveer 7838
    public boolean equals(getPayment_result that) {
420 ashish 7839
      if (that == null)
7840
        return false;
7841
 
7842
      boolean this_present_success = true && this.isSetSuccess();
7843
      boolean that_present_success = true && that.isSetSuccess();
7844
      if (this_present_success || that_present_success) {
7845
        if (!(this_present_success && that_present_success))
7846
          return false;
7847
        if (!this.success.equals(that.success))
7848
          return false;
7849
      }
7850
 
7851
      boolean this_present_pe = true && this.isSetPe();
7852
      boolean that_present_pe = true && that.isSetPe();
7853
      if (this_present_pe || that_present_pe) {
7854
        if (!(this_present_pe && that_present_pe))
7855
          return false;
7856
        if (!this.pe.equals(that.pe))
7857
          return false;
7858
      }
7859
 
7860
      return true;
7861
    }
7862
 
7863
    @Override
7864
    public int hashCode() {
7865
      return 0;
7866
    }
7867
 
695 rajveer 7868
    public int compareTo(getPayment_result other) {
420 ashish 7869
      if (!getClass().equals(other.getClass())) {
7870
        return getClass().getName().compareTo(other.getClass().getName());
7871
      }
7872
 
7873
      int lastComparison = 0;
695 rajveer 7874
      getPayment_result typedOther = (getPayment_result)other;
420 ashish 7875
 
3430 rajveer 7876
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 7877
      if (lastComparison != 0) {
7878
        return lastComparison;
7879
      }
3430 rajveer 7880
      if (isSetSuccess()) {
7881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7882
        if (lastComparison != 0) {
7883
          return lastComparison;
7884
        }
420 ashish 7885
      }
3430 rajveer 7886
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 7887
      if (lastComparison != 0) {
7888
        return lastComparison;
7889
      }
3430 rajveer 7890
      if (isSetPe()) {
7891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7892
        if (lastComparison != 0) {
7893
          return lastComparison;
7894
        }
420 ashish 7895
      }
7896
      return 0;
7897
    }
7898
 
3430 rajveer 7899
    public _Fields fieldForId(int fieldId) {
7900
      return _Fields.findByThriftId(fieldId);
7901
    }
7902
 
7903
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7904
      org.apache.thrift.protocol.TField field;
420 ashish 7905
      iprot.readStructBegin();
7906
      while (true)
7907
      {
7908
        field = iprot.readFieldBegin();
3430 rajveer 7909
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7910
          break;
7911
        }
3430 rajveer 7912
        switch (field.id) {
7913
          case 0: // SUCCESS
7914
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7915
              this.success = new Payment();
7916
              this.success.read(iprot);
7917
            } else { 
7918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7919
            }
7920
            break;
7921
          case 1: // PE
7922
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7923
              this.pe = new PaymentException();
7924
              this.pe.read(iprot);
7925
            } else { 
7926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7927
            }
7928
            break;
7929
          default:
7930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7931
        }
3430 rajveer 7932
        iprot.readFieldEnd();
420 ashish 7933
      }
7934
      iprot.readStructEnd();
7935
      validate();
7936
    }
7937
 
3430 rajveer 7938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7939
      oprot.writeStructBegin(STRUCT_DESC);
7940
 
695 rajveer 7941
      if (this.isSetSuccess()) {
7942
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7943
        this.success.write(oprot);
7944
        oprot.writeFieldEnd();
7945
      } else if (this.isSetPe()) {
420 ashish 7946
        oprot.writeFieldBegin(PE_FIELD_DESC);
7947
        this.pe.write(oprot);
7948
        oprot.writeFieldEnd();
7949
      }
7950
      oprot.writeFieldStop();
7951
      oprot.writeStructEnd();
7952
    }
7953
 
7954
    @Override
7955
    public String toString() {
695 rajveer 7956
      StringBuilder sb = new StringBuilder("getPayment_result(");
420 ashish 7957
      boolean first = true;
7958
 
695 rajveer 7959
      sb.append("success:");
7960
      if (this.success == null) {
7961
        sb.append("null");
7962
      } else {
7963
        sb.append(this.success);
7964
      }
7965
      first = false;
7966
      if (!first) sb.append(", ");
420 ashish 7967
      sb.append("pe:");
7968
      if (this.pe == null) {
7969
        sb.append("null");
7970
      } else {
7971
        sb.append(this.pe);
7972
      }
7973
      first = false;
7974
      sb.append(")");
7975
      return sb.toString();
7976
    }
7977
 
3430 rajveer 7978
    public void validate() throws org.apache.thrift.TException {
420 ashish 7979
      // check for required fields
7980
    }
7981
 
3430 rajveer 7982
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7983
      try {
7984
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7985
      } catch (org.apache.thrift.TException te) {
7986
        throw new java.io.IOException(te);
7987
      }
7988
    }
7989
 
7990
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7991
      try {
7992
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7993
      } catch (org.apache.thrift.TException te) {
7994
        throw new java.io.IOException(te);
7995
      }
7996
    }
7997
 
420 ashish 7998
  }
7999
 
3430 rajveer 8000
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8001
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
420 ashish 8002
 
3430 rajveer 8003
    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 8004
 
3430 rajveer 8005
    private long txnId; // required
420 ashish 8006
 
8007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8008
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 8009
      TXN_ID((short)1, "txnId");
420 ashish 8010
 
8011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8012
 
8013
      static {
8014
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8015
          byName.put(field.getFieldName(), field);
8016
        }
8017
      }
8018
 
8019
      /**
8020
       * Find the _Fields constant that matches fieldId, or null if its not found.
8021
       */
8022
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8023
        switch(fieldId) {
8024
          case 1: // TXN_ID
8025
            return TXN_ID;
8026
          default:
8027
            return null;
8028
        }
420 ashish 8029
      }
8030
 
8031
      /**
8032
       * Find the _Fields constant that matches fieldId, throwing an exception
8033
       * if it is not found.
8034
       */
8035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8036
        _Fields fields = findByThriftId(fieldId);
8037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8038
        return fields;
8039
      }
8040
 
8041
      /**
8042
       * Find the _Fields constant that matches name, or null if its not found.
8043
       */
8044
      public static _Fields findByName(String name) {
8045
        return byName.get(name);
8046
      }
8047
 
8048
      private final short _thriftId;
8049
      private final String _fieldName;
8050
 
8051
      _Fields(short thriftId, String fieldName) {
8052
        _thriftId = thriftId;
8053
        _fieldName = fieldName;
8054
      }
8055
 
8056
      public short getThriftFieldId() {
8057
        return _thriftId;
8058
      }
8059
 
8060
      public String getFieldName() {
8061
        return _fieldName;
8062
      }
8063
    }
8064
 
8065
    // isset id assignments
695 rajveer 8066
    private static final int __TXNID_ISSET_ID = 0;
420 ashish 8067
    private BitSet __isset_bit_vector = new BitSet(1);
8068
 
3430 rajveer 8069
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8070
    static {
3430 rajveer 8071
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8072
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8073
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8074
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8075
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
420 ashish 8076
    }
8077
 
695 rajveer 8078
    public getPaymentForTxnId_args() {
420 ashish 8079
    }
8080
 
695 rajveer 8081
    public getPaymentForTxnId_args(
8082
      long txnId)
420 ashish 8083
    {
8084
      this();
695 rajveer 8085
      this.txnId = txnId;
8086
      setTxnIdIsSet(true);
420 ashish 8087
    }
8088
 
8089
    /**
8090
     * Performs a deep copy on <i>other</i>.
8091
     */
695 rajveer 8092
    public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
420 ashish 8093
      __isset_bit_vector.clear();
8094
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 8095
      this.txnId = other.txnId;
420 ashish 8096
    }
8097
 
695 rajveer 8098
    public getPaymentForTxnId_args deepCopy() {
8099
      return new getPaymentForTxnId_args(this);
420 ashish 8100
    }
8101
 
3430 rajveer 8102
    @Override
8103
    public void clear() {
8104
      setTxnIdIsSet(false);
8105
      this.txnId = 0;
420 ashish 8106
    }
8107
 
695 rajveer 8108
    public long getTxnId() {
8109
      return this.txnId;
420 ashish 8110
    }
8111
 
3430 rajveer 8112
    public void setTxnId(long txnId) {
695 rajveer 8113
      this.txnId = txnId;
8114
      setTxnIdIsSet(true);
420 ashish 8115
    }
8116
 
695 rajveer 8117
    public void unsetTxnId() {
8118
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
420 ashish 8119
    }
8120
 
3430 rajveer 8121
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 8122
    public boolean isSetTxnId() {
8123
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
420 ashish 8124
    }
8125
 
695 rajveer 8126
    public void setTxnIdIsSet(boolean value) {
8127
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
420 ashish 8128
    }
8129
 
8130
    public void setFieldValue(_Fields field, Object value) {
8131
      switch (field) {
695 rajveer 8132
      case TXN_ID:
420 ashish 8133
        if (value == null) {
695 rajveer 8134
          unsetTxnId();
420 ashish 8135
        } else {
695 rajveer 8136
          setTxnId((Long)value);
420 ashish 8137
        }
8138
        break;
8139
 
8140
      }
8141
    }
8142
 
8143
    public Object getFieldValue(_Fields field) {
8144
      switch (field) {
695 rajveer 8145
      case TXN_ID:
3430 rajveer 8146
        return Long.valueOf(getTxnId());
420 ashish 8147
 
8148
      }
8149
      throw new IllegalStateException();
8150
    }
8151
 
3430 rajveer 8152
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8153
    public boolean isSet(_Fields field) {
8154
      if (field == null) {
8155
        throw new IllegalArgumentException();
8156
      }
420 ashish 8157
 
8158
      switch (field) {
695 rajveer 8159
      case TXN_ID:
8160
        return isSetTxnId();
420 ashish 8161
      }
8162
      throw new IllegalStateException();
8163
    }
8164
 
8165
    @Override
8166
    public boolean equals(Object that) {
8167
      if (that == null)
8168
        return false;
695 rajveer 8169
      if (that instanceof getPaymentForTxnId_args)
8170
        return this.equals((getPaymentForTxnId_args)that);
420 ashish 8171
      return false;
8172
    }
8173
 
695 rajveer 8174
    public boolean equals(getPaymentForTxnId_args that) {
420 ashish 8175
      if (that == null)
8176
        return false;
8177
 
695 rajveer 8178
      boolean this_present_txnId = true;
8179
      boolean that_present_txnId = true;
8180
      if (this_present_txnId || that_present_txnId) {
8181
        if (!(this_present_txnId && that_present_txnId))
420 ashish 8182
          return false;
695 rajveer 8183
        if (this.txnId != that.txnId)
420 ashish 8184
          return false;
8185
      }
8186
 
8187
      return true;
8188
    }
8189
 
8190
    @Override
8191
    public int hashCode() {
8192
      return 0;
8193
    }
8194
 
695 rajveer 8195
    public int compareTo(getPaymentForTxnId_args other) {
420 ashish 8196
      if (!getClass().equals(other.getClass())) {
8197
        return getClass().getName().compareTo(other.getClass().getName());
8198
      }
8199
 
8200
      int lastComparison = 0;
695 rajveer 8201
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
420 ashish 8202
 
3430 rajveer 8203
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
420 ashish 8204
      if (lastComparison != 0) {
8205
        return lastComparison;
8206
      }
3430 rajveer 8207
      if (isSetTxnId()) {
8208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8209
        if (lastComparison != 0) {
8210
          return lastComparison;
8211
        }
420 ashish 8212
      }
8213
      return 0;
8214
    }
8215
 
3430 rajveer 8216
    public _Fields fieldForId(int fieldId) {
8217
      return _Fields.findByThriftId(fieldId);
8218
    }
8219
 
8220
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8221
      org.apache.thrift.protocol.TField field;
420 ashish 8222
      iprot.readStructBegin();
8223
      while (true)
8224
      {
8225
        field = iprot.readFieldBegin();
3430 rajveer 8226
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8227
          break;
8228
        }
3430 rajveer 8229
        switch (field.id) {
8230
          case 1: // TXN_ID
8231
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8232
              this.txnId = iprot.readI64();
8233
              setTxnIdIsSet(true);
8234
            } else { 
8235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8236
            }
8237
            break;
8238
          default:
8239
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8240
        }
3430 rajveer 8241
        iprot.readFieldEnd();
420 ashish 8242
      }
8243
      iprot.readStructEnd();
8244
      validate();
8245
    }
8246
 
3430 rajveer 8247
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8248
      validate();
8249
 
8250
      oprot.writeStructBegin(STRUCT_DESC);
695 rajveer 8251
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8252
      oprot.writeI64(this.txnId);
420 ashish 8253
      oprot.writeFieldEnd();
8254
      oprot.writeFieldStop();
8255
      oprot.writeStructEnd();
8256
    }
8257
 
8258
    @Override
8259
    public String toString() {
695 rajveer 8260
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
420 ashish 8261
      boolean first = true;
8262
 
695 rajveer 8263
      sb.append("txnId:");
8264
      sb.append(this.txnId);
420 ashish 8265
      first = false;
8266
      sb.append(")");
8267
      return sb.toString();
8268
    }
8269
 
3430 rajveer 8270
    public void validate() throws org.apache.thrift.TException {
420 ashish 8271
      // check for required fields
8272
    }
8273
 
3430 rajveer 8274
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8275
      try {
8276
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8277
      } catch (org.apache.thrift.TException te) {
8278
        throw new java.io.IOException(te);
8279
      }
8280
    }
8281
 
8282
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8283
      try {
8284
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8285
        __isset_bit_vector = new BitSet(1);
8286
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8287
      } catch (org.apache.thrift.TException te) {
8288
        throw new java.io.IOException(te);
8289
      }
8290
    }
8291
 
420 ashish 8292
  }
8293
 
3430 rajveer 8294
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
8295
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
420 ashish 8296
 
3430 rajveer 8297
    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);
8298
    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 8299
 
3430 rajveer 8300
    private List<Payment> success; // required
8301
    private PaymentException pe; // required
420 ashish 8302
 
8303
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8304
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 8305
      SUCCESS((short)0, "success"),
8306
      PE((short)1, "pe");
8307
 
8308
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8309
 
8310
      static {
8311
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8312
          byName.put(field.getFieldName(), field);
8313
        }
8314
      }
8315
 
8316
      /**
8317
       * Find the _Fields constant that matches fieldId, or null if its not found.
8318
       */
8319
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8320
        switch(fieldId) {
8321
          case 0: // SUCCESS
8322
            return SUCCESS;
8323
          case 1: // PE
8324
            return PE;
8325
          default:
8326
            return null;
8327
        }
420 ashish 8328
      }
8329
 
8330
      /**
8331
       * Find the _Fields constant that matches fieldId, throwing an exception
8332
       * if it is not found.
8333
       */
8334
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8335
        _Fields fields = findByThriftId(fieldId);
8336
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8337
        return fields;
8338
      }
8339
 
8340
      /**
8341
       * Find the _Fields constant that matches name, or null if its not found.
8342
       */
8343
      public static _Fields findByName(String name) {
8344
        return byName.get(name);
8345
      }
8346
 
8347
      private final short _thriftId;
8348
      private final String _fieldName;
8349
 
8350
      _Fields(short thriftId, String fieldName) {
8351
        _thriftId = thriftId;
8352
        _fieldName = fieldName;
8353
      }
8354
 
8355
      public short getThriftFieldId() {
8356
        return _thriftId;
8357
      }
8358
 
8359
      public String getFieldName() {
8360
        return _fieldName;
8361
      }
8362
    }
8363
 
8364
    // isset id assignments
8365
 
3430 rajveer 8366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8367
    static {
3430 rajveer 8368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8369
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8370
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8371
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
8372
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
420 ashish 8376
    }
8377
 
695 rajveer 8378
    public getPaymentForTxnId_result() {
420 ashish 8379
    }
8380
 
695 rajveer 8381
    public getPaymentForTxnId_result(
8382
      List<Payment> success,
420 ashish 8383
      PaymentException pe)
8384
    {
8385
      this();
8386
      this.success = success;
8387
      this.pe = pe;
8388
    }
8389
 
8390
    /**
8391
     * Performs a deep copy on <i>other</i>.
8392
     */
695 rajveer 8393
    public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
420 ashish 8394
      if (other.isSetSuccess()) {
695 rajveer 8395
        List<Payment> __this__success = new ArrayList<Payment>();
8396
        for (Payment other_element : other.success) {
8397
          __this__success.add(new Payment(other_element));
8398
        }
8399
        this.success = __this__success;
420 ashish 8400
      }
8401
      if (other.isSetPe()) {
8402
        this.pe = new PaymentException(other.pe);
8403
      }
8404
    }
8405
 
695 rajveer 8406
    public getPaymentForTxnId_result deepCopy() {
8407
      return new getPaymentForTxnId_result(this);
420 ashish 8408
    }
8409
 
3430 rajveer 8410
    @Override
8411
    public void clear() {
8412
      this.success = null;
8413
      this.pe = null;
420 ashish 8414
    }
8415
 
695 rajveer 8416
    public int getSuccessSize() {
8417
      return (this.success == null) ? 0 : this.success.size();
8418
    }
8419
 
8420
    public java.util.Iterator<Payment> getSuccessIterator() {
8421
      return (this.success == null) ? null : this.success.iterator();
8422
    }
8423
 
8424
    public void addToSuccess(Payment elem) {
8425
      if (this.success == null) {
8426
        this.success = new ArrayList<Payment>();
8427
      }
8428
      this.success.add(elem);
8429
    }
8430
 
8431
    public List<Payment> getSuccess() {
420 ashish 8432
      return this.success;
8433
    }
8434
 
3430 rajveer 8435
    public void setSuccess(List<Payment> success) {
420 ashish 8436
      this.success = success;
8437
    }
8438
 
8439
    public void unsetSuccess() {
8440
      this.success = null;
8441
    }
8442
 
3430 rajveer 8443
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 8444
    public boolean isSetSuccess() {
8445
      return this.success != null;
8446
    }
8447
 
8448
    public void setSuccessIsSet(boolean value) {
8449
      if (!value) {
8450
        this.success = null;
8451
      }
8452
    }
8453
 
8454
    public PaymentException getPe() {
8455
      return this.pe;
8456
    }
8457
 
3430 rajveer 8458
    public void setPe(PaymentException pe) {
420 ashish 8459
      this.pe = pe;
8460
    }
8461
 
8462
    public void unsetPe() {
8463
      this.pe = null;
8464
    }
8465
 
3430 rajveer 8466
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 8467
    public boolean isSetPe() {
8468
      return this.pe != null;
8469
    }
8470
 
8471
    public void setPeIsSet(boolean value) {
8472
      if (!value) {
8473
        this.pe = null;
8474
      }
8475
    }
8476
 
8477
    public void setFieldValue(_Fields field, Object value) {
8478
      switch (field) {
8479
      case SUCCESS:
8480
        if (value == null) {
8481
          unsetSuccess();
8482
        } else {
695 rajveer 8483
          setSuccess((List<Payment>)value);
420 ashish 8484
        }
8485
        break;
8486
 
8487
      case PE:
8488
        if (value == null) {
8489
          unsetPe();
8490
        } else {
8491
          setPe((PaymentException)value);
8492
        }
8493
        break;
8494
 
8495
      }
8496
    }
8497
 
8498
    public Object getFieldValue(_Fields field) {
8499
      switch (field) {
8500
      case SUCCESS:
8501
        return getSuccess();
8502
 
8503
      case PE:
8504
        return getPe();
8505
 
8506
      }
8507
      throw new IllegalStateException();
8508
    }
8509
 
3430 rajveer 8510
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8511
    public boolean isSet(_Fields field) {
8512
      if (field == null) {
8513
        throw new IllegalArgumentException();
8514
      }
420 ashish 8515
 
8516
      switch (field) {
8517
      case SUCCESS:
8518
        return isSetSuccess();
8519
      case PE:
8520
        return isSetPe();
8521
      }
8522
      throw new IllegalStateException();
8523
    }
8524
 
8525
    @Override
8526
    public boolean equals(Object that) {
8527
      if (that == null)
8528
        return false;
695 rajveer 8529
      if (that instanceof getPaymentForTxnId_result)
8530
        return this.equals((getPaymentForTxnId_result)that);
420 ashish 8531
      return false;
8532
    }
8533
 
695 rajveer 8534
    public boolean equals(getPaymentForTxnId_result that) {
420 ashish 8535
      if (that == null)
8536
        return false;
8537
 
8538
      boolean this_present_success = true && this.isSetSuccess();
8539
      boolean that_present_success = true && that.isSetSuccess();
8540
      if (this_present_success || that_present_success) {
8541
        if (!(this_present_success && that_present_success))
8542
          return false;
8543
        if (!this.success.equals(that.success))
8544
          return false;
8545
      }
8546
 
8547
      boolean this_present_pe = true && this.isSetPe();
8548
      boolean that_present_pe = true && that.isSetPe();
8549
      if (this_present_pe || that_present_pe) {
8550
        if (!(this_present_pe && that_present_pe))
8551
          return false;
8552
        if (!this.pe.equals(that.pe))
8553
          return false;
8554
      }
8555
 
8556
      return true;
8557
    }
8558
 
8559
    @Override
8560
    public int hashCode() {
8561
      return 0;
8562
    }
8563
 
695 rajveer 8564
    public int compareTo(getPaymentForTxnId_result other) {
8565
      if (!getClass().equals(other.getClass())) {
8566
        return getClass().getName().compareTo(other.getClass().getName());
8567
      }
8568
 
8569
      int lastComparison = 0;
8570
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
8571
 
3430 rajveer 8572
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 8573
      if (lastComparison != 0) {
8574
        return lastComparison;
8575
      }
3430 rajveer 8576
      if (isSetSuccess()) {
8577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8578
        if (lastComparison != 0) {
8579
          return lastComparison;
8580
        }
695 rajveer 8581
      }
3430 rajveer 8582
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 8583
      if (lastComparison != 0) {
8584
        return lastComparison;
8585
      }
3430 rajveer 8586
      if (isSetPe()) {
8587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8588
        if (lastComparison != 0) {
8589
          return lastComparison;
8590
        }
695 rajveer 8591
      }
8592
      return 0;
8593
    }
8594
 
3430 rajveer 8595
    public _Fields fieldForId(int fieldId) {
8596
      return _Fields.findByThriftId(fieldId);
8597
    }
8598
 
8599
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8600
      org.apache.thrift.protocol.TField field;
420 ashish 8601
      iprot.readStructBegin();
8602
      while (true)
8603
      {
8604
        field = iprot.readFieldBegin();
3430 rajveer 8605
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8606
          break;
8607
        }
3430 rajveer 8608
        switch (field.id) {
8609
          case 0: // SUCCESS
8610
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8611
              {
4600 varun.gupt 8612
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8613
                this.success = new ArrayList<Payment>(_list28.size);
8614
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
695 rajveer 8615
                {
4600 varun.gupt 8616
                  Payment _elem30; // required
8617
                  _elem30 = new Payment();
8618
                  _elem30.read(iprot);
8619
                  this.success.add(_elem30);
695 rajveer 8620
                }
3430 rajveer 8621
                iprot.readListEnd();
420 ashish 8622
              }
3430 rajveer 8623
            } else { 
8624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8625
            }
8626
            break;
8627
          case 1: // PE
8628
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8629
              this.pe = new PaymentException();
8630
              this.pe.read(iprot);
8631
            } else { 
8632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8633
            }
8634
            break;
8635
          default:
8636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8637
        }
3430 rajveer 8638
        iprot.readFieldEnd();
420 ashish 8639
      }
8640
      iprot.readStructEnd();
8641
      validate();
8642
    }
8643
 
3430 rajveer 8644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8645
      oprot.writeStructBegin(STRUCT_DESC);
8646
 
8647
      if (this.isSetSuccess()) {
8648
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 8649
        {
3430 rajveer 8650
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4600 varun.gupt 8651
          for (Payment _iter31 : this.success)
695 rajveer 8652
          {
4600 varun.gupt 8653
            _iter31.write(oprot);
695 rajveer 8654
          }
8655
          oprot.writeListEnd();
8656
        }
420 ashish 8657
        oprot.writeFieldEnd();
8658
      } else if (this.isSetPe()) {
8659
        oprot.writeFieldBegin(PE_FIELD_DESC);
8660
        this.pe.write(oprot);
8661
        oprot.writeFieldEnd();
8662
      }
8663
      oprot.writeFieldStop();
8664
      oprot.writeStructEnd();
8665
    }
8666
 
8667
    @Override
8668
    public String toString() {
695 rajveer 8669
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
420 ashish 8670
      boolean first = true;
8671
 
8672
      sb.append("success:");
8673
      if (this.success == null) {
8674
        sb.append("null");
8675
      } else {
8676
        sb.append(this.success);
8677
      }
8678
      first = false;
8679
      if (!first) sb.append(", ");
8680
      sb.append("pe:");
8681
      if (this.pe == null) {
8682
        sb.append("null");
8683
      } else {
8684
        sb.append(this.pe);
8685
      }
8686
      first = false;
8687
      sb.append(")");
8688
      return sb.toString();
8689
    }
8690
 
3430 rajveer 8691
    public void validate() throws org.apache.thrift.TException {
420 ashish 8692
      // check for required fields
8693
    }
8694
 
3430 rajveer 8695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8696
      try {
8697
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8698
      } catch (org.apache.thrift.TException te) {
8699
        throw new java.io.IOException(te);
8700
      }
8701
    }
8702
 
8703
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8704
      try {
8705
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8706
      } catch (org.apache.thrift.TException te) {
8707
        throw new java.io.IOException(te);
8708
      }
8709
    }
8710
 
420 ashish 8711
  }
8712
 
7049 anupam.sin 8713
  public static class getPaymentForRechargeTxnId_args implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_args, getPaymentForRechargeTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_args");
8715
 
8716
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
8717
 
8718
    private long txnId; // required
8719
 
8720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8722
      TXN_ID((short)1, "txnId");
8723
 
8724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8725
 
8726
      static {
8727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8728
          byName.put(field.getFieldName(), field);
8729
        }
8730
      }
8731
 
8732
      /**
8733
       * Find the _Fields constant that matches fieldId, or null if its not found.
8734
       */
8735
      public static _Fields findByThriftId(int fieldId) {
8736
        switch(fieldId) {
8737
          case 1: // TXN_ID
8738
            return TXN_ID;
8739
          default:
8740
            return null;
8741
        }
8742
      }
8743
 
8744
      /**
8745
       * Find the _Fields constant that matches fieldId, throwing an exception
8746
       * if it is not found.
8747
       */
8748
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8749
        _Fields fields = findByThriftId(fieldId);
8750
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8751
        return fields;
8752
      }
8753
 
8754
      /**
8755
       * Find the _Fields constant that matches name, or null if its not found.
8756
       */
8757
      public static _Fields findByName(String name) {
8758
        return byName.get(name);
8759
      }
8760
 
8761
      private final short _thriftId;
8762
      private final String _fieldName;
8763
 
8764
      _Fields(short thriftId, String fieldName) {
8765
        _thriftId = thriftId;
8766
        _fieldName = fieldName;
8767
      }
8768
 
8769
      public short getThriftFieldId() {
8770
        return _thriftId;
8771
      }
8772
 
8773
      public String getFieldName() {
8774
        return _fieldName;
8775
      }
8776
    }
8777
 
8778
    // isset id assignments
8779
    private static final int __TXNID_ISSET_ID = 0;
8780
    private BitSet __isset_bit_vector = new BitSet(1);
8781
 
8782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8783
    static {
8784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8785
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_args.class, metaDataMap);
8789
    }
8790
 
8791
    public getPaymentForRechargeTxnId_args() {
8792
    }
8793
 
8794
    public getPaymentForRechargeTxnId_args(
8795
      long txnId)
8796
    {
8797
      this();
8798
      this.txnId = txnId;
8799
      setTxnIdIsSet(true);
8800
    }
8801
 
8802
    /**
8803
     * Performs a deep copy on <i>other</i>.
8804
     */
8805
    public getPaymentForRechargeTxnId_args(getPaymentForRechargeTxnId_args other) {
8806
      __isset_bit_vector.clear();
8807
      __isset_bit_vector.or(other.__isset_bit_vector);
8808
      this.txnId = other.txnId;
8809
    }
8810
 
8811
    public getPaymentForRechargeTxnId_args deepCopy() {
8812
      return new getPaymentForRechargeTxnId_args(this);
8813
    }
8814
 
8815
    @Override
8816
    public void clear() {
8817
      setTxnIdIsSet(false);
8818
      this.txnId = 0;
8819
    }
8820
 
8821
    public long getTxnId() {
8822
      return this.txnId;
8823
    }
8824
 
8825
    public void setTxnId(long txnId) {
8826
      this.txnId = txnId;
8827
      setTxnIdIsSet(true);
8828
    }
8829
 
8830
    public void unsetTxnId() {
8831
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
8832
    }
8833
 
8834
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
8835
    public boolean isSetTxnId() {
8836
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
8837
    }
8838
 
8839
    public void setTxnIdIsSet(boolean value) {
8840
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
8841
    }
8842
 
8843
    public void setFieldValue(_Fields field, Object value) {
8844
      switch (field) {
8845
      case TXN_ID:
8846
        if (value == null) {
8847
          unsetTxnId();
8848
        } else {
8849
          setTxnId((Long)value);
8850
        }
8851
        break;
8852
 
8853
      }
8854
    }
8855
 
8856
    public Object getFieldValue(_Fields field) {
8857
      switch (field) {
8858
      case TXN_ID:
8859
        return Long.valueOf(getTxnId());
8860
 
8861
      }
8862
      throw new IllegalStateException();
8863
    }
8864
 
8865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8866
    public boolean isSet(_Fields field) {
8867
      if (field == null) {
8868
        throw new IllegalArgumentException();
8869
      }
8870
 
8871
      switch (field) {
8872
      case TXN_ID:
8873
        return isSetTxnId();
8874
      }
8875
      throw new IllegalStateException();
8876
    }
8877
 
8878
    @Override
8879
    public boolean equals(Object that) {
8880
      if (that == null)
8881
        return false;
8882
      if (that instanceof getPaymentForRechargeTxnId_args)
8883
        return this.equals((getPaymentForRechargeTxnId_args)that);
8884
      return false;
8885
    }
8886
 
8887
    public boolean equals(getPaymentForRechargeTxnId_args that) {
8888
      if (that == null)
8889
        return false;
8890
 
8891
      boolean this_present_txnId = true;
8892
      boolean that_present_txnId = true;
8893
      if (this_present_txnId || that_present_txnId) {
8894
        if (!(this_present_txnId && that_present_txnId))
8895
          return false;
8896
        if (this.txnId != that.txnId)
8897
          return false;
8898
      }
8899
 
8900
      return true;
8901
    }
8902
 
8903
    @Override
8904
    public int hashCode() {
8905
      return 0;
8906
    }
8907
 
8908
    public int compareTo(getPaymentForRechargeTxnId_args other) {
8909
      if (!getClass().equals(other.getClass())) {
8910
        return getClass().getName().compareTo(other.getClass().getName());
8911
      }
8912
 
8913
      int lastComparison = 0;
8914
      getPaymentForRechargeTxnId_args typedOther = (getPaymentForRechargeTxnId_args)other;
8915
 
8916
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
8917
      if (lastComparison != 0) {
8918
        return lastComparison;
8919
      }
8920
      if (isSetTxnId()) {
8921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8922
        if (lastComparison != 0) {
8923
          return lastComparison;
8924
        }
8925
      }
8926
      return 0;
8927
    }
8928
 
8929
    public _Fields fieldForId(int fieldId) {
8930
      return _Fields.findByThriftId(fieldId);
8931
    }
8932
 
8933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8934
      org.apache.thrift.protocol.TField field;
8935
      iprot.readStructBegin();
8936
      while (true)
8937
      {
8938
        field = iprot.readFieldBegin();
8939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8940
          break;
8941
        }
8942
        switch (field.id) {
8943
          case 1: // TXN_ID
8944
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8945
              this.txnId = iprot.readI64();
8946
              setTxnIdIsSet(true);
8947
            } else { 
8948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8949
            }
8950
            break;
8951
          default:
8952
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8953
        }
8954
        iprot.readFieldEnd();
8955
      }
8956
      iprot.readStructEnd();
8957
      validate();
8958
    }
8959
 
8960
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8961
      validate();
8962
 
8963
      oprot.writeStructBegin(STRUCT_DESC);
8964
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8965
      oprot.writeI64(this.txnId);
8966
      oprot.writeFieldEnd();
8967
      oprot.writeFieldStop();
8968
      oprot.writeStructEnd();
8969
    }
8970
 
8971
    @Override
8972
    public String toString() {
8973
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_args(");
8974
      boolean first = true;
8975
 
8976
      sb.append("txnId:");
8977
      sb.append(this.txnId);
8978
      first = false;
8979
      sb.append(")");
8980
      return sb.toString();
8981
    }
8982
 
8983
    public void validate() throws org.apache.thrift.TException {
8984
      // check for required fields
8985
    }
8986
 
8987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8988
      try {
8989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8990
      } catch (org.apache.thrift.TException te) {
8991
        throw new java.io.IOException(te);
8992
      }
8993
    }
8994
 
8995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8996
      try {
8997
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8998
        __isset_bit_vector = new BitSet(1);
8999
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9000
      } catch (org.apache.thrift.TException te) {
9001
        throw new java.io.IOException(te);
9002
      }
9003
    }
9004
 
9005
  }
9006
 
9007
  public static class getPaymentForRechargeTxnId_result implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_result, getPaymentForRechargeTxnId_result._Fields>, java.io.Serializable, Cloneable   {
9008
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_result");
9009
 
9010
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
9011
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9012
 
9013
    private List<Payment> success; // required
9014
    private PaymentException pe; // required
9015
 
9016
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9017
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9018
      SUCCESS((short)0, "success"),
9019
      PE((short)1, "pe");
9020
 
9021
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9022
 
9023
      static {
9024
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9025
          byName.put(field.getFieldName(), field);
9026
        }
9027
      }
9028
 
9029
      /**
9030
       * Find the _Fields constant that matches fieldId, or null if its not found.
9031
       */
9032
      public static _Fields findByThriftId(int fieldId) {
9033
        switch(fieldId) {
9034
          case 0: // SUCCESS
9035
            return SUCCESS;
9036
          case 1: // PE
9037
            return PE;
9038
          default:
9039
            return null;
9040
        }
9041
      }
9042
 
9043
      /**
9044
       * Find the _Fields constant that matches fieldId, throwing an exception
9045
       * if it is not found.
9046
       */
9047
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9048
        _Fields fields = findByThriftId(fieldId);
9049
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9050
        return fields;
9051
      }
9052
 
9053
      /**
9054
       * Find the _Fields constant that matches name, or null if its not found.
9055
       */
9056
      public static _Fields findByName(String name) {
9057
        return byName.get(name);
9058
      }
9059
 
9060
      private final short _thriftId;
9061
      private final String _fieldName;
9062
 
9063
      _Fields(short thriftId, String fieldName) {
9064
        _thriftId = thriftId;
9065
        _fieldName = fieldName;
9066
      }
9067
 
9068
      public short getThriftFieldId() {
9069
        return _thriftId;
9070
      }
9071
 
9072
      public String getFieldName() {
9073
        return _fieldName;
9074
      }
9075
    }
9076
 
9077
    // isset id assignments
9078
 
9079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9080
    static {
9081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9082
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9083
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9084
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
9085
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_result.class, metaDataMap);
9089
    }
9090
 
9091
    public getPaymentForRechargeTxnId_result() {
9092
    }
9093
 
9094
    public getPaymentForRechargeTxnId_result(
9095
      List<Payment> success,
9096
      PaymentException pe)
9097
    {
9098
      this();
9099
      this.success = success;
9100
      this.pe = pe;
9101
    }
9102
 
9103
    /**
9104
     * Performs a deep copy on <i>other</i>.
9105
     */
9106
    public getPaymentForRechargeTxnId_result(getPaymentForRechargeTxnId_result other) {
9107
      if (other.isSetSuccess()) {
9108
        List<Payment> __this__success = new ArrayList<Payment>();
9109
        for (Payment other_element : other.success) {
9110
          __this__success.add(new Payment(other_element));
9111
        }
9112
        this.success = __this__success;
9113
      }
9114
      if (other.isSetPe()) {
9115
        this.pe = new PaymentException(other.pe);
9116
      }
9117
    }
9118
 
9119
    public getPaymentForRechargeTxnId_result deepCopy() {
9120
      return new getPaymentForRechargeTxnId_result(this);
9121
    }
9122
 
9123
    @Override
9124
    public void clear() {
9125
      this.success = null;
9126
      this.pe = null;
9127
    }
9128
 
9129
    public int getSuccessSize() {
9130
      return (this.success == null) ? 0 : this.success.size();
9131
    }
9132
 
9133
    public java.util.Iterator<Payment> getSuccessIterator() {
9134
      return (this.success == null) ? null : this.success.iterator();
9135
    }
9136
 
9137
    public void addToSuccess(Payment elem) {
9138
      if (this.success == null) {
9139
        this.success = new ArrayList<Payment>();
9140
      }
9141
      this.success.add(elem);
9142
    }
9143
 
9144
    public List<Payment> getSuccess() {
9145
      return this.success;
9146
    }
9147
 
9148
    public void setSuccess(List<Payment> success) {
9149
      this.success = success;
9150
    }
9151
 
9152
    public void unsetSuccess() {
9153
      this.success = null;
9154
    }
9155
 
9156
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9157
    public boolean isSetSuccess() {
9158
      return this.success != null;
9159
    }
9160
 
9161
    public void setSuccessIsSet(boolean value) {
9162
      if (!value) {
9163
        this.success = null;
9164
      }
9165
    }
9166
 
9167
    public PaymentException getPe() {
9168
      return this.pe;
9169
    }
9170
 
9171
    public void setPe(PaymentException pe) {
9172
      this.pe = pe;
9173
    }
9174
 
9175
    public void unsetPe() {
9176
      this.pe = null;
9177
    }
9178
 
9179
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9180
    public boolean isSetPe() {
9181
      return this.pe != null;
9182
    }
9183
 
9184
    public void setPeIsSet(boolean value) {
9185
      if (!value) {
9186
        this.pe = null;
9187
      }
9188
    }
9189
 
9190
    public void setFieldValue(_Fields field, Object value) {
9191
      switch (field) {
9192
      case SUCCESS:
9193
        if (value == null) {
9194
          unsetSuccess();
9195
        } else {
9196
          setSuccess((List<Payment>)value);
9197
        }
9198
        break;
9199
 
9200
      case PE:
9201
        if (value == null) {
9202
          unsetPe();
9203
        } else {
9204
          setPe((PaymentException)value);
9205
        }
9206
        break;
9207
 
9208
      }
9209
    }
9210
 
9211
    public Object getFieldValue(_Fields field) {
9212
      switch (field) {
9213
      case SUCCESS:
9214
        return getSuccess();
9215
 
9216
      case PE:
9217
        return getPe();
9218
 
9219
      }
9220
      throw new IllegalStateException();
9221
    }
9222
 
9223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9224
    public boolean isSet(_Fields field) {
9225
      if (field == null) {
9226
        throw new IllegalArgumentException();
9227
      }
9228
 
9229
      switch (field) {
9230
      case SUCCESS:
9231
        return isSetSuccess();
9232
      case PE:
9233
        return isSetPe();
9234
      }
9235
      throw new IllegalStateException();
9236
    }
9237
 
9238
    @Override
9239
    public boolean equals(Object that) {
9240
      if (that == null)
9241
        return false;
9242
      if (that instanceof getPaymentForRechargeTxnId_result)
9243
        return this.equals((getPaymentForRechargeTxnId_result)that);
9244
      return false;
9245
    }
9246
 
9247
    public boolean equals(getPaymentForRechargeTxnId_result that) {
9248
      if (that == null)
9249
        return false;
9250
 
9251
      boolean this_present_success = true && this.isSetSuccess();
9252
      boolean that_present_success = true && that.isSetSuccess();
9253
      if (this_present_success || that_present_success) {
9254
        if (!(this_present_success && that_present_success))
9255
          return false;
9256
        if (!this.success.equals(that.success))
9257
          return false;
9258
      }
9259
 
9260
      boolean this_present_pe = true && this.isSetPe();
9261
      boolean that_present_pe = true && that.isSetPe();
9262
      if (this_present_pe || that_present_pe) {
9263
        if (!(this_present_pe && that_present_pe))
9264
          return false;
9265
        if (!this.pe.equals(that.pe))
9266
          return false;
9267
      }
9268
 
9269
      return true;
9270
    }
9271
 
9272
    @Override
9273
    public int hashCode() {
9274
      return 0;
9275
    }
9276
 
9277
    public int compareTo(getPaymentForRechargeTxnId_result other) {
9278
      if (!getClass().equals(other.getClass())) {
9279
        return getClass().getName().compareTo(other.getClass().getName());
9280
      }
9281
 
9282
      int lastComparison = 0;
9283
      getPaymentForRechargeTxnId_result typedOther = (getPaymentForRechargeTxnId_result)other;
9284
 
9285
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9286
      if (lastComparison != 0) {
9287
        return lastComparison;
9288
      }
9289
      if (isSetSuccess()) {
9290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9291
        if (lastComparison != 0) {
9292
          return lastComparison;
9293
        }
9294
      }
9295
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
9296
      if (lastComparison != 0) {
9297
        return lastComparison;
9298
      }
9299
      if (isSetPe()) {
9300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9301
        if (lastComparison != 0) {
9302
          return lastComparison;
9303
        }
9304
      }
9305
      return 0;
9306
    }
9307
 
9308
    public _Fields fieldForId(int fieldId) {
9309
      return _Fields.findByThriftId(fieldId);
9310
    }
9311
 
9312
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9313
      org.apache.thrift.protocol.TField field;
9314
      iprot.readStructBegin();
9315
      while (true)
9316
      {
9317
        field = iprot.readFieldBegin();
9318
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9319
          break;
9320
        }
9321
        switch (field.id) {
9322
          case 0: // SUCCESS
9323
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9324
              {
9325
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
9326
                this.success = new ArrayList<Payment>(_list32.size);
9327
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
9328
                {
9329
                  Payment _elem34; // required
9330
                  _elem34 = new Payment();
9331
                  _elem34.read(iprot);
9332
                  this.success.add(_elem34);
9333
                }
9334
                iprot.readListEnd();
9335
              }
9336
            } else { 
9337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9338
            }
9339
            break;
9340
          case 1: // PE
9341
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9342
              this.pe = new PaymentException();
9343
              this.pe.read(iprot);
9344
            } else { 
9345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9346
            }
9347
            break;
9348
          default:
9349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9350
        }
9351
        iprot.readFieldEnd();
9352
      }
9353
      iprot.readStructEnd();
9354
      validate();
9355
    }
9356
 
9357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9358
      oprot.writeStructBegin(STRUCT_DESC);
9359
 
9360
      if (this.isSetSuccess()) {
9361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9362
        {
9363
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
9364
          for (Payment _iter35 : this.success)
9365
          {
9366
            _iter35.write(oprot);
9367
          }
9368
          oprot.writeListEnd();
9369
        }
9370
        oprot.writeFieldEnd();
9371
      } else if (this.isSetPe()) {
9372
        oprot.writeFieldBegin(PE_FIELD_DESC);
9373
        this.pe.write(oprot);
9374
        oprot.writeFieldEnd();
9375
      }
9376
      oprot.writeFieldStop();
9377
      oprot.writeStructEnd();
9378
    }
9379
 
9380
    @Override
9381
    public String toString() {
9382
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_result(");
9383
      boolean first = true;
9384
 
9385
      sb.append("success:");
9386
      if (this.success == null) {
9387
        sb.append("null");
9388
      } else {
9389
        sb.append(this.success);
9390
      }
9391
      first = false;
9392
      if (!first) sb.append(", ");
9393
      sb.append("pe:");
9394
      if (this.pe == null) {
9395
        sb.append("null");
9396
      } else {
9397
        sb.append(this.pe);
9398
      }
9399
      first = false;
9400
      sb.append(")");
9401
      return sb.toString();
9402
    }
9403
 
9404
    public void validate() throws org.apache.thrift.TException {
9405
      // check for required fields
9406
    }
9407
 
9408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9409
      try {
9410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9411
      } catch (org.apache.thrift.TException te) {
9412
        throw new java.io.IOException(te);
9413
      }
9414
    }
9415
 
9416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9417
      try {
9418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9419
      } catch (org.apache.thrift.TException te) {
9420
        throw new java.io.IOException(te);
9421
      }
9422
    }
9423
 
9424
  }
9425
 
4600 varun.gupt 9426
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
9427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
9428
 
9429
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
9430
 
9431
    private long txnId; // required
9432
 
9433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9435
      TXN_ID((short)1, "txnId");
9436
 
9437
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9438
 
9439
      static {
9440
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9441
          byName.put(field.getFieldName(), field);
9442
        }
9443
      }
9444
 
9445
      /**
9446
       * Find the _Fields constant that matches fieldId, or null if its not found.
9447
       */
9448
      public static _Fields findByThriftId(int fieldId) {
9449
        switch(fieldId) {
9450
          case 1: // TXN_ID
9451
            return TXN_ID;
9452
          default:
9453
            return null;
9454
        }
9455
      }
9456
 
9457
      /**
9458
       * Find the _Fields constant that matches fieldId, throwing an exception
9459
       * if it is not found.
9460
       */
9461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9462
        _Fields fields = findByThriftId(fieldId);
9463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9464
        return fields;
9465
      }
9466
 
9467
      /**
9468
       * Find the _Fields constant that matches name, or null if its not found.
9469
       */
9470
      public static _Fields findByName(String name) {
9471
        return byName.get(name);
9472
      }
9473
 
9474
      private final short _thriftId;
9475
      private final String _fieldName;
9476
 
9477
      _Fields(short thriftId, String fieldName) {
9478
        _thriftId = thriftId;
9479
        _fieldName = fieldName;
9480
      }
9481
 
9482
      public short getThriftFieldId() {
9483
        return _thriftId;
9484
      }
9485
 
9486
      public String getFieldName() {
9487
        return _fieldName;
9488
      }
9489
    }
9490
 
9491
    // isset id assignments
9492
    private static final int __TXNID_ISSET_ID = 0;
9493
    private BitSet __isset_bit_vector = new BitSet(1);
9494
 
9495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9496
    static {
9497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9498
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
9502
    }
9503
 
9504
    public getSuccessfulPaymentForTxnId_args() {
9505
    }
9506
 
9507
    public getSuccessfulPaymentForTxnId_args(
9508
      long txnId)
9509
    {
9510
      this();
9511
      this.txnId = txnId;
9512
      setTxnIdIsSet(true);
9513
    }
9514
 
9515
    /**
9516
     * Performs a deep copy on <i>other</i>.
9517
     */
9518
    public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
9519
      __isset_bit_vector.clear();
9520
      __isset_bit_vector.or(other.__isset_bit_vector);
9521
      this.txnId = other.txnId;
9522
    }
9523
 
9524
    public getSuccessfulPaymentForTxnId_args deepCopy() {
9525
      return new getSuccessfulPaymentForTxnId_args(this);
9526
    }
9527
 
9528
    @Override
9529
    public void clear() {
9530
      setTxnIdIsSet(false);
9531
      this.txnId = 0;
9532
    }
9533
 
9534
    public long getTxnId() {
9535
      return this.txnId;
9536
    }
9537
 
9538
    public void setTxnId(long txnId) {
9539
      this.txnId = txnId;
9540
      setTxnIdIsSet(true);
9541
    }
9542
 
9543
    public void unsetTxnId() {
9544
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
9545
    }
9546
 
9547
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
9548
    public boolean isSetTxnId() {
9549
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
9550
    }
9551
 
9552
    public void setTxnIdIsSet(boolean value) {
9553
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
9554
    }
9555
 
9556
    public void setFieldValue(_Fields field, Object value) {
9557
      switch (field) {
9558
      case TXN_ID:
9559
        if (value == null) {
9560
          unsetTxnId();
9561
        } else {
9562
          setTxnId((Long)value);
9563
        }
9564
        break;
9565
 
9566
      }
9567
    }
9568
 
9569
    public Object getFieldValue(_Fields field) {
9570
      switch (field) {
9571
      case TXN_ID:
9572
        return Long.valueOf(getTxnId());
9573
 
9574
      }
9575
      throw new IllegalStateException();
9576
    }
9577
 
9578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9579
    public boolean isSet(_Fields field) {
9580
      if (field == null) {
9581
        throw new IllegalArgumentException();
9582
      }
9583
 
9584
      switch (field) {
9585
      case TXN_ID:
9586
        return isSetTxnId();
9587
      }
9588
      throw new IllegalStateException();
9589
    }
9590
 
9591
    @Override
9592
    public boolean equals(Object that) {
9593
      if (that == null)
9594
        return false;
9595
      if (that instanceof getSuccessfulPaymentForTxnId_args)
9596
        return this.equals((getSuccessfulPaymentForTxnId_args)that);
9597
      return false;
9598
    }
9599
 
9600
    public boolean equals(getSuccessfulPaymentForTxnId_args that) {
9601
      if (that == null)
9602
        return false;
9603
 
9604
      boolean this_present_txnId = true;
9605
      boolean that_present_txnId = true;
9606
      if (this_present_txnId || that_present_txnId) {
9607
        if (!(this_present_txnId && that_present_txnId))
9608
          return false;
9609
        if (this.txnId != that.txnId)
9610
          return false;
9611
      }
9612
 
9613
      return true;
9614
    }
9615
 
9616
    @Override
9617
    public int hashCode() {
9618
      return 0;
9619
    }
9620
 
9621
    public int compareTo(getSuccessfulPaymentForTxnId_args other) {
9622
      if (!getClass().equals(other.getClass())) {
9623
        return getClass().getName().compareTo(other.getClass().getName());
9624
      }
9625
 
9626
      int lastComparison = 0;
9627
      getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
9628
 
9629
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
9630
      if (lastComparison != 0) {
9631
        return lastComparison;
9632
      }
9633
      if (isSetTxnId()) {
9634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
9635
        if (lastComparison != 0) {
9636
          return lastComparison;
9637
        }
9638
      }
9639
      return 0;
9640
    }
9641
 
9642
    public _Fields fieldForId(int fieldId) {
9643
      return _Fields.findByThriftId(fieldId);
9644
    }
9645
 
9646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9647
      org.apache.thrift.protocol.TField field;
9648
      iprot.readStructBegin();
9649
      while (true)
9650
      {
9651
        field = iprot.readFieldBegin();
9652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9653
          break;
9654
        }
9655
        switch (field.id) {
9656
          case 1: // TXN_ID
9657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9658
              this.txnId = iprot.readI64();
9659
              setTxnIdIsSet(true);
9660
            } else { 
9661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9662
            }
9663
            break;
9664
          default:
9665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9666
        }
9667
        iprot.readFieldEnd();
9668
      }
9669
      iprot.readStructEnd();
9670
      validate();
9671
    }
9672
 
9673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9674
      validate();
9675
 
9676
      oprot.writeStructBegin(STRUCT_DESC);
9677
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
9678
      oprot.writeI64(this.txnId);
9679
      oprot.writeFieldEnd();
9680
      oprot.writeFieldStop();
9681
      oprot.writeStructEnd();
9682
    }
9683
 
9684
    @Override
9685
    public String toString() {
9686
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
9687
      boolean first = true;
9688
 
9689
      sb.append("txnId:");
9690
      sb.append(this.txnId);
9691
      first = false;
9692
      sb.append(")");
9693
      return sb.toString();
9694
    }
9695
 
9696
    public void validate() throws org.apache.thrift.TException {
9697
      // check for required fields
9698
    }
9699
 
9700
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9701
      try {
9702
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9703
      } catch (org.apache.thrift.TException te) {
9704
        throw new java.io.IOException(te);
9705
      }
9706
    }
9707
 
9708
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9709
      try {
9710
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9711
        __isset_bit_vector = new BitSet(1);
9712
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9713
      } catch (org.apache.thrift.TException te) {
9714
        throw new java.io.IOException(te);
9715
      }
9716
    }
9717
 
9718
  }
9719
 
9720
  public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
9721
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
9722
 
9723
    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);
9724
    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);
9725
 
9726
    private Payment success; // required
9727
    private PaymentException pe; // required
9728
 
9729
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9730
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9731
      SUCCESS((short)0, "success"),
9732
      PE((short)1, "pe");
9733
 
9734
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9735
 
9736
      static {
9737
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9738
          byName.put(field.getFieldName(), field);
9739
        }
9740
      }
9741
 
9742
      /**
9743
       * Find the _Fields constant that matches fieldId, or null if its not found.
9744
       */
9745
      public static _Fields findByThriftId(int fieldId) {
9746
        switch(fieldId) {
9747
          case 0: // SUCCESS
9748
            return SUCCESS;
9749
          case 1: // PE
9750
            return PE;
9751
          default:
9752
            return null;
9753
        }
9754
      }
9755
 
9756
      /**
9757
       * Find the _Fields constant that matches fieldId, throwing an exception
9758
       * if it is not found.
9759
       */
9760
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9761
        _Fields fields = findByThriftId(fieldId);
9762
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9763
        return fields;
9764
      }
9765
 
9766
      /**
9767
       * Find the _Fields constant that matches name, or null if its not found.
9768
       */
9769
      public static _Fields findByName(String name) {
9770
        return byName.get(name);
9771
      }
9772
 
9773
      private final short _thriftId;
9774
      private final String _fieldName;
9775
 
9776
      _Fields(short thriftId, String fieldName) {
9777
        _thriftId = thriftId;
9778
        _fieldName = fieldName;
9779
      }
9780
 
9781
      public short getThriftFieldId() {
9782
        return _thriftId;
9783
      }
9784
 
9785
      public String getFieldName() {
9786
        return _fieldName;
9787
      }
9788
    }
9789
 
9790
    // isset id assignments
9791
 
9792
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9793
    static {
9794
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9795
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9796
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
9797
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9798
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9799
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9800
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
9801
    }
9802
 
9803
    public getSuccessfulPaymentForTxnId_result() {
9804
    }
9805
 
9806
    public getSuccessfulPaymentForTxnId_result(
9807
      Payment success,
9808
      PaymentException pe)
9809
    {
9810
      this();
9811
      this.success = success;
9812
      this.pe = pe;
9813
    }
9814
 
9815
    /**
9816
     * Performs a deep copy on <i>other</i>.
9817
     */
9818
    public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
9819
      if (other.isSetSuccess()) {
9820
        this.success = new Payment(other.success);
9821
      }
9822
      if (other.isSetPe()) {
9823
        this.pe = new PaymentException(other.pe);
9824
      }
9825
    }
9826
 
9827
    public getSuccessfulPaymentForTxnId_result deepCopy() {
9828
      return new getSuccessfulPaymentForTxnId_result(this);
9829
    }
9830
 
9831
    @Override
9832
    public void clear() {
9833
      this.success = null;
9834
      this.pe = null;
9835
    }
9836
 
9837
    public Payment getSuccess() {
9838
      return this.success;
9839
    }
9840
 
9841
    public void setSuccess(Payment success) {
9842
      this.success = success;
9843
    }
9844
 
9845
    public void unsetSuccess() {
9846
      this.success = null;
9847
    }
9848
 
9849
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9850
    public boolean isSetSuccess() {
9851
      return this.success != null;
9852
    }
9853
 
9854
    public void setSuccessIsSet(boolean value) {
9855
      if (!value) {
9856
        this.success = null;
9857
      }
9858
    }
9859
 
9860
    public PaymentException getPe() {
9861
      return this.pe;
9862
    }
9863
 
9864
    public void setPe(PaymentException pe) {
9865
      this.pe = pe;
9866
    }
9867
 
9868
    public void unsetPe() {
9869
      this.pe = null;
9870
    }
9871
 
9872
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9873
    public boolean isSetPe() {
9874
      return this.pe != null;
9875
    }
9876
 
9877
    public void setPeIsSet(boolean value) {
9878
      if (!value) {
9879
        this.pe = null;
9880
      }
9881
    }
9882
 
9883
    public void setFieldValue(_Fields field, Object value) {
9884
      switch (field) {
9885
      case SUCCESS:
9886
        if (value == null) {
9887
          unsetSuccess();
9888
        } else {
9889
          setSuccess((Payment)value);
9890
        }
9891
        break;
9892
 
9893
      case PE:
9894
        if (value == null) {
9895
          unsetPe();
9896
        } else {
9897
          setPe((PaymentException)value);
9898
        }
9899
        break;
9900
 
9901
      }
9902
    }
9903
 
9904
    public Object getFieldValue(_Fields field) {
9905
      switch (field) {
9906
      case SUCCESS:
9907
        return getSuccess();
9908
 
9909
      case PE:
9910
        return getPe();
9911
 
9912
      }
9913
      throw new IllegalStateException();
9914
    }
9915
 
9916
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9917
    public boolean isSet(_Fields field) {
9918
      if (field == null) {
9919
        throw new IllegalArgumentException();
9920
      }
9921
 
9922
      switch (field) {
9923
      case SUCCESS:
9924
        return isSetSuccess();
9925
      case PE:
9926
        return isSetPe();
9927
      }
9928
      throw new IllegalStateException();
9929
    }
9930
 
9931
    @Override
9932
    public boolean equals(Object that) {
9933
      if (that == null)
9934
        return false;
9935
      if (that instanceof getSuccessfulPaymentForTxnId_result)
9936
        return this.equals((getSuccessfulPaymentForTxnId_result)that);
9937
      return false;
9938
    }
9939
 
9940
    public boolean equals(getSuccessfulPaymentForTxnId_result that) {
9941
      if (that == null)
9942
        return false;
9943
 
9944
      boolean this_present_success = true && this.isSetSuccess();
9945
      boolean that_present_success = true && that.isSetSuccess();
9946
      if (this_present_success || that_present_success) {
9947
        if (!(this_present_success && that_present_success))
9948
          return false;
9949
        if (!this.success.equals(that.success))
9950
          return false;
9951
      }
9952
 
9953
      boolean this_present_pe = true && this.isSetPe();
9954
      boolean that_present_pe = true && that.isSetPe();
9955
      if (this_present_pe || that_present_pe) {
9956
        if (!(this_present_pe && that_present_pe))
9957
          return false;
9958
        if (!this.pe.equals(that.pe))
9959
          return false;
9960
      }
9961
 
9962
      return true;
9963
    }
9964
 
9965
    @Override
9966
    public int hashCode() {
9967
      return 0;
9968
    }
9969
 
9970
    public int compareTo(getSuccessfulPaymentForTxnId_result other) {
9971
      if (!getClass().equals(other.getClass())) {
9972
        return getClass().getName().compareTo(other.getClass().getName());
9973
      }
9974
 
9975
      int lastComparison = 0;
9976
      getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
9977
 
9978
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9979
      if (lastComparison != 0) {
9980
        return lastComparison;
9981
      }
9982
      if (isSetSuccess()) {
9983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9984
        if (lastComparison != 0) {
9985
          return lastComparison;
9986
        }
9987
      }
9988
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
9989
      if (lastComparison != 0) {
9990
        return lastComparison;
9991
      }
9992
      if (isSetPe()) {
9993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9994
        if (lastComparison != 0) {
9995
          return lastComparison;
9996
        }
9997
      }
9998
      return 0;
9999
    }
10000
 
10001
    public _Fields fieldForId(int fieldId) {
10002
      return _Fields.findByThriftId(fieldId);
10003
    }
10004
 
10005
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10006
      org.apache.thrift.protocol.TField field;
10007
      iprot.readStructBegin();
10008
      while (true)
10009
      {
10010
        field = iprot.readFieldBegin();
10011
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10012
          break;
10013
        }
10014
        switch (field.id) {
10015
          case 0: // SUCCESS
10016
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10017
              this.success = new Payment();
10018
              this.success.read(iprot);
10019
            } else { 
10020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10021
            }
10022
            break;
10023
          case 1: // PE
10024
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10025
              this.pe = new PaymentException();
10026
              this.pe.read(iprot);
10027
            } else { 
10028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10029
            }
10030
            break;
10031
          default:
10032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10033
        }
10034
        iprot.readFieldEnd();
10035
      }
10036
      iprot.readStructEnd();
10037
      validate();
10038
    }
10039
 
10040
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10041
      oprot.writeStructBegin(STRUCT_DESC);
10042
 
10043
      if (this.isSetSuccess()) {
10044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10045
        this.success.write(oprot);
10046
        oprot.writeFieldEnd();
10047
      } else if (this.isSetPe()) {
10048
        oprot.writeFieldBegin(PE_FIELD_DESC);
10049
        this.pe.write(oprot);
10050
        oprot.writeFieldEnd();
10051
      }
10052
      oprot.writeFieldStop();
10053
      oprot.writeStructEnd();
10054
    }
10055
 
10056
    @Override
10057
    public String toString() {
10058
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
10059
      boolean first = true;
10060
 
10061
      sb.append("success:");
10062
      if (this.success == null) {
10063
        sb.append("null");
10064
      } else {
10065
        sb.append(this.success);
10066
      }
10067
      first = false;
10068
      if (!first) sb.append(", ");
10069
      sb.append("pe:");
10070
      if (this.pe == null) {
10071
        sb.append("null");
10072
      } else {
10073
        sb.append(this.pe);
10074
      }
10075
      first = false;
10076
      sb.append(")");
10077
      return sb.toString();
10078
    }
10079
 
10080
    public void validate() throws org.apache.thrift.TException {
10081
      // check for required fields
10082
    }
10083
 
10084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10085
      try {
10086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10087
      } catch (org.apache.thrift.TException te) {
10088
        throw new java.io.IOException(te);
10089
      }
10090
    }
10091
 
10092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10093
      try {
10094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10095
      } catch (org.apache.thrift.TException te) {
10096
        throw new java.io.IOException(te);
10097
      }
10098
    }
10099
 
10100
  }
10101
 
3430 rajveer 10102
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
10103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
420 ashish 10104
 
3430 rajveer 10105
    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);
10106
    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);
10107
    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);
10108
    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);
10109
    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);
10110
    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);
10111
    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);
10112
    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);
10113
    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);
10114
    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);
10115
    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);
10116
    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 10117
 
3430 rajveer 10118
    private long id; // required
10119
    private String gatewayPaymentId; // required
10120
    private String sessionId; // required
10121
    private String gatewayTxnStatus; // required
10122
    private String description; // required
10123
    private String gatewayTxnId; // required
10124
    private String authCode; // required
10125
    private String referenceCode; // required
10126
    private String errorCode; // required
10127
    private PaymentStatus status; // required
10128
    private String gatewayTxnDate; // required
10129
    private List<Attribute> attributes; // required
420 ashish 10130
 
10131
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10132
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 10133
      ID((short)1, "id"),
695 rajveer 10134
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
10135
      SESSION_ID((short)3, "sessionId"),
10136
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
10137
      DESCRIPTION((short)5, "description"),
10138
      GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
10139
      AUTH_CODE((short)7, "authCode"),
10140
      REFERENCE_CODE((short)8, "referenceCode"),
10141
      ERROR_CODE((short)9, "errorCode"),
10142
      /**
10143
       * 
10144
       * @see PaymentStatus
10145
       */
10146
      STATUS((short)10, "status"),
1119 rajveer 10147
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
10148
      ATTRIBUTES((short)12, "attributes");
420 ashish 10149
 
10150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10151
 
10152
      static {
10153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10154
          byName.put(field.getFieldName(), field);
10155
        }
10156
      }
10157
 
10158
      /**
10159
       * Find the _Fields constant that matches fieldId, or null if its not found.
10160
       */
10161
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10162
        switch(fieldId) {
10163
          case 1: // ID
10164
            return ID;
10165
          case 2: // GATEWAY_PAYMENT_ID
10166
            return GATEWAY_PAYMENT_ID;
10167
          case 3: // SESSION_ID
10168
            return SESSION_ID;
10169
          case 4: // GATEWAY_TXN_STATUS
10170
            return GATEWAY_TXN_STATUS;
10171
          case 5: // DESCRIPTION
10172
            return DESCRIPTION;
10173
          case 6: // GATEWAY_TXN_ID
10174
            return GATEWAY_TXN_ID;
10175
          case 7: // AUTH_CODE
10176
            return AUTH_CODE;
10177
          case 8: // REFERENCE_CODE
10178
            return REFERENCE_CODE;
10179
          case 9: // ERROR_CODE
10180
            return ERROR_CODE;
10181
          case 10: // STATUS
10182
            return STATUS;
10183
          case 11: // GATEWAY_TXN_DATE
10184
            return GATEWAY_TXN_DATE;
10185
          case 12: // ATTRIBUTES
10186
            return ATTRIBUTES;
10187
          default:
10188
            return null;
10189
        }
420 ashish 10190
      }
10191
 
10192
      /**
10193
       * Find the _Fields constant that matches fieldId, throwing an exception
10194
       * if it is not found.
10195
       */
10196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10197
        _Fields fields = findByThriftId(fieldId);
10198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10199
        return fields;
10200
      }
10201
 
10202
      /**
10203
       * Find the _Fields constant that matches name, or null if its not found.
10204
       */
10205
      public static _Fields findByName(String name) {
10206
        return byName.get(name);
10207
      }
10208
 
10209
      private final short _thriftId;
10210
      private final String _fieldName;
10211
 
10212
      _Fields(short thriftId, String fieldName) {
10213
        _thriftId = thriftId;
10214
        _fieldName = fieldName;
10215
      }
10216
 
10217
      public short getThriftFieldId() {
10218
        return _thriftId;
10219
      }
10220
 
10221
      public String getFieldName() {
10222
        return _fieldName;
10223
      }
10224
    }
10225
 
10226
    // isset id assignments
10227
    private static final int __ID_ISSET_ID = 0;
10228
    private BitSet __isset_bit_vector = new BitSet(1);
10229
 
3430 rajveer 10230
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 10231
    static {
3430 rajveer 10232
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10233
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10235
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10236
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10237
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10239
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10241
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10243
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10244
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10245
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10246
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10247
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10248
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10249
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10250
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10251
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10252
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
10253
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10255
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10256
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10257
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
10258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
420 ashish 10260
    }
10261
 
695 rajveer 10262
    public updatePaymentDetails_args() {
420 ashish 10263
    }
10264
 
695 rajveer 10265
    public updatePaymentDetails_args(
420 ashish 10266
      long id,
695 rajveer 10267
      String gatewayPaymentId,
10268
      String sessionId,
10269
      String gatewayTxnStatus,
10270
      String description,
10271
      String gatewayTxnId,
10272
      String authCode,
10273
      String referenceCode,
10274
      String errorCode,
10275
      PaymentStatus status,
1119 rajveer 10276
      String gatewayTxnDate,
695 rajveer 10277
      List<Attribute> attributes)
420 ashish 10278
    {
10279
      this();
10280
      this.id = id;
10281
      setIdIsSet(true);
695 rajveer 10282
      this.gatewayPaymentId = gatewayPaymentId;
10283
      this.sessionId = sessionId;
10284
      this.gatewayTxnStatus = gatewayTxnStatus;
10285
      this.description = description;
10286
      this.gatewayTxnId = gatewayTxnId;
10287
      this.authCode = authCode;
10288
      this.referenceCode = referenceCode;
10289
      this.errorCode = errorCode;
10290
      this.status = status;
1119 rajveer 10291
      this.gatewayTxnDate = gatewayTxnDate;
695 rajveer 10292
      this.attributes = attributes;
420 ashish 10293
    }
10294
 
10295
    /**
10296
     * Performs a deep copy on <i>other</i>.
10297
     */
695 rajveer 10298
    public updatePaymentDetails_args(updatePaymentDetails_args other) {
420 ashish 10299
      __isset_bit_vector.clear();
10300
      __isset_bit_vector.or(other.__isset_bit_vector);
10301
      this.id = other.id;
695 rajveer 10302
      if (other.isSetGatewayPaymentId()) {
10303
        this.gatewayPaymentId = other.gatewayPaymentId;
420 ashish 10304
      }
695 rajveer 10305
      if (other.isSetSessionId()) {
10306
        this.sessionId = other.sessionId;
420 ashish 10307
      }
695 rajveer 10308
      if (other.isSetGatewayTxnStatus()) {
10309
        this.gatewayTxnStatus = other.gatewayTxnStatus;
420 ashish 10310
      }
695 rajveer 10311
      if (other.isSetDescription()) {
10312
        this.description = other.description;
420 ashish 10313
      }
695 rajveer 10314
      if (other.isSetGatewayTxnId()) {
10315
        this.gatewayTxnId = other.gatewayTxnId;
420 ashish 10316
      }
695 rajveer 10317
      if (other.isSetAuthCode()) {
10318
        this.authCode = other.authCode;
420 ashish 10319
      }
695 rajveer 10320
      if (other.isSetReferenceCode()) {
10321
        this.referenceCode = other.referenceCode;
420 ashish 10322
      }
695 rajveer 10323
      if (other.isSetErrorCode()) {
10324
        this.errorCode = other.errorCode;
10325
      }
10326
      if (other.isSetStatus()) {
10327
        this.status = other.status;
10328
      }
1119 rajveer 10329
      if (other.isSetGatewayTxnDate()) {
10330
        this.gatewayTxnDate = other.gatewayTxnDate;
10331
      }
695 rajveer 10332
      if (other.isSetAttributes()) {
10333
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
10334
        for (Attribute other_element : other.attributes) {
10335
          __this__attributes.add(new Attribute(other_element));
10336
        }
10337
        this.attributes = __this__attributes;
10338
      }
420 ashish 10339
    }
10340
 
695 rajveer 10341
    public updatePaymentDetails_args deepCopy() {
10342
      return new updatePaymentDetails_args(this);
420 ashish 10343
    }
10344
 
3430 rajveer 10345
    @Override
10346
    public void clear() {
10347
      setIdIsSet(false);
10348
      this.id = 0;
10349
      this.gatewayPaymentId = null;
10350
      this.sessionId = null;
10351
      this.gatewayTxnStatus = null;
10352
      this.description = null;
10353
      this.gatewayTxnId = null;
10354
      this.authCode = null;
10355
      this.referenceCode = null;
10356
      this.errorCode = null;
10357
      this.status = null;
10358
      this.gatewayTxnDate = null;
10359
      this.attributes = null;
420 ashish 10360
    }
10361
 
10362
    public long getId() {
10363
      return this.id;
10364
    }
10365
 
3430 rajveer 10366
    public void setId(long id) {
420 ashish 10367
      this.id = id;
10368
      setIdIsSet(true);
10369
    }
10370
 
10371
    public void unsetId() {
10372
      __isset_bit_vector.clear(__ID_ISSET_ID);
10373
    }
10374
 
3430 rajveer 10375
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 10376
    public boolean isSetId() {
10377
      return __isset_bit_vector.get(__ID_ISSET_ID);
10378
    }
10379
 
10380
    public void setIdIsSet(boolean value) {
10381
      __isset_bit_vector.set(__ID_ISSET_ID, value);
10382
    }
10383
 
695 rajveer 10384
    public String getGatewayPaymentId() {
10385
      return this.gatewayPaymentId;
420 ashish 10386
    }
10387
 
3430 rajveer 10388
    public void setGatewayPaymentId(String gatewayPaymentId) {
695 rajveer 10389
      this.gatewayPaymentId = gatewayPaymentId;
420 ashish 10390
    }
10391
 
695 rajveer 10392
    public void unsetGatewayPaymentId() {
10393
      this.gatewayPaymentId = null;
420 ashish 10394
    }
10395
 
3430 rajveer 10396
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
695 rajveer 10397
    public boolean isSetGatewayPaymentId() {
10398
      return this.gatewayPaymentId != null;
420 ashish 10399
    }
10400
 
695 rajveer 10401
    public void setGatewayPaymentIdIsSet(boolean value) {
420 ashish 10402
      if (!value) {
695 rajveer 10403
        this.gatewayPaymentId = null;
420 ashish 10404
      }
10405
    }
10406
 
695 rajveer 10407
    public String getSessionId() {
10408
      return this.sessionId;
420 ashish 10409
    }
10410
 
3430 rajveer 10411
    public void setSessionId(String sessionId) {
695 rajveer 10412
      this.sessionId = sessionId;
420 ashish 10413
    }
10414
 
695 rajveer 10415
    public void unsetSessionId() {
10416
      this.sessionId = null;
420 ashish 10417
    }
10418
 
3430 rajveer 10419
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
695 rajveer 10420
    public boolean isSetSessionId() {
10421
      return this.sessionId != null;
420 ashish 10422
    }
10423
 
695 rajveer 10424
    public void setSessionIdIsSet(boolean value) {
420 ashish 10425
      if (!value) {
695 rajveer 10426
        this.sessionId = null;
420 ashish 10427
      }
10428
    }
10429
 
695 rajveer 10430
    public String getGatewayTxnStatus() {
10431
      return this.gatewayTxnStatus;
420 ashish 10432
    }
10433
 
3430 rajveer 10434
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
695 rajveer 10435
      this.gatewayTxnStatus = gatewayTxnStatus;
420 ashish 10436
    }
10437
 
695 rajveer 10438
    public void unsetGatewayTxnStatus() {
10439
      this.gatewayTxnStatus = null;
420 ashish 10440
    }
10441
 
3430 rajveer 10442
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
695 rajveer 10443
    public boolean isSetGatewayTxnStatus() {
10444
      return this.gatewayTxnStatus != null;
420 ashish 10445
    }
10446
 
695 rajveer 10447
    public void setGatewayTxnStatusIsSet(boolean value) {
420 ashish 10448
      if (!value) {
695 rajveer 10449
        this.gatewayTxnStatus = null;
420 ashish 10450
      }
10451
    }
10452
 
695 rajveer 10453
    public String getDescription() {
10454
      return this.description;
420 ashish 10455
    }
10456
 
3430 rajveer 10457
    public void setDescription(String description) {
695 rajveer 10458
      this.description = description;
420 ashish 10459
    }
10460
 
695 rajveer 10461
    public void unsetDescription() {
10462
      this.description = null;
420 ashish 10463
    }
10464
 
3430 rajveer 10465
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
695 rajveer 10466
    public boolean isSetDescription() {
10467
      return this.description != null;
420 ashish 10468
    }
10469
 
695 rajveer 10470
    public void setDescriptionIsSet(boolean value) {
420 ashish 10471
      if (!value) {
695 rajveer 10472
        this.description = null;
420 ashish 10473
      }
10474
    }
10475
 
695 rajveer 10476
    public String getGatewayTxnId() {
10477
      return this.gatewayTxnId;
420 ashish 10478
    }
10479
 
3430 rajveer 10480
    public void setGatewayTxnId(String gatewayTxnId) {
695 rajveer 10481
      this.gatewayTxnId = gatewayTxnId;
420 ashish 10482
    }
10483
 
695 rajveer 10484
    public void unsetGatewayTxnId() {
10485
      this.gatewayTxnId = null;
420 ashish 10486
    }
10487
 
3430 rajveer 10488
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
695 rajveer 10489
    public boolean isSetGatewayTxnId() {
10490
      return this.gatewayTxnId != null;
420 ashish 10491
    }
10492
 
695 rajveer 10493
    public void setGatewayTxnIdIsSet(boolean value) {
420 ashish 10494
      if (!value) {
695 rajveer 10495
        this.gatewayTxnId = null;
420 ashish 10496
      }
10497
    }
10498
 
695 rajveer 10499
    public String getAuthCode() {
10500
      return this.authCode;
420 ashish 10501
    }
10502
 
3430 rajveer 10503
    public void setAuthCode(String authCode) {
695 rajveer 10504
      this.authCode = authCode;
420 ashish 10505
    }
10506
 
695 rajveer 10507
    public void unsetAuthCode() {
10508
      this.authCode = null;
420 ashish 10509
    }
10510
 
3430 rajveer 10511
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
695 rajveer 10512
    public boolean isSetAuthCode() {
10513
      return this.authCode != null;
420 ashish 10514
    }
10515
 
695 rajveer 10516
    public void setAuthCodeIsSet(boolean value) {
420 ashish 10517
      if (!value) {
695 rajveer 10518
        this.authCode = null;
420 ashish 10519
      }
10520
    }
10521
 
695 rajveer 10522
    public String getReferenceCode() {
10523
      return this.referenceCode;
420 ashish 10524
    }
10525
 
3430 rajveer 10526
    public void setReferenceCode(String referenceCode) {
695 rajveer 10527
      this.referenceCode = referenceCode;
420 ashish 10528
    }
10529
 
695 rajveer 10530
    public void unsetReferenceCode() {
10531
      this.referenceCode = null;
420 ashish 10532
    }
10533
 
3430 rajveer 10534
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
695 rajveer 10535
    public boolean isSetReferenceCode() {
10536
      return this.referenceCode != null;
420 ashish 10537
    }
10538
 
695 rajveer 10539
    public void setReferenceCodeIsSet(boolean value) {
420 ashish 10540
      if (!value) {
695 rajveer 10541
        this.referenceCode = null;
420 ashish 10542
      }
10543
    }
10544
 
695 rajveer 10545
    public String getErrorCode() {
10546
      return this.errorCode;
10547
    }
10548
 
3430 rajveer 10549
    public void setErrorCode(String errorCode) {
695 rajveer 10550
      this.errorCode = errorCode;
10551
    }
10552
 
10553
    public void unsetErrorCode() {
10554
      this.errorCode = null;
10555
    }
10556
 
3430 rajveer 10557
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
695 rajveer 10558
    public boolean isSetErrorCode() {
10559
      return this.errorCode != null;
10560
    }
10561
 
10562
    public void setErrorCodeIsSet(boolean value) {
10563
      if (!value) {
10564
        this.errorCode = null;
10565
      }
10566
    }
10567
 
10568
    /**
10569
     * 
10570
     * @see PaymentStatus
10571
     */
10572
    public PaymentStatus getStatus() {
10573
      return this.status;
10574
    }
10575
 
10576
    /**
10577
     * 
10578
     * @see PaymentStatus
10579
     */
3430 rajveer 10580
    public void setStatus(PaymentStatus status) {
695 rajveer 10581
      this.status = status;
10582
    }
10583
 
10584
    public void unsetStatus() {
10585
      this.status = null;
10586
    }
10587
 
3430 rajveer 10588
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
695 rajveer 10589
    public boolean isSetStatus() {
10590
      return this.status != null;
10591
    }
10592
 
10593
    public void setStatusIsSet(boolean value) {
10594
      if (!value) {
10595
        this.status = null;
10596
      }
10597
    }
10598
 
1119 rajveer 10599
    public String getGatewayTxnDate() {
10600
      return this.gatewayTxnDate;
10601
    }
10602
 
3430 rajveer 10603
    public void setGatewayTxnDate(String gatewayTxnDate) {
1119 rajveer 10604
      this.gatewayTxnDate = gatewayTxnDate;
10605
    }
10606
 
10607
    public void unsetGatewayTxnDate() {
10608
      this.gatewayTxnDate = null;
10609
    }
10610
 
3430 rajveer 10611
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
1119 rajveer 10612
    public boolean isSetGatewayTxnDate() {
10613
      return this.gatewayTxnDate != null;
10614
    }
10615
 
10616
    public void setGatewayTxnDateIsSet(boolean value) {
10617
      if (!value) {
10618
        this.gatewayTxnDate = null;
10619
      }
10620
    }
10621
 
695 rajveer 10622
    public int getAttributesSize() {
10623
      return (this.attributes == null) ? 0 : this.attributes.size();
10624
    }
10625
 
10626
    public java.util.Iterator<Attribute> getAttributesIterator() {
10627
      return (this.attributes == null) ? null : this.attributes.iterator();
10628
    }
10629
 
10630
    public void addToAttributes(Attribute elem) {
10631
      if (this.attributes == null) {
10632
        this.attributes = new ArrayList<Attribute>();
10633
      }
10634
      this.attributes.add(elem);
10635
    }
10636
 
10637
    public List<Attribute> getAttributes() {
10638
      return this.attributes;
10639
    }
10640
 
3430 rajveer 10641
    public void setAttributes(List<Attribute> attributes) {
695 rajveer 10642
      this.attributes = attributes;
10643
    }
10644
 
10645
    public void unsetAttributes() {
10646
      this.attributes = null;
10647
    }
10648
 
3430 rajveer 10649
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
695 rajveer 10650
    public boolean isSetAttributes() {
10651
      return this.attributes != null;
10652
    }
10653
 
10654
    public void setAttributesIsSet(boolean value) {
10655
      if (!value) {
10656
        this.attributes = null;
10657
      }
10658
    }
10659
 
420 ashish 10660
    public void setFieldValue(_Fields field, Object value) {
10661
      switch (field) {
10662
      case ID:
10663
        if (value == null) {
10664
          unsetId();
10665
        } else {
10666
          setId((Long)value);
10667
        }
10668
        break;
10669
 
695 rajveer 10670
      case GATEWAY_PAYMENT_ID:
420 ashish 10671
        if (value == null) {
695 rajveer 10672
          unsetGatewayPaymentId();
420 ashish 10673
        } else {
695 rajveer 10674
          setGatewayPaymentId((String)value);
420 ashish 10675
        }
10676
        break;
10677
 
695 rajveer 10678
      case SESSION_ID:
420 ashish 10679
        if (value == null) {
695 rajveer 10680
          unsetSessionId();
420 ashish 10681
        } else {
695 rajveer 10682
          setSessionId((String)value);
420 ashish 10683
        }
10684
        break;
10685
 
695 rajveer 10686
      case GATEWAY_TXN_STATUS:
420 ashish 10687
        if (value == null) {
695 rajveer 10688
          unsetGatewayTxnStatus();
420 ashish 10689
        } else {
695 rajveer 10690
          setGatewayTxnStatus((String)value);
420 ashish 10691
        }
10692
        break;
10693
 
695 rajveer 10694
      case DESCRIPTION:
420 ashish 10695
        if (value == null) {
695 rajveer 10696
          unsetDescription();
420 ashish 10697
        } else {
695 rajveer 10698
          setDescription((String)value);
420 ashish 10699
        }
10700
        break;
10701
 
695 rajveer 10702
      case GATEWAY_TXN_ID:
420 ashish 10703
        if (value == null) {
695 rajveer 10704
          unsetGatewayTxnId();
420 ashish 10705
        } else {
695 rajveer 10706
          setGatewayTxnId((String)value);
420 ashish 10707
        }
10708
        break;
10709
 
10710
      case AUTH_CODE:
10711
        if (value == null) {
695 rajveer 10712
          unsetAuthCode();
420 ashish 10713
        } else {
695 rajveer 10714
          setAuthCode((String)value);
420 ashish 10715
        }
10716
        break;
10717
 
695 rajveer 10718
      case REFERENCE_CODE:
420 ashish 10719
        if (value == null) {
695 rajveer 10720
          unsetReferenceCode();
420 ashish 10721
        } else {
695 rajveer 10722
          setReferenceCode((String)value);
420 ashish 10723
        }
10724
        break;
10725
 
695 rajveer 10726
      case ERROR_CODE:
10727
        if (value == null) {
10728
          unsetErrorCode();
10729
        } else {
10730
          setErrorCode((String)value);
10731
        }
10732
        break;
10733
 
10734
      case STATUS:
10735
        if (value == null) {
10736
          unsetStatus();
10737
        } else {
10738
          setStatus((PaymentStatus)value);
10739
        }
10740
        break;
10741
 
1119 rajveer 10742
      case GATEWAY_TXN_DATE:
10743
        if (value == null) {
10744
          unsetGatewayTxnDate();
10745
        } else {
10746
          setGatewayTxnDate((String)value);
10747
        }
10748
        break;
10749
 
695 rajveer 10750
      case ATTRIBUTES:
10751
        if (value == null) {
10752
          unsetAttributes();
10753
        } else {
10754
          setAttributes((List<Attribute>)value);
10755
        }
10756
        break;
10757
 
420 ashish 10758
      }
10759
    }
10760
 
10761
    public Object getFieldValue(_Fields field) {
10762
      switch (field) {
10763
      case ID:
3430 rajveer 10764
        return Long.valueOf(getId());
420 ashish 10765
 
695 rajveer 10766
      case GATEWAY_PAYMENT_ID:
10767
        return getGatewayPaymentId();
420 ashish 10768
 
695 rajveer 10769
      case SESSION_ID:
10770
        return getSessionId();
420 ashish 10771
 
695 rajveer 10772
      case GATEWAY_TXN_STATUS:
10773
        return getGatewayTxnStatus();
420 ashish 10774
 
695 rajveer 10775
      case DESCRIPTION:
10776
        return getDescription();
420 ashish 10777
 
695 rajveer 10778
      case GATEWAY_TXN_ID:
10779
        return getGatewayTxnId();
420 ashish 10780
 
10781
      case AUTH_CODE:
695 rajveer 10782
        return getAuthCode();
420 ashish 10783
 
695 rajveer 10784
      case REFERENCE_CODE:
10785
        return getReferenceCode();
420 ashish 10786
 
695 rajveer 10787
      case ERROR_CODE:
10788
        return getErrorCode();
10789
 
10790
      case STATUS:
10791
        return getStatus();
10792
 
1119 rajveer 10793
      case GATEWAY_TXN_DATE:
10794
        return getGatewayTxnDate();
10795
 
695 rajveer 10796
      case ATTRIBUTES:
10797
        return getAttributes();
10798
 
420 ashish 10799
      }
10800
      throw new IllegalStateException();
10801
    }
10802
 
3430 rajveer 10803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10804
    public boolean isSet(_Fields field) {
10805
      if (field == null) {
10806
        throw new IllegalArgumentException();
10807
      }
420 ashish 10808
 
10809
      switch (field) {
10810
      case ID:
10811
        return isSetId();
695 rajveer 10812
      case GATEWAY_PAYMENT_ID:
10813
        return isSetGatewayPaymentId();
420 ashish 10814
      case SESSION_ID:
695 rajveer 10815
        return isSetSessionId();
10816
      case GATEWAY_TXN_STATUS:
10817
        return isSetGatewayTxnStatus();
10818
      case DESCRIPTION:
10819
        return isSetDescription();
10820
      case GATEWAY_TXN_ID:
10821
        return isSetGatewayTxnId();
420 ashish 10822
      case AUTH_CODE:
695 rajveer 10823
        return isSetAuthCode();
10824
      case REFERENCE_CODE:
10825
        return isSetReferenceCode();
10826
      case ERROR_CODE:
10827
        return isSetErrorCode();
10828
      case STATUS:
10829
        return isSetStatus();
1119 rajveer 10830
      case GATEWAY_TXN_DATE:
10831
        return isSetGatewayTxnDate();
695 rajveer 10832
      case ATTRIBUTES:
10833
        return isSetAttributes();
420 ashish 10834
      }
10835
      throw new IllegalStateException();
10836
    }
10837
 
10838
    @Override
10839
    public boolean equals(Object that) {
10840
      if (that == null)
10841
        return false;
695 rajveer 10842
      if (that instanceof updatePaymentDetails_args)
10843
        return this.equals((updatePaymentDetails_args)that);
420 ashish 10844
      return false;
10845
    }
10846
 
695 rajveer 10847
    public boolean equals(updatePaymentDetails_args that) {
420 ashish 10848
      if (that == null)
10849
        return false;
10850
 
10851
      boolean this_present_id = true;
10852
      boolean that_present_id = true;
10853
      if (this_present_id || that_present_id) {
10854
        if (!(this_present_id && that_present_id))
10855
          return false;
10856
        if (this.id != that.id)
10857
          return false;
10858
      }
10859
 
695 rajveer 10860
      boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
10861
      boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
10862
      if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
10863
        if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
420 ashish 10864
          return false;
695 rajveer 10865
        if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
420 ashish 10866
          return false;
10867
      }
10868
 
695 rajveer 10869
      boolean this_present_sessionId = true && this.isSetSessionId();
10870
      boolean that_present_sessionId = true && that.isSetSessionId();
10871
      if (this_present_sessionId || that_present_sessionId) {
10872
        if (!(this_present_sessionId && that_present_sessionId))
420 ashish 10873
          return false;
695 rajveer 10874
        if (!this.sessionId.equals(that.sessionId))
420 ashish 10875
          return false;
10876
      }
10877
 
695 rajveer 10878
      boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
10879
      boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
10880
      if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
10881
        if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
420 ashish 10882
          return false;
695 rajveer 10883
        if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
420 ashish 10884
          return false;
10885
      }
10886
 
695 rajveer 10887
      boolean this_present_description = true && this.isSetDescription();
10888
      boolean that_present_description = true && that.isSetDescription();
10889
      if (this_present_description || that_present_description) {
10890
        if (!(this_present_description && that_present_description))
420 ashish 10891
          return false;
695 rajveer 10892
        if (!this.description.equals(that.description))
420 ashish 10893
          return false;
10894
      }
10895
 
695 rajveer 10896
      boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
10897
      boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
10898
      if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
10899
        if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
420 ashish 10900
          return false;
695 rajveer 10901
        if (!this.gatewayTxnId.equals(that.gatewayTxnId))
420 ashish 10902
          return false;
10903
      }
10904
 
695 rajveer 10905
      boolean this_present_authCode = true && this.isSetAuthCode();
10906
      boolean that_present_authCode = true && that.isSetAuthCode();
10907
      if (this_present_authCode || that_present_authCode) {
10908
        if (!(this_present_authCode && that_present_authCode))
420 ashish 10909
          return false;
695 rajveer 10910
        if (!this.authCode.equals(that.authCode))
420 ashish 10911
          return false;
10912
      }
10913
 
695 rajveer 10914
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
10915
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
10916
      if (this_present_referenceCode || that_present_referenceCode) {
10917
        if (!(this_present_referenceCode && that_present_referenceCode))
420 ashish 10918
          return false;
695 rajveer 10919
        if (!this.referenceCode.equals(that.referenceCode))
420 ashish 10920
          return false;
10921
      }
10922
 
695 rajveer 10923
      boolean this_present_errorCode = true && this.isSetErrorCode();
10924
      boolean that_present_errorCode = true && that.isSetErrorCode();
10925
      if (this_present_errorCode || that_present_errorCode) {
10926
        if (!(this_present_errorCode && that_present_errorCode))
10927
          return false;
10928
        if (!this.errorCode.equals(that.errorCode))
10929
          return false;
10930
      }
10931
 
10932
      boolean this_present_status = true && this.isSetStatus();
10933
      boolean that_present_status = true && that.isSetStatus();
10934
      if (this_present_status || that_present_status) {
10935
        if (!(this_present_status && that_present_status))
10936
          return false;
10937
        if (!this.status.equals(that.status))
10938
          return false;
10939
      }
10940
 
1119 rajveer 10941
      boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
10942
      boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
10943
      if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
10944
        if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
10945
          return false;
10946
        if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
10947
          return false;
10948
      }
10949
 
695 rajveer 10950
      boolean this_present_attributes = true && this.isSetAttributes();
10951
      boolean that_present_attributes = true && that.isSetAttributes();
10952
      if (this_present_attributes || that_present_attributes) {
10953
        if (!(this_present_attributes && that_present_attributes))
10954
          return false;
10955
        if (!this.attributes.equals(that.attributes))
10956
          return false;
10957
      }
10958
 
420 ashish 10959
      return true;
10960
    }
10961
 
10962
    @Override
10963
    public int hashCode() {
10964
      return 0;
10965
    }
10966
 
695 rajveer 10967
    public int compareTo(updatePaymentDetails_args other) {
420 ashish 10968
      if (!getClass().equals(other.getClass())) {
10969
        return getClass().getName().compareTo(other.getClass().getName());
10970
      }
10971
 
10972
      int lastComparison = 0;
695 rajveer 10973
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
420 ashish 10974
 
3430 rajveer 10975
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 10976
      if (lastComparison != 0) {
10977
        return lastComparison;
10978
      }
3430 rajveer 10979
      if (isSetId()) {
10980
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
10981
        if (lastComparison != 0) {
10982
          return lastComparison;
10983
        }
420 ashish 10984
      }
3430 rajveer 10985
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
420 ashish 10986
      if (lastComparison != 0) {
10987
        return lastComparison;
10988
      }
3430 rajveer 10989
      if (isSetGatewayPaymentId()) {
10990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
10991
        if (lastComparison != 0) {
10992
          return lastComparison;
10993
        }
420 ashish 10994
      }
3430 rajveer 10995
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
420 ashish 10996
      if (lastComparison != 0) {
10997
        return lastComparison;
10998
      }
3430 rajveer 10999
      if (isSetSessionId()) {
11000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
11001
        if (lastComparison != 0) {
11002
          return lastComparison;
11003
        }
420 ashish 11004
      }
3430 rajveer 11005
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
420 ashish 11006
      if (lastComparison != 0) {
11007
        return lastComparison;
11008
      }
3430 rajveer 11009
      if (isSetGatewayTxnStatus()) {
11010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
11011
        if (lastComparison != 0) {
11012
          return lastComparison;
11013
        }
420 ashish 11014
      }
3430 rajveer 11015
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
420 ashish 11016
      if (lastComparison != 0) {
11017
        return lastComparison;
11018
      }
3430 rajveer 11019
      if (isSetDescription()) {
11020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
11021
        if (lastComparison != 0) {
11022
          return lastComparison;
11023
        }
420 ashish 11024
      }
3430 rajveer 11025
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
420 ashish 11026
      if (lastComparison != 0) {
11027
        return lastComparison;
11028
      }
3430 rajveer 11029
      if (isSetGatewayTxnId()) {
11030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
11031
        if (lastComparison != 0) {
11032
          return lastComparison;
11033
        }
420 ashish 11034
      }
3430 rajveer 11035
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
420 ashish 11036
      if (lastComparison != 0) {
11037
        return lastComparison;
11038
      }
3430 rajveer 11039
      if (isSetAuthCode()) {
11040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
11041
        if (lastComparison != 0) {
11042
          return lastComparison;
11043
        }
420 ashish 11044
      }
3430 rajveer 11045
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
420 ashish 11046
      if (lastComparison != 0) {
11047
        return lastComparison;
11048
      }
3430 rajveer 11049
      if (isSetReferenceCode()) {
11050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
11051
        if (lastComparison != 0) {
11052
          return lastComparison;
11053
        }
420 ashish 11054
      }
3430 rajveer 11055
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
695 rajveer 11056
      if (lastComparison != 0) {
11057
        return lastComparison;
11058
      }
3430 rajveer 11059
      if (isSetErrorCode()) {
11060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
11061
        if (lastComparison != 0) {
11062
          return lastComparison;
11063
        }
695 rajveer 11064
      }
3430 rajveer 11065
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
695 rajveer 11066
      if (lastComparison != 0) {
11067
        return lastComparison;
11068
      }
3430 rajveer 11069
      if (isSetStatus()) {
11070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
11071
        if (lastComparison != 0) {
11072
          return lastComparison;
11073
        }
695 rajveer 11074
      }
3430 rajveer 11075
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1119 rajveer 11076
      if (lastComparison != 0) {
11077
        return lastComparison;
11078
      }
3430 rajveer 11079
      if (isSetGatewayTxnDate()) {
11080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
11081
        if (lastComparison != 0) {
11082
          return lastComparison;
11083
        }
1119 rajveer 11084
      }
3430 rajveer 11085
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
695 rajveer 11086
      if (lastComparison != 0) {
11087
        return lastComparison;
11088
      }
3430 rajveer 11089
      if (isSetAttributes()) {
11090
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
11091
        if (lastComparison != 0) {
11092
          return lastComparison;
11093
        }
695 rajveer 11094
      }
420 ashish 11095
      return 0;
11096
    }
11097
 
3430 rajveer 11098
    public _Fields fieldForId(int fieldId) {
11099
      return _Fields.findByThriftId(fieldId);
11100
    }
11101
 
11102
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11103
      org.apache.thrift.protocol.TField field;
420 ashish 11104
      iprot.readStructBegin();
11105
      while (true)
11106
      {
11107
        field = iprot.readFieldBegin();
3430 rajveer 11108
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 11109
          break;
11110
        }
3430 rajveer 11111
        switch (field.id) {
11112
          case 1: // ID
11113
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11114
              this.id = iprot.readI64();
11115
              setIdIsSet(true);
11116
            } else { 
11117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11118
            }
11119
            break;
11120
          case 2: // GATEWAY_PAYMENT_ID
11121
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11122
              this.gatewayPaymentId = iprot.readString();
11123
            } else { 
11124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11125
            }
11126
            break;
11127
          case 3: // SESSION_ID
11128
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11129
              this.sessionId = iprot.readString();
11130
            } else { 
11131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11132
            }
11133
            break;
11134
          case 4: // GATEWAY_TXN_STATUS
11135
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11136
              this.gatewayTxnStatus = iprot.readString();
11137
            } else { 
11138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11139
            }
11140
            break;
11141
          case 5: // DESCRIPTION
11142
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11143
              this.description = iprot.readString();
11144
            } else { 
11145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11146
            }
11147
            break;
11148
          case 6: // GATEWAY_TXN_ID
11149
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11150
              this.gatewayTxnId = iprot.readString();
11151
            } else { 
11152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11153
            }
11154
            break;
11155
          case 7: // AUTH_CODE
11156
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11157
              this.authCode = iprot.readString();
11158
            } else { 
11159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11160
            }
11161
            break;
11162
          case 8: // REFERENCE_CODE
11163
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11164
              this.referenceCode = iprot.readString();
11165
            } else { 
11166
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11167
            }
11168
            break;
11169
          case 9: // ERROR_CODE
11170
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11171
              this.errorCode = iprot.readString();
11172
            } else { 
11173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11174
            }
11175
            break;
11176
          case 10: // STATUS
11177
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11178
              this.status = PaymentStatus.findByValue(iprot.readI32());
11179
            } else { 
11180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11181
            }
11182
            break;
11183
          case 11: // GATEWAY_TXN_DATE
11184
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11185
              this.gatewayTxnDate = iprot.readString();
11186
            } else { 
11187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11188
            }
11189
            break;
11190
          case 12: // ATTRIBUTES
11191
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11192
              {
7049 anupam.sin 11193
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
11194
                this.attributes = new ArrayList<Attribute>(_list36.size);
11195
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
695 rajveer 11196
                {
7049 anupam.sin 11197
                  Attribute _elem38; // required
11198
                  _elem38 = new Attribute();
11199
                  _elem38.read(iprot);
11200
                  this.attributes.add(_elem38);
695 rajveer 11201
                }
3430 rajveer 11202
                iprot.readListEnd();
695 rajveer 11203
              }
3430 rajveer 11204
            } else { 
11205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11206
            }
11207
            break;
11208
          default:
11209
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 11210
        }
3430 rajveer 11211
        iprot.readFieldEnd();
420 ashish 11212
      }
11213
      iprot.readStructEnd();
11214
      validate();
11215
    }
11216
 
3430 rajveer 11217
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 11218
      validate();
11219
 
11220
      oprot.writeStructBegin(STRUCT_DESC);
11221
      oprot.writeFieldBegin(ID_FIELD_DESC);
11222
      oprot.writeI64(this.id);
11223
      oprot.writeFieldEnd();
695 rajveer 11224
      if (this.gatewayPaymentId != null) {
11225
        oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
11226
        oprot.writeString(this.gatewayPaymentId);
420 ashish 11227
        oprot.writeFieldEnd();
11228
      }
695 rajveer 11229
      if (this.sessionId != null) {
11230
        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
11231
        oprot.writeString(this.sessionId);
420 ashish 11232
        oprot.writeFieldEnd();
11233
      }
695 rajveer 11234
      if (this.gatewayTxnStatus != null) {
11235
        oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
11236
        oprot.writeString(this.gatewayTxnStatus);
420 ashish 11237
        oprot.writeFieldEnd();
11238
      }
695 rajveer 11239
      if (this.description != null) {
11240
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
11241
        oprot.writeString(this.description);
420 ashish 11242
        oprot.writeFieldEnd();
11243
      }
695 rajveer 11244
      if (this.gatewayTxnId != null) {
11245
        oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
11246
        oprot.writeString(this.gatewayTxnId);
420 ashish 11247
        oprot.writeFieldEnd();
11248
      }
695 rajveer 11249
      if (this.authCode != null) {
420 ashish 11250
        oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
695 rajveer 11251
        oprot.writeString(this.authCode);
420 ashish 11252
        oprot.writeFieldEnd();
11253
      }
695 rajveer 11254
      if (this.referenceCode != null) {
11255
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
11256
        oprot.writeString(this.referenceCode);
420 ashish 11257
        oprot.writeFieldEnd();
11258
      }
695 rajveer 11259
      if (this.errorCode != null) {
11260
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
11261
        oprot.writeString(this.errorCode);
11262
        oprot.writeFieldEnd();
11263
      }
11264
      if (this.status != null) {
11265
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
11266
        oprot.writeI32(this.status.getValue());
11267
        oprot.writeFieldEnd();
11268
      }
1119 rajveer 11269
      if (this.gatewayTxnDate != null) {
11270
        oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
11271
        oprot.writeString(this.gatewayTxnDate);
11272
        oprot.writeFieldEnd();
11273
      }
695 rajveer 11274
      if (this.attributes != null) {
11275
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
11276
        {
3430 rajveer 11277
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
7049 anupam.sin 11278
          for (Attribute _iter39 : this.attributes)
695 rajveer 11279
          {
7049 anupam.sin 11280
            _iter39.write(oprot);
695 rajveer 11281
          }
11282
          oprot.writeListEnd();
11283
        }
11284
        oprot.writeFieldEnd();
11285
      }
420 ashish 11286
      oprot.writeFieldStop();
11287
      oprot.writeStructEnd();
11288
    }
11289
 
11290
    @Override
11291
    public String toString() {
695 rajveer 11292
      StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
420 ashish 11293
      boolean first = true;
11294
 
11295
      sb.append("id:");
11296
      sb.append(this.id);
11297
      first = false;
11298
      if (!first) sb.append(", ");
695 rajveer 11299
      sb.append("gatewayPaymentId:");
11300
      if (this.gatewayPaymentId == null) {
420 ashish 11301
        sb.append("null");
11302
      } else {
695 rajveer 11303
        sb.append(this.gatewayPaymentId);
420 ashish 11304
      }
11305
      first = false;
11306
      if (!first) sb.append(", ");
695 rajveer 11307
      sb.append("sessionId:");
11308
      if (this.sessionId == null) {
420 ashish 11309
        sb.append("null");
11310
      } else {
695 rajveer 11311
        sb.append(this.sessionId);
420 ashish 11312
      }
11313
      first = false;
11314
      if (!first) sb.append(", ");
695 rajveer 11315
      sb.append("gatewayTxnStatus:");
11316
      if (this.gatewayTxnStatus == null) {
420 ashish 11317
        sb.append("null");
11318
      } else {
695 rajveer 11319
        sb.append(this.gatewayTxnStatus);
420 ashish 11320
      }
11321
      first = false;
11322
      if (!first) sb.append(", ");
695 rajveer 11323
      sb.append("description:");
11324
      if (this.description == null) {
420 ashish 11325
        sb.append("null");
11326
      } else {
695 rajveer 11327
        sb.append(this.description);
420 ashish 11328
      }
11329
      first = false;
11330
      if (!first) sb.append(", ");
695 rajveer 11331
      sb.append("gatewayTxnId:");
11332
      if (this.gatewayTxnId == null) {
420 ashish 11333
        sb.append("null");
11334
      } else {
695 rajveer 11335
        sb.append(this.gatewayTxnId);
420 ashish 11336
      }
11337
      first = false;
11338
      if (!first) sb.append(", ");
695 rajveer 11339
      sb.append("authCode:");
11340
      if (this.authCode == null) {
420 ashish 11341
        sb.append("null");
11342
      } else {
695 rajveer 11343
        sb.append(this.authCode);
420 ashish 11344
      }
11345
      first = false;
11346
      if (!first) sb.append(", ");
695 rajveer 11347
      sb.append("referenceCode:");
11348
      if (this.referenceCode == null) {
420 ashish 11349
        sb.append("null");
11350
      } else {
695 rajveer 11351
        sb.append(this.referenceCode);
420 ashish 11352
      }
11353
      first = false;
695 rajveer 11354
      if (!first) sb.append(", ");
11355
      sb.append("errorCode:");
11356
      if (this.errorCode == null) {
11357
        sb.append("null");
11358
      } else {
11359
        sb.append(this.errorCode);
11360
      }
11361
      first = false;
11362
      if (!first) sb.append(", ");
11363
      sb.append("status:");
11364
      if (this.status == null) {
11365
        sb.append("null");
11366
      } else {
11367
        sb.append(this.status);
11368
      }
11369
      first = false;
11370
      if (!first) sb.append(", ");
1119 rajveer 11371
      sb.append("gatewayTxnDate:");
11372
      if (this.gatewayTxnDate == null) {
11373
        sb.append("null");
11374
      } else {
11375
        sb.append(this.gatewayTxnDate);
11376
      }
11377
      first = false;
11378
      if (!first) sb.append(", ");
695 rajveer 11379
      sb.append("attributes:");
11380
      if (this.attributes == null) {
11381
        sb.append("null");
11382
      } else {
11383
        sb.append(this.attributes);
11384
      }
11385
      first = false;
420 ashish 11386
      sb.append(")");
11387
      return sb.toString();
11388
    }
11389
 
3430 rajveer 11390
    public void validate() throws org.apache.thrift.TException {
420 ashish 11391
      // check for required fields
11392
    }
11393
 
3430 rajveer 11394
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11395
      try {
11396
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11397
      } catch (org.apache.thrift.TException te) {
11398
        throw new java.io.IOException(te);
11399
      }
11400
    }
11401
 
11402
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11403
      try {
11404
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11405
        __isset_bit_vector = new BitSet(1);
11406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11407
      } catch (org.apache.thrift.TException te) {
11408
        throw new java.io.IOException(te);
11409
      }
11410
    }
11411
 
420 ashish 11412
  }
11413
 
3430 rajveer 11414
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
11415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
420 ashish 11416
 
3430 rajveer 11417
    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);
11418
    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 11419
 
3430 rajveer 11420
    private boolean success; // required
11421
    private PaymentException pe; // required
420 ashish 11422
 
11423
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11424
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 11425
      SUCCESS((short)0, "success"),
420 ashish 11426
      PE((short)1, "pe");
11427
 
11428
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11429
 
11430
      static {
11431
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11432
          byName.put(field.getFieldName(), field);
11433
        }
11434
      }
11435
 
11436
      /**
11437
       * Find the _Fields constant that matches fieldId, or null if its not found.
11438
       */
11439
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11440
        switch(fieldId) {
11441
          case 0: // SUCCESS
11442
            return SUCCESS;
11443
          case 1: // PE
11444
            return PE;
11445
          default:
11446
            return null;
11447
        }
420 ashish 11448
      }
11449
 
11450
      /**
11451
       * Find the _Fields constant that matches fieldId, throwing an exception
11452
       * if it is not found.
11453
       */
11454
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11455
        _Fields fields = findByThriftId(fieldId);
11456
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11457
        return fields;
11458
      }
11459
 
11460
      /**
11461
       * Find the _Fields constant that matches name, or null if its not found.
11462
       */
11463
      public static _Fields findByName(String name) {
11464
        return byName.get(name);
11465
      }
11466
 
11467
      private final short _thriftId;
11468
      private final String _fieldName;
11469
 
11470
      _Fields(short thriftId, String fieldName) {
11471
        _thriftId = thriftId;
11472
        _fieldName = fieldName;
11473
      }
11474
 
11475
      public short getThriftFieldId() {
11476
        return _thriftId;
11477
      }
11478
 
11479
      public String getFieldName() {
11480
        return _fieldName;
11481
      }
11482
    }
11483
 
11484
    // isset id assignments
695 rajveer 11485
    private static final int __SUCCESS_ISSET_ID = 0;
11486
    private BitSet __isset_bit_vector = new BitSet(1);
420 ashish 11487
 
3430 rajveer 11488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 11489
    static {
3430 rajveer 11490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11491
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11492
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11493
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
420 ashish 11497
    }
11498
 
695 rajveer 11499
    public updatePaymentDetails_result() {
420 ashish 11500
    }
11501
 
695 rajveer 11502
    public updatePaymentDetails_result(
11503
      boolean success,
420 ashish 11504
      PaymentException pe)
11505
    {
11506
      this();
695 rajveer 11507
      this.success = success;
11508
      setSuccessIsSet(true);
420 ashish 11509
      this.pe = pe;
11510
    }
11511
 
11512
    /**
11513
     * Performs a deep copy on <i>other</i>.
11514
     */
695 rajveer 11515
    public updatePaymentDetails_result(updatePaymentDetails_result other) {
11516
      __isset_bit_vector.clear();
11517
      __isset_bit_vector.or(other.__isset_bit_vector);
11518
      this.success = other.success;
420 ashish 11519
      if (other.isSetPe()) {
11520
        this.pe = new PaymentException(other.pe);
11521
      }
11522
    }
11523
 
695 rajveer 11524
    public updatePaymentDetails_result deepCopy() {
11525
      return new updatePaymentDetails_result(this);
420 ashish 11526
    }
11527
 
3430 rajveer 11528
    @Override
11529
    public void clear() {
11530
      setSuccessIsSet(false);
11531
      this.success = false;
11532
      this.pe = null;
420 ashish 11533
    }
11534
 
695 rajveer 11535
    public boolean isSuccess() {
11536
      return this.success;
11537
    }
11538
 
3430 rajveer 11539
    public void setSuccess(boolean success) {
695 rajveer 11540
      this.success = success;
11541
      setSuccessIsSet(true);
11542
    }
11543
 
11544
    public void unsetSuccess() {
11545
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11546
    }
11547
 
3430 rajveer 11548
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
695 rajveer 11549
    public boolean isSetSuccess() {
11550
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11551
    }
11552
 
11553
    public void setSuccessIsSet(boolean value) {
11554
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11555
    }
11556
 
420 ashish 11557
    public PaymentException getPe() {
11558
      return this.pe;
11559
    }
11560
 
3430 rajveer 11561
    public void setPe(PaymentException pe) {
420 ashish 11562
      this.pe = pe;
11563
    }
11564
 
11565
    public void unsetPe() {
11566
      this.pe = null;
11567
    }
11568
 
3430 rajveer 11569
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 11570
    public boolean isSetPe() {
11571
      return this.pe != null;
11572
    }
11573
 
11574
    public void setPeIsSet(boolean value) {
11575
      if (!value) {
11576
        this.pe = null;
11577
      }
11578
    }
11579
 
11580
    public void setFieldValue(_Fields field, Object value) {
11581
      switch (field) {
695 rajveer 11582
      case SUCCESS:
11583
        if (value == null) {
11584
          unsetSuccess();
11585
        } else {
11586
          setSuccess((Boolean)value);
11587
        }
11588
        break;
11589
 
420 ashish 11590
      case PE:
11591
        if (value == null) {
11592
          unsetPe();
11593
        } else {
11594
          setPe((PaymentException)value);
11595
        }
11596
        break;
11597
 
11598
      }
11599
    }
11600
 
11601
    public Object getFieldValue(_Fields field) {
11602
      switch (field) {
695 rajveer 11603
      case SUCCESS:
3430 rajveer 11604
        return Boolean.valueOf(isSuccess());
695 rajveer 11605
 
420 ashish 11606
      case PE:
11607
        return getPe();
11608
 
11609
      }
11610
      throw new IllegalStateException();
11611
    }
11612
 
3430 rajveer 11613
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11614
    public boolean isSet(_Fields field) {
11615
      if (field == null) {
11616
        throw new IllegalArgumentException();
11617
      }
420 ashish 11618
 
11619
      switch (field) {
695 rajveer 11620
      case SUCCESS:
11621
        return isSetSuccess();
420 ashish 11622
      case PE:
11623
        return isSetPe();
11624
      }
11625
      throw new IllegalStateException();
11626
    }
11627
 
11628
    @Override
11629
    public boolean equals(Object that) {
11630
      if (that == null)
11631
        return false;
695 rajveer 11632
      if (that instanceof updatePaymentDetails_result)
11633
        return this.equals((updatePaymentDetails_result)that);
420 ashish 11634
      return false;
11635
    }
11636
 
695 rajveer 11637
    public boolean equals(updatePaymentDetails_result that) {
420 ashish 11638
      if (that == null)
11639
        return false;
11640
 
695 rajveer 11641
      boolean this_present_success = true;
11642
      boolean that_present_success = true;
11643
      if (this_present_success || that_present_success) {
11644
        if (!(this_present_success && that_present_success))
11645
          return false;
11646
        if (this.success != that.success)
11647
          return false;
11648
      }
11649
 
420 ashish 11650
      boolean this_present_pe = true && this.isSetPe();
11651
      boolean that_present_pe = true && that.isSetPe();
11652
      if (this_present_pe || that_present_pe) {
11653
        if (!(this_present_pe && that_present_pe))
11654
          return false;
11655
        if (!this.pe.equals(that.pe))
11656
          return false;
11657
      }
11658
 
11659
      return true;
11660
    }
11661
 
11662
    @Override
11663
    public int hashCode() {
11664
      return 0;
11665
    }
11666
 
695 rajveer 11667
    public int compareTo(updatePaymentDetails_result other) {
420 ashish 11668
      if (!getClass().equals(other.getClass())) {
11669
        return getClass().getName().compareTo(other.getClass().getName());
11670
      }
11671
 
11672
      int lastComparison = 0;
695 rajveer 11673
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
420 ashish 11674
 
3430 rajveer 11675
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 11676
      if (lastComparison != 0) {
11677
        return lastComparison;
11678
      }
3430 rajveer 11679
      if (isSetSuccess()) {
11680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11681
        if (lastComparison != 0) {
11682
          return lastComparison;
11683
        }
695 rajveer 11684
      }
3430 rajveer 11685
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 11686
      if (lastComparison != 0) {
11687
        return lastComparison;
11688
      }
3430 rajveer 11689
      if (isSetPe()) {
11690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
11691
        if (lastComparison != 0) {
11692
          return lastComparison;
11693
        }
420 ashish 11694
      }
11695
      return 0;
11696
    }
11697
 
3430 rajveer 11698
    public _Fields fieldForId(int fieldId) {
11699
      return _Fields.findByThriftId(fieldId);
11700
    }
11701
 
11702
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11703
      org.apache.thrift.protocol.TField field;
420 ashish 11704
      iprot.readStructBegin();
11705
      while (true)
11706
      {
11707
        field = iprot.readFieldBegin();
3430 rajveer 11708
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 11709
          break;
11710
        }
3430 rajveer 11711
        switch (field.id) {
11712
          case 0: // SUCCESS
11713
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11714
              this.success = iprot.readBool();
11715
              setSuccessIsSet(true);
11716
            } else { 
11717
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11718
            }
11719
            break;
11720
          case 1: // PE
11721
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11722
              this.pe = new PaymentException();
11723
              this.pe.read(iprot);
11724
            } else { 
11725
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11726
            }
11727
            break;
11728
          default:
11729
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 11730
        }
3430 rajveer 11731
        iprot.readFieldEnd();
420 ashish 11732
      }
11733
      iprot.readStructEnd();
11734
      validate();
11735
    }
11736
 
3430 rajveer 11737
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 11738
      oprot.writeStructBegin(STRUCT_DESC);
11739
 
695 rajveer 11740
      if (this.isSetSuccess()) {
11741
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11742
        oprot.writeBool(this.success);
11743
        oprot.writeFieldEnd();
11744
      } else if (this.isSetPe()) {
420 ashish 11745
        oprot.writeFieldBegin(PE_FIELD_DESC);
11746
        this.pe.write(oprot);
11747
        oprot.writeFieldEnd();
11748
      }
11749
      oprot.writeFieldStop();
11750
      oprot.writeStructEnd();
11751
    }
11752
 
11753
    @Override
11754
    public String toString() {
695 rajveer 11755
      StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
420 ashish 11756
      boolean first = true;
11757
 
695 rajveer 11758
      sb.append("success:");
11759
      sb.append(this.success);
11760
      first = false;
11761
      if (!first) sb.append(", ");
420 ashish 11762
      sb.append("pe:");
11763
      if (this.pe == null) {
11764
        sb.append("null");
11765
      } else {
11766
        sb.append(this.pe);
11767
      }
11768
      first = false;
11769
      sb.append(")");
11770
      return sb.toString();
11771
    }
11772
 
3430 rajveer 11773
    public void validate() throws org.apache.thrift.TException {
420 ashish 11774
      // check for required fields
11775
    }
11776
 
3430 rajveer 11777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11778
      try {
11779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11780
      } catch (org.apache.thrift.TException te) {
11781
        throw new java.io.IOException(te);
11782
      }
11783
    }
11784
 
11785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11786
      try {
11787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11788
      } catch (org.apache.thrift.TException te) {
11789
        throw new java.io.IOException(te);
11790
      }
11791
    }
11792
 
420 ashish 11793
  }
11794
 
3430 rajveer 11795
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
11796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
1629 ankur.sing 11797
 
11798
 
11799
 
11800
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11801
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 11802
;
11803
 
11804
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11805
 
11806
      static {
11807
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11808
          byName.put(field.getFieldName(), field);
11809
        }
11810
      }
11811
 
11812
      /**
11813
       * Find the _Fields constant that matches fieldId, or null if its not found.
11814
       */
11815
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11816
        switch(fieldId) {
11817
          default:
11818
            return null;
11819
        }
1629 ankur.sing 11820
      }
11821
 
11822
      /**
11823
       * Find the _Fields constant that matches fieldId, throwing an exception
11824
       * if it is not found.
11825
       */
11826
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11827
        _Fields fields = findByThriftId(fieldId);
11828
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11829
        return fields;
11830
      }
11831
 
11832
      /**
11833
       * Find the _Fields constant that matches name, or null if its not found.
11834
       */
11835
      public static _Fields findByName(String name) {
11836
        return byName.get(name);
11837
      }
11838
 
11839
      private final short _thriftId;
11840
      private final String _fieldName;
11841
 
11842
      _Fields(short thriftId, String fieldName) {
11843
        _thriftId = thriftId;
11844
        _fieldName = fieldName;
11845
      }
11846
 
11847
      public short getThriftFieldId() {
11848
        return _thriftId;
11849
      }
11850
 
11851
      public String getFieldName() {
11852
        return _fieldName;
11853
      }
11854
    }
3430 rajveer 11855
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 11856
    static {
3430 rajveer 11857
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
1629 ankur.sing 11860
    }
11861
 
1731 ankur.sing 11862
    public getSuccessfulPaymentsAmountRange_args() {
1629 ankur.sing 11863
    }
11864
 
11865
    /**
11866
     * Performs a deep copy on <i>other</i>.
11867
     */
1731 ankur.sing 11868
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 11869
    }
11870
 
1731 ankur.sing 11871
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
11872
      return new getSuccessfulPaymentsAmountRange_args(this);
1629 ankur.sing 11873
    }
11874
 
3430 rajveer 11875
    @Override
11876
    public void clear() {
1629 ankur.sing 11877
    }
11878
 
11879
    public void setFieldValue(_Fields field, Object value) {
11880
      switch (field) {
11881
      }
11882
    }
11883
 
11884
    public Object getFieldValue(_Fields field) {
11885
      switch (field) {
11886
      }
11887
      throw new IllegalStateException();
11888
    }
11889
 
3430 rajveer 11890
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11891
    public boolean isSet(_Fields field) {
11892
      if (field == null) {
11893
        throw new IllegalArgumentException();
11894
      }
1629 ankur.sing 11895
 
11896
      switch (field) {
11897
      }
11898
      throw new IllegalStateException();
11899
    }
11900
 
11901
    @Override
11902
    public boolean equals(Object that) {
11903
      if (that == null)
11904
        return false;
1731 ankur.sing 11905
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
11906
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
1629 ankur.sing 11907
      return false;
11908
    }
11909
 
1731 ankur.sing 11910
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
1629 ankur.sing 11911
      if (that == null)
11912
        return false;
11913
 
11914
      return true;
11915
    }
11916
 
11917
    @Override
11918
    public int hashCode() {
11919
      return 0;
11920
    }
11921
 
1731 ankur.sing 11922
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 11923
      if (!getClass().equals(other.getClass())) {
11924
        return getClass().getName().compareTo(other.getClass().getName());
11925
      }
11926
 
11927
      int lastComparison = 0;
1731 ankur.sing 11928
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
1629 ankur.sing 11929
 
11930
      return 0;
11931
    }
11932
 
3430 rajveer 11933
    public _Fields fieldForId(int fieldId) {
11934
      return _Fields.findByThriftId(fieldId);
11935
    }
11936
 
11937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11938
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 11939
      iprot.readStructBegin();
11940
      while (true)
11941
      {
11942
        field = iprot.readFieldBegin();
3430 rajveer 11943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 11944
          break;
11945
        }
3430 rajveer 11946
        switch (field.id) {
11947
          default:
11948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 11949
        }
3430 rajveer 11950
        iprot.readFieldEnd();
1629 ankur.sing 11951
      }
11952
      iprot.readStructEnd();
11953
      validate();
11954
    }
11955
 
3430 rajveer 11956
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 11957
      validate();
11958
 
11959
      oprot.writeStructBegin(STRUCT_DESC);
11960
      oprot.writeFieldStop();
11961
      oprot.writeStructEnd();
11962
    }
11963
 
11964
    @Override
11965
    public String toString() {
1731 ankur.sing 11966
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
1629 ankur.sing 11967
      boolean first = true;
11968
 
11969
      sb.append(")");
11970
      return sb.toString();
11971
    }
11972
 
3430 rajveer 11973
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 11974
      // check for required fields
11975
    }
11976
 
3430 rajveer 11977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11978
      try {
11979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11980
      } catch (org.apache.thrift.TException te) {
11981
        throw new java.io.IOException(te);
11982
      }
11983
    }
11984
 
11985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11986
      try {
11987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11988
      } catch (org.apache.thrift.TException te) {
11989
        throw new java.io.IOException(te);
11990
      }
11991
    }
11992
 
1629 ankur.sing 11993
  }
11994
 
3430 rajveer 11995
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
11996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
1629 ankur.sing 11997
 
3430 rajveer 11998
    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 11999
 
3430 rajveer 12000
    private List<Double> success; // required
1629 ankur.sing 12001
 
12002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 12004
      SUCCESS((short)0, "success");
12005
 
12006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12007
 
12008
      static {
12009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12010
          byName.put(field.getFieldName(), field);
12011
        }
12012
      }
12013
 
12014
      /**
12015
       * Find the _Fields constant that matches fieldId, or null if its not found.
12016
       */
12017
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12018
        switch(fieldId) {
12019
          case 0: // SUCCESS
12020
            return SUCCESS;
12021
          default:
12022
            return null;
12023
        }
1629 ankur.sing 12024
      }
12025
 
12026
      /**
12027
       * Find the _Fields constant that matches fieldId, throwing an exception
12028
       * if it is not found.
12029
       */
12030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12031
        _Fields fields = findByThriftId(fieldId);
12032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12033
        return fields;
12034
      }
12035
 
12036
      /**
12037
       * Find the _Fields constant that matches name, or null if its not found.
12038
       */
12039
      public static _Fields findByName(String name) {
12040
        return byName.get(name);
12041
      }
12042
 
12043
      private final short _thriftId;
12044
      private final String _fieldName;
12045
 
12046
      _Fields(short thriftId, String fieldName) {
12047
        _thriftId = thriftId;
12048
        _fieldName = fieldName;
12049
      }
12050
 
12051
      public short getThriftFieldId() {
12052
        return _thriftId;
12053
      }
12054
 
12055
      public String getFieldName() {
12056
        return _fieldName;
12057
      }
12058
    }
12059
 
12060
    // isset id assignments
12061
 
3430 rajveer 12062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 12063
    static {
3430 rajveer 12064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12065
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12066
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12067
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
12068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
1629 ankur.sing 12070
    }
12071
 
1731 ankur.sing 12072
    public getSuccessfulPaymentsAmountRange_result() {
1629 ankur.sing 12073
    }
12074
 
1731 ankur.sing 12075
    public getSuccessfulPaymentsAmountRange_result(
12076
      List<Double> success)
1629 ankur.sing 12077
    {
12078
      this();
12079
      this.success = success;
12080
    }
12081
 
12082
    /**
12083
     * Performs a deep copy on <i>other</i>.
12084
     */
1731 ankur.sing 12085
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
12086
      if (other.isSetSuccess()) {
12087
        List<Double> __this__success = new ArrayList<Double>();
12088
        for (Double other_element : other.success) {
12089
          __this__success.add(other_element);
1629 ankur.sing 12090
        }
1731 ankur.sing 12091
        this.success = __this__success;
1629 ankur.sing 12092
      }
12093
    }
12094
 
1731 ankur.sing 12095
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
12096
      return new getSuccessfulPaymentsAmountRange_result(this);
1629 ankur.sing 12097
    }
12098
 
3430 rajveer 12099
    @Override
12100
    public void clear() {
12101
      this.success = null;
1629 ankur.sing 12102
    }
12103
 
1731 ankur.sing 12104
    public int getSuccessSize() {
12105
      return (this.success == null) ? 0 : this.success.size();
1629 ankur.sing 12106
    }
12107
 
1731 ankur.sing 12108
    public java.util.Iterator<Double> getSuccessIterator() {
12109
      return (this.success == null) ? null : this.success.iterator();
1629 ankur.sing 12110
    }
12111
 
1731 ankur.sing 12112
    public void addToSuccess(double elem) {
12113
      if (this.success == null) {
12114
        this.success = new ArrayList<Double>();
1629 ankur.sing 12115
      }
1731 ankur.sing 12116
      this.success.add(elem);
1629 ankur.sing 12117
    }
12118
 
1731 ankur.sing 12119
    public List<Double> getSuccess() {
1629 ankur.sing 12120
      return this.success;
12121
    }
12122
 
3430 rajveer 12123
    public void setSuccess(List<Double> success) {
1629 ankur.sing 12124
      this.success = success;
12125
    }
12126
 
12127
    public void unsetSuccess() {
1731 ankur.sing 12128
      this.success = null;
1629 ankur.sing 12129
    }
12130
 
3430 rajveer 12131
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1629 ankur.sing 12132
    public boolean isSetSuccess() {
1731 ankur.sing 12133
      return this.success != null;
1629 ankur.sing 12134
    }
12135
 
12136
    public void setSuccessIsSet(boolean value) {
1731 ankur.sing 12137
      if (!value) {
12138
        this.success = null;
12139
      }
1629 ankur.sing 12140
    }
12141
 
12142
    public void setFieldValue(_Fields field, Object value) {
12143
      switch (field) {
12144
      case SUCCESS:
12145
        if (value == null) {
12146
          unsetSuccess();
12147
        } else {
1731 ankur.sing 12148
          setSuccess((List<Double>)value);
1629 ankur.sing 12149
        }
12150
        break;
12151
 
12152
      }
12153
    }
12154
 
12155
    public Object getFieldValue(_Fields field) {
12156
      switch (field) {
12157
      case SUCCESS:
1731 ankur.sing 12158
        return getSuccess();
1629 ankur.sing 12159
 
12160
      }
12161
      throw new IllegalStateException();
12162
    }
12163
 
3430 rajveer 12164
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12165
    public boolean isSet(_Fields field) {
12166
      if (field == null) {
12167
        throw new IllegalArgumentException();
12168
      }
1629 ankur.sing 12169
 
12170
      switch (field) {
12171
      case SUCCESS:
12172
        return isSetSuccess();
12173
      }
12174
      throw new IllegalStateException();
12175
    }
12176
 
12177
    @Override
12178
    public boolean equals(Object that) {
12179
      if (that == null)
12180
        return false;
1731 ankur.sing 12181
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
12182
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
1629 ankur.sing 12183
      return false;
12184
    }
12185
 
1731 ankur.sing 12186
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
1629 ankur.sing 12187
      if (that == null)
12188
        return false;
12189
 
1731 ankur.sing 12190
      boolean this_present_success = true && this.isSetSuccess();
12191
      boolean that_present_success = true && that.isSetSuccess();
1629 ankur.sing 12192
      if (this_present_success || that_present_success) {
12193
        if (!(this_present_success && that_present_success))
12194
          return false;
1731 ankur.sing 12195
        if (!this.success.equals(that.success))
1629 ankur.sing 12196
          return false;
12197
      }
12198
 
12199
      return true;
12200
    }
12201
 
12202
    @Override
12203
    public int hashCode() {
12204
      return 0;
12205
    }
12206
 
1731 ankur.sing 12207
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
1629 ankur.sing 12208
      if (!getClass().equals(other.getClass())) {
12209
        return getClass().getName().compareTo(other.getClass().getName());
12210
      }
12211
 
12212
      int lastComparison = 0;
1731 ankur.sing 12213
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
1629 ankur.sing 12214
 
3430 rajveer 12215
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1629 ankur.sing 12216
      if (lastComparison != 0) {
12217
        return lastComparison;
12218
      }
3430 rajveer 12219
      if (isSetSuccess()) {
12220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12221
        if (lastComparison != 0) {
12222
          return lastComparison;
12223
        }
1629 ankur.sing 12224
      }
12225
      return 0;
12226
    }
12227
 
3430 rajveer 12228
    public _Fields fieldForId(int fieldId) {
12229
      return _Fields.findByThriftId(fieldId);
12230
    }
12231
 
12232
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12233
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 12234
      iprot.readStructBegin();
12235
      while (true)
12236
      {
12237
        field = iprot.readFieldBegin();
3430 rajveer 12238
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 12239
          break;
12240
        }
3430 rajveer 12241
        switch (field.id) {
12242
          case 0: // SUCCESS
12243
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12244
              {
7049 anupam.sin 12245
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
12246
                this.success = new ArrayList<Double>(_list40.size);
12247
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1731 ankur.sing 12248
                {
7049 anupam.sin 12249
                  double _elem42; // required
12250
                  _elem42 = iprot.readDouble();
12251
                  this.success.add(_elem42);
1731 ankur.sing 12252
                }
3430 rajveer 12253
                iprot.readListEnd();
1629 ankur.sing 12254
              }
3430 rajveer 12255
            } else { 
12256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12257
            }
12258
            break;
12259
          default:
12260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 12261
        }
3430 rajveer 12262
        iprot.readFieldEnd();
1629 ankur.sing 12263
      }
12264
      iprot.readStructEnd();
12265
      validate();
12266
    }
12267
 
3430 rajveer 12268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 12269
      oprot.writeStructBegin(STRUCT_DESC);
12270
 
12271
      if (this.isSetSuccess()) {
12272
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1731 ankur.sing 12273
        {
3430 rajveer 12274
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
7049 anupam.sin 12275
          for (double _iter43 : this.success)
1731 ankur.sing 12276
          {
7049 anupam.sin 12277
            oprot.writeDouble(_iter43);
1731 ankur.sing 12278
          }
12279
          oprot.writeListEnd();
12280
        }
1629 ankur.sing 12281
        oprot.writeFieldEnd();
12282
      }
12283
      oprot.writeFieldStop();
12284
      oprot.writeStructEnd();
12285
    }
12286
 
12287
    @Override
12288
    public String toString() {
1731 ankur.sing 12289
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
1629 ankur.sing 12290
      boolean first = true;
12291
 
12292
      sb.append("success:");
1731 ankur.sing 12293
      if (this.success == null) {
12294
        sb.append("null");
12295
      } else {
12296
        sb.append(this.success);
12297
      }
1629 ankur.sing 12298
      first = false;
12299
      sb.append(")");
12300
      return sb.toString();
12301
    }
12302
 
3430 rajveer 12303
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 12304
      // check for required fields
12305
    }
12306
 
3430 rajveer 12307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12308
      try {
12309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12310
      } catch (org.apache.thrift.TException te) {
12311
        throw new java.io.IOException(te);
12312
      }
12313
    }
12314
 
12315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12316
      try {
12317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12318
      } catch (org.apache.thrift.TException te) {
12319
        throw new java.io.IOException(te);
12320
      }
12321
    }
12322
 
1629 ankur.sing 12323
  }
12324
 
3430 rajveer 12325
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
12326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
2462 chandransh 12327
 
3430 rajveer 12328
    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 12329
 
3430 rajveer 12330
    private long merchantPaymentId; // required
2462 chandransh 12331
 
12332
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12333
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 12334
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
12335
 
12336
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12337
 
12338
      static {
12339
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12340
          byName.put(field.getFieldName(), field);
12341
        }
12342
      }
12343
 
12344
      /**
12345
       * Find the _Fields constant that matches fieldId, or null if its not found.
12346
       */
12347
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12348
        switch(fieldId) {
12349
          case 1: // MERCHANT_PAYMENT_ID
12350
            return MERCHANT_PAYMENT_ID;
12351
          default:
12352
            return null;
12353
        }
2462 chandransh 12354
      }
12355
 
12356
      /**
12357
       * Find the _Fields constant that matches fieldId, throwing an exception
12358
       * if it is not found.
12359
       */
12360
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12361
        _Fields fields = findByThriftId(fieldId);
12362
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12363
        return fields;
12364
      }
12365
 
12366
      /**
12367
       * Find the _Fields constant that matches name, or null if its not found.
12368
       */
12369
      public static _Fields findByName(String name) {
12370
        return byName.get(name);
12371
      }
12372
 
12373
      private final short _thriftId;
12374
      private final String _fieldName;
12375
 
12376
      _Fields(short thriftId, String fieldName) {
12377
        _thriftId = thriftId;
12378
        _fieldName = fieldName;
12379
      }
12380
 
12381
      public short getThriftFieldId() {
12382
        return _thriftId;
12383
      }
12384
 
12385
      public String getFieldName() {
12386
        return _fieldName;
12387
      }
12388
    }
12389
 
12390
    // isset id assignments
12391
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
12392
    private BitSet __isset_bit_vector = new BitSet(1);
12393
 
3430 rajveer 12394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 12395
    static {
3430 rajveer 12396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12397
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12398
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12399
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12400
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
2462 chandransh 12401
    }
12402
 
3010 chandransh 12403
    public initializeHdfcPayment_args() {
2462 chandransh 12404
    }
12405
 
3010 chandransh 12406
    public initializeHdfcPayment_args(
2462 chandransh 12407
      long merchantPaymentId)
12408
    {
12409
      this();
12410
      this.merchantPaymentId = merchantPaymentId;
12411
      setMerchantPaymentIdIsSet(true);
12412
    }
12413
 
12414
    /**
12415
     * Performs a deep copy on <i>other</i>.
12416
     */
3010 chandransh 12417
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
2462 chandransh 12418
      __isset_bit_vector.clear();
12419
      __isset_bit_vector.or(other.__isset_bit_vector);
12420
      this.merchantPaymentId = other.merchantPaymentId;
12421
    }
12422
 
3010 chandransh 12423
    public initializeHdfcPayment_args deepCopy() {
12424
      return new initializeHdfcPayment_args(this);
2462 chandransh 12425
    }
12426
 
3430 rajveer 12427
    @Override
12428
    public void clear() {
12429
      setMerchantPaymentIdIsSet(false);
12430
      this.merchantPaymentId = 0;
2462 chandransh 12431
    }
12432
 
12433
    public long getMerchantPaymentId() {
12434
      return this.merchantPaymentId;
12435
    }
12436
 
3430 rajveer 12437
    public void setMerchantPaymentId(long merchantPaymentId) {
2462 chandransh 12438
      this.merchantPaymentId = merchantPaymentId;
12439
      setMerchantPaymentIdIsSet(true);
12440
    }
12441
 
12442
    public void unsetMerchantPaymentId() {
12443
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
12444
    }
12445
 
3430 rajveer 12446
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
2462 chandransh 12447
    public boolean isSetMerchantPaymentId() {
12448
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
12449
    }
12450
 
12451
    public void setMerchantPaymentIdIsSet(boolean value) {
12452
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12453
    }
12454
 
12455
    public void setFieldValue(_Fields field, Object value) {
12456
      switch (field) {
12457
      case MERCHANT_PAYMENT_ID:
12458
        if (value == null) {
12459
          unsetMerchantPaymentId();
12460
        } else {
12461
          setMerchantPaymentId((Long)value);
12462
        }
12463
        break;
12464
 
12465
      }
12466
    }
12467
 
12468
    public Object getFieldValue(_Fields field) {
12469
      switch (field) {
12470
      case MERCHANT_PAYMENT_ID:
3430 rajveer 12471
        return Long.valueOf(getMerchantPaymentId());
2462 chandransh 12472
 
12473
      }
12474
      throw new IllegalStateException();
12475
    }
12476
 
3430 rajveer 12477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12478
    public boolean isSet(_Fields field) {
12479
      if (field == null) {
12480
        throw new IllegalArgumentException();
12481
      }
2462 chandransh 12482
 
12483
      switch (field) {
12484
      case MERCHANT_PAYMENT_ID:
12485
        return isSetMerchantPaymentId();
12486
      }
12487
      throw new IllegalStateException();
12488
    }
12489
 
12490
    @Override
12491
    public boolean equals(Object that) {
12492
      if (that == null)
12493
        return false;
3010 chandransh 12494
      if (that instanceof initializeHdfcPayment_args)
12495
        return this.equals((initializeHdfcPayment_args)that);
2462 chandransh 12496
      return false;
12497
    }
12498
 
3010 chandransh 12499
    public boolean equals(initializeHdfcPayment_args that) {
2462 chandransh 12500
      if (that == null)
12501
        return false;
12502
 
12503
      boolean this_present_merchantPaymentId = true;
12504
      boolean that_present_merchantPaymentId = true;
12505
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
12506
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
12507
          return false;
12508
        if (this.merchantPaymentId != that.merchantPaymentId)
12509
          return false;
12510
      }
12511
 
12512
      return true;
12513
    }
12514
 
12515
    @Override
12516
    public int hashCode() {
12517
      return 0;
12518
    }
12519
 
3010 chandransh 12520
    public int compareTo(initializeHdfcPayment_args other) {
2462 chandransh 12521
      if (!getClass().equals(other.getClass())) {
12522
        return getClass().getName().compareTo(other.getClass().getName());
12523
      }
12524
 
12525
      int lastComparison = 0;
3010 chandransh 12526
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
2462 chandransh 12527
 
3430 rajveer 12528
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
2462 chandransh 12529
      if (lastComparison != 0) {
12530
        return lastComparison;
12531
      }
3430 rajveer 12532
      if (isSetMerchantPaymentId()) {
12533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
12534
        if (lastComparison != 0) {
12535
          return lastComparison;
12536
        }
2462 chandransh 12537
      }
12538
      return 0;
12539
    }
12540
 
3430 rajveer 12541
    public _Fields fieldForId(int fieldId) {
12542
      return _Fields.findByThriftId(fieldId);
12543
    }
12544
 
12545
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12546
      org.apache.thrift.protocol.TField field;
2462 chandransh 12547
      iprot.readStructBegin();
12548
      while (true)
12549
      {
12550
        field = iprot.readFieldBegin();
3430 rajveer 12551
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 12552
          break;
12553
        }
3430 rajveer 12554
        switch (field.id) {
12555
          case 1: // MERCHANT_PAYMENT_ID
12556
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12557
              this.merchantPaymentId = iprot.readI64();
12558
              setMerchantPaymentIdIsSet(true);
12559
            } else { 
12560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12561
            }
12562
            break;
12563
          default:
12564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 12565
        }
3430 rajveer 12566
        iprot.readFieldEnd();
2462 chandransh 12567
      }
12568
      iprot.readStructEnd();
12569
      validate();
12570
    }
12571
 
3430 rajveer 12572
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 12573
      validate();
12574
 
12575
      oprot.writeStructBegin(STRUCT_DESC);
12576
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12577
      oprot.writeI64(this.merchantPaymentId);
12578
      oprot.writeFieldEnd();
12579
      oprot.writeFieldStop();
12580
      oprot.writeStructEnd();
12581
    }
12582
 
12583
    @Override
12584
    public String toString() {
3010 chandransh 12585
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
2462 chandransh 12586
      boolean first = true;
12587
 
12588
      sb.append("merchantPaymentId:");
12589
      sb.append(this.merchantPaymentId);
12590
      first = false;
12591
      sb.append(")");
12592
      return sb.toString();
12593
    }
12594
 
3430 rajveer 12595
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 12596
      // check for required fields
12597
    }
12598
 
3430 rajveer 12599
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12600
      try {
12601
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12602
      } catch (org.apache.thrift.TException te) {
12603
        throw new java.io.IOException(te);
12604
      }
12605
    }
12606
 
12607
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12608
      try {
12609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12610
      } catch (org.apache.thrift.TException te) {
12611
        throw new java.io.IOException(te);
12612
      }
12613
    }
12614
 
2462 chandransh 12615
  }
12616
 
3430 rajveer 12617
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
12618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
2462 chandransh 12619
 
3430 rajveer 12620
    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);
12621
    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 12622
 
3430 rajveer 12623
    private String success; // required
12624
    private PaymentException pe; // required
2462 chandransh 12625
 
12626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 12628
      SUCCESS((short)0, "success"),
12629
      PE((short)1, "pe");
12630
 
12631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12632
 
12633
      static {
12634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12635
          byName.put(field.getFieldName(), field);
12636
        }
12637
      }
12638
 
12639
      /**
12640
       * Find the _Fields constant that matches fieldId, or null if its not found.
12641
       */
12642
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12643
        switch(fieldId) {
12644
          case 0: // SUCCESS
12645
            return SUCCESS;
12646
          case 1: // PE
12647
            return PE;
12648
          default:
12649
            return null;
12650
        }
2462 chandransh 12651
      }
12652
 
12653
      /**
12654
       * Find the _Fields constant that matches fieldId, throwing an exception
12655
       * if it is not found.
12656
       */
12657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12658
        _Fields fields = findByThriftId(fieldId);
12659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12660
        return fields;
12661
      }
12662
 
12663
      /**
12664
       * Find the _Fields constant that matches name, or null if its not found.
12665
       */
12666
      public static _Fields findByName(String name) {
12667
        return byName.get(name);
12668
      }
12669
 
12670
      private final short _thriftId;
12671
      private final String _fieldName;
12672
 
12673
      _Fields(short thriftId, String fieldName) {
12674
        _thriftId = thriftId;
12675
        _fieldName = fieldName;
12676
      }
12677
 
12678
      public short getThriftFieldId() {
12679
        return _thriftId;
12680
      }
12681
 
12682
      public String getFieldName() {
12683
        return _fieldName;
12684
      }
12685
    }
12686
 
12687
    // isset id assignments
12688
 
3430 rajveer 12689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 12690
    static {
3430 rajveer 12691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12692
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12694
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
2462 chandransh 12698
    }
12699
 
3010 chandransh 12700
    public initializeHdfcPayment_result() {
2462 chandransh 12701
    }
12702
 
3010 chandransh 12703
    public initializeHdfcPayment_result(
12704
      String success,
2462 chandransh 12705
      PaymentException pe)
12706
    {
12707
      this();
12708
      this.success = success;
12709
      this.pe = pe;
12710
    }
12711
 
12712
    /**
12713
     * Performs a deep copy on <i>other</i>.
12714
     */
3010 chandransh 12715
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
2462 chandransh 12716
      if (other.isSetSuccess()) {
3010 chandransh 12717
        this.success = other.success;
2462 chandransh 12718
      }
12719
      if (other.isSetPe()) {
12720
        this.pe = new PaymentException(other.pe);
12721
      }
12722
    }
12723
 
3010 chandransh 12724
    public initializeHdfcPayment_result deepCopy() {
12725
      return new initializeHdfcPayment_result(this);
2462 chandransh 12726
    }
12727
 
3430 rajveer 12728
    @Override
12729
    public void clear() {
12730
      this.success = null;
12731
      this.pe = null;
2462 chandransh 12732
    }
12733
 
3010 chandransh 12734
    public String getSuccess() {
2462 chandransh 12735
      return this.success;
12736
    }
12737
 
3430 rajveer 12738
    public void setSuccess(String success) {
2462 chandransh 12739
      this.success = success;
12740
    }
12741
 
12742
    public void unsetSuccess() {
12743
      this.success = null;
12744
    }
12745
 
3430 rajveer 12746
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 12747
    public boolean isSetSuccess() {
12748
      return this.success != null;
12749
    }
12750
 
12751
    public void setSuccessIsSet(boolean value) {
12752
      if (!value) {
12753
        this.success = null;
12754
      }
12755
    }
12756
 
12757
    public PaymentException getPe() {
12758
      return this.pe;
12759
    }
12760
 
3430 rajveer 12761
    public void setPe(PaymentException pe) {
2462 chandransh 12762
      this.pe = pe;
12763
    }
12764
 
12765
    public void unsetPe() {
12766
      this.pe = null;
12767
    }
12768
 
3430 rajveer 12769
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 12770
    public boolean isSetPe() {
12771
      return this.pe != null;
12772
    }
12773
 
12774
    public void setPeIsSet(boolean value) {
12775
      if (!value) {
12776
        this.pe = null;
12777
      }
12778
    }
12779
 
12780
    public void setFieldValue(_Fields field, Object value) {
12781
      switch (field) {
12782
      case SUCCESS:
12783
        if (value == null) {
12784
          unsetSuccess();
12785
        } else {
3010 chandransh 12786
          setSuccess((String)value);
2462 chandransh 12787
        }
12788
        break;
12789
 
12790
      case PE:
12791
        if (value == null) {
12792
          unsetPe();
12793
        } else {
12794
          setPe((PaymentException)value);
12795
        }
12796
        break;
12797
 
12798
      }
12799
    }
12800
 
12801
    public Object getFieldValue(_Fields field) {
12802
      switch (field) {
12803
      case SUCCESS:
12804
        return getSuccess();
12805
 
12806
      case PE:
12807
        return getPe();
12808
 
12809
      }
12810
      throw new IllegalStateException();
12811
    }
12812
 
3430 rajveer 12813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12814
    public boolean isSet(_Fields field) {
12815
      if (field == null) {
12816
        throw new IllegalArgumentException();
12817
      }
2462 chandransh 12818
 
12819
      switch (field) {
12820
      case SUCCESS:
12821
        return isSetSuccess();
12822
      case PE:
12823
        return isSetPe();
12824
      }
12825
      throw new IllegalStateException();
12826
    }
12827
 
12828
    @Override
12829
    public boolean equals(Object that) {
12830
      if (that == null)
12831
        return false;
3010 chandransh 12832
      if (that instanceof initializeHdfcPayment_result)
12833
        return this.equals((initializeHdfcPayment_result)that);
2462 chandransh 12834
      return false;
12835
    }
12836
 
3010 chandransh 12837
    public boolean equals(initializeHdfcPayment_result that) {
2462 chandransh 12838
      if (that == null)
12839
        return false;
12840
 
12841
      boolean this_present_success = true && this.isSetSuccess();
12842
      boolean that_present_success = true && that.isSetSuccess();
12843
      if (this_present_success || that_present_success) {
12844
        if (!(this_present_success && that_present_success))
12845
          return false;
12846
        if (!this.success.equals(that.success))
12847
          return false;
12848
      }
12849
 
12850
      boolean this_present_pe = true && this.isSetPe();
12851
      boolean that_present_pe = true && that.isSetPe();
12852
      if (this_present_pe || that_present_pe) {
12853
        if (!(this_present_pe && that_present_pe))
12854
          return false;
12855
        if (!this.pe.equals(that.pe))
12856
          return false;
12857
      }
12858
 
12859
      return true;
12860
    }
12861
 
12862
    @Override
12863
    public int hashCode() {
12864
      return 0;
12865
    }
12866
 
3010 chandransh 12867
    public int compareTo(initializeHdfcPayment_result other) {
12868
      if (!getClass().equals(other.getClass())) {
12869
        return getClass().getName().compareTo(other.getClass().getName());
12870
      }
12871
 
12872
      int lastComparison = 0;
12873
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
12874
 
3430 rajveer 12875
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3010 chandransh 12876
      if (lastComparison != 0) {
12877
        return lastComparison;
12878
      }
3430 rajveer 12879
      if (isSetSuccess()) {
12880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12881
        if (lastComparison != 0) {
12882
          return lastComparison;
12883
        }
3010 chandransh 12884
      }
3430 rajveer 12885
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3010 chandransh 12886
      if (lastComparison != 0) {
12887
        return lastComparison;
12888
      }
3430 rajveer 12889
      if (isSetPe()) {
12890
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
12891
        if (lastComparison != 0) {
12892
          return lastComparison;
12893
        }
3010 chandransh 12894
      }
12895
      return 0;
12896
    }
12897
 
3430 rajveer 12898
    public _Fields fieldForId(int fieldId) {
12899
      return _Fields.findByThriftId(fieldId);
12900
    }
12901
 
12902
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12903
      org.apache.thrift.protocol.TField field;
2462 chandransh 12904
      iprot.readStructBegin();
12905
      while (true)
12906
      {
12907
        field = iprot.readFieldBegin();
3430 rajveer 12908
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 12909
          break;
12910
        }
3430 rajveer 12911
        switch (field.id) {
12912
          case 0: // SUCCESS
12913
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12914
              this.success = iprot.readString();
12915
            } else { 
12916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12917
            }
12918
            break;
12919
          case 1: // PE
12920
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12921
              this.pe = new PaymentException();
12922
              this.pe.read(iprot);
12923
            } else { 
12924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12925
            }
12926
            break;
12927
          default:
12928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 12929
        }
3430 rajveer 12930
        iprot.readFieldEnd();
2462 chandransh 12931
      }
12932
      iprot.readStructEnd();
12933
      validate();
12934
    }
12935
 
3430 rajveer 12936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 12937
      oprot.writeStructBegin(STRUCT_DESC);
12938
 
12939
      if (this.isSetSuccess()) {
12940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 12941
        oprot.writeString(this.success);
2462 chandransh 12942
        oprot.writeFieldEnd();
12943
      } else if (this.isSetPe()) {
12944
        oprot.writeFieldBegin(PE_FIELD_DESC);
12945
        this.pe.write(oprot);
12946
        oprot.writeFieldEnd();
12947
      }
12948
      oprot.writeFieldStop();
12949
      oprot.writeStructEnd();
12950
    }
12951
 
12952
    @Override
12953
    public String toString() {
3010 chandransh 12954
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
2462 chandransh 12955
      boolean first = true;
12956
 
12957
      sb.append("success:");
12958
      if (this.success == null) {
12959
        sb.append("null");
12960
      } else {
12961
        sb.append(this.success);
12962
      }
12963
      first = false;
12964
      if (!first) sb.append(", ");
12965
      sb.append("pe:");
12966
      if (this.pe == null) {
12967
        sb.append("null");
12968
      } else {
12969
        sb.append(this.pe);
12970
      }
12971
      first = false;
12972
      sb.append(")");
12973
      return sb.toString();
12974
    }
12975
 
3430 rajveer 12976
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 12977
      // check for required fields
12978
    }
12979
 
3430 rajveer 12980
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12981
      try {
12982
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12983
      } catch (org.apache.thrift.TException te) {
12984
        throw new java.io.IOException(te);
12985
      }
12986
    }
12987
 
12988
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12989
      try {
12990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12991
      } catch (org.apache.thrift.TException te) {
12992
        throw new java.io.IOException(te);
12993
      }
12994
    }
12995
 
2462 chandransh 12996
  }
12997
 
6050 anupam.sin 12998
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
12999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
13000
 
13001
    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);
13002
    private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
6228 anupam.sin 13003
    private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)-1);
6050 anupam.sin 13004
 
13005
    private long merchantPaymentId; // required
13006
    private long rechargeOrderId; // required
6228 anupam.sin 13007
    private String phone; // required
6050 anupam.sin 13008
 
13009
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13010
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13011
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
6228 anupam.sin 13012
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
13013
      PHONE((short)-1, "phone");
6050 anupam.sin 13014
 
13015
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13016
 
13017
      static {
13018
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13019
          byName.put(field.getFieldName(), field);
13020
        }
13021
      }
13022
 
13023
      /**
13024
       * Find the _Fields constant that matches fieldId, or null if its not found.
13025
       */
13026
      public static _Fields findByThriftId(int fieldId) {
13027
        switch(fieldId) {
13028
          case 1: // MERCHANT_PAYMENT_ID
13029
            return MERCHANT_PAYMENT_ID;
13030
          case 2: // RECHARGE_ORDER_ID
13031
            return RECHARGE_ORDER_ID;
6228 anupam.sin 13032
          case -1: // PHONE
13033
            return PHONE;
6050 anupam.sin 13034
          default:
13035
            return null;
13036
        }
13037
      }
13038
 
13039
      /**
13040
       * Find the _Fields constant that matches fieldId, throwing an exception
13041
       * if it is not found.
13042
       */
13043
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13044
        _Fields fields = findByThriftId(fieldId);
13045
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13046
        return fields;
13047
      }
13048
 
13049
      /**
13050
       * Find the _Fields constant that matches name, or null if its not found.
13051
       */
13052
      public static _Fields findByName(String name) {
13053
        return byName.get(name);
13054
      }
13055
 
13056
      private final short _thriftId;
13057
      private final String _fieldName;
13058
 
13059
      _Fields(short thriftId, String fieldName) {
13060
        _thriftId = thriftId;
13061
        _fieldName = fieldName;
13062
      }
13063
 
13064
      public short getThriftFieldId() {
13065
        return _thriftId;
13066
      }
13067
 
13068
      public String getFieldName() {
13069
        return _fieldName;
13070
      }
13071
    }
13072
 
13073
    // isset id assignments
13074
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
13075
    private static final int __RECHARGEORDERID_ISSET_ID = 1;
13076
    private BitSet __isset_bit_vector = new BitSet(2);
13077
 
13078
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13079
    static {
13080
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13081
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13082
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13083
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13084
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6228 anupam.sin 13085
      tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6050 anupam.sin 13087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
13089
    }
13090
 
13091
    public doHdfcPaymentForDigitalOrder_args() {
13092
    }
13093
 
13094
    public doHdfcPaymentForDigitalOrder_args(
13095
      long merchantPaymentId,
6228 anupam.sin 13096
      long rechargeOrderId,
13097
      String phone)
6050 anupam.sin 13098
    {
13099
      this();
13100
      this.merchantPaymentId = merchantPaymentId;
13101
      setMerchantPaymentIdIsSet(true);
13102
      this.rechargeOrderId = rechargeOrderId;
13103
      setRechargeOrderIdIsSet(true);
6228 anupam.sin 13104
      this.phone = phone;
6050 anupam.sin 13105
    }
13106
 
13107
    /**
13108
     * Performs a deep copy on <i>other</i>.
13109
     */
13110
    public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
13111
      __isset_bit_vector.clear();
13112
      __isset_bit_vector.or(other.__isset_bit_vector);
13113
      this.merchantPaymentId = other.merchantPaymentId;
13114
      this.rechargeOrderId = other.rechargeOrderId;
6228 anupam.sin 13115
      if (other.isSetPhone()) {
13116
        this.phone = other.phone;
13117
      }
6050 anupam.sin 13118
    }
13119
 
13120
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
13121
      return new doHdfcPaymentForDigitalOrder_args(this);
13122
    }
13123
 
13124
    @Override
13125
    public void clear() {
13126
      setMerchantPaymentIdIsSet(false);
13127
      this.merchantPaymentId = 0;
13128
      setRechargeOrderIdIsSet(false);
13129
      this.rechargeOrderId = 0;
6228 anupam.sin 13130
      this.phone = null;
6050 anupam.sin 13131
    }
13132
 
13133
    public long getMerchantPaymentId() {
13134
      return this.merchantPaymentId;
13135
    }
13136
 
13137
    public void setMerchantPaymentId(long merchantPaymentId) {
13138
      this.merchantPaymentId = merchantPaymentId;
13139
      setMerchantPaymentIdIsSet(true);
13140
    }
13141
 
13142
    public void unsetMerchantPaymentId() {
13143
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
13144
    }
13145
 
13146
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
13147
    public boolean isSetMerchantPaymentId() {
13148
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
13149
    }
13150
 
13151
    public void setMerchantPaymentIdIsSet(boolean value) {
13152
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
13153
    }
13154
 
13155
    public long getRechargeOrderId() {
13156
      return this.rechargeOrderId;
13157
    }
13158
 
13159
    public void setRechargeOrderId(long rechargeOrderId) {
13160
      this.rechargeOrderId = rechargeOrderId;
13161
      setRechargeOrderIdIsSet(true);
13162
    }
13163
 
13164
    public void unsetRechargeOrderId() {
13165
      __isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
13166
    }
13167
 
13168
    /** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
13169
    public boolean isSetRechargeOrderId() {
13170
      return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
13171
    }
13172
 
13173
    public void setRechargeOrderIdIsSet(boolean value) {
13174
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
13175
    }
13176
 
6228 anupam.sin 13177
    public String getPhone() {
13178
      return this.phone;
13179
    }
13180
 
13181
    public void setPhone(String phone) {
13182
      this.phone = phone;
13183
    }
13184
 
13185
    public void unsetPhone() {
13186
      this.phone = null;
13187
    }
13188
 
13189
    /** Returns true if field phone is set (has been assigned a value) and false otherwise */
13190
    public boolean isSetPhone() {
13191
      return this.phone != null;
13192
    }
13193
 
13194
    public void setPhoneIsSet(boolean value) {
13195
      if (!value) {
13196
        this.phone = null;
13197
      }
13198
    }
13199
 
6050 anupam.sin 13200
    public void setFieldValue(_Fields field, Object value) {
13201
      switch (field) {
13202
      case MERCHANT_PAYMENT_ID:
13203
        if (value == null) {
13204
          unsetMerchantPaymentId();
13205
        } else {
13206
          setMerchantPaymentId((Long)value);
13207
        }
13208
        break;
13209
 
13210
      case RECHARGE_ORDER_ID:
13211
        if (value == null) {
13212
          unsetRechargeOrderId();
13213
        } else {
13214
          setRechargeOrderId((Long)value);
13215
        }
13216
        break;
13217
 
6228 anupam.sin 13218
      case PHONE:
13219
        if (value == null) {
13220
          unsetPhone();
13221
        } else {
13222
          setPhone((String)value);
13223
        }
13224
        break;
13225
 
6050 anupam.sin 13226
      }
13227
    }
13228
 
13229
    public Object getFieldValue(_Fields field) {
13230
      switch (field) {
13231
      case MERCHANT_PAYMENT_ID:
13232
        return Long.valueOf(getMerchantPaymentId());
13233
 
13234
      case RECHARGE_ORDER_ID:
13235
        return Long.valueOf(getRechargeOrderId());
13236
 
6228 anupam.sin 13237
      case PHONE:
13238
        return getPhone();
13239
 
6050 anupam.sin 13240
      }
13241
      throw new IllegalStateException();
13242
    }
13243
 
13244
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13245
    public boolean isSet(_Fields field) {
13246
      if (field == null) {
13247
        throw new IllegalArgumentException();
13248
      }
13249
 
13250
      switch (field) {
13251
      case MERCHANT_PAYMENT_ID:
13252
        return isSetMerchantPaymentId();
13253
      case RECHARGE_ORDER_ID:
13254
        return isSetRechargeOrderId();
6228 anupam.sin 13255
      case PHONE:
13256
        return isSetPhone();
6050 anupam.sin 13257
      }
13258
      throw new IllegalStateException();
13259
    }
13260
 
13261
    @Override
13262
    public boolean equals(Object that) {
13263
      if (that == null)
13264
        return false;
13265
      if (that instanceof doHdfcPaymentForDigitalOrder_args)
13266
        return this.equals((doHdfcPaymentForDigitalOrder_args)that);
13267
      return false;
13268
    }
13269
 
13270
    public boolean equals(doHdfcPaymentForDigitalOrder_args that) {
13271
      if (that == null)
13272
        return false;
13273
 
13274
      boolean this_present_merchantPaymentId = true;
13275
      boolean that_present_merchantPaymentId = true;
13276
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
13277
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
13278
          return false;
13279
        if (this.merchantPaymentId != that.merchantPaymentId)
13280
          return false;
13281
      }
13282
 
13283
      boolean this_present_rechargeOrderId = true;
13284
      boolean that_present_rechargeOrderId = true;
13285
      if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
13286
        if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
13287
          return false;
13288
        if (this.rechargeOrderId != that.rechargeOrderId)
13289
          return false;
13290
      }
13291
 
6228 anupam.sin 13292
      boolean this_present_phone = true && this.isSetPhone();
13293
      boolean that_present_phone = true && that.isSetPhone();
13294
      if (this_present_phone || that_present_phone) {
13295
        if (!(this_present_phone && that_present_phone))
13296
          return false;
13297
        if (!this.phone.equals(that.phone))
13298
          return false;
13299
      }
13300
 
6050 anupam.sin 13301
      return true;
13302
    }
13303
 
13304
    @Override
13305
    public int hashCode() {
13306
      return 0;
13307
    }
13308
 
13309
    public int compareTo(doHdfcPaymentForDigitalOrder_args other) {
13310
      if (!getClass().equals(other.getClass())) {
13311
        return getClass().getName().compareTo(other.getClass().getName());
13312
      }
13313
 
13314
      int lastComparison = 0;
13315
      doHdfcPaymentForDigitalOrder_args typedOther = (doHdfcPaymentForDigitalOrder_args)other;
13316
 
13317
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
13318
      if (lastComparison != 0) {
13319
        return lastComparison;
13320
      }
13321
      if (isSetMerchantPaymentId()) {
13322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
13323
        if (lastComparison != 0) {
13324
          return lastComparison;
13325
        }
13326
      }
13327
      lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
13328
      if (lastComparison != 0) {
13329
        return lastComparison;
13330
      }
13331
      if (isSetRechargeOrderId()) {
13332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
13333
        if (lastComparison != 0) {
13334
          return lastComparison;
13335
        }
13336
      }
6228 anupam.sin 13337
      lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
13338
      if (lastComparison != 0) {
13339
        return lastComparison;
13340
      }
13341
      if (isSetPhone()) {
13342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
13343
        if (lastComparison != 0) {
13344
          return lastComparison;
13345
        }
13346
      }
6050 anupam.sin 13347
      return 0;
13348
    }
13349
 
13350
    public _Fields fieldForId(int fieldId) {
13351
      return _Fields.findByThriftId(fieldId);
13352
    }
13353
 
13354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13355
      org.apache.thrift.protocol.TField field;
13356
      iprot.readStructBegin();
13357
      while (true)
13358
      {
13359
        field = iprot.readFieldBegin();
13360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13361
          break;
13362
        }
13363
        switch (field.id) {
13364
          case 1: // MERCHANT_PAYMENT_ID
13365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13366
              this.merchantPaymentId = iprot.readI64();
13367
              setMerchantPaymentIdIsSet(true);
13368
            } else { 
13369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13370
            }
13371
            break;
13372
          case 2: // RECHARGE_ORDER_ID
13373
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13374
              this.rechargeOrderId = iprot.readI64();
13375
              setRechargeOrderIdIsSet(true);
13376
            } else { 
13377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13378
            }
13379
            break;
6228 anupam.sin 13380
          case -1: // PHONE
13381
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13382
              this.phone = iprot.readString();
13383
            } else { 
13384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13385
            }
13386
            break;
6050 anupam.sin 13387
          default:
13388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13389
        }
13390
        iprot.readFieldEnd();
13391
      }
13392
      iprot.readStructEnd();
13393
      validate();
13394
    }
13395
 
13396
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13397
      validate();
13398
 
13399
      oprot.writeStructBegin(STRUCT_DESC);
6228 anupam.sin 13400
      if (this.phone != null) {
13401
        oprot.writeFieldBegin(PHONE_FIELD_DESC);
13402
        oprot.writeString(this.phone);
13403
        oprot.writeFieldEnd();
13404
      }
6050 anupam.sin 13405
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
13406
      oprot.writeI64(this.merchantPaymentId);
13407
      oprot.writeFieldEnd();
13408
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
13409
      oprot.writeI64(this.rechargeOrderId);
13410
      oprot.writeFieldEnd();
13411
      oprot.writeFieldStop();
13412
      oprot.writeStructEnd();
13413
    }
13414
 
13415
    @Override
13416
    public String toString() {
13417
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_args(");
13418
      boolean first = true;
13419
 
13420
      sb.append("merchantPaymentId:");
13421
      sb.append(this.merchantPaymentId);
13422
      first = false;
13423
      if (!first) sb.append(", ");
13424
      sb.append("rechargeOrderId:");
13425
      sb.append(this.rechargeOrderId);
13426
      first = false;
6228 anupam.sin 13427
      if (!first) sb.append(", ");
13428
      sb.append("phone:");
13429
      if (this.phone == null) {
13430
        sb.append("null");
13431
      } else {
13432
        sb.append(this.phone);
13433
      }
13434
      first = false;
6050 anupam.sin 13435
      sb.append(")");
13436
      return sb.toString();
13437
    }
13438
 
13439
    public void validate() throws org.apache.thrift.TException {
13440
      // check for required fields
13441
    }
13442
 
13443
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13444
      try {
13445
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13446
      } catch (org.apache.thrift.TException te) {
13447
        throw new java.io.IOException(te);
13448
      }
13449
    }
13450
 
13451
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13452
      try {
13453
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13454
      } catch (org.apache.thrift.TException te) {
13455
        throw new java.io.IOException(te);
13456
      }
13457
    }
13458
 
13459
  }
13460
 
13461
  public static class doHdfcPaymentForDigitalOrder_result implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_result, doHdfcPaymentForDigitalOrder_result._Fields>, java.io.Serializable, Cloneable   {
13462
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_result");
13463
 
13464
    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);
13465
    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);
13466
 
13467
    private String success; // required
13468
    private PaymentException pe; // required
13469
 
13470
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13471
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13472
      SUCCESS((short)0, "success"),
13473
      PE((short)1, "pe");
13474
 
13475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13476
 
13477
      static {
13478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13479
          byName.put(field.getFieldName(), field);
13480
        }
13481
      }
13482
 
13483
      /**
13484
       * Find the _Fields constant that matches fieldId, or null if its not found.
13485
       */
13486
      public static _Fields findByThriftId(int fieldId) {
13487
        switch(fieldId) {
13488
          case 0: // SUCCESS
13489
            return SUCCESS;
13490
          case 1: // PE
13491
            return PE;
13492
          default:
13493
            return null;
13494
        }
13495
      }
13496
 
13497
      /**
13498
       * Find the _Fields constant that matches fieldId, throwing an exception
13499
       * if it is not found.
13500
       */
13501
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13502
        _Fields fields = findByThriftId(fieldId);
13503
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13504
        return fields;
13505
      }
13506
 
13507
      /**
13508
       * Find the _Fields constant that matches name, or null if its not found.
13509
       */
13510
      public static _Fields findByName(String name) {
13511
        return byName.get(name);
13512
      }
13513
 
13514
      private final short _thriftId;
13515
      private final String _fieldName;
13516
 
13517
      _Fields(short thriftId, String fieldName) {
13518
        _thriftId = thriftId;
13519
        _fieldName = fieldName;
13520
      }
13521
 
13522
      public short getThriftFieldId() {
13523
        return _thriftId;
13524
      }
13525
 
13526
      public String getFieldName() {
13527
        return _fieldName;
13528
      }
13529
    }
13530
 
13531
    // isset id assignments
13532
 
13533
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13534
    static {
13535
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13536
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13538
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13539
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13540
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13541
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_result.class, metaDataMap);
13542
    }
13543
 
13544
    public doHdfcPaymentForDigitalOrder_result() {
13545
    }
13546
 
13547
    public doHdfcPaymentForDigitalOrder_result(
13548
      String success,
13549
      PaymentException pe)
13550
    {
13551
      this();
13552
      this.success = success;
13553
      this.pe = pe;
13554
    }
13555
 
13556
    /**
13557
     * Performs a deep copy on <i>other</i>.
13558
     */
13559
    public doHdfcPaymentForDigitalOrder_result(doHdfcPaymentForDigitalOrder_result other) {
13560
      if (other.isSetSuccess()) {
13561
        this.success = other.success;
13562
      }
13563
      if (other.isSetPe()) {
13564
        this.pe = new PaymentException(other.pe);
13565
      }
13566
    }
13567
 
13568
    public doHdfcPaymentForDigitalOrder_result deepCopy() {
13569
      return new doHdfcPaymentForDigitalOrder_result(this);
13570
    }
13571
 
13572
    @Override
13573
    public void clear() {
13574
      this.success = null;
13575
      this.pe = null;
13576
    }
13577
 
13578
    public String getSuccess() {
13579
      return this.success;
13580
    }
13581
 
13582
    public void setSuccess(String success) {
13583
      this.success = success;
13584
    }
13585
 
13586
    public void unsetSuccess() {
13587
      this.success = null;
13588
    }
13589
 
13590
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13591
    public boolean isSetSuccess() {
13592
      return this.success != null;
13593
    }
13594
 
13595
    public void setSuccessIsSet(boolean value) {
13596
      if (!value) {
13597
        this.success = null;
13598
      }
13599
    }
13600
 
13601
    public PaymentException getPe() {
13602
      return this.pe;
13603
    }
13604
 
13605
    public void setPe(PaymentException pe) {
13606
      this.pe = pe;
13607
    }
13608
 
13609
    public void unsetPe() {
13610
      this.pe = null;
13611
    }
13612
 
13613
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
13614
    public boolean isSetPe() {
13615
      return this.pe != null;
13616
    }
13617
 
13618
    public void setPeIsSet(boolean value) {
13619
      if (!value) {
13620
        this.pe = null;
13621
      }
13622
    }
13623
 
13624
    public void setFieldValue(_Fields field, Object value) {
13625
      switch (field) {
13626
      case SUCCESS:
13627
        if (value == null) {
13628
          unsetSuccess();
13629
        } else {
13630
          setSuccess((String)value);
13631
        }
13632
        break;
13633
 
13634
      case PE:
13635
        if (value == null) {
13636
          unsetPe();
13637
        } else {
13638
          setPe((PaymentException)value);
13639
        }
13640
        break;
13641
 
13642
      }
13643
    }
13644
 
13645
    public Object getFieldValue(_Fields field) {
13646
      switch (field) {
13647
      case SUCCESS:
13648
        return getSuccess();
13649
 
13650
      case PE:
13651
        return getPe();
13652
 
13653
      }
13654
      throw new IllegalStateException();
13655
    }
13656
 
13657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13658
    public boolean isSet(_Fields field) {
13659
      if (field == null) {
13660
        throw new IllegalArgumentException();
13661
      }
13662
 
13663
      switch (field) {
13664
      case SUCCESS:
13665
        return isSetSuccess();
13666
      case PE:
13667
        return isSetPe();
13668
      }
13669
      throw new IllegalStateException();
13670
    }
13671
 
13672
    @Override
13673
    public boolean equals(Object that) {
13674
      if (that == null)
13675
        return false;
13676
      if (that instanceof doHdfcPaymentForDigitalOrder_result)
13677
        return this.equals((doHdfcPaymentForDigitalOrder_result)that);
13678
      return false;
13679
    }
13680
 
13681
    public boolean equals(doHdfcPaymentForDigitalOrder_result that) {
13682
      if (that == null)
13683
        return false;
13684
 
13685
      boolean this_present_success = true && this.isSetSuccess();
13686
      boolean that_present_success = true && that.isSetSuccess();
13687
      if (this_present_success || that_present_success) {
13688
        if (!(this_present_success && that_present_success))
13689
          return false;
13690
        if (!this.success.equals(that.success))
13691
          return false;
13692
      }
13693
 
13694
      boolean this_present_pe = true && this.isSetPe();
13695
      boolean that_present_pe = true && that.isSetPe();
13696
      if (this_present_pe || that_present_pe) {
13697
        if (!(this_present_pe && that_present_pe))
13698
          return false;
13699
        if (!this.pe.equals(that.pe))
13700
          return false;
13701
      }
13702
 
13703
      return true;
13704
    }
13705
 
13706
    @Override
13707
    public int hashCode() {
13708
      return 0;
13709
    }
13710
 
13711
    public int compareTo(doHdfcPaymentForDigitalOrder_result other) {
13712
      if (!getClass().equals(other.getClass())) {
13713
        return getClass().getName().compareTo(other.getClass().getName());
13714
      }
13715
 
13716
      int lastComparison = 0;
13717
      doHdfcPaymentForDigitalOrder_result typedOther = (doHdfcPaymentForDigitalOrder_result)other;
13718
 
13719
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13720
      if (lastComparison != 0) {
13721
        return lastComparison;
13722
      }
13723
      if (isSetSuccess()) {
13724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13725
        if (lastComparison != 0) {
13726
          return lastComparison;
13727
        }
13728
      }
13729
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
13730
      if (lastComparison != 0) {
13731
        return lastComparison;
13732
      }
13733
      if (isSetPe()) {
13734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
13735
        if (lastComparison != 0) {
13736
          return lastComparison;
13737
        }
13738
      }
13739
      return 0;
13740
    }
13741
 
13742
    public _Fields fieldForId(int fieldId) {
13743
      return _Fields.findByThriftId(fieldId);
13744
    }
13745
 
13746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13747
      org.apache.thrift.protocol.TField field;
13748
      iprot.readStructBegin();
13749
      while (true)
13750
      {
13751
        field = iprot.readFieldBegin();
13752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13753
          break;
13754
        }
13755
        switch (field.id) {
13756
          case 0: // SUCCESS
13757
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13758
              this.success = iprot.readString();
13759
            } else { 
13760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13761
            }
13762
            break;
13763
          case 1: // PE
13764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13765
              this.pe = new PaymentException();
13766
              this.pe.read(iprot);
13767
            } else { 
13768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13769
            }
13770
            break;
13771
          default:
13772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13773
        }
13774
        iprot.readFieldEnd();
13775
      }
13776
      iprot.readStructEnd();
13777
      validate();
13778
    }
13779
 
13780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13781
      oprot.writeStructBegin(STRUCT_DESC);
13782
 
13783
      if (this.isSetSuccess()) {
13784
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13785
        oprot.writeString(this.success);
13786
        oprot.writeFieldEnd();
13787
      } else if (this.isSetPe()) {
13788
        oprot.writeFieldBegin(PE_FIELD_DESC);
13789
        this.pe.write(oprot);
13790
        oprot.writeFieldEnd();
13791
      }
13792
      oprot.writeFieldStop();
13793
      oprot.writeStructEnd();
13794
    }
13795
 
13796
    @Override
13797
    public String toString() {
13798
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_result(");
13799
      boolean first = true;
13800
 
13801
      sb.append("success:");
13802
      if (this.success == null) {
13803
        sb.append("null");
13804
      } else {
13805
        sb.append(this.success);
13806
      }
13807
      first = false;
13808
      if (!first) sb.append(", ");
13809
      sb.append("pe:");
13810
      if (this.pe == null) {
13811
        sb.append("null");
13812
      } else {
13813
        sb.append(this.pe);
13814
      }
13815
      first = false;
13816
      sb.append(")");
13817
      return sb.toString();
13818
    }
13819
 
13820
    public void validate() throws org.apache.thrift.TException {
13821
      // check for required fields
13822
    }
13823
 
13824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13825
      try {
13826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13827
      } catch (org.apache.thrift.TException te) {
13828
        throw new java.io.IOException(te);
13829
      }
13830
    }
13831
 
13832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13833
      try {
13834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13835
      } catch (org.apache.thrift.TException te) {
13836
        throw new java.io.IOException(te);
13837
      }
13838
    }
13839
 
13840
  }
13841
 
3616 chandransh 13842
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
13843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
13844
 
13845
    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);
13846
 
13847
    private long merchantPaymentId; // required
13848
 
13849
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13850
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13851
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
13852
 
13853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13854
 
13855
      static {
13856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13857
          byName.put(field.getFieldName(), field);
13858
        }
13859
      }
13860
 
13861
      /**
13862
       * Find the _Fields constant that matches fieldId, or null if its not found.
13863
       */
13864
      public static _Fields findByThriftId(int fieldId) {
13865
        switch(fieldId) {
13866
          case 1: // MERCHANT_PAYMENT_ID
13867
            return MERCHANT_PAYMENT_ID;
13868
          default:
13869
            return null;
13870
        }
13871
      }
13872
 
13873
      /**
13874
       * Find the _Fields constant that matches fieldId, throwing an exception
13875
       * if it is not found.
13876
       */
13877
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13878
        _Fields fields = findByThriftId(fieldId);
13879
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13880
        return fields;
13881
      }
13882
 
13883
      /**
13884
       * Find the _Fields constant that matches name, or null if its not found.
13885
       */
13886
      public static _Fields findByName(String name) {
13887
        return byName.get(name);
13888
      }
13889
 
13890
      private final short _thriftId;
13891
      private final String _fieldName;
13892
 
13893
      _Fields(short thriftId, String fieldName) {
13894
        _thriftId = thriftId;
13895
        _fieldName = fieldName;
13896
      }
13897
 
13898
      public short getThriftFieldId() {
13899
        return _thriftId;
13900
      }
13901
 
13902
      public String getFieldName() {
13903
        return _fieldName;
13904
      }
13905
    }
13906
 
13907
    // isset id assignments
13908
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
13909
    private BitSet __isset_bit_vector = new BitSet(1);
13910
 
13911
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13912
    static {
13913
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13914
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13915
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13916
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13917
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
13918
    }
13919
 
13920
    public initializeHdfcEmiPayment_args() {
13921
    }
13922
 
13923
    public initializeHdfcEmiPayment_args(
13924
      long merchantPaymentId)
13925
    {
13926
      this();
13927
      this.merchantPaymentId = merchantPaymentId;
13928
      setMerchantPaymentIdIsSet(true);
13929
    }
13930
 
13931
    /**
13932
     * Performs a deep copy on <i>other</i>.
13933
     */
13934
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
13935
      __isset_bit_vector.clear();
13936
      __isset_bit_vector.or(other.__isset_bit_vector);
13937
      this.merchantPaymentId = other.merchantPaymentId;
13938
    }
13939
 
13940
    public initializeHdfcEmiPayment_args deepCopy() {
13941
      return new initializeHdfcEmiPayment_args(this);
13942
    }
13943
 
13944
    @Override
13945
    public void clear() {
13946
      setMerchantPaymentIdIsSet(false);
13947
      this.merchantPaymentId = 0;
13948
    }
13949
 
13950
    public long getMerchantPaymentId() {
13951
      return this.merchantPaymentId;
13952
    }
13953
 
13954
    public void setMerchantPaymentId(long merchantPaymentId) {
13955
      this.merchantPaymentId = merchantPaymentId;
13956
      setMerchantPaymentIdIsSet(true);
13957
    }
13958
 
13959
    public void unsetMerchantPaymentId() {
13960
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
13961
    }
13962
 
13963
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
13964
    public boolean isSetMerchantPaymentId() {
13965
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
13966
    }
13967
 
13968
    public void setMerchantPaymentIdIsSet(boolean value) {
13969
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
13970
    }
13971
 
13972
    public void setFieldValue(_Fields field, Object value) {
13973
      switch (field) {
13974
      case MERCHANT_PAYMENT_ID:
13975
        if (value == null) {
13976
          unsetMerchantPaymentId();
13977
        } else {
13978
          setMerchantPaymentId((Long)value);
13979
        }
13980
        break;
13981
 
13982
      }
13983
    }
13984
 
13985
    public Object getFieldValue(_Fields field) {
13986
      switch (field) {
13987
      case MERCHANT_PAYMENT_ID:
13988
        return Long.valueOf(getMerchantPaymentId());
13989
 
13990
      }
13991
      throw new IllegalStateException();
13992
    }
13993
 
13994
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13995
    public boolean isSet(_Fields field) {
13996
      if (field == null) {
13997
        throw new IllegalArgumentException();
13998
      }
13999
 
14000
      switch (field) {
14001
      case MERCHANT_PAYMENT_ID:
14002
        return isSetMerchantPaymentId();
14003
      }
14004
      throw new IllegalStateException();
14005
    }
14006
 
14007
    @Override
14008
    public boolean equals(Object that) {
14009
      if (that == null)
14010
        return false;
14011
      if (that instanceof initializeHdfcEmiPayment_args)
14012
        return this.equals((initializeHdfcEmiPayment_args)that);
14013
      return false;
14014
    }
14015
 
14016
    public boolean equals(initializeHdfcEmiPayment_args that) {
14017
      if (that == null)
14018
        return false;
14019
 
14020
      boolean this_present_merchantPaymentId = true;
14021
      boolean that_present_merchantPaymentId = true;
14022
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
14023
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
14024
          return false;
14025
        if (this.merchantPaymentId != that.merchantPaymentId)
14026
          return false;
14027
      }
14028
 
14029
      return true;
14030
    }
14031
 
14032
    @Override
14033
    public int hashCode() {
14034
      return 0;
14035
    }
14036
 
14037
    public int compareTo(initializeHdfcEmiPayment_args other) {
14038
      if (!getClass().equals(other.getClass())) {
14039
        return getClass().getName().compareTo(other.getClass().getName());
14040
      }
14041
 
14042
      int lastComparison = 0;
14043
      initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
14044
 
14045
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
14046
      if (lastComparison != 0) {
14047
        return lastComparison;
14048
      }
14049
      if (isSetMerchantPaymentId()) {
14050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
14051
        if (lastComparison != 0) {
14052
          return lastComparison;
14053
        }
14054
      }
14055
      return 0;
14056
    }
14057
 
14058
    public _Fields fieldForId(int fieldId) {
14059
      return _Fields.findByThriftId(fieldId);
14060
    }
14061
 
14062
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14063
      org.apache.thrift.protocol.TField field;
14064
      iprot.readStructBegin();
14065
      while (true)
14066
      {
14067
        field = iprot.readFieldBegin();
14068
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14069
          break;
14070
        }
14071
        switch (field.id) {
14072
          case 1: // MERCHANT_PAYMENT_ID
14073
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14074
              this.merchantPaymentId = iprot.readI64();
14075
              setMerchantPaymentIdIsSet(true);
14076
            } else { 
14077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14078
            }
14079
            break;
14080
          default:
14081
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14082
        }
14083
        iprot.readFieldEnd();
14084
      }
14085
      iprot.readStructEnd();
14086
      validate();
14087
    }
14088
 
14089
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14090
      validate();
14091
 
14092
      oprot.writeStructBegin(STRUCT_DESC);
14093
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
14094
      oprot.writeI64(this.merchantPaymentId);
14095
      oprot.writeFieldEnd();
14096
      oprot.writeFieldStop();
14097
      oprot.writeStructEnd();
14098
    }
14099
 
14100
    @Override
14101
    public String toString() {
14102
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
14103
      boolean first = true;
14104
 
14105
      sb.append("merchantPaymentId:");
14106
      sb.append(this.merchantPaymentId);
14107
      first = false;
14108
      sb.append(")");
14109
      return sb.toString();
14110
    }
14111
 
14112
    public void validate() throws org.apache.thrift.TException {
14113
      // check for required fields
14114
    }
14115
 
14116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14117
      try {
14118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14119
      } catch (org.apache.thrift.TException te) {
14120
        throw new java.io.IOException(te);
14121
      }
14122
    }
14123
 
14124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14125
      try {
14126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14127
      } catch (org.apache.thrift.TException te) {
14128
        throw new java.io.IOException(te);
14129
      }
14130
    }
14131
 
14132
  }
14133
 
14134
  public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable   {
14135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
14136
 
14137
    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);
14138
    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);
14139
 
14140
    private String success; // required
14141
    private PaymentException pe; // required
14142
 
14143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14145
      SUCCESS((short)0, "success"),
14146
      PE((short)1, "pe");
14147
 
14148
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14149
 
14150
      static {
14151
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14152
          byName.put(field.getFieldName(), field);
14153
        }
14154
      }
14155
 
14156
      /**
14157
       * Find the _Fields constant that matches fieldId, or null if its not found.
14158
       */
14159
      public static _Fields findByThriftId(int fieldId) {
14160
        switch(fieldId) {
14161
          case 0: // SUCCESS
14162
            return SUCCESS;
14163
          case 1: // PE
14164
            return PE;
14165
          default:
14166
            return null;
14167
        }
14168
      }
14169
 
14170
      /**
14171
       * Find the _Fields constant that matches fieldId, throwing an exception
14172
       * if it is not found.
14173
       */
14174
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14175
        _Fields fields = findByThriftId(fieldId);
14176
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14177
        return fields;
14178
      }
14179
 
14180
      /**
14181
       * Find the _Fields constant that matches name, or null if its not found.
14182
       */
14183
      public static _Fields findByName(String name) {
14184
        return byName.get(name);
14185
      }
14186
 
14187
      private final short _thriftId;
14188
      private final String _fieldName;
14189
 
14190
      _Fields(short thriftId, String fieldName) {
14191
        _thriftId = thriftId;
14192
        _fieldName = fieldName;
14193
      }
14194
 
14195
      public short getThriftFieldId() {
14196
        return _thriftId;
14197
      }
14198
 
14199
      public String getFieldName() {
14200
        return _fieldName;
14201
      }
14202
    }
14203
 
14204
    // isset id assignments
14205
 
14206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14207
    static {
14208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14209
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14211
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
14215
    }
14216
 
14217
    public initializeHdfcEmiPayment_result() {
14218
    }
14219
 
14220
    public initializeHdfcEmiPayment_result(
14221
      String success,
14222
      PaymentException pe)
14223
    {
14224
      this();
14225
      this.success = success;
14226
      this.pe = pe;
14227
    }
14228
 
14229
    /**
14230
     * Performs a deep copy on <i>other</i>.
14231
     */
14232
    public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
14233
      if (other.isSetSuccess()) {
14234
        this.success = other.success;
14235
      }
14236
      if (other.isSetPe()) {
14237
        this.pe = new PaymentException(other.pe);
14238
      }
14239
    }
14240
 
14241
    public initializeHdfcEmiPayment_result deepCopy() {
14242
      return new initializeHdfcEmiPayment_result(this);
14243
    }
14244
 
14245
    @Override
14246
    public void clear() {
14247
      this.success = null;
14248
      this.pe = null;
14249
    }
14250
 
14251
    public String getSuccess() {
14252
      return this.success;
14253
    }
14254
 
14255
    public void setSuccess(String success) {
14256
      this.success = success;
14257
    }
14258
 
14259
    public void unsetSuccess() {
14260
      this.success = null;
14261
    }
14262
 
14263
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14264
    public boolean isSetSuccess() {
14265
      return this.success != null;
14266
    }
14267
 
14268
    public void setSuccessIsSet(boolean value) {
14269
      if (!value) {
14270
        this.success = null;
14271
      }
14272
    }
14273
 
14274
    public PaymentException getPe() {
14275
      return this.pe;
14276
    }
14277
 
14278
    public void setPe(PaymentException pe) {
14279
      this.pe = pe;
14280
    }
14281
 
14282
    public void unsetPe() {
14283
      this.pe = null;
14284
    }
14285
 
14286
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
14287
    public boolean isSetPe() {
14288
      return this.pe != null;
14289
    }
14290
 
14291
    public void setPeIsSet(boolean value) {
14292
      if (!value) {
14293
        this.pe = null;
14294
      }
14295
    }
14296
 
14297
    public void setFieldValue(_Fields field, Object value) {
14298
      switch (field) {
14299
      case SUCCESS:
14300
        if (value == null) {
14301
          unsetSuccess();
14302
        } else {
14303
          setSuccess((String)value);
14304
        }
14305
        break;
14306
 
14307
      case PE:
14308
        if (value == null) {
14309
          unsetPe();
14310
        } else {
14311
          setPe((PaymentException)value);
14312
        }
14313
        break;
14314
 
14315
      }
14316
    }
14317
 
14318
    public Object getFieldValue(_Fields field) {
14319
      switch (field) {
14320
      case SUCCESS:
14321
        return getSuccess();
14322
 
14323
      case PE:
14324
        return getPe();
14325
 
14326
      }
14327
      throw new IllegalStateException();
14328
    }
14329
 
14330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14331
    public boolean isSet(_Fields field) {
14332
      if (field == null) {
14333
        throw new IllegalArgumentException();
14334
      }
14335
 
14336
      switch (field) {
14337
      case SUCCESS:
14338
        return isSetSuccess();
14339
      case PE:
14340
        return isSetPe();
14341
      }
14342
      throw new IllegalStateException();
14343
    }
14344
 
14345
    @Override
14346
    public boolean equals(Object that) {
14347
      if (that == null)
14348
        return false;
14349
      if (that instanceof initializeHdfcEmiPayment_result)
14350
        return this.equals((initializeHdfcEmiPayment_result)that);
14351
      return false;
14352
    }
14353
 
14354
    public boolean equals(initializeHdfcEmiPayment_result that) {
14355
      if (that == null)
14356
        return false;
14357
 
14358
      boolean this_present_success = true && this.isSetSuccess();
14359
      boolean that_present_success = true && that.isSetSuccess();
14360
      if (this_present_success || that_present_success) {
14361
        if (!(this_present_success && that_present_success))
14362
          return false;
14363
        if (!this.success.equals(that.success))
14364
          return false;
14365
      }
14366
 
14367
      boolean this_present_pe = true && this.isSetPe();
14368
      boolean that_present_pe = true && that.isSetPe();
14369
      if (this_present_pe || that_present_pe) {
14370
        if (!(this_present_pe && that_present_pe))
14371
          return false;
14372
        if (!this.pe.equals(that.pe))
14373
          return false;
14374
      }
14375
 
14376
      return true;
14377
    }
14378
 
14379
    @Override
14380
    public int hashCode() {
14381
      return 0;
14382
    }
14383
 
14384
    public int compareTo(initializeHdfcEmiPayment_result other) {
14385
      if (!getClass().equals(other.getClass())) {
14386
        return getClass().getName().compareTo(other.getClass().getName());
14387
      }
14388
 
14389
      int lastComparison = 0;
14390
      initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
14391
 
14392
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14393
      if (lastComparison != 0) {
14394
        return lastComparison;
14395
      }
14396
      if (isSetSuccess()) {
14397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14398
        if (lastComparison != 0) {
14399
          return lastComparison;
14400
        }
14401
      }
14402
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
14403
      if (lastComparison != 0) {
14404
        return lastComparison;
14405
      }
14406
      if (isSetPe()) {
14407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
14408
        if (lastComparison != 0) {
14409
          return lastComparison;
14410
        }
14411
      }
14412
      return 0;
14413
    }
14414
 
14415
    public _Fields fieldForId(int fieldId) {
14416
      return _Fields.findByThriftId(fieldId);
14417
    }
14418
 
14419
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14420
      org.apache.thrift.protocol.TField field;
14421
      iprot.readStructBegin();
14422
      while (true)
14423
      {
14424
        field = iprot.readFieldBegin();
14425
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14426
          break;
14427
        }
14428
        switch (field.id) {
14429
          case 0: // SUCCESS
14430
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14431
              this.success = iprot.readString();
14432
            } else { 
14433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14434
            }
14435
            break;
14436
          case 1: // PE
14437
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14438
              this.pe = new PaymentException();
14439
              this.pe.read(iprot);
14440
            } else { 
14441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14442
            }
14443
            break;
14444
          default:
14445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14446
        }
14447
        iprot.readFieldEnd();
14448
      }
14449
      iprot.readStructEnd();
14450
      validate();
14451
    }
14452
 
14453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14454
      oprot.writeStructBegin(STRUCT_DESC);
14455
 
14456
      if (this.isSetSuccess()) {
14457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14458
        oprot.writeString(this.success);
14459
        oprot.writeFieldEnd();
14460
      } else if (this.isSetPe()) {
14461
        oprot.writeFieldBegin(PE_FIELD_DESC);
14462
        this.pe.write(oprot);
14463
        oprot.writeFieldEnd();
14464
      }
14465
      oprot.writeFieldStop();
14466
      oprot.writeStructEnd();
14467
    }
14468
 
14469
    @Override
14470
    public String toString() {
14471
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
14472
      boolean first = true;
14473
 
14474
      sb.append("success:");
14475
      if (this.success == null) {
14476
        sb.append("null");
14477
      } else {
14478
        sb.append(this.success);
14479
      }
14480
      first = false;
14481
      if (!first) sb.append(", ");
14482
      sb.append("pe:");
14483
      if (this.pe == null) {
14484
        sb.append("null");
14485
      } else {
14486
        sb.append(this.pe);
14487
      }
14488
      first = false;
14489
      sb.append(")");
14490
      return sb.toString();
14491
    }
14492
 
14493
    public void validate() throws org.apache.thrift.TException {
14494
      // check for required fields
14495
    }
14496
 
14497
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14498
      try {
14499
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14500
      } catch (org.apache.thrift.TException te) {
14501
        throw new java.io.IOException(te);
14502
      }
14503
    }
14504
 
14505
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14506
      try {
14507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14508
      } catch (org.apache.thrift.TException te) {
14509
        throw new java.io.IOException(te);
14510
      }
14511
    }
14512
 
14513
  }
14514
 
3430 rajveer 14515
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
14516
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
2462 chandransh 14517
 
3430 rajveer 14518
    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);
14519
    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);
14520
    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 14521
 
3430 rajveer 14522
    private long orderId; // required
14523
    private long merchantTxnId; // required
14524
    private double amount; // required
2462 chandransh 14525
 
14526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 14528
      ORDER_ID((short)1, "orderId"),
14529
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
14530
      AMOUNT((short)3, "amount");
2462 chandransh 14531
 
14532
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14533
 
14534
      static {
14535
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14536
          byName.put(field.getFieldName(), field);
14537
        }
14538
      }
14539
 
14540
      /**
14541
       * Find the _Fields constant that matches fieldId, or null if its not found.
14542
       */
14543
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14544
        switch(fieldId) {
14545
          case 1: // ORDER_ID
14546
            return ORDER_ID;
14547
          case 2: // MERCHANT_TXN_ID
14548
            return MERCHANT_TXN_ID;
14549
          case 3: // AMOUNT
14550
            return AMOUNT;
14551
          default:
14552
            return null;
14553
        }
2462 chandransh 14554
      }
14555
 
14556
      /**
14557
       * Find the _Fields constant that matches fieldId, throwing an exception
14558
       * if it is not found.
14559
       */
14560
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14561
        _Fields fields = findByThriftId(fieldId);
14562
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14563
        return fields;
14564
      }
14565
 
14566
      /**
14567
       * Find the _Fields constant that matches name, or null if its not found.
14568
       */
14569
      public static _Fields findByName(String name) {
14570
        return byName.get(name);
14571
      }
14572
 
14573
      private final short _thriftId;
14574
      private final String _fieldName;
14575
 
14576
      _Fields(short thriftId, String fieldName) {
14577
        _thriftId = thriftId;
14578
        _fieldName = fieldName;
14579
      }
14580
 
14581
      public short getThriftFieldId() {
14582
        return _thriftId;
14583
      }
14584
 
14585
      public String getFieldName() {
14586
        return _fieldName;
14587
      }
14588
    }
14589
 
14590
    // isset id assignments
3010 chandransh 14591
    private static final int __ORDERID_ISSET_ID = 0;
14592
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
14593
    private static final int __AMOUNT_ISSET_ID = 2;
14594
    private BitSet __isset_bit_vector = new BitSet(3);
2462 chandransh 14595
 
3430 rajveer 14596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 14597
    static {
3430 rajveer 14598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14599
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14601
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14602
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14603
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
2462 chandransh 14607
    }
14608
 
3010 chandransh 14609
    public createRefund_args() {
2462 chandransh 14610
    }
14611
 
3010 chandransh 14612
    public createRefund_args(
14613
      long orderId,
14614
      long merchantTxnId,
14615
      double amount)
2462 chandransh 14616
    {
14617
      this();
3010 chandransh 14618
      this.orderId = orderId;
14619
      setOrderIdIsSet(true);
14620
      this.merchantTxnId = merchantTxnId;
14621
      setMerchantTxnIdIsSet(true);
14622
      this.amount = amount;
14623
      setAmountIsSet(true);
2462 chandransh 14624
    }
14625
 
14626
    /**
14627
     * Performs a deep copy on <i>other</i>.
14628
     */
3010 chandransh 14629
    public createRefund_args(createRefund_args other) {
2462 chandransh 14630
      __isset_bit_vector.clear();
14631
      __isset_bit_vector.or(other.__isset_bit_vector);
3010 chandransh 14632
      this.orderId = other.orderId;
14633
      this.merchantTxnId = other.merchantTxnId;
14634
      this.amount = other.amount;
2462 chandransh 14635
    }
14636
 
3010 chandransh 14637
    public createRefund_args deepCopy() {
14638
      return new createRefund_args(this);
2462 chandransh 14639
    }
14640
 
3430 rajveer 14641
    @Override
14642
    public void clear() {
14643
      setOrderIdIsSet(false);
14644
      this.orderId = 0;
14645
      setMerchantTxnIdIsSet(false);
14646
      this.merchantTxnId = 0;
14647
      setAmountIsSet(false);
14648
      this.amount = 0.0;
2462 chandransh 14649
    }
14650
 
3010 chandransh 14651
    public long getOrderId() {
14652
      return this.orderId;
2462 chandransh 14653
    }
14654
 
3430 rajveer 14655
    public void setOrderId(long orderId) {
3010 chandransh 14656
      this.orderId = orderId;
14657
      setOrderIdIsSet(true);
2462 chandransh 14658
    }
14659
 
3010 chandransh 14660
    public void unsetOrderId() {
14661
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2462 chandransh 14662
    }
14663
 
3430 rajveer 14664
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3010 chandransh 14665
    public boolean isSetOrderId() {
14666
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2462 chandransh 14667
    }
14668
 
3010 chandransh 14669
    public void setOrderIdIsSet(boolean value) {
14670
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2462 chandransh 14671
    }
14672
 
3010 chandransh 14673
    public long getMerchantTxnId() {
14674
      return this.merchantTxnId;
14675
    }
14676
 
3430 rajveer 14677
    public void setMerchantTxnId(long merchantTxnId) {
3010 chandransh 14678
      this.merchantTxnId = merchantTxnId;
14679
      setMerchantTxnIdIsSet(true);
14680
    }
14681
 
14682
    public void unsetMerchantTxnId() {
14683
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
14684
    }
14685
 
3430 rajveer 14686
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
3010 chandransh 14687
    public boolean isSetMerchantTxnId() {
14688
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
14689
    }
14690
 
14691
    public void setMerchantTxnIdIsSet(boolean value) {
14692
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
14693
    }
14694
 
14695
    public double getAmount() {
14696
      return this.amount;
14697
    }
14698
 
3430 rajveer 14699
    public void setAmount(double amount) {
3010 chandransh 14700
      this.amount = amount;
14701
      setAmountIsSet(true);
14702
    }
14703
 
14704
    public void unsetAmount() {
14705
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
14706
    }
14707
 
3430 rajveer 14708
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
3010 chandransh 14709
    public boolean isSetAmount() {
14710
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
14711
    }
14712
 
14713
    public void setAmountIsSet(boolean value) {
14714
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
14715
    }
14716
 
2462 chandransh 14717
    public void setFieldValue(_Fields field, Object value) {
14718
      switch (field) {
3010 chandransh 14719
      case ORDER_ID:
2462 chandransh 14720
        if (value == null) {
3010 chandransh 14721
          unsetOrderId();
2462 chandransh 14722
        } else {
3010 chandransh 14723
          setOrderId((Long)value);
2462 chandransh 14724
        }
14725
        break;
14726
 
3010 chandransh 14727
      case MERCHANT_TXN_ID:
14728
        if (value == null) {
14729
          unsetMerchantTxnId();
14730
        } else {
14731
          setMerchantTxnId((Long)value);
14732
        }
14733
        break;
14734
 
14735
      case AMOUNT:
14736
        if (value == null) {
14737
          unsetAmount();
14738
        } else {
14739
          setAmount((Double)value);
14740
        }
14741
        break;
14742
 
2462 chandransh 14743
      }
14744
    }
14745
 
14746
    public Object getFieldValue(_Fields field) {
14747
      switch (field) {
3010 chandransh 14748
      case ORDER_ID:
3430 rajveer 14749
        return Long.valueOf(getOrderId());
2462 chandransh 14750
 
3010 chandransh 14751
      case MERCHANT_TXN_ID:
3430 rajveer 14752
        return Long.valueOf(getMerchantTxnId());
3010 chandransh 14753
 
14754
      case AMOUNT:
3430 rajveer 14755
        return Double.valueOf(getAmount());
3010 chandransh 14756
 
2462 chandransh 14757
      }
14758
      throw new IllegalStateException();
14759
    }
14760
 
3430 rajveer 14761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14762
    public boolean isSet(_Fields field) {
14763
      if (field == null) {
14764
        throw new IllegalArgumentException();
14765
      }
2462 chandransh 14766
 
14767
      switch (field) {
3010 chandransh 14768
      case ORDER_ID:
14769
        return isSetOrderId();
14770
      case MERCHANT_TXN_ID:
14771
        return isSetMerchantTxnId();
14772
      case AMOUNT:
14773
        return isSetAmount();
2462 chandransh 14774
      }
14775
      throw new IllegalStateException();
14776
    }
14777
 
14778
    @Override
14779
    public boolean equals(Object that) {
14780
      if (that == null)
14781
        return false;
3010 chandransh 14782
      if (that instanceof createRefund_args)
14783
        return this.equals((createRefund_args)that);
2462 chandransh 14784
      return false;
14785
    }
14786
 
3010 chandransh 14787
    public boolean equals(createRefund_args that) {
2462 chandransh 14788
      if (that == null)
14789
        return false;
14790
 
3010 chandransh 14791
      boolean this_present_orderId = true;
14792
      boolean that_present_orderId = true;
14793
      if (this_present_orderId || that_present_orderId) {
14794
        if (!(this_present_orderId && that_present_orderId))
2462 chandransh 14795
          return false;
3010 chandransh 14796
        if (this.orderId != that.orderId)
2462 chandransh 14797
          return false;
14798
      }
14799
 
3010 chandransh 14800
      boolean this_present_merchantTxnId = true;
14801
      boolean that_present_merchantTxnId = true;
14802
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
14803
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
14804
          return false;
14805
        if (this.merchantTxnId != that.merchantTxnId)
14806
          return false;
14807
      }
14808
 
14809
      boolean this_present_amount = true;
14810
      boolean that_present_amount = true;
14811
      if (this_present_amount || that_present_amount) {
14812
        if (!(this_present_amount && that_present_amount))
14813
          return false;
14814
        if (this.amount != that.amount)
14815
          return false;
14816
      }
14817
 
2462 chandransh 14818
      return true;
14819
    }
14820
 
14821
    @Override
14822
    public int hashCode() {
14823
      return 0;
14824
    }
14825
 
3010 chandransh 14826
    public int compareTo(createRefund_args other) {
2462 chandransh 14827
      if (!getClass().equals(other.getClass())) {
14828
        return getClass().getName().compareTo(other.getClass().getName());
14829
      }
14830
 
14831
      int lastComparison = 0;
3010 chandransh 14832
      createRefund_args typedOther = (createRefund_args)other;
2462 chandransh 14833
 
3430 rajveer 14834
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2462 chandransh 14835
      if (lastComparison != 0) {
14836
        return lastComparison;
14837
      }
3430 rajveer 14838
      if (isSetOrderId()) {
14839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14840
        if (lastComparison != 0) {
14841
          return lastComparison;
14842
        }
2462 chandransh 14843
      }
3430 rajveer 14844
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
3010 chandransh 14845
      if (lastComparison != 0) {
14846
        return lastComparison;
14847
      }
3430 rajveer 14848
      if (isSetMerchantTxnId()) {
14849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
14850
        if (lastComparison != 0) {
14851
          return lastComparison;
14852
        }
3010 chandransh 14853
      }
3430 rajveer 14854
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
3010 chandransh 14855
      if (lastComparison != 0) {
14856
        return lastComparison;
14857
      }
3430 rajveer 14858
      if (isSetAmount()) {
14859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
14860
        if (lastComparison != 0) {
14861
          return lastComparison;
14862
        }
3010 chandransh 14863
      }
2462 chandransh 14864
      return 0;
14865
    }
14866
 
3430 rajveer 14867
    public _Fields fieldForId(int fieldId) {
14868
      return _Fields.findByThriftId(fieldId);
14869
    }
14870
 
14871
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14872
      org.apache.thrift.protocol.TField field;
2462 chandransh 14873
      iprot.readStructBegin();
14874
      while (true)
14875
      {
14876
        field = iprot.readFieldBegin();
3430 rajveer 14877
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 14878
          break;
14879
        }
3430 rajveer 14880
        switch (field.id) {
14881
          case 1: // ORDER_ID
14882
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14883
              this.orderId = iprot.readI64();
14884
              setOrderIdIsSet(true);
14885
            } else { 
14886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14887
            }
14888
            break;
14889
          case 2: // MERCHANT_TXN_ID
14890
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14891
              this.merchantTxnId = iprot.readI64();
14892
              setMerchantTxnIdIsSet(true);
14893
            } else { 
14894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14895
            }
14896
            break;
14897
          case 3: // AMOUNT
14898
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14899
              this.amount = iprot.readDouble();
14900
              setAmountIsSet(true);
14901
            } else { 
14902
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14903
            }
14904
            break;
14905
          default:
14906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 14907
        }
3430 rajveer 14908
        iprot.readFieldEnd();
2462 chandransh 14909
      }
14910
      iprot.readStructEnd();
14911
      validate();
14912
    }
14913
 
3430 rajveer 14914
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 14915
      validate();
14916
 
14917
      oprot.writeStructBegin(STRUCT_DESC);
3010 chandransh 14918
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14919
      oprot.writeI64(this.orderId);
2462 chandransh 14920
      oprot.writeFieldEnd();
3010 chandransh 14921
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
14922
      oprot.writeI64(this.merchantTxnId);
14923
      oprot.writeFieldEnd();
14924
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
14925
      oprot.writeDouble(this.amount);
14926
      oprot.writeFieldEnd();
2462 chandransh 14927
      oprot.writeFieldStop();
14928
      oprot.writeStructEnd();
14929
    }
14930
 
14931
    @Override
14932
    public String toString() {
3010 chandransh 14933
      StringBuilder sb = new StringBuilder("createRefund_args(");
2462 chandransh 14934
      boolean first = true;
14935
 
3010 chandransh 14936
      sb.append("orderId:");
14937
      sb.append(this.orderId);
2462 chandransh 14938
      first = false;
3010 chandransh 14939
      if (!first) sb.append(", ");
14940
      sb.append("merchantTxnId:");
14941
      sb.append(this.merchantTxnId);
14942
      first = false;
14943
      if (!first) sb.append(", ");
14944
      sb.append("amount:");
14945
      sb.append(this.amount);
14946
      first = false;
2462 chandransh 14947
      sb.append(")");
14948
      return sb.toString();
14949
    }
14950
 
3430 rajveer 14951
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 14952
      // check for required fields
14953
    }
14954
 
3430 rajveer 14955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14956
      try {
14957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14958
      } catch (org.apache.thrift.TException te) {
14959
        throw new java.io.IOException(te);
14960
      }
14961
    }
14962
 
14963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14964
      try {
14965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14966
      } catch (org.apache.thrift.TException te) {
14967
        throw new java.io.IOException(te);
14968
      }
14969
    }
14970
 
2462 chandransh 14971
  }
14972
 
3430 rajveer 14973
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
14974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
2462 chandransh 14975
 
3430 rajveer 14976
    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);
14977
    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 14978
 
3430 rajveer 14979
    private long success; // required
14980
    private PaymentException pe; // required
2462 chandransh 14981
 
14982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 14984
      SUCCESS((short)0, "success"),
14985
      PE((short)1, "pe");
14986
 
14987
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14988
 
14989
      static {
14990
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14991
          byName.put(field.getFieldName(), field);
14992
        }
14993
      }
14994
 
14995
      /**
14996
       * Find the _Fields constant that matches fieldId, or null if its not found.
14997
       */
14998
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14999
        switch(fieldId) {
15000
          case 0: // SUCCESS
15001
            return SUCCESS;
15002
          case 1: // PE
15003
            return PE;
15004
          default:
15005
            return null;
15006
        }
2462 chandransh 15007
      }
15008
 
15009
      /**
15010
       * Find the _Fields constant that matches fieldId, throwing an exception
15011
       * if it is not found.
15012
       */
15013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15014
        _Fields fields = findByThriftId(fieldId);
15015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15016
        return fields;
15017
      }
15018
 
15019
      /**
15020
       * Find the _Fields constant that matches name, or null if its not found.
15021
       */
15022
      public static _Fields findByName(String name) {
15023
        return byName.get(name);
15024
      }
15025
 
15026
      private final short _thriftId;
15027
      private final String _fieldName;
15028
 
15029
      _Fields(short thriftId, String fieldName) {
15030
        _thriftId = thriftId;
15031
        _fieldName = fieldName;
15032
      }
15033
 
15034
      public short getThriftFieldId() {
15035
        return _thriftId;
15036
      }
15037
 
15038
      public String getFieldName() {
15039
        return _fieldName;
15040
      }
15041
    }
15042
 
15043
    // isset id assignments
3010 chandransh 15044
    private static final int __SUCCESS_ISSET_ID = 0;
15045
    private BitSet __isset_bit_vector = new BitSet(1);
2462 chandransh 15046
 
3430 rajveer 15047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 15048
    static {
3430 rajveer 15049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15050
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15052
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
2462 chandransh 15056
    }
15057
 
3010 chandransh 15058
    public createRefund_result() {
2462 chandransh 15059
    }
15060
 
3010 chandransh 15061
    public createRefund_result(
15062
      long success,
2462 chandransh 15063
      PaymentException pe)
15064
    {
15065
      this();
15066
      this.success = success;
3010 chandransh 15067
      setSuccessIsSet(true);
2462 chandransh 15068
      this.pe = pe;
15069
    }
15070
 
15071
    /**
15072
     * Performs a deep copy on <i>other</i>.
15073
     */
3010 chandransh 15074
    public createRefund_result(createRefund_result other) {
15075
      __isset_bit_vector.clear();
15076
      __isset_bit_vector.or(other.__isset_bit_vector);
15077
      this.success = other.success;
2462 chandransh 15078
      if (other.isSetPe()) {
15079
        this.pe = new PaymentException(other.pe);
15080
      }
15081
    }
15082
 
3010 chandransh 15083
    public createRefund_result deepCopy() {
15084
      return new createRefund_result(this);
2462 chandransh 15085
    }
15086
 
3430 rajveer 15087
    @Override
15088
    public void clear() {
15089
      setSuccessIsSet(false);
15090
      this.success = 0;
15091
      this.pe = null;
2462 chandransh 15092
    }
15093
 
3010 chandransh 15094
    public long getSuccess() {
2462 chandransh 15095
      return this.success;
15096
    }
15097
 
3430 rajveer 15098
    public void setSuccess(long success) {
2462 chandransh 15099
      this.success = success;
3010 chandransh 15100
      setSuccessIsSet(true);
2462 chandransh 15101
    }
15102
 
15103
    public void unsetSuccess() {
3010 chandransh 15104
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2462 chandransh 15105
    }
15106
 
3430 rajveer 15107
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 15108
    public boolean isSetSuccess() {
3010 chandransh 15109
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2462 chandransh 15110
    }
15111
 
15112
    public void setSuccessIsSet(boolean value) {
3010 chandransh 15113
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2462 chandransh 15114
    }
15115
 
15116
    public PaymentException getPe() {
15117
      return this.pe;
15118
    }
15119
 
3430 rajveer 15120
    public void setPe(PaymentException pe) {
2462 chandransh 15121
      this.pe = pe;
15122
    }
15123
 
15124
    public void unsetPe() {
15125
      this.pe = null;
15126
    }
15127
 
3430 rajveer 15128
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 15129
    public boolean isSetPe() {
15130
      return this.pe != null;
15131
    }
15132
 
15133
    public void setPeIsSet(boolean value) {
15134
      if (!value) {
15135
        this.pe = null;
15136
      }
15137
    }
15138
 
15139
    public void setFieldValue(_Fields field, Object value) {
15140
      switch (field) {
15141
      case SUCCESS:
15142
        if (value == null) {
15143
          unsetSuccess();
15144
        } else {
3010 chandransh 15145
          setSuccess((Long)value);
2462 chandransh 15146
        }
15147
        break;
15148
 
15149
      case PE:
15150
        if (value == null) {
15151
          unsetPe();
15152
        } else {
15153
          setPe((PaymentException)value);
15154
        }
15155
        break;
15156
 
15157
      }
15158
    }
15159
 
15160
    public Object getFieldValue(_Fields field) {
15161
      switch (field) {
15162
      case SUCCESS:
3430 rajveer 15163
        return Long.valueOf(getSuccess());
2462 chandransh 15164
 
15165
      case PE:
15166
        return getPe();
15167
 
15168
      }
15169
      throw new IllegalStateException();
15170
    }
15171
 
3430 rajveer 15172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15173
    public boolean isSet(_Fields field) {
15174
      if (field == null) {
15175
        throw new IllegalArgumentException();
15176
      }
2462 chandransh 15177
 
15178
      switch (field) {
15179
      case SUCCESS:
15180
        return isSetSuccess();
15181
      case PE:
15182
        return isSetPe();
15183
      }
15184
      throw new IllegalStateException();
15185
    }
15186
 
15187
    @Override
15188
    public boolean equals(Object that) {
15189
      if (that == null)
15190
        return false;
3010 chandransh 15191
      if (that instanceof createRefund_result)
15192
        return this.equals((createRefund_result)that);
2462 chandransh 15193
      return false;
15194
    }
15195
 
3010 chandransh 15196
    public boolean equals(createRefund_result that) {
2462 chandransh 15197
      if (that == null)
15198
        return false;
15199
 
3010 chandransh 15200
      boolean this_present_success = true;
15201
      boolean that_present_success = true;
2462 chandransh 15202
      if (this_present_success || that_present_success) {
15203
        if (!(this_present_success && that_present_success))
15204
          return false;
3010 chandransh 15205
        if (this.success != that.success)
2462 chandransh 15206
          return false;
15207
      }
15208
 
15209
      boolean this_present_pe = true && this.isSetPe();
15210
      boolean that_present_pe = true && that.isSetPe();
15211
      if (this_present_pe || that_present_pe) {
15212
        if (!(this_present_pe && that_present_pe))
15213
          return false;
15214
        if (!this.pe.equals(that.pe))
15215
          return false;
15216
      }
15217
 
15218
      return true;
15219
    }
15220
 
15221
    @Override
15222
    public int hashCode() {
15223
      return 0;
15224
    }
15225
 
3010 chandransh 15226
    public int compareTo(createRefund_result other) {
2462 chandransh 15227
      if (!getClass().equals(other.getClass())) {
15228
        return getClass().getName().compareTo(other.getClass().getName());
15229
      }
15230
 
15231
      int lastComparison = 0;
3010 chandransh 15232
      createRefund_result typedOther = (createRefund_result)other;
2462 chandransh 15233
 
3430 rajveer 15234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2462 chandransh 15235
      if (lastComparison != 0) {
15236
        return lastComparison;
15237
      }
3430 rajveer 15238
      if (isSetSuccess()) {
15239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15240
        if (lastComparison != 0) {
15241
          return lastComparison;
15242
        }
2462 chandransh 15243
      }
3430 rajveer 15244
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2462 chandransh 15245
      if (lastComparison != 0) {
15246
        return lastComparison;
15247
      }
3430 rajveer 15248
      if (isSetPe()) {
15249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
15250
        if (lastComparison != 0) {
15251
          return lastComparison;
15252
        }
2462 chandransh 15253
      }
15254
      return 0;
15255
    }
15256
 
3430 rajveer 15257
    public _Fields fieldForId(int fieldId) {
15258
      return _Fields.findByThriftId(fieldId);
15259
    }
15260
 
15261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15262
      org.apache.thrift.protocol.TField field;
2462 chandransh 15263
      iprot.readStructBegin();
15264
      while (true)
15265
      {
15266
        field = iprot.readFieldBegin();
3430 rajveer 15267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 15268
          break;
15269
        }
3430 rajveer 15270
        switch (field.id) {
15271
          case 0: // SUCCESS
15272
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15273
              this.success = iprot.readI64();
15274
              setSuccessIsSet(true);
15275
            } else { 
15276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15277
            }
15278
            break;
15279
          case 1: // PE
15280
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15281
              this.pe = new PaymentException();
15282
              this.pe.read(iprot);
15283
            } else { 
15284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15285
            }
15286
            break;
15287
          default:
15288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 15289
        }
3430 rajveer 15290
        iprot.readFieldEnd();
2462 chandransh 15291
      }
15292
      iprot.readStructEnd();
15293
      validate();
15294
    }
15295
 
3430 rajveer 15296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 15297
      oprot.writeStructBegin(STRUCT_DESC);
15298
 
15299
      if (this.isSetSuccess()) {
15300
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 15301
        oprot.writeI64(this.success);
2462 chandransh 15302
        oprot.writeFieldEnd();
15303
      } else if (this.isSetPe()) {
15304
        oprot.writeFieldBegin(PE_FIELD_DESC);
15305
        this.pe.write(oprot);
15306
        oprot.writeFieldEnd();
15307
      }
15308
      oprot.writeFieldStop();
15309
      oprot.writeStructEnd();
15310
    }
15311
 
15312
    @Override
15313
    public String toString() {
3010 chandransh 15314
      StringBuilder sb = new StringBuilder("createRefund_result(");
2462 chandransh 15315
      boolean first = true;
15316
 
15317
      sb.append("success:");
3010 chandransh 15318
      sb.append(this.success);
2462 chandransh 15319
      first = false;
15320
      if (!first) sb.append(", ");
15321
      sb.append("pe:");
15322
      if (this.pe == null) {
15323
        sb.append("null");
15324
      } else {
15325
        sb.append(this.pe);
15326
      }
15327
      first = false;
15328
      sb.append(")");
15329
      return sb.toString();
15330
    }
15331
 
3430 rajveer 15332
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 15333
      // check for required fields
15334
    }
15335
 
3430 rajveer 15336
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15337
      try {
15338
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15339
      } catch (org.apache.thrift.TException te) {
15340
        throw new java.io.IOException(te);
15341
      }
15342
    }
15343
 
15344
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15345
      try {
15346
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15347
      } catch (org.apache.thrift.TException te) {
15348
        throw new java.io.IOException(te);
15349
      }
15350
    }
15351
 
2462 chandransh 15352
  }
15353
 
3430 rajveer 15354
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
15355
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
2690 chandransh 15356
 
3430 rajveer 15357
    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 15358
 
3430 rajveer 15359
    private long merchantTxnId; // required
2690 chandransh 15360
 
15361
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15362
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 15363
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
2690 chandransh 15364
 
15365
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15366
 
15367
      static {
15368
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15369
          byName.put(field.getFieldName(), field);
15370
        }
15371
      }
15372
 
15373
      /**
15374
       * Find the _Fields constant that matches fieldId, or null if its not found.
15375
       */
15376
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15377
        switch(fieldId) {
15378
          case 1: // MERCHANT_TXN_ID
15379
            return MERCHANT_TXN_ID;
15380
          default:
15381
            return null;
15382
        }
2690 chandransh 15383
      }
15384
 
15385
      /**
15386
       * Find the _Fields constant that matches fieldId, throwing an exception
15387
       * if it is not found.
15388
       */
15389
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15390
        _Fields fields = findByThriftId(fieldId);
15391
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15392
        return fields;
15393
      }
15394
 
15395
      /**
15396
       * Find the _Fields constant that matches name, or null if its not found.
15397
       */
15398
      public static _Fields findByName(String name) {
15399
        return byName.get(name);
15400
      }
15401
 
15402
      private final short _thriftId;
15403
      private final String _fieldName;
15404
 
15405
      _Fields(short thriftId, String fieldName) {
15406
        _thriftId = thriftId;
15407
        _fieldName = fieldName;
15408
      }
15409
 
15410
      public short getThriftFieldId() {
15411
        return _thriftId;
15412
      }
15413
 
15414
      public String getFieldName() {
15415
        return _fieldName;
15416
      }
15417
    }
15418
 
15419
    // isset id assignments
3010 chandransh 15420
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
15421
    private BitSet __isset_bit_vector = new BitSet(1);
2690 chandransh 15422
 
3430 rajveer 15423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 15424
    static {
3430 rajveer 15425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15426
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15427
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15428
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15429
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
2690 chandransh 15430
    }
15431
 
3010 chandransh 15432
    public capturePayment_args() {
2690 chandransh 15433
    }
15434
 
3010 chandransh 15435
    public capturePayment_args(
15436
      long merchantTxnId)
2690 chandransh 15437
    {
15438
      this();
15439
      this.merchantTxnId = merchantTxnId;
15440
      setMerchantTxnIdIsSet(true);
15441
    }
15442
 
15443
    /**
15444
     * Performs a deep copy on <i>other</i>.
15445
     */
3010 chandransh 15446
    public capturePayment_args(capturePayment_args other) {
2690 chandransh 15447
      __isset_bit_vector.clear();
15448
      __isset_bit_vector.or(other.__isset_bit_vector);
15449
      this.merchantTxnId = other.merchantTxnId;
15450
    }
15451
 
3010 chandransh 15452
    public capturePayment_args deepCopy() {
15453
      return new capturePayment_args(this);
2690 chandransh 15454
    }
15455
 
3430 rajveer 15456
    @Override
15457
    public void clear() {
15458
      setMerchantTxnIdIsSet(false);
15459
      this.merchantTxnId = 0;
2690 chandransh 15460
    }
15461
 
15462
    public long getMerchantTxnId() {
15463
      return this.merchantTxnId;
15464
    }
15465
 
3430 rajveer 15466
    public void setMerchantTxnId(long merchantTxnId) {
2690 chandransh 15467
      this.merchantTxnId = merchantTxnId;
15468
      setMerchantTxnIdIsSet(true);
15469
    }
15470
 
15471
    public void unsetMerchantTxnId() {
15472
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
15473
    }
15474
 
3430 rajveer 15475
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
2690 chandransh 15476
    public boolean isSetMerchantTxnId() {
15477
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
15478
    }
15479
 
15480
    public void setMerchantTxnIdIsSet(boolean value) {
15481
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
15482
    }
15483
 
15484
    public void setFieldValue(_Fields field, Object value) {
15485
      switch (field) {
15486
      case MERCHANT_TXN_ID:
15487
        if (value == null) {
15488
          unsetMerchantTxnId();
15489
        } else {
15490
          setMerchantTxnId((Long)value);
15491
        }
15492
        break;
15493
 
15494
      }
15495
    }
15496
 
15497
    public Object getFieldValue(_Fields field) {
15498
      switch (field) {
15499
      case MERCHANT_TXN_ID:
3430 rajveer 15500
        return Long.valueOf(getMerchantTxnId());
2690 chandransh 15501
 
15502
      }
15503
      throw new IllegalStateException();
15504
    }
15505
 
3430 rajveer 15506
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15507
    public boolean isSet(_Fields field) {
15508
      if (field == null) {
15509
        throw new IllegalArgumentException();
15510
      }
2690 chandransh 15511
 
15512
      switch (field) {
15513
      case MERCHANT_TXN_ID:
15514
        return isSetMerchantTxnId();
15515
      }
15516
      throw new IllegalStateException();
15517
    }
15518
 
15519
    @Override
15520
    public boolean equals(Object that) {
15521
      if (that == null)
15522
        return false;
3010 chandransh 15523
      if (that instanceof capturePayment_args)
15524
        return this.equals((capturePayment_args)that);
2690 chandransh 15525
      return false;
15526
    }
15527
 
3010 chandransh 15528
    public boolean equals(capturePayment_args that) {
2690 chandransh 15529
      if (that == null)
15530
        return false;
15531
 
15532
      boolean this_present_merchantTxnId = true;
15533
      boolean that_present_merchantTxnId = true;
15534
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
15535
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
15536
          return false;
15537
        if (this.merchantTxnId != that.merchantTxnId)
15538
          return false;
15539
      }
15540
 
15541
      return true;
15542
    }
15543
 
15544
    @Override
15545
    public int hashCode() {
15546
      return 0;
15547
    }
15548
 
3010 chandransh 15549
    public int compareTo(capturePayment_args other) {
2690 chandransh 15550
      if (!getClass().equals(other.getClass())) {
15551
        return getClass().getName().compareTo(other.getClass().getName());
15552
      }
15553
 
15554
      int lastComparison = 0;
3010 chandransh 15555
      capturePayment_args typedOther = (capturePayment_args)other;
2690 chandransh 15556
 
3430 rajveer 15557
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
2690 chandransh 15558
      if (lastComparison != 0) {
15559
        return lastComparison;
15560
      }
3430 rajveer 15561
      if (isSetMerchantTxnId()) {
15562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
15563
        if (lastComparison != 0) {
15564
          return lastComparison;
15565
        }
2690 chandransh 15566
      }
15567
      return 0;
15568
    }
15569
 
3430 rajveer 15570
    public _Fields fieldForId(int fieldId) {
15571
      return _Fields.findByThriftId(fieldId);
15572
    }
15573
 
15574
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15575
      org.apache.thrift.protocol.TField field;
2690 chandransh 15576
      iprot.readStructBegin();
15577
      while (true)
15578
      {
15579
        field = iprot.readFieldBegin();
3430 rajveer 15580
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 15581
          break;
15582
        }
3430 rajveer 15583
        switch (field.id) {
15584
          case 1: // MERCHANT_TXN_ID
15585
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15586
              this.merchantTxnId = iprot.readI64();
15587
              setMerchantTxnIdIsSet(true);
15588
            } else { 
15589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15590
            }
15591
            break;
15592
          default:
15593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 15594
        }
3430 rajveer 15595
        iprot.readFieldEnd();
2690 chandransh 15596
      }
15597
      iprot.readStructEnd();
15598
      validate();
15599
    }
15600
 
3430 rajveer 15601
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 15602
      validate();
15603
 
15604
      oprot.writeStructBegin(STRUCT_DESC);
15605
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
15606
      oprot.writeI64(this.merchantTxnId);
15607
      oprot.writeFieldEnd();
15608
      oprot.writeFieldStop();
15609
      oprot.writeStructEnd();
15610
    }
15611
 
15612
    @Override
15613
    public String toString() {
3010 chandransh 15614
      StringBuilder sb = new StringBuilder("capturePayment_args(");
2690 chandransh 15615
      boolean first = true;
15616
 
15617
      sb.append("merchantTxnId:");
15618
      sb.append(this.merchantTxnId);
15619
      first = false;
15620
      sb.append(")");
15621
      return sb.toString();
15622
    }
15623
 
3430 rajveer 15624
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 15625
      // check for required fields
15626
    }
15627
 
3430 rajveer 15628
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15629
      try {
15630
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15631
      } catch (org.apache.thrift.TException te) {
15632
        throw new java.io.IOException(te);
15633
      }
15634
    }
15635
 
15636
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15637
      try {
15638
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15639
      } catch (org.apache.thrift.TException te) {
15640
        throw new java.io.IOException(te);
15641
      }
15642
    }
15643
 
2690 chandransh 15644
  }
15645
 
3430 rajveer 15646
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
15647
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
2690 chandransh 15648
 
3430 rajveer 15649
    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);
15650
    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 15651
 
3430 rajveer 15652
    private boolean success; // required
15653
    private PaymentException pe; // required
2690 chandransh 15654
 
15655
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15656
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 15657
      SUCCESS((short)0, "success"),
15658
      PE((short)1, "pe");
15659
 
15660
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15661
 
15662
      static {
15663
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15664
          byName.put(field.getFieldName(), field);
15665
        }
15666
      }
15667
 
15668
      /**
15669
       * Find the _Fields constant that matches fieldId, or null if its not found.
15670
       */
15671
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15672
        switch(fieldId) {
15673
          case 0: // SUCCESS
15674
            return SUCCESS;
15675
          case 1: // PE
15676
            return PE;
15677
          default:
15678
            return null;
15679
        }
2690 chandransh 15680
      }
15681
 
15682
      /**
15683
       * Find the _Fields constant that matches fieldId, throwing an exception
15684
       * if it is not found.
15685
       */
15686
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15687
        _Fields fields = findByThriftId(fieldId);
15688
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15689
        return fields;
15690
      }
15691
 
15692
      /**
15693
       * Find the _Fields constant that matches name, or null if its not found.
15694
       */
15695
      public static _Fields findByName(String name) {
15696
        return byName.get(name);
15697
      }
15698
 
15699
      private final short _thriftId;
15700
      private final String _fieldName;
15701
 
15702
      _Fields(short thriftId, String fieldName) {
15703
        _thriftId = thriftId;
15704
        _fieldName = fieldName;
15705
      }
15706
 
15707
      public short getThriftFieldId() {
15708
        return _thriftId;
15709
      }
15710
 
15711
      public String getFieldName() {
15712
        return _fieldName;
15713
      }
15714
    }
15715
 
15716
    // isset id assignments
15717
    private static final int __SUCCESS_ISSET_ID = 0;
15718
    private BitSet __isset_bit_vector = new BitSet(1);
15719
 
3430 rajveer 15720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 15721
    static {
3430 rajveer 15722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15723
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15725
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15726
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15727
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15728
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
2690 chandransh 15729
    }
15730
 
3010 chandransh 15731
    public capturePayment_result() {
2690 chandransh 15732
    }
15733
 
3010 chandransh 15734
    public capturePayment_result(
15735
      boolean success,
2690 chandransh 15736
      PaymentException pe)
15737
    {
15738
      this();
15739
      this.success = success;
15740
      setSuccessIsSet(true);
15741
      this.pe = pe;
15742
    }
15743
 
15744
    /**
15745
     * Performs a deep copy on <i>other</i>.
15746
     */
3010 chandransh 15747
    public capturePayment_result(capturePayment_result other) {
2690 chandransh 15748
      __isset_bit_vector.clear();
15749
      __isset_bit_vector.or(other.__isset_bit_vector);
15750
      this.success = other.success;
15751
      if (other.isSetPe()) {
15752
        this.pe = new PaymentException(other.pe);
15753
      }
15754
    }
15755
 
3010 chandransh 15756
    public capturePayment_result deepCopy() {
15757
      return new capturePayment_result(this);
2690 chandransh 15758
    }
15759
 
3430 rajveer 15760
    @Override
15761
    public void clear() {
15762
      setSuccessIsSet(false);
15763
      this.success = false;
15764
      this.pe = null;
2690 chandransh 15765
    }
15766
 
3010 chandransh 15767
    public boolean isSuccess() {
2690 chandransh 15768
      return this.success;
15769
    }
15770
 
3430 rajveer 15771
    public void setSuccess(boolean success) {
2690 chandransh 15772
      this.success = success;
15773
      setSuccessIsSet(true);
15774
    }
15775
 
15776
    public void unsetSuccess() {
15777
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15778
    }
15779
 
3430 rajveer 15780
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 15781
    public boolean isSetSuccess() {
15782
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15783
    }
15784
 
15785
    public void setSuccessIsSet(boolean value) {
15786
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15787
    }
15788
 
15789
    public PaymentException getPe() {
15790
      return this.pe;
15791
    }
15792
 
3430 rajveer 15793
    public void setPe(PaymentException pe) {
2690 chandransh 15794
      this.pe = pe;
15795
    }
15796
 
15797
    public void unsetPe() {
15798
      this.pe = null;
15799
    }
15800
 
3430 rajveer 15801
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2690 chandransh 15802
    public boolean isSetPe() {
15803
      return this.pe != null;
15804
    }
15805
 
15806
    public void setPeIsSet(boolean value) {
15807
      if (!value) {
15808
        this.pe = null;
15809
      }
15810
    }
15811
 
15812
    public void setFieldValue(_Fields field, Object value) {
15813
      switch (field) {
15814
      case SUCCESS:
15815
        if (value == null) {
15816
          unsetSuccess();
15817
        } else {
3010 chandransh 15818
          setSuccess((Boolean)value);
2690 chandransh 15819
        }
15820
        break;
15821
 
15822
      case PE:
15823
        if (value == null) {
15824
          unsetPe();
15825
        } else {
15826
          setPe((PaymentException)value);
15827
        }
15828
        break;
15829
 
15830
      }
15831
    }
15832
 
15833
    public Object getFieldValue(_Fields field) {
15834
      switch (field) {
15835
      case SUCCESS:
3430 rajveer 15836
        return Boolean.valueOf(isSuccess());
2690 chandransh 15837
 
15838
      case PE:
15839
        return getPe();
15840
 
15841
      }
15842
      throw new IllegalStateException();
15843
    }
15844
 
3430 rajveer 15845
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15846
    public boolean isSet(_Fields field) {
15847
      if (field == null) {
15848
        throw new IllegalArgumentException();
15849
      }
2690 chandransh 15850
 
15851
      switch (field) {
15852
      case SUCCESS:
15853
        return isSetSuccess();
15854
      case PE:
15855
        return isSetPe();
15856
      }
15857
      throw new IllegalStateException();
15858
    }
15859
 
15860
    @Override
15861
    public boolean equals(Object that) {
15862
      if (that == null)
15863
        return false;
3010 chandransh 15864
      if (that instanceof capturePayment_result)
15865
        return this.equals((capturePayment_result)that);
2690 chandransh 15866
      return false;
15867
    }
15868
 
3010 chandransh 15869
    public boolean equals(capturePayment_result that) {
2690 chandransh 15870
      if (that == null)
15871
        return false;
15872
 
15873
      boolean this_present_success = true;
15874
      boolean that_present_success = true;
15875
      if (this_present_success || that_present_success) {
15876
        if (!(this_present_success && that_present_success))
15877
          return false;
15878
        if (this.success != that.success)
15879
          return false;
15880
      }
15881
 
15882
      boolean this_present_pe = true && this.isSetPe();
15883
      boolean that_present_pe = true && that.isSetPe();
15884
      if (this_present_pe || that_present_pe) {
15885
        if (!(this_present_pe && that_present_pe))
15886
          return false;
15887
        if (!this.pe.equals(that.pe))
15888
          return false;
15889
      }
15890
 
15891
      return true;
15892
    }
15893
 
15894
    @Override
15895
    public int hashCode() {
15896
      return 0;
15897
    }
15898
 
3010 chandransh 15899
    public int compareTo(capturePayment_result other) {
2690 chandransh 15900
      if (!getClass().equals(other.getClass())) {
15901
        return getClass().getName().compareTo(other.getClass().getName());
15902
      }
15903
 
15904
      int lastComparison = 0;
3010 chandransh 15905
      capturePayment_result typedOther = (capturePayment_result)other;
2690 chandransh 15906
 
3430 rajveer 15907
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 15908
      if (lastComparison != 0) {
15909
        return lastComparison;
15910
      }
3430 rajveer 15911
      if (isSetSuccess()) {
15912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15913
        if (lastComparison != 0) {
15914
          return lastComparison;
15915
        }
2690 chandransh 15916
      }
3430 rajveer 15917
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2690 chandransh 15918
      if (lastComparison != 0) {
15919
        return lastComparison;
15920
      }
3430 rajveer 15921
      if (isSetPe()) {
15922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
15923
        if (lastComparison != 0) {
15924
          return lastComparison;
15925
        }
2690 chandransh 15926
      }
15927
      return 0;
15928
    }
15929
 
3430 rajveer 15930
    public _Fields fieldForId(int fieldId) {
15931
      return _Fields.findByThriftId(fieldId);
15932
    }
15933
 
15934
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15935
      org.apache.thrift.protocol.TField field;
2690 chandransh 15936
      iprot.readStructBegin();
15937
      while (true)
15938
      {
15939
        field = iprot.readFieldBegin();
3430 rajveer 15940
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 15941
          break;
15942
        }
3430 rajveer 15943
        switch (field.id) {
15944
          case 0: // SUCCESS
15945
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15946
              this.success = iprot.readBool();
15947
              setSuccessIsSet(true);
15948
            } else { 
15949
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15950
            }
15951
            break;
15952
          case 1: // PE
15953
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15954
              this.pe = new PaymentException();
15955
              this.pe.read(iprot);
15956
            } else { 
15957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15958
            }
15959
            break;
15960
          default:
15961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 15962
        }
3430 rajveer 15963
        iprot.readFieldEnd();
2690 chandransh 15964
      }
15965
      iprot.readStructEnd();
15966
      validate();
15967
    }
15968
 
3430 rajveer 15969
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 15970
      oprot.writeStructBegin(STRUCT_DESC);
15971
 
15972
      if (this.isSetSuccess()) {
15973
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 15974
        oprot.writeBool(this.success);
2690 chandransh 15975
        oprot.writeFieldEnd();
15976
      } else if (this.isSetPe()) {
15977
        oprot.writeFieldBegin(PE_FIELD_DESC);
15978
        this.pe.write(oprot);
15979
        oprot.writeFieldEnd();
15980
      }
15981
      oprot.writeFieldStop();
15982
      oprot.writeStructEnd();
15983
    }
15984
 
15985
    @Override
15986
    public String toString() {
3010 chandransh 15987
      StringBuilder sb = new StringBuilder("capturePayment_result(");
2690 chandransh 15988
      boolean first = true;
15989
 
15990
      sb.append("success:");
15991
      sb.append(this.success);
15992
      first = false;
15993
      if (!first) sb.append(", ");
15994
      sb.append("pe:");
15995
      if (this.pe == null) {
15996
        sb.append("null");
15997
      } else {
15998
        sb.append(this.pe);
15999
      }
16000
      first = false;
16001
      sb.append(")");
16002
      return sb.toString();
16003
    }
16004
 
3430 rajveer 16005
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 16006
      // check for required fields
16007
    }
16008
 
3430 rajveer 16009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16010
      try {
16011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16012
      } catch (org.apache.thrift.TException te) {
16013
        throw new java.io.IOException(te);
16014
      }
16015
    }
16016
 
16017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16018
      try {
16019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16020
      } catch (org.apache.thrift.TException te) {
16021
        throw new java.io.IOException(te);
16022
      }
16023
    }
16024
 
2690 chandransh 16025
  }
16026
 
6486 rajveer 16027
  public static class refundPayment_args implements org.apache.thrift.TBase<refundPayment_args, refundPayment_args._Fields>, java.io.Serializable, Cloneable   {
16028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundPayment_args");
16029
 
16030
    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);
16031
    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);
16032
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)3);
16033
 
16034
    private long merchantTxnId; // required
16035
    private double amount; // required
16036
    private boolean isDigital; // required
16037
 
16038
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16039
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16040
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
16041
      AMOUNT((short)2, "amount"),
16042
      IS_DIGITAL((short)3, "isDigital");
16043
 
16044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16045
 
16046
      static {
16047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16048
          byName.put(field.getFieldName(), field);
16049
        }
16050
      }
16051
 
16052
      /**
16053
       * Find the _Fields constant that matches fieldId, or null if its not found.
16054
       */
16055
      public static _Fields findByThriftId(int fieldId) {
16056
        switch(fieldId) {
16057
          case 1: // MERCHANT_TXN_ID
16058
            return MERCHANT_TXN_ID;
16059
          case 2: // AMOUNT
16060
            return AMOUNT;
16061
          case 3: // IS_DIGITAL
16062
            return IS_DIGITAL;
16063
          default:
16064
            return null;
16065
        }
16066
      }
16067
 
16068
      /**
16069
       * Find the _Fields constant that matches fieldId, throwing an exception
16070
       * if it is not found.
16071
       */
16072
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16073
        _Fields fields = findByThriftId(fieldId);
16074
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16075
        return fields;
16076
      }
16077
 
16078
      /**
16079
       * Find the _Fields constant that matches name, or null if its not found.
16080
       */
16081
      public static _Fields findByName(String name) {
16082
        return byName.get(name);
16083
      }
16084
 
16085
      private final short _thriftId;
16086
      private final String _fieldName;
16087
 
16088
      _Fields(short thriftId, String fieldName) {
16089
        _thriftId = thriftId;
16090
        _fieldName = fieldName;
16091
      }
16092
 
16093
      public short getThriftFieldId() {
16094
        return _thriftId;
16095
      }
16096
 
16097
      public String getFieldName() {
16098
        return _fieldName;
16099
      }
16100
    }
16101
 
16102
    // isset id assignments
16103
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
16104
    private static final int __AMOUNT_ISSET_ID = 1;
16105
    private static final int __ISDIGITAL_ISSET_ID = 2;
16106
    private BitSet __isset_bit_vector = new BitSet(3);
16107
 
16108
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16109
    static {
16110
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16111
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16113
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
16115
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16116
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16117
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16118
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundPayment_args.class, metaDataMap);
16119
    }
16120
 
16121
    public refundPayment_args() {
16122
    }
16123
 
16124
    public refundPayment_args(
16125
      long merchantTxnId,
16126
      double amount,
16127
      boolean isDigital)
16128
    {
16129
      this();
16130
      this.merchantTxnId = merchantTxnId;
16131
      setMerchantTxnIdIsSet(true);
16132
      this.amount = amount;
16133
      setAmountIsSet(true);
16134
      this.isDigital = isDigital;
16135
      setIsDigitalIsSet(true);
16136
    }
16137
 
16138
    /**
16139
     * Performs a deep copy on <i>other</i>.
16140
     */
16141
    public refundPayment_args(refundPayment_args other) {
16142
      __isset_bit_vector.clear();
16143
      __isset_bit_vector.or(other.__isset_bit_vector);
16144
      this.merchantTxnId = other.merchantTxnId;
16145
      this.amount = other.amount;
16146
      this.isDigital = other.isDigital;
16147
    }
16148
 
16149
    public refundPayment_args deepCopy() {
16150
      return new refundPayment_args(this);
16151
    }
16152
 
16153
    @Override
16154
    public void clear() {
16155
      setMerchantTxnIdIsSet(false);
16156
      this.merchantTxnId = 0;
16157
      setAmountIsSet(false);
16158
      this.amount = 0.0;
16159
      setIsDigitalIsSet(false);
16160
      this.isDigital = false;
16161
    }
16162
 
16163
    public long getMerchantTxnId() {
16164
      return this.merchantTxnId;
16165
    }
16166
 
16167
    public void setMerchantTxnId(long merchantTxnId) {
16168
      this.merchantTxnId = merchantTxnId;
16169
      setMerchantTxnIdIsSet(true);
16170
    }
16171
 
16172
    public void unsetMerchantTxnId() {
16173
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
16174
    }
16175
 
16176
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
16177
    public boolean isSetMerchantTxnId() {
16178
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
16179
    }
16180
 
16181
    public void setMerchantTxnIdIsSet(boolean value) {
16182
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
16183
    }
16184
 
16185
    public double getAmount() {
16186
      return this.amount;
16187
    }
16188
 
16189
    public void setAmount(double amount) {
16190
      this.amount = amount;
16191
      setAmountIsSet(true);
16192
    }
16193
 
16194
    public void unsetAmount() {
16195
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
16196
    }
16197
 
16198
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
16199
    public boolean isSetAmount() {
16200
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
16201
    }
16202
 
16203
    public void setAmountIsSet(boolean value) {
16204
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
16205
    }
16206
 
16207
    public boolean isIsDigital() {
16208
      return this.isDigital;
16209
    }
16210
 
16211
    public void setIsDigital(boolean isDigital) {
16212
      this.isDigital = isDigital;
16213
      setIsDigitalIsSet(true);
16214
    }
16215
 
16216
    public void unsetIsDigital() {
16217
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
16218
    }
16219
 
16220
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
16221
    public boolean isSetIsDigital() {
16222
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
16223
    }
16224
 
16225
    public void setIsDigitalIsSet(boolean value) {
16226
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
16227
    }
16228
 
16229
    public void setFieldValue(_Fields field, Object value) {
16230
      switch (field) {
16231
      case MERCHANT_TXN_ID:
16232
        if (value == null) {
16233
          unsetMerchantTxnId();
16234
        } else {
16235
          setMerchantTxnId((Long)value);
16236
        }
16237
        break;
16238
 
16239
      case AMOUNT:
16240
        if (value == null) {
16241
          unsetAmount();
16242
        } else {
16243
          setAmount((Double)value);
16244
        }
16245
        break;
16246
 
16247
      case IS_DIGITAL:
16248
        if (value == null) {
16249
          unsetIsDigital();
16250
        } else {
16251
          setIsDigital((Boolean)value);
16252
        }
16253
        break;
16254
 
16255
      }
16256
    }
16257
 
16258
    public Object getFieldValue(_Fields field) {
16259
      switch (field) {
16260
      case MERCHANT_TXN_ID:
16261
        return Long.valueOf(getMerchantTxnId());
16262
 
16263
      case AMOUNT:
16264
        return Double.valueOf(getAmount());
16265
 
16266
      case IS_DIGITAL:
16267
        return Boolean.valueOf(isIsDigital());
16268
 
16269
      }
16270
      throw new IllegalStateException();
16271
    }
16272
 
16273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16274
    public boolean isSet(_Fields field) {
16275
      if (field == null) {
16276
        throw new IllegalArgumentException();
16277
      }
16278
 
16279
      switch (field) {
16280
      case MERCHANT_TXN_ID:
16281
        return isSetMerchantTxnId();
16282
      case AMOUNT:
16283
        return isSetAmount();
16284
      case IS_DIGITAL:
16285
        return isSetIsDigital();
16286
      }
16287
      throw new IllegalStateException();
16288
    }
16289
 
16290
    @Override
16291
    public boolean equals(Object that) {
16292
      if (that == null)
16293
        return false;
16294
      if (that instanceof refundPayment_args)
16295
        return this.equals((refundPayment_args)that);
16296
      return false;
16297
    }
16298
 
16299
    public boolean equals(refundPayment_args that) {
16300
      if (that == null)
16301
        return false;
16302
 
16303
      boolean this_present_merchantTxnId = true;
16304
      boolean that_present_merchantTxnId = true;
16305
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
16306
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
16307
          return false;
16308
        if (this.merchantTxnId != that.merchantTxnId)
16309
          return false;
16310
      }
16311
 
16312
      boolean this_present_amount = true;
16313
      boolean that_present_amount = true;
16314
      if (this_present_amount || that_present_amount) {
16315
        if (!(this_present_amount && that_present_amount))
16316
          return false;
16317
        if (this.amount != that.amount)
16318
          return false;
16319
      }
16320
 
16321
      boolean this_present_isDigital = true;
16322
      boolean that_present_isDigital = true;
16323
      if (this_present_isDigital || that_present_isDigital) {
16324
        if (!(this_present_isDigital && that_present_isDigital))
16325
          return false;
16326
        if (this.isDigital != that.isDigital)
16327
          return false;
16328
      }
16329
 
16330
      return true;
16331
    }
16332
 
16333
    @Override
16334
    public int hashCode() {
16335
      return 0;
16336
    }
16337
 
16338
    public int compareTo(refundPayment_args other) {
16339
      if (!getClass().equals(other.getClass())) {
16340
        return getClass().getName().compareTo(other.getClass().getName());
16341
      }
16342
 
16343
      int lastComparison = 0;
16344
      refundPayment_args typedOther = (refundPayment_args)other;
16345
 
16346
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
16347
      if (lastComparison != 0) {
16348
        return lastComparison;
16349
      }
16350
      if (isSetMerchantTxnId()) {
16351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
16352
        if (lastComparison != 0) {
16353
          return lastComparison;
16354
        }
16355
      }
16356
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
16357
      if (lastComparison != 0) {
16358
        return lastComparison;
16359
      }
16360
      if (isSetAmount()) {
16361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
16362
        if (lastComparison != 0) {
16363
          return lastComparison;
16364
        }
16365
      }
16366
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
16367
      if (lastComparison != 0) {
16368
        return lastComparison;
16369
      }
16370
      if (isSetIsDigital()) {
16371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
16372
        if (lastComparison != 0) {
16373
          return lastComparison;
16374
        }
16375
      }
16376
      return 0;
16377
    }
16378
 
16379
    public _Fields fieldForId(int fieldId) {
16380
      return _Fields.findByThriftId(fieldId);
16381
    }
16382
 
16383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16384
      org.apache.thrift.protocol.TField field;
16385
      iprot.readStructBegin();
16386
      while (true)
16387
      {
16388
        field = iprot.readFieldBegin();
16389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16390
          break;
16391
        }
16392
        switch (field.id) {
16393
          case 1: // MERCHANT_TXN_ID
16394
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16395
              this.merchantTxnId = iprot.readI64();
16396
              setMerchantTxnIdIsSet(true);
16397
            } else { 
16398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16399
            }
16400
            break;
16401
          case 2: // AMOUNT
16402
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
16403
              this.amount = iprot.readDouble();
16404
              setAmountIsSet(true);
16405
            } else { 
16406
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16407
            }
16408
            break;
16409
          case 3: // IS_DIGITAL
16410
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16411
              this.isDigital = iprot.readBool();
16412
              setIsDigitalIsSet(true);
16413
            } else { 
16414
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16415
            }
16416
            break;
16417
          default:
16418
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16419
        }
16420
        iprot.readFieldEnd();
16421
      }
16422
      iprot.readStructEnd();
16423
      validate();
16424
    }
16425
 
16426
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16427
      validate();
16428
 
16429
      oprot.writeStructBegin(STRUCT_DESC);
16430
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
16431
      oprot.writeI64(this.merchantTxnId);
16432
      oprot.writeFieldEnd();
16433
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
16434
      oprot.writeDouble(this.amount);
16435
      oprot.writeFieldEnd();
16436
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
16437
      oprot.writeBool(this.isDigital);
16438
      oprot.writeFieldEnd();
16439
      oprot.writeFieldStop();
16440
      oprot.writeStructEnd();
16441
    }
16442
 
16443
    @Override
16444
    public String toString() {
16445
      StringBuilder sb = new StringBuilder("refundPayment_args(");
16446
      boolean first = true;
16447
 
16448
      sb.append("merchantTxnId:");
16449
      sb.append(this.merchantTxnId);
16450
      first = false;
16451
      if (!first) sb.append(", ");
16452
      sb.append("amount:");
16453
      sb.append(this.amount);
16454
      first = false;
16455
      if (!first) sb.append(", ");
16456
      sb.append("isDigital:");
16457
      sb.append(this.isDigital);
16458
      first = false;
16459
      sb.append(")");
16460
      return sb.toString();
16461
    }
16462
 
16463
    public void validate() throws org.apache.thrift.TException {
16464
      // check for required fields
16465
    }
16466
 
16467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16468
      try {
16469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16470
      } catch (org.apache.thrift.TException te) {
16471
        throw new java.io.IOException(te);
16472
      }
16473
    }
16474
 
16475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16476
      try {
16477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16478
      } catch (org.apache.thrift.TException te) {
16479
        throw new java.io.IOException(te);
16480
      }
16481
    }
16482
 
16483
  }
16484
 
16485
  public static class refundPayment_result implements org.apache.thrift.TBase<refundPayment_result, refundPayment_result._Fields>, java.io.Serializable, Cloneable   {
16486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundPayment_result");
16487
 
16488
    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);
16489
    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);
16490
 
16491
    private boolean success; // required
16492
    private PaymentException pe; // required
16493
 
16494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16496
      SUCCESS((short)0, "success"),
16497
      PE((short)1, "pe");
16498
 
16499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16500
 
16501
      static {
16502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16503
          byName.put(field.getFieldName(), field);
16504
        }
16505
      }
16506
 
16507
      /**
16508
       * Find the _Fields constant that matches fieldId, or null if its not found.
16509
       */
16510
      public static _Fields findByThriftId(int fieldId) {
16511
        switch(fieldId) {
16512
          case 0: // SUCCESS
16513
            return SUCCESS;
16514
          case 1: // PE
16515
            return PE;
16516
          default:
16517
            return null;
16518
        }
16519
      }
16520
 
16521
      /**
16522
       * Find the _Fields constant that matches fieldId, throwing an exception
16523
       * if it is not found.
16524
       */
16525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16526
        _Fields fields = findByThriftId(fieldId);
16527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16528
        return fields;
16529
      }
16530
 
16531
      /**
16532
       * Find the _Fields constant that matches name, or null if its not found.
16533
       */
16534
      public static _Fields findByName(String name) {
16535
        return byName.get(name);
16536
      }
16537
 
16538
      private final short _thriftId;
16539
      private final String _fieldName;
16540
 
16541
      _Fields(short thriftId, String fieldName) {
16542
        _thriftId = thriftId;
16543
        _fieldName = fieldName;
16544
      }
16545
 
16546
      public short getThriftFieldId() {
16547
        return _thriftId;
16548
      }
16549
 
16550
      public String getFieldName() {
16551
        return _fieldName;
16552
      }
16553
    }
16554
 
16555
    // isset id assignments
16556
    private static final int __SUCCESS_ISSET_ID = 0;
16557
    private BitSet __isset_bit_vector = new BitSet(1);
16558
 
16559
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16560
    static {
16561
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16562
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16564
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16566
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16567
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundPayment_result.class, metaDataMap);
16568
    }
16569
 
16570
    public refundPayment_result() {
16571
    }
16572
 
16573
    public refundPayment_result(
16574
      boolean success,
16575
      PaymentException pe)
16576
    {
16577
      this();
16578
      this.success = success;
16579
      setSuccessIsSet(true);
16580
      this.pe = pe;
16581
    }
16582
 
16583
    /**
16584
     * Performs a deep copy on <i>other</i>.
16585
     */
16586
    public refundPayment_result(refundPayment_result other) {
16587
      __isset_bit_vector.clear();
16588
      __isset_bit_vector.or(other.__isset_bit_vector);
16589
      this.success = other.success;
16590
      if (other.isSetPe()) {
16591
        this.pe = new PaymentException(other.pe);
16592
      }
16593
    }
16594
 
16595
    public refundPayment_result deepCopy() {
16596
      return new refundPayment_result(this);
16597
    }
16598
 
16599
    @Override
16600
    public void clear() {
16601
      setSuccessIsSet(false);
16602
      this.success = false;
16603
      this.pe = null;
16604
    }
16605
 
16606
    public boolean isSuccess() {
16607
      return this.success;
16608
    }
16609
 
16610
    public void setSuccess(boolean success) {
16611
      this.success = success;
16612
      setSuccessIsSet(true);
16613
    }
16614
 
16615
    public void unsetSuccess() {
16616
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16617
    }
16618
 
16619
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16620
    public boolean isSetSuccess() {
16621
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16622
    }
16623
 
16624
    public void setSuccessIsSet(boolean value) {
16625
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16626
    }
16627
 
16628
    public PaymentException getPe() {
16629
      return this.pe;
16630
    }
16631
 
16632
    public void setPe(PaymentException pe) {
16633
      this.pe = pe;
16634
    }
16635
 
16636
    public void unsetPe() {
16637
      this.pe = null;
16638
    }
16639
 
16640
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
16641
    public boolean isSetPe() {
16642
      return this.pe != null;
16643
    }
16644
 
16645
    public void setPeIsSet(boolean value) {
16646
      if (!value) {
16647
        this.pe = null;
16648
      }
16649
    }
16650
 
16651
    public void setFieldValue(_Fields field, Object value) {
16652
      switch (field) {
16653
      case SUCCESS:
16654
        if (value == null) {
16655
          unsetSuccess();
16656
        } else {
16657
          setSuccess((Boolean)value);
16658
        }
16659
        break;
16660
 
16661
      case PE:
16662
        if (value == null) {
16663
          unsetPe();
16664
        } else {
16665
          setPe((PaymentException)value);
16666
        }
16667
        break;
16668
 
16669
      }
16670
    }
16671
 
16672
    public Object getFieldValue(_Fields field) {
16673
      switch (field) {
16674
      case SUCCESS:
16675
        return Boolean.valueOf(isSuccess());
16676
 
16677
      case PE:
16678
        return getPe();
16679
 
16680
      }
16681
      throw new IllegalStateException();
16682
    }
16683
 
16684
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16685
    public boolean isSet(_Fields field) {
16686
      if (field == null) {
16687
        throw new IllegalArgumentException();
16688
      }
16689
 
16690
      switch (field) {
16691
      case SUCCESS:
16692
        return isSetSuccess();
16693
      case PE:
16694
        return isSetPe();
16695
      }
16696
      throw new IllegalStateException();
16697
    }
16698
 
16699
    @Override
16700
    public boolean equals(Object that) {
16701
      if (that == null)
16702
        return false;
16703
      if (that instanceof refundPayment_result)
16704
        return this.equals((refundPayment_result)that);
16705
      return false;
16706
    }
16707
 
16708
    public boolean equals(refundPayment_result that) {
16709
      if (that == null)
16710
        return false;
16711
 
16712
      boolean this_present_success = true;
16713
      boolean that_present_success = true;
16714
      if (this_present_success || that_present_success) {
16715
        if (!(this_present_success && that_present_success))
16716
          return false;
16717
        if (this.success != that.success)
16718
          return false;
16719
      }
16720
 
16721
      boolean this_present_pe = true && this.isSetPe();
16722
      boolean that_present_pe = true && that.isSetPe();
16723
      if (this_present_pe || that_present_pe) {
16724
        if (!(this_present_pe && that_present_pe))
16725
          return false;
16726
        if (!this.pe.equals(that.pe))
16727
          return false;
16728
      }
16729
 
16730
      return true;
16731
    }
16732
 
16733
    @Override
16734
    public int hashCode() {
16735
      return 0;
16736
    }
16737
 
16738
    public int compareTo(refundPayment_result other) {
16739
      if (!getClass().equals(other.getClass())) {
16740
        return getClass().getName().compareTo(other.getClass().getName());
16741
      }
16742
 
16743
      int lastComparison = 0;
16744
      refundPayment_result typedOther = (refundPayment_result)other;
16745
 
16746
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16747
      if (lastComparison != 0) {
16748
        return lastComparison;
16749
      }
16750
      if (isSetSuccess()) {
16751
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16752
        if (lastComparison != 0) {
16753
          return lastComparison;
16754
        }
16755
      }
16756
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
16757
      if (lastComparison != 0) {
16758
        return lastComparison;
16759
      }
16760
      if (isSetPe()) {
16761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
16762
        if (lastComparison != 0) {
16763
          return lastComparison;
16764
        }
16765
      }
16766
      return 0;
16767
    }
16768
 
16769
    public _Fields fieldForId(int fieldId) {
16770
      return _Fields.findByThriftId(fieldId);
16771
    }
16772
 
16773
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16774
      org.apache.thrift.protocol.TField field;
16775
      iprot.readStructBegin();
16776
      while (true)
16777
      {
16778
        field = iprot.readFieldBegin();
16779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16780
          break;
16781
        }
16782
        switch (field.id) {
16783
          case 0: // SUCCESS
16784
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16785
              this.success = iprot.readBool();
16786
              setSuccessIsSet(true);
16787
            } else { 
16788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16789
            }
16790
            break;
16791
          case 1: // PE
16792
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16793
              this.pe = new PaymentException();
16794
              this.pe.read(iprot);
16795
            } else { 
16796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16797
            }
16798
            break;
16799
          default:
16800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16801
        }
16802
        iprot.readFieldEnd();
16803
      }
16804
      iprot.readStructEnd();
16805
      validate();
16806
    }
16807
 
16808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16809
      oprot.writeStructBegin(STRUCT_DESC);
16810
 
16811
      if (this.isSetSuccess()) {
16812
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16813
        oprot.writeBool(this.success);
16814
        oprot.writeFieldEnd();
16815
      } else if (this.isSetPe()) {
16816
        oprot.writeFieldBegin(PE_FIELD_DESC);
16817
        this.pe.write(oprot);
16818
        oprot.writeFieldEnd();
16819
      }
16820
      oprot.writeFieldStop();
16821
      oprot.writeStructEnd();
16822
    }
16823
 
16824
    @Override
16825
    public String toString() {
16826
      StringBuilder sb = new StringBuilder("refundPayment_result(");
16827
      boolean first = true;
16828
 
16829
      sb.append("success:");
16830
      sb.append(this.success);
16831
      first = false;
16832
      if (!first) sb.append(", ");
16833
      sb.append("pe:");
16834
      if (this.pe == null) {
16835
        sb.append("null");
16836
      } else {
16837
        sb.append(this.pe);
16838
      }
16839
      first = false;
16840
      sb.append(")");
16841
      return sb.toString();
16842
    }
16843
 
16844
    public void validate() throws org.apache.thrift.TException {
16845
      // check for required fields
16846
    }
16847
 
16848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16849
      try {
16850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16851
      } catch (org.apache.thrift.TException te) {
16852
        throw new java.io.IOException(te);
16853
      }
16854
    }
16855
 
16856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16857
      try {
16858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16859
      } catch (org.apache.thrift.TException te) {
16860
        throw new java.io.IOException(te);
16861
      }
16862
    }
16863
 
16864
  }
16865
 
3956 chandransh 16866
  public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable   {
16867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
16868
 
16869
    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);
16870
    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);
16871
    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);
16872
    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);
16873
    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);
16874
 
16875
    private long merchantTxnId; // required
16876
    private double amount; // required
16877
    private String xferBy; // required
16878
    private String xferTxnId; // required
16879
    private long xferDate; // required
16880
 
16881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16883
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
16884
      AMOUNT((short)2, "amount"),
16885
      XFER_BY((short)3, "xferBy"),
16886
      XFER_TXN_ID((short)4, "xferTxnId"),
16887
      XFER_DATE((short)5, "xferDate");
16888
 
16889
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16890
 
16891
      static {
16892
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16893
          byName.put(field.getFieldName(), field);
16894
        }
16895
      }
16896
 
16897
      /**
16898
       * Find the _Fields constant that matches fieldId, or null if its not found.
16899
       */
16900
      public static _Fields findByThriftId(int fieldId) {
16901
        switch(fieldId) {
16902
          case 1: // MERCHANT_TXN_ID
16903
            return MERCHANT_TXN_ID;
16904
          case 2: // AMOUNT
16905
            return AMOUNT;
16906
          case 3: // XFER_BY
16907
            return XFER_BY;
16908
          case 4: // XFER_TXN_ID
16909
            return XFER_TXN_ID;
16910
          case 5: // XFER_DATE
16911
            return XFER_DATE;
16912
          default:
16913
            return null;
16914
        }
16915
      }
16916
 
16917
      /**
16918
       * Find the _Fields constant that matches fieldId, throwing an exception
16919
       * if it is not found.
16920
       */
16921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16922
        _Fields fields = findByThriftId(fieldId);
16923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16924
        return fields;
16925
      }
16926
 
16927
      /**
16928
       * Find the _Fields constant that matches name, or null if its not found.
16929
       */
16930
      public static _Fields findByName(String name) {
16931
        return byName.get(name);
16932
      }
16933
 
16934
      private final short _thriftId;
16935
      private final String _fieldName;
16936
 
16937
      _Fields(short thriftId, String fieldName) {
16938
        _thriftId = thriftId;
16939
        _fieldName = fieldName;
16940
      }
16941
 
16942
      public short getThriftFieldId() {
16943
        return _thriftId;
16944
      }
16945
 
16946
      public String getFieldName() {
16947
        return _fieldName;
16948
      }
16949
    }
16950
 
16951
    // isset id assignments
16952
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
16953
    private static final int __AMOUNT_ISSET_ID = 1;
16954
    private static final int __XFERDATE_ISSET_ID = 2;
16955
    private BitSet __isset_bit_vector = new BitSet(3);
16956
 
16957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16958
    static {
16959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16960
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16962
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16963
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
16964
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16965
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16966
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16967
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16968
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
16972
    }
16973
 
16974
    public partiallyCapturePayment_args() {
16975
    }
16976
 
16977
    public partiallyCapturePayment_args(
16978
      long merchantTxnId,
16979
      double amount,
16980
      String xferBy,
16981
      String xferTxnId,
16982
      long xferDate)
16983
    {
16984
      this();
16985
      this.merchantTxnId = merchantTxnId;
16986
      setMerchantTxnIdIsSet(true);
16987
      this.amount = amount;
16988
      setAmountIsSet(true);
16989
      this.xferBy = xferBy;
16990
      this.xferTxnId = xferTxnId;
16991
      this.xferDate = xferDate;
16992
      setXferDateIsSet(true);
16993
    }
16994
 
16995
    /**
16996
     * Performs a deep copy on <i>other</i>.
16997
     */
16998
    public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
16999
      __isset_bit_vector.clear();
17000
      __isset_bit_vector.or(other.__isset_bit_vector);
17001
      this.merchantTxnId = other.merchantTxnId;
17002
      this.amount = other.amount;
17003
      if (other.isSetXferBy()) {
17004
        this.xferBy = other.xferBy;
17005
      }
17006
      if (other.isSetXferTxnId()) {
17007
        this.xferTxnId = other.xferTxnId;
17008
      }
17009
      this.xferDate = other.xferDate;
17010
    }
17011
 
17012
    public partiallyCapturePayment_args deepCopy() {
17013
      return new partiallyCapturePayment_args(this);
17014
    }
17015
 
17016
    @Override
17017
    public void clear() {
17018
      setMerchantTxnIdIsSet(false);
17019
      this.merchantTxnId = 0;
17020
      setAmountIsSet(false);
17021
      this.amount = 0.0;
17022
      this.xferBy = null;
17023
      this.xferTxnId = null;
17024
      setXferDateIsSet(false);
17025
      this.xferDate = 0;
17026
    }
17027
 
17028
    public long getMerchantTxnId() {
17029
      return this.merchantTxnId;
17030
    }
17031
 
17032
    public void setMerchantTxnId(long merchantTxnId) {
17033
      this.merchantTxnId = merchantTxnId;
17034
      setMerchantTxnIdIsSet(true);
17035
    }
17036
 
17037
    public void unsetMerchantTxnId() {
17038
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
17039
    }
17040
 
17041
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
17042
    public boolean isSetMerchantTxnId() {
17043
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
17044
    }
17045
 
17046
    public void setMerchantTxnIdIsSet(boolean value) {
17047
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
17048
    }
17049
 
17050
    public double getAmount() {
17051
      return this.amount;
17052
    }
17053
 
17054
    public void setAmount(double amount) {
17055
      this.amount = amount;
17056
      setAmountIsSet(true);
17057
    }
17058
 
17059
    public void unsetAmount() {
17060
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
17061
    }
17062
 
17063
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
17064
    public boolean isSetAmount() {
17065
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
17066
    }
17067
 
17068
    public void setAmountIsSet(boolean value) {
17069
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
17070
    }
17071
 
17072
    public String getXferBy() {
17073
      return this.xferBy;
17074
    }
17075
 
17076
    public void setXferBy(String xferBy) {
17077
      this.xferBy = xferBy;
17078
    }
17079
 
17080
    public void unsetXferBy() {
17081
      this.xferBy = null;
17082
    }
17083
 
17084
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
17085
    public boolean isSetXferBy() {
17086
      return this.xferBy != null;
17087
    }
17088
 
17089
    public void setXferByIsSet(boolean value) {
17090
      if (!value) {
17091
        this.xferBy = null;
17092
      }
17093
    }
17094
 
17095
    public String getXferTxnId() {
17096
      return this.xferTxnId;
17097
    }
17098
 
17099
    public void setXferTxnId(String xferTxnId) {
17100
      this.xferTxnId = xferTxnId;
17101
    }
17102
 
17103
    public void unsetXferTxnId() {
17104
      this.xferTxnId = null;
17105
    }
17106
 
17107
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
17108
    public boolean isSetXferTxnId() {
17109
      return this.xferTxnId != null;
17110
    }
17111
 
17112
    public void setXferTxnIdIsSet(boolean value) {
17113
      if (!value) {
17114
        this.xferTxnId = null;
17115
      }
17116
    }
17117
 
17118
    public long getXferDate() {
17119
      return this.xferDate;
17120
    }
17121
 
17122
    public void setXferDate(long xferDate) {
17123
      this.xferDate = xferDate;
17124
      setXferDateIsSet(true);
17125
    }
17126
 
17127
    public void unsetXferDate() {
17128
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
17129
    }
17130
 
17131
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
17132
    public boolean isSetXferDate() {
17133
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
17134
    }
17135
 
17136
    public void setXferDateIsSet(boolean value) {
17137
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
17138
    }
17139
 
17140
    public void setFieldValue(_Fields field, Object value) {
17141
      switch (field) {
17142
      case MERCHANT_TXN_ID:
17143
        if (value == null) {
17144
          unsetMerchantTxnId();
17145
        } else {
17146
          setMerchantTxnId((Long)value);
17147
        }
17148
        break;
17149
 
17150
      case AMOUNT:
17151
        if (value == null) {
17152
          unsetAmount();
17153
        } else {
17154
          setAmount((Double)value);
17155
        }
17156
        break;
17157
 
17158
      case XFER_BY:
17159
        if (value == null) {
17160
          unsetXferBy();
17161
        } else {
17162
          setXferBy((String)value);
17163
        }
17164
        break;
17165
 
17166
      case XFER_TXN_ID:
17167
        if (value == null) {
17168
          unsetXferTxnId();
17169
        } else {
17170
          setXferTxnId((String)value);
17171
        }
17172
        break;
17173
 
17174
      case XFER_DATE:
17175
        if (value == null) {
17176
          unsetXferDate();
17177
        } else {
17178
          setXferDate((Long)value);
17179
        }
17180
        break;
17181
 
17182
      }
17183
    }
17184
 
17185
    public Object getFieldValue(_Fields field) {
17186
      switch (field) {
17187
      case MERCHANT_TXN_ID:
17188
        return Long.valueOf(getMerchantTxnId());
17189
 
17190
      case AMOUNT:
17191
        return Double.valueOf(getAmount());
17192
 
17193
      case XFER_BY:
17194
        return getXferBy();
17195
 
17196
      case XFER_TXN_ID:
17197
        return getXferTxnId();
17198
 
17199
      case XFER_DATE:
17200
        return Long.valueOf(getXferDate());
17201
 
17202
      }
17203
      throw new IllegalStateException();
17204
    }
17205
 
17206
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17207
    public boolean isSet(_Fields field) {
17208
      if (field == null) {
17209
        throw new IllegalArgumentException();
17210
      }
17211
 
17212
      switch (field) {
17213
      case MERCHANT_TXN_ID:
17214
        return isSetMerchantTxnId();
17215
      case AMOUNT:
17216
        return isSetAmount();
17217
      case XFER_BY:
17218
        return isSetXferBy();
17219
      case XFER_TXN_ID:
17220
        return isSetXferTxnId();
17221
      case XFER_DATE:
17222
        return isSetXferDate();
17223
      }
17224
      throw new IllegalStateException();
17225
    }
17226
 
17227
    @Override
17228
    public boolean equals(Object that) {
17229
      if (that == null)
17230
        return false;
17231
      if (that instanceof partiallyCapturePayment_args)
17232
        return this.equals((partiallyCapturePayment_args)that);
17233
      return false;
17234
    }
17235
 
17236
    public boolean equals(partiallyCapturePayment_args that) {
17237
      if (that == null)
17238
        return false;
17239
 
17240
      boolean this_present_merchantTxnId = true;
17241
      boolean that_present_merchantTxnId = true;
17242
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
17243
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
17244
          return false;
17245
        if (this.merchantTxnId != that.merchantTxnId)
17246
          return false;
17247
      }
17248
 
17249
      boolean this_present_amount = true;
17250
      boolean that_present_amount = true;
17251
      if (this_present_amount || that_present_amount) {
17252
        if (!(this_present_amount && that_present_amount))
17253
          return false;
17254
        if (this.amount != that.amount)
17255
          return false;
17256
      }
17257
 
17258
      boolean this_present_xferBy = true && this.isSetXferBy();
17259
      boolean that_present_xferBy = true && that.isSetXferBy();
17260
      if (this_present_xferBy || that_present_xferBy) {
17261
        if (!(this_present_xferBy && that_present_xferBy))
17262
          return false;
17263
        if (!this.xferBy.equals(that.xferBy))
17264
          return false;
17265
      }
17266
 
17267
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
17268
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
17269
      if (this_present_xferTxnId || that_present_xferTxnId) {
17270
        if (!(this_present_xferTxnId && that_present_xferTxnId))
17271
          return false;
17272
        if (!this.xferTxnId.equals(that.xferTxnId))
17273
          return false;
17274
      }
17275
 
17276
      boolean this_present_xferDate = true;
17277
      boolean that_present_xferDate = true;
17278
      if (this_present_xferDate || that_present_xferDate) {
17279
        if (!(this_present_xferDate && that_present_xferDate))
17280
          return false;
17281
        if (this.xferDate != that.xferDate)
17282
          return false;
17283
      }
17284
 
17285
      return true;
17286
    }
17287
 
17288
    @Override
17289
    public int hashCode() {
17290
      return 0;
17291
    }
17292
 
17293
    public int compareTo(partiallyCapturePayment_args other) {
17294
      if (!getClass().equals(other.getClass())) {
17295
        return getClass().getName().compareTo(other.getClass().getName());
17296
      }
17297
 
17298
      int lastComparison = 0;
17299
      partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
17300
 
17301
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
17302
      if (lastComparison != 0) {
17303
        return lastComparison;
17304
      }
17305
      if (isSetMerchantTxnId()) {
17306
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
17307
        if (lastComparison != 0) {
17308
          return lastComparison;
17309
        }
17310
      }
17311
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
17312
      if (lastComparison != 0) {
17313
        return lastComparison;
17314
      }
17315
      if (isSetAmount()) {
17316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
17317
        if (lastComparison != 0) {
17318
          return lastComparison;
17319
        }
17320
      }
17321
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
17322
      if (lastComparison != 0) {
17323
        return lastComparison;
17324
      }
17325
      if (isSetXferBy()) {
17326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
17327
        if (lastComparison != 0) {
17328
          return lastComparison;
17329
        }
17330
      }
17331
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
17332
      if (lastComparison != 0) {
17333
        return lastComparison;
17334
      }
17335
      if (isSetXferTxnId()) {
17336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
17337
        if (lastComparison != 0) {
17338
          return lastComparison;
17339
        }
17340
      }
17341
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
17342
      if (lastComparison != 0) {
17343
        return lastComparison;
17344
      }
17345
      if (isSetXferDate()) {
17346
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
17347
        if (lastComparison != 0) {
17348
          return lastComparison;
17349
        }
17350
      }
17351
      return 0;
17352
    }
17353
 
17354
    public _Fields fieldForId(int fieldId) {
17355
      return _Fields.findByThriftId(fieldId);
17356
    }
17357
 
17358
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17359
      org.apache.thrift.protocol.TField field;
17360
      iprot.readStructBegin();
17361
      while (true)
17362
      {
17363
        field = iprot.readFieldBegin();
17364
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17365
          break;
17366
        }
17367
        switch (field.id) {
17368
          case 1: // MERCHANT_TXN_ID
17369
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17370
              this.merchantTxnId = iprot.readI64();
17371
              setMerchantTxnIdIsSet(true);
17372
            } else { 
17373
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17374
            }
17375
            break;
17376
          case 2: // AMOUNT
17377
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
17378
              this.amount = iprot.readDouble();
17379
              setAmountIsSet(true);
17380
            } else { 
17381
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17382
            }
17383
            break;
17384
          case 3: // XFER_BY
17385
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17386
              this.xferBy = iprot.readString();
17387
            } else { 
17388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17389
            }
17390
            break;
17391
          case 4: // XFER_TXN_ID
17392
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17393
              this.xferTxnId = iprot.readString();
17394
            } else { 
17395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17396
            }
17397
            break;
17398
          case 5: // XFER_DATE
17399
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17400
              this.xferDate = iprot.readI64();
17401
              setXferDateIsSet(true);
17402
            } else { 
17403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17404
            }
17405
            break;
17406
          default:
17407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17408
        }
17409
        iprot.readFieldEnd();
17410
      }
17411
      iprot.readStructEnd();
17412
      validate();
17413
    }
17414
 
17415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17416
      validate();
17417
 
17418
      oprot.writeStructBegin(STRUCT_DESC);
17419
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
17420
      oprot.writeI64(this.merchantTxnId);
17421
      oprot.writeFieldEnd();
17422
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
17423
      oprot.writeDouble(this.amount);
17424
      oprot.writeFieldEnd();
17425
      if (this.xferBy != null) {
17426
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
17427
        oprot.writeString(this.xferBy);
17428
        oprot.writeFieldEnd();
17429
      }
17430
      if (this.xferTxnId != null) {
17431
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
17432
        oprot.writeString(this.xferTxnId);
17433
        oprot.writeFieldEnd();
17434
      }
17435
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
17436
      oprot.writeI64(this.xferDate);
17437
      oprot.writeFieldEnd();
17438
      oprot.writeFieldStop();
17439
      oprot.writeStructEnd();
17440
    }
17441
 
17442
    @Override
17443
    public String toString() {
17444
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
17445
      boolean first = true;
17446
 
17447
      sb.append("merchantTxnId:");
17448
      sb.append(this.merchantTxnId);
17449
      first = false;
17450
      if (!first) sb.append(", ");
17451
      sb.append("amount:");
17452
      sb.append(this.amount);
17453
      first = false;
17454
      if (!first) sb.append(", ");
17455
      sb.append("xferBy:");
17456
      if (this.xferBy == null) {
17457
        sb.append("null");
17458
      } else {
17459
        sb.append(this.xferBy);
17460
      }
17461
      first = false;
17462
      if (!first) sb.append(", ");
17463
      sb.append("xferTxnId:");
17464
      if (this.xferTxnId == null) {
17465
        sb.append("null");
17466
      } else {
17467
        sb.append(this.xferTxnId);
17468
      }
17469
      first = false;
17470
      if (!first) sb.append(", ");
17471
      sb.append("xferDate:");
17472
      sb.append(this.xferDate);
17473
      first = false;
17474
      sb.append(")");
17475
      return sb.toString();
17476
    }
17477
 
17478
    public void validate() throws org.apache.thrift.TException {
17479
      // check for required fields
17480
    }
17481
 
17482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17483
      try {
17484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17485
      } catch (org.apache.thrift.TException te) {
17486
        throw new java.io.IOException(te);
17487
      }
17488
    }
17489
 
17490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17491
      try {
7330 amit.gupta 17492
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17493
        __isset_bit_vector = new BitSet(1);
3956 chandransh 17494
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17495
      } catch (org.apache.thrift.TException te) {
17496
        throw new java.io.IOException(te);
17497
      }
17498
    }
17499
 
17500
  }
17501
 
17502
  public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable   {
17503
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
17504
 
17505
    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);
17506
    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);
17507
 
17508
    private boolean success; // required
17509
    private PaymentException pe; // required
17510
 
17511
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17512
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17513
      SUCCESS((short)0, "success"),
17514
      PE((short)1, "pe");
17515
 
17516
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17517
 
17518
      static {
17519
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17520
          byName.put(field.getFieldName(), field);
17521
        }
17522
      }
17523
 
17524
      /**
17525
       * Find the _Fields constant that matches fieldId, or null if its not found.
17526
       */
17527
      public static _Fields findByThriftId(int fieldId) {
17528
        switch(fieldId) {
17529
          case 0: // SUCCESS
17530
            return SUCCESS;
17531
          case 1: // PE
17532
            return PE;
17533
          default:
17534
            return null;
17535
        }
17536
      }
17537
 
17538
      /**
17539
       * Find the _Fields constant that matches fieldId, throwing an exception
17540
       * if it is not found.
17541
       */
17542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17543
        _Fields fields = findByThriftId(fieldId);
17544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17545
        return fields;
17546
      }
17547
 
17548
      /**
17549
       * Find the _Fields constant that matches name, or null if its not found.
17550
       */
17551
      public static _Fields findByName(String name) {
17552
        return byName.get(name);
17553
      }
17554
 
17555
      private final short _thriftId;
17556
      private final String _fieldName;
17557
 
17558
      _Fields(short thriftId, String fieldName) {
17559
        _thriftId = thriftId;
17560
        _fieldName = fieldName;
17561
      }
17562
 
17563
      public short getThriftFieldId() {
17564
        return _thriftId;
17565
      }
17566
 
17567
      public String getFieldName() {
17568
        return _fieldName;
17569
      }
17570
    }
17571
 
17572
    // isset id assignments
17573
    private static final int __SUCCESS_ISSET_ID = 0;
17574
    private BitSet __isset_bit_vector = new BitSet(1);
17575
 
17576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17577
    static {
17578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17579
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17581
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17582
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17583
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17584
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
17585
    }
17586
 
17587
    public partiallyCapturePayment_result() {
17588
    }
17589
 
17590
    public partiallyCapturePayment_result(
17591
      boolean success,
17592
      PaymentException pe)
17593
    {
17594
      this();
17595
      this.success = success;
17596
      setSuccessIsSet(true);
17597
      this.pe = pe;
17598
    }
17599
 
17600
    /**
17601
     * Performs a deep copy on <i>other</i>.
17602
     */
17603
    public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
17604
      __isset_bit_vector.clear();
17605
      __isset_bit_vector.or(other.__isset_bit_vector);
17606
      this.success = other.success;
17607
      if (other.isSetPe()) {
17608
        this.pe = new PaymentException(other.pe);
17609
      }
17610
    }
17611
 
17612
    public partiallyCapturePayment_result deepCopy() {
17613
      return new partiallyCapturePayment_result(this);
17614
    }
17615
 
17616
    @Override
17617
    public void clear() {
17618
      setSuccessIsSet(false);
17619
      this.success = false;
17620
      this.pe = null;
17621
    }
17622
 
17623
    public boolean isSuccess() {
17624
      return this.success;
17625
    }
17626
 
17627
    public void setSuccess(boolean success) {
17628
      this.success = success;
17629
      setSuccessIsSet(true);
17630
    }
17631
 
17632
    public void unsetSuccess() {
17633
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17634
    }
17635
 
17636
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17637
    public boolean isSetSuccess() {
17638
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17639
    }
17640
 
17641
    public void setSuccessIsSet(boolean value) {
17642
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17643
    }
17644
 
17645
    public PaymentException getPe() {
17646
      return this.pe;
17647
    }
17648
 
17649
    public void setPe(PaymentException pe) {
17650
      this.pe = pe;
17651
    }
17652
 
17653
    public void unsetPe() {
17654
      this.pe = null;
17655
    }
17656
 
17657
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
17658
    public boolean isSetPe() {
17659
      return this.pe != null;
17660
    }
17661
 
17662
    public void setPeIsSet(boolean value) {
17663
      if (!value) {
17664
        this.pe = null;
17665
      }
17666
    }
17667
 
17668
    public void setFieldValue(_Fields field, Object value) {
17669
      switch (field) {
17670
      case SUCCESS:
17671
        if (value == null) {
17672
          unsetSuccess();
17673
        } else {
17674
          setSuccess((Boolean)value);
17675
        }
17676
        break;
17677
 
17678
      case PE:
17679
        if (value == null) {
17680
          unsetPe();
17681
        } else {
17682
          setPe((PaymentException)value);
17683
        }
17684
        break;
17685
 
17686
      }
17687
    }
17688
 
17689
    public Object getFieldValue(_Fields field) {
17690
      switch (field) {
17691
      case SUCCESS:
17692
        return Boolean.valueOf(isSuccess());
17693
 
17694
      case PE:
17695
        return getPe();
17696
 
17697
      }
17698
      throw new IllegalStateException();
17699
    }
17700
 
17701
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17702
    public boolean isSet(_Fields field) {
17703
      if (field == null) {
17704
        throw new IllegalArgumentException();
17705
      }
17706
 
17707
      switch (field) {
17708
      case SUCCESS:
17709
        return isSetSuccess();
17710
      case PE:
17711
        return isSetPe();
17712
      }
17713
      throw new IllegalStateException();
17714
    }
17715
 
17716
    @Override
17717
    public boolean equals(Object that) {
17718
      if (that == null)
17719
        return false;
17720
      if (that instanceof partiallyCapturePayment_result)
17721
        return this.equals((partiallyCapturePayment_result)that);
17722
      return false;
17723
    }
17724
 
17725
    public boolean equals(partiallyCapturePayment_result that) {
17726
      if (that == null)
17727
        return false;
17728
 
17729
      boolean this_present_success = true;
17730
      boolean that_present_success = true;
17731
      if (this_present_success || that_present_success) {
17732
        if (!(this_present_success && that_present_success))
17733
          return false;
17734
        if (this.success != that.success)
17735
          return false;
17736
      }
17737
 
17738
      boolean this_present_pe = true && this.isSetPe();
17739
      boolean that_present_pe = true && that.isSetPe();
17740
      if (this_present_pe || that_present_pe) {
17741
        if (!(this_present_pe && that_present_pe))
17742
          return false;
17743
        if (!this.pe.equals(that.pe))
17744
          return false;
17745
      }
17746
 
17747
      return true;
17748
    }
17749
 
17750
    @Override
17751
    public int hashCode() {
17752
      return 0;
17753
    }
17754
 
17755
    public int compareTo(partiallyCapturePayment_result other) {
17756
      if (!getClass().equals(other.getClass())) {
17757
        return getClass().getName().compareTo(other.getClass().getName());
17758
      }
17759
 
17760
      int lastComparison = 0;
17761
      partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
17762
 
17763
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17764
      if (lastComparison != 0) {
17765
        return lastComparison;
17766
      }
17767
      if (isSetSuccess()) {
17768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17769
        if (lastComparison != 0) {
17770
          return lastComparison;
17771
        }
17772
      }
17773
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
17774
      if (lastComparison != 0) {
17775
        return lastComparison;
17776
      }
17777
      if (isSetPe()) {
17778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
17779
        if (lastComparison != 0) {
17780
          return lastComparison;
17781
        }
17782
      }
17783
      return 0;
17784
    }
17785
 
17786
    public _Fields fieldForId(int fieldId) {
17787
      return _Fields.findByThriftId(fieldId);
17788
    }
17789
 
17790
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17791
      org.apache.thrift.protocol.TField field;
17792
      iprot.readStructBegin();
17793
      while (true)
17794
      {
17795
        field = iprot.readFieldBegin();
17796
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17797
          break;
17798
        }
17799
        switch (field.id) {
17800
          case 0: // SUCCESS
17801
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17802
              this.success = iprot.readBool();
17803
              setSuccessIsSet(true);
17804
            } else { 
17805
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17806
            }
17807
            break;
17808
          case 1: // PE
17809
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17810
              this.pe = new PaymentException();
17811
              this.pe.read(iprot);
17812
            } else { 
17813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17814
            }
17815
            break;
17816
          default:
17817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17818
        }
17819
        iprot.readFieldEnd();
17820
      }
17821
      iprot.readStructEnd();
17822
      validate();
17823
    }
17824
 
17825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17826
      oprot.writeStructBegin(STRUCT_DESC);
17827
 
17828
      if (this.isSetSuccess()) {
17829
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17830
        oprot.writeBool(this.success);
17831
        oprot.writeFieldEnd();
17832
      } else if (this.isSetPe()) {
17833
        oprot.writeFieldBegin(PE_FIELD_DESC);
17834
        this.pe.write(oprot);
17835
        oprot.writeFieldEnd();
17836
      }
17837
      oprot.writeFieldStop();
17838
      oprot.writeStructEnd();
17839
    }
17840
 
17841
    @Override
17842
    public String toString() {
17843
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
17844
      boolean first = true;
17845
 
17846
      sb.append("success:");
17847
      sb.append(this.success);
17848
      first = false;
17849
      if (!first) sb.append(", ");
17850
      sb.append("pe:");
17851
      if (this.pe == null) {
17852
        sb.append("null");
17853
      } else {
17854
        sb.append(this.pe);
17855
      }
17856
      first = false;
17857
      sb.append(")");
17858
      return sb.toString();
17859
    }
17860
 
17861
    public void validate() throws org.apache.thrift.TException {
17862
      // check for required fields
17863
    }
17864
 
17865
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17866
      try {
17867
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17868
      } catch (org.apache.thrift.TException te) {
17869
        throw new java.io.IOException(te);
17870
      }
17871
    }
17872
 
17873
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17874
      try {
17875
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17876
      } catch (org.apache.thrift.TException te) {
17877
        throw new java.io.IOException(te);
17878
      }
17879
    }
17880
 
17881
  }
17882
 
4008 mandeep.dh 17883
  public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
17884
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
17885
 
17886
    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);
17887
 
17888
    private ExtraPaymentProcessingType category; // required
17889
 
17890
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17891
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17892
      /**
17893
       * 
17894
       * @see ExtraPaymentProcessingType
17895
       */
17896
      CATEGORY((short)1, "category");
17897
 
17898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17899
 
17900
      static {
17901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17902
          byName.put(field.getFieldName(), field);
17903
        }
17904
      }
17905
 
17906
      /**
17907
       * Find the _Fields constant that matches fieldId, or null if its not found.
17908
       */
17909
      public static _Fields findByThriftId(int fieldId) {
17910
        switch(fieldId) {
17911
          case 1: // CATEGORY
17912
            return CATEGORY;
17913
          default:
17914
            return null;
17915
        }
17916
      }
17917
 
17918
      /**
17919
       * Find the _Fields constant that matches fieldId, throwing an exception
17920
       * if it is not found.
17921
       */
17922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17923
        _Fields fields = findByThriftId(fieldId);
17924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17925
        return fields;
17926
      }
17927
 
17928
      /**
17929
       * Find the _Fields constant that matches name, or null if its not found.
17930
       */
17931
      public static _Fields findByName(String name) {
17932
        return byName.get(name);
17933
      }
17934
 
17935
      private final short _thriftId;
17936
      private final String _fieldName;
17937
 
17938
      _Fields(short thriftId, String fieldName) {
17939
        _thriftId = thriftId;
17940
        _fieldName = fieldName;
17941
      }
17942
 
17943
      public short getThriftFieldId() {
17944
        return _thriftId;
17945
      }
17946
 
17947
      public String getFieldName() {
17948
        return _fieldName;
17949
      }
17950
    }
17951
 
17952
    // isset id assignments
17953
 
17954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17955
    static {
17956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17957
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17958
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
17959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
17961
    }
17962
 
17963
    public getPaymentsRequiringExtraProcessing_args() {
17964
    }
17965
 
17966
    public getPaymentsRequiringExtraProcessing_args(
17967
      ExtraPaymentProcessingType category)
17968
    {
17969
      this();
17970
      this.category = category;
17971
    }
17972
 
17973
    /**
17974
     * Performs a deep copy on <i>other</i>.
17975
     */
17976
    public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
17977
      if (other.isSetCategory()) {
17978
        this.category = other.category;
17979
      }
17980
    }
17981
 
17982
    public getPaymentsRequiringExtraProcessing_args deepCopy() {
17983
      return new getPaymentsRequiringExtraProcessing_args(this);
17984
    }
17985
 
17986
    @Override
17987
    public void clear() {
17988
      this.category = null;
17989
    }
17990
 
17991
    /**
17992
     * 
17993
     * @see ExtraPaymentProcessingType
17994
     */
17995
    public ExtraPaymentProcessingType getCategory() {
17996
      return this.category;
17997
    }
17998
 
17999
    /**
18000
     * 
18001
     * @see ExtraPaymentProcessingType
18002
     */
18003
    public void setCategory(ExtraPaymentProcessingType category) {
18004
      this.category = category;
18005
    }
18006
 
18007
    public void unsetCategory() {
18008
      this.category = null;
18009
    }
18010
 
18011
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
18012
    public boolean isSetCategory() {
18013
      return this.category != null;
18014
    }
18015
 
18016
    public void setCategoryIsSet(boolean value) {
18017
      if (!value) {
18018
        this.category = null;
18019
      }
18020
    }
18021
 
18022
    public void setFieldValue(_Fields field, Object value) {
18023
      switch (field) {
18024
      case CATEGORY:
18025
        if (value == null) {
18026
          unsetCategory();
18027
        } else {
18028
          setCategory((ExtraPaymentProcessingType)value);
18029
        }
18030
        break;
18031
 
18032
      }
18033
    }
18034
 
18035
    public Object getFieldValue(_Fields field) {
18036
      switch (field) {
18037
      case CATEGORY:
18038
        return getCategory();
18039
 
18040
      }
18041
      throw new IllegalStateException();
18042
    }
18043
 
18044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18045
    public boolean isSet(_Fields field) {
18046
      if (field == null) {
18047
        throw new IllegalArgumentException();
18048
      }
18049
 
18050
      switch (field) {
18051
      case CATEGORY:
18052
        return isSetCategory();
18053
      }
18054
      throw new IllegalStateException();
18055
    }
18056
 
18057
    @Override
18058
    public boolean equals(Object that) {
18059
      if (that == null)
18060
        return false;
18061
      if (that instanceof getPaymentsRequiringExtraProcessing_args)
18062
        return this.equals((getPaymentsRequiringExtraProcessing_args)that);
18063
      return false;
18064
    }
18065
 
18066
    public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
18067
      if (that == null)
18068
        return false;
18069
 
18070
      boolean this_present_category = true && this.isSetCategory();
18071
      boolean that_present_category = true && that.isSetCategory();
18072
      if (this_present_category || that_present_category) {
18073
        if (!(this_present_category && that_present_category))
18074
          return false;
18075
        if (!this.category.equals(that.category))
18076
          return false;
18077
      }
18078
 
18079
      return true;
18080
    }
18081
 
18082
    @Override
18083
    public int hashCode() {
18084
      return 0;
18085
    }
18086
 
18087
    public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
18088
      if (!getClass().equals(other.getClass())) {
18089
        return getClass().getName().compareTo(other.getClass().getName());
18090
      }
18091
 
18092
      int lastComparison = 0;
18093
      getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
18094
 
18095
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
18096
      if (lastComparison != 0) {
18097
        return lastComparison;
18098
      }
18099
      if (isSetCategory()) {
18100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
18101
        if (lastComparison != 0) {
18102
          return lastComparison;
18103
        }
18104
      }
18105
      return 0;
18106
    }
18107
 
18108
    public _Fields fieldForId(int fieldId) {
18109
      return _Fields.findByThriftId(fieldId);
18110
    }
18111
 
18112
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18113
      org.apache.thrift.protocol.TField field;
18114
      iprot.readStructBegin();
18115
      while (true)
18116
      {
18117
        field = iprot.readFieldBegin();
18118
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18119
          break;
18120
        }
18121
        switch (field.id) {
18122
          case 1: // CATEGORY
18123
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18124
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
18125
            } else { 
18126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18127
            }
18128
            break;
18129
          default:
18130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18131
        }
18132
        iprot.readFieldEnd();
18133
      }
18134
      iprot.readStructEnd();
18135
      validate();
18136
    }
18137
 
18138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18139
      validate();
18140
 
18141
      oprot.writeStructBegin(STRUCT_DESC);
18142
      if (this.category != null) {
18143
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
18144
        oprot.writeI32(this.category.getValue());
18145
        oprot.writeFieldEnd();
18146
      }
18147
      oprot.writeFieldStop();
18148
      oprot.writeStructEnd();
18149
    }
18150
 
18151
    @Override
18152
    public String toString() {
18153
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
18154
      boolean first = true;
18155
 
18156
      sb.append("category:");
18157
      if (this.category == null) {
18158
        sb.append("null");
18159
      } else {
18160
        sb.append(this.category);
18161
      }
18162
      first = false;
18163
      sb.append(")");
18164
      return sb.toString();
18165
    }
18166
 
18167
    public void validate() throws org.apache.thrift.TException {
18168
      // check for required fields
18169
    }
18170
 
18171
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18172
      try {
18173
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18174
      } catch (org.apache.thrift.TException te) {
18175
        throw new java.io.IOException(te);
18176
      }
18177
    }
18178
 
18179
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18180
      try {
18181
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18182
      } catch (org.apache.thrift.TException te) {
18183
        throw new java.io.IOException(te);
18184
      }
18185
    }
18186
 
18187
  }
18188
 
18189
  public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
18190
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
18191
 
18192
    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);
18193
 
18194
    private List<Long> success; // required
18195
 
18196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18198
      SUCCESS((short)0, "success");
18199
 
18200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18201
 
18202
      static {
18203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18204
          byName.put(field.getFieldName(), field);
18205
        }
18206
      }
18207
 
18208
      /**
18209
       * Find the _Fields constant that matches fieldId, or null if its not found.
18210
       */
18211
      public static _Fields findByThriftId(int fieldId) {
18212
        switch(fieldId) {
18213
          case 0: // SUCCESS
18214
            return SUCCESS;
18215
          default:
18216
            return null;
18217
        }
18218
      }
18219
 
18220
      /**
18221
       * Find the _Fields constant that matches fieldId, throwing an exception
18222
       * if it is not found.
18223
       */
18224
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18225
        _Fields fields = findByThriftId(fieldId);
18226
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18227
        return fields;
18228
      }
18229
 
18230
      /**
18231
       * Find the _Fields constant that matches name, or null if its not found.
18232
       */
18233
      public static _Fields findByName(String name) {
18234
        return byName.get(name);
18235
      }
18236
 
18237
      private final short _thriftId;
18238
      private final String _fieldName;
18239
 
18240
      _Fields(short thriftId, String fieldName) {
18241
        _thriftId = thriftId;
18242
        _fieldName = fieldName;
18243
      }
18244
 
18245
      public short getThriftFieldId() {
18246
        return _thriftId;
18247
      }
18248
 
18249
      public String getFieldName() {
18250
        return _fieldName;
18251
      }
18252
    }
18253
 
18254
    // isset id assignments
18255
 
18256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18257
    static {
18258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18259
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18260
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18261
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
18262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
18264
    }
18265
 
18266
    public getPaymentsRequiringExtraProcessing_result() {
18267
    }
18268
 
18269
    public getPaymentsRequiringExtraProcessing_result(
18270
      List<Long> success)
18271
    {
18272
      this();
18273
      this.success = success;
18274
    }
18275
 
18276
    /**
18277
     * Performs a deep copy on <i>other</i>.
18278
     */
18279
    public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
18280
      if (other.isSetSuccess()) {
18281
        List<Long> __this__success = new ArrayList<Long>();
18282
        for (Long other_element : other.success) {
18283
          __this__success.add(other_element);
18284
        }
18285
        this.success = __this__success;
18286
      }
18287
    }
18288
 
18289
    public getPaymentsRequiringExtraProcessing_result deepCopy() {
18290
      return new getPaymentsRequiringExtraProcessing_result(this);
18291
    }
18292
 
18293
    @Override
18294
    public void clear() {
18295
      this.success = null;
18296
    }
18297
 
18298
    public int getSuccessSize() {
18299
      return (this.success == null) ? 0 : this.success.size();
18300
    }
18301
 
18302
    public java.util.Iterator<Long> getSuccessIterator() {
18303
      return (this.success == null) ? null : this.success.iterator();
18304
    }
18305
 
18306
    public void addToSuccess(long elem) {
18307
      if (this.success == null) {
18308
        this.success = new ArrayList<Long>();
18309
      }
18310
      this.success.add(elem);
18311
    }
18312
 
18313
    public List<Long> getSuccess() {
18314
      return this.success;
18315
    }
18316
 
18317
    public void setSuccess(List<Long> success) {
18318
      this.success = success;
18319
    }
18320
 
18321
    public void unsetSuccess() {
18322
      this.success = null;
18323
    }
18324
 
18325
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18326
    public boolean isSetSuccess() {
18327
      return this.success != null;
18328
    }
18329
 
18330
    public void setSuccessIsSet(boolean value) {
18331
      if (!value) {
18332
        this.success = null;
18333
      }
18334
    }
18335
 
18336
    public void setFieldValue(_Fields field, Object value) {
18337
      switch (field) {
18338
      case SUCCESS:
18339
        if (value == null) {
18340
          unsetSuccess();
18341
        } else {
18342
          setSuccess((List<Long>)value);
18343
        }
18344
        break;
18345
 
18346
      }
18347
    }
18348
 
18349
    public Object getFieldValue(_Fields field) {
18350
      switch (field) {
18351
      case SUCCESS:
18352
        return getSuccess();
18353
 
18354
      }
18355
      throw new IllegalStateException();
18356
    }
18357
 
18358
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18359
    public boolean isSet(_Fields field) {
18360
      if (field == null) {
18361
        throw new IllegalArgumentException();
18362
      }
18363
 
18364
      switch (field) {
18365
      case SUCCESS:
18366
        return isSetSuccess();
18367
      }
18368
      throw new IllegalStateException();
18369
    }
18370
 
18371
    @Override
18372
    public boolean equals(Object that) {
18373
      if (that == null)
18374
        return false;
18375
      if (that instanceof getPaymentsRequiringExtraProcessing_result)
18376
        return this.equals((getPaymentsRequiringExtraProcessing_result)that);
18377
      return false;
18378
    }
18379
 
18380
    public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
18381
      if (that == null)
18382
        return false;
18383
 
18384
      boolean this_present_success = true && this.isSetSuccess();
18385
      boolean that_present_success = true && that.isSetSuccess();
18386
      if (this_present_success || that_present_success) {
18387
        if (!(this_present_success && that_present_success))
18388
          return false;
18389
        if (!this.success.equals(that.success))
18390
          return false;
18391
      }
18392
 
18393
      return true;
18394
    }
18395
 
18396
    @Override
18397
    public int hashCode() {
18398
      return 0;
18399
    }
18400
 
18401
    public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
18402
      if (!getClass().equals(other.getClass())) {
18403
        return getClass().getName().compareTo(other.getClass().getName());
18404
      }
18405
 
18406
      int lastComparison = 0;
18407
      getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
18408
 
18409
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18410
      if (lastComparison != 0) {
18411
        return lastComparison;
18412
      }
18413
      if (isSetSuccess()) {
18414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18415
        if (lastComparison != 0) {
18416
          return lastComparison;
18417
        }
18418
      }
18419
      return 0;
18420
    }
18421
 
18422
    public _Fields fieldForId(int fieldId) {
18423
      return _Fields.findByThriftId(fieldId);
18424
    }
18425
 
18426
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18427
      org.apache.thrift.protocol.TField field;
18428
      iprot.readStructBegin();
18429
      while (true)
18430
      {
18431
        field = iprot.readFieldBegin();
18432
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18433
          break;
18434
        }
18435
        switch (field.id) {
18436
          case 0: // SUCCESS
18437
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18438
              {
7049 anupam.sin 18439
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
18440
                this.success = new ArrayList<Long>(_list44.size);
18441
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
4008 mandeep.dh 18442
                {
7049 anupam.sin 18443
                  long _elem46; // required
18444
                  _elem46 = iprot.readI64();
18445
                  this.success.add(_elem46);
4008 mandeep.dh 18446
                }
18447
                iprot.readListEnd();
18448
              }
18449
            } else { 
18450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18451
            }
18452
            break;
18453
          default:
18454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18455
        }
18456
        iprot.readFieldEnd();
18457
      }
18458
      iprot.readStructEnd();
18459
      validate();
18460
    }
18461
 
18462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18463
      oprot.writeStructBegin(STRUCT_DESC);
18464
 
18465
      if (this.isSetSuccess()) {
18466
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18467
        {
18468
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7049 anupam.sin 18469
          for (long _iter47 : this.success)
4008 mandeep.dh 18470
          {
7049 anupam.sin 18471
            oprot.writeI64(_iter47);
4008 mandeep.dh 18472
          }
18473
          oprot.writeListEnd();
18474
        }
18475
        oprot.writeFieldEnd();
18476
      }
18477
      oprot.writeFieldStop();
18478
      oprot.writeStructEnd();
18479
    }
18480
 
18481
    @Override
18482
    public String toString() {
18483
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
18484
      boolean first = true;
18485
 
18486
      sb.append("success:");
18487
      if (this.success == null) {
18488
        sb.append("null");
18489
      } else {
18490
        sb.append(this.success);
18491
      }
18492
      first = false;
18493
      sb.append(")");
18494
      return sb.toString();
18495
    }
18496
 
18497
    public void validate() throws org.apache.thrift.TException {
18498
      // check for required fields
18499
    }
18500
 
18501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18502
      try {
18503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18504
      } catch (org.apache.thrift.TException te) {
18505
        throw new java.io.IOException(te);
18506
      }
18507
    }
18508
 
18509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18510
      try {
18511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18512
      } catch (org.apache.thrift.TException te) {
18513
        throw new java.io.IOException(te);
18514
      }
18515
    }
18516
 
18517
  }
18518
 
18519
  public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
18520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
18521
 
18522
    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);
18523
    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);
18524
 
18525
    private long paymentId; // required
18526
    private ExtraPaymentProcessingType category; // required
18527
 
18528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18530
      PAYMENT_ID((short)1, "paymentId"),
18531
      /**
18532
       * 
18533
       * @see ExtraPaymentProcessingType
18534
       */
18535
      CATEGORY((short)2, "category");
18536
 
18537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18538
 
18539
      static {
18540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18541
          byName.put(field.getFieldName(), field);
18542
        }
18543
      }
18544
 
18545
      /**
18546
       * Find the _Fields constant that matches fieldId, or null if its not found.
18547
       */
18548
      public static _Fields findByThriftId(int fieldId) {
18549
        switch(fieldId) {
18550
          case 1: // PAYMENT_ID
18551
            return PAYMENT_ID;
18552
          case 2: // CATEGORY
18553
            return CATEGORY;
18554
          default:
18555
            return null;
18556
        }
18557
      }
18558
 
18559
      /**
18560
       * Find the _Fields constant that matches fieldId, throwing an exception
18561
       * if it is not found.
18562
       */
18563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18564
        _Fields fields = findByThriftId(fieldId);
18565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18566
        return fields;
18567
      }
18568
 
18569
      /**
18570
       * Find the _Fields constant that matches name, or null if its not found.
18571
       */
18572
      public static _Fields findByName(String name) {
18573
        return byName.get(name);
18574
      }
18575
 
18576
      private final short _thriftId;
18577
      private final String _fieldName;
18578
 
18579
      _Fields(short thriftId, String fieldName) {
18580
        _thriftId = thriftId;
18581
        _fieldName = fieldName;
18582
      }
18583
 
18584
      public short getThriftFieldId() {
18585
        return _thriftId;
18586
      }
18587
 
18588
      public String getFieldName() {
18589
        return _fieldName;
18590
      }
18591
    }
18592
 
18593
    // isset id assignments
18594
    private static final int __PAYMENTID_ISSET_ID = 0;
18595
    private BitSet __isset_bit_vector = new BitSet(1);
18596
 
18597
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18598
    static {
18599
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18600
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18602
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18603
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
18604
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18605
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
18606
    }
18607
 
18608
    public markPaymentAsProcessed_args() {
18609
    }
18610
 
18611
    public markPaymentAsProcessed_args(
18612
      long paymentId,
18613
      ExtraPaymentProcessingType category)
18614
    {
18615
      this();
18616
      this.paymentId = paymentId;
18617
      setPaymentIdIsSet(true);
18618
      this.category = category;
18619
    }
18620
 
18621
    /**
18622
     * Performs a deep copy on <i>other</i>.
18623
     */
18624
    public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
18625
      __isset_bit_vector.clear();
18626
      __isset_bit_vector.or(other.__isset_bit_vector);
18627
      this.paymentId = other.paymentId;
18628
      if (other.isSetCategory()) {
18629
        this.category = other.category;
18630
      }
18631
    }
18632
 
18633
    public markPaymentAsProcessed_args deepCopy() {
18634
      return new markPaymentAsProcessed_args(this);
18635
    }
18636
 
18637
    @Override
18638
    public void clear() {
18639
      setPaymentIdIsSet(false);
18640
      this.paymentId = 0;
18641
      this.category = null;
18642
    }
18643
 
18644
    public long getPaymentId() {
18645
      return this.paymentId;
18646
    }
18647
 
18648
    public void setPaymentId(long paymentId) {
18649
      this.paymentId = paymentId;
18650
      setPaymentIdIsSet(true);
18651
    }
18652
 
18653
    public void unsetPaymentId() {
18654
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
18655
    }
18656
 
18657
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
18658
    public boolean isSetPaymentId() {
18659
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
18660
    }
18661
 
18662
    public void setPaymentIdIsSet(boolean value) {
18663
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
18664
    }
18665
 
18666
    /**
18667
     * 
18668
     * @see ExtraPaymentProcessingType
18669
     */
18670
    public ExtraPaymentProcessingType getCategory() {
18671
      return this.category;
18672
    }
18673
 
18674
    /**
18675
     * 
18676
     * @see ExtraPaymentProcessingType
18677
     */
18678
    public void setCategory(ExtraPaymentProcessingType category) {
18679
      this.category = category;
18680
    }
18681
 
18682
    public void unsetCategory() {
18683
      this.category = null;
18684
    }
18685
 
18686
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
18687
    public boolean isSetCategory() {
18688
      return this.category != null;
18689
    }
18690
 
18691
    public void setCategoryIsSet(boolean value) {
18692
      if (!value) {
18693
        this.category = null;
18694
      }
18695
    }
18696
 
18697
    public void setFieldValue(_Fields field, Object value) {
18698
      switch (field) {
18699
      case PAYMENT_ID:
18700
        if (value == null) {
18701
          unsetPaymentId();
18702
        } else {
18703
          setPaymentId((Long)value);
18704
        }
18705
        break;
18706
 
18707
      case CATEGORY:
18708
        if (value == null) {
18709
          unsetCategory();
18710
        } else {
18711
          setCategory((ExtraPaymentProcessingType)value);
18712
        }
18713
        break;
18714
 
18715
      }
18716
    }
18717
 
18718
    public Object getFieldValue(_Fields field) {
18719
      switch (field) {
18720
      case PAYMENT_ID:
18721
        return Long.valueOf(getPaymentId());
18722
 
18723
      case CATEGORY:
18724
        return getCategory();
18725
 
18726
      }
18727
      throw new IllegalStateException();
18728
    }
18729
 
18730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18731
    public boolean isSet(_Fields field) {
18732
      if (field == null) {
18733
        throw new IllegalArgumentException();
18734
      }
18735
 
18736
      switch (field) {
18737
      case PAYMENT_ID:
18738
        return isSetPaymentId();
18739
      case CATEGORY:
18740
        return isSetCategory();
18741
      }
18742
      throw new IllegalStateException();
18743
    }
18744
 
18745
    @Override
18746
    public boolean equals(Object that) {
18747
      if (that == null)
18748
        return false;
18749
      if (that instanceof markPaymentAsProcessed_args)
18750
        return this.equals((markPaymentAsProcessed_args)that);
18751
      return false;
18752
    }
18753
 
18754
    public boolean equals(markPaymentAsProcessed_args that) {
18755
      if (that == null)
18756
        return false;
18757
 
18758
      boolean this_present_paymentId = true;
18759
      boolean that_present_paymentId = true;
18760
      if (this_present_paymentId || that_present_paymentId) {
18761
        if (!(this_present_paymentId && that_present_paymentId))
18762
          return false;
18763
        if (this.paymentId != that.paymentId)
18764
          return false;
18765
      }
18766
 
18767
      boolean this_present_category = true && this.isSetCategory();
18768
      boolean that_present_category = true && that.isSetCategory();
18769
      if (this_present_category || that_present_category) {
18770
        if (!(this_present_category && that_present_category))
18771
          return false;
18772
        if (!this.category.equals(that.category))
18773
          return false;
18774
      }
18775
 
18776
      return true;
18777
    }
18778
 
18779
    @Override
18780
    public int hashCode() {
18781
      return 0;
18782
    }
18783
 
18784
    public int compareTo(markPaymentAsProcessed_args other) {
18785
      if (!getClass().equals(other.getClass())) {
18786
        return getClass().getName().compareTo(other.getClass().getName());
18787
      }
18788
 
18789
      int lastComparison = 0;
18790
      markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
18791
 
18792
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
18793
      if (lastComparison != 0) {
18794
        return lastComparison;
18795
      }
18796
      if (isSetPaymentId()) {
18797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
18798
        if (lastComparison != 0) {
18799
          return lastComparison;
18800
        }
18801
      }
18802
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
18803
      if (lastComparison != 0) {
18804
        return lastComparison;
18805
      }
18806
      if (isSetCategory()) {
18807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
18808
        if (lastComparison != 0) {
18809
          return lastComparison;
18810
        }
18811
      }
18812
      return 0;
18813
    }
18814
 
18815
    public _Fields fieldForId(int fieldId) {
18816
      return _Fields.findByThriftId(fieldId);
18817
    }
18818
 
18819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18820
      org.apache.thrift.protocol.TField field;
18821
      iprot.readStructBegin();
18822
      while (true)
18823
      {
18824
        field = iprot.readFieldBegin();
18825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18826
          break;
18827
        }
18828
        switch (field.id) {
18829
          case 1: // PAYMENT_ID
18830
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18831
              this.paymentId = iprot.readI64();
18832
              setPaymentIdIsSet(true);
18833
            } else { 
18834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18835
            }
18836
            break;
18837
          case 2: // CATEGORY
18838
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18839
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
18840
            } else { 
18841
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18842
            }
18843
            break;
18844
          default:
18845
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18846
        }
18847
        iprot.readFieldEnd();
18848
      }
18849
      iprot.readStructEnd();
18850
      validate();
18851
    }
18852
 
18853
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18854
      validate();
18855
 
18856
      oprot.writeStructBegin(STRUCT_DESC);
18857
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
18858
      oprot.writeI64(this.paymentId);
18859
      oprot.writeFieldEnd();
18860
      if (this.category != null) {
18861
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
18862
        oprot.writeI32(this.category.getValue());
18863
        oprot.writeFieldEnd();
18864
      }
18865
      oprot.writeFieldStop();
18866
      oprot.writeStructEnd();
18867
    }
18868
 
18869
    @Override
18870
    public String toString() {
18871
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
18872
      boolean first = true;
18873
 
18874
      sb.append("paymentId:");
18875
      sb.append(this.paymentId);
18876
      first = false;
18877
      if (!first) sb.append(", ");
18878
      sb.append("category:");
18879
      if (this.category == null) {
18880
        sb.append("null");
18881
      } else {
18882
        sb.append(this.category);
18883
      }
18884
      first = false;
18885
      sb.append(")");
18886
      return sb.toString();
18887
    }
18888
 
18889
    public void validate() throws org.apache.thrift.TException {
18890
      // check for required fields
18891
    }
18892
 
18893
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18894
      try {
18895
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18896
      } catch (org.apache.thrift.TException te) {
18897
        throw new java.io.IOException(te);
18898
      }
18899
    }
18900
 
18901
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18902
      try {
18903
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18904
      } catch (org.apache.thrift.TException te) {
18905
        throw new java.io.IOException(te);
18906
      }
18907
    }
18908
 
18909
  }
18910
 
18911
  public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
18912
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
18913
 
18914
 
18915
 
18916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18918
;
18919
 
18920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18921
 
18922
      static {
18923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18924
          byName.put(field.getFieldName(), field);
18925
        }
18926
      }
18927
 
18928
      /**
18929
       * Find the _Fields constant that matches fieldId, or null if its not found.
18930
       */
18931
      public static _Fields findByThriftId(int fieldId) {
18932
        switch(fieldId) {
18933
          default:
18934
            return null;
18935
        }
18936
      }
18937
 
18938
      /**
18939
       * Find the _Fields constant that matches fieldId, throwing an exception
18940
       * if it is not found.
18941
       */
18942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18943
        _Fields fields = findByThriftId(fieldId);
18944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18945
        return fields;
18946
      }
18947
 
18948
      /**
18949
       * Find the _Fields constant that matches name, or null if its not found.
18950
       */
18951
      public static _Fields findByName(String name) {
18952
        return byName.get(name);
18953
      }
18954
 
18955
      private final short _thriftId;
18956
      private final String _fieldName;
18957
 
18958
      _Fields(short thriftId, String fieldName) {
18959
        _thriftId = thriftId;
18960
        _fieldName = fieldName;
18961
      }
18962
 
18963
      public short getThriftFieldId() {
18964
        return _thriftId;
18965
      }
18966
 
18967
      public String getFieldName() {
18968
        return _fieldName;
18969
      }
18970
    }
18971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18972
    static {
18973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18974
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18975
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
18976
    }
18977
 
18978
    public markPaymentAsProcessed_result() {
18979
    }
18980
 
18981
    /**
18982
     * Performs a deep copy on <i>other</i>.
18983
     */
18984
    public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
18985
    }
18986
 
18987
    public markPaymentAsProcessed_result deepCopy() {
18988
      return new markPaymentAsProcessed_result(this);
18989
    }
18990
 
18991
    @Override
18992
    public void clear() {
18993
    }
18994
 
18995
    public void setFieldValue(_Fields field, Object value) {
18996
      switch (field) {
18997
      }
18998
    }
18999
 
19000
    public Object getFieldValue(_Fields field) {
19001
      switch (field) {
19002
      }
19003
      throw new IllegalStateException();
19004
    }
19005
 
19006
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19007
    public boolean isSet(_Fields field) {
19008
      if (field == null) {
19009
        throw new IllegalArgumentException();
19010
      }
19011
 
19012
      switch (field) {
19013
      }
19014
      throw new IllegalStateException();
19015
    }
19016
 
19017
    @Override
19018
    public boolean equals(Object that) {
19019
      if (that == null)
19020
        return false;
19021
      if (that instanceof markPaymentAsProcessed_result)
19022
        return this.equals((markPaymentAsProcessed_result)that);
19023
      return false;
19024
    }
19025
 
19026
    public boolean equals(markPaymentAsProcessed_result that) {
19027
      if (that == null)
19028
        return false;
19029
 
19030
      return true;
19031
    }
19032
 
19033
    @Override
19034
    public int hashCode() {
19035
      return 0;
19036
    }
19037
 
19038
    public int compareTo(markPaymentAsProcessed_result other) {
19039
      if (!getClass().equals(other.getClass())) {
19040
        return getClass().getName().compareTo(other.getClass().getName());
19041
      }
19042
 
19043
      int lastComparison = 0;
19044
      markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
19045
 
19046
      return 0;
19047
    }
19048
 
19049
    public _Fields fieldForId(int fieldId) {
19050
      return _Fields.findByThriftId(fieldId);
19051
    }
19052
 
19053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19054
      org.apache.thrift.protocol.TField field;
19055
      iprot.readStructBegin();
19056
      while (true)
19057
      {
19058
        field = iprot.readFieldBegin();
19059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19060
          break;
19061
        }
19062
        switch (field.id) {
19063
          default:
19064
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19065
        }
19066
        iprot.readFieldEnd();
19067
      }
19068
      iprot.readStructEnd();
19069
      validate();
19070
    }
19071
 
19072
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19073
      oprot.writeStructBegin(STRUCT_DESC);
19074
 
19075
      oprot.writeFieldStop();
19076
      oprot.writeStructEnd();
19077
    }
19078
 
19079
    @Override
19080
    public String toString() {
19081
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
19082
      boolean first = true;
19083
 
19084
      sb.append(")");
19085
      return sb.toString();
19086
    }
19087
 
19088
    public void validate() throws org.apache.thrift.TException {
19089
      // check for required fields
19090
    }
19091
 
19092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19093
      try {
19094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19095
      } catch (org.apache.thrift.TException te) {
19096
        throw new java.io.IOException(te);
19097
      }
19098
    }
19099
 
19100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19101
      try {
19102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19103
      } catch (org.apache.thrift.TException te) {
19104
        throw new java.io.IOException(te);
19105
      }
19106
    }
19107
 
19108
  }
19109
 
123 ashish 19110
}