Subversion Repositories SmartDukaan

Rev

Rev 7330 | Rev 8907 | 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
8618 rajveer 183
     * @param isDigital
3010 chandransh 184
     */
8618 rajveer 185
    public boolean capturePayment(long merchantTxnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
3010 chandransh 186
 
3956 chandransh 187
    /**
6503 rajveer 188
     * Refund the payment for the given merchant transaction id. It processes the last payment for the given
189
     * transaction. If refund will be failed nothing will be updated in database.
6486 rajveer 190
     * 
191
     * @param merchantTxnId
192
     * @param amount
193
     * @param isDigital
194
     */
195
    public boolean refundPayment(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
196
 
197
    /**
3956 chandransh 198
     * Adds the given amount to the captured amount of a COD payment.
199
     * Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
200
     * If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
201
     * Also sets the name of the entity which transferred the money, the date on which it was transferred
202
     * and the corresponding transaction id.
203
     * 
204
     * Returns false if the payment couldn't be captured.
205
     * Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
206
     * 
207
     * @param merchantTxnId
208
     * @param amount
209
     * @param xferBy
210
     * @param xferTxnId
211
     * @param xferDate
212
     */
213
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
214
 
4008 mandeep.dh 215
    /**
216
     * Returns the list of payments that require some extra processing and
217
     * which belong to a particular category. This is currently used by CRM
218
     * application.
219
     * 
220
     * @param category
221
     */
222
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
223
 
224
    /**
225
     * Marks a particular payment as processed for a particular cateogory.
226
     * It essentially deletes the payment if it is processed for a particular
227
     * category. This is currently used by CRM application.
228
     * 
229
     * @param paymentId
230
     * @param category
231
     */
232
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
233
 
123 ashish 234
  }
235
 
3430 rajveer 236
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
237
 
6050 anupam.sin 238
    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 239
 
240
    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;
241
 
242
    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;
243
 
4141 chandransh 244
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
245
 
3430 rajveer 246
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
247
 
4600 varun.gupt 248
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
249
 
3430 rajveer 250
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
251
 
252
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
253
 
7049 anupam.sin 254
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException;
255
 
4600 varun.gupt 256
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
257
 
3430 rajveer 258
    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;
259
 
260
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
261
 
262
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
263
 
6228 anupam.sin 264
    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 265
 
3616 chandransh 266
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
267
 
3430 rajveer 268
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
269
 
8618 rajveer 270
    public void capturePayment(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 271
 
6486 rajveer 272
    public void refundPayment(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundPayment_call> resultHandler) throws org.apache.thrift.TException;
273
 
3956 chandransh 274
    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;
275
 
4008 mandeep.dh 276
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
277
 
278
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
279
 
3430 rajveer 280
  }
281
 
3374 rajveer 282
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 283
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
284
      public Factory() {}
285
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
286
        return new Client(prot);
287
      }
288
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
289
        return new Client(iprot, oprot);
290
      }
291
    }
292
 
293
    public Client(org.apache.thrift.protocol.TProtocol prot)
123 ashish 294
    {
3430 rajveer 295
      super(prot, prot);
123 ashish 296
    }
297
 
3430 rajveer 298
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 299
      super(iprot, oprot);
123 ashish 300
    }
301
 
6050 anupam.sin 302
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
123 ashish 303
    {
6050 anupam.sin 304
      send_createPayment(userId, amount, gatewayId, txnId, isDigital);
123 ashish 305
      return recv_createPayment();
306
    }
307
 
6050 anupam.sin 308
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws org.apache.thrift.TException
123 ashish 309
    {
310
      createPayment_args args = new createPayment_args();
3430 rajveer 311
      args.setUserId(userId);
312
      args.setAmount(amount);
313
      args.setGatewayId(gatewayId);
314
      args.setTxnId(txnId);
6050 anupam.sin 315
      args.setIsDigital(isDigital);
3430 rajveer 316
      sendBase("createPayment", args);
123 ashish 317
    }
318
 
3430 rajveer 319
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
123 ashish 320
    {
321
      createPayment_result result = new createPayment_result();
3430 rajveer 322
      receiveBase(result, "createPayment");
123 ashish 323
      if (result.isSetSuccess()) {
324
        return result.success;
325
      }
326
      if (result.pe != null) {
327
        throw result.pe;
328
      }
3430 rajveer 329
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
123 ashish 330
    }
331
 
3430 rajveer 332
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 333
    {
695 rajveer 334
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
123 ashish 335
      return recv_getPaymentsForUser();
336
    }
337
 
3430 rajveer 338
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 339
    {
340
      getPaymentsForUser_args args = new getPaymentsForUser_args();
3430 rajveer 341
      args.setUserId(userId);
342
      args.setFromTime(fromTime);
343
      args.setToTime(toTime);
344
      args.setStatus(status);
345
      args.setGatewayId(gatewayId);
346
      sendBase("getPaymentsForUser", args);
123 ashish 347
    }
348
 
3430 rajveer 349
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
123 ashish 350
    {
351
      getPaymentsForUser_result result = new getPaymentsForUser_result();
3430 rajveer 352
      receiveBase(result, "getPaymentsForUser");
123 ashish 353
      if (result.isSetSuccess()) {
354
        return result.success;
355
      }
356
      if (result.pe != null) {
357
        throw result.pe;
358
      }
3430 rajveer 359
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
123 ashish 360
    }
361
 
3430 rajveer 362
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 363
    {
695 rajveer 364
      send_getPayments(fromTime, toTime, status, gatewayId);
123 ashish 365
      return recv_getPayments();
366
    }
367
 
3430 rajveer 368
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 369
    {
370
      getPayments_args args = new getPayments_args();
3430 rajveer 371
      args.setFromTime(fromTime);
372
      args.setToTime(toTime);
373
      args.setStatus(status);
374
      args.setGatewayId(gatewayId);
375
      sendBase("getPayments", args);
123 ashish 376
    }
377
 
3430 rajveer 378
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
123 ashish 379
    {
380
      getPayments_result result = new getPayments_result();
3430 rajveer 381
      receiveBase(result, "getPayments");
123 ashish 382
      if (result.isSetSuccess()) {
383
        return result.success;
384
      }
385
      if (result.pe != null) {
386
        throw result.pe;
387
      }
3430 rajveer 388
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
123 ashish 389
    }
390
 
4141 chandransh 391
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
392
    {
393
      send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
394
      return recv_getPaymentsByCapturedDate();
395
    }
396
 
397
    public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
398
    {
399
      getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
400
      args.setFromTime(fromTime);
401
      args.setToTime(toTime);
402
      args.setGatewayId(gatewayId);
403
      sendBase("getPaymentsByCapturedDate", args);
404
    }
405
 
406
    public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
407
    {
408
      getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
409
      receiveBase(result, "getPaymentsByCapturedDate");
410
      if (result.isSetSuccess()) {
411
        return result.success;
412
      }
413
      if (result.pe != null) {
414
        throw result.pe;
415
      }
416
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
417
    }
418
 
3430 rajveer 419
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 420
    {
421
      send_getPaymentGateway(id);
422
      return recv_getPaymentGateway();
423
    }
424
 
3430 rajveer 425
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
420 ashish 426
    {
427
      getPaymentGateway_args args = new getPaymentGateway_args();
3430 rajveer 428
      args.setId(id);
429
      sendBase("getPaymentGateway", args);
420 ashish 430
    }
431
 
3430 rajveer 432
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
420 ashish 433
    {
434
      getPaymentGateway_result result = new getPaymentGateway_result();
3430 rajveer 435
      receiveBase(result, "getPaymentGateway");
420 ashish 436
      if (result.isSetSuccess()) {
437
        return result.success;
438
      }
439
      if (result.pe != null) {
440
        throw result.pe;
441
      }
3430 rajveer 442
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
420 ashish 443
    }
444
 
4600 varun.gupt 445
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
446
    {
447
      send_getActivePaymentGateways();
448
      return recv_getActivePaymentGateways();
449
    }
450
 
451
    public void send_getActivePaymentGateways() throws org.apache.thrift.TException
452
    {
453
      getActivePaymentGateways_args args = new getActivePaymentGateways_args();
454
      sendBase("getActivePaymentGateways", args);
455
    }
456
 
457
    public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
458
    {
459
      getActivePaymentGateways_result result = new getActivePaymentGateways_result();
460
      receiveBase(result, "getActivePaymentGateways");
461
      if (result.isSetSuccess()) {
462
        return result.success;
463
      }
464
      if (result.pe != null) {
465
        throw result.pe;
466
      }
467
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
468
    }
469
 
3430 rajveer 470
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 471
    {
695 rajveer 472
      send_getPayment(id);
473
      return recv_getPayment();
420 ashish 474
    }
475
 
3430 rajveer 476
    public void send_getPayment(long id) throws org.apache.thrift.TException
420 ashish 477
    {
695 rajveer 478
      getPayment_args args = new getPayment_args();
3430 rajveer 479
      args.setId(id);
480
      sendBase("getPayment", args);
420 ashish 481
    }
482
 
3430 rajveer 483
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
420 ashish 484
    {
695 rajveer 485
      getPayment_result result = new getPayment_result();
3430 rajveer 486
      receiveBase(result, "getPayment");
695 rajveer 487
      if (result.isSetSuccess()) {
488
        return result.success;
489
      }
420 ashish 490
      if (result.pe != null) {
491
        throw result.pe;
492
      }
3430 rajveer 493
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
420 ashish 494
    }
495
 
3430 rajveer 496
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
420 ashish 497
    {
695 rajveer 498
      send_getPaymentForTxnId(txnId);
499
      return recv_getPaymentForTxnId();
420 ashish 500
    }
501
 
3430 rajveer 502
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
420 ashish 503
    {
695 rajveer 504
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
3430 rajveer 505
      args.setTxnId(txnId);
506
      sendBase("getPaymentForTxnId", args);
420 ashish 507
    }
508
 
3430 rajveer 509
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
420 ashish 510
    {
695 rajveer 511
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
3430 rajveer 512
      receiveBase(result, "getPaymentForTxnId");
420 ashish 513
      if (result.isSetSuccess()) {
514
        return result.success;
515
      }
516
      if (result.pe != null) {
517
        throw result.pe;
518
      }
3430 rajveer 519
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
420 ashish 520
    }
521
 
7049 anupam.sin 522
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
523
    {
524
      send_getPaymentForRechargeTxnId(txnId);
525
      return recv_getPaymentForRechargeTxnId();
526
    }
527
 
528
    public void send_getPaymentForRechargeTxnId(long txnId) throws org.apache.thrift.TException
529
    {
530
      getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
531
      args.setTxnId(txnId);
532
      sendBase("getPaymentForRechargeTxnId", args);
533
    }
534
 
535
    public List<Payment> recv_getPaymentForRechargeTxnId() throws PaymentException, org.apache.thrift.TException
536
    {
537
      getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
538
      receiveBase(result, "getPaymentForRechargeTxnId");
539
      if (result.isSetSuccess()) {
540
        return result.success;
541
      }
542
      if (result.pe != null) {
543
        throw result.pe;
544
      }
545
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForRechargeTxnId failed: unknown result");
546
    }
547
 
4600 varun.gupt 548
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
549
    {
550
      send_getSuccessfulPaymentForTxnId(txnId);
551
      return recv_getSuccessfulPaymentForTxnId();
552
    }
553
 
554
    public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
555
    {
556
      getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
557
      args.setTxnId(txnId);
558
      sendBase("getSuccessfulPaymentForTxnId", args);
559
    }
560
 
561
    public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
562
    {
563
      getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
564
      receiveBase(result, "getSuccessfulPaymentForTxnId");
565
      if (result.isSetSuccess()) {
566
        return result.success;
567
      }
568
      if (result.pe != null) {
569
        throw result.pe;
570
      }
571
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
572
    }
573
 
3430 rajveer 574
    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 575
    {
1119 rajveer 576
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
695 rajveer 577
      return recv_updatePaymentDetails();
420 ashish 578
    }
579
 
3430 rajveer 580
    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 581
    {
695 rajveer 582
      updatePaymentDetails_args args = new updatePaymentDetails_args();
3430 rajveer 583
      args.setId(id);
584
      args.setGatewayPaymentId(gatewayPaymentId);
585
      args.setSessionId(sessionId);
586
      args.setGatewayTxnStatus(gatewayTxnStatus);
587
      args.setDescription(description);
588
      args.setGatewayTxnId(gatewayTxnId);
589
      args.setAuthCode(authCode);
590
      args.setReferenceCode(referenceCode);
591
      args.setErrorCode(errorCode);
592
      args.setStatus(status);
593
      args.setGatewayTxnDate(gatewayTxnDate);
594
      args.setAttributes(attributes);
595
      sendBase("updatePaymentDetails", args);
420 ashish 596
    }
597
 
3430 rajveer 598
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
420 ashish 599
    {
695 rajveer 600
      updatePaymentDetails_result result = new updatePaymentDetails_result();
3430 rajveer 601
      receiveBase(result, "updatePaymentDetails");
695 rajveer 602
      if (result.isSetSuccess()) {
603
        return result.success;
604
      }
420 ashish 605
      if (result.pe != null) {
606
        throw result.pe;
607
      }
3430 rajveer 608
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
420 ashish 609
    }
610
 
3430 rajveer 611
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 612
    {
1731 ankur.sing 613
      send_getSuccessfulPaymentsAmountRange();
614
      return recv_getSuccessfulPaymentsAmountRange();
1629 ankur.sing 615
    }
616
 
3430 rajveer 617
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 618
    {
1731 ankur.sing 619
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
3430 rajveer 620
      sendBase("getSuccessfulPaymentsAmountRange", args);
1629 ankur.sing 621
    }
622
 
3430 rajveer 623
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 624
    {
1731 ankur.sing 625
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 626
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
1629 ankur.sing 627
      if (result.isSetSuccess()) {
628
        return result.success;
629
      }
3430 rajveer 630
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
1629 ankur.sing 631
    }
632
 
3430 rajveer 633
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
2462 chandransh 634
    {
635
      send_initializeHdfcPayment(merchantPaymentId);
636
      return recv_initializeHdfcPayment();
637
    }
638
 
3430 rajveer 639
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
2462 chandransh 640
    {
641
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
3430 rajveer 642
      args.setMerchantPaymentId(merchantPaymentId);
643
      sendBase("initializeHdfcPayment", args);
2462 chandransh 644
    }
645
 
3430 rajveer 646
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
2462 chandransh 647
    {
648
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
3430 rajveer 649
      receiveBase(result, "initializeHdfcPayment");
2462 chandransh 650
      if (result.isSetSuccess()) {
651
        return result.success;
652
      }
653
      if (result.pe != null) {
654
        throw result.pe;
655
      }
3430 rajveer 656
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
2462 chandransh 657
    }
658
 
6228 anupam.sin 659
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException
6050 anupam.sin 660
    {
6228 anupam.sin 661
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone);
6050 anupam.sin 662
      return recv_doHdfcPaymentForDigitalOrder();
663
    }
664
 
6228 anupam.sin 665
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws org.apache.thrift.TException
6050 anupam.sin 666
    {
667
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
668
      args.setMerchantPaymentId(merchantPaymentId);
669
      args.setRechargeOrderId(rechargeOrderId);
6228 anupam.sin 670
      args.setPhone(phone);
6050 anupam.sin 671
      sendBase("doHdfcPaymentForDigitalOrder", args);
672
    }
673
 
674
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
675
    {
676
      doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
677
      receiveBase(result, "doHdfcPaymentForDigitalOrder");
678
      if (result.isSetSuccess()) {
679
        return result.success;
680
      }
681
      if (result.pe != null) {
682
        throw result.pe;
683
      }
684
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
685
    }
686
 
3616 chandransh 687
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
688
    {
689
      send_initializeHdfcEmiPayment(merchantPaymentId);
690
      return recv_initializeHdfcEmiPayment();
691
    }
692
 
693
    public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
694
    {
695
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
696
      args.setMerchantPaymentId(merchantPaymentId);
697
      sendBase("initializeHdfcEmiPayment", args);
698
    }
699
 
700
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
701
    {
702
      initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
703
      receiveBase(result, "initializeHdfcEmiPayment");
704
      if (result.isSetSuccess()) {
705
        return result.success;
706
      }
707
      if (result.pe != null) {
708
        throw result.pe;
709
      }
710
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
711
    }
712
 
3430 rajveer 713
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
2690 chandransh 714
    {
715
      send_createRefund(orderId, merchantTxnId, amount);
716
      return recv_createRefund();
717
    }
718
 
3430 rajveer 719
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
2690 chandransh 720
    {
721
      createRefund_args args = new createRefund_args();
3430 rajveer 722
      args.setOrderId(orderId);
723
      args.setMerchantTxnId(merchantTxnId);
724
      args.setAmount(amount);
725
      sendBase("createRefund", args);
2690 chandransh 726
    }
727
 
3430 rajveer 728
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
2690 chandransh 729
    {
730
      createRefund_result result = new createRefund_result();
3430 rajveer 731
      receiveBase(result, "createRefund");
2690 chandransh 732
      if (result.isSetSuccess()) {
733
        return result.success;
734
      }
735
      if (result.pe != null) {
736
        throw result.pe;
737
      }
3430 rajveer 738
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
2690 chandransh 739
    }
740
 
8618 rajveer 741
    public boolean capturePayment(long merchantTxnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
3010 chandransh 742
    {
8618 rajveer 743
      send_capturePayment(merchantTxnId, isDigital);
3010 chandransh 744
      return recv_capturePayment();
745
    }
746
 
8618 rajveer 747
    public void send_capturePayment(long merchantTxnId, boolean isDigital) throws org.apache.thrift.TException
3010 chandransh 748
    {
749
      capturePayment_args args = new capturePayment_args();
3430 rajveer 750
      args.setMerchantTxnId(merchantTxnId);
8618 rajveer 751
      args.setIsDigital(isDigital);
3430 rajveer 752
      sendBase("capturePayment", args);
3010 chandransh 753
    }
754
 
3430 rajveer 755
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
3010 chandransh 756
    {
757
      capturePayment_result result = new capturePayment_result();
3430 rajveer 758
      receiveBase(result, "capturePayment");
3010 chandransh 759
      if (result.isSetSuccess()) {
760
        return result.success;
761
      }
762
      if (result.pe != null) {
763
        throw result.pe;
764
      }
3430 rajveer 765
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
3010 chandransh 766
    }
767
 
6486 rajveer 768
    public boolean refundPayment(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException
769
    {
770
      send_refundPayment(merchantTxnId, amount, isDigital);
771
      return recv_refundPayment();
772
    }
773
 
774
    public void send_refundPayment(long merchantTxnId, double amount, boolean isDigital) throws org.apache.thrift.TException
775
    {
776
      refundPayment_args args = new refundPayment_args();
777
      args.setMerchantTxnId(merchantTxnId);
778
      args.setAmount(amount);
779
      args.setIsDigital(isDigital);
780
      sendBase("refundPayment", args);
781
    }
782
 
783
    public boolean recv_refundPayment() throws PaymentException, org.apache.thrift.TException
784
    {
785
      refundPayment_result result = new refundPayment_result();
786
      receiveBase(result, "refundPayment");
787
      if (result.isSetSuccess()) {
788
        return result.success;
789
      }
790
      if (result.pe != null) {
791
        throw result.pe;
792
      }
793
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundPayment failed: unknown result");
794
    }
795
 
3956 chandransh 796
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
797
    {
798
      send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
799
      return recv_partiallyCapturePayment();
800
    }
801
 
802
    public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
803
    {
804
      partiallyCapturePayment_args args = new partiallyCapturePayment_args();
805
      args.setMerchantTxnId(merchantTxnId);
806
      args.setAmount(amount);
807
      args.setXferBy(xferBy);
808
      args.setXferTxnId(xferTxnId);
809
      args.setXferDate(xferDate);
810
      sendBase("partiallyCapturePayment", args);
811
    }
812
 
813
    public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
814
    {
815
      partiallyCapturePayment_result result = new partiallyCapturePayment_result();
816
      receiveBase(result, "partiallyCapturePayment");
817
      if (result.isSetSuccess()) {
818
        return result.success;
819
      }
820
      if (result.pe != null) {
821
        throw result.pe;
822
      }
823
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
824
    }
825
 
4008 mandeep.dh 826
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
827
    {
828
      send_getPaymentsRequiringExtraProcessing(category);
829
      return recv_getPaymentsRequiringExtraProcessing();
830
    }
831
 
832
    public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
833
    {
834
      getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
835
      args.setCategory(category);
836
      sendBase("getPaymentsRequiringExtraProcessing", args);
837
    }
838
 
839
    public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
840
    {
841
      getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
842
      receiveBase(result, "getPaymentsRequiringExtraProcessing");
843
      if (result.isSetSuccess()) {
844
        return result.success;
845
      }
846
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
847
    }
848
 
849
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
850
    {
851
      send_markPaymentAsProcessed(paymentId, category);
852
      recv_markPaymentAsProcessed();
853
    }
854
 
855
    public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
856
    {
857
      markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
858
      args.setPaymentId(paymentId);
859
      args.setCategory(category);
860
      sendBase("markPaymentAsProcessed", args);
861
    }
862
 
863
    public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
864
    {
865
      markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
866
      receiveBase(result, "markPaymentAsProcessed");
867
      return;
868
    }
869
 
123 ashish 870
  }
3430 rajveer 871
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
872
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
873
      private org.apache.thrift.async.TAsyncClientManager clientManager;
874
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
875
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
876
        this.clientManager = clientManager;
877
        this.protocolFactory = protocolFactory;
878
      }
879
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
880
        return new AsyncClient(protocolFactory, clientManager, transport);
881
      }
123 ashish 882
    }
883
 
3430 rajveer 884
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
885
      super(protocolFactory, clientManager, transport);
886
    }
123 ashish 887
 
6050 anupam.sin 888
    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 889
      checkReady();
6050 anupam.sin 890
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 891
      this.___currentMethod = method_call;
892
      ___manager.call(method_call);
893
    }
894
 
895
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
896
      private long userId;
897
      private double amount;
898
      private long gatewayId;
899
      private long txnId;
6050 anupam.sin 900
      private boolean isDigital;
901
      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 902
        super(client, protocolFactory, transport, resultHandler, false);
903
        this.userId = userId;
904
        this.amount = amount;
905
        this.gatewayId = gatewayId;
906
        this.txnId = txnId;
6050 anupam.sin 907
        this.isDigital = isDigital;
123 ashish 908
      }
3430 rajveer 909
 
910
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
911
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
912
        createPayment_args args = new createPayment_args();
913
        args.setUserId(userId);
914
        args.setAmount(amount);
915
        args.setGatewayId(gatewayId);
916
        args.setTxnId(txnId);
6050 anupam.sin 917
        args.setIsDigital(isDigital);
3430 rajveer 918
        args.write(prot);
919
        prot.writeMessageEnd();
920
      }
921
 
922
      public long getResult() throws PaymentException, org.apache.thrift.TException {
923
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
924
          throw new IllegalStateException("Method call not finished!");
925
        }
926
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
927
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
928
        return (new Client(prot)).recv_createPayment();
929
      }
123 ashish 930
    }
931
 
3430 rajveer 932
    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 {
933
      checkReady();
934
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
935
      this.___currentMethod = method_call;
936
      ___manager.call(method_call);
937
    }
938
 
939
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
940
      private long userId;
941
      private long fromTime;
942
      private long toTime;
943
      private PaymentStatus status;
944
      private long gatewayId;
945
      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 {
946
        super(client, protocolFactory, transport, resultHandler, false);
947
        this.userId = userId;
948
        this.fromTime = fromTime;
949
        this.toTime = toTime;
950
        this.status = status;
951
        this.gatewayId = gatewayId;
952
      }
953
 
954
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
955
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
956
        getPaymentsForUser_args args = new getPaymentsForUser_args();
957
        args.setUserId(userId);
958
        args.setFromTime(fromTime);
959
        args.setToTime(toTime);
960
        args.setStatus(status);
961
        args.setGatewayId(gatewayId);
962
        args.write(prot);
963
        prot.writeMessageEnd();
964
      }
965
 
966
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
967
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
968
          throw new IllegalStateException("Method call not finished!");
969
        }
970
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
971
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
972
        return (new Client(prot)).recv_getPaymentsForUser();
973
      }
974
    }
975
 
976
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
977
      checkReady();
978
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
979
      this.___currentMethod = method_call;
980
      ___manager.call(method_call);
981
    }
982
 
983
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
984
      private long fromTime;
985
      private long toTime;
986
      private PaymentStatus status;
987
      private long gatewayId;
988
      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 {
989
        super(client, protocolFactory, transport, resultHandler, false);
990
        this.fromTime = fromTime;
991
        this.toTime = toTime;
992
        this.status = status;
993
        this.gatewayId = gatewayId;
994
      }
995
 
996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        getPayments_args args = new getPayments_args();
999
        args.setFromTime(fromTime);
1000
        args.setToTime(toTime);
1001
        args.setStatus(status);
1002
        args.setGatewayId(gatewayId);
1003
        args.write(prot);
1004
        prot.writeMessageEnd();
1005
      }
1006
 
1007
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1008
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1009
          throw new IllegalStateException("Method call not finished!");
1010
        }
1011
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1012
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1013
        return (new Client(prot)).recv_getPayments();
1014
      }
1015
    }
1016
 
4141 chandransh 1017
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
1018
      checkReady();
1019
      getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
1020
      this.___currentMethod = method_call;
1021
      ___manager.call(method_call);
1022
    }
1023
 
1024
    public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1025
      private long fromTime;
1026
      private long toTime;
1027
      private long gatewayId;
1028
      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 {
1029
        super(client, protocolFactory, transport, resultHandler, false);
1030
        this.fromTime = fromTime;
1031
        this.toTime = toTime;
1032
        this.gatewayId = gatewayId;
1033
      }
1034
 
1035
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1036
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1037
        getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
1038
        args.setFromTime(fromTime);
1039
        args.setToTime(toTime);
1040
        args.setGatewayId(gatewayId);
1041
        args.write(prot);
1042
        prot.writeMessageEnd();
1043
      }
1044
 
1045
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1046
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1047
          throw new IllegalStateException("Method call not finished!");
1048
        }
1049
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1050
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1051
        return (new Client(prot)).recv_getPaymentsByCapturedDate();
1052
      }
1053
    }
1054
 
3430 rajveer 1055
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
1056
      checkReady();
1057
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
1058
      this.___currentMethod = method_call;
1059
      ___manager.call(method_call);
1060
    }
1061
 
1062
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
1063
      private long id;
1064
      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 {
1065
        super(client, protocolFactory, transport, resultHandler, false);
1066
        this.id = id;
1067
      }
1068
 
1069
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1070
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
1071
        getPaymentGateway_args args = new getPaymentGateway_args();
1072
        args.setId(id);
1073
        args.write(prot);
1074
        prot.writeMessageEnd();
1075
      }
1076
 
1077
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
1078
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1079
          throw new IllegalStateException("Method call not finished!");
1080
        }
1081
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1082
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1083
        return (new Client(prot)).recv_getPaymentGateway();
1084
      }
1085
    }
1086
 
4600 varun.gupt 1087
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
1088
      checkReady();
1089
      getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
1090
      this.___currentMethod = method_call;
1091
      ___manager.call(method_call);
1092
    }
1093
 
1094
    public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
1095
      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 {
1096
        super(client, protocolFactory, transport, resultHandler, false);
1097
      }
1098
 
1099
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1100
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
1101
        getActivePaymentGateways_args args = new getActivePaymentGateways_args();
1102
        args.write(prot);
1103
        prot.writeMessageEnd();
1104
      }
1105
 
1106
      public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
1107
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1108
          throw new IllegalStateException("Method call not finished!");
1109
        }
1110
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1111
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1112
        return (new Client(prot)).recv_getActivePaymentGateways();
1113
      }
1114
    }
1115
 
3430 rajveer 1116
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
1117
      checkReady();
1118
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
1119
      this.___currentMethod = method_call;
1120
      ___manager.call(method_call);
1121
    }
1122
 
1123
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1124
      private long id;
1125
      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 {
1126
        super(client, protocolFactory, transport, resultHandler, false);
1127
        this.id = id;
1128
      }
1129
 
1130
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1131
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1132
        getPayment_args args = new getPayment_args();
1133
        args.setId(id);
1134
        args.write(prot);
1135
        prot.writeMessageEnd();
1136
      }
1137
 
1138
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1139
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1140
          throw new IllegalStateException("Method call not finished!");
1141
        }
1142
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1143
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1144
        return (new Client(prot)).recv_getPayment();
1145
      }
1146
    }
1147
 
1148
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1149
      checkReady();
1150
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1151
      this.___currentMethod = method_call;
1152
      ___manager.call(method_call);
1153
    }
1154
 
1155
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1156
      private long txnId;
1157
      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 {
1158
        super(client, protocolFactory, transport, resultHandler, false);
1159
        this.txnId = txnId;
1160
      }
1161
 
1162
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1163
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1164
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
1165
        args.setTxnId(txnId);
1166
        args.write(prot);
1167
        prot.writeMessageEnd();
1168
      }
1169
 
1170
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1171
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1172
          throw new IllegalStateException("Method call not finished!");
1173
        }
1174
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1176
        return (new Client(prot)).recv_getPaymentForTxnId();
1177
      }
1178
    }
1179
 
7049 anupam.sin 1180
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException {
1181
      checkReady();
1182
      getPaymentForRechargeTxnId_call method_call = new getPaymentForRechargeTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1183
      this.___currentMethod = method_call;
1184
      ___manager.call(method_call);
1185
    }
1186
 
1187
    public static class getPaymentForRechargeTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1188
      private long txnId;
1189
      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 {
1190
        super(client, protocolFactory, transport, resultHandler, false);
1191
        this.txnId = txnId;
1192
      }
1193
 
1194
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1195
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForRechargeTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1196
        getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
1197
        args.setTxnId(txnId);
1198
        args.write(prot);
1199
        prot.writeMessageEnd();
1200
      }
1201
 
1202
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1203
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1204
          throw new IllegalStateException("Method call not finished!");
1205
        }
1206
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1208
        return (new Client(prot)).recv_getPaymentForRechargeTxnId();
1209
      }
1210
    }
1211
 
4600 varun.gupt 1212
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1213
      checkReady();
1214
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1215
      this.___currentMethod = method_call;
1216
      ___manager.call(method_call);
1217
    }
1218
 
1219
    public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1220
      private long txnId;
1221
      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 {
1222
        super(client, protocolFactory, transport, resultHandler, false);
1223
        this.txnId = txnId;
1224
      }
1225
 
1226
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1227
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1228
        getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
1229
        args.setTxnId(txnId);
1230
        args.write(prot);
1231
        prot.writeMessageEnd();
1232
      }
1233
 
1234
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1235
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1236
          throw new IllegalStateException("Method call not finished!");
1237
        }
1238
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1239
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1240
        return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
1241
      }
1242
    }
1243
 
3430 rajveer 1244
    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 {
1245
      checkReady();
1246
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
1247
      this.___currentMethod = method_call;
1248
      ___manager.call(method_call);
1249
    }
1250
 
1251
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
1252
      private long id;
1253
      private String gatewayPaymentId;
1254
      private String sessionId;
1255
      private String gatewayTxnStatus;
1256
      private String description;
1257
      private String gatewayTxnId;
1258
      private String authCode;
1259
      private String referenceCode;
1260
      private String errorCode;
1261
      private PaymentStatus status;
1262
      private String gatewayTxnDate;
1263
      private List<Attribute> attributes;
1264
      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 {
1265
        super(client, protocolFactory, transport, resultHandler, false);
1266
        this.id = id;
1267
        this.gatewayPaymentId = gatewayPaymentId;
1268
        this.sessionId = sessionId;
1269
        this.gatewayTxnStatus = gatewayTxnStatus;
1270
        this.description = description;
1271
        this.gatewayTxnId = gatewayTxnId;
1272
        this.authCode = authCode;
1273
        this.referenceCode = referenceCode;
1274
        this.errorCode = errorCode;
1275
        this.status = status;
1276
        this.gatewayTxnDate = gatewayTxnDate;
1277
        this.attributes = attributes;
1278
      }
1279
 
1280
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1281
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
1282
        updatePaymentDetails_args args = new updatePaymentDetails_args();
1283
        args.setId(id);
1284
        args.setGatewayPaymentId(gatewayPaymentId);
1285
        args.setSessionId(sessionId);
1286
        args.setGatewayTxnStatus(gatewayTxnStatus);
1287
        args.setDescription(description);
1288
        args.setGatewayTxnId(gatewayTxnId);
1289
        args.setAuthCode(authCode);
1290
        args.setReferenceCode(referenceCode);
1291
        args.setErrorCode(errorCode);
1292
        args.setStatus(status);
1293
        args.setGatewayTxnDate(gatewayTxnDate);
1294
        args.setAttributes(attributes);
1295
        args.write(prot);
1296
        prot.writeMessageEnd();
1297
      }
1298
 
1299
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1300
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1301
          throw new IllegalStateException("Method call not finished!");
1302
        }
1303
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1304
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1305
        return (new Client(prot)).recv_updatePaymentDetails();
1306
      }
1307
    }
1308
 
1309
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
1310
      checkReady();
1311
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
1312
      this.___currentMethod = method_call;
1313
      ___manager.call(method_call);
1314
    }
1315
 
1316
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
1317
      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 {
1318
        super(client, protocolFactory, transport, resultHandler, false);
1319
      }
1320
 
1321
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1322
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
1323
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
1324
        args.write(prot);
1325
        prot.writeMessageEnd();
1326
      }
1327
 
1328
      public List<Double> getResult() throws org.apache.thrift.TException {
1329
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1330
          throw new IllegalStateException("Method call not finished!");
1331
        }
1332
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1334
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1335
      }
1336
    }
1337
 
1338
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
1339
      checkReady();
1340
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1341
      this.___currentMethod = method_call;
1342
      ___manager.call(method_call);
1343
    }
1344
 
1345
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1346
      private long merchantPaymentId;
1347
      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 {
1348
        super(client, protocolFactory, transport, resultHandler, false);
1349
        this.merchantPaymentId = merchantPaymentId;
1350
      }
1351
 
1352
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1353
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1354
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1355
        args.setMerchantPaymentId(merchantPaymentId);
1356
        args.write(prot);
1357
        prot.writeMessageEnd();
1358
      }
1359
 
1360
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1361
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1362
          throw new IllegalStateException("Method call not finished!");
1363
        }
1364
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1366
        return (new Client(prot)).recv_initializeHdfcPayment();
1367
      }
1368
    }
1369
 
6228 anupam.sin 1370
    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 1371
      checkReady();
6228 anupam.sin 1372
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, resultHandler, this, ___protocolFactory, ___transport);
6050 anupam.sin 1373
      this.___currentMethod = method_call;
1374
      ___manager.call(method_call);
1375
    }
1376
 
1377
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1378
      private long merchantPaymentId;
1379
      private long rechargeOrderId;
6228 anupam.sin 1380
      private String phone;
1381
      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 1382
        super(client, protocolFactory, transport, resultHandler, false);
1383
        this.merchantPaymentId = merchantPaymentId;
1384
        this.rechargeOrderId = rechargeOrderId;
6228 anupam.sin 1385
        this.phone = phone;
6050 anupam.sin 1386
      }
1387
 
1388
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1389
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1390
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1391
        args.setMerchantPaymentId(merchantPaymentId);
1392
        args.setRechargeOrderId(rechargeOrderId);
6228 anupam.sin 1393
        args.setPhone(phone);
6050 anupam.sin 1394
        args.write(prot);
1395
        prot.writeMessageEnd();
1396
      }
1397
 
1398
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1399
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1400
          throw new IllegalStateException("Method call not finished!");
1401
        }
1402
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1404
        return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
1405
      }
1406
    }
1407
 
3616 chandransh 1408
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1409
      checkReady();
1410
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1411
      this.___currentMethod = method_call;
1412
      ___manager.call(method_call);
1413
    }
1414
 
1415
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1416
      private long merchantPaymentId;
1417
      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 {
1418
        super(client, protocolFactory, transport, resultHandler, false);
1419
        this.merchantPaymentId = merchantPaymentId;
1420
      }
1421
 
1422
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1423
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1424
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1425
        args.setMerchantPaymentId(merchantPaymentId);
1426
        args.write(prot);
1427
        prot.writeMessageEnd();
1428
      }
1429
 
1430
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1432
          throw new IllegalStateException("Method call not finished!");
1433
        }
1434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1436
        return (new Client(prot)).recv_initializeHdfcEmiPayment();
1437
      }
1438
    }
1439
 
3430 rajveer 1440
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
1441
      checkReady();
1442
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
1443
      this.___currentMethod = method_call;
1444
      ___manager.call(method_call);
1445
    }
1446
 
1447
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
1448
      private long orderId;
1449
      private long merchantTxnId;
1450
      private double amount;
1451
      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 {
1452
        super(client, protocolFactory, transport, resultHandler, false);
1453
        this.orderId = orderId;
1454
        this.merchantTxnId = merchantTxnId;
1455
        this.amount = amount;
1456
      }
1457
 
1458
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1459
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
1460
        createRefund_args args = new createRefund_args();
1461
        args.setOrderId(orderId);
1462
        args.setMerchantTxnId(merchantTxnId);
1463
        args.setAmount(amount);
1464
        args.write(prot);
1465
        prot.writeMessageEnd();
1466
      }
1467
 
1468
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1469
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1470
          throw new IllegalStateException("Method call not finished!");
1471
        }
1472
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1473
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1474
        return (new Client(prot)).recv_createRefund();
1475
      }
1476
    }
1477
 
8618 rajveer 1478
    public void capturePayment(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1479
      checkReady();
8618 rajveer 1480
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1481
      this.___currentMethod = method_call;
1482
      ___manager.call(method_call);
1483
    }
1484
 
1485
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1486
      private long merchantTxnId;
8618 rajveer 1487
      private boolean isDigital;
1488
      public capturePayment_call(long merchantTxnId, boolean isDigital, 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 {
3430 rajveer 1489
        super(client, protocolFactory, transport, resultHandler, false);
1490
        this.merchantTxnId = merchantTxnId;
8618 rajveer 1491
        this.isDigital = isDigital;
3430 rajveer 1492
      }
1493
 
1494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1496
        capturePayment_args args = new capturePayment_args();
1497
        args.setMerchantTxnId(merchantTxnId);
8618 rajveer 1498
        args.setIsDigital(isDigital);
3430 rajveer 1499
        args.write(prot);
1500
        prot.writeMessageEnd();
1501
      }
1502
 
1503
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1504
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1505
          throw new IllegalStateException("Method call not finished!");
1506
        }
1507
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1508
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1509
        return (new Client(prot)).recv_capturePayment();
1510
      }
1511
    }
1512
 
6486 rajveer 1513
    public void refundPayment(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<refundPayment_call> resultHandler) throws org.apache.thrift.TException {
1514
      checkReady();
1515
      refundPayment_call method_call = new refundPayment_call(merchantTxnId, amount, isDigital, resultHandler, this, ___protocolFactory, ___transport);
1516
      this.___currentMethod = method_call;
1517
      ___manager.call(method_call);
1518
    }
1519
 
1520
    public static class refundPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1521
      private long merchantTxnId;
1522
      private double amount;
1523
      private boolean isDigital;
1524
      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 {
1525
        super(client, protocolFactory, transport, resultHandler, false);
1526
        this.merchantTxnId = merchantTxnId;
1527
        this.amount = amount;
1528
        this.isDigital = isDigital;
1529
      }
1530
 
1531
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1532
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1533
        refundPayment_args args = new refundPayment_args();
1534
        args.setMerchantTxnId(merchantTxnId);
1535
        args.setAmount(amount);
1536
        args.setIsDigital(isDigital);
1537
        args.write(prot);
1538
        prot.writeMessageEnd();
1539
      }
1540
 
1541
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1542
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1543
          throw new IllegalStateException("Method call not finished!");
1544
        }
1545
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1546
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1547
        return (new Client(prot)).recv_refundPayment();
1548
      }
1549
    }
1550
 
3956 chandransh 1551
    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 {
1552
      checkReady();
1553
      partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
1554
      this.___currentMethod = method_call;
1555
      ___manager.call(method_call);
1556
    }
1557
 
1558
    public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1559
      private long merchantTxnId;
1560
      private double amount;
1561
      private String xferBy;
1562
      private String xferTxnId;
1563
      private long xferDate;
1564
      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 {
1565
        super(client, protocolFactory, transport, resultHandler, false);
1566
        this.merchantTxnId = merchantTxnId;
1567
        this.amount = amount;
1568
        this.xferBy = xferBy;
1569
        this.xferTxnId = xferTxnId;
1570
        this.xferDate = xferDate;
1571
      }
1572
 
1573
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1574
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1575
        partiallyCapturePayment_args args = new partiallyCapturePayment_args();
1576
        args.setMerchantTxnId(merchantTxnId);
1577
        args.setAmount(amount);
1578
        args.setXferBy(xferBy);
1579
        args.setXferTxnId(xferTxnId);
1580
        args.setXferDate(xferDate);
1581
        args.write(prot);
1582
        prot.writeMessageEnd();
1583
      }
1584
 
1585
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1586
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1587
          throw new IllegalStateException("Method call not finished!");
1588
        }
1589
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1590
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1591
        return (new Client(prot)).recv_partiallyCapturePayment();
1592
      }
1593
    }
1594
 
4008 mandeep.dh 1595
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
1596
      checkReady();
1597
      getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
1598
      this.___currentMethod = method_call;
1599
      ___manager.call(method_call);
1600
    }
1601
 
1602
    public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
1603
      private ExtraPaymentProcessingType category;
1604
      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 {
1605
        super(client, protocolFactory, transport, resultHandler, false);
1606
        this.category = category;
1607
      }
1608
 
1609
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1610
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1611
        getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
1612
        args.setCategory(category);
1613
        args.write(prot);
1614
        prot.writeMessageEnd();
1615
      }
1616
 
1617
      public List<Long> getResult() throws org.apache.thrift.TException {
1618
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1619
          throw new IllegalStateException("Method call not finished!");
1620
        }
1621
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1622
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1623
        return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
1624
      }
1625
    }
1626
 
1627
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
1628
      checkReady();
1629
      markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
1630
      this.___currentMethod = method_call;
1631
      ___manager.call(method_call);
1632
    }
1633
 
1634
    public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
1635
      private long paymentId;
1636
      private ExtraPaymentProcessingType category;
1637
      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 {
1638
        super(client, protocolFactory, transport, resultHandler, false);
1639
        this.paymentId = paymentId;
1640
        this.category = category;
1641
      }
1642
 
1643
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1644
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
1645
        markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
1646
        args.setPaymentId(paymentId);
1647
        args.setCategory(category);
1648
        args.write(prot);
1649
        prot.writeMessageEnd();
1650
      }
1651
 
1652
      public void getResult() throws org.apache.thrift.TException {
1653
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1654
          throw new IllegalStateException("Method call not finished!");
1655
        }
1656
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1657
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1658
        (new Client(prot)).recv_markPaymentAsProcessed();
1659
      }
1660
    }
1661
 
3430 rajveer 1662
  }
1663
 
1664
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1665
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1666
    public Processor(I iface) {
1667
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1668
    }
1669
 
1670
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1671
      super(iface, getProcessMap(processMap));
1672
    }
1673
 
1674
    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) {
1675
      processMap.put("createPayment", new createPayment());
1676
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1677
      processMap.put("getPayments", new getPayments());
4141 chandransh 1678
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
3430 rajveer 1679
      processMap.put("getPaymentGateway", new getPaymentGateway());
4600 varun.gupt 1680
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
3430 rajveer 1681
      processMap.put("getPayment", new getPayment());
1682
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
7049 anupam.sin 1683
      processMap.put("getPaymentForRechargeTxnId", new getPaymentForRechargeTxnId());
4600 varun.gupt 1684
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
3430 rajveer 1685
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1686
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1687
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
6050 anupam.sin 1688
      processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
3616 chandransh 1689
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
3430 rajveer 1690
      processMap.put("createRefund", new createRefund());
1691
      processMap.put("capturePayment", new capturePayment());
6486 rajveer 1692
      processMap.put("refundPayment", new refundPayment());
3956 chandransh 1693
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
4008 mandeep.dh 1694
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
1695
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
3430 rajveer 1696
      return processMap;
1697
    }
1698
 
1699
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
1700
      public createPayment() {
1701
        super("createPayment");
1702
      }
1703
 
1704
      protected createPayment_args getEmptyArgsInstance() {
1705
        return new createPayment_args();
1706
      }
1707
 
1708
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
123 ashish 1709
        createPayment_result result = new createPayment_result();
1710
        try {
6050 anupam.sin 1711
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital);
420 ashish 1712
          result.setSuccessIsSet(true);
123 ashish 1713
        } catch (PaymentException pe) {
1714
          result.pe = pe;
1715
        }
3430 rajveer 1716
        return result;
123 ashish 1717
      }
1718
    }
1719
 
3430 rajveer 1720
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
1721
      public getPaymentsForUser() {
1722
        super("getPaymentsForUser");
1723
      }
1724
 
1725
      protected getPaymentsForUser_args getEmptyArgsInstance() {
1726
        return new getPaymentsForUser_args();
1727
      }
1728
 
1729
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
123 ashish 1730
        getPaymentsForUser_result result = new getPaymentsForUser_result();
1731
        try {
3430 rajveer 1732
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1733
        } catch (PaymentException pe) {
1734
          result.pe = pe;
1735
        }
3430 rajveer 1736
        return result;
123 ashish 1737
      }
1738
    }
1739
 
3430 rajveer 1740
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
1741
      public getPayments() {
1742
        super("getPayments");
1743
      }
1744
 
1745
      protected getPayments_args getEmptyArgsInstance() {
1746
        return new getPayments_args();
1747
      }
1748
 
1749
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
123 ashish 1750
        getPayments_result result = new getPayments_result();
1751
        try {
3430 rajveer 1752
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1753
        } catch (PaymentException pe) {
1754
          result.pe = pe;
1755
        }
3430 rajveer 1756
        return result;
123 ashish 1757
      }
1758
    }
1759
 
4141 chandransh 1760
    private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
1761
      public getPaymentsByCapturedDate() {
1762
        super("getPaymentsByCapturedDate");
1763
      }
1764
 
1765
      protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
1766
        return new getPaymentsByCapturedDate_args();
1767
      }
1768
 
1769
      protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
1770
        getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
1771
        try {
1772
          result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
1773
        } catch (PaymentException pe) {
1774
          result.pe = pe;
1775
        }
1776
        return result;
1777
      }
1778
    }
1779
 
3430 rajveer 1780
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1781
      public getPaymentGateway() {
1782
        super("getPaymentGateway");
1783
      }
1784
 
1785
      protected getPaymentGateway_args getEmptyArgsInstance() {
1786
        return new getPaymentGateway_args();
1787
      }
1788
 
1789
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
420 ashish 1790
        getPaymentGateway_result result = new getPaymentGateway_result();
1791
        try {
3430 rajveer 1792
          result.success = iface.getPaymentGateway(args.id);
420 ashish 1793
        } catch (PaymentException pe) {
1794
          result.pe = pe;
1795
        }
3430 rajveer 1796
        return result;
420 ashish 1797
      }
1798
    }
1799
 
4600 varun.gupt 1800
    private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
1801
      public getActivePaymentGateways() {
1802
        super("getActivePaymentGateways");
1803
      }
1804
 
1805
      protected getActivePaymentGateways_args getEmptyArgsInstance() {
1806
        return new getActivePaymentGateways_args();
1807
      }
1808
 
1809
      protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
1810
        getActivePaymentGateways_result result = new getActivePaymentGateways_result();
1811
        try {
1812
          result.success = iface.getActivePaymentGateways();
1813
        } catch (PaymentException pe) {
1814
          result.pe = pe;
1815
        }
1816
        return result;
1817
      }
1818
    }
1819
 
3430 rajveer 1820
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1821
      public getPayment() {
1822
        super("getPayment");
1823
      }
1824
 
1825
      protected getPayment_args getEmptyArgsInstance() {
1826
        return new getPayment_args();
1827
      }
1828
 
1829
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
695 rajveer 1830
        getPayment_result result = new getPayment_result();
420 ashish 1831
        try {
3430 rajveer 1832
          result.success = iface.getPayment(args.id);
420 ashish 1833
        } catch (PaymentException pe) {
1834
          result.pe = pe;
1835
        }
3430 rajveer 1836
        return result;
420 ashish 1837
      }
1838
    }
1839
 
3430 rajveer 1840
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
1841
      public getPaymentForTxnId() {
1842
        super("getPaymentForTxnId");
1843
      }
1844
 
1845
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
1846
        return new getPaymentForTxnId_args();
1847
      }
1848
 
1849
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
695 rajveer 1850
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
420 ashish 1851
        try {
3430 rajveer 1852
          result.success = iface.getPaymentForTxnId(args.txnId);
420 ashish 1853
        } catch (PaymentException pe) {
1854
          result.pe = pe;
1855
        }
3430 rajveer 1856
        return result;
420 ashish 1857
      }
1858
    }
1859
 
7049 anupam.sin 1860
    private static class getPaymentForRechargeTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForRechargeTxnId_args> {
1861
      public getPaymentForRechargeTxnId() {
1862
        super("getPaymentForRechargeTxnId");
1863
      }
1864
 
1865
      protected getPaymentForRechargeTxnId_args getEmptyArgsInstance() {
1866
        return new getPaymentForRechargeTxnId_args();
1867
      }
1868
 
1869
      protected getPaymentForRechargeTxnId_result getResult(I iface, getPaymentForRechargeTxnId_args args) throws org.apache.thrift.TException {
1870
        getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
1871
        try {
1872
          result.success = iface.getPaymentForRechargeTxnId(args.txnId);
1873
        } catch (PaymentException pe) {
1874
          result.pe = pe;
1875
        }
1876
        return result;
1877
      }
1878
    }
1879
 
4600 varun.gupt 1880
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
1881
      public getSuccessfulPaymentForTxnId() {
1882
        super("getSuccessfulPaymentForTxnId");
1883
      }
1884
 
1885
      protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
1886
        return new getSuccessfulPaymentForTxnId_args();
1887
      }
1888
 
1889
      protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
1890
        getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
1891
        try {
1892
          result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
1893
        } catch (PaymentException pe) {
1894
          result.pe = pe;
1895
        }
1896
        return result;
1897
      }
1898
    }
1899
 
3430 rajveer 1900
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1901
      public updatePaymentDetails() {
1902
        super("updatePaymentDetails");
1903
      }
1904
 
1905
      protected updatePaymentDetails_args getEmptyArgsInstance() {
1906
        return new updatePaymentDetails_args();
1907
      }
1908
 
1909
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
695 rajveer 1910
        updatePaymentDetails_result result = new updatePaymentDetails_result();
420 ashish 1911
        try {
3430 rajveer 1912
          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 1913
          result.setSuccessIsSet(true);
420 ashish 1914
        } catch (PaymentException pe) {
1915
          result.pe = pe;
1916
        }
3430 rajveer 1917
        return result;
420 ashish 1918
      }
1919
    }
1920
 
3430 rajveer 1921
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
1922
      public getSuccessfulPaymentsAmountRange() {
1923
        super("getSuccessfulPaymentsAmountRange");
1924
      }
1925
 
1926
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
1927
        return new getSuccessfulPaymentsAmountRange_args();
1928
      }
1929
 
1930
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
1731 ankur.sing 1931
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 1932
        result.success = iface.getSuccessfulPaymentsAmountRange();
1933
        return result;
1629 ankur.sing 1934
      }
1935
    }
1936
 
3430 rajveer 1937
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1938
      public initializeHdfcPayment() {
1939
        super("initializeHdfcPayment");
1940
      }
1941
 
1942
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
1943
        return new initializeHdfcPayment_args();
1944
      }
1945
 
1946
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2462 chandransh 1947
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
1948
        try {
3430 rajveer 1949
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
2462 chandransh 1950
        } catch (PaymentException pe) {
1951
          result.pe = pe;
1952
        }
3430 rajveer 1953
        return result;
2462 chandransh 1954
      }
1955
    }
1956
 
6050 anupam.sin 1957
    private static class doHdfcPaymentForDigitalOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doHdfcPaymentForDigitalOrder_args> {
1958
      public doHdfcPaymentForDigitalOrder() {
1959
        super("doHdfcPaymentForDigitalOrder");
1960
      }
1961
 
1962
      protected doHdfcPaymentForDigitalOrder_args getEmptyArgsInstance() {
1963
        return new doHdfcPaymentForDigitalOrder_args();
1964
      }
1965
 
1966
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
1967
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
1968
        try {
6228 anupam.sin 1969
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone);
6050 anupam.sin 1970
        } catch (PaymentException pe) {
1971
          result.pe = pe;
1972
        }
1973
        return result;
1974
      }
1975
    }
1976
 
3616 chandransh 1977
    private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
1978
      public initializeHdfcEmiPayment() {
1979
        super("initializeHdfcEmiPayment");
1980
      }
1981
 
1982
      protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
1983
        return new initializeHdfcEmiPayment_args();
1984
      }
1985
 
1986
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
1987
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
1988
        try {
1989
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
1990
        } catch (PaymentException pe) {
1991
          result.pe = pe;
1992
        }
1993
        return result;
1994
      }
1995
    }
1996
 
3430 rajveer 1997
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
1998
      public createRefund() {
1999
        super("createRefund");
2000
      }
2001
 
2002
      protected createRefund_args getEmptyArgsInstance() {
2003
        return new createRefund_args();
2004
      }
2005
 
2006
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
2690 chandransh 2007
        createRefund_result result = new createRefund_result();
2008
        try {
3430 rajveer 2009
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
2690 chandransh 2010
          result.setSuccessIsSet(true);
2011
        } catch (PaymentException pe) {
2012
          result.pe = pe;
2013
        }
3430 rajveer 2014
        return result;
2690 chandransh 2015
      }
2016
    }
2017
 
3430 rajveer 2018
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
2019
      public capturePayment() {
2020
        super("capturePayment");
2021
      }
2022
 
2023
      protected capturePayment_args getEmptyArgsInstance() {
2024
        return new capturePayment_args();
2025
      }
2026
 
2027
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
3010 chandransh 2028
        capturePayment_result result = new capturePayment_result();
2029
        try {
8618 rajveer 2030
          result.success = iface.capturePayment(args.merchantTxnId, args.isDigital);
3010 chandransh 2031
          result.setSuccessIsSet(true);
2032
        } catch (PaymentException pe) {
2033
          result.pe = pe;
2034
        }
3430 rajveer 2035
        return result;
3010 chandransh 2036
      }
2037
    }
2038
 
6486 rajveer 2039
    private static class refundPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundPayment_args> {
2040
      public refundPayment() {
2041
        super("refundPayment");
2042
      }
2043
 
2044
      protected refundPayment_args getEmptyArgsInstance() {
2045
        return new refundPayment_args();
2046
      }
2047
 
2048
      protected refundPayment_result getResult(I iface, refundPayment_args args) throws org.apache.thrift.TException {
2049
        refundPayment_result result = new refundPayment_result();
2050
        try {
2051
          result.success = iface.refundPayment(args.merchantTxnId, args.amount, args.isDigital);
2052
          result.setSuccessIsSet(true);
2053
        } catch (PaymentException pe) {
2054
          result.pe = pe;
2055
        }
2056
        return result;
2057
      }
2058
    }
2059
 
3956 chandransh 2060
    private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
2061
      public partiallyCapturePayment() {
2062
        super("partiallyCapturePayment");
2063
      }
2064
 
2065
      protected partiallyCapturePayment_args getEmptyArgsInstance() {
2066
        return new partiallyCapturePayment_args();
2067
      }
2068
 
2069
      protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
2070
        partiallyCapturePayment_result result = new partiallyCapturePayment_result();
2071
        try {
2072
          result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
2073
          result.setSuccessIsSet(true);
2074
        } catch (PaymentException pe) {
2075
          result.pe = pe;
2076
        }
2077
        return result;
2078
      }
2079
    }
2080
 
4008 mandeep.dh 2081
    private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
2082
      public getPaymentsRequiringExtraProcessing() {
2083
        super("getPaymentsRequiringExtraProcessing");
2084
      }
2085
 
2086
      protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
2087
        return new getPaymentsRequiringExtraProcessing_args();
2088
      }
2089
 
2090
      protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
2091
        getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
2092
        result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
2093
        return result;
2094
      }
2095
    }
2096
 
2097
    private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
2098
      public markPaymentAsProcessed() {
2099
        super("markPaymentAsProcessed");
2100
      }
2101
 
2102
      protected markPaymentAsProcessed_args getEmptyArgsInstance() {
2103
        return new markPaymentAsProcessed_args();
2104
      }
2105
 
2106
      protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
2107
        markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
2108
        iface.markPaymentAsProcessed(args.paymentId, args.category);
2109
        return result;
2110
      }
2111
    }
2112
 
123 ashish 2113
  }
2114
 
3430 rajveer 2115
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
2116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
123 ashish 2117
 
3430 rajveer 2118
    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);
2119
    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);
2120
    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);
2121
    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 2122
    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 2123
 
3430 rajveer 2124
    private long userId; // required
2125
    private double amount; // required
2126
    private long gatewayId; // required
2127
    private long txnId; // required
6050 anupam.sin 2128
    private boolean isDigital; // required
123 ashish 2129
 
2130
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2131
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 2132
      USER_ID((short)1, "userId"),
2133
      AMOUNT((short)2, "amount"),
2134
      GATEWAY_ID((short)3, "gatewayId"),
6050 anupam.sin 2135
      TXN_ID((short)4, "txnId"),
2136
      IS_DIGITAL((short)5, "isDigital");
123 ashish 2137
 
2138
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2139
 
2140
      static {
2141
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2142
          byName.put(field.getFieldName(), field);
2143
        }
2144
      }
2145
 
2146
      /**
2147
       * Find the _Fields constant that matches fieldId, or null if its not found.
2148
       */
2149
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2150
        switch(fieldId) {
2151
          case 1: // USER_ID
2152
            return USER_ID;
2153
          case 2: // AMOUNT
2154
            return AMOUNT;
2155
          case 3: // GATEWAY_ID
2156
            return GATEWAY_ID;
2157
          case 4: // TXN_ID
2158
            return TXN_ID;
6050 anupam.sin 2159
          case 5: // IS_DIGITAL
2160
            return IS_DIGITAL;
3430 rajveer 2161
          default:
2162
            return null;
2163
        }
123 ashish 2164
      }
2165
 
2166
      /**
2167
       * Find the _Fields constant that matches fieldId, throwing an exception
2168
       * if it is not found.
2169
       */
2170
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2171
        _Fields fields = findByThriftId(fieldId);
2172
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2173
        return fields;
2174
      }
2175
 
2176
      /**
2177
       * Find the _Fields constant that matches name, or null if its not found.
2178
       */
2179
      public static _Fields findByName(String name) {
2180
        return byName.get(name);
2181
      }
2182
 
2183
      private final short _thriftId;
2184
      private final String _fieldName;
2185
 
2186
      _Fields(short thriftId, String fieldName) {
2187
        _thriftId = thriftId;
2188
        _fieldName = fieldName;
2189
      }
2190
 
2191
      public short getThriftFieldId() {
2192
        return _thriftId;
2193
      }
2194
 
2195
      public String getFieldName() {
2196
        return _fieldName;
2197
      }
2198
    }
2199
 
2200
    // isset id assignments
695 rajveer 2201
    private static final int __USERID_ISSET_ID = 0;
2202
    private static final int __AMOUNT_ISSET_ID = 1;
2203
    private static final int __GATEWAYID_ISSET_ID = 2;
2204
    private static final int __TXNID_ISSET_ID = 3;
6050 anupam.sin 2205
    private static final int __ISDIGITAL_ISSET_ID = 4;
2206
    private BitSet __isset_bit_vector = new BitSet(5);
123 ashish 2207
 
3430 rajveer 2208
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2209
    static {
3430 rajveer 2210
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2211
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2213
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
2215
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2217
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6050 anupam.sin 2219
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 2221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
123 ashish 2223
    }
2224
 
2225
    public createPayment_args() {
2226
    }
2227
 
2228
    public createPayment_args(
695 rajveer 2229
      long userId,
123 ashish 2230
      double amount,
695 rajveer 2231
      long gatewayId,
6050 anupam.sin 2232
      long txnId,
2233
      boolean isDigital)
123 ashish 2234
    {
2235
      this();
695 rajveer 2236
      this.userId = userId;
2237
      setUserIdIsSet(true);
123 ashish 2238
      this.amount = amount;
2239
      setAmountIsSet(true);
695 rajveer 2240
      this.gatewayId = gatewayId;
2241
      setGatewayIdIsSet(true);
2242
      this.txnId = txnId;
2243
      setTxnIdIsSet(true);
6050 anupam.sin 2244
      this.isDigital = isDigital;
2245
      setIsDigitalIsSet(true);
123 ashish 2246
    }
2247
 
2248
    /**
2249
     * Performs a deep copy on <i>other</i>.
2250
     */
2251
    public createPayment_args(createPayment_args other) {
2252
      __isset_bit_vector.clear();
2253
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 2254
      this.userId = other.userId;
123 ashish 2255
      this.amount = other.amount;
695 rajveer 2256
      this.gatewayId = other.gatewayId;
2257
      this.txnId = other.txnId;
6050 anupam.sin 2258
      this.isDigital = other.isDigital;
123 ashish 2259
    }
2260
 
2261
    public createPayment_args deepCopy() {
2262
      return new createPayment_args(this);
2263
    }
2264
 
3430 rajveer 2265
    @Override
2266
    public void clear() {
2267
      setUserIdIsSet(false);
2268
      this.userId = 0;
2269
      setAmountIsSet(false);
2270
      this.amount = 0.0;
2271
      setGatewayIdIsSet(false);
2272
      this.gatewayId = 0;
2273
      setTxnIdIsSet(false);
2274
      this.txnId = 0;
6050 anupam.sin 2275
      setIsDigitalIsSet(false);
2276
      this.isDigital = false;
123 ashish 2277
    }
2278
 
695 rajveer 2279
    public long getUserId() {
2280
      return this.userId;
123 ashish 2281
    }
2282
 
3430 rajveer 2283
    public void setUserId(long userId) {
695 rajveer 2284
      this.userId = userId;
2285
      setUserIdIsSet(true);
123 ashish 2286
    }
2287
 
695 rajveer 2288
    public void unsetUserId() {
2289
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 2290
    }
2291
 
3430 rajveer 2292
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
695 rajveer 2293
    public boolean isSetUserId() {
2294
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 2295
    }
2296
 
695 rajveer 2297
    public void setUserIdIsSet(boolean value) {
2298
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
123 ashish 2299
    }
2300
 
2301
    public double getAmount() {
2302
      return this.amount;
2303
    }
2304
 
3430 rajveer 2305
    public void setAmount(double amount) {
123 ashish 2306
      this.amount = amount;
2307
      setAmountIsSet(true);
2308
    }
2309
 
2310
    public void unsetAmount() {
2311
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
2312
    }
2313
 
3430 rajveer 2314
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
123 ashish 2315
    public boolean isSetAmount() {
2316
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
2317
    }
2318
 
2319
    public void setAmountIsSet(boolean value) {
2320
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
2321
    }
2322
 
695 rajveer 2323
    public long getGatewayId() {
2324
      return this.gatewayId;
123 ashish 2325
    }
2326
 
3430 rajveer 2327
    public void setGatewayId(long gatewayId) {
695 rajveer 2328
      this.gatewayId = gatewayId;
2329
      setGatewayIdIsSet(true);
123 ashish 2330
    }
2331
 
695 rajveer 2332
    public void unsetGatewayId() {
2333
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 2334
    }
2335
 
3430 rajveer 2336
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 2337
    public boolean isSetGatewayId() {
2338
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 2339
    }
2340
 
695 rajveer 2341
    public void setGatewayIdIsSet(boolean value) {
2342
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 2343
    }
2344
 
695 rajveer 2345
    public long getTxnId() {
2346
      return this.txnId;
2347
    }
2348
 
3430 rajveer 2349
    public void setTxnId(long txnId) {
695 rajveer 2350
      this.txnId = txnId;
2351
      setTxnIdIsSet(true);
2352
    }
2353
 
2354
    public void unsetTxnId() {
2355
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
2356
    }
2357
 
3430 rajveer 2358
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 2359
    public boolean isSetTxnId() {
2360
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
2361
    }
2362
 
2363
    public void setTxnIdIsSet(boolean value) {
2364
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
2365
    }
2366
 
6050 anupam.sin 2367
    public boolean isIsDigital() {
2368
      return this.isDigital;
2369
    }
2370
 
2371
    public void setIsDigital(boolean isDigital) {
2372
      this.isDigital = isDigital;
2373
      setIsDigitalIsSet(true);
2374
    }
2375
 
2376
    public void unsetIsDigital() {
2377
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
2378
    }
2379
 
2380
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
2381
    public boolean isSetIsDigital() {
2382
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
2383
    }
2384
 
2385
    public void setIsDigitalIsSet(boolean value) {
2386
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
2387
    }
2388
 
123 ashish 2389
    public void setFieldValue(_Fields field, Object value) {
2390
      switch (field) {
2391
      case USER_ID:
2392
        if (value == null) {
695 rajveer 2393
          unsetUserId();
123 ashish 2394
        } else {
695 rajveer 2395
          setUserId((Long)value);
123 ashish 2396
        }
2397
        break;
2398
 
695 rajveer 2399
      case AMOUNT:
123 ashish 2400
        if (value == null) {
695 rajveer 2401
          unsetAmount();
123 ashish 2402
        } else {
695 rajveer 2403
          setAmount((Double)value);
123 ashish 2404
        }
2405
        break;
2406
 
695 rajveer 2407
      case GATEWAY_ID:
123 ashish 2408
        if (value == null) {
695 rajveer 2409
          unsetGatewayId();
123 ashish 2410
        } else {
695 rajveer 2411
          setGatewayId((Long)value);
123 ashish 2412
        }
2413
        break;
2414
 
695 rajveer 2415
      case TXN_ID:
123 ashish 2416
        if (value == null) {
695 rajveer 2417
          unsetTxnId();
123 ashish 2418
        } else {
695 rajveer 2419
          setTxnId((Long)value);
123 ashish 2420
        }
2421
        break;
2422
 
6050 anupam.sin 2423
      case IS_DIGITAL:
2424
        if (value == null) {
2425
          unsetIsDigital();
2426
        } else {
2427
          setIsDigital((Boolean)value);
2428
        }
2429
        break;
2430
 
123 ashish 2431
      }
2432
    }
2433
 
2434
    public Object getFieldValue(_Fields field) {
2435
      switch (field) {
2436
      case USER_ID:
3430 rajveer 2437
        return Long.valueOf(getUserId());
123 ashish 2438
 
2439
      case AMOUNT:
3430 rajveer 2440
        return Double.valueOf(getAmount());
123 ashish 2441
 
420 ashish 2442
      case GATEWAY_ID:
3430 rajveer 2443
        return Long.valueOf(getGatewayId());
123 ashish 2444
 
695 rajveer 2445
      case TXN_ID:
3430 rajveer 2446
        return Long.valueOf(getTxnId());
695 rajveer 2447
 
6050 anupam.sin 2448
      case IS_DIGITAL:
2449
        return Boolean.valueOf(isIsDigital());
2450
 
123 ashish 2451
      }
2452
      throw new IllegalStateException();
2453
    }
2454
 
3430 rajveer 2455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2456
    public boolean isSet(_Fields field) {
2457
      if (field == null) {
2458
        throw new IllegalArgumentException();
2459
      }
123 ashish 2460
 
2461
      switch (field) {
2462
      case USER_ID:
695 rajveer 2463
        return isSetUserId();
123 ashish 2464
      case AMOUNT:
2465
        return isSetAmount();
420 ashish 2466
      case GATEWAY_ID:
695 rajveer 2467
        return isSetGatewayId();
2468
      case TXN_ID:
2469
        return isSetTxnId();
6050 anupam.sin 2470
      case IS_DIGITAL:
2471
        return isSetIsDigital();
123 ashish 2472
      }
2473
      throw new IllegalStateException();
2474
    }
2475
 
2476
    @Override
2477
    public boolean equals(Object that) {
2478
      if (that == null)
2479
        return false;
2480
      if (that instanceof createPayment_args)
2481
        return this.equals((createPayment_args)that);
2482
      return false;
2483
    }
2484
 
2485
    public boolean equals(createPayment_args that) {
2486
      if (that == null)
2487
        return false;
2488
 
695 rajveer 2489
      boolean this_present_userId = true;
2490
      boolean that_present_userId = true;
2491
      if (this_present_userId || that_present_userId) {
2492
        if (!(this_present_userId && that_present_userId))
123 ashish 2493
          return false;
695 rajveer 2494
        if (this.userId != that.userId)
123 ashish 2495
          return false;
2496
      }
2497
 
2498
      boolean this_present_amount = true;
2499
      boolean that_present_amount = true;
2500
      if (this_present_amount || that_present_amount) {
2501
        if (!(this_present_amount && that_present_amount))
2502
          return false;
2503
        if (this.amount != that.amount)
2504
          return false;
2505
      }
2506
 
695 rajveer 2507
      boolean this_present_gatewayId = true;
2508
      boolean that_present_gatewayId = true;
2509
      if (this_present_gatewayId || that_present_gatewayId) {
2510
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 2511
          return false;
695 rajveer 2512
        if (this.gatewayId != that.gatewayId)
123 ashish 2513
          return false;
2514
      }
2515
 
695 rajveer 2516
      boolean this_present_txnId = true;
2517
      boolean that_present_txnId = true;
2518
      if (this_present_txnId || that_present_txnId) {
2519
        if (!(this_present_txnId && that_present_txnId))
2520
          return false;
2521
        if (this.txnId != that.txnId)
2522
          return false;
2523
      }
2524
 
6050 anupam.sin 2525
      boolean this_present_isDigital = true;
2526
      boolean that_present_isDigital = true;
2527
      if (this_present_isDigital || that_present_isDigital) {
2528
        if (!(this_present_isDigital && that_present_isDigital))
2529
          return false;
2530
        if (this.isDigital != that.isDigital)
2531
          return false;
2532
      }
2533
 
123 ashish 2534
      return true;
2535
    }
2536
 
2537
    @Override
2538
    public int hashCode() {
2539
      return 0;
2540
    }
2541
 
2542
    public int compareTo(createPayment_args other) {
2543
      if (!getClass().equals(other.getClass())) {
2544
        return getClass().getName().compareTo(other.getClass().getName());
2545
      }
2546
 
2547
      int lastComparison = 0;
2548
      createPayment_args typedOther = (createPayment_args)other;
2549
 
3430 rajveer 2550
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 2551
      if (lastComparison != 0) {
2552
        return lastComparison;
2553
      }
3430 rajveer 2554
      if (isSetUserId()) {
2555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
2556
        if (lastComparison != 0) {
2557
          return lastComparison;
2558
        }
123 ashish 2559
      }
3430 rajveer 2560
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
123 ashish 2561
      if (lastComparison != 0) {
2562
        return lastComparison;
2563
      }
3430 rajveer 2564
      if (isSetAmount()) {
2565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
2566
        if (lastComparison != 0) {
2567
          return lastComparison;
2568
        }
123 ashish 2569
      }
3430 rajveer 2570
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 2571
      if (lastComparison != 0) {
2572
        return lastComparison;
2573
      }
3430 rajveer 2574
      if (isSetGatewayId()) {
2575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
2576
        if (lastComparison != 0) {
2577
          return lastComparison;
2578
        }
123 ashish 2579
      }
3430 rajveer 2580
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
123 ashish 2581
      if (lastComparison != 0) {
2582
        return lastComparison;
2583
      }
3430 rajveer 2584
      if (isSetTxnId()) {
2585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
2586
        if (lastComparison != 0) {
2587
          return lastComparison;
2588
        }
123 ashish 2589
      }
6050 anupam.sin 2590
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
2591
      if (lastComparison != 0) {
2592
        return lastComparison;
2593
      }
2594
      if (isSetIsDigital()) {
2595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
2596
        if (lastComparison != 0) {
2597
          return lastComparison;
2598
        }
2599
      }
123 ashish 2600
      return 0;
2601
    }
2602
 
3430 rajveer 2603
    public _Fields fieldForId(int fieldId) {
2604
      return _Fields.findByThriftId(fieldId);
2605
    }
2606
 
2607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2608
      org.apache.thrift.protocol.TField field;
123 ashish 2609
      iprot.readStructBegin();
2610
      while (true)
2611
      {
2612
        field = iprot.readFieldBegin();
3430 rajveer 2613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2614
          break;
2615
        }
3430 rajveer 2616
        switch (field.id) {
2617
          case 1: // USER_ID
2618
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2619
              this.userId = iprot.readI64();
2620
              setUserIdIsSet(true);
2621
            } else { 
2622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2623
            }
2624
            break;
2625
          case 2: // AMOUNT
2626
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2627
              this.amount = iprot.readDouble();
2628
              setAmountIsSet(true);
2629
            } else { 
2630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2631
            }
2632
            break;
2633
          case 3: // GATEWAY_ID
2634
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2635
              this.gatewayId = iprot.readI64();
2636
              setGatewayIdIsSet(true);
2637
            } else { 
2638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2639
            }
2640
            break;
2641
          case 4: // TXN_ID
2642
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2643
              this.txnId = iprot.readI64();
2644
              setTxnIdIsSet(true);
2645
            } else { 
2646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2647
            }
2648
            break;
6050 anupam.sin 2649
          case 5: // IS_DIGITAL
2650
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2651
              this.isDigital = iprot.readBool();
2652
              setIsDigitalIsSet(true);
2653
            } else { 
2654
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2655
            }
2656
            break;
3430 rajveer 2657
          default:
2658
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2659
        }
3430 rajveer 2660
        iprot.readFieldEnd();
123 ashish 2661
      }
2662
      iprot.readStructEnd();
2663
      validate();
2664
    }
2665
 
3430 rajveer 2666
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2667
      validate();
2668
 
2669
      oprot.writeStructBegin(STRUCT_DESC);
2670
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
695 rajveer 2671
      oprot.writeI64(this.userId);
123 ashish 2672
      oprot.writeFieldEnd();
2673
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
2674
      oprot.writeDouble(this.amount);
2675
      oprot.writeFieldEnd();
420 ashish 2676
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 2677
      oprot.writeI64(this.gatewayId);
420 ashish 2678
      oprot.writeFieldEnd();
695 rajveer 2679
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
2680
      oprot.writeI64(this.txnId);
2681
      oprot.writeFieldEnd();
6050 anupam.sin 2682
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
2683
      oprot.writeBool(this.isDigital);
2684
      oprot.writeFieldEnd();
123 ashish 2685
      oprot.writeFieldStop();
2686
      oprot.writeStructEnd();
2687
    }
2688
 
2689
    @Override
2690
    public String toString() {
2691
      StringBuilder sb = new StringBuilder("createPayment_args(");
2692
      boolean first = true;
2693
 
695 rajveer 2694
      sb.append("userId:");
2695
      sb.append(this.userId);
123 ashish 2696
      first = false;
2697
      if (!first) sb.append(", ");
2698
      sb.append("amount:");
2699
      sb.append(this.amount);
2700
      first = false;
2701
      if (!first) sb.append(", ");
695 rajveer 2702
      sb.append("gatewayId:");
2703
      sb.append(this.gatewayId);
123 ashish 2704
      first = false;
695 rajveer 2705
      if (!first) sb.append(", ");
2706
      sb.append("txnId:");
2707
      sb.append(this.txnId);
2708
      first = false;
6050 anupam.sin 2709
      if (!first) sb.append(", ");
2710
      sb.append("isDigital:");
2711
      sb.append(this.isDigital);
2712
      first = false;
123 ashish 2713
      sb.append(")");
2714
      return sb.toString();
2715
    }
2716
 
3430 rajveer 2717
    public void validate() throws org.apache.thrift.TException {
123 ashish 2718
      // check for required fields
2719
    }
2720
 
3430 rajveer 2721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2722
      try {
2723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2724
      } catch (org.apache.thrift.TException te) {
2725
        throw new java.io.IOException(te);
2726
      }
2727
    }
2728
 
2729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2730
      try {
2731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2732
      } catch (org.apache.thrift.TException te) {
2733
        throw new java.io.IOException(te);
2734
      }
2735
    }
2736
 
123 ashish 2737
  }
2738
 
3430 rajveer 2739
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
2740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
123 ashish 2741
 
3430 rajveer 2742
    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);
2743
    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 2744
 
3430 rajveer 2745
    private long success; // required
2746
    private PaymentException pe; // required
123 ashish 2747
 
2748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2750
      SUCCESS((short)0, "success"),
2751
      PE((short)1, "pe");
2752
 
2753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2754
 
2755
      static {
2756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2757
          byName.put(field.getFieldName(), field);
2758
        }
2759
      }
2760
 
2761
      /**
2762
       * Find the _Fields constant that matches fieldId, or null if its not found.
2763
       */
2764
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2765
        switch(fieldId) {
2766
          case 0: // SUCCESS
2767
            return SUCCESS;
2768
          case 1: // PE
2769
            return PE;
2770
          default:
2771
            return null;
2772
        }
123 ashish 2773
      }
2774
 
2775
      /**
2776
       * Find the _Fields constant that matches fieldId, throwing an exception
2777
       * if it is not found.
2778
       */
2779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2780
        _Fields fields = findByThriftId(fieldId);
2781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2782
        return fields;
2783
      }
2784
 
2785
      /**
2786
       * Find the _Fields constant that matches name, or null if its not found.
2787
       */
2788
      public static _Fields findByName(String name) {
2789
        return byName.get(name);
2790
      }
2791
 
2792
      private final short _thriftId;
2793
      private final String _fieldName;
2794
 
2795
      _Fields(short thriftId, String fieldName) {
2796
        _thriftId = thriftId;
2797
        _fieldName = fieldName;
2798
      }
2799
 
2800
      public short getThriftFieldId() {
2801
        return _thriftId;
2802
      }
2803
 
2804
      public String getFieldName() {
2805
        return _fieldName;
2806
      }
2807
    }
2808
 
2809
    // isset id assignments
420 ashish 2810
    private static final int __SUCCESS_ISSET_ID = 0;
2811
    private BitSet __isset_bit_vector = new BitSet(1);
123 ashish 2812
 
3430 rajveer 2813
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2814
    static {
3430 rajveer 2815
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2816
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2818
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
123 ashish 2822
    }
2823
 
2824
    public createPayment_result() {
2825
    }
2826
 
2827
    public createPayment_result(
420 ashish 2828
      long success,
123 ashish 2829
      PaymentException pe)
2830
    {
2831
      this();
2832
      this.success = success;
420 ashish 2833
      setSuccessIsSet(true);
123 ashish 2834
      this.pe = pe;
2835
    }
2836
 
2837
    /**
2838
     * Performs a deep copy on <i>other</i>.
2839
     */
2840
    public createPayment_result(createPayment_result other) {
420 ashish 2841
      __isset_bit_vector.clear();
2842
      __isset_bit_vector.or(other.__isset_bit_vector);
2843
      this.success = other.success;
123 ashish 2844
      if (other.isSetPe()) {
2845
        this.pe = new PaymentException(other.pe);
2846
      }
2847
    }
2848
 
2849
    public createPayment_result deepCopy() {
2850
      return new createPayment_result(this);
2851
    }
2852
 
3430 rajveer 2853
    @Override
2854
    public void clear() {
2855
      setSuccessIsSet(false);
2856
      this.success = 0;
2857
      this.pe = null;
123 ashish 2858
    }
2859
 
420 ashish 2860
    public long getSuccess() {
123 ashish 2861
      return this.success;
2862
    }
2863
 
3430 rajveer 2864
    public void setSuccess(long success) {
123 ashish 2865
      this.success = success;
420 ashish 2866
      setSuccessIsSet(true);
123 ashish 2867
    }
2868
 
2869
    public void unsetSuccess() {
420 ashish 2870
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 2871
    }
2872
 
3430 rajveer 2873
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 2874
    public boolean isSetSuccess() {
420 ashish 2875
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 2876
    }
2877
 
2878
    public void setSuccessIsSet(boolean value) {
420 ashish 2879
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
123 ashish 2880
    }
2881
 
2882
    public PaymentException getPe() {
2883
      return this.pe;
2884
    }
2885
 
3430 rajveer 2886
    public void setPe(PaymentException pe) {
123 ashish 2887
      this.pe = pe;
2888
    }
2889
 
2890
    public void unsetPe() {
2891
      this.pe = null;
2892
    }
2893
 
3430 rajveer 2894
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 2895
    public boolean isSetPe() {
2896
      return this.pe != null;
2897
    }
2898
 
2899
    public void setPeIsSet(boolean value) {
2900
      if (!value) {
2901
        this.pe = null;
2902
      }
2903
    }
2904
 
2905
    public void setFieldValue(_Fields field, Object value) {
2906
      switch (field) {
2907
      case SUCCESS:
2908
        if (value == null) {
2909
          unsetSuccess();
2910
        } else {
420 ashish 2911
          setSuccess((Long)value);
123 ashish 2912
        }
2913
        break;
2914
 
2915
      case PE:
2916
        if (value == null) {
2917
          unsetPe();
2918
        } else {
2919
          setPe((PaymentException)value);
2920
        }
2921
        break;
2922
 
2923
      }
2924
    }
2925
 
2926
    public Object getFieldValue(_Fields field) {
2927
      switch (field) {
2928
      case SUCCESS:
3430 rajveer 2929
        return Long.valueOf(getSuccess());
123 ashish 2930
 
2931
      case PE:
2932
        return getPe();
2933
 
2934
      }
2935
      throw new IllegalStateException();
2936
    }
2937
 
3430 rajveer 2938
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2939
    public boolean isSet(_Fields field) {
2940
      if (field == null) {
2941
        throw new IllegalArgumentException();
2942
      }
123 ashish 2943
 
2944
      switch (field) {
2945
      case SUCCESS:
2946
        return isSetSuccess();
2947
      case PE:
2948
        return isSetPe();
2949
      }
2950
      throw new IllegalStateException();
2951
    }
2952
 
2953
    @Override
2954
    public boolean equals(Object that) {
2955
      if (that == null)
2956
        return false;
2957
      if (that instanceof createPayment_result)
2958
        return this.equals((createPayment_result)that);
2959
      return false;
2960
    }
2961
 
2962
    public boolean equals(createPayment_result that) {
2963
      if (that == null)
2964
        return false;
2965
 
420 ashish 2966
      boolean this_present_success = true;
2967
      boolean that_present_success = true;
123 ashish 2968
      if (this_present_success || that_present_success) {
2969
        if (!(this_present_success && that_present_success))
2970
          return false;
420 ashish 2971
        if (this.success != that.success)
123 ashish 2972
          return false;
2973
      }
2974
 
2975
      boolean this_present_pe = true && this.isSetPe();
2976
      boolean that_present_pe = true && that.isSetPe();
2977
      if (this_present_pe || that_present_pe) {
2978
        if (!(this_present_pe && that_present_pe))
2979
          return false;
2980
        if (!this.pe.equals(that.pe))
2981
          return false;
2982
      }
2983
 
2984
      return true;
2985
    }
2986
 
2987
    @Override
2988
    public int hashCode() {
2989
      return 0;
2990
    }
2991
 
420 ashish 2992
    public int compareTo(createPayment_result other) {
2993
      if (!getClass().equals(other.getClass())) {
2994
        return getClass().getName().compareTo(other.getClass().getName());
2995
      }
2996
 
2997
      int lastComparison = 0;
2998
      createPayment_result typedOther = (createPayment_result)other;
2999
 
3430 rajveer 3000
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 3001
      if (lastComparison != 0) {
3002
        return lastComparison;
3003
      }
3430 rajveer 3004
      if (isSetSuccess()) {
3005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3006
        if (lastComparison != 0) {
3007
          return lastComparison;
3008
        }
420 ashish 3009
      }
3430 rajveer 3010
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 3011
      if (lastComparison != 0) {
3012
        return lastComparison;
3013
      }
3430 rajveer 3014
      if (isSetPe()) {
3015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3016
        if (lastComparison != 0) {
3017
          return lastComparison;
3018
        }
420 ashish 3019
      }
3020
      return 0;
3021
    }
3022
 
3430 rajveer 3023
    public _Fields fieldForId(int fieldId) {
3024
      return _Fields.findByThriftId(fieldId);
3025
    }
3026
 
3027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3028
      org.apache.thrift.protocol.TField field;
123 ashish 3029
      iprot.readStructBegin();
3030
      while (true)
3031
      {
3032
        field = iprot.readFieldBegin();
3430 rajveer 3033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3034
          break;
3035
        }
3430 rajveer 3036
        switch (field.id) {
3037
          case 0: // SUCCESS
3038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3039
              this.success = iprot.readI64();
3040
              setSuccessIsSet(true);
3041
            } else { 
3042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3043
            }
3044
            break;
3045
          case 1: // PE
3046
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3047
              this.pe = new PaymentException();
3048
              this.pe.read(iprot);
3049
            } else { 
3050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3051
            }
3052
            break;
3053
          default:
3054
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3055
        }
3430 rajveer 3056
        iprot.readFieldEnd();
123 ashish 3057
      }
3058
      iprot.readStructEnd();
3059
      validate();
3060
    }
3061
 
3430 rajveer 3062
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3063
      oprot.writeStructBegin(STRUCT_DESC);
3064
 
3065
      if (this.isSetSuccess()) {
3066
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 3067
        oprot.writeI64(this.success);
123 ashish 3068
        oprot.writeFieldEnd();
3069
      } else if (this.isSetPe()) {
3070
        oprot.writeFieldBegin(PE_FIELD_DESC);
3071
        this.pe.write(oprot);
3072
        oprot.writeFieldEnd();
3073
      }
3074
      oprot.writeFieldStop();
3075
      oprot.writeStructEnd();
3076
    }
3077
 
3078
    @Override
3079
    public String toString() {
3080
      StringBuilder sb = new StringBuilder("createPayment_result(");
3081
      boolean first = true;
3082
 
3083
      sb.append("success:");
420 ashish 3084
      sb.append(this.success);
123 ashish 3085
      first = false;
3086
      if (!first) sb.append(", ");
3087
      sb.append("pe:");
3088
      if (this.pe == null) {
3089
        sb.append("null");
3090
      } else {
3091
        sb.append(this.pe);
3092
      }
3093
      first = false;
3094
      sb.append(")");
3095
      return sb.toString();
3096
    }
3097
 
3430 rajveer 3098
    public void validate() throws org.apache.thrift.TException {
123 ashish 3099
      // check for required fields
3100
    }
3101
 
3430 rajveer 3102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3103
      try {
3104
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3105
      } catch (org.apache.thrift.TException te) {
3106
        throw new java.io.IOException(te);
3107
      }
3108
    }
3109
 
3110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3111
      try {
3112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3113
      } catch (org.apache.thrift.TException te) {
3114
        throw new java.io.IOException(te);
3115
      }
3116
    }
3117
 
123 ashish 3118
  }
3119
 
3430 rajveer 3120
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
3121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
123 ashish 3122
 
3430 rajveer 3123
    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);
3124
    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);
3125
    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);
3126
    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);
3127
    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 3128
 
3430 rajveer 3129
    private long userId; // required
3130
    private long fromTime; // required
3131
    private long toTime; // required
3132
    private PaymentStatus status; // required
3133
    private long gatewayId; // required
123 ashish 3134
 
3135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3137
      USER_ID((short)1, "userId"),
695 rajveer 3138
      FROM_TIME((short)2, "fromTime"),
3139
      TO_TIME((short)3, "toTime"),
123 ashish 3140
      /**
3141
       * 
3142
       * @see PaymentStatus
3143
       */
3144
      STATUS((short)4, "status"),
695 rajveer 3145
      GATEWAY_ID((short)5, "gatewayId");
123 ashish 3146
 
3147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3148
 
3149
      static {
3150
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3151
          byName.put(field.getFieldName(), field);
3152
        }
3153
      }
3154
 
3155
      /**
3156
       * Find the _Fields constant that matches fieldId, or null if its not found.
3157
       */
3158
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3159
        switch(fieldId) {
3160
          case 1: // USER_ID
3161
            return USER_ID;
3162
          case 2: // FROM_TIME
3163
            return FROM_TIME;
3164
          case 3: // TO_TIME
3165
            return TO_TIME;
3166
          case 4: // STATUS
3167
            return STATUS;
3168
          case 5: // GATEWAY_ID
3169
            return GATEWAY_ID;
3170
          default:
3171
            return null;
3172
        }
123 ashish 3173
      }
3174
 
3175
      /**
3176
       * Find the _Fields constant that matches fieldId, throwing an exception
3177
       * if it is not found.
3178
       */
3179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3180
        _Fields fields = findByThriftId(fieldId);
3181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3182
        return fields;
3183
      }
3184
 
3185
      /**
3186
       * Find the _Fields constant that matches name, or null if its not found.
3187
       */
3188
      public static _Fields findByName(String name) {
3189
        return byName.get(name);
3190
      }
3191
 
3192
      private final short _thriftId;
3193
      private final String _fieldName;
3194
 
3195
      _Fields(short thriftId, String fieldName) {
3196
        _thriftId = thriftId;
3197
        _fieldName = fieldName;
3198
      }
3199
 
3200
      public short getThriftFieldId() {
3201
        return _thriftId;
3202
      }
3203
 
3204
      public String getFieldName() {
3205
        return _fieldName;
3206
      }
3207
    }
3208
 
3209
    // isset id assignments
3210
    private static final int __USERID_ISSET_ID = 0;
695 rajveer 3211
    private static final int __FROMTIME_ISSET_ID = 1;
3212
    private static final int __TOTIME_ISSET_ID = 2;
3213
    private static final int __GATEWAYID_ISSET_ID = 3;
420 ashish 3214
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 3215
 
3430 rajveer 3216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3217
    static {
3430 rajveer 3218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3219
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3221
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3223
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3225
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3226
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
3227
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
123 ashish 3231
    }
3232
 
3233
    public getPaymentsForUser_args() {
3234
    }
3235
 
3236
    public getPaymentsForUser_args(
3237
      long userId,
695 rajveer 3238
      long fromTime,
3239
      long toTime,
123 ashish 3240
      PaymentStatus status,
695 rajveer 3241
      long gatewayId)
123 ashish 3242
    {
3243
      this();
3244
      this.userId = userId;
3245
      setUserIdIsSet(true);
695 rajveer 3246
      this.fromTime = fromTime;
3247
      setFromTimeIsSet(true);
3248
      this.toTime = toTime;
3249
      setToTimeIsSet(true);
123 ashish 3250
      this.status = status;
695 rajveer 3251
      this.gatewayId = gatewayId;
3252
      setGatewayIdIsSet(true);
123 ashish 3253
    }
3254
 
3255
    /**
3256
     * Performs a deep copy on <i>other</i>.
3257
     */
3258
    public getPaymentsForUser_args(getPaymentsForUser_args other) {
3259
      __isset_bit_vector.clear();
3260
      __isset_bit_vector.or(other.__isset_bit_vector);
3261
      this.userId = other.userId;
695 rajveer 3262
      this.fromTime = other.fromTime;
3263
      this.toTime = other.toTime;
123 ashish 3264
      if (other.isSetStatus()) {
3265
        this.status = other.status;
3266
      }
695 rajveer 3267
      this.gatewayId = other.gatewayId;
123 ashish 3268
    }
3269
 
3270
    public getPaymentsForUser_args deepCopy() {
3271
      return new getPaymentsForUser_args(this);
3272
    }
3273
 
3430 rajveer 3274
    @Override
3275
    public void clear() {
3276
      setUserIdIsSet(false);
3277
      this.userId = 0;
3278
      setFromTimeIsSet(false);
3279
      this.fromTime = 0;
3280
      setToTimeIsSet(false);
3281
      this.toTime = 0;
3282
      this.status = null;
3283
      setGatewayIdIsSet(false);
3284
      this.gatewayId = 0;
123 ashish 3285
    }
3286
 
3287
    public long getUserId() {
3288
      return this.userId;
3289
    }
3290
 
3430 rajveer 3291
    public void setUserId(long userId) {
123 ashish 3292
      this.userId = userId;
3293
      setUserIdIsSet(true);
3294
    }
3295
 
3296
    public void unsetUserId() {
3297
      __isset_bit_vector.clear(__USERID_ISSET_ID);
3298
    }
3299
 
3430 rajveer 3300
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 3301
    public boolean isSetUserId() {
3302
      return __isset_bit_vector.get(__USERID_ISSET_ID);
3303
    }
3304
 
3305
    public void setUserIdIsSet(boolean value) {
3306
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
3307
    }
3308
 
695 rajveer 3309
    public long getFromTime() {
3310
      return this.fromTime;
123 ashish 3311
    }
3312
 
3430 rajveer 3313
    public void setFromTime(long fromTime) {
695 rajveer 3314
      this.fromTime = fromTime;
3315
      setFromTimeIsSet(true);
123 ashish 3316
    }
3317
 
695 rajveer 3318
    public void unsetFromTime() {
3319
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 3320
    }
3321
 
3430 rajveer 3322
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 3323
    public boolean isSetFromTime() {
3324
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 3325
    }
3326
 
695 rajveer 3327
    public void setFromTimeIsSet(boolean value) {
3328
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 3329
    }
3330
 
695 rajveer 3331
    public long getToTime() {
3332
      return this.toTime;
123 ashish 3333
    }
3334
 
3430 rajveer 3335
    public void setToTime(long toTime) {
695 rajveer 3336
      this.toTime = toTime;
3337
      setToTimeIsSet(true);
123 ashish 3338
    }
3339
 
695 rajveer 3340
    public void unsetToTime() {
3341
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 3342
    }
3343
 
3430 rajveer 3344
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 3345
    public boolean isSetToTime() {
3346
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 3347
    }
3348
 
695 rajveer 3349
    public void setToTimeIsSet(boolean value) {
3350
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 3351
    }
3352
 
3353
    /**
3354
     * 
3355
     * @see PaymentStatus
3356
     */
3357
    public PaymentStatus getStatus() {
3358
      return this.status;
3359
    }
3360
 
3361
    /**
3362
     * 
3363
     * @see PaymentStatus
3364
     */
3430 rajveer 3365
    public void setStatus(PaymentStatus status) {
123 ashish 3366
      this.status = status;
3367
    }
3368
 
3369
    public void unsetStatus() {
3370
      this.status = null;
3371
    }
3372
 
3430 rajveer 3373
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 3374
    public boolean isSetStatus() {
3375
      return this.status != null;
3376
    }
3377
 
3378
    public void setStatusIsSet(boolean value) {
3379
      if (!value) {
3380
        this.status = null;
3381
      }
3382
    }
3383
 
695 rajveer 3384
    public long getGatewayId() {
3385
      return this.gatewayId;
123 ashish 3386
    }
3387
 
3430 rajveer 3388
    public void setGatewayId(long gatewayId) {
695 rajveer 3389
      this.gatewayId = gatewayId;
3390
      setGatewayIdIsSet(true);
123 ashish 3391
    }
3392
 
695 rajveer 3393
    public void unsetGatewayId() {
3394
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 3395
    }
3396
 
3430 rajveer 3397
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 3398
    public boolean isSetGatewayId() {
3399
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 3400
    }
3401
 
695 rajveer 3402
    public void setGatewayIdIsSet(boolean value) {
3403
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 3404
    }
3405
 
3406
    public void setFieldValue(_Fields field, Object value) {
3407
      switch (field) {
3408
      case USER_ID:
3409
        if (value == null) {
3410
          unsetUserId();
3411
        } else {
3412
          setUserId((Long)value);
3413
        }
3414
        break;
3415
 
3416
      case FROM_TIME:
3417
        if (value == null) {
695 rajveer 3418
          unsetFromTime();
123 ashish 3419
        } else {
695 rajveer 3420
          setFromTime((Long)value);
123 ashish 3421
        }
3422
        break;
3423
 
3424
      case TO_TIME:
3425
        if (value == null) {
695 rajveer 3426
          unsetToTime();
123 ashish 3427
        } else {
695 rajveer 3428
          setToTime((Long)value);
123 ashish 3429
        }
3430
        break;
3431
 
3432
      case STATUS:
3433
        if (value == null) {
3434
          unsetStatus();
3435
        } else {
3436
          setStatus((PaymentStatus)value);
3437
        }
3438
        break;
3439
 
420 ashish 3440
      case GATEWAY_ID:
123 ashish 3441
        if (value == null) {
695 rajveer 3442
          unsetGatewayId();
123 ashish 3443
        } else {
695 rajveer 3444
          setGatewayId((Long)value);
123 ashish 3445
        }
3446
        break;
3447
 
3448
      }
3449
    }
3450
 
3451
    public Object getFieldValue(_Fields field) {
3452
      switch (field) {
3453
      case USER_ID:
3430 rajveer 3454
        return Long.valueOf(getUserId());
123 ashish 3455
 
3456
      case FROM_TIME:
3430 rajveer 3457
        return Long.valueOf(getFromTime());
123 ashish 3458
 
3459
      case TO_TIME:
3430 rajveer 3460
        return Long.valueOf(getToTime());
123 ashish 3461
 
3462
      case STATUS:
3463
        return getStatus();
3464
 
420 ashish 3465
      case GATEWAY_ID:
3430 rajveer 3466
        return Long.valueOf(getGatewayId());
123 ashish 3467
 
3468
      }
3469
      throw new IllegalStateException();
3470
    }
3471
 
3430 rajveer 3472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3473
    public boolean isSet(_Fields field) {
3474
      if (field == null) {
3475
        throw new IllegalArgumentException();
3476
      }
123 ashish 3477
 
3478
      switch (field) {
3479
      case USER_ID:
3480
        return isSetUserId();
3481
      case FROM_TIME:
695 rajveer 3482
        return isSetFromTime();
123 ashish 3483
      case TO_TIME:
695 rajveer 3484
        return isSetToTime();
123 ashish 3485
      case STATUS:
3486
        return isSetStatus();
420 ashish 3487
      case GATEWAY_ID:
695 rajveer 3488
        return isSetGatewayId();
123 ashish 3489
      }
3490
      throw new IllegalStateException();
3491
    }
3492
 
3493
    @Override
3494
    public boolean equals(Object that) {
3495
      if (that == null)
3496
        return false;
3497
      if (that instanceof getPaymentsForUser_args)
3498
        return this.equals((getPaymentsForUser_args)that);
3499
      return false;
3500
    }
3501
 
3502
    public boolean equals(getPaymentsForUser_args that) {
3503
      if (that == null)
3504
        return false;
3505
 
3506
      boolean this_present_userId = true;
3507
      boolean that_present_userId = true;
3508
      if (this_present_userId || that_present_userId) {
3509
        if (!(this_present_userId && that_present_userId))
3510
          return false;
3511
        if (this.userId != that.userId)
3512
          return false;
3513
      }
3514
 
695 rajveer 3515
      boolean this_present_fromTime = true;
3516
      boolean that_present_fromTime = true;
3517
      if (this_present_fromTime || that_present_fromTime) {
3518
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 3519
          return false;
695 rajveer 3520
        if (this.fromTime != that.fromTime)
123 ashish 3521
          return false;
3522
      }
3523
 
695 rajveer 3524
      boolean this_present_toTime = true;
3525
      boolean that_present_toTime = true;
3526
      if (this_present_toTime || that_present_toTime) {
3527
        if (!(this_present_toTime && that_present_toTime))
123 ashish 3528
          return false;
695 rajveer 3529
        if (this.toTime != that.toTime)
123 ashish 3530
          return false;
3531
      }
3532
 
3533
      boolean this_present_status = true && this.isSetStatus();
3534
      boolean that_present_status = true && that.isSetStatus();
3535
      if (this_present_status || that_present_status) {
3536
        if (!(this_present_status && that_present_status))
3537
          return false;
3538
        if (!this.status.equals(that.status))
3539
          return false;
3540
      }
3541
 
695 rajveer 3542
      boolean this_present_gatewayId = true;
3543
      boolean that_present_gatewayId = true;
3544
      if (this_present_gatewayId || that_present_gatewayId) {
3545
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 3546
          return false;
695 rajveer 3547
        if (this.gatewayId != that.gatewayId)
123 ashish 3548
          return false;
3549
      }
3550
 
3551
      return true;
3552
    }
3553
 
3554
    @Override
3555
    public int hashCode() {
3556
      return 0;
3557
    }
3558
 
3559
    public int compareTo(getPaymentsForUser_args other) {
3560
      if (!getClass().equals(other.getClass())) {
3561
        return getClass().getName().compareTo(other.getClass().getName());
3562
      }
3563
 
3564
      int lastComparison = 0;
3565
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
3566
 
3430 rajveer 3567
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 3568
      if (lastComparison != 0) {
3569
        return lastComparison;
3570
      }
3430 rajveer 3571
      if (isSetUserId()) {
3572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
3573
        if (lastComparison != 0) {
3574
          return lastComparison;
3575
        }
123 ashish 3576
      }
3430 rajveer 3577
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 3578
      if (lastComparison != 0) {
3579
        return lastComparison;
3580
      }
3430 rajveer 3581
      if (isSetFromTime()) {
3582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
3583
        if (lastComparison != 0) {
3584
          return lastComparison;
3585
        }
123 ashish 3586
      }
3430 rajveer 3587
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 3588
      if (lastComparison != 0) {
3589
        return lastComparison;
3590
      }
3430 rajveer 3591
      if (isSetToTime()) {
3592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
3593
        if (lastComparison != 0) {
3594
          return lastComparison;
3595
        }
123 ashish 3596
      }
3430 rajveer 3597
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 3598
      if (lastComparison != 0) {
3599
        return lastComparison;
3600
      }
3430 rajveer 3601
      if (isSetStatus()) {
3602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3603
        if (lastComparison != 0) {
3604
          return lastComparison;
3605
        }
123 ashish 3606
      }
3430 rajveer 3607
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 3608
      if (lastComparison != 0) {
3609
        return lastComparison;
3610
      }
3430 rajveer 3611
      if (isSetGatewayId()) {
3612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3613
        if (lastComparison != 0) {
3614
          return lastComparison;
3615
        }
123 ashish 3616
      }
3617
      return 0;
3618
    }
3619
 
3430 rajveer 3620
    public _Fields fieldForId(int fieldId) {
3621
      return _Fields.findByThriftId(fieldId);
3622
    }
3623
 
3624
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3625
      org.apache.thrift.protocol.TField field;
123 ashish 3626
      iprot.readStructBegin();
3627
      while (true)
3628
      {
3629
        field = iprot.readFieldBegin();
3430 rajveer 3630
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3631
          break;
3632
        }
3430 rajveer 3633
        switch (field.id) {
3634
          case 1: // USER_ID
3635
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3636
              this.userId = iprot.readI64();
3637
              setUserIdIsSet(true);
3638
            } else { 
3639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3640
            }
3641
            break;
3642
          case 2: // FROM_TIME
3643
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3644
              this.fromTime = iprot.readI64();
3645
              setFromTimeIsSet(true);
3646
            } else { 
3647
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3648
            }
3649
            break;
3650
          case 3: // TO_TIME
3651
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3652
              this.toTime = iprot.readI64();
3653
              setToTimeIsSet(true);
3654
            } else { 
3655
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3656
            }
3657
            break;
3658
          case 4: // STATUS
3659
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3660
              this.status = PaymentStatus.findByValue(iprot.readI32());
3661
            } else { 
3662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3663
            }
3664
            break;
3665
          case 5: // GATEWAY_ID
3666
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3667
              this.gatewayId = iprot.readI64();
3668
              setGatewayIdIsSet(true);
3669
            } else { 
3670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3671
            }
3672
            break;
3673
          default:
3674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3675
        }
3430 rajveer 3676
        iprot.readFieldEnd();
123 ashish 3677
      }
3678
      iprot.readStructEnd();
3679
      validate();
3680
    }
3681
 
3430 rajveer 3682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3683
      validate();
3684
 
3685
      oprot.writeStructBegin(STRUCT_DESC);
3686
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3687
      oprot.writeI64(this.userId);
3688
      oprot.writeFieldEnd();
3689
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 3690
      oprot.writeI64(this.fromTime);
123 ashish 3691
      oprot.writeFieldEnd();
3692
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 3693
      oprot.writeI64(this.toTime);
123 ashish 3694
      oprot.writeFieldEnd();
3695
      if (this.status != null) {
3696
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3697
        oprot.writeI32(this.status.getValue());
3698
        oprot.writeFieldEnd();
3699
      }
420 ashish 3700
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 3701
      oprot.writeI64(this.gatewayId);
420 ashish 3702
      oprot.writeFieldEnd();
123 ashish 3703
      oprot.writeFieldStop();
3704
      oprot.writeStructEnd();
3705
    }
3706
 
3707
    @Override
3708
    public String toString() {
3709
      StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
3710
      boolean first = true;
3711
 
3712
      sb.append("userId:");
3713
      sb.append(this.userId);
3714
      first = false;
3715
      if (!first) sb.append(", ");
695 rajveer 3716
      sb.append("fromTime:");
3717
      sb.append(this.fromTime);
123 ashish 3718
      first = false;
3719
      if (!first) sb.append(", ");
695 rajveer 3720
      sb.append("toTime:");
3721
      sb.append(this.toTime);
123 ashish 3722
      first = false;
3723
      if (!first) sb.append(", ");
3724
      sb.append("status:");
3725
      if (this.status == null) {
3726
        sb.append("null");
3727
      } else {
3728
        sb.append(this.status);
3729
      }
3730
      first = false;
3731
      if (!first) sb.append(", ");
695 rajveer 3732
      sb.append("gatewayId:");
3733
      sb.append(this.gatewayId);
123 ashish 3734
      first = false;
3735
      sb.append(")");
3736
      return sb.toString();
3737
    }
3738
 
3430 rajveer 3739
    public void validate() throws org.apache.thrift.TException {
123 ashish 3740
      // check for required fields
3741
    }
3742
 
3430 rajveer 3743
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3744
      try {
3745
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3746
      } catch (org.apache.thrift.TException te) {
3747
        throw new java.io.IOException(te);
3748
      }
3749
    }
3750
 
3751
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3752
      try {
3753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3754
      } catch (org.apache.thrift.TException te) {
3755
        throw new java.io.IOException(te);
3756
      }
3757
    }
3758
 
123 ashish 3759
  }
3760
 
3430 rajveer 3761
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
3762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
123 ashish 3763
 
3430 rajveer 3764
    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);
3765
    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 3766
 
3430 rajveer 3767
    private List<Payment> success; // required
3768
    private PaymentException pe; // required
123 ashish 3769
 
3770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3772
      SUCCESS((short)0, "success"),
3773
      PE((short)1, "pe");
3774
 
3775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3776
 
3777
      static {
3778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3779
          byName.put(field.getFieldName(), field);
3780
        }
3781
      }
3782
 
3783
      /**
3784
       * Find the _Fields constant that matches fieldId, or null if its not found.
3785
       */
3786
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3787
        switch(fieldId) {
3788
          case 0: // SUCCESS
3789
            return SUCCESS;
3790
          case 1: // PE
3791
            return PE;
3792
          default:
3793
            return null;
3794
        }
123 ashish 3795
      }
3796
 
3797
      /**
3798
       * Find the _Fields constant that matches fieldId, throwing an exception
3799
       * if it is not found.
3800
       */
3801
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3802
        _Fields fields = findByThriftId(fieldId);
3803
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3804
        return fields;
3805
      }
3806
 
3807
      /**
3808
       * Find the _Fields constant that matches name, or null if its not found.
3809
       */
3810
      public static _Fields findByName(String name) {
3811
        return byName.get(name);
3812
      }
3813
 
3814
      private final short _thriftId;
3815
      private final String _fieldName;
3816
 
3817
      _Fields(short thriftId, String fieldName) {
3818
        _thriftId = thriftId;
3819
        _fieldName = fieldName;
3820
      }
3821
 
3822
      public short getThriftFieldId() {
3823
        return _thriftId;
3824
      }
3825
 
3826
      public String getFieldName() {
3827
        return _fieldName;
3828
      }
3829
    }
3830
 
3831
    // isset id assignments
3832
 
3430 rajveer 3833
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3834
    static {
3430 rajveer 3835
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3836
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3837
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3838
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
3839
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
123 ashish 3843
    }
3844
 
3845
    public getPaymentsForUser_result() {
3846
    }
3847
 
3848
    public getPaymentsForUser_result(
3849
      List<Payment> success,
3850
      PaymentException pe)
3851
    {
3852
      this();
3853
      this.success = success;
3854
      this.pe = pe;
3855
    }
3856
 
3857
    /**
3858
     * Performs a deep copy on <i>other</i>.
3859
     */
3860
    public getPaymentsForUser_result(getPaymentsForUser_result other) {
3861
      if (other.isSetSuccess()) {
3862
        List<Payment> __this__success = new ArrayList<Payment>();
3863
        for (Payment other_element : other.success) {
3864
          __this__success.add(new Payment(other_element));
3865
        }
3866
        this.success = __this__success;
3867
      }
3868
      if (other.isSetPe()) {
3869
        this.pe = new PaymentException(other.pe);
3870
      }
3871
    }
3872
 
3873
    public getPaymentsForUser_result deepCopy() {
3874
      return new getPaymentsForUser_result(this);
3875
    }
3876
 
3430 rajveer 3877
    @Override
3878
    public void clear() {
3879
      this.success = null;
3880
      this.pe = null;
123 ashish 3881
    }
3882
 
3883
    public int getSuccessSize() {
3884
      return (this.success == null) ? 0 : this.success.size();
3885
    }
3886
 
3887
    public java.util.Iterator<Payment> getSuccessIterator() {
3888
      return (this.success == null) ? null : this.success.iterator();
3889
    }
3890
 
3891
    public void addToSuccess(Payment elem) {
3892
      if (this.success == null) {
3893
        this.success = new ArrayList<Payment>();
3894
      }
3895
      this.success.add(elem);
3896
    }
3897
 
3898
    public List<Payment> getSuccess() {
3899
      return this.success;
3900
    }
3901
 
3430 rajveer 3902
    public void setSuccess(List<Payment> success) {
123 ashish 3903
      this.success = success;
3904
    }
3905
 
3906
    public void unsetSuccess() {
3907
      this.success = null;
3908
    }
3909
 
3430 rajveer 3910
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 3911
    public boolean isSetSuccess() {
3912
      return this.success != null;
3913
    }
3914
 
3915
    public void setSuccessIsSet(boolean value) {
3916
      if (!value) {
3917
        this.success = null;
3918
      }
3919
    }
3920
 
3921
    public PaymentException getPe() {
3922
      return this.pe;
3923
    }
3924
 
3430 rajveer 3925
    public void setPe(PaymentException pe) {
123 ashish 3926
      this.pe = pe;
3927
    }
3928
 
3929
    public void unsetPe() {
3930
      this.pe = null;
3931
    }
3932
 
3430 rajveer 3933
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 3934
    public boolean isSetPe() {
3935
      return this.pe != null;
3936
    }
3937
 
3938
    public void setPeIsSet(boolean value) {
3939
      if (!value) {
3940
        this.pe = null;
3941
      }
3942
    }
3943
 
3944
    public void setFieldValue(_Fields field, Object value) {
3945
      switch (field) {
3946
      case SUCCESS:
3947
        if (value == null) {
3948
          unsetSuccess();
3949
        } else {
3950
          setSuccess((List<Payment>)value);
3951
        }
3952
        break;
3953
 
3954
      case PE:
3955
        if (value == null) {
3956
          unsetPe();
3957
        } else {
3958
          setPe((PaymentException)value);
3959
        }
3960
        break;
3961
 
3962
      }
3963
    }
3964
 
3965
    public Object getFieldValue(_Fields field) {
3966
      switch (field) {
3967
      case SUCCESS:
3968
        return getSuccess();
3969
 
3970
      case PE:
3971
        return getPe();
3972
 
3973
      }
3974
      throw new IllegalStateException();
3975
    }
3976
 
3430 rajveer 3977
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3978
    public boolean isSet(_Fields field) {
3979
      if (field == null) {
3980
        throw new IllegalArgumentException();
3981
      }
123 ashish 3982
 
3983
      switch (field) {
3984
      case SUCCESS:
3985
        return isSetSuccess();
3986
      case PE:
3987
        return isSetPe();
3988
      }
3989
      throw new IllegalStateException();
3990
    }
3991
 
3992
    @Override
3993
    public boolean equals(Object that) {
3994
      if (that == null)
3995
        return false;
3996
      if (that instanceof getPaymentsForUser_result)
3997
        return this.equals((getPaymentsForUser_result)that);
3998
      return false;
3999
    }
4000
 
4001
    public boolean equals(getPaymentsForUser_result that) {
4002
      if (that == null)
4003
        return false;
4004
 
4005
      boolean this_present_success = true && this.isSetSuccess();
4006
      boolean that_present_success = true && that.isSetSuccess();
4007
      if (this_present_success || that_present_success) {
4008
        if (!(this_present_success && that_present_success))
4009
          return false;
4010
        if (!this.success.equals(that.success))
4011
          return false;
4012
      }
4013
 
4014
      boolean this_present_pe = true && this.isSetPe();
4015
      boolean that_present_pe = true && that.isSetPe();
4016
      if (this_present_pe || that_present_pe) {
4017
        if (!(this_present_pe && that_present_pe))
4018
          return false;
4019
        if (!this.pe.equals(that.pe))
4020
          return false;
4021
      }
4022
 
4023
      return true;
4024
    }
4025
 
4026
    @Override
4027
    public int hashCode() {
4028
      return 0;
4029
    }
4030
 
695 rajveer 4031
    public int compareTo(getPaymentsForUser_result other) {
123 ashish 4032
      if (!getClass().equals(other.getClass())) {
4033
        return getClass().getName().compareTo(other.getClass().getName());
4034
      }
4035
 
4036
      int lastComparison = 0;
695 rajveer 4037
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
123 ashish 4038
 
3430 rajveer 4039
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 4040
      if (lastComparison != 0) {
4041
        return lastComparison;
4042
      }
3430 rajveer 4043
      if (isSetSuccess()) {
4044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4045
        if (lastComparison != 0) {
4046
          return lastComparison;
4047
        }
123 ashish 4048
      }
3430 rajveer 4049
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
123 ashish 4050
      if (lastComparison != 0) {
4051
        return lastComparison;
4052
      }
3430 rajveer 4053
      if (isSetPe()) {
4054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4055
        if (lastComparison != 0) {
4056
          return lastComparison;
4057
        }
123 ashish 4058
      }
4059
      return 0;
4060
    }
4061
 
3430 rajveer 4062
    public _Fields fieldForId(int fieldId) {
4063
      return _Fields.findByThriftId(fieldId);
4064
    }
4065
 
4066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4067
      org.apache.thrift.protocol.TField field;
123 ashish 4068
      iprot.readStructBegin();
4069
      while (true)
4070
      {
4071
        field = iprot.readFieldBegin();
3430 rajveer 4072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4073
          break;
4074
        }
3430 rajveer 4075
        switch (field.id) {
4076
          case 0: // SUCCESS
4077
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4078
              {
4079
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
4080
                this.success = new ArrayList<Payment>(_list12.size);
4081
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
123 ashish 4082
                {
3430 rajveer 4083
                  Payment _elem14; // required
4084
                  _elem14 = new Payment();
4085
                  _elem14.read(iprot);
4086
                  this.success.add(_elem14);
123 ashish 4087
                }
3430 rajveer 4088
                iprot.readListEnd();
123 ashish 4089
              }
3430 rajveer 4090
            } else { 
4091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4092
            }
4093
            break;
4094
          case 1: // PE
4095
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4096
              this.pe = new PaymentException();
4097
              this.pe.read(iprot);
4098
            } else { 
4099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4100
            }
4101
            break;
4102
          default:
4103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4104
        }
3430 rajveer 4105
        iprot.readFieldEnd();
123 ashish 4106
      }
4107
      iprot.readStructEnd();
4108
      validate();
4109
    }
4110
 
3430 rajveer 4111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4112
      oprot.writeStructBegin(STRUCT_DESC);
4113
 
4114
      if (this.isSetSuccess()) {
4115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4116
        {
3430 rajveer 4117
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 4118
          for (Payment _iter15 : this.success)
123 ashish 4119
          {
2747 chandransh 4120
            _iter15.write(oprot);
123 ashish 4121
          }
4122
          oprot.writeListEnd();
4123
        }
4124
        oprot.writeFieldEnd();
4125
      } else if (this.isSetPe()) {
4126
        oprot.writeFieldBegin(PE_FIELD_DESC);
4127
        this.pe.write(oprot);
4128
        oprot.writeFieldEnd();
4129
      }
4130
      oprot.writeFieldStop();
4131
      oprot.writeStructEnd();
4132
    }
4133
 
4134
    @Override
4135
    public String toString() {
695 rajveer 4136
      StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
123 ashish 4137
      boolean first = true;
4138
 
4139
      sb.append("success:");
4140
      if (this.success == null) {
4141
        sb.append("null");
4142
      } else {
4143
        sb.append(this.success);
4144
      }
4145
      first = false;
4146
      if (!first) sb.append(", ");
4147
      sb.append("pe:");
4148
      if (this.pe == null) {
4149
        sb.append("null");
4150
      } else {
4151
        sb.append(this.pe);
4152
      }
4153
      first = false;
4154
      sb.append(")");
4155
      return sb.toString();
4156
    }
4157
 
3430 rajveer 4158
    public void validate() throws org.apache.thrift.TException {
123 ashish 4159
      // check for required fields
4160
    }
4161
 
3430 rajveer 4162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4163
      try {
4164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4165
      } catch (org.apache.thrift.TException te) {
4166
        throw new java.io.IOException(te);
4167
      }
4168
    }
4169
 
4170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4171
      try {
4172
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4173
      } catch (org.apache.thrift.TException te) {
4174
        throw new java.io.IOException(te);
4175
      }
4176
    }
4177
 
123 ashish 4178
  }
4179
 
3430 rajveer 4180
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
4181
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
123 ashish 4182
 
3430 rajveer 4183
    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);
4184
    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);
4185
    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);
4186
    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 4187
 
3430 rajveer 4188
    private long fromTime; // required
4189
    private long toTime; // required
4190
    private PaymentStatus status; // required
4191
    private long gatewayId; // required
123 ashish 4192
 
4193
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4194
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 4195
      FROM_TIME((short)1, "fromTime"),
4196
      TO_TIME((short)2, "toTime"),
123 ashish 4197
      /**
4198
       * 
4199
       * @see PaymentStatus
4200
       */
4201
      STATUS((short)3, "status"),
695 rajveer 4202
      GATEWAY_ID((short)4, "gatewayId");
123 ashish 4203
 
4204
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4205
 
4206
      static {
4207
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4208
          byName.put(field.getFieldName(), field);
4209
        }
4210
      }
4211
 
4212
      /**
4213
       * Find the _Fields constant that matches fieldId, or null if its not found.
4214
       */
4215
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4216
        switch(fieldId) {
4217
          case 1: // FROM_TIME
4218
            return FROM_TIME;
4219
          case 2: // TO_TIME
4220
            return TO_TIME;
4221
          case 3: // STATUS
4222
            return STATUS;
4223
          case 4: // GATEWAY_ID
4224
            return GATEWAY_ID;
4225
          default:
4226
            return null;
4227
        }
123 ashish 4228
      }
4229
 
4230
      /**
4231
       * Find the _Fields constant that matches fieldId, throwing an exception
4232
       * if it is not found.
4233
       */
4234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4235
        _Fields fields = findByThriftId(fieldId);
4236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4237
        return fields;
4238
      }
4239
 
4240
      /**
4241
       * Find the _Fields constant that matches name, or null if its not found.
4242
       */
4243
      public static _Fields findByName(String name) {
4244
        return byName.get(name);
4245
      }
4246
 
4247
      private final short _thriftId;
4248
      private final String _fieldName;
4249
 
4250
      _Fields(short thriftId, String fieldName) {
4251
        _thriftId = thriftId;
4252
        _fieldName = fieldName;
4253
      }
4254
 
4255
      public short getThriftFieldId() {
4256
        return _thriftId;
4257
      }
4258
 
4259
      public String getFieldName() {
4260
        return _fieldName;
4261
      }
4262
    }
4263
 
4264
    // isset id assignments
695 rajveer 4265
    private static final int __FROMTIME_ISSET_ID = 0;
4266
    private static final int __TOTIME_ISSET_ID = 1;
4267
    private static final int __GATEWAYID_ISSET_ID = 2;
420 ashish 4268
    private BitSet __isset_bit_vector = new BitSet(3);
123 ashish 4269
 
3430 rajveer 4270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4271
    static {
3430 rajveer 4272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4273
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4275
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4277
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4278
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
4279
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
123 ashish 4283
    }
4284
 
4285
    public getPayments_args() {
4286
    }
4287
 
4288
    public getPayments_args(
695 rajveer 4289
      long fromTime,
4290
      long toTime,
123 ashish 4291
      PaymentStatus status,
695 rajveer 4292
      long gatewayId)
123 ashish 4293
    {
4294
      this();
695 rajveer 4295
      this.fromTime = fromTime;
4296
      setFromTimeIsSet(true);
4297
      this.toTime = toTime;
4298
      setToTimeIsSet(true);
123 ashish 4299
      this.status = status;
695 rajveer 4300
      this.gatewayId = gatewayId;
4301
      setGatewayIdIsSet(true);
123 ashish 4302
    }
4303
 
4304
    /**
4305
     * Performs a deep copy on <i>other</i>.
4306
     */
4307
    public getPayments_args(getPayments_args other) {
4308
      __isset_bit_vector.clear();
4309
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 4310
      this.fromTime = other.fromTime;
4311
      this.toTime = other.toTime;
123 ashish 4312
      if (other.isSetStatus()) {
4313
        this.status = other.status;
4314
      }
695 rajveer 4315
      this.gatewayId = other.gatewayId;
123 ashish 4316
    }
4317
 
4318
    public getPayments_args deepCopy() {
4319
      return new getPayments_args(this);
4320
    }
4321
 
3430 rajveer 4322
    @Override
4323
    public void clear() {
4324
      setFromTimeIsSet(false);
4325
      this.fromTime = 0;
4326
      setToTimeIsSet(false);
4327
      this.toTime = 0;
4328
      this.status = null;
4329
      setGatewayIdIsSet(false);
4330
      this.gatewayId = 0;
123 ashish 4331
    }
4332
 
695 rajveer 4333
    public long getFromTime() {
4334
      return this.fromTime;
123 ashish 4335
    }
4336
 
3430 rajveer 4337
    public void setFromTime(long fromTime) {
695 rajveer 4338
      this.fromTime = fromTime;
4339
      setFromTimeIsSet(true);
123 ashish 4340
    }
4341
 
695 rajveer 4342
    public void unsetFromTime() {
4343
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 4344
    }
4345
 
3430 rajveer 4346
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 4347
    public boolean isSetFromTime() {
4348
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 4349
    }
4350
 
695 rajveer 4351
    public void setFromTimeIsSet(boolean value) {
4352
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 4353
    }
4354
 
695 rajveer 4355
    public long getToTime() {
4356
      return this.toTime;
123 ashish 4357
    }
4358
 
3430 rajveer 4359
    public void setToTime(long toTime) {
695 rajveer 4360
      this.toTime = toTime;
4361
      setToTimeIsSet(true);
123 ashish 4362
    }
4363
 
695 rajveer 4364
    public void unsetToTime() {
4365
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 4366
    }
4367
 
3430 rajveer 4368
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 4369
    public boolean isSetToTime() {
4370
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 4371
    }
4372
 
695 rajveer 4373
    public void setToTimeIsSet(boolean value) {
4374
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 4375
    }
4376
 
4377
    /**
4378
     * 
4379
     * @see PaymentStatus
4380
     */
4381
    public PaymentStatus getStatus() {
4382
      return this.status;
4383
    }
4384
 
4385
    /**
4386
     * 
4387
     * @see PaymentStatus
4388
     */
3430 rajveer 4389
    public void setStatus(PaymentStatus status) {
123 ashish 4390
      this.status = status;
4391
    }
4392
 
4393
    public void unsetStatus() {
4394
      this.status = null;
4395
    }
4396
 
3430 rajveer 4397
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 4398
    public boolean isSetStatus() {
4399
      return this.status != null;
4400
    }
4401
 
4402
    public void setStatusIsSet(boolean value) {
4403
      if (!value) {
4404
        this.status = null;
4405
      }
4406
    }
4407
 
695 rajveer 4408
    public long getGatewayId() {
4409
      return this.gatewayId;
123 ashish 4410
    }
4411
 
3430 rajveer 4412
    public void setGatewayId(long gatewayId) {
695 rajveer 4413
      this.gatewayId = gatewayId;
4414
      setGatewayIdIsSet(true);
123 ashish 4415
    }
4416
 
695 rajveer 4417
    public void unsetGatewayId() {
4418
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 4419
    }
4420
 
3430 rajveer 4421
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 4422
    public boolean isSetGatewayId() {
4423
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 4424
    }
4425
 
695 rajveer 4426
    public void setGatewayIdIsSet(boolean value) {
4427
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 4428
    }
4429
 
4430
    public void setFieldValue(_Fields field, Object value) {
4431
      switch (field) {
4432
      case FROM_TIME:
4433
        if (value == null) {
695 rajveer 4434
          unsetFromTime();
123 ashish 4435
        } else {
695 rajveer 4436
          setFromTime((Long)value);
123 ashish 4437
        }
4438
        break;
4439
 
4440
      case TO_TIME:
4441
        if (value == null) {
695 rajveer 4442
          unsetToTime();
123 ashish 4443
        } else {
695 rajveer 4444
          setToTime((Long)value);
123 ashish 4445
        }
4446
        break;
4447
 
4448
      case STATUS:
4449
        if (value == null) {
4450
          unsetStatus();
4451
        } else {
4452
          setStatus((PaymentStatus)value);
4453
        }
4454
        break;
4455
 
420 ashish 4456
      case GATEWAY_ID:
123 ashish 4457
        if (value == null) {
695 rajveer 4458
          unsetGatewayId();
123 ashish 4459
        } else {
695 rajveer 4460
          setGatewayId((Long)value);
123 ashish 4461
        }
4462
        break;
4463
 
4464
      }
4465
    }
4466
 
4467
    public Object getFieldValue(_Fields field) {
4468
      switch (field) {
4469
      case FROM_TIME:
3430 rajveer 4470
        return Long.valueOf(getFromTime());
123 ashish 4471
 
4472
      case TO_TIME:
3430 rajveer 4473
        return Long.valueOf(getToTime());
123 ashish 4474
 
4475
      case STATUS:
4476
        return getStatus();
4477
 
420 ashish 4478
      case GATEWAY_ID:
3430 rajveer 4479
        return Long.valueOf(getGatewayId());
123 ashish 4480
 
4481
      }
4482
      throw new IllegalStateException();
4483
    }
4484
 
3430 rajveer 4485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4486
    public boolean isSet(_Fields field) {
4487
      if (field == null) {
4488
        throw new IllegalArgumentException();
4489
      }
123 ashish 4490
 
4491
      switch (field) {
4492
      case FROM_TIME:
695 rajveer 4493
        return isSetFromTime();
123 ashish 4494
      case TO_TIME:
695 rajveer 4495
        return isSetToTime();
123 ashish 4496
      case STATUS:
4497
        return isSetStatus();
420 ashish 4498
      case GATEWAY_ID:
695 rajveer 4499
        return isSetGatewayId();
123 ashish 4500
      }
4501
      throw new IllegalStateException();
4502
    }
4503
 
4504
    @Override
4505
    public boolean equals(Object that) {
4506
      if (that == null)
4507
        return false;
4508
      if (that instanceof getPayments_args)
4509
        return this.equals((getPayments_args)that);
4510
      return false;
4511
    }
4512
 
4513
    public boolean equals(getPayments_args that) {
4514
      if (that == null)
4515
        return false;
4516
 
695 rajveer 4517
      boolean this_present_fromTime = true;
4518
      boolean that_present_fromTime = true;
4519
      if (this_present_fromTime || that_present_fromTime) {
4520
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 4521
          return false;
695 rajveer 4522
        if (this.fromTime != that.fromTime)
123 ashish 4523
          return false;
4524
      }
4525
 
695 rajveer 4526
      boolean this_present_toTime = true;
4527
      boolean that_present_toTime = true;
4528
      if (this_present_toTime || that_present_toTime) {
4529
        if (!(this_present_toTime && that_present_toTime))
123 ashish 4530
          return false;
695 rajveer 4531
        if (this.toTime != that.toTime)
123 ashish 4532
          return false;
4533
      }
4534
 
4535
      boolean this_present_status = true && this.isSetStatus();
4536
      boolean that_present_status = true && that.isSetStatus();
4537
      if (this_present_status || that_present_status) {
4538
        if (!(this_present_status && that_present_status))
4539
          return false;
4540
        if (!this.status.equals(that.status))
4541
          return false;
4542
      }
4543
 
695 rajveer 4544
      boolean this_present_gatewayId = true;
4545
      boolean that_present_gatewayId = true;
4546
      if (this_present_gatewayId || that_present_gatewayId) {
4547
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 4548
          return false;
695 rajveer 4549
        if (this.gatewayId != that.gatewayId)
123 ashish 4550
          return false;
4551
      }
4552
 
4553
      return true;
4554
    }
4555
 
4556
    @Override
4557
    public int hashCode() {
4558
      return 0;
4559
    }
4560
 
4561
    public int compareTo(getPayments_args other) {
4562
      if (!getClass().equals(other.getClass())) {
4563
        return getClass().getName().compareTo(other.getClass().getName());
4564
      }
4565
 
4566
      int lastComparison = 0;
4567
      getPayments_args typedOther = (getPayments_args)other;
4568
 
3430 rajveer 4569
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 4570
      if (lastComparison != 0) {
4571
        return lastComparison;
4572
      }
3430 rajveer 4573
      if (isSetFromTime()) {
4574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
4575
        if (lastComparison != 0) {
4576
          return lastComparison;
4577
        }
123 ashish 4578
      }
3430 rajveer 4579
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 4580
      if (lastComparison != 0) {
4581
        return lastComparison;
4582
      }
3430 rajveer 4583
      if (isSetToTime()) {
4584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
4585
        if (lastComparison != 0) {
4586
          return lastComparison;
4587
        }
123 ashish 4588
      }
3430 rajveer 4589
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 4590
      if (lastComparison != 0) {
4591
        return lastComparison;
4592
      }
3430 rajveer 4593
      if (isSetStatus()) {
4594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
4595
        if (lastComparison != 0) {
4596
          return lastComparison;
4597
        }
123 ashish 4598
      }
3430 rajveer 4599
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 4600
      if (lastComparison != 0) {
4601
        return lastComparison;
4602
      }
3430 rajveer 4603
      if (isSetGatewayId()) {
4604
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
4605
        if (lastComparison != 0) {
4606
          return lastComparison;
4607
        }
123 ashish 4608
      }
4609
      return 0;
4610
    }
4611
 
3430 rajveer 4612
    public _Fields fieldForId(int fieldId) {
4613
      return _Fields.findByThriftId(fieldId);
4614
    }
4615
 
4616
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4617
      org.apache.thrift.protocol.TField field;
123 ashish 4618
      iprot.readStructBegin();
4619
      while (true)
4620
      {
4621
        field = iprot.readFieldBegin();
3430 rajveer 4622
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4623
          break;
4624
        }
3430 rajveer 4625
        switch (field.id) {
4626
          case 1: // FROM_TIME
4627
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4628
              this.fromTime = iprot.readI64();
4629
              setFromTimeIsSet(true);
4630
            } else { 
4631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4632
            }
4633
            break;
4634
          case 2: // TO_TIME
4635
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4636
              this.toTime = iprot.readI64();
4637
              setToTimeIsSet(true);
4638
            } else { 
4639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4640
            }
4641
            break;
4642
          case 3: // STATUS
4643
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4644
              this.status = PaymentStatus.findByValue(iprot.readI32());
4645
            } else { 
4646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4647
            }
4648
            break;
4649
          case 4: // GATEWAY_ID
4650
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4651
              this.gatewayId = iprot.readI64();
4652
              setGatewayIdIsSet(true);
4653
            } else { 
4654
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4655
            }
4656
            break;
4657
          default:
4658
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4659
        }
3430 rajveer 4660
        iprot.readFieldEnd();
123 ashish 4661
      }
4662
      iprot.readStructEnd();
4663
      validate();
4664
    }
4665
 
3430 rajveer 4666
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4667
      validate();
4668
 
4669
      oprot.writeStructBegin(STRUCT_DESC);
4670
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 4671
      oprot.writeI64(this.fromTime);
123 ashish 4672
      oprot.writeFieldEnd();
4673
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 4674
      oprot.writeI64(this.toTime);
123 ashish 4675
      oprot.writeFieldEnd();
4676
      if (this.status != null) {
4677
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4678
        oprot.writeI32(this.status.getValue());
4679
        oprot.writeFieldEnd();
4680
      }
420 ashish 4681
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 4682
      oprot.writeI64(this.gatewayId);
420 ashish 4683
      oprot.writeFieldEnd();
123 ashish 4684
      oprot.writeFieldStop();
4685
      oprot.writeStructEnd();
4686
    }
4687
 
4688
    @Override
4689
    public String toString() {
4690
      StringBuilder sb = new StringBuilder("getPayments_args(");
4691
      boolean first = true;
4692
 
695 rajveer 4693
      sb.append("fromTime:");
4694
      sb.append(this.fromTime);
123 ashish 4695
      first = false;
4696
      if (!first) sb.append(", ");
695 rajveer 4697
      sb.append("toTime:");
4698
      sb.append(this.toTime);
123 ashish 4699
      first = false;
4700
      if (!first) sb.append(", ");
4701
      sb.append("status:");
4702
      if (this.status == null) {
4703
        sb.append("null");
4704
      } else {
4705
        sb.append(this.status);
4706
      }
4707
      first = false;
4708
      if (!first) sb.append(", ");
695 rajveer 4709
      sb.append("gatewayId:");
4710
      sb.append(this.gatewayId);
123 ashish 4711
      first = false;
4712
      sb.append(")");
4713
      return sb.toString();
4714
    }
4715
 
3430 rajveer 4716
    public void validate() throws org.apache.thrift.TException {
123 ashish 4717
      // check for required fields
4718
    }
4719
 
3430 rajveer 4720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4721
      try {
4722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4723
      } catch (org.apache.thrift.TException te) {
4724
        throw new java.io.IOException(te);
4725
      }
4726
    }
4727
 
4728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4729
      try {
4730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4731
      } catch (org.apache.thrift.TException te) {
4732
        throw new java.io.IOException(te);
4733
      }
4734
    }
4735
 
123 ashish 4736
  }
4737
 
3430 rajveer 4738
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
4739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
123 ashish 4740
 
3430 rajveer 4741
    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);
4742
    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 4743
 
3430 rajveer 4744
    private List<Payment> success; // required
4745
    private PaymentException pe; // required
123 ashish 4746
 
4747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4748
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 4749
      SUCCESS((short)0, "success"),
4750
      PE((short)1, "pe");
4751
 
4752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4753
 
4754
      static {
4755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4756
          byName.put(field.getFieldName(), field);
4757
        }
4758
      }
4759
 
4760
      /**
4761
       * Find the _Fields constant that matches fieldId, or null if its not found.
4762
       */
4763
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4764
        switch(fieldId) {
4765
          case 0: // SUCCESS
4766
            return SUCCESS;
4767
          case 1: // PE
4768
            return PE;
4769
          default:
4770
            return null;
4771
        }
123 ashish 4772
      }
4773
 
4774
      /**
4775
       * Find the _Fields constant that matches fieldId, throwing an exception
4776
       * if it is not found.
4777
       */
4778
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4779
        _Fields fields = findByThriftId(fieldId);
4780
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4781
        return fields;
4782
      }
4783
 
4784
      /**
4785
       * Find the _Fields constant that matches name, or null if its not found.
4786
       */
4787
      public static _Fields findByName(String name) {
4788
        return byName.get(name);
4789
      }
4790
 
4791
      private final short _thriftId;
4792
      private final String _fieldName;
4793
 
4794
      _Fields(short thriftId, String fieldName) {
4795
        _thriftId = thriftId;
4796
        _fieldName = fieldName;
4797
      }
4798
 
4799
      public short getThriftFieldId() {
4800
        return _thriftId;
4801
      }
4802
 
4803
      public String getFieldName() {
4804
        return _fieldName;
4805
      }
4806
    }
4807
 
4808
    // isset id assignments
4809
 
3430 rajveer 4810
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4811
    static {
3430 rajveer 4812
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4813
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4814
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4815
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
4816
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
123 ashish 4820
    }
4821
 
4822
    public getPayments_result() {
4823
    }
4824
 
4825
    public getPayments_result(
4826
      List<Payment> success,
4827
      PaymentException pe)
4828
    {
4829
      this();
4830
      this.success = success;
4831
      this.pe = pe;
4832
    }
4833
 
4834
    /**
4835
     * Performs a deep copy on <i>other</i>.
4836
     */
4837
    public getPayments_result(getPayments_result other) {
4838
      if (other.isSetSuccess()) {
4839
        List<Payment> __this__success = new ArrayList<Payment>();
4840
        for (Payment other_element : other.success) {
4841
          __this__success.add(new Payment(other_element));
4842
        }
4843
        this.success = __this__success;
4844
      }
4845
      if (other.isSetPe()) {
4846
        this.pe = new PaymentException(other.pe);
4847
      }
4848
    }
4849
 
4850
    public getPayments_result deepCopy() {
4851
      return new getPayments_result(this);
4852
    }
4853
 
3430 rajveer 4854
    @Override
4855
    public void clear() {
4856
      this.success = null;
4857
      this.pe = null;
123 ashish 4858
    }
4859
 
4860
    public int getSuccessSize() {
4861
      return (this.success == null) ? 0 : this.success.size();
4862
    }
4863
 
4864
    public java.util.Iterator<Payment> getSuccessIterator() {
4865
      return (this.success == null) ? null : this.success.iterator();
4866
    }
4867
 
4868
    public void addToSuccess(Payment elem) {
4869
      if (this.success == null) {
4870
        this.success = new ArrayList<Payment>();
4871
      }
4872
      this.success.add(elem);
4873
    }
4874
 
4875
    public List<Payment> getSuccess() {
4876
      return this.success;
4877
    }
4878
 
3430 rajveer 4879
    public void setSuccess(List<Payment> success) {
123 ashish 4880
      this.success = success;
4881
    }
4882
 
4883
    public void unsetSuccess() {
4884
      this.success = null;
4885
    }
4886
 
3430 rajveer 4887
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 4888
    public boolean isSetSuccess() {
4889
      return this.success != null;
4890
    }
4891
 
4892
    public void setSuccessIsSet(boolean value) {
4893
      if (!value) {
4894
        this.success = null;
4895
      }
4896
    }
4897
 
4898
    public PaymentException getPe() {
4899
      return this.pe;
4900
    }
4901
 
3430 rajveer 4902
    public void setPe(PaymentException pe) {
123 ashish 4903
      this.pe = pe;
4904
    }
4905
 
4906
    public void unsetPe() {
4907
      this.pe = null;
4908
    }
4909
 
3430 rajveer 4910
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 4911
    public boolean isSetPe() {
4912
      return this.pe != null;
4913
    }
4914
 
4915
    public void setPeIsSet(boolean value) {
4916
      if (!value) {
4917
        this.pe = null;
4918
      }
4919
    }
4920
 
4921
    public void setFieldValue(_Fields field, Object value) {
4922
      switch (field) {
4923
      case SUCCESS:
4924
        if (value == null) {
4925
          unsetSuccess();
4926
        } else {
4927
          setSuccess((List<Payment>)value);
4928
        }
4929
        break;
4930
 
4931
      case PE:
4932
        if (value == null) {
4933
          unsetPe();
4934
        } else {
4935
          setPe((PaymentException)value);
4936
        }
4937
        break;
4938
 
4939
      }
4940
    }
4941
 
4942
    public Object getFieldValue(_Fields field) {
4943
      switch (field) {
4944
      case SUCCESS:
4945
        return getSuccess();
4946
 
4947
      case PE:
4948
        return getPe();
4949
 
4950
      }
4951
      throw new IllegalStateException();
4952
    }
4953
 
3430 rajveer 4954
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4955
    public boolean isSet(_Fields field) {
4956
      if (field == null) {
4957
        throw new IllegalArgumentException();
4958
      }
123 ashish 4959
 
4960
      switch (field) {
4961
      case SUCCESS:
4962
        return isSetSuccess();
4963
      case PE:
4964
        return isSetPe();
4965
      }
4966
      throw new IllegalStateException();
4967
    }
4968
 
4969
    @Override
4970
    public boolean equals(Object that) {
4971
      if (that == null)
4972
        return false;
4973
      if (that instanceof getPayments_result)
4974
        return this.equals((getPayments_result)that);
4975
      return false;
4976
    }
4977
 
4978
    public boolean equals(getPayments_result that) {
4979
      if (that == null)
4980
        return false;
4981
 
4982
      boolean this_present_success = true && this.isSetSuccess();
4983
      boolean that_present_success = true && that.isSetSuccess();
4984
      if (this_present_success || that_present_success) {
4985
        if (!(this_present_success && that_present_success))
4986
          return false;
4987
        if (!this.success.equals(that.success))
4988
          return false;
4989
      }
4990
 
4991
      boolean this_present_pe = true && this.isSetPe();
4992
      boolean that_present_pe = true && that.isSetPe();
4993
      if (this_present_pe || that_present_pe) {
4994
        if (!(this_present_pe && that_present_pe))
4995
          return false;
4996
        if (!this.pe.equals(that.pe))
4997
          return false;
4998
      }
4999
 
5000
      return true;
5001
    }
5002
 
5003
    @Override
5004
    public int hashCode() {
5005
      return 0;
5006
    }
5007
 
695 rajveer 5008
    public int compareTo(getPayments_result other) {
123 ashish 5009
      if (!getClass().equals(other.getClass())) {
5010
        return getClass().getName().compareTo(other.getClass().getName());
5011
      }
5012
 
5013
      int lastComparison = 0;
695 rajveer 5014
      getPayments_result typedOther = (getPayments_result)other;
123 ashish 5015
 
3430 rajveer 5016
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 5017
      if (lastComparison != 0) {
5018
        return lastComparison;
5019
      }
3430 rajveer 5020
      if (isSetSuccess()) {
5021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5022
        if (lastComparison != 0) {
5023
          return lastComparison;
5024
        }
123 ashish 5025
      }
3430 rajveer 5026
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 5027
      if (lastComparison != 0) {
5028
        return lastComparison;
123 ashish 5029
      }
3430 rajveer 5030
      if (isSetPe()) {
5031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5032
        if (lastComparison != 0) {
5033
          return lastComparison;
5034
        }
123 ashish 5035
      }
5036
      return 0;
5037
    }
5038
 
3430 rajveer 5039
    public _Fields fieldForId(int fieldId) {
5040
      return _Fields.findByThriftId(fieldId);
5041
    }
5042
 
5043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5044
      org.apache.thrift.protocol.TField field;
123 ashish 5045
      iprot.readStructBegin();
5046
      while (true)
5047
      {
5048
        field = iprot.readFieldBegin();
3430 rajveer 5049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 5050
          break;
5051
        }
3430 rajveer 5052
        switch (field.id) {
5053
          case 0: // SUCCESS
5054
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5055
              {
5056
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
5057
                this.success = new ArrayList<Payment>(_list16.size);
5058
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
420 ashish 5059
                {
3430 rajveer 5060
                  Payment _elem18; // required
5061
                  _elem18 = new Payment();
5062
                  _elem18.read(iprot);
5063
                  this.success.add(_elem18);
420 ashish 5064
                }
3430 rajveer 5065
                iprot.readListEnd();
123 ashish 5066
              }
3430 rajveer 5067
            } else { 
5068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5069
            }
5070
            break;
5071
          case 1: // PE
5072
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5073
              this.pe = new PaymentException();
5074
              this.pe.read(iprot);
5075
            } else { 
5076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5077
            }
5078
            break;
5079
          default:
5080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 5081
        }
3430 rajveer 5082
        iprot.readFieldEnd();
123 ashish 5083
      }
5084
      iprot.readStructEnd();
5085
      validate();
5086
    }
5087
 
3430 rajveer 5088
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 5089
      oprot.writeStructBegin(STRUCT_DESC);
5090
 
5091
      if (this.isSetSuccess()) {
5092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 5093
        {
3430 rajveer 5094
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 5095
          for (Payment _iter19 : this.success)
420 ashish 5096
          {
2747 chandransh 5097
            _iter19.write(oprot);
420 ashish 5098
          }
5099
          oprot.writeListEnd();
5100
        }
123 ashish 5101
        oprot.writeFieldEnd();
5102
      } else if (this.isSetPe()) {
5103
        oprot.writeFieldBegin(PE_FIELD_DESC);
5104
        this.pe.write(oprot);
5105
        oprot.writeFieldEnd();
5106
      }
5107
      oprot.writeFieldStop();
5108
      oprot.writeStructEnd();
5109
    }
5110
 
5111
    @Override
5112
    public String toString() {
695 rajveer 5113
      StringBuilder sb = new StringBuilder("getPayments_result(");
123 ashish 5114
      boolean first = true;
5115
 
5116
      sb.append("success:");
5117
      if (this.success == null) {
5118
        sb.append("null");
5119
      } else {
5120
        sb.append(this.success);
5121
      }
5122
      first = false;
5123
      if (!first) sb.append(", ");
5124
      sb.append("pe:");
5125
      if (this.pe == null) {
5126
        sb.append("null");
5127
      } else {
5128
        sb.append(this.pe);
5129
      }
5130
      first = false;
5131
      sb.append(")");
5132
      return sb.toString();
5133
    }
5134
 
3430 rajveer 5135
    public void validate() throws org.apache.thrift.TException {
123 ashish 5136
      // check for required fields
5137
    }
5138
 
3430 rajveer 5139
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5140
      try {
5141
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5142
      } catch (org.apache.thrift.TException te) {
5143
        throw new java.io.IOException(te);
5144
      }
5145
    }
5146
 
5147
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5148
      try {
5149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5150
      } catch (org.apache.thrift.TException te) {
5151
        throw new java.io.IOException(te);
5152
      }
5153
    }
5154
 
123 ashish 5155
  }
5156
 
4141 chandransh 5157
  public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable   {
5158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
5159
 
5160
    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);
5161
    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);
5162
    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);
5163
 
5164
    private long fromTime; // required
5165
    private long toTime; // required
5166
    private long gatewayId; // required
5167
 
5168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5170
      FROM_TIME((short)1, "fromTime"),
5171
      TO_TIME((short)2, "toTime"),
5172
      GATEWAY_ID((short)3, "gatewayId");
5173
 
5174
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5175
 
5176
      static {
5177
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5178
          byName.put(field.getFieldName(), field);
5179
        }
5180
      }
5181
 
5182
      /**
5183
       * Find the _Fields constant that matches fieldId, or null if its not found.
5184
       */
5185
      public static _Fields findByThriftId(int fieldId) {
5186
        switch(fieldId) {
5187
          case 1: // FROM_TIME
5188
            return FROM_TIME;
5189
          case 2: // TO_TIME
5190
            return TO_TIME;
5191
          case 3: // GATEWAY_ID
5192
            return GATEWAY_ID;
5193
          default:
5194
            return null;
5195
        }
5196
      }
5197
 
5198
      /**
5199
       * Find the _Fields constant that matches fieldId, throwing an exception
5200
       * if it is not found.
5201
       */
5202
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5203
        _Fields fields = findByThriftId(fieldId);
5204
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5205
        return fields;
5206
      }
5207
 
5208
      /**
5209
       * Find the _Fields constant that matches name, or null if its not found.
5210
       */
5211
      public static _Fields findByName(String name) {
5212
        return byName.get(name);
5213
      }
5214
 
5215
      private final short _thriftId;
5216
      private final String _fieldName;
5217
 
5218
      _Fields(short thriftId, String fieldName) {
5219
        _thriftId = thriftId;
5220
        _fieldName = fieldName;
5221
      }
5222
 
5223
      public short getThriftFieldId() {
5224
        return _thriftId;
5225
      }
5226
 
5227
      public String getFieldName() {
5228
        return _fieldName;
5229
      }
5230
    }
5231
 
5232
    // isset id assignments
5233
    private static final int __FROMTIME_ISSET_ID = 0;
5234
    private static final int __TOTIME_ISSET_ID = 1;
5235
    private static final int __GATEWAYID_ISSET_ID = 2;
5236
    private BitSet __isset_bit_vector = new BitSet(3);
5237
 
5238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5239
    static {
5240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5241
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5243
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5244
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5245
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5246
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5248
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
5249
    }
5250
 
5251
    public getPaymentsByCapturedDate_args() {
5252
    }
5253
 
5254
    public getPaymentsByCapturedDate_args(
5255
      long fromTime,
5256
      long toTime,
5257
      long gatewayId)
5258
    {
5259
      this();
5260
      this.fromTime = fromTime;
5261
      setFromTimeIsSet(true);
5262
      this.toTime = toTime;
5263
      setToTimeIsSet(true);
5264
      this.gatewayId = gatewayId;
5265
      setGatewayIdIsSet(true);
5266
    }
5267
 
5268
    /**
5269
     * Performs a deep copy on <i>other</i>.
5270
     */
5271
    public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
5272
      __isset_bit_vector.clear();
5273
      __isset_bit_vector.or(other.__isset_bit_vector);
5274
      this.fromTime = other.fromTime;
5275
      this.toTime = other.toTime;
5276
      this.gatewayId = other.gatewayId;
5277
    }
5278
 
5279
    public getPaymentsByCapturedDate_args deepCopy() {
5280
      return new getPaymentsByCapturedDate_args(this);
5281
    }
5282
 
5283
    @Override
5284
    public void clear() {
5285
      setFromTimeIsSet(false);
5286
      this.fromTime = 0;
5287
      setToTimeIsSet(false);
5288
      this.toTime = 0;
5289
      setGatewayIdIsSet(false);
5290
      this.gatewayId = 0;
5291
    }
5292
 
5293
    public long getFromTime() {
5294
      return this.fromTime;
5295
    }
5296
 
5297
    public void setFromTime(long fromTime) {
5298
      this.fromTime = fromTime;
5299
      setFromTimeIsSet(true);
5300
    }
5301
 
5302
    public void unsetFromTime() {
5303
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
5304
    }
5305
 
5306
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
5307
    public boolean isSetFromTime() {
5308
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
5309
    }
5310
 
5311
    public void setFromTimeIsSet(boolean value) {
5312
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
5313
    }
5314
 
5315
    public long getToTime() {
5316
      return this.toTime;
5317
    }
5318
 
5319
    public void setToTime(long toTime) {
5320
      this.toTime = toTime;
5321
      setToTimeIsSet(true);
5322
    }
5323
 
5324
    public void unsetToTime() {
5325
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
5326
    }
5327
 
5328
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
5329
    public boolean isSetToTime() {
5330
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
5331
    }
5332
 
5333
    public void setToTimeIsSet(boolean value) {
5334
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
5335
    }
5336
 
5337
    public long getGatewayId() {
5338
      return this.gatewayId;
5339
    }
5340
 
5341
    public void setGatewayId(long gatewayId) {
5342
      this.gatewayId = gatewayId;
5343
      setGatewayIdIsSet(true);
5344
    }
5345
 
5346
    public void unsetGatewayId() {
5347
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
5348
    }
5349
 
5350
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
5351
    public boolean isSetGatewayId() {
5352
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
5353
    }
5354
 
5355
    public void setGatewayIdIsSet(boolean value) {
5356
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
5357
    }
5358
 
5359
    public void setFieldValue(_Fields field, Object value) {
5360
      switch (field) {
5361
      case FROM_TIME:
5362
        if (value == null) {
5363
          unsetFromTime();
5364
        } else {
5365
          setFromTime((Long)value);
5366
        }
5367
        break;
5368
 
5369
      case TO_TIME:
5370
        if (value == null) {
5371
          unsetToTime();
5372
        } else {
5373
          setToTime((Long)value);
5374
        }
5375
        break;
5376
 
5377
      case GATEWAY_ID:
5378
        if (value == null) {
5379
          unsetGatewayId();
5380
        } else {
5381
          setGatewayId((Long)value);
5382
        }
5383
        break;
5384
 
5385
      }
5386
    }
5387
 
5388
    public Object getFieldValue(_Fields field) {
5389
      switch (field) {
5390
      case FROM_TIME:
5391
        return Long.valueOf(getFromTime());
5392
 
5393
      case TO_TIME:
5394
        return Long.valueOf(getToTime());
5395
 
5396
      case GATEWAY_ID:
5397
        return Long.valueOf(getGatewayId());
5398
 
5399
      }
5400
      throw new IllegalStateException();
5401
    }
5402
 
5403
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5404
    public boolean isSet(_Fields field) {
5405
      if (field == null) {
5406
        throw new IllegalArgumentException();
5407
      }
5408
 
5409
      switch (field) {
5410
      case FROM_TIME:
5411
        return isSetFromTime();
5412
      case TO_TIME:
5413
        return isSetToTime();
5414
      case GATEWAY_ID:
5415
        return isSetGatewayId();
5416
      }
5417
      throw new IllegalStateException();
5418
    }
5419
 
5420
    @Override
5421
    public boolean equals(Object that) {
5422
      if (that == null)
5423
        return false;
5424
      if (that instanceof getPaymentsByCapturedDate_args)
5425
        return this.equals((getPaymentsByCapturedDate_args)that);
5426
      return false;
5427
    }
5428
 
5429
    public boolean equals(getPaymentsByCapturedDate_args that) {
5430
      if (that == null)
5431
        return false;
5432
 
5433
      boolean this_present_fromTime = true;
5434
      boolean that_present_fromTime = true;
5435
      if (this_present_fromTime || that_present_fromTime) {
5436
        if (!(this_present_fromTime && that_present_fromTime))
5437
          return false;
5438
        if (this.fromTime != that.fromTime)
5439
          return false;
5440
      }
5441
 
5442
      boolean this_present_toTime = true;
5443
      boolean that_present_toTime = true;
5444
      if (this_present_toTime || that_present_toTime) {
5445
        if (!(this_present_toTime && that_present_toTime))
5446
          return false;
5447
        if (this.toTime != that.toTime)
5448
          return false;
5449
      }
5450
 
5451
      boolean this_present_gatewayId = true;
5452
      boolean that_present_gatewayId = true;
5453
      if (this_present_gatewayId || that_present_gatewayId) {
5454
        if (!(this_present_gatewayId && that_present_gatewayId))
5455
          return false;
5456
        if (this.gatewayId != that.gatewayId)
5457
          return false;
5458
      }
5459
 
5460
      return true;
5461
    }
5462
 
5463
    @Override
5464
    public int hashCode() {
5465
      return 0;
5466
    }
5467
 
5468
    public int compareTo(getPaymentsByCapturedDate_args other) {
5469
      if (!getClass().equals(other.getClass())) {
5470
        return getClass().getName().compareTo(other.getClass().getName());
5471
      }
5472
 
5473
      int lastComparison = 0;
5474
      getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
5475
 
5476
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
5477
      if (lastComparison != 0) {
5478
        return lastComparison;
5479
      }
5480
      if (isSetFromTime()) {
5481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
5482
        if (lastComparison != 0) {
5483
          return lastComparison;
5484
        }
5485
      }
5486
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
5487
      if (lastComparison != 0) {
5488
        return lastComparison;
5489
      }
5490
      if (isSetToTime()) {
5491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
5492
        if (lastComparison != 0) {
5493
          return lastComparison;
5494
        }
5495
      }
5496
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
5497
      if (lastComparison != 0) {
5498
        return lastComparison;
5499
      }
5500
      if (isSetGatewayId()) {
5501
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
5502
        if (lastComparison != 0) {
5503
          return lastComparison;
5504
        }
5505
      }
5506
      return 0;
5507
    }
5508
 
5509
    public _Fields fieldForId(int fieldId) {
5510
      return _Fields.findByThriftId(fieldId);
5511
    }
5512
 
5513
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5514
      org.apache.thrift.protocol.TField field;
5515
      iprot.readStructBegin();
5516
      while (true)
5517
      {
5518
        field = iprot.readFieldBegin();
5519
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5520
          break;
5521
        }
5522
        switch (field.id) {
5523
          case 1: // FROM_TIME
5524
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5525
              this.fromTime = iprot.readI64();
5526
              setFromTimeIsSet(true);
5527
            } else { 
5528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5529
            }
5530
            break;
5531
          case 2: // TO_TIME
5532
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5533
              this.toTime = iprot.readI64();
5534
              setToTimeIsSet(true);
5535
            } else { 
5536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5537
            }
5538
            break;
5539
          case 3: // GATEWAY_ID
5540
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5541
              this.gatewayId = iprot.readI64();
5542
              setGatewayIdIsSet(true);
5543
            } else { 
5544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5545
            }
5546
            break;
5547
          default:
5548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5549
        }
5550
        iprot.readFieldEnd();
5551
      }
5552
      iprot.readStructEnd();
5553
      validate();
5554
    }
5555
 
5556
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5557
      validate();
5558
 
5559
      oprot.writeStructBegin(STRUCT_DESC);
5560
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
5561
      oprot.writeI64(this.fromTime);
5562
      oprot.writeFieldEnd();
5563
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
5564
      oprot.writeI64(this.toTime);
5565
      oprot.writeFieldEnd();
5566
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
5567
      oprot.writeI64(this.gatewayId);
5568
      oprot.writeFieldEnd();
5569
      oprot.writeFieldStop();
5570
      oprot.writeStructEnd();
5571
    }
5572
 
5573
    @Override
5574
    public String toString() {
5575
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
5576
      boolean first = true;
5577
 
5578
      sb.append("fromTime:");
5579
      sb.append(this.fromTime);
5580
      first = false;
5581
      if (!first) sb.append(", ");
5582
      sb.append("toTime:");
5583
      sb.append(this.toTime);
5584
      first = false;
5585
      if (!first) sb.append(", ");
5586
      sb.append("gatewayId:");
5587
      sb.append(this.gatewayId);
5588
      first = false;
5589
      sb.append(")");
5590
      return sb.toString();
5591
    }
5592
 
5593
    public void validate() throws org.apache.thrift.TException {
5594
      // check for required fields
5595
    }
5596
 
5597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5598
      try {
5599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5600
      } catch (org.apache.thrift.TException te) {
5601
        throw new java.io.IOException(te);
5602
      }
5603
    }
5604
 
5605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5606
      try {
5607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5608
      } catch (org.apache.thrift.TException te) {
5609
        throw new java.io.IOException(te);
5610
      }
5611
    }
5612
 
5613
  }
5614
 
5615
  public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable   {
5616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
5617
 
5618
    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);
5619
    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);
5620
 
5621
    private List<Payment> success; // required
5622
    private PaymentException pe; // required
5623
 
5624
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5625
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5626
      SUCCESS((short)0, "success"),
5627
      PE((short)1, "pe");
5628
 
5629
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5630
 
5631
      static {
5632
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5633
          byName.put(field.getFieldName(), field);
5634
        }
5635
      }
5636
 
5637
      /**
5638
       * Find the _Fields constant that matches fieldId, or null if its not found.
5639
       */
5640
      public static _Fields findByThriftId(int fieldId) {
5641
        switch(fieldId) {
5642
          case 0: // SUCCESS
5643
            return SUCCESS;
5644
          case 1: // PE
5645
            return PE;
5646
          default:
5647
            return null;
5648
        }
5649
      }
5650
 
5651
      /**
5652
       * Find the _Fields constant that matches fieldId, throwing an exception
5653
       * if it is not found.
5654
       */
5655
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5656
        _Fields fields = findByThriftId(fieldId);
5657
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5658
        return fields;
5659
      }
5660
 
5661
      /**
5662
       * Find the _Fields constant that matches name, or null if its not found.
5663
       */
5664
      public static _Fields findByName(String name) {
5665
        return byName.get(name);
5666
      }
5667
 
5668
      private final short _thriftId;
5669
      private final String _fieldName;
5670
 
5671
      _Fields(short thriftId, String fieldName) {
5672
        _thriftId = thriftId;
5673
        _fieldName = fieldName;
5674
      }
5675
 
5676
      public short getThriftFieldId() {
5677
        return _thriftId;
5678
      }
5679
 
5680
      public String getFieldName() {
5681
        return _fieldName;
5682
      }
5683
    }
5684
 
5685
    // isset id assignments
5686
 
5687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5688
    static {
5689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5690
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5691
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5692
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
5693
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5694
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5695
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5696
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
5697
    }
5698
 
5699
    public getPaymentsByCapturedDate_result() {
5700
    }
5701
 
5702
    public getPaymentsByCapturedDate_result(
5703
      List<Payment> success,
5704
      PaymentException pe)
5705
    {
5706
      this();
5707
      this.success = success;
5708
      this.pe = pe;
5709
    }
5710
 
5711
    /**
5712
     * Performs a deep copy on <i>other</i>.
5713
     */
5714
    public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
5715
      if (other.isSetSuccess()) {
5716
        List<Payment> __this__success = new ArrayList<Payment>();
5717
        for (Payment other_element : other.success) {
5718
          __this__success.add(new Payment(other_element));
5719
        }
5720
        this.success = __this__success;
5721
      }
5722
      if (other.isSetPe()) {
5723
        this.pe = new PaymentException(other.pe);
5724
      }
5725
    }
5726
 
5727
    public getPaymentsByCapturedDate_result deepCopy() {
5728
      return new getPaymentsByCapturedDate_result(this);
5729
    }
5730
 
5731
    @Override
5732
    public void clear() {
5733
      this.success = null;
5734
      this.pe = null;
5735
    }
5736
 
5737
    public int getSuccessSize() {
5738
      return (this.success == null) ? 0 : this.success.size();
5739
    }
5740
 
5741
    public java.util.Iterator<Payment> getSuccessIterator() {
5742
      return (this.success == null) ? null : this.success.iterator();
5743
    }
5744
 
5745
    public void addToSuccess(Payment elem) {
5746
      if (this.success == null) {
5747
        this.success = new ArrayList<Payment>();
5748
      }
5749
      this.success.add(elem);
5750
    }
5751
 
5752
    public List<Payment> getSuccess() {
5753
      return this.success;
5754
    }
5755
 
5756
    public void setSuccess(List<Payment> success) {
5757
      this.success = success;
5758
    }
5759
 
5760
    public void unsetSuccess() {
5761
      this.success = null;
5762
    }
5763
 
5764
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5765
    public boolean isSetSuccess() {
5766
      return this.success != null;
5767
    }
5768
 
5769
    public void setSuccessIsSet(boolean value) {
5770
      if (!value) {
5771
        this.success = null;
5772
      }
5773
    }
5774
 
5775
    public PaymentException getPe() {
5776
      return this.pe;
5777
    }
5778
 
5779
    public void setPe(PaymentException pe) {
5780
      this.pe = pe;
5781
    }
5782
 
5783
    public void unsetPe() {
5784
      this.pe = null;
5785
    }
5786
 
5787
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
5788
    public boolean isSetPe() {
5789
      return this.pe != null;
5790
    }
5791
 
5792
    public void setPeIsSet(boolean value) {
5793
      if (!value) {
5794
        this.pe = null;
5795
      }
5796
    }
5797
 
5798
    public void setFieldValue(_Fields field, Object value) {
5799
      switch (field) {
5800
      case SUCCESS:
5801
        if (value == null) {
5802
          unsetSuccess();
5803
        } else {
5804
          setSuccess((List<Payment>)value);
5805
        }
5806
        break;
5807
 
5808
      case PE:
5809
        if (value == null) {
5810
          unsetPe();
5811
        } else {
5812
          setPe((PaymentException)value);
5813
        }
5814
        break;
5815
 
5816
      }
5817
    }
5818
 
5819
    public Object getFieldValue(_Fields field) {
5820
      switch (field) {
5821
      case SUCCESS:
5822
        return getSuccess();
5823
 
5824
      case PE:
5825
        return getPe();
5826
 
5827
      }
5828
      throw new IllegalStateException();
5829
    }
5830
 
5831
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5832
    public boolean isSet(_Fields field) {
5833
      if (field == null) {
5834
        throw new IllegalArgumentException();
5835
      }
5836
 
5837
      switch (field) {
5838
      case SUCCESS:
5839
        return isSetSuccess();
5840
      case PE:
5841
        return isSetPe();
5842
      }
5843
      throw new IllegalStateException();
5844
    }
5845
 
5846
    @Override
5847
    public boolean equals(Object that) {
5848
      if (that == null)
5849
        return false;
5850
      if (that instanceof getPaymentsByCapturedDate_result)
5851
        return this.equals((getPaymentsByCapturedDate_result)that);
5852
      return false;
5853
    }
5854
 
5855
    public boolean equals(getPaymentsByCapturedDate_result that) {
5856
      if (that == null)
5857
        return false;
5858
 
5859
      boolean this_present_success = true && this.isSetSuccess();
5860
      boolean that_present_success = true && that.isSetSuccess();
5861
      if (this_present_success || that_present_success) {
5862
        if (!(this_present_success && that_present_success))
5863
          return false;
5864
        if (!this.success.equals(that.success))
5865
          return false;
5866
      }
5867
 
5868
      boolean this_present_pe = true && this.isSetPe();
5869
      boolean that_present_pe = true && that.isSetPe();
5870
      if (this_present_pe || that_present_pe) {
5871
        if (!(this_present_pe && that_present_pe))
5872
          return false;
5873
        if (!this.pe.equals(that.pe))
5874
          return false;
5875
      }
5876
 
5877
      return true;
5878
    }
5879
 
5880
    @Override
5881
    public int hashCode() {
5882
      return 0;
5883
    }
5884
 
5885
    public int compareTo(getPaymentsByCapturedDate_result other) {
5886
      if (!getClass().equals(other.getClass())) {
5887
        return getClass().getName().compareTo(other.getClass().getName());
5888
      }
5889
 
5890
      int lastComparison = 0;
5891
      getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
5892
 
5893
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5894
      if (lastComparison != 0) {
5895
        return lastComparison;
5896
      }
5897
      if (isSetSuccess()) {
5898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5899
        if (lastComparison != 0) {
5900
          return lastComparison;
5901
        }
5902
      }
5903
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
5904
      if (lastComparison != 0) {
5905
        return lastComparison;
5906
      }
5907
      if (isSetPe()) {
5908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5909
        if (lastComparison != 0) {
5910
          return lastComparison;
5911
        }
5912
      }
5913
      return 0;
5914
    }
5915
 
5916
    public _Fields fieldForId(int fieldId) {
5917
      return _Fields.findByThriftId(fieldId);
5918
    }
5919
 
5920
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5921
      org.apache.thrift.protocol.TField field;
5922
      iprot.readStructBegin();
5923
      while (true)
5924
      {
5925
        field = iprot.readFieldBegin();
5926
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5927
          break;
5928
        }
5929
        switch (field.id) {
5930
          case 0: // SUCCESS
5931
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5932
              {
5933
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5934
                this.success = new ArrayList<Payment>(_list20.size);
5935
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5936
                {
5937
                  Payment _elem22; // required
5938
                  _elem22 = new Payment();
5939
                  _elem22.read(iprot);
5940
                  this.success.add(_elem22);
5941
                }
5942
                iprot.readListEnd();
5943
              }
5944
            } else { 
5945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5946
            }
5947
            break;
5948
          case 1: // PE
5949
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5950
              this.pe = new PaymentException();
5951
              this.pe.read(iprot);
5952
            } else { 
5953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5954
            }
5955
            break;
5956
          default:
5957
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5958
        }
5959
        iprot.readFieldEnd();
5960
      }
5961
      iprot.readStructEnd();
5962
      validate();
5963
    }
5964
 
5965
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5966
      oprot.writeStructBegin(STRUCT_DESC);
5967
 
5968
      if (this.isSetSuccess()) {
5969
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5970
        {
5971
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5972
          for (Payment _iter23 : this.success)
5973
          {
5974
            _iter23.write(oprot);
5975
          }
5976
          oprot.writeListEnd();
5977
        }
5978
        oprot.writeFieldEnd();
5979
      } else if (this.isSetPe()) {
5980
        oprot.writeFieldBegin(PE_FIELD_DESC);
5981
        this.pe.write(oprot);
5982
        oprot.writeFieldEnd();
5983
      }
5984
      oprot.writeFieldStop();
5985
      oprot.writeStructEnd();
5986
    }
5987
 
5988
    @Override
5989
    public String toString() {
5990
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
5991
      boolean first = true;
5992
 
5993
      sb.append("success:");
5994
      if (this.success == null) {
5995
        sb.append("null");
5996
      } else {
5997
        sb.append(this.success);
5998
      }
5999
      first = false;
6000
      if (!first) sb.append(", ");
6001
      sb.append("pe:");
6002
      if (this.pe == null) {
6003
        sb.append("null");
6004
      } else {
6005
        sb.append(this.pe);
6006
      }
6007
      first = false;
6008
      sb.append(")");
6009
      return sb.toString();
6010
    }
6011
 
6012
    public void validate() throws org.apache.thrift.TException {
6013
      // check for required fields
6014
    }
6015
 
6016
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6017
      try {
6018
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6019
      } catch (org.apache.thrift.TException te) {
6020
        throw new java.io.IOException(te);
6021
      }
6022
    }
6023
 
6024
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6025
      try {
6026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6027
      } catch (org.apache.thrift.TException te) {
6028
        throw new java.io.IOException(te);
6029
      }
6030
    }
6031
 
6032
  }
6033
 
3430 rajveer 6034
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
6035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
123 ashish 6036
 
3430 rajveer 6037
    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 6038
 
3430 rajveer 6039
    private long id; // required
123 ashish 6040
 
6041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6042
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 6043
      ID((short)1, "id");
123 ashish 6044
 
6045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6046
 
6047
      static {
6048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6049
          byName.put(field.getFieldName(), field);
6050
        }
6051
      }
6052
 
6053
      /**
6054
       * Find the _Fields constant that matches fieldId, or null if its not found.
6055
       */
6056
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6057
        switch(fieldId) {
6058
          case 1: // ID
6059
            return ID;
6060
          default:
6061
            return null;
6062
        }
123 ashish 6063
      }
6064
 
6065
      /**
6066
       * Find the _Fields constant that matches fieldId, throwing an exception
6067
       * if it is not found.
6068
       */
6069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6070
        _Fields fields = findByThriftId(fieldId);
6071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6072
        return fields;
6073
      }
6074
 
6075
      /**
6076
       * Find the _Fields constant that matches name, or null if its not found.
6077
       */
6078
      public static _Fields findByName(String name) {
6079
        return byName.get(name);
6080
      }
6081
 
6082
      private final short _thriftId;
6083
      private final String _fieldName;
6084
 
6085
      _Fields(short thriftId, String fieldName) {
6086
        _thriftId = thriftId;
6087
        _fieldName = fieldName;
6088
      }
6089
 
6090
      public short getThriftFieldId() {
6091
        return _thriftId;
6092
      }
6093
 
6094
      public String getFieldName() {
6095
        return _fieldName;
6096
      }
6097
    }
6098
 
6099
    // isset id assignments
420 ashish 6100
    private static final int __ID_ISSET_ID = 0;
123 ashish 6101
    private BitSet __isset_bit_vector = new BitSet(1);
6102
 
3430 rajveer 6103
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 6104
    static {
3430 rajveer 6105
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6106
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
123 ashish 6110
    }
6111
 
695 rajveer 6112
    public getPaymentGateway_args() {
123 ashish 6113
    }
6114
 
695 rajveer 6115
    public getPaymentGateway_args(
6116
      long id)
123 ashish 6117
    {
6118
      this();
420 ashish 6119
      this.id = id;
6120
      setIdIsSet(true);
123 ashish 6121
    }
6122
 
6123
    /**
6124
     * Performs a deep copy on <i>other</i>.
6125
     */
695 rajveer 6126
    public getPaymentGateway_args(getPaymentGateway_args other) {
123 ashish 6127
      __isset_bit_vector.clear();
6128
      __isset_bit_vector.or(other.__isset_bit_vector);
420 ashish 6129
      this.id = other.id;
123 ashish 6130
    }
6131
 
695 rajveer 6132
    public getPaymentGateway_args deepCopy() {
6133
      return new getPaymentGateway_args(this);
123 ashish 6134
    }
6135
 
3430 rajveer 6136
    @Override
6137
    public void clear() {
6138
      setIdIsSet(false);
6139
      this.id = 0;
123 ashish 6140
    }
6141
 
420 ashish 6142
    public long getId() {
6143
      return this.id;
123 ashish 6144
    }
6145
 
3430 rajveer 6146
    public void setId(long id) {
420 ashish 6147
      this.id = id;
6148
      setIdIsSet(true);
123 ashish 6149
    }
6150
 
420 ashish 6151
    public void unsetId() {
6152
      __isset_bit_vector.clear(__ID_ISSET_ID);
123 ashish 6153
    }
6154
 
3430 rajveer 6155
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 6156
    public boolean isSetId() {
6157
      return __isset_bit_vector.get(__ID_ISSET_ID);
123 ashish 6158
    }
6159
 
420 ashish 6160
    public void setIdIsSet(boolean value) {
6161
      __isset_bit_vector.set(__ID_ISSET_ID, value);
123 ashish 6162
    }
6163
 
6164
    public void setFieldValue(_Fields field, Object value) {
6165
      switch (field) {
420 ashish 6166
      case ID:
123 ashish 6167
        if (value == null) {
420 ashish 6168
          unsetId();
123 ashish 6169
        } else {
420 ashish 6170
          setId((Long)value);
123 ashish 6171
        }
6172
        break;
6173
 
6174
      }
6175
    }
6176
 
6177
    public Object getFieldValue(_Fields field) {
6178
      switch (field) {
420 ashish 6179
      case ID:
3430 rajveer 6180
        return Long.valueOf(getId());
123 ashish 6181
 
6182
      }
6183
      throw new IllegalStateException();
6184
    }
6185
 
3430 rajveer 6186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6187
    public boolean isSet(_Fields field) {
6188
      if (field == null) {
6189
        throw new IllegalArgumentException();
6190
      }
123 ashish 6191
 
6192
      switch (field) {
420 ashish 6193
      case ID:
6194
        return isSetId();
123 ashish 6195
      }
6196
      throw new IllegalStateException();
6197
    }
6198
 
6199
    @Override
6200
    public boolean equals(Object that) {
6201
      if (that == null)
6202
        return false;
695 rajveer 6203
      if (that instanceof getPaymentGateway_args)
6204
        return this.equals((getPaymentGateway_args)that);
123 ashish 6205
      return false;
6206
    }
6207
 
695 rajveer 6208
    public boolean equals(getPaymentGateway_args that) {
123 ashish 6209
      if (that == null)
6210
        return false;
6211
 
420 ashish 6212
      boolean this_present_id = true;
6213
      boolean that_present_id = true;
6214
      if (this_present_id || that_present_id) {
6215
        if (!(this_present_id && that_present_id))
123 ashish 6216
          return false;
420 ashish 6217
        if (this.id != that.id)
123 ashish 6218
          return false;
6219
      }
6220
 
6221
      return true;
6222
    }
6223
 
6224
    @Override
6225
    public int hashCode() {
6226
      return 0;
6227
    }
6228
 
695 rajveer 6229
    public int compareTo(getPaymentGateway_args other) {
123 ashish 6230
      if (!getClass().equals(other.getClass())) {
6231
        return getClass().getName().compareTo(other.getClass().getName());
6232
      }
6233
 
6234
      int lastComparison = 0;
695 rajveer 6235
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
123 ashish 6236
 
3430 rajveer 6237
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
123 ashish 6238
      if (lastComparison != 0) {
6239
        return lastComparison;
6240
      }
3430 rajveer 6241
      if (isSetId()) {
6242
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6243
        if (lastComparison != 0) {
6244
          return lastComparison;
6245
        }
123 ashish 6246
      }
6247
      return 0;
6248
    }
6249
 
3430 rajveer 6250
    public _Fields fieldForId(int fieldId) {
6251
      return _Fields.findByThriftId(fieldId);
6252
    }
6253
 
6254
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6255
      org.apache.thrift.protocol.TField field;
123 ashish 6256
      iprot.readStructBegin();
6257
      while (true)
6258
      {
6259
        field = iprot.readFieldBegin();
3430 rajveer 6260
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 6261
          break;
6262
        }
3430 rajveer 6263
        switch (field.id) {
6264
          case 1: // ID
6265
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6266
              this.id = iprot.readI64();
6267
              setIdIsSet(true);
6268
            } else { 
6269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6270
            }
6271
            break;
6272
          default:
6273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 6274
        }
3430 rajveer 6275
        iprot.readFieldEnd();
123 ashish 6276
      }
6277
      iprot.readStructEnd();
6278
      validate();
6279
    }
6280
 
3430 rajveer 6281
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 6282
      validate();
6283
 
6284
      oprot.writeStructBegin(STRUCT_DESC);
420 ashish 6285
      oprot.writeFieldBegin(ID_FIELD_DESC);
6286
      oprot.writeI64(this.id);
123 ashish 6287
      oprot.writeFieldEnd();
6288
      oprot.writeFieldStop();
6289
      oprot.writeStructEnd();
6290
    }
6291
 
6292
    @Override
6293
    public String toString() {
695 rajveer 6294
      StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
123 ashish 6295
      boolean first = true;
6296
 
420 ashish 6297
      sb.append("id:");
6298
      sb.append(this.id);
123 ashish 6299
      first = false;
6300
      sb.append(")");
6301
      return sb.toString();
6302
    }
6303
 
3430 rajveer 6304
    public void validate() throws org.apache.thrift.TException {
123 ashish 6305
      // check for required fields
6306
    }
6307
 
3430 rajveer 6308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6309
      try {
6310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6311
      } catch (org.apache.thrift.TException te) {
6312
        throw new java.io.IOException(te);
6313
      }
6314
    }
6315
 
6316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6317
      try {
6318
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6319
        __isset_bit_vector = new BitSet(1);
6320
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6321
      } catch (org.apache.thrift.TException te) {
6322
        throw new java.io.IOException(te);
6323
      }
6324
    }
6325
 
123 ashish 6326
  }
6327
 
3430 rajveer 6328
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
6329
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
123 ashish 6330
 
3430 rajveer 6331
    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);
6332
    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 6333
 
3430 rajveer 6334
    private PaymentGateway success; // required
6335
    private PaymentException pe; // required
123 ashish 6336
 
6337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6338
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 6339
      SUCCESS((short)0, "success"),
6340
      PE((short)1, "pe");
6341
 
6342
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6343
 
6344
      static {
6345
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6346
          byName.put(field.getFieldName(), field);
6347
        }
6348
      }
6349
 
6350
      /**
6351
       * Find the _Fields constant that matches fieldId, or null if its not found.
6352
       */
6353
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6354
        switch(fieldId) {
6355
          case 0: // SUCCESS
6356
            return SUCCESS;
6357
          case 1: // PE
6358
            return PE;
6359
          default:
6360
            return null;
6361
        }
420 ashish 6362
      }
6363
 
6364
      /**
6365
       * Find the _Fields constant that matches fieldId, throwing an exception
6366
       * if it is not found.
6367
       */
6368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6369
        _Fields fields = findByThriftId(fieldId);
6370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6371
        return fields;
6372
      }
6373
 
6374
      /**
6375
       * Find the _Fields constant that matches name, or null if its not found.
6376
       */
6377
      public static _Fields findByName(String name) {
6378
        return byName.get(name);
6379
      }
6380
 
6381
      private final short _thriftId;
6382
      private final String _fieldName;
6383
 
6384
      _Fields(short thriftId, String fieldName) {
6385
        _thriftId = thriftId;
6386
        _fieldName = fieldName;
6387
      }
6388
 
6389
      public short getThriftFieldId() {
6390
        return _thriftId;
6391
      }
6392
 
6393
      public String getFieldName() {
6394
        return _fieldName;
6395
      }
6396
    }
6397
 
6398
    // isset id assignments
6399
 
3430 rajveer 6400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 6401
    static {
3430 rajveer 6402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6403
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6404
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
6405
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6406
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6407
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6408
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
420 ashish 6409
    }
6410
 
695 rajveer 6411
    public getPaymentGateway_result() {
420 ashish 6412
    }
6413
 
695 rajveer 6414
    public getPaymentGateway_result(
6415
      PaymentGateway success,
420 ashish 6416
      PaymentException pe)
6417
    {
6418
      this();
6419
      this.success = success;
6420
      this.pe = pe;
6421
    }
6422
 
6423
    /**
6424
     * Performs a deep copy on <i>other</i>.
6425
     */
695 rajveer 6426
    public getPaymentGateway_result(getPaymentGateway_result other) {
420 ashish 6427
      if (other.isSetSuccess()) {
695 rajveer 6428
        this.success = new PaymentGateway(other.success);
420 ashish 6429
      }
6430
      if (other.isSetPe()) {
6431
        this.pe = new PaymentException(other.pe);
6432
      }
6433
    }
6434
 
695 rajveer 6435
    public getPaymentGateway_result deepCopy() {
6436
      return new getPaymentGateway_result(this);
420 ashish 6437
    }
6438
 
3430 rajveer 6439
    @Override
6440
    public void clear() {
6441
      this.success = null;
6442
      this.pe = null;
420 ashish 6443
    }
6444
 
695 rajveer 6445
    public PaymentGateway getSuccess() {
420 ashish 6446
      return this.success;
6447
    }
6448
 
3430 rajveer 6449
    public void setSuccess(PaymentGateway success) {
420 ashish 6450
      this.success = success;
6451
    }
6452
 
6453
    public void unsetSuccess() {
6454
      this.success = null;
6455
    }
6456
 
3430 rajveer 6457
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 6458
    public boolean isSetSuccess() {
6459
      return this.success != null;
6460
    }
6461
 
6462
    public void setSuccessIsSet(boolean value) {
6463
      if (!value) {
6464
        this.success = null;
6465
      }
6466
    }
6467
 
6468
    public PaymentException getPe() {
6469
      return this.pe;
6470
    }
6471
 
3430 rajveer 6472
    public void setPe(PaymentException pe) {
420 ashish 6473
      this.pe = pe;
6474
    }
6475
 
6476
    public void unsetPe() {
6477
      this.pe = null;
6478
    }
6479
 
3430 rajveer 6480
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 6481
    public boolean isSetPe() {
6482
      return this.pe != null;
6483
    }
6484
 
6485
    public void setPeIsSet(boolean value) {
6486
      if (!value) {
6487
        this.pe = null;
6488
      }
6489
    }
6490
 
6491
    public void setFieldValue(_Fields field, Object value) {
6492
      switch (field) {
6493
      case SUCCESS:
6494
        if (value == null) {
6495
          unsetSuccess();
6496
        } else {
695 rajveer 6497
          setSuccess((PaymentGateway)value);
420 ashish 6498
        }
6499
        break;
6500
 
6501
      case PE:
6502
        if (value == null) {
6503
          unsetPe();
6504
        } else {
6505
          setPe((PaymentException)value);
6506
        }
6507
        break;
6508
 
6509
      }
6510
    }
6511
 
6512
    public Object getFieldValue(_Fields field) {
6513
      switch (field) {
6514
      case SUCCESS:
6515
        return getSuccess();
6516
 
6517
      case PE:
6518
        return getPe();
6519
 
6520
      }
6521
      throw new IllegalStateException();
6522
    }
6523
 
3430 rajveer 6524
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6525
    public boolean isSet(_Fields field) {
6526
      if (field == null) {
6527
        throw new IllegalArgumentException();
6528
      }
420 ashish 6529
 
6530
      switch (field) {
6531
      case SUCCESS:
6532
        return isSetSuccess();
6533
      case PE:
6534
        return isSetPe();
6535
      }
6536
      throw new IllegalStateException();
6537
    }
6538
 
6539
    @Override
6540
    public boolean equals(Object that) {
6541
      if (that == null)
6542
        return false;
695 rajveer 6543
      if (that instanceof getPaymentGateway_result)
6544
        return this.equals((getPaymentGateway_result)that);
420 ashish 6545
      return false;
6546
    }
6547
 
695 rajveer 6548
    public boolean equals(getPaymentGateway_result that) {
420 ashish 6549
      if (that == null)
6550
        return false;
6551
 
6552
      boolean this_present_success = true && this.isSetSuccess();
6553
      boolean that_present_success = true && that.isSetSuccess();
6554
      if (this_present_success || that_present_success) {
6555
        if (!(this_present_success && that_present_success))
6556
          return false;
6557
        if (!this.success.equals(that.success))
6558
          return false;
6559
      }
6560
 
6561
      boolean this_present_pe = true && this.isSetPe();
6562
      boolean that_present_pe = true && that.isSetPe();
6563
      if (this_present_pe || that_present_pe) {
6564
        if (!(this_present_pe && that_present_pe))
6565
          return false;
6566
        if (!this.pe.equals(that.pe))
6567
          return false;
6568
      }
6569
 
6570
      return true;
6571
    }
6572
 
6573
    @Override
6574
    public int hashCode() {
6575
      return 0;
6576
    }
6577
 
695 rajveer 6578
    public int compareTo(getPaymentGateway_result other) {
6579
      if (!getClass().equals(other.getClass())) {
6580
        return getClass().getName().compareTo(other.getClass().getName());
6581
      }
6582
 
6583
      int lastComparison = 0;
6584
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
6585
 
3430 rajveer 6586
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 6587
      if (lastComparison != 0) {
6588
        return lastComparison;
6589
      }
3430 rajveer 6590
      if (isSetSuccess()) {
6591
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6592
        if (lastComparison != 0) {
6593
          return lastComparison;
6594
        }
695 rajveer 6595
      }
3430 rajveer 6596
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 6597
      if (lastComparison != 0) {
6598
        return lastComparison;
6599
      }
3430 rajveer 6600
      if (isSetPe()) {
6601
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6602
        if (lastComparison != 0) {
6603
          return lastComparison;
6604
        }
695 rajveer 6605
      }
6606
      return 0;
6607
    }
6608
 
3430 rajveer 6609
    public _Fields fieldForId(int fieldId) {
6610
      return _Fields.findByThriftId(fieldId);
6611
    }
6612
 
6613
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6614
      org.apache.thrift.protocol.TField field;
420 ashish 6615
      iprot.readStructBegin();
6616
      while (true)
6617
      {
6618
        field = iprot.readFieldBegin();
3430 rajveer 6619
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 6620
          break;
6621
        }
3430 rajveer 6622
        switch (field.id) {
6623
          case 0: // SUCCESS
6624
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6625
              this.success = new PaymentGateway();
6626
              this.success.read(iprot);
6627
            } else { 
6628
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6629
            }
6630
            break;
6631
          case 1: // PE
6632
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6633
              this.pe = new PaymentException();
6634
              this.pe.read(iprot);
6635
            } else { 
6636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6637
            }
6638
            break;
6639
          default:
6640
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 6641
        }
3430 rajveer 6642
        iprot.readFieldEnd();
420 ashish 6643
      }
6644
      iprot.readStructEnd();
6645
      validate();
6646
    }
6647
 
3430 rajveer 6648
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 6649
      oprot.writeStructBegin(STRUCT_DESC);
6650
 
6651
      if (this.isSetSuccess()) {
6652
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 6653
        this.success.write(oprot);
420 ashish 6654
        oprot.writeFieldEnd();
6655
      } else if (this.isSetPe()) {
6656
        oprot.writeFieldBegin(PE_FIELD_DESC);
6657
        this.pe.write(oprot);
6658
        oprot.writeFieldEnd();
6659
      }
6660
      oprot.writeFieldStop();
6661
      oprot.writeStructEnd();
6662
    }
6663
 
6664
    @Override
6665
    public String toString() {
695 rajveer 6666
      StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
420 ashish 6667
      boolean first = true;
6668
 
6669
      sb.append("success:");
6670
      if (this.success == null) {
6671
        sb.append("null");
6672
      } else {
6673
        sb.append(this.success);
6674
      }
6675
      first = false;
6676
      if (!first) sb.append(", ");
6677
      sb.append("pe:");
6678
      if (this.pe == null) {
6679
        sb.append("null");
6680
      } else {
6681
        sb.append(this.pe);
6682
      }
6683
      first = false;
6684
      sb.append(")");
6685
      return sb.toString();
6686
    }
6687
 
3430 rajveer 6688
    public void validate() throws org.apache.thrift.TException {
420 ashish 6689
      // check for required fields
6690
    }
6691
 
3430 rajveer 6692
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6693
      try {
6694
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6695
      } catch (org.apache.thrift.TException te) {
6696
        throw new java.io.IOException(te);
6697
      }
6698
    }
6699
 
6700
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6701
      try {
6702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6703
      } catch (org.apache.thrift.TException te) {
6704
        throw new java.io.IOException(te);
6705
      }
6706
    }
6707
 
420 ashish 6708
  }
6709
 
4600 varun.gupt 6710
  public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable   {
6711
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
6712
 
6713
 
6714
 
6715
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6716
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6717
;
6718
 
6719
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6720
 
6721
      static {
6722
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6723
          byName.put(field.getFieldName(), field);
6724
        }
6725
      }
6726
 
6727
      /**
6728
       * Find the _Fields constant that matches fieldId, or null if its not found.
6729
       */
6730
      public static _Fields findByThriftId(int fieldId) {
6731
        switch(fieldId) {
6732
          default:
6733
            return null;
6734
        }
6735
      }
6736
 
6737
      /**
6738
       * Find the _Fields constant that matches fieldId, throwing an exception
6739
       * if it is not found.
6740
       */
6741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6742
        _Fields fields = findByThriftId(fieldId);
6743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6744
        return fields;
6745
      }
6746
 
6747
      /**
6748
       * Find the _Fields constant that matches name, or null if its not found.
6749
       */
6750
      public static _Fields findByName(String name) {
6751
        return byName.get(name);
6752
      }
6753
 
6754
      private final short _thriftId;
6755
      private final String _fieldName;
6756
 
6757
      _Fields(short thriftId, String fieldName) {
6758
        _thriftId = thriftId;
6759
        _fieldName = fieldName;
6760
      }
6761
 
6762
      public short getThriftFieldId() {
6763
        return _thriftId;
6764
      }
6765
 
6766
      public String getFieldName() {
6767
        return _fieldName;
6768
      }
6769
    }
6770
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6771
    static {
6772
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6773
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6774
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
6775
    }
6776
 
6777
    public getActivePaymentGateways_args() {
6778
    }
6779
 
6780
    /**
6781
     * Performs a deep copy on <i>other</i>.
6782
     */
6783
    public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
6784
    }
6785
 
6786
    public getActivePaymentGateways_args deepCopy() {
6787
      return new getActivePaymentGateways_args(this);
6788
    }
6789
 
6790
    @Override
6791
    public void clear() {
6792
    }
6793
 
6794
    public void setFieldValue(_Fields field, Object value) {
6795
      switch (field) {
6796
      }
6797
    }
6798
 
6799
    public Object getFieldValue(_Fields field) {
6800
      switch (field) {
6801
      }
6802
      throw new IllegalStateException();
6803
    }
6804
 
6805
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6806
    public boolean isSet(_Fields field) {
6807
      if (field == null) {
6808
        throw new IllegalArgumentException();
6809
      }
6810
 
6811
      switch (field) {
6812
      }
6813
      throw new IllegalStateException();
6814
    }
6815
 
6816
    @Override
6817
    public boolean equals(Object that) {
6818
      if (that == null)
6819
        return false;
6820
      if (that instanceof getActivePaymentGateways_args)
6821
        return this.equals((getActivePaymentGateways_args)that);
6822
      return false;
6823
    }
6824
 
6825
    public boolean equals(getActivePaymentGateways_args that) {
6826
      if (that == null)
6827
        return false;
6828
 
6829
      return true;
6830
    }
6831
 
6832
    @Override
6833
    public int hashCode() {
6834
      return 0;
6835
    }
6836
 
6837
    public int compareTo(getActivePaymentGateways_args other) {
6838
      if (!getClass().equals(other.getClass())) {
6839
        return getClass().getName().compareTo(other.getClass().getName());
6840
      }
6841
 
6842
      int lastComparison = 0;
6843
      getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
6844
 
6845
      return 0;
6846
    }
6847
 
6848
    public _Fields fieldForId(int fieldId) {
6849
      return _Fields.findByThriftId(fieldId);
6850
    }
6851
 
6852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6853
      org.apache.thrift.protocol.TField field;
6854
      iprot.readStructBegin();
6855
      while (true)
6856
      {
6857
        field = iprot.readFieldBegin();
6858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6859
          break;
6860
        }
6861
        switch (field.id) {
6862
          default:
6863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6864
        }
6865
        iprot.readFieldEnd();
6866
      }
6867
      iprot.readStructEnd();
6868
      validate();
6869
    }
6870
 
6871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6872
      validate();
6873
 
6874
      oprot.writeStructBegin(STRUCT_DESC);
6875
      oprot.writeFieldStop();
6876
      oprot.writeStructEnd();
6877
    }
6878
 
6879
    @Override
6880
    public String toString() {
6881
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
6882
      boolean first = true;
6883
 
6884
      sb.append(")");
6885
      return sb.toString();
6886
    }
6887
 
6888
    public void validate() throws org.apache.thrift.TException {
6889
      // check for required fields
6890
    }
6891
 
6892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6893
      try {
6894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6895
      } catch (org.apache.thrift.TException te) {
6896
        throw new java.io.IOException(te);
6897
      }
6898
    }
6899
 
6900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6901
      try {
6902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6903
      } catch (org.apache.thrift.TException te) {
6904
        throw new java.io.IOException(te);
6905
      }
6906
    }
6907
 
6908
  }
6909
 
6910
  public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable   {
6911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
6912
 
6913
    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);
6914
    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);
6915
 
6916
    private List<PaymentGateway> success; // required
6917
    private PaymentException pe; // required
6918
 
6919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6921
      SUCCESS((short)0, "success"),
6922
      PE((short)1, "pe");
6923
 
6924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6925
 
6926
      static {
6927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6928
          byName.put(field.getFieldName(), field);
6929
        }
6930
      }
6931
 
6932
      /**
6933
       * Find the _Fields constant that matches fieldId, or null if its not found.
6934
       */
6935
      public static _Fields findByThriftId(int fieldId) {
6936
        switch(fieldId) {
6937
          case 0: // SUCCESS
6938
            return SUCCESS;
6939
          case 1: // PE
6940
            return PE;
6941
          default:
6942
            return null;
6943
        }
6944
      }
6945
 
6946
      /**
6947
       * Find the _Fields constant that matches fieldId, throwing an exception
6948
       * if it is not found.
6949
       */
6950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6951
        _Fields fields = findByThriftId(fieldId);
6952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6953
        return fields;
6954
      }
6955
 
6956
      /**
6957
       * Find the _Fields constant that matches name, or null if its not found.
6958
       */
6959
      public static _Fields findByName(String name) {
6960
        return byName.get(name);
6961
      }
6962
 
6963
      private final short _thriftId;
6964
      private final String _fieldName;
6965
 
6966
      _Fields(short thriftId, String fieldName) {
6967
        _thriftId = thriftId;
6968
        _fieldName = fieldName;
6969
      }
6970
 
6971
      public short getThriftFieldId() {
6972
        return _thriftId;
6973
      }
6974
 
6975
      public String getFieldName() {
6976
        return _fieldName;
6977
      }
6978
    }
6979
 
6980
    // isset id assignments
6981
 
6982
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6983
    static {
6984
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6985
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6986
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6987
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
6988
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6990
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6991
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
6992
    }
6993
 
6994
    public getActivePaymentGateways_result() {
6995
    }
6996
 
6997
    public getActivePaymentGateways_result(
6998
      List<PaymentGateway> success,
6999
      PaymentException pe)
7000
    {
7001
      this();
7002
      this.success = success;
7003
      this.pe = pe;
7004
    }
7005
 
7006
    /**
7007
     * Performs a deep copy on <i>other</i>.
7008
     */
7009
    public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
7010
      if (other.isSetSuccess()) {
7011
        List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
7012
        for (PaymentGateway other_element : other.success) {
7013
          __this__success.add(new PaymentGateway(other_element));
7014
        }
7015
        this.success = __this__success;
7016
      }
7017
      if (other.isSetPe()) {
7018
        this.pe = new PaymentException(other.pe);
7019
      }
7020
    }
7021
 
7022
    public getActivePaymentGateways_result deepCopy() {
7023
      return new getActivePaymentGateways_result(this);
7024
    }
7025
 
7026
    @Override
7027
    public void clear() {
7028
      this.success = null;
7029
      this.pe = null;
7030
    }
7031
 
7032
    public int getSuccessSize() {
7033
      return (this.success == null) ? 0 : this.success.size();
7034
    }
7035
 
7036
    public java.util.Iterator<PaymentGateway> getSuccessIterator() {
7037
      return (this.success == null) ? null : this.success.iterator();
7038
    }
7039
 
7040
    public void addToSuccess(PaymentGateway elem) {
7041
      if (this.success == null) {
7042
        this.success = new ArrayList<PaymentGateway>();
7043
      }
7044
      this.success.add(elem);
7045
    }
7046
 
7047
    public List<PaymentGateway> getSuccess() {
7048
      return this.success;
7049
    }
7050
 
7051
    public void setSuccess(List<PaymentGateway> success) {
7052
      this.success = success;
7053
    }
7054
 
7055
    public void unsetSuccess() {
7056
      this.success = null;
7057
    }
7058
 
7059
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7060
    public boolean isSetSuccess() {
7061
      return this.success != null;
7062
    }
7063
 
7064
    public void setSuccessIsSet(boolean value) {
7065
      if (!value) {
7066
        this.success = null;
7067
      }
7068
    }
7069
 
7070
    public PaymentException getPe() {
7071
      return this.pe;
7072
    }
7073
 
7074
    public void setPe(PaymentException pe) {
7075
      this.pe = pe;
7076
    }
7077
 
7078
    public void unsetPe() {
7079
      this.pe = null;
7080
    }
7081
 
7082
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
7083
    public boolean isSetPe() {
7084
      return this.pe != null;
7085
    }
7086
 
7087
    public void setPeIsSet(boolean value) {
7088
      if (!value) {
7089
        this.pe = null;
7090
      }
7091
    }
7092
 
7093
    public void setFieldValue(_Fields field, Object value) {
7094
      switch (field) {
7095
      case SUCCESS:
7096
        if (value == null) {
7097
          unsetSuccess();
7098
        } else {
7099
          setSuccess((List<PaymentGateway>)value);
7100
        }
7101
        break;
7102
 
7103
      case PE:
7104
        if (value == null) {
7105
          unsetPe();
7106
        } else {
7107
          setPe((PaymentException)value);
7108
        }
7109
        break;
7110
 
7111
      }
7112
    }
7113
 
7114
    public Object getFieldValue(_Fields field) {
7115
      switch (field) {
7116
      case SUCCESS:
7117
        return getSuccess();
7118
 
7119
      case PE:
7120
        return getPe();
7121
 
7122
      }
7123
      throw new IllegalStateException();
7124
    }
7125
 
7126
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7127
    public boolean isSet(_Fields field) {
7128
      if (field == null) {
7129
        throw new IllegalArgumentException();
7130
      }
7131
 
7132
      switch (field) {
7133
      case SUCCESS:
7134
        return isSetSuccess();
7135
      case PE:
7136
        return isSetPe();
7137
      }
7138
      throw new IllegalStateException();
7139
    }
7140
 
7141
    @Override
7142
    public boolean equals(Object that) {
7143
      if (that == null)
7144
        return false;
7145
      if (that instanceof getActivePaymentGateways_result)
7146
        return this.equals((getActivePaymentGateways_result)that);
7147
      return false;
7148
    }
7149
 
7150
    public boolean equals(getActivePaymentGateways_result that) {
7151
      if (that == null)
7152
        return false;
7153
 
7154
      boolean this_present_success = true && this.isSetSuccess();
7155
      boolean that_present_success = true && that.isSetSuccess();
7156
      if (this_present_success || that_present_success) {
7157
        if (!(this_present_success && that_present_success))
7158
          return false;
7159
        if (!this.success.equals(that.success))
7160
          return false;
7161
      }
7162
 
7163
      boolean this_present_pe = true && this.isSetPe();
7164
      boolean that_present_pe = true && that.isSetPe();
7165
      if (this_present_pe || that_present_pe) {
7166
        if (!(this_present_pe && that_present_pe))
7167
          return false;
7168
        if (!this.pe.equals(that.pe))
7169
          return false;
7170
      }
7171
 
7172
      return true;
7173
    }
7174
 
7175
    @Override
7176
    public int hashCode() {
7177
      return 0;
7178
    }
7179
 
7180
    public int compareTo(getActivePaymentGateways_result other) {
7181
      if (!getClass().equals(other.getClass())) {
7182
        return getClass().getName().compareTo(other.getClass().getName());
7183
      }
7184
 
7185
      int lastComparison = 0;
7186
      getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
7187
 
7188
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7189
      if (lastComparison != 0) {
7190
        return lastComparison;
7191
      }
7192
      if (isSetSuccess()) {
7193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7194
        if (lastComparison != 0) {
7195
          return lastComparison;
7196
        }
7197
      }
7198
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
7199
      if (lastComparison != 0) {
7200
        return lastComparison;
7201
      }
7202
      if (isSetPe()) {
7203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7204
        if (lastComparison != 0) {
7205
          return lastComparison;
7206
        }
7207
      }
7208
      return 0;
7209
    }
7210
 
7211
    public _Fields fieldForId(int fieldId) {
7212
      return _Fields.findByThriftId(fieldId);
7213
    }
7214
 
7215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7216
      org.apache.thrift.protocol.TField field;
7217
      iprot.readStructBegin();
7218
      while (true)
7219
      {
7220
        field = iprot.readFieldBegin();
7221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7222
          break;
7223
        }
7224
        switch (field.id) {
7225
          case 0: // SUCCESS
7226
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7227
              {
7228
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
7229
                this.success = new ArrayList<PaymentGateway>(_list24.size);
7230
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7231
                {
7232
                  PaymentGateway _elem26; // required
7233
                  _elem26 = new PaymentGateway();
7234
                  _elem26.read(iprot);
7235
                  this.success.add(_elem26);
7236
                }
7237
                iprot.readListEnd();
7238
              }
7239
            } else { 
7240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7241
            }
7242
            break;
7243
          case 1: // PE
7244
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7245
              this.pe = new PaymentException();
7246
              this.pe.read(iprot);
7247
            } else { 
7248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7249
            }
7250
            break;
7251
          default:
7252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7253
        }
7254
        iprot.readFieldEnd();
7255
      }
7256
      iprot.readStructEnd();
7257
      validate();
7258
    }
7259
 
7260
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7261
      oprot.writeStructBegin(STRUCT_DESC);
7262
 
7263
      if (this.isSetSuccess()) {
7264
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7265
        {
7266
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7267
          for (PaymentGateway _iter27 : this.success)
7268
          {
7269
            _iter27.write(oprot);
7270
          }
7271
          oprot.writeListEnd();
7272
        }
7273
        oprot.writeFieldEnd();
7274
      } else if (this.isSetPe()) {
7275
        oprot.writeFieldBegin(PE_FIELD_DESC);
7276
        this.pe.write(oprot);
7277
        oprot.writeFieldEnd();
7278
      }
7279
      oprot.writeFieldStop();
7280
      oprot.writeStructEnd();
7281
    }
7282
 
7283
    @Override
7284
    public String toString() {
7285
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
7286
      boolean first = true;
7287
 
7288
      sb.append("success:");
7289
      if (this.success == null) {
7290
        sb.append("null");
7291
      } else {
7292
        sb.append(this.success);
7293
      }
7294
      first = false;
7295
      if (!first) sb.append(", ");
7296
      sb.append("pe:");
7297
      if (this.pe == null) {
7298
        sb.append("null");
7299
      } else {
7300
        sb.append(this.pe);
7301
      }
7302
      first = false;
7303
      sb.append(")");
7304
      return sb.toString();
7305
    }
7306
 
7307
    public void validate() throws org.apache.thrift.TException {
7308
      // check for required fields
7309
    }
7310
 
7311
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7312
      try {
7313
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7314
      } catch (org.apache.thrift.TException te) {
7315
        throw new java.io.IOException(te);
7316
      }
7317
    }
7318
 
7319
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7320
      try {
7321
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7322
      } catch (org.apache.thrift.TException te) {
7323
        throw new java.io.IOException(te);
7324
      }
7325
    }
7326
 
7327
  }
7328
 
3430 rajveer 7329
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
7330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
420 ashish 7331
 
3430 rajveer 7332
    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 7333
 
3430 rajveer 7334
    private long id; // required
420 ashish 7335
 
7336
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7337
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7338
      ID((short)1, "id");
7339
 
7340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7341
 
7342
      static {
7343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7344
          byName.put(field.getFieldName(), field);
7345
        }
7346
      }
7347
 
7348
      /**
7349
       * Find the _Fields constant that matches fieldId, or null if its not found.
7350
       */
7351
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7352
        switch(fieldId) {
7353
          case 1: // ID
7354
            return ID;
7355
          default:
7356
            return null;
7357
        }
420 ashish 7358
      }
7359
 
7360
      /**
7361
       * Find the _Fields constant that matches fieldId, throwing an exception
7362
       * if it is not found.
7363
       */
7364
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7365
        _Fields fields = findByThriftId(fieldId);
7366
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7367
        return fields;
7368
      }
7369
 
7370
      /**
7371
       * Find the _Fields constant that matches name, or null if its not found.
7372
       */
7373
      public static _Fields findByName(String name) {
7374
        return byName.get(name);
7375
      }
7376
 
7377
      private final short _thriftId;
7378
      private final String _fieldName;
7379
 
7380
      _Fields(short thriftId, String fieldName) {
7381
        _thriftId = thriftId;
7382
        _fieldName = fieldName;
7383
      }
7384
 
7385
      public short getThriftFieldId() {
7386
        return _thriftId;
7387
      }
7388
 
7389
      public String getFieldName() {
7390
        return _fieldName;
7391
      }
7392
    }
7393
 
7394
    // isset id assignments
7395
    private static final int __ID_ISSET_ID = 0;
7396
    private BitSet __isset_bit_vector = new BitSet(1);
7397
 
3430 rajveer 7398
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7399
    static {
3430 rajveer 7400
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7401
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7403
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7404
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
420 ashish 7405
    }
7406
 
695 rajveer 7407
    public getPayment_args() {
420 ashish 7408
    }
7409
 
695 rajveer 7410
    public getPayment_args(
420 ashish 7411
      long id)
7412
    {
7413
      this();
7414
      this.id = id;
7415
      setIdIsSet(true);
7416
    }
7417
 
7418
    /**
7419
     * Performs a deep copy on <i>other</i>.
7420
     */
695 rajveer 7421
    public getPayment_args(getPayment_args other) {
420 ashish 7422
      __isset_bit_vector.clear();
7423
      __isset_bit_vector.or(other.__isset_bit_vector);
7424
      this.id = other.id;
7425
    }
7426
 
695 rajveer 7427
    public getPayment_args deepCopy() {
7428
      return new getPayment_args(this);
420 ashish 7429
    }
7430
 
3430 rajveer 7431
    @Override
7432
    public void clear() {
7433
      setIdIsSet(false);
7434
      this.id = 0;
420 ashish 7435
    }
7436
 
7437
    public long getId() {
7438
      return this.id;
7439
    }
7440
 
3430 rajveer 7441
    public void setId(long id) {
420 ashish 7442
      this.id = id;
7443
      setIdIsSet(true);
7444
    }
7445
 
7446
    public void unsetId() {
7447
      __isset_bit_vector.clear(__ID_ISSET_ID);
7448
    }
7449
 
3430 rajveer 7450
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 7451
    public boolean isSetId() {
7452
      return __isset_bit_vector.get(__ID_ISSET_ID);
7453
    }
7454
 
7455
    public void setIdIsSet(boolean value) {
7456
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7457
    }
7458
 
7459
    public void setFieldValue(_Fields field, Object value) {
7460
      switch (field) {
7461
      case ID:
7462
        if (value == null) {
7463
          unsetId();
7464
        } else {
7465
          setId((Long)value);
7466
        }
7467
        break;
7468
 
7469
      }
7470
    }
7471
 
7472
    public Object getFieldValue(_Fields field) {
7473
      switch (field) {
7474
      case ID:
3430 rajveer 7475
        return Long.valueOf(getId());
420 ashish 7476
 
7477
      }
7478
      throw new IllegalStateException();
7479
    }
7480
 
3430 rajveer 7481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7482
    public boolean isSet(_Fields field) {
7483
      if (field == null) {
7484
        throw new IllegalArgumentException();
7485
      }
420 ashish 7486
 
7487
      switch (field) {
7488
      case ID:
7489
        return isSetId();
7490
      }
7491
      throw new IllegalStateException();
7492
    }
7493
 
7494
    @Override
7495
    public boolean equals(Object that) {
7496
      if (that == null)
7497
        return false;
695 rajveer 7498
      if (that instanceof getPayment_args)
7499
        return this.equals((getPayment_args)that);
420 ashish 7500
      return false;
7501
    }
7502
 
695 rajveer 7503
    public boolean equals(getPayment_args that) {
420 ashish 7504
      if (that == null)
7505
        return false;
7506
 
7507
      boolean this_present_id = true;
7508
      boolean that_present_id = true;
7509
      if (this_present_id || that_present_id) {
7510
        if (!(this_present_id && that_present_id))
7511
          return false;
7512
        if (this.id != that.id)
7513
          return false;
7514
      }
7515
 
7516
      return true;
7517
    }
7518
 
7519
    @Override
7520
    public int hashCode() {
7521
      return 0;
7522
    }
7523
 
695 rajveer 7524
    public int compareTo(getPayment_args other) {
420 ashish 7525
      if (!getClass().equals(other.getClass())) {
7526
        return getClass().getName().compareTo(other.getClass().getName());
7527
      }
7528
 
7529
      int lastComparison = 0;
695 rajveer 7530
      getPayment_args typedOther = (getPayment_args)other;
420 ashish 7531
 
3430 rajveer 7532
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 7533
      if (lastComparison != 0) {
7534
        return lastComparison;
7535
      }
3430 rajveer 7536
      if (isSetId()) {
7537
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7538
        if (lastComparison != 0) {
7539
          return lastComparison;
7540
        }
420 ashish 7541
      }
7542
      return 0;
7543
    }
7544
 
3430 rajveer 7545
    public _Fields fieldForId(int fieldId) {
7546
      return _Fields.findByThriftId(fieldId);
7547
    }
7548
 
7549
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7550
      org.apache.thrift.protocol.TField field;
420 ashish 7551
      iprot.readStructBegin();
7552
      while (true)
7553
      {
7554
        field = iprot.readFieldBegin();
3430 rajveer 7555
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7556
          break;
7557
        }
3430 rajveer 7558
        switch (field.id) {
7559
          case 1: // ID
7560
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7561
              this.id = iprot.readI64();
7562
              setIdIsSet(true);
7563
            } else { 
7564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7565
            }
7566
            break;
7567
          default:
7568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7569
        }
3430 rajveer 7570
        iprot.readFieldEnd();
420 ashish 7571
      }
7572
      iprot.readStructEnd();
7573
      validate();
7574
    }
7575
 
3430 rajveer 7576
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7577
      validate();
7578
 
7579
      oprot.writeStructBegin(STRUCT_DESC);
7580
      oprot.writeFieldBegin(ID_FIELD_DESC);
7581
      oprot.writeI64(this.id);
7582
      oprot.writeFieldEnd();
7583
      oprot.writeFieldStop();
7584
      oprot.writeStructEnd();
7585
    }
7586
 
7587
    @Override
7588
    public String toString() {
695 rajveer 7589
      StringBuilder sb = new StringBuilder("getPayment_args(");
420 ashish 7590
      boolean first = true;
7591
 
7592
      sb.append("id:");
7593
      sb.append(this.id);
7594
      first = false;
7595
      sb.append(")");
7596
      return sb.toString();
7597
    }
7598
 
3430 rajveer 7599
    public void validate() throws org.apache.thrift.TException {
420 ashish 7600
      // check for required fields
7601
    }
7602
 
3430 rajveer 7603
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7604
      try {
7605
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7606
      } catch (org.apache.thrift.TException te) {
7607
        throw new java.io.IOException(te);
7608
      }
7609
    }
7610
 
7611
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7612
      try {
7613
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7614
        __isset_bit_vector = new BitSet(1);
7615
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7616
      } catch (org.apache.thrift.TException te) {
7617
        throw new java.io.IOException(te);
7618
      }
7619
    }
7620
 
420 ashish 7621
  }
7622
 
3430 rajveer 7623
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
7624
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
420 ashish 7625
 
3430 rajveer 7626
    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);
7627
    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 7628
 
3430 rajveer 7629
    private Payment success; // required
7630
    private PaymentException pe; // required
420 ashish 7631
 
7632
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7633
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7634
      SUCCESS((short)0, "success"),
7635
      PE((short)1, "pe");
7636
 
7637
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7638
 
7639
      static {
7640
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7641
          byName.put(field.getFieldName(), field);
7642
        }
7643
      }
7644
 
7645
      /**
7646
       * Find the _Fields constant that matches fieldId, or null if its not found.
7647
       */
7648
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7649
        switch(fieldId) {
7650
          case 0: // SUCCESS
7651
            return SUCCESS;
7652
          case 1: // PE
7653
            return PE;
7654
          default:
7655
            return null;
7656
        }
420 ashish 7657
      }
7658
 
7659
      /**
7660
       * Find the _Fields constant that matches fieldId, throwing an exception
7661
       * if it is not found.
7662
       */
7663
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7664
        _Fields fields = findByThriftId(fieldId);
7665
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7666
        return fields;
7667
      }
7668
 
7669
      /**
7670
       * Find the _Fields constant that matches name, or null if its not found.
7671
       */
7672
      public static _Fields findByName(String name) {
7673
        return byName.get(name);
7674
      }
7675
 
7676
      private final short _thriftId;
7677
      private final String _fieldName;
7678
 
7679
      _Fields(short thriftId, String fieldName) {
7680
        _thriftId = thriftId;
7681
        _fieldName = fieldName;
7682
      }
7683
 
7684
      public short getThriftFieldId() {
7685
        return _thriftId;
7686
      }
7687
 
7688
      public String getFieldName() {
7689
        return _fieldName;
7690
      }
7691
    }
7692
 
7693
    // isset id assignments
7694
 
3430 rajveer 7695
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7696
    static {
3430 rajveer 7697
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7698
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7699
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
7700
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7701
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7702
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7703
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
420 ashish 7704
    }
7705
 
695 rajveer 7706
    public getPayment_result() {
420 ashish 7707
    }
7708
 
695 rajveer 7709
    public getPayment_result(
7710
      Payment success,
420 ashish 7711
      PaymentException pe)
7712
    {
7713
      this();
7714
      this.success = success;
7715
      this.pe = pe;
7716
    }
7717
 
7718
    /**
7719
     * Performs a deep copy on <i>other</i>.
7720
     */
695 rajveer 7721
    public getPayment_result(getPayment_result other) {
420 ashish 7722
      if (other.isSetSuccess()) {
695 rajveer 7723
        this.success = new Payment(other.success);
420 ashish 7724
      }
7725
      if (other.isSetPe()) {
7726
        this.pe = new PaymentException(other.pe);
7727
      }
7728
    }
7729
 
695 rajveer 7730
    public getPayment_result deepCopy() {
7731
      return new getPayment_result(this);
420 ashish 7732
    }
7733
 
3430 rajveer 7734
    @Override
7735
    public void clear() {
7736
      this.success = null;
7737
      this.pe = null;
420 ashish 7738
    }
7739
 
695 rajveer 7740
    public Payment getSuccess() {
420 ashish 7741
      return this.success;
7742
    }
7743
 
3430 rajveer 7744
    public void setSuccess(Payment success) {
420 ashish 7745
      this.success = success;
7746
    }
7747
 
7748
    public void unsetSuccess() {
7749
      this.success = null;
7750
    }
7751
 
3430 rajveer 7752
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 7753
    public boolean isSetSuccess() {
7754
      return this.success != null;
7755
    }
7756
 
7757
    public void setSuccessIsSet(boolean value) {
7758
      if (!value) {
7759
        this.success = null;
7760
      }
7761
    }
7762
 
7763
    public PaymentException getPe() {
7764
      return this.pe;
7765
    }
7766
 
3430 rajveer 7767
    public void setPe(PaymentException pe) {
420 ashish 7768
      this.pe = pe;
7769
    }
7770
 
7771
    public void unsetPe() {
7772
      this.pe = null;
7773
    }
7774
 
3430 rajveer 7775
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 7776
    public boolean isSetPe() {
7777
      return this.pe != null;
7778
    }
7779
 
7780
    public void setPeIsSet(boolean value) {
7781
      if (!value) {
7782
        this.pe = null;
7783
      }
7784
    }
7785
 
7786
    public void setFieldValue(_Fields field, Object value) {
7787
      switch (field) {
7788
      case SUCCESS:
7789
        if (value == null) {
7790
          unsetSuccess();
7791
        } else {
695 rajveer 7792
          setSuccess((Payment)value);
420 ashish 7793
        }
7794
        break;
7795
 
7796
      case PE:
7797
        if (value == null) {
7798
          unsetPe();
7799
        } else {
7800
          setPe((PaymentException)value);
7801
        }
7802
        break;
7803
 
7804
      }
7805
    }
7806
 
7807
    public Object getFieldValue(_Fields field) {
7808
      switch (field) {
7809
      case SUCCESS:
7810
        return getSuccess();
7811
 
7812
      case PE:
7813
        return getPe();
7814
 
7815
      }
7816
      throw new IllegalStateException();
7817
    }
7818
 
3430 rajveer 7819
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7820
    public boolean isSet(_Fields field) {
7821
      if (field == null) {
7822
        throw new IllegalArgumentException();
7823
      }
420 ashish 7824
 
7825
      switch (field) {
7826
      case SUCCESS:
7827
        return isSetSuccess();
7828
      case PE:
7829
        return isSetPe();
7830
      }
7831
      throw new IllegalStateException();
7832
    }
7833
 
7834
    @Override
7835
    public boolean equals(Object that) {
7836
      if (that == null)
7837
        return false;
695 rajveer 7838
      if (that instanceof getPayment_result)
7839
        return this.equals((getPayment_result)that);
420 ashish 7840
      return false;
7841
    }
7842
 
695 rajveer 7843
    public boolean equals(getPayment_result that) {
420 ashish 7844
      if (that == null)
7845
        return false;
7846
 
7847
      boolean this_present_success = true && this.isSetSuccess();
7848
      boolean that_present_success = true && that.isSetSuccess();
7849
      if (this_present_success || that_present_success) {
7850
        if (!(this_present_success && that_present_success))
7851
          return false;
7852
        if (!this.success.equals(that.success))
7853
          return false;
7854
      }
7855
 
7856
      boolean this_present_pe = true && this.isSetPe();
7857
      boolean that_present_pe = true && that.isSetPe();
7858
      if (this_present_pe || that_present_pe) {
7859
        if (!(this_present_pe && that_present_pe))
7860
          return false;
7861
        if (!this.pe.equals(that.pe))
7862
          return false;
7863
      }
7864
 
7865
      return true;
7866
    }
7867
 
7868
    @Override
7869
    public int hashCode() {
7870
      return 0;
7871
    }
7872
 
695 rajveer 7873
    public int compareTo(getPayment_result other) {
420 ashish 7874
      if (!getClass().equals(other.getClass())) {
7875
        return getClass().getName().compareTo(other.getClass().getName());
7876
      }
7877
 
7878
      int lastComparison = 0;
695 rajveer 7879
      getPayment_result typedOther = (getPayment_result)other;
420 ashish 7880
 
3430 rajveer 7881
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 7882
      if (lastComparison != 0) {
7883
        return lastComparison;
7884
      }
3430 rajveer 7885
      if (isSetSuccess()) {
7886
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7887
        if (lastComparison != 0) {
7888
          return lastComparison;
7889
        }
420 ashish 7890
      }
3430 rajveer 7891
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 7892
      if (lastComparison != 0) {
7893
        return lastComparison;
7894
      }
3430 rajveer 7895
      if (isSetPe()) {
7896
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7897
        if (lastComparison != 0) {
7898
          return lastComparison;
7899
        }
420 ashish 7900
      }
7901
      return 0;
7902
    }
7903
 
3430 rajveer 7904
    public _Fields fieldForId(int fieldId) {
7905
      return _Fields.findByThriftId(fieldId);
7906
    }
7907
 
7908
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7909
      org.apache.thrift.protocol.TField field;
420 ashish 7910
      iprot.readStructBegin();
7911
      while (true)
7912
      {
7913
        field = iprot.readFieldBegin();
3430 rajveer 7914
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7915
          break;
7916
        }
3430 rajveer 7917
        switch (field.id) {
7918
          case 0: // SUCCESS
7919
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7920
              this.success = new Payment();
7921
              this.success.read(iprot);
7922
            } else { 
7923
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7924
            }
7925
            break;
7926
          case 1: // PE
7927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7928
              this.pe = new PaymentException();
7929
              this.pe.read(iprot);
7930
            } else { 
7931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7932
            }
7933
            break;
7934
          default:
7935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7936
        }
3430 rajveer 7937
        iprot.readFieldEnd();
420 ashish 7938
      }
7939
      iprot.readStructEnd();
7940
      validate();
7941
    }
7942
 
3430 rajveer 7943
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7944
      oprot.writeStructBegin(STRUCT_DESC);
7945
 
695 rajveer 7946
      if (this.isSetSuccess()) {
7947
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7948
        this.success.write(oprot);
7949
        oprot.writeFieldEnd();
7950
      } else if (this.isSetPe()) {
420 ashish 7951
        oprot.writeFieldBegin(PE_FIELD_DESC);
7952
        this.pe.write(oprot);
7953
        oprot.writeFieldEnd();
7954
      }
7955
      oprot.writeFieldStop();
7956
      oprot.writeStructEnd();
7957
    }
7958
 
7959
    @Override
7960
    public String toString() {
695 rajveer 7961
      StringBuilder sb = new StringBuilder("getPayment_result(");
420 ashish 7962
      boolean first = true;
7963
 
695 rajveer 7964
      sb.append("success:");
7965
      if (this.success == null) {
7966
        sb.append("null");
7967
      } else {
7968
        sb.append(this.success);
7969
      }
7970
      first = false;
7971
      if (!first) sb.append(", ");
420 ashish 7972
      sb.append("pe:");
7973
      if (this.pe == null) {
7974
        sb.append("null");
7975
      } else {
7976
        sb.append(this.pe);
7977
      }
7978
      first = false;
7979
      sb.append(")");
7980
      return sb.toString();
7981
    }
7982
 
3430 rajveer 7983
    public void validate() throws org.apache.thrift.TException {
420 ashish 7984
      // check for required fields
7985
    }
7986
 
3430 rajveer 7987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7988
      try {
7989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7990
      } catch (org.apache.thrift.TException te) {
7991
        throw new java.io.IOException(te);
7992
      }
7993
    }
7994
 
7995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7996
      try {
7997
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7998
      } catch (org.apache.thrift.TException te) {
7999
        throw new java.io.IOException(te);
8000
      }
8001
    }
8002
 
420 ashish 8003
  }
8004
 
3430 rajveer 8005
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
420 ashish 8007
 
3430 rajveer 8008
    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 8009
 
3430 rajveer 8010
    private long txnId; // required
420 ashish 8011
 
8012
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8013
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 8014
      TXN_ID((short)1, "txnId");
420 ashish 8015
 
8016
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8017
 
8018
      static {
8019
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8020
          byName.put(field.getFieldName(), field);
8021
        }
8022
      }
8023
 
8024
      /**
8025
       * Find the _Fields constant that matches fieldId, or null if its not found.
8026
       */
8027
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8028
        switch(fieldId) {
8029
          case 1: // TXN_ID
8030
            return TXN_ID;
8031
          default:
8032
            return null;
8033
        }
420 ashish 8034
      }
8035
 
8036
      /**
8037
       * Find the _Fields constant that matches fieldId, throwing an exception
8038
       * if it is not found.
8039
       */
8040
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8041
        _Fields fields = findByThriftId(fieldId);
8042
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8043
        return fields;
8044
      }
8045
 
8046
      /**
8047
       * Find the _Fields constant that matches name, or null if its not found.
8048
       */
8049
      public static _Fields findByName(String name) {
8050
        return byName.get(name);
8051
      }
8052
 
8053
      private final short _thriftId;
8054
      private final String _fieldName;
8055
 
8056
      _Fields(short thriftId, String fieldName) {
8057
        _thriftId = thriftId;
8058
        _fieldName = fieldName;
8059
      }
8060
 
8061
      public short getThriftFieldId() {
8062
        return _thriftId;
8063
      }
8064
 
8065
      public String getFieldName() {
8066
        return _fieldName;
8067
      }
8068
    }
8069
 
8070
    // isset id assignments
695 rajveer 8071
    private static final int __TXNID_ISSET_ID = 0;
420 ashish 8072
    private BitSet __isset_bit_vector = new BitSet(1);
8073
 
3430 rajveer 8074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8075
    static {
3430 rajveer 8076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8077
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8079
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8080
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
420 ashish 8081
    }
8082
 
695 rajveer 8083
    public getPaymentForTxnId_args() {
420 ashish 8084
    }
8085
 
695 rajveer 8086
    public getPaymentForTxnId_args(
8087
      long txnId)
420 ashish 8088
    {
8089
      this();
695 rajveer 8090
      this.txnId = txnId;
8091
      setTxnIdIsSet(true);
420 ashish 8092
    }
8093
 
8094
    /**
8095
     * Performs a deep copy on <i>other</i>.
8096
     */
695 rajveer 8097
    public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
420 ashish 8098
      __isset_bit_vector.clear();
8099
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 8100
      this.txnId = other.txnId;
420 ashish 8101
    }
8102
 
695 rajveer 8103
    public getPaymentForTxnId_args deepCopy() {
8104
      return new getPaymentForTxnId_args(this);
420 ashish 8105
    }
8106
 
3430 rajveer 8107
    @Override
8108
    public void clear() {
8109
      setTxnIdIsSet(false);
8110
      this.txnId = 0;
420 ashish 8111
    }
8112
 
695 rajveer 8113
    public long getTxnId() {
8114
      return this.txnId;
420 ashish 8115
    }
8116
 
3430 rajveer 8117
    public void setTxnId(long txnId) {
695 rajveer 8118
      this.txnId = txnId;
8119
      setTxnIdIsSet(true);
420 ashish 8120
    }
8121
 
695 rajveer 8122
    public void unsetTxnId() {
8123
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
420 ashish 8124
    }
8125
 
3430 rajveer 8126
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 8127
    public boolean isSetTxnId() {
8128
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
420 ashish 8129
    }
8130
 
695 rajveer 8131
    public void setTxnIdIsSet(boolean value) {
8132
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
420 ashish 8133
    }
8134
 
8135
    public void setFieldValue(_Fields field, Object value) {
8136
      switch (field) {
695 rajveer 8137
      case TXN_ID:
420 ashish 8138
        if (value == null) {
695 rajveer 8139
          unsetTxnId();
420 ashish 8140
        } else {
695 rajveer 8141
          setTxnId((Long)value);
420 ashish 8142
        }
8143
        break;
8144
 
8145
      }
8146
    }
8147
 
8148
    public Object getFieldValue(_Fields field) {
8149
      switch (field) {
695 rajveer 8150
      case TXN_ID:
3430 rajveer 8151
        return Long.valueOf(getTxnId());
420 ashish 8152
 
8153
      }
8154
      throw new IllegalStateException();
8155
    }
8156
 
3430 rajveer 8157
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8158
    public boolean isSet(_Fields field) {
8159
      if (field == null) {
8160
        throw new IllegalArgumentException();
8161
      }
420 ashish 8162
 
8163
      switch (field) {
695 rajveer 8164
      case TXN_ID:
8165
        return isSetTxnId();
420 ashish 8166
      }
8167
      throw new IllegalStateException();
8168
    }
8169
 
8170
    @Override
8171
    public boolean equals(Object that) {
8172
      if (that == null)
8173
        return false;
695 rajveer 8174
      if (that instanceof getPaymentForTxnId_args)
8175
        return this.equals((getPaymentForTxnId_args)that);
420 ashish 8176
      return false;
8177
    }
8178
 
695 rajveer 8179
    public boolean equals(getPaymentForTxnId_args that) {
420 ashish 8180
      if (that == null)
8181
        return false;
8182
 
695 rajveer 8183
      boolean this_present_txnId = true;
8184
      boolean that_present_txnId = true;
8185
      if (this_present_txnId || that_present_txnId) {
8186
        if (!(this_present_txnId && that_present_txnId))
420 ashish 8187
          return false;
695 rajveer 8188
        if (this.txnId != that.txnId)
420 ashish 8189
          return false;
8190
      }
8191
 
8192
      return true;
8193
    }
8194
 
8195
    @Override
8196
    public int hashCode() {
8197
      return 0;
8198
    }
8199
 
695 rajveer 8200
    public int compareTo(getPaymentForTxnId_args other) {
420 ashish 8201
      if (!getClass().equals(other.getClass())) {
8202
        return getClass().getName().compareTo(other.getClass().getName());
8203
      }
8204
 
8205
      int lastComparison = 0;
695 rajveer 8206
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
420 ashish 8207
 
3430 rajveer 8208
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
420 ashish 8209
      if (lastComparison != 0) {
8210
        return lastComparison;
8211
      }
3430 rajveer 8212
      if (isSetTxnId()) {
8213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8214
        if (lastComparison != 0) {
8215
          return lastComparison;
8216
        }
420 ashish 8217
      }
8218
      return 0;
8219
    }
8220
 
3430 rajveer 8221
    public _Fields fieldForId(int fieldId) {
8222
      return _Fields.findByThriftId(fieldId);
8223
    }
8224
 
8225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8226
      org.apache.thrift.protocol.TField field;
420 ashish 8227
      iprot.readStructBegin();
8228
      while (true)
8229
      {
8230
        field = iprot.readFieldBegin();
3430 rajveer 8231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8232
          break;
8233
        }
3430 rajveer 8234
        switch (field.id) {
8235
          case 1: // TXN_ID
8236
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8237
              this.txnId = iprot.readI64();
8238
              setTxnIdIsSet(true);
8239
            } else { 
8240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8241
            }
8242
            break;
8243
          default:
8244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8245
        }
3430 rajveer 8246
        iprot.readFieldEnd();
420 ashish 8247
      }
8248
      iprot.readStructEnd();
8249
      validate();
8250
    }
8251
 
3430 rajveer 8252
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8253
      validate();
8254
 
8255
      oprot.writeStructBegin(STRUCT_DESC);
695 rajveer 8256
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8257
      oprot.writeI64(this.txnId);
420 ashish 8258
      oprot.writeFieldEnd();
8259
      oprot.writeFieldStop();
8260
      oprot.writeStructEnd();
8261
    }
8262
 
8263
    @Override
8264
    public String toString() {
695 rajveer 8265
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
420 ashish 8266
      boolean first = true;
8267
 
695 rajveer 8268
      sb.append("txnId:");
8269
      sb.append(this.txnId);
420 ashish 8270
      first = false;
8271
      sb.append(")");
8272
      return sb.toString();
8273
    }
8274
 
3430 rajveer 8275
    public void validate() throws org.apache.thrift.TException {
420 ashish 8276
      // check for required fields
8277
    }
8278
 
3430 rajveer 8279
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8280
      try {
8281
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8282
      } catch (org.apache.thrift.TException te) {
8283
        throw new java.io.IOException(te);
8284
      }
8285
    }
8286
 
8287
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8288
      try {
8289
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8290
        __isset_bit_vector = new BitSet(1);
8291
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8292
      } catch (org.apache.thrift.TException te) {
8293
        throw new java.io.IOException(te);
8294
      }
8295
    }
8296
 
420 ashish 8297
  }
8298
 
3430 rajveer 8299
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
8300
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
420 ashish 8301
 
3430 rajveer 8302
    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);
8303
    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 8304
 
3430 rajveer 8305
    private List<Payment> success; // required
8306
    private PaymentException pe; // required
420 ashish 8307
 
8308
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8309
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 8310
      SUCCESS((short)0, "success"),
8311
      PE((short)1, "pe");
8312
 
8313
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8314
 
8315
      static {
8316
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8317
          byName.put(field.getFieldName(), field);
8318
        }
8319
      }
8320
 
8321
      /**
8322
       * Find the _Fields constant that matches fieldId, or null if its not found.
8323
       */
8324
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8325
        switch(fieldId) {
8326
          case 0: // SUCCESS
8327
            return SUCCESS;
8328
          case 1: // PE
8329
            return PE;
8330
          default:
8331
            return null;
8332
        }
420 ashish 8333
      }
8334
 
8335
      /**
8336
       * Find the _Fields constant that matches fieldId, throwing an exception
8337
       * if it is not found.
8338
       */
8339
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8340
        _Fields fields = findByThriftId(fieldId);
8341
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8342
        return fields;
8343
      }
8344
 
8345
      /**
8346
       * Find the _Fields constant that matches name, or null if its not found.
8347
       */
8348
      public static _Fields findByName(String name) {
8349
        return byName.get(name);
8350
      }
8351
 
8352
      private final short _thriftId;
8353
      private final String _fieldName;
8354
 
8355
      _Fields(short thriftId, String fieldName) {
8356
        _thriftId = thriftId;
8357
        _fieldName = fieldName;
8358
      }
8359
 
8360
      public short getThriftFieldId() {
8361
        return _thriftId;
8362
      }
8363
 
8364
      public String getFieldName() {
8365
        return _fieldName;
8366
      }
8367
    }
8368
 
8369
    // isset id assignments
8370
 
3430 rajveer 8371
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8372
    static {
3430 rajveer 8373
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8374
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8375
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8376
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
8377
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
420 ashish 8381
    }
8382
 
695 rajveer 8383
    public getPaymentForTxnId_result() {
420 ashish 8384
    }
8385
 
695 rajveer 8386
    public getPaymentForTxnId_result(
8387
      List<Payment> success,
420 ashish 8388
      PaymentException pe)
8389
    {
8390
      this();
8391
      this.success = success;
8392
      this.pe = pe;
8393
    }
8394
 
8395
    /**
8396
     * Performs a deep copy on <i>other</i>.
8397
     */
695 rajveer 8398
    public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
420 ashish 8399
      if (other.isSetSuccess()) {
695 rajveer 8400
        List<Payment> __this__success = new ArrayList<Payment>();
8401
        for (Payment other_element : other.success) {
8402
          __this__success.add(new Payment(other_element));
8403
        }
8404
        this.success = __this__success;
420 ashish 8405
      }
8406
      if (other.isSetPe()) {
8407
        this.pe = new PaymentException(other.pe);
8408
      }
8409
    }
8410
 
695 rajveer 8411
    public getPaymentForTxnId_result deepCopy() {
8412
      return new getPaymentForTxnId_result(this);
420 ashish 8413
    }
8414
 
3430 rajveer 8415
    @Override
8416
    public void clear() {
8417
      this.success = null;
8418
      this.pe = null;
420 ashish 8419
    }
8420
 
695 rajveer 8421
    public int getSuccessSize() {
8422
      return (this.success == null) ? 0 : this.success.size();
8423
    }
8424
 
8425
    public java.util.Iterator<Payment> getSuccessIterator() {
8426
      return (this.success == null) ? null : this.success.iterator();
8427
    }
8428
 
8429
    public void addToSuccess(Payment elem) {
8430
      if (this.success == null) {
8431
        this.success = new ArrayList<Payment>();
8432
      }
8433
      this.success.add(elem);
8434
    }
8435
 
8436
    public List<Payment> getSuccess() {
420 ashish 8437
      return this.success;
8438
    }
8439
 
3430 rajveer 8440
    public void setSuccess(List<Payment> success) {
420 ashish 8441
      this.success = success;
8442
    }
8443
 
8444
    public void unsetSuccess() {
8445
      this.success = null;
8446
    }
8447
 
3430 rajveer 8448
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 8449
    public boolean isSetSuccess() {
8450
      return this.success != null;
8451
    }
8452
 
8453
    public void setSuccessIsSet(boolean value) {
8454
      if (!value) {
8455
        this.success = null;
8456
      }
8457
    }
8458
 
8459
    public PaymentException getPe() {
8460
      return this.pe;
8461
    }
8462
 
3430 rajveer 8463
    public void setPe(PaymentException pe) {
420 ashish 8464
      this.pe = pe;
8465
    }
8466
 
8467
    public void unsetPe() {
8468
      this.pe = null;
8469
    }
8470
 
3430 rajveer 8471
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 8472
    public boolean isSetPe() {
8473
      return this.pe != null;
8474
    }
8475
 
8476
    public void setPeIsSet(boolean value) {
8477
      if (!value) {
8478
        this.pe = null;
8479
      }
8480
    }
8481
 
8482
    public void setFieldValue(_Fields field, Object value) {
8483
      switch (field) {
8484
      case SUCCESS:
8485
        if (value == null) {
8486
          unsetSuccess();
8487
        } else {
695 rajveer 8488
          setSuccess((List<Payment>)value);
420 ashish 8489
        }
8490
        break;
8491
 
8492
      case PE:
8493
        if (value == null) {
8494
          unsetPe();
8495
        } else {
8496
          setPe((PaymentException)value);
8497
        }
8498
        break;
8499
 
8500
      }
8501
    }
8502
 
8503
    public Object getFieldValue(_Fields field) {
8504
      switch (field) {
8505
      case SUCCESS:
8506
        return getSuccess();
8507
 
8508
      case PE:
8509
        return getPe();
8510
 
8511
      }
8512
      throw new IllegalStateException();
8513
    }
8514
 
3430 rajveer 8515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8516
    public boolean isSet(_Fields field) {
8517
      if (field == null) {
8518
        throw new IllegalArgumentException();
8519
      }
420 ashish 8520
 
8521
      switch (field) {
8522
      case SUCCESS:
8523
        return isSetSuccess();
8524
      case PE:
8525
        return isSetPe();
8526
      }
8527
      throw new IllegalStateException();
8528
    }
8529
 
8530
    @Override
8531
    public boolean equals(Object that) {
8532
      if (that == null)
8533
        return false;
695 rajveer 8534
      if (that instanceof getPaymentForTxnId_result)
8535
        return this.equals((getPaymentForTxnId_result)that);
420 ashish 8536
      return false;
8537
    }
8538
 
695 rajveer 8539
    public boolean equals(getPaymentForTxnId_result that) {
420 ashish 8540
      if (that == null)
8541
        return false;
8542
 
8543
      boolean this_present_success = true && this.isSetSuccess();
8544
      boolean that_present_success = true && that.isSetSuccess();
8545
      if (this_present_success || that_present_success) {
8546
        if (!(this_present_success && that_present_success))
8547
          return false;
8548
        if (!this.success.equals(that.success))
8549
          return false;
8550
      }
8551
 
8552
      boolean this_present_pe = true && this.isSetPe();
8553
      boolean that_present_pe = true && that.isSetPe();
8554
      if (this_present_pe || that_present_pe) {
8555
        if (!(this_present_pe && that_present_pe))
8556
          return false;
8557
        if (!this.pe.equals(that.pe))
8558
          return false;
8559
      }
8560
 
8561
      return true;
8562
    }
8563
 
8564
    @Override
8565
    public int hashCode() {
8566
      return 0;
8567
    }
8568
 
695 rajveer 8569
    public int compareTo(getPaymentForTxnId_result other) {
8570
      if (!getClass().equals(other.getClass())) {
8571
        return getClass().getName().compareTo(other.getClass().getName());
8572
      }
8573
 
8574
      int lastComparison = 0;
8575
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
8576
 
3430 rajveer 8577
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 8578
      if (lastComparison != 0) {
8579
        return lastComparison;
8580
      }
3430 rajveer 8581
      if (isSetSuccess()) {
8582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8583
        if (lastComparison != 0) {
8584
          return lastComparison;
8585
        }
695 rajveer 8586
      }
3430 rajveer 8587
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 8588
      if (lastComparison != 0) {
8589
        return lastComparison;
8590
      }
3430 rajveer 8591
      if (isSetPe()) {
8592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8593
        if (lastComparison != 0) {
8594
          return lastComparison;
8595
        }
695 rajveer 8596
      }
8597
      return 0;
8598
    }
8599
 
3430 rajveer 8600
    public _Fields fieldForId(int fieldId) {
8601
      return _Fields.findByThriftId(fieldId);
8602
    }
8603
 
8604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8605
      org.apache.thrift.protocol.TField field;
420 ashish 8606
      iprot.readStructBegin();
8607
      while (true)
8608
      {
8609
        field = iprot.readFieldBegin();
3430 rajveer 8610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8611
          break;
8612
        }
3430 rajveer 8613
        switch (field.id) {
8614
          case 0: // SUCCESS
8615
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8616
              {
4600 varun.gupt 8617
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8618
                this.success = new ArrayList<Payment>(_list28.size);
8619
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
695 rajveer 8620
                {
4600 varun.gupt 8621
                  Payment _elem30; // required
8622
                  _elem30 = new Payment();
8623
                  _elem30.read(iprot);
8624
                  this.success.add(_elem30);
695 rajveer 8625
                }
3430 rajveer 8626
                iprot.readListEnd();
420 ashish 8627
              }
3430 rajveer 8628
            } else { 
8629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8630
            }
8631
            break;
8632
          case 1: // PE
8633
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8634
              this.pe = new PaymentException();
8635
              this.pe.read(iprot);
8636
            } else { 
8637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8638
            }
8639
            break;
8640
          default:
8641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8642
        }
3430 rajveer 8643
        iprot.readFieldEnd();
420 ashish 8644
      }
8645
      iprot.readStructEnd();
8646
      validate();
8647
    }
8648
 
3430 rajveer 8649
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8650
      oprot.writeStructBegin(STRUCT_DESC);
8651
 
8652
      if (this.isSetSuccess()) {
8653
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 8654
        {
3430 rajveer 8655
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4600 varun.gupt 8656
          for (Payment _iter31 : this.success)
695 rajveer 8657
          {
4600 varun.gupt 8658
            _iter31.write(oprot);
695 rajveer 8659
          }
8660
          oprot.writeListEnd();
8661
        }
420 ashish 8662
        oprot.writeFieldEnd();
8663
      } else if (this.isSetPe()) {
8664
        oprot.writeFieldBegin(PE_FIELD_DESC);
8665
        this.pe.write(oprot);
8666
        oprot.writeFieldEnd();
8667
      }
8668
      oprot.writeFieldStop();
8669
      oprot.writeStructEnd();
8670
    }
8671
 
8672
    @Override
8673
    public String toString() {
695 rajveer 8674
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
420 ashish 8675
      boolean first = true;
8676
 
8677
      sb.append("success:");
8678
      if (this.success == null) {
8679
        sb.append("null");
8680
      } else {
8681
        sb.append(this.success);
8682
      }
8683
      first = false;
8684
      if (!first) sb.append(", ");
8685
      sb.append("pe:");
8686
      if (this.pe == null) {
8687
        sb.append("null");
8688
      } else {
8689
        sb.append(this.pe);
8690
      }
8691
      first = false;
8692
      sb.append(")");
8693
      return sb.toString();
8694
    }
8695
 
3430 rajveer 8696
    public void validate() throws org.apache.thrift.TException {
420 ashish 8697
      // check for required fields
8698
    }
8699
 
3430 rajveer 8700
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8701
      try {
8702
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8703
      } catch (org.apache.thrift.TException te) {
8704
        throw new java.io.IOException(te);
8705
      }
8706
    }
8707
 
8708
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8709
      try {
8710
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8711
      } catch (org.apache.thrift.TException te) {
8712
        throw new java.io.IOException(te);
8713
      }
8714
    }
8715
 
420 ashish 8716
  }
8717
 
7049 anupam.sin 8718
  public static class getPaymentForRechargeTxnId_args implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_args, getPaymentForRechargeTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8719
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_args");
8720
 
8721
    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);
8722
 
8723
    private long txnId; // required
8724
 
8725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8727
      TXN_ID((short)1, "txnId");
8728
 
8729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8730
 
8731
      static {
8732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8733
          byName.put(field.getFieldName(), field);
8734
        }
8735
      }
8736
 
8737
      /**
8738
       * Find the _Fields constant that matches fieldId, or null if its not found.
8739
       */
8740
      public static _Fields findByThriftId(int fieldId) {
8741
        switch(fieldId) {
8742
          case 1: // TXN_ID
8743
            return TXN_ID;
8744
          default:
8745
            return null;
8746
        }
8747
      }
8748
 
8749
      /**
8750
       * Find the _Fields constant that matches fieldId, throwing an exception
8751
       * if it is not found.
8752
       */
8753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8754
        _Fields fields = findByThriftId(fieldId);
8755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8756
        return fields;
8757
      }
8758
 
8759
      /**
8760
       * Find the _Fields constant that matches name, or null if its not found.
8761
       */
8762
      public static _Fields findByName(String name) {
8763
        return byName.get(name);
8764
      }
8765
 
8766
      private final short _thriftId;
8767
      private final String _fieldName;
8768
 
8769
      _Fields(short thriftId, String fieldName) {
8770
        _thriftId = thriftId;
8771
        _fieldName = fieldName;
8772
      }
8773
 
8774
      public short getThriftFieldId() {
8775
        return _thriftId;
8776
      }
8777
 
8778
      public String getFieldName() {
8779
        return _fieldName;
8780
      }
8781
    }
8782
 
8783
    // isset id assignments
8784
    private static final int __TXNID_ISSET_ID = 0;
8785
    private BitSet __isset_bit_vector = new BitSet(1);
8786
 
8787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8788
    static {
8789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8790
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8792
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8793
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_args.class, metaDataMap);
8794
    }
8795
 
8796
    public getPaymentForRechargeTxnId_args() {
8797
    }
8798
 
8799
    public getPaymentForRechargeTxnId_args(
8800
      long txnId)
8801
    {
8802
      this();
8803
      this.txnId = txnId;
8804
      setTxnIdIsSet(true);
8805
    }
8806
 
8807
    /**
8808
     * Performs a deep copy on <i>other</i>.
8809
     */
8810
    public getPaymentForRechargeTxnId_args(getPaymentForRechargeTxnId_args other) {
8811
      __isset_bit_vector.clear();
8812
      __isset_bit_vector.or(other.__isset_bit_vector);
8813
      this.txnId = other.txnId;
8814
    }
8815
 
8816
    public getPaymentForRechargeTxnId_args deepCopy() {
8817
      return new getPaymentForRechargeTxnId_args(this);
8818
    }
8819
 
8820
    @Override
8821
    public void clear() {
8822
      setTxnIdIsSet(false);
8823
      this.txnId = 0;
8824
    }
8825
 
8826
    public long getTxnId() {
8827
      return this.txnId;
8828
    }
8829
 
8830
    public void setTxnId(long txnId) {
8831
      this.txnId = txnId;
8832
      setTxnIdIsSet(true);
8833
    }
8834
 
8835
    public void unsetTxnId() {
8836
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
8837
    }
8838
 
8839
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
8840
    public boolean isSetTxnId() {
8841
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
8842
    }
8843
 
8844
    public void setTxnIdIsSet(boolean value) {
8845
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
8846
    }
8847
 
8848
    public void setFieldValue(_Fields field, Object value) {
8849
      switch (field) {
8850
      case TXN_ID:
8851
        if (value == null) {
8852
          unsetTxnId();
8853
        } else {
8854
          setTxnId((Long)value);
8855
        }
8856
        break;
8857
 
8858
      }
8859
    }
8860
 
8861
    public Object getFieldValue(_Fields field) {
8862
      switch (field) {
8863
      case TXN_ID:
8864
        return Long.valueOf(getTxnId());
8865
 
8866
      }
8867
      throw new IllegalStateException();
8868
    }
8869
 
8870
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8871
    public boolean isSet(_Fields field) {
8872
      if (field == null) {
8873
        throw new IllegalArgumentException();
8874
      }
8875
 
8876
      switch (field) {
8877
      case TXN_ID:
8878
        return isSetTxnId();
8879
      }
8880
      throw new IllegalStateException();
8881
    }
8882
 
8883
    @Override
8884
    public boolean equals(Object that) {
8885
      if (that == null)
8886
        return false;
8887
      if (that instanceof getPaymentForRechargeTxnId_args)
8888
        return this.equals((getPaymentForRechargeTxnId_args)that);
8889
      return false;
8890
    }
8891
 
8892
    public boolean equals(getPaymentForRechargeTxnId_args that) {
8893
      if (that == null)
8894
        return false;
8895
 
8896
      boolean this_present_txnId = true;
8897
      boolean that_present_txnId = true;
8898
      if (this_present_txnId || that_present_txnId) {
8899
        if (!(this_present_txnId && that_present_txnId))
8900
          return false;
8901
        if (this.txnId != that.txnId)
8902
          return false;
8903
      }
8904
 
8905
      return true;
8906
    }
8907
 
8908
    @Override
8909
    public int hashCode() {
8910
      return 0;
8911
    }
8912
 
8913
    public int compareTo(getPaymentForRechargeTxnId_args other) {
8914
      if (!getClass().equals(other.getClass())) {
8915
        return getClass().getName().compareTo(other.getClass().getName());
8916
      }
8917
 
8918
      int lastComparison = 0;
8919
      getPaymentForRechargeTxnId_args typedOther = (getPaymentForRechargeTxnId_args)other;
8920
 
8921
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
8922
      if (lastComparison != 0) {
8923
        return lastComparison;
8924
      }
8925
      if (isSetTxnId()) {
8926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
8927
        if (lastComparison != 0) {
8928
          return lastComparison;
8929
        }
8930
      }
8931
      return 0;
8932
    }
8933
 
8934
    public _Fields fieldForId(int fieldId) {
8935
      return _Fields.findByThriftId(fieldId);
8936
    }
8937
 
8938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8939
      org.apache.thrift.protocol.TField field;
8940
      iprot.readStructBegin();
8941
      while (true)
8942
      {
8943
        field = iprot.readFieldBegin();
8944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8945
          break;
8946
        }
8947
        switch (field.id) {
8948
          case 1: // TXN_ID
8949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8950
              this.txnId = iprot.readI64();
8951
              setTxnIdIsSet(true);
8952
            } else { 
8953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8954
            }
8955
            break;
8956
          default:
8957
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8958
        }
8959
        iprot.readFieldEnd();
8960
      }
8961
      iprot.readStructEnd();
8962
      validate();
8963
    }
8964
 
8965
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8966
      validate();
8967
 
8968
      oprot.writeStructBegin(STRUCT_DESC);
8969
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
8970
      oprot.writeI64(this.txnId);
8971
      oprot.writeFieldEnd();
8972
      oprot.writeFieldStop();
8973
      oprot.writeStructEnd();
8974
    }
8975
 
8976
    @Override
8977
    public String toString() {
8978
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_args(");
8979
      boolean first = true;
8980
 
8981
      sb.append("txnId:");
8982
      sb.append(this.txnId);
8983
      first = false;
8984
      sb.append(")");
8985
      return sb.toString();
8986
    }
8987
 
8988
    public void validate() throws org.apache.thrift.TException {
8989
      // check for required fields
8990
    }
8991
 
8992
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8993
      try {
8994
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8995
      } catch (org.apache.thrift.TException te) {
8996
        throw new java.io.IOException(te);
8997
      }
8998
    }
8999
 
9000
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9001
      try {
9002
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9003
        __isset_bit_vector = new BitSet(1);
9004
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9005
      } catch (org.apache.thrift.TException te) {
9006
        throw new java.io.IOException(te);
9007
      }
9008
    }
9009
 
9010
  }
9011
 
9012
  public static class getPaymentForRechargeTxnId_result implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_result, getPaymentForRechargeTxnId_result._Fields>, java.io.Serializable, Cloneable   {
9013
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_result");
9014
 
9015
    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);
9016
    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);
9017
 
9018
    private List<Payment> success; // required
9019
    private PaymentException pe; // required
9020
 
9021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9022
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9023
      SUCCESS((short)0, "success"),
9024
      PE((short)1, "pe");
9025
 
9026
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9027
 
9028
      static {
9029
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9030
          byName.put(field.getFieldName(), field);
9031
        }
9032
      }
9033
 
9034
      /**
9035
       * Find the _Fields constant that matches fieldId, or null if its not found.
9036
       */
9037
      public static _Fields findByThriftId(int fieldId) {
9038
        switch(fieldId) {
9039
          case 0: // SUCCESS
9040
            return SUCCESS;
9041
          case 1: // PE
9042
            return PE;
9043
          default:
9044
            return null;
9045
        }
9046
      }
9047
 
9048
      /**
9049
       * Find the _Fields constant that matches fieldId, throwing an exception
9050
       * if it is not found.
9051
       */
9052
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9053
        _Fields fields = findByThriftId(fieldId);
9054
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9055
        return fields;
9056
      }
9057
 
9058
      /**
9059
       * Find the _Fields constant that matches name, or null if its not found.
9060
       */
9061
      public static _Fields findByName(String name) {
9062
        return byName.get(name);
9063
      }
9064
 
9065
      private final short _thriftId;
9066
      private final String _fieldName;
9067
 
9068
      _Fields(short thriftId, String fieldName) {
9069
        _thriftId = thriftId;
9070
        _fieldName = fieldName;
9071
      }
9072
 
9073
      public short getThriftFieldId() {
9074
        return _thriftId;
9075
      }
9076
 
9077
      public String getFieldName() {
9078
        return _fieldName;
9079
      }
9080
    }
9081
 
9082
    // isset id assignments
9083
 
9084
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9085
    static {
9086
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9087
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9088
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9089
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
9090
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_result.class, metaDataMap);
9094
    }
9095
 
9096
    public getPaymentForRechargeTxnId_result() {
9097
    }
9098
 
9099
    public getPaymentForRechargeTxnId_result(
9100
      List<Payment> success,
9101
      PaymentException pe)
9102
    {
9103
      this();
9104
      this.success = success;
9105
      this.pe = pe;
9106
    }
9107
 
9108
    /**
9109
     * Performs a deep copy on <i>other</i>.
9110
     */
9111
    public getPaymentForRechargeTxnId_result(getPaymentForRechargeTxnId_result other) {
9112
      if (other.isSetSuccess()) {
9113
        List<Payment> __this__success = new ArrayList<Payment>();
9114
        for (Payment other_element : other.success) {
9115
          __this__success.add(new Payment(other_element));
9116
        }
9117
        this.success = __this__success;
9118
      }
9119
      if (other.isSetPe()) {
9120
        this.pe = new PaymentException(other.pe);
9121
      }
9122
    }
9123
 
9124
    public getPaymentForRechargeTxnId_result deepCopy() {
9125
      return new getPaymentForRechargeTxnId_result(this);
9126
    }
9127
 
9128
    @Override
9129
    public void clear() {
9130
      this.success = null;
9131
      this.pe = null;
9132
    }
9133
 
9134
    public int getSuccessSize() {
9135
      return (this.success == null) ? 0 : this.success.size();
9136
    }
9137
 
9138
    public java.util.Iterator<Payment> getSuccessIterator() {
9139
      return (this.success == null) ? null : this.success.iterator();
9140
    }
9141
 
9142
    public void addToSuccess(Payment elem) {
9143
      if (this.success == null) {
9144
        this.success = new ArrayList<Payment>();
9145
      }
9146
      this.success.add(elem);
9147
    }
9148
 
9149
    public List<Payment> getSuccess() {
9150
      return this.success;
9151
    }
9152
 
9153
    public void setSuccess(List<Payment> success) {
9154
      this.success = success;
9155
    }
9156
 
9157
    public void unsetSuccess() {
9158
      this.success = null;
9159
    }
9160
 
9161
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9162
    public boolean isSetSuccess() {
9163
      return this.success != null;
9164
    }
9165
 
9166
    public void setSuccessIsSet(boolean value) {
9167
      if (!value) {
9168
        this.success = null;
9169
      }
9170
    }
9171
 
9172
    public PaymentException getPe() {
9173
      return this.pe;
9174
    }
9175
 
9176
    public void setPe(PaymentException pe) {
9177
      this.pe = pe;
9178
    }
9179
 
9180
    public void unsetPe() {
9181
      this.pe = null;
9182
    }
9183
 
9184
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9185
    public boolean isSetPe() {
9186
      return this.pe != null;
9187
    }
9188
 
9189
    public void setPeIsSet(boolean value) {
9190
      if (!value) {
9191
        this.pe = null;
9192
      }
9193
    }
9194
 
9195
    public void setFieldValue(_Fields field, Object value) {
9196
      switch (field) {
9197
      case SUCCESS:
9198
        if (value == null) {
9199
          unsetSuccess();
9200
        } else {
9201
          setSuccess((List<Payment>)value);
9202
        }
9203
        break;
9204
 
9205
      case PE:
9206
        if (value == null) {
9207
          unsetPe();
9208
        } else {
9209
          setPe((PaymentException)value);
9210
        }
9211
        break;
9212
 
9213
      }
9214
    }
9215
 
9216
    public Object getFieldValue(_Fields field) {
9217
      switch (field) {
9218
      case SUCCESS:
9219
        return getSuccess();
9220
 
9221
      case PE:
9222
        return getPe();
9223
 
9224
      }
9225
      throw new IllegalStateException();
9226
    }
9227
 
9228
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9229
    public boolean isSet(_Fields field) {
9230
      if (field == null) {
9231
        throw new IllegalArgumentException();
9232
      }
9233
 
9234
      switch (field) {
9235
      case SUCCESS:
9236
        return isSetSuccess();
9237
      case PE:
9238
        return isSetPe();
9239
      }
9240
      throw new IllegalStateException();
9241
    }
9242
 
9243
    @Override
9244
    public boolean equals(Object that) {
9245
      if (that == null)
9246
        return false;
9247
      if (that instanceof getPaymentForRechargeTxnId_result)
9248
        return this.equals((getPaymentForRechargeTxnId_result)that);
9249
      return false;
9250
    }
9251
 
9252
    public boolean equals(getPaymentForRechargeTxnId_result that) {
9253
      if (that == null)
9254
        return false;
9255
 
9256
      boolean this_present_success = true && this.isSetSuccess();
9257
      boolean that_present_success = true && that.isSetSuccess();
9258
      if (this_present_success || that_present_success) {
9259
        if (!(this_present_success && that_present_success))
9260
          return false;
9261
        if (!this.success.equals(that.success))
9262
          return false;
9263
      }
9264
 
9265
      boolean this_present_pe = true && this.isSetPe();
9266
      boolean that_present_pe = true && that.isSetPe();
9267
      if (this_present_pe || that_present_pe) {
9268
        if (!(this_present_pe && that_present_pe))
9269
          return false;
9270
        if (!this.pe.equals(that.pe))
9271
          return false;
9272
      }
9273
 
9274
      return true;
9275
    }
9276
 
9277
    @Override
9278
    public int hashCode() {
9279
      return 0;
9280
    }
9281
 
9282
    public int compareTo(getPaymentForRechargeTxnId_result other) {
9283
      if (!getClass().equals(other.getClass())) {
9284
        return getClass().getName().compareTo(other.getClass().getName());
9285
      }
9286
 
9287
      int lastComparison = 0;
9288
      getPaymentForRechargeTxnId_result typedOther = (getPaymentForRechargeTxnId_result)other;
9289
 
9290
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9291
      if (lastComparison != 0) {
9292
        return lastComparison;
9293
      }
9294
      if (isSetSuccess()) {
9295
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9296
        if (lastComparison != 0) {
9297
          return lastComparison;
9298
        }
9299
      }
9300
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
9301
      if (lastComparison != 0) {
9302
        return lastComparison;
9303
      }
9304
      if (isSetPe()) {
9305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9306
        if (lastComparison != 0) {
9307
          return lastComparison;
9308
        }
9309
      }
9310
      return 0;
9311
    }
9312
 
9313
    public _Fields fieldForId(int fieldId) {
9314
      return _Fields.findByThriftId(fieldId);
9315
    }
9316
 
9317
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9318
      org.apache.thrift.protocol.TField field;
9319
      iprot.readStructBegin();
9320
      while (true)
9321
      {
9322
        field = iprot.readFieldBegin();
9323
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9324
          break;
9325
        }
9326
        switch (field.id) {
9327
          case 0: // SUCCESS
9328
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9329
              {
9330
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
9331
                this.success = new ArrayList<Payment>(_list32.size);
9332
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
9333
                {
9334
                  Payment _elem34; // required
9335
                  _elem34 = new Payment();
9336
                  _elem34.read(iprot);
9337
                  this.success.add(_elem34);
9338
                }
9339
                iprot.readListEnd();
9340
              }
9341
            } else { 
9342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9343
            }
9344
            break;
9345
          case 1: // PE
9346
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9347
              this.pe = new PaymentException();
9348
              this.pe.read(iprot);
9349
            } else { 
9350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9351
            }
9352
            break;
9353
          default:
9354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9355
        }
9356
        iprot.readFieldEnd();
9357
      }
9358
      iprot.readStructEnd();
9359
      validate();
9360
    }
9361
 
9362
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9363
      oprot.writeStructBegin(STRUCT_DESC);
9364
 
9365
      if (this.isSetSuccess()) {
9366
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9367
        {
9368
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
9369
          for (Payment _iter35 : this.success)
9370
          {
9371
            _iter35.write(oprot);
9372
          }
9373
          oprot.writeListEnd();
9374
        }
9375
        oprot.writeFieldEnd();
9376
      } else if (this.isSetPe()) {
9377
        oprot.writeFieldBegin(PE_FIELD_DESC);
9378
        this.pe.write(oprot);
9379
        oprot.writeFieldEnd();
9380
      }
9381
      oprot.writeFieldStop();
9382
      oprot.writeStructEnd();
9383
    }
9384
 
9385
    @Override
9386
    public String toString() {
9387
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_result(");
9388
      boolean first = true;
9389
 
9390
      sb.append("success:");
9391
      if (this.success == null) {
9392
        sb.append("null");
9393
      } else {
9394
        sb.append(this.success);
9395
      }
9396
      first = false;
9397
      if (!first) sb.append(", ");
9398
      sb.append("pe:");
9399
      if (this.pe == null) {
9400
        sb.append("null");
9401
      } else {
9402
        sb.append(this.pe);
9403
      }
9404
      first = false;
9405
      sb.append(")");
9406
      return sb.toString();
9407
    }
9408
 
9409
    public void validate() throws org.apache.thrift.TException {
9410
      // check for required fields
9411
    }
9412
 
9413
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9414
      try {
9415
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9416
      } catch (org.apache.thrift.TException te) {
9417
        throw new java.io.IOException(te);
9418
      }
9419
    }
9420
 
9421
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9422
      try {
9423
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9424
      } catch (org.apache.thrift.TException te) {
9425
        throw new java.io.IOException(te);
9426
      }
9427
    }
9428
 
9429
  }
9430
 
4600 varun.gupt 9431
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
9432
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
9433
 
9434
    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);
9435
 
9436
    private long txnId; // required
9437
 
9438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9440
      TXN_ID((short)1, "txnId");
9441
 
9442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9443
 
9444
      static {
9445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9446
          byName.put(field.getFieldName(), field);
9447
        }
9448
      }
9449
 
9450
      /**
9451
       * Find the _Fields constant that matches fieldId, or null if its not found.
9452
       */
9453
      public static _Fields findByThriftId(int fieldId) {
9454
        switch(fieldId) {
9455
          case 1: // TXN_ID
9456
            return TXN_ID;
9457
          default:
9458
            return null;
9459
        }
9460
      }
9461
 
9462
      /**
9463
       * Find the _Fields constant that matches fieldId, throwing an exception
9464
       * if it is not found.
9465
       */
9466
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9467
        _Fields fields = findByThriftId(fieldId);
9468
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9469
        return fields;
9470
      }
9471
 
9472
      /**
9473
       * Find the _Fields constant that matches name, or null if its not found.
9474
       */
9475
      public static _Fields findByName(String name) {
9476
        return byName.get(name);
9477
      }
9478
 
9479
      private final short _thriftId;
9480
      private final String _fieldName;
9481
 
9482
      _Fields(short thriftId, String fieldName) {
9483
        _thriftId = thriftId;
9484
        _fieldName = fieldName;
9485
      }
9486
 
9487
      public short getThriftFieldId() {
9488
        return _thriftId;
9489
      }
9490
 
9491
      public String getFieldName() {
9492
        return _fieldName;
9493
      }
9494
    }
9495
 
9496
    // isset id assignments
9497
    private static final int __TXNID_ISSET_ID = 0;
9498
    private BitSet __isset_bit_vector = new BitSet(1);
9499
 
9500
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9501
    static {
9502
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9503
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
9507
    }
9508
 
9509
    public getSuccessfulPaymentForTxnId_args() {
9510
    }
9511
 
9512
    public getSuccessfulPaymentForTxnId_args(
9513
      long txnId)
9514
    {
9515
      this();
9516
      this.txnId = txnId;
9517
      setTxnIdIsSet(true);
9518
    }
9519
 
9520
    /**
9521
     * Performs a deep copy on <i>other</i>.
9522
     */
9523
    public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
9524
      __isset_bit_vector.clear();
9525
      __isset_bit_vector.or(other.__isset_bit_vector);
9526
      this.txnId = other.txnId;
9527
    }
9528
 
9529
    public getSuccessfulPaymentForTxnId_args deepCopy() {
9530
      return new getSuccessfulPaymentForTxnId_args(this);
9531
    }
9532
 
9533
    @Override
9534
    public void clear() {
9535
      setTxnIdIsSet(false);
9536
      this.txnId = 0;
9537
    }
9538
 
9539
    public long getTxnId() {
9540
      return this.txnId;
9541
    }
9542
 
9543
    public void setTxnId(long txnId) {
9544
      this.txnId = txnId;
9545
      setTxnIdIsSet(true);
9546
    }
9547
 
9548
    public void unsetTxnId() {
9549
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
9550
    }
9551
 
9552
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
9553
    public boolean isSetTxnId() {
9554
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
9555
    }
9556
 
9557
    public void setTxnIdIsSet(boolean value) {
9558
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
9559
    }
9560
 
9561
    public void setFieldValue(_Fields field, Object value) {
9562
      switch (field) {
9563
      case TXN_ID:
9564
        if (value == null) {
9565
          unsetTxnId();
9566
        } else {
9567
          setTxnId((Long)value);
9568
        }
9569
        break;
9570
 
9571
      }
9572
    }
9573
 
9574
    public Object getFieldValue(_Fields field) {
9575
      switch (field) {
9576
      case TXN_ID:
9577
        return Long.valueOf(getTxnId());
9578
 
9579
      }
9580
      throw new IllegalStateException();
9581
    }
9582
 
9583
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9584
    public boolean isSet(_Fields field) {
9585
      if (field == null) {
9586
        throw new IllegalArgumentException();
9587
      }
9588
 
9589
      switch (field) {
9590
      case TXN_ID:
9591
        return isSetTxnId();
9592
      }
9593
      throw new IllegalStateException();
9594
    }
9595
 
9596
    @Override
9597
    public boolean equals(Object that) {
9598
      if (that == null)
9599
        return false;
9600
      if (that instanceof getSuccessfulPaymentForTxnId_args)
9601
        return this.equals((getSuccessfulPaymentForTxnId_args)that);
9602
      return false;
9603
    }
9604
 
9605
    public boolean equals(getSuccessfulPaymentForTxnId_args that) {
9606
      if (that == null)
9607
        return false;
9608
 
9609
      boolean this_present_txnId = true;
9610
      boolean that_present_txnId = true;
9611
      if (this_present_txnId || that_present_txnId) {
9612
        if (!(this_present_txnId && that_present_txnId))
9613
          return false;
9614
        if (this.txnId != that.txnId)
9615
          return false;
9616
      }
9617
 
9618
      return true;
9619
    }
9620
 
9621
    @Override
9622
    public int hashCode() {
9623
      return 0;
9624
    }
9625
 
9626
    public int compareTo(getSuccessfulPaymentForTxnId_args other) {
9627
      if (!getClass().equals(other.getClass())) {
9628
        return getClass().getName().compareTo(other.getClass().getName());
9629
      }
9630
 
9631
      int lastComparison = 0;
9632
      getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
9633
 
9634
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
9635
      if (lastComparison != 0) {
9636
        return lastComparison;
9637
      }
9638
      if (isSetTxnId()) {
9639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
9640
        if (lastComparison != 0) {
9641
          return lastComparison;
9642
        }
9643
      }
9644
      return 0;
9645
    }
9646
 
9647
    public _Fields fieldForId(int fieldId) {
9648
      return _Fields.findByThriftId(fieldId);
9649
    }
9650
 
9651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9652
      org.apache.thrift.protocol.TField field;
9653
      iprot.readStructBegin();
9654
      while (true)
9655
      {
9656
        field = iprot.readFieldBegin();
9657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9658
          break;
9659
        }
9660
        switch (field.id) {
9661
          case 1: // TXN_ID
9662
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9663
              this.txnId = iprot.readI64();
9664
              setTxnIdIsSet(true);
9665
            } else { 
9666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9667
            }
9668
            break;
9669
          default:
9670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9671
        }
9672
        iprot.readFieldEnd();
9673
      }
9674
      iprot.readStructEnd();
9675
      validate();
9676
    }
9677
 
9678
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9679
      validate();
9680
 
9681
      oprot.writeStructBegin(STRUCT_DESC);
9682
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
9683
      oprot.writeI64(this.txnId);
9684
      oprot.writeFieldEnd();
9685
      oprot.writeFieldStop();
9686
      oprot.writeStructEnd();
9687
    }
9688
 
9689
    @Override
9690
    public String toString() {
9691
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
9692
      boolean first = true;
9693
 
9694
      sb.append("txnId:");
9695
      sb.append(this.txnId);
9696
      first = false;
9697
      sb.append(")");
9698
      return sb.toString();
9699
    }
9700
 
9701
    public void validate() throws org.apache.thrift.TException {
9702
      // check for required fields
9703
    }
9704
 
9705
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9706
      try {
9707
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9708
      } catch (org.apache.thrift.TException te) {
9709
        throw new java.io.IOException(te);
9710
      }
9711
    }
9712
 
9713
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9714
      try {
9715
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9716
        __isset_bit_vector = new BitSet(1);
9717
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9718
      } catch (org.apache.thrift.TException te) {
9719
        throw new java.io.IOException(te);
9720
      }
9721
    }
9722
 
9723
  }
9724
 
9725
  public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
9726
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
9727
 
9728
    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);
9729
    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);
9730
 
9731
    private Payment success; // required
9732
    private PaymentException pe; // required
9733
 
9734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9736
      SUCCESS((short)0, "success"),
9737
      PE((short)1, "pe");
9738
 
9739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9740
 
9741
      static {
9742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9743
          byName.put(field.getFieldName(), field);
9744
        }
9745
      }
9746
 
9747
      /**
9748
       * Find the _Fields constant that matches fieldId, or null if its not found.
9749
       */
9750
      public static _Fields findByThriftId(int fieldId) {
9751
        switch(fieldId) {
9752
          case 0: // SUCCESS
9753
            return SUCCESS;
9754
          case 1: // PE
9755
            return PE;
9756
          default:
9757
            return null;
9758
        }
9759
      }
9760
 
9761
      /**
9762
       * Find the _Fields constant that matches fieldId, throwing an exception
9763
       * if it is not found.
9764
       */
9765
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9766
        _Fields fields = findByThriftId(fieldId);
9767
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9768
        return fields;
9769
      }
9770
 
9771
      /**
9772
       * Find the _Fields constant that matches name, or null if its not found.
9773
       */
9774
      public static _Fields findByName(String name) {
9775
        return byName.get(name);
9776
      }
9777
 
9778
      private final short _thriftId;
9779
      private final String _fieldName;
9780
 
9781
      _Fields(short thriftId, String fieldName) {
9782
        _thriftId = thriftId;
9783
        _fieldName = fieldName;
9784
      }
9785
 
9786
      public short getThriftFieldId() {
9787
        return _thriftId;
9788
      }
9789
 
9790
      public String getFieldName() {
9791
        return _fieldName;
9792
      }
9793
    }
9794
 
9795
    // isset id assignments
9796
 
9797
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9798
    static {
9799
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9800
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9801
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
9802
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9804
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9805
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
9806
    }
9807
 
9808
    public getSuccessfulPaymentForTxnId_result() {
9809
    }
9810
 
9811
    public getSuccessfulPaymentForTxnId_result(
9812
      Payment success,
9813
      PaymentException pe)
9814
    {
9815
      this();
9816
      this.success = success;
9817
      this.pe = pe;
9818
    }
9819
 
9820
    /**
9821
     * Performs a deep copy on <i>other</i>.
9822
     */
9823
    public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
9824
      if (other.isSetSuccess()) {
9825
        this.success = new Payment(other.success);
9826
      }
9827
      if (other.isSetPe()) {
9828
        this.pe = new PaymentException(other.pe);
9829
      }
9830
    }
9831
 
9832
    public getSuccessfulPaymentForTxnId_result deepCopy() {
9833
      return new getSuccessfulPaymentForTxnId_result(this);
9834
    }
9835
 
9836
    @Override
9837
    public void clear() {
9838
      this.success = null;
9839
      this.pe = null;
9840
    }
9841
 
9842
    public Payment getSuccess() {
9843
      return this.success;
9844
    }
9845
 
9846
    public void setSuccess(Payment success) {
9847
      this.success = success;
9848
    }
9849
 
9850
    public void unsetSuccess() {
9851
      this.success = null;
9852
    }
9853
 
9854
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9855
    public boolean isSetSuccess() {
9856
      return this.success != null;
9857
    }
9858
 
9859
    public void setSuccessIsSet(boolean value) {
9860
      if (!value) {
9861
        this.success = null;
9862
      }
9863
    }
9864
 
9865
    public PaymentException getPe() {
9866
      return this.pe;
9867
    }
9868
 
9869
    public void setPe(PaymentException pe) {
9870
      this.pe = pe;
9871
    }
9872
 
9873
    public void unsetPe() {
9874
      this.pe = null;
9875
    }
9876
 
9877
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9878
    public boolean isSetPe() {
9879
      return this.pe != null;
9880
    }
9881
 
9882
    public void setPeIsSet(boolean value) {
9883
      if (!value) {
9884
        this.pe = null;
9885
      }
9886
    }
9887
 
9888
    public void setFieldValue(_Fields field, Object value) {
9889
      switch (field) {
9890
      case SUCCESS:
9891
        if (value == null) {
9892
          unsetSuccess();
9893
        } else {
9894
          setSuccess((Payment)value);
9895
        }
9896
        break;
9897
 
9898
      case PE:
9899
        if (value == null) {
9900
          unsetPe();
9901
        } else {
9902
          setPe((PaymentException)value);
9903
        }
9904
        break;
9905
 
9906
      }
9907
    }
9908
 
9909
    public Object getFieldValue(_Fields field) {
9910
      switch (field) {
9911
      case SUCCESS:
9912
        return getSuccess();
9913
 
9914
      case PE:
9915
        return getPe();
9916
 
9917
      }
9918
      throw new IllegalStateException();
9919
    }
9920
 
9921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9922
    public boolean isSet(_Fields field) {
9923
      if (field == null) {
9924
        throw new IllegalArgumentException();
9925
      }
9926
 
9927
      switch (field) {
9928
      case SUCCESS:
9929
        return isSetSuccess();
9930
      case PE:
9931
        return isSetPe();
9932
      }
9933
      throw new IllegalStateException();
9934
    }
9935
 
9936
    @Override
9937
    public boolean equals(Object that) {
9938
      if (that == null)
9939
        return false;
9940
      if (that instanceof getSuccessfulPaymentForTxnId_result)
9941
        return this.equals((getSuccessfulPaymentForTxnId_result)that);
9942
      return false;
9943
    }
9944
 
9945
    public boolean equals(getSuccessfulPaymentForTxnId_result that) {
9946
      if (that == null)
9947
        return false;
9948
 
9949
      boolean this_present_success = true && this.isSetSuccess();
9950
      boolean that_present_success = true && that.isSetSuccess();
9951
      if (this_present_success || that_present_success) {
9952
        if (!(this_present_success && that_present_success))
9953
          return false;
9954
        if (!this.success.equals(that.success))
9955
          return false;
9956
      }
9957
 
9958
      boolean this_present_pe = true && this.isSetPe();
9959
      boolean that_present_pe = true && that.isSetPe();
9960
      if (this_present_pe || that_present_pe) {
9961
        if (!(this_present_pe && that_present_pe))
9962
          return false;
9963
        if (!this.pe.equals(that.pe))
9964
          return false;
9965
      }
9966
 
9967
      return true;
9968
    }
9969
 
9970
    @Override
9971
    public int hashCode() {
9972
      return 0;
9973
    }
9974
 
9975
    public int compareTo(getSuccessfulPaymentForTxnId_result other) {
9976
      if (!getClass().equals(other.getClass())) {
9977
        return getClass().getName().compareTo(other.getClass().getName());
9978
      }
9979
 
9980
      int lastComparison = 0;
9981
      getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
9982
 
9983
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9984
      if (lastComparison != 0) {
9985
        return lastComparison;
9986
      }
9987
      if (isSetSuccess()) {
9988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9989
        if (lastComparison != 0) {
9990
          return lastComparison;
9991
        }
9992
      }
9993
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
9994
      if (lastComparison != 0) {
9995
        return lastComparison;
9996
      }
9997
      if (isSetPe()) {
9998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9999
        if (lastComparison != 0) {
10000
          return lastComparison;
10001
        }
10002
      }
10003
      return 0;
10004
    }
10005
 
10006
    public _Fields fieldForId(int fieldId) {
10007
      return _Fields.findByThriftId(fieldId);
10008
    }
10009
 
10010
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10011
      org.apache.thrift.protocol.TField field;
10012
      iprot.readStructBegin();
10013
      while (true)
10014
      {
10015
        field = iprot.readFieldBegin();
10016
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10017
          break;
10018
        }
10019
        switch (field.id) {
10020
          case 0: // SUCCESS
10021
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10022
              this.success = new Payment();
10023
              this.success.read(iprot);
10024
            } else { 
10025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10026
            }
10027
            break;
10028
          case 1: // PE
10029
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10030
              this.pe = new PaymentException();
10031
              this.pe.read(iprot);
10032
            } else { 
10033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10034
            }
10035
            break;
10036
          default:
10037
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10038
        }
10039
        iprot.readFieldEnd();
10040
      }
10041
      iprot.readStructEnd();
10042
      validate();
10043
    }
10044
 
10045
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10046
      oprot.writeStructBegin(STRUCT_DESC);
10047
 
10048
      if (this.isSetSuccess()) {
10049
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10050
        this.success.write(oprot);
10051
        oprot.writeFieldEnd();
10052
      } else if (this.isSetPe()) {
10053
        oprot.writeFieldBegin(PE_FIELD_DESC);
10054
        this.pe.write(oprot);
10055
        oprot.writeFieldEnd();
10056
      }
10057
      oprot.writeFieldStop();
10058
      oprot.writeStructEnd();
10059
    }
10060
 
10061
    @Override
10062
    public String toString() {
10063
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
10064
      boolean first = true;
10065
 
10066
      sb.append("success:");
10067
      if (this.success == null) {
10068
        sb.append("null");
10069
      } else {
10070
        sb.append(this.success);
10071
      }
10072
      first = false;
10073
      if (!first) sb.append(", ");
10074
      sb.append("pe:");
10075
      if (this.pe == null) {
10076
        sb.append("null");
10077
      } else {
10078
        sb.append(this.pe);
10079
      }
10080
      first = false;
10081
      sb.append(")");
10082
      return sb.toString();
10083
    }
10084
 
10085
    public void validate() throws org.apache.thrift.TException {
10086
      // check for required fields
10087
    }
10088
 
10089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10090
      try {
10091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10092
      } catch (org.apache.thrift.TException te) {
10093
        throw new java.io.IOException(te);
10094
      }
10095
    }
10096
 
10097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10098
      try {
10099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10100
      } catch (org.apache.thrift.TException te) {
10101
        throw new java.io.IOException(te);
10102
      }
10103
    }
10104
 
10105
  }
10106
 
3430 rajveer 10107
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
10108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
420 ashish 10109
 
3430 rajveer 10110
    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);
10111
    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);
10112
    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);
10113
    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);
10114
    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);
10115
    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);
10116
    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);
10117
    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);
10118
    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);
10119
    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);
10120
    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);
10121
    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 10122
 
3430 rajveer 10123
    private long id; // required
10124
    private String gatewayPaymentId; // required
10125
    private String sessionId; // required
10126
    private String gatewayTxnStatus; // required
10127
    private String description; // required
10128
    private String gatewayTxnId; // required
10129
    private String authCode; // required
10130
    private String referenceCode; // required
10131
    private String errorCode; // required
10132
    private PaymentStatus status; // required
10133
    private String gatewayTxnDate; // required
10134
    private List<Attribute> attributes; // required
420 ashish 10135
 
10136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 10138
      ID((short)1, "id"),
695 rajveer 10139
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
10140
      SESSION_ID((short)3, "sessionId"),
10141
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
10142
      DESCRIPTION((short)5, "description"),
10143
      GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
10144
      AUTH_CODE((short)7, "authCode"),
10145
      REFERENCE_CODE((short)8, "referenceCode"),
10146
      ERROR_CODE((short)9, "errorCode"),
10147
      /**
10148
       * 
10149
       * @see PaymentStatus
10150
       */
10151
      STATUS((short)10, "status"),
1119 rajveer 10152
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
10153
      ATTRIBUTES((short)12, "attributes");
420 ashish 10154
 
10155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10156
 
10157
      static {
10158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10159
          byName.put(field.getFieldName(), field);
10160
        }
10161
      }
10162
 
10163
      /**
10164
       * Find the _Fields constant that matches fieldId, or null if its not found.
10165
       */
10166
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10167
        switch(fieldId) {
10168
          case 1: // ID
10169
            return ID;
10170
          case 2: // GATEWAY_PAYMENT_ID
10171
            return GATEWAY_PAYMENT_ID;
10172
          case 3: // SESSION_ID
10173
            return SESSION_ID;
10174
          case 4: // GATEWAY_TXN_STATUS
10175
            return GATEWAY_TXN_STATUS;
10176
          case 5: // DESCRIPTION
10177
            return DESCRIPTION;
10178
          case 6: // GATEWAY_TXN_ID
10179
            return GATEWAY_TXN_ID;
10180
          case 7: // AUTH_CODE
10181
            return AUTH_CODE;
10182
          case 8: // REFERENCE_CODE
10183
            return REFERENCE_CODE;
10184
          case 9: // ERROR_CODE
10185
            return ERROR_CODE;
10186
          case 10: // STATUS
10187
            return STATUS;
10188
          case 11: // GATEWAY_TXN_DATE
10189
            return GATEWAY_TXN_DATE;
10190
          case 12: // ATTRIBUTES
10191
            return ATTRIBUTES;
10192
          default:
10193
            return null;
10194
        }
420 ashish 10195
      }
10196
 
10197
      /**
10198
       * Find the _Fields constant that matches fieldId, throwing an exception
10199
       * if it is not found.
10200
       */
10201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10202
        _Fields fields = findByThriftId(fieldId);
10203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10204
        return fields;
10205
      }
10206
 
10207
      /**
10208
       * Find the _Fields constant that matches name, or null if its not found.
10209
       */
10210
      public static _Fields findByName(String name) {
10211
        return byName.get(name);
10212
      }
10213
 
10214
      private final short _thriftId;
10215
      private final String _fieldName;
10216
 
10217
      _Fields(short thriftId, String fieldName) {
10218
        _thriftId = thriftId;
10219
        _fieldName = fieldName;
10220
      }
10221
 
10222
      public short getThriftFieldId() {
10223
        return _thriftId;
10224
      }
10225
 
10226
      public String getFieldName() {
10227
        return _fieldName;
10228
      }
10229
    }
10230
 
10231
    // isset id assignments
10232
    private static final int __ID_ISSET_ID = 0;
10233
    private BitSet __isset_bit_vector = new BitSet(1);
10234
 
3430 rajveer 10235
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 10236
    static {
3430 rajveer 10237
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10238
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10239
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10240
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10241
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10242
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10244
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10246
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10248
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10250
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10252
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10253
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10254
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10256
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10257
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
10258
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10260
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10261
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10262
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
10263
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10264
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
420 ashish 10265
    }
10266
 
695 rajveer 10267
    public updatePaymentDetails_args() {
420 ashish 10268
    }
10269
 
695 rajveer 10270
    public updatePaymentDetails_args(
420 ashish 10271
      long id,
695 rajveer 10272
      String gatewayPaymentId,
10273
      String sessionId,
10274
      String gatewayTxnStatus,
10275
      String description,
10276
      String gatewayTxnId,
10277
      String authCode,
10278
      String referenceCode,
10279
      String errorCode,
10280
      PaymentStatus status,
1119 rajveer 10281
      String gatewayTxnDate,
695 rajveer 10282
      List<Attribute> attributes)
420 ashish 10283
    {
10284
      this();
10285
      this.id = id;
10286
      setIdIsSet(true);
695 rajveer 10287
      this.gatewayPaymentId = gatewayPaymentId;
10288
      this.sessionId = sessionId;
10289
      this.gatewayTxnStatus = gatewayTxnStatus;
10290
      this.description = description;
10291
      this.gatewayTxnId = gatewayTxnId;
10292
      this.authCode = authCode;
10293
      this.referenceCode = referenceCode;
10294
      this.errorCode = errorCode;
10295
      this.status = status;
1119 rajveer 10296
      this.gatewayTxnDate = gatewayTxnDate;
695 rajveer 10297
      this.attributes = attributes;
420 ashish 10298
    }
10299
 
10300
    /**
10301
     * Performs a deep copy on <i>other</i>.
10302
     */
695 rajveer 10303
    public updatePaymentDetails_args(updatePaymentDetails_args other) {
420 ashish 10304
      __isset_bit_vector.clear();
10305
      __isset_bit_vector.or(other.__isset_bit_vector);
10306
      this.id = other.id;
695 rajveer 10307
      if (other.isSetGatewayPaymentId()) {
10308
        this.gatewayPaymentId = other.gatewayPaymentId;
420 ashish 10309
      }
695 rajveer 10310
      if (other.isSetSessionId()) {
10311
        this.sessionId = other.sessionId;
420 ashish 10312
      }
695 rajveer 10313
      if (other.isSetGatewayTxnStatus()) {
10314
        this.gatewayTxnStatus = other.gatewayTxnStatus;
420 ashish 10315
      }
695 rajveer 10316
      if (other.isSetDescription()) {
10317
        this.description = other.description;
420 ashish 10318
      }
695 rajveer 10319
      if (other.isSetGatewayTxnId()) {
10320
        this.gatewayTxnId = other.gatewayTxnId;
420 ashish 10321
      }
695 rajveer 10322
      if (other.isSetAuthCode()) {
10323
        this.authCode = other.authCode;
420 ashish 10324
      }
695 rajveer 10325
      if (other.isSetReferenceCode()) {
10326
        this.referenceCode = other.referenceCode;
420 ashish 10327
      }
695 rajveer 10328
      if (other.isSetErrorCode()) {
10329
        this.errorCode = other.errorCode;
10330
      }
10331
      if (other.isSetStatus()) {
10332
        this.status = other.status;
10333
      }
1119 rajveer 10334
      if (other.isSetGatewayTxnDate()) {
10335
        this.gatewayTxnDate = other.gatewayTxnDate;
10336
      }
695 rajveer 10337
      if (other.isSetAttributes()) {
10338
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
10339
        for (Attribute other_element : other.attributes) {
10340
          __this__attributes.add(new Attribute(other_element));
10341
        }
10342
        this.attributes = __this__attributes;
10343
      }
420 ashish 10344
    }
10345
 
695 rajveer 10346
    public updatePaymentDetails_args deepCopy() {
10347
      return new updatePaymentDetails_args(this);
420 ashish 10348
    }
10349
 
3430 rajveer 10350
    @Override
10351
    public void clear() {
10352
      setIdIsSet(false);
10353
      this.id = 0;
10354
      this.gatewayPaymentId = null;
10355
      this.sessionId = null;
10356
      this.gatewayTxnStatus = null;
10357
      this.description = null;
10358
      this.gatewayTxnId = null;
10359
      this.authCode = null;
10360
      this.referenceCode = null;
10361
      this.errorCode = null;
10362
      this.status = null;
10363
      this.gatewayTxnDate = null;
10364
      this.attributes = null;
420 ashish 10365
    }
10366
 
10367
    public long getId() {
10368
      return this.id;
10369
    }
10370
 
3430 rajveer 10371
    public void setId(long id) {
420 ashish 10372
      this.id = id;
10373
      setIdIsSet(true);
10374
    }
10375
 
10376
    public void unsetId() {
10377
      __isset_bit_vector.clear(__ID_ISSET_ID);
10378
    }
10379
 
3430 rajveer 10380
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 10381
    public boolean isSetId() {
10382
      return __isset_bit_vector.get(__ID_ISSET_ID);
10383
    }
10384
 
10385
    public void setIdIsSet(boolean value) {
10386
      __isset_bit_vector.set(__ID_ISSET_ID, value);
10387
    }
10388
 
695 rajveer 10389
    public String getGatewayPaymentId() {
10390
      return this.gatewayPaymentId;
420 ashish 10391
    }
10392
 
3430 rajveer 10393
    public void setGatewayPaymentId(String gatewayPaymentId) {
695 rajveer 10394
      this.gatewayPaymentId = gatewayPaymentId;
420 ashish 10395
    }
10396
 
695 rajveer 10397
    public void unsetGatewayPaymentId() {
10398
      this.gatewayPaymentId = null;
420 ashish 10399
    }
10400
 
3430 rajveer 10401
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
695 rajveer 10402
    public boolean isSetGatewayPaymentId() {
10403
      return this.gatewayPaymentId != null;
420 ashish 10404
    }
10405
 
695 rajveer 10406
    public void setGatewayPaymentIdIsSet(boolean value) {
420 ashish 10407
      if (!value) {
695 rajveer 10408
        this.gatewayPaymentId = null;
420 ashish 10409
      }
10410
    }
10411
 
695 rajveer 10412
    public String getSessionId() {
10413
      return this.sessionId;
420 ashish 10414
    }
10415
 
3430 rajveer 10416
    public void setSessionId(String sessionId) {
695 rajveer 10417
      this.sessionId = sessionId;
420 ashish 10418
    }
10419
 
695 rajveer 10420
    public void unsetSessionId() {
10421
      this.sessionId = null;
420 ashish 10422
    }
10423
 
3430 rajveer 10424
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
695 rajveer 10425
    public boolean isSetSessionId() {
10426
      return this.sessionId != null;
420 ashish 10427
    }
10428
 
695 rajveer 10429
    public void setSessionIdIsSet(boolean value) {
420 ashish 10430
      if (!value) {
695 rajveer 10431
        this.sessionId = null;
420 ashish 10432
      }
10433
    }
10434
 
695 rajveer 10435
    public String getGatewayTxnStatus() {
10436
      return this.gatewayTxnStatus;
420 ashish 10437
    }
10438
 
3430 rajveer 10439
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
695 rajveer 10440
      this.gatewayTxnStatus = gatewayTxnStatus;
420 ashish 10441
    }
10442
 
695 rajveer 10443
    public void unsetGatewayTxnStatus() {
10444
      this.gatewayTxnStatus = null;
420 ashish 10445
    }
10446
 
3430 rajveer 10447
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
695 rajveer 10448
    public boolean isSetGatewayTxnStatus() {
10449
      return this.gatewayTxnStatus != null;
420 ashish 10450
    }
10451
 
695 rajveer 10452
    public void setGatewayTxnStatusIsSet(boolean value) {
420 ashish 10453
      if (!value) {
695 rajveer 10454
        this.gatewayTxnStatus = null;
420 ashish 10455
      }
10456
    }
10457
 
695 rajveer 10458
    public String getDescription() {
10459
      return this.description;
420 ashish 10460
    }
10461
 
3430 rajveer 10462
    public void setDescription(String description) {
695 rajveer 10463
      this.description = description;
420 ashish 10464
    }
10465
 
695 rajveer 10466
    public void unsetDescription() {
10467
      this.description = null;
420 ashish 10468
    }
10469
 
3430 rajveer 10470
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
695 rajveer 10471
    public boolean isSetDescription() {
10472
      return this.description != null;
420 ashish 10473
    }
10474
 
695 rajveer 10475
    public void setDescriptionIsSet(boolean value) {
420 ashish 10476
      if (!value) {
695 rajveer 10477
        this.description = null;
420 ashish 10478
      }
10479
    }
10480
 
695 rajveer 10481
    public String getGatewayTxnId() {
10482
      return this.gatewayTxnId;
420 ashish 10483
    }
10484
 
3430 rajveer 10485
    public void setGatewayTxnId(String gatewayTxnId) {
695 rajveer 10486
      this.gatewayTxnId = gatewayTxnId;
420 ashish 10487
    }
10488
 
695 rajveer 10489
    public void unsetGatewayTxnId() {
10490
      this.gatewayTxnId = null;
420 ashish 10491
    }
10492
 
3430 rajveer 10493
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
695 rajveer 10494
    public boolean isSetGatewayTxnId() {
10495
      return this.gatewayTxnId != null;
420 ashish 10496
    }
10497
 
695 rajveer 10498
    public void setGatewayTxnIdIsSet(boolean value) {
420 ashish 10499
      if (!value) {
695 rajveer 10500
        this.gatewayTxnId = null;
420 ashish 10501
      }
10502
    }
10503
 
695 rajveer 10504
    public String getAuthCode() {
10505
      return this.authCode;
420 ashish 10506
    }
10507
 
3430 rajveer 10508
    public void setAuthCode(String authCode) {
695 rajveer 10509
      this.authCode = authCode;
420 ashish 10510
    }
10511
 
695 rajveer 10512
    public void unsetAuthCode() {
10513
      this.authCode = null;
420 ashish 10514
    }
10515
 
3430 rajveer 10516
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
695 rajveer 10517
    public boolean isSetAuthCode() {
10518
      return this.authCode != null;
420 ashish 10519
    }
10520
 
695 rajveer 10521
    public void setAuthCodeIsSet(boolean value) {
420 ashish 10522
      if (!value) {
695 rajveer 10523
        this.authCode = null;
420 ashish 10524
      }
10525
    }
10526
 
695 rajveer 10527
    public String getReferenceCode() {
10528
      return this.referenceCode;
420 ashish 10529
    }
10530
 
3430 rajveer 10531
    public void setReferenceCode(String referenceCode) {
695 rajveer 10532
      this.referenceCode = referenceCode;
420 ashish 10533
    }
10534
 
695 rajveer 10535
    public void unsetReferenceCode() {
10536
      this.referenceCode = null;
420 ashish 10537
    }
10538
 
3430 rajveer 10539
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
695 rajveer 10540
    public boolean isSetReferenceCode() {
10541
      return this.referenceCode != null;
420 ashish 10542
    }
10543
 
695 rajveer 10544
    public void setReferenceCodeIsSet(boolean value) {
420 ashish 10545
      if (!value) {
695 rajveer 10546
        this.referenceCode = null;
420 ashish 10547
      }
10548
    }
10549
 
695 rajveer 10550
    public String getErrorCode() {
10551
      return this.errorCode;
10552
    }
10553
 
3430 rajveer 10554
    public void setErrorCode(String errorCode) {
695 rajveer 10555
      this.errorCode = errorCode;
10556
    }
10557
 
10558
    public void unsetErrorCode() {
10559
      this.errorCode = null;
10560
    }
10561
 
3430 rajveer 10562
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
695 rajveer 10563
    public boolean isSetErrorCode() {
10564
      return this.errorCode != null;
10565
    }
10566
 
10567
    public void setErrorCodeIsSet(boolean value) {
10568
      if (!value) {
10569
        this.errorCode = null;
10570
      }
10571
    }
10572
 
10573
    /**
10574
     * 
10575
     * @see PaymentStatus
10576
     */
10577
    public PaymentStatus getStatus() {
10578
      return this.status;
10579
    }
10580
 
10581
    /**
10582
     * 
10583
     * @see PaymentStatus
10584
     */
3430 rajveer 10585
    public void setStatus(PaymentStatus status) {
695 rajveer 10586
      this.status = status;
10587
    }
10588
 
10589
    public void unsetStatus() {
10590
      this.status = null;
10591
    }
10592
 
3430 rajveer 10593
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
695 rajveer 10594
    public boolean isSetStatus() {
10595
      return this.status != null;
10596
    }
10597
 
10598
    public void setStatusIsSet(boolean value) {
10599
      if (!value) {
10600
        this.status = null;
10601
      }
10602
    }
10603
 
1119 rajveer 10604
    public String getGatewayTxnDate() {
10605
      return this.gatewayTxnDate;
10606
    }
10607
 
3430 rajveer 10608
    public void setGatewayTxnDate(String gatewayTxnDate) {
1119 rajveer 10609
      this.gatewayTxnDate = gatewayTxnDate;
10610
    }
10611
 
10612
    public void unsetGatewayTxnDate() {
10613
      this.gatewayTxnDate = null;
10614
    }
10615
 
3430 rajveer 10616
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
1119 rajveer 10617
    public boolean isSetGatewayTxnDate() {
10618
      return this.gatewayTxnDate != null;
10619
    }
10620
 
10621
    public void setGatewayTxnDateIsSet(boolean value) {
10622
      if (!value) {
10623
        this.gatewayTxnDate = null;
10624
      }
10625
    }
10626
 
695 rajveer 10627
    public int getAttributesSize() {
10628
      return (this.attributes == null) ? 0 : this.attributes.size();
10629
    }
10630
 
10631
    public java.util.Iterator<Attribute> getAttributesIterator() {
10632
      return (this.attributes == null) ? null : this.attributes.iterator();
10633
    }
10634
 
10635
    public void addToAttributes(Attribute elem) {
10636
      if (this.attributes == null) {
10637
        this.attributes = new ArrayList<Attribute>();
10638
      }
10639
      this.attributes.add(elem);
10640
    }
10641
 
10642
    public List<Attribute> getAttributes() {
10643
      return this.attributes;
10644
    }
10645
 
3430 rajveer 10646
    public void setAttributes(List<Attribute> attributes) {
695 rajveer 10647
      this.attributes = attributes;
10648
    }
10649
 
10650
    public void unsetAttributes() {
10651
      this.attributes = null;
10652
    }
10653
 
3430 rajveer 10654
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
695 rajveer 10655
    public boolean isSetAttributes() {
10656
      return this.attributes != null;
10657
    }
10658
 
10659
    public void setAttributesIsSet(boolean value) {
10660
      if (!value) {
10661
        this.attributes = null;
10662
      }
10663
    }
10664
 
420 ashish 10665
    public void setFieldValue(_Fields field, Object value) {
10666
      switch (field) {
10667
      case ID:
10668
        if (value == null) {
10669
          unsetId();
10670
        } else {
10671
          setId((Long)value);
10672
        }
10673
        break;
10674
 
695 rajveer 10675
      case GATEWAY_PAYMENT_ID:
420 ashish 10676
        if (value == null) {
695 rajveer 10677
          unsetGatewayPaymentId();
420 ashish 10678
        } else {
695 rajveer 10679
          setGatewayPaymentId((String)value);
420 ashish 10680
        }
10681
        break;
10682
 
695 rajveer 10683
      case SESSION_ID:
420 ashish 10684
        if (value == null) {
695 rajveer 10685
          unsetSessionId();
420 ashish 10686
        } else {
695 rajveer 10687
          setSessionId((String)value);
420 ashish 10688
        }
10689
        break;
10690
 
695 rajveer 10691
      case GATEWAY_TXN_STATUS:
420 ashish 10692
        if (value == null) {
695 rajveer 10693
          unsetGatewayTxnStatus();
420 ashish 10694
        } else {
695 rajveer 10695
          setGatewayTxnStatus((String)value);
420 ashish 10696
        }
10697
        break;
10698
 
695 rajveer 10699
      case DESCRIPTION:
420 ashish 10700
        if (value == null) {
695 rajveer 10701
          unsetDescription();
420 ashish 10702
        } else {
695 rajveer 10703
          setDescription((String)value);
420 ashish 10704
        }
10705
        break;
10706
 
695 rajveer 10707
      case GATEWAY_TXN_ID:
420 ashish 10708
        if (value == null) {
695 rajveer 10709
          unsetGatewayTxnId();
420 ashish 10710
        } else {
695 rajveer 10711
          setGatewayTxnId((String)value);
420 ashish 10712
        }
10713
        break;
10714
 
10715
      case AUTH_CODE:
10716
        if (value == null) {
695 rajveer 10717
          unsetAuthCode();
420 ashish 10718
        } else {
695 rajveer 10719
          setAuthCode((String)value);
420 ashish 10720
        }
10721
        break;
10722
 
695 rajveer 10723
      case REFERENCE_CODE:
420 ashish 10724
        if (value == null) {
695 rajveer 10725
          unsetReferenceCode();
420 ashish 10726
        } else {
695 rajveer 10727
          setReferenceCode((String)value);
420 ashish 10728
        }
10729
        break;
10730
 
695 rajveer 10731
      case ERROR_CODE:
10732
        if (value == null) {
10733
          unsetErrorCode();
10734
        } else {
10735
          setErrorCode((String)value);
10736
        }
10737
        break;
10738
 
10739
      case STATUS:
10740
        if (value == null) {
10741
          unsetStatus();
10742
        } else {
10743
          setStatus((PaymentStatus)value);
10744
        }
10745
        break;
10746
 
1119 rajveer 10747
      case GATEWAY_TXN_DATE:
10748
        if (value == null) {
10749
          unsetGatewayTxnDate();
10750
        } else {
10751
          setGatewayTxnDate((String)value);
10752
        }
10753
        break;
10754
 
695 rajveer 10755
      case ATTRIBUTES:
10756
        if (value == null) {
10757
          unsetAttributes();
10758
        } else {
10759
          setAttributes((List<Attribute>)value);
10760
        }
10761
        break;
10762
 
420 ashish 10763
      }
10764
    }
10765
 
10766
    public Object getFieldValue(_Fields field) {
10767
      switch (field) {
10768
      case ID:
3430 rajveer 10769
        return Long.valueOf(getId());
420 ashish 10770
 
695 rajveer 10771
      case GATEWAY_PAYMENT_ID:
10772
        return getGatewayPaymentId();
420 ashish 10773
 
695 rajveer 10774
      case SESSION_ID:
10775
        return getSessionId();
420 ashish 10776
 
695 rajveer 10777
      case GATEWAY_TXN_STATUS:
10778
        return getGatewayTxnStatus();
420 ashish 10779
 
695 rajveer 10780
      case DESCRIPTION:
10781
        return getDescription();
420 ashish 10782
 
695 rajveer 10783
      case GATEWAY_TXN_ID:
10784
        return getGatewayTxnId();
420 ashish 10785
 
10786
      case AUTH_CODE:
695 rajveer 10787
        return getAuthCode();
420 ashish 10788
 
695 rajveer 10789
      case REFERENCE_CODE:
10790
        return getReferenceCode();
420 ashish 10791
 
695 rajveer 10792
      case ERROR_CODE:
10793
        return getErrorCode();
10794
 
10795
      case STATUS:
10796
        return getStatus();
10797
 
1119 rajveer 10798
      case GATEWAY_TXN_DATE:
10799
        return getGatewayTxnDate();
10800
 
695 rajveer 10801
      case ATTRIBUTES:
10802
        return getAttributes();
10803
 
420 ashish 10804
      }
10805
      throw new IllegalStateException();
10806
    }
10807
 
3430 rajveer 10808
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10809
    public boolean isSet(_Fields field) {
10810
      if (field == null) {
10811
        throw new IllegalArgumentException();
10812
      }
420 ashish 10813
 
10814
      switch (field) {
10815
      case ID:
10816
        return isSetId();
695 rajveer 10817
      case GATEWAY_PAYMENT_ID:
10818
        return isSetGatewayPaymentId();
420 ashish 10819
      case SESSION_ID:
695 rajveer 10820
        return isSetSessionId();
10821
      case GATEWAY_TXN_STATUS:
10822
        return isSetGatewayTxnStatus();
10823
      case DESCRIPTION:
10824
        return isSetDescription();
10825
      case GATEWAY_TXN_ID:
10826
        return isSetGatewayTxnId();
420 ashish 10827
      case AUTH_CODE:
695 rajveer 10828
        return isSetAuthCode();
10829
      case REFERENCE_CODE:
10830
        return isSetReferenceCode();
10831
      case ERROR_CODE:
10832
        return isSetErrorCode();
10833
      case STATUS:
10834
        return isSetStatus();
1119 rajveer 10835
      case GATEWAY_TXN_DATE:
10836
        return isSetGatewayTxnDate();
695 rajveer 10837
      case ATTRIBUTES:
10838
        return isSetAttributes();
420 ashish 10839
      }
10840
      throw new IllegalStateException();
10841
    }
10842
 
10843
    @Override
10844
    public boolean equals(Object that) {
10845
      if (that == null)
10846
        return false;
695 rajveer 10847
      if (that instanceof updatePaymentDetails_args)
10848
        return this.equals((updatePaymentDetails_args)that);
420 ashish 10849
      return false;
10850
    }
10851
 
695 rajveer 10852
    public boolean equals(updatePaymentDetails_args that) {
420 ashish 10853
      if (that == null)
10854
        return false;
10855
 
10856
      boolean this_present_id = true;
10857
      boolean that_present_id = true;
10858
      if (this_present_id || that_present_id) {
10859
        if (!(this_present_id && that_present_id))
10860
          return false;
10861
        if (this.id != that.id)
10862
          return false;
10863
      }
10864
 
695 rajveer 10865
      boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
10866
      boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
10867
      if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
10868
        if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
420 ashish 10869
          return false;
695 rajveer 10870
        if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
420 ashish 10871
          return false;
10872
      }
10873
 
695 rajveer 10874
      boolean this_present_sessionId = true && this.isSetSessionId();
10875
      boolean that_present_sessionId = true && that.isSetSessionId();
10876
      if (this_present_sessionId || that_present_sessionId) {
10877
        if (!(this_present_sessionId && that_present_sessionId))
420 ashish 10878
          return false;
695 rajveer 10879
        if (!this.sessionId.equals(that.sessionId))
420 ashish 10880
          return false;
10881
      }
10882
 
695 rajveer 10883
      boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
10884
      boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
10885
      if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
10886
        if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
420 ashish 10887
          return false;
695 rajveer 10888
        if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
420 ashish 10889
          return false;
10890
      }
10891
 
695 rajveer 10892
      boolean this_present_description = true && this.isSetDescription();
10893
      boolean that_present_description = true && that.isSetDescription();
10894
      if (this_present_description || that_present_description) {
10895
        if (!(this_present_description && that_present_description))
420 ashish 10896
          return false;
695 rajveer 10897
        if (!this.description.equals(that.description))
420 ashish 10898
          return false;
10899
      }
10900
 
695 rajveer 10901
      boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
10902
      boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
10903
      if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
10904
        if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
420 ashish 10905
          return false;
695 rajveer 10906
        if (!this.gatewayTxnId.equals(that.gatewayTxnId))
420 ashish 10907
          return false;
10908
      }
10909
 
695 rajveer 10910
      boolean this_present_authCode = true && this.isSetAuthCode();
10911
      boolean that_present_authCode = true && that.isSetAuthCode();
10912
      if (this_present_authCode || that_present_authCode) {
10913
        if (!(this_present_authCode && that_present_authCode))
420 ashish 10914
          return false;
695 rajveer 10915
        if (!this.authCode.equals(that.authCode))
420 ashish 10916
          return false;
10917
      }
10918
 
695 rajveer 10919
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
10920
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
10921
      if (this_present_referenceCode || that_present_referenceCode) {
10922
        if (!(this_present_referenceCode && that_present_referenceCode))
420 ashish 10923
          return false;
695 rajveer 10924
        if (!this.referenceCode.equals(that.referenceCode))
420 ashish 10925
          return false;
10926
      }
10927
 
695 rajveer 10928
      boolean this_present_errorCode = true && this.isSetErrorCode();
10929
      boolean that_present_errorCode = true && that.isSetErrorCode();
10930
      if (this_present_errorCode || that_present_errorCode) {
10931
        if (!(this_present_errorCode && that_present_errorCode))
10932
          return false;
10933
        if (!this.errorCode.equals(that.errorCode))
10934
          return false;
10935
      }
10936
 
10937
      boolean this_present_status = true && this.isSetStatus();
10938
      boolean that_present_status = true && that.isSetStatus();
10939
      if (this_present_status || that_present_status) {
10940
        if (!(this_present_status && that_present_status))
10941
          return false;
10942
        if (!this.status.equals(that.status))
10943
          return false;
10944
      }
10945
 
1119 rajveer 10946
      boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
10947
      boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
10948
      if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
10949
        if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
10950
          return false;
10951
        if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
10952
          return false;
10953
      }
10954
 
695 rajveer 10955
      boolean this_present_attributes = true && this.isSetAttributes();
10956
      boolean that_present_attributes = true && that.isSetAttributes();
10957
      if (this_present_attributes || that_present_attributes) {
10958
        if (!(this_present_attributes && that_present_attributes))
10959
          return false;
10960
        if (!this.attributes.equals(that.attributes))
10961
          return false;
10962
      }
10963
 
420 ashish 10964
      return true;
10965
    }
10966
 
10967
    @Override
10968
    public int hashCode() {
10969
      return 0;
10970
    }
10971
 
695 rajveer 10972
    public int compareTo(updatePaymentDetails_args other) {
420 ashish 10973
      if (!getClass().equals(other.getClass())) {
10974
        return getClass().getName().compareTo(other.getClass().getName());
10975
      }
10976
 
10977
      int lastComparison = 0;
695 rajveer 10978
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
420 ashish 10979
 
3430 rajveer 10980
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 10981
      if (lastComparison != 0) {
10982
        return lastComparison;
10983
      }
3430 rajveer 10984
      if (isSetId()) {
10985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
10986
        if (lastComparison != 0) {
10987
          return lastComparison;
10988
        }
420 ashish 10989
      }
3430 rajveer 10990
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
420 ashish 10991
      if (lastComparison != 0) {
10992
        return lastComparison;
10993
      }
3430 rajveer 10994
      if (isSetGatewayPaymentId()) {
10995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
10996
        if (lastComparison != 0) {
10997
          return lastComparison;
10998
        }
420 ashish 10999
      }
3430 rajveer 11000
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
420 ashish 11001
      if (lastComparison != 0) {
11002
        return lastComparison;
11003
      }
3430 rajveer 11004
      if (isSetSessionId()) {
11005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
11006
        if (lastComparison != 0) {
11007
          return lastComparison;
11008
        }
420 ashish 11009
      }
3430 rajveer 11010
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
420 ashish 11011
      if (lastComparison != 0) {
11012
        return lastComparison;
11013
      }
3430 rajveer 11014
      if (isSetGatewayTxnStatus()) {
11015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
11016
        if (lastComparison != 0) {
11017
          return lastComparison;
11018
        }
420 ashish 11019
      }
3430 rajveer 11020
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
420 ashish 11021
      if (lastComparison != 0) {
11022
        return lastComparison;
11023
      }
3430 rajveer 11024
      if (isSetDescription()) {
11025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
11026
        if (lastComparison != 0) {
11027
          return lastComparison;
11028
        }
420 ashish 11029
      }
3430 rajveer 11030
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
420 ashish 11031
      if (lastComparison != 0) {
11032
        return lastComparison;
11033
      }
3430 rajveer 11034
      if (isSetGatewayTxnId()) {
11035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
11036
        if (lastComparison != 0) {
11037
          return lastComparison;
11038
        }
420 ashish 11039
      }
3430 rajveer 11040
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
420 ashish 11041
      if (lastComparison != 0) {
11042
        return lastComparison;
11043
      }
3430 rajveer 11044
      if (isSetAuthCode()) {
11045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
11046
        if (lastComparison != 0) {
11047
          return lastComparison;
11048
        }
420 ashish 11049
      }
3430 rajveer 11050
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
420 ashish 11051
      if (lastComparison != 0) {
11052
        return lastComparison;
11053
      }
3430 rajveer 11054
      if (isSetReferenceCode()) {
11055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
11056
        if (lastComparison != 0) {
11057
          return lastComparison;
11058
        }
420 ashish 11059
      }
3430 rajveer 11060
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
695 rajveer 11061
      if (lastComparison != 0) {
11062
        return lastComparison;
11063
      }
3430 rajveer 11064
      if (isSetErrorCode()) {
11065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
11066
        if (lastComparison != 0) {
11067
          return lastComparison;
11068
        }
695 rajveer 11069
      }
3430 rajveer 11070
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
695 rajveer 11071
      if (lastComparison != 0) {
11072
        return lastComparison;
11073
      }
3430 rajveer 11074
      if (isSetStatus()) {
11075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
11076
        if (lastComparison != 0) {
11077
          return lastComparison;
11078
        }
695 rajveer 11079
      }
3430 rajveer 11080
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1119 rajveer 11081
      if (lastComparison != 0) {
11082
        return lastComparison;
11083
      }
3430 rajveer 11084
      if (isSetGatewayTxnDate()) {
11085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
11086
        if (lastComparison != 0) {
11087
          return lastComparison;
11088
        }
1119 rajveer 11089
      }
3430 rajveer 11090
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
695 rajveer 11091
      if (lastComparison != 0) {
11092
        return lastComparison;
11093
      }
3430 rajveer 11094
      if (isSetAttributes()) {
11095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
11096
        if (lastComparison != 0) {
11097
          return lastComparison;
11098
        }
695 rajveer 11099
      }
420 ashish 11100
      return 0;
11101
    }
11102
 
3430 rajveer 11103
    public _Fields fieldForId(int fieldId) {
11104
      return _Fields.findByThriftId(fieldId);
11105
    }
11106
 
11107
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11108
      org.apache.thrift.protocol.TField field;
420 ashish 11109
      iprot.readStructBegin();
11110
      while (true)
11111
      {
11112
        field = iprot.readFieldBegin();
3430 rajveer 11113
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 11114
          break;
11115
        }
3430 rajveer 11116
        switch (field.id) {
11117
          case 1: // ID
11118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11119
              this.id = iprot.readI64();
11120
              setIdIsSet(true);
11121
            } else { 
11122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11123
            }
11124
            break;
11125
          case 2: // GATEWAY_PAYMENT_ID
11126
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11127
              this.gatewayPaymentId = iprot.readString();
11128
            } else { 
11129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11130
            }
11131
            break;
11132
          case 3: // SESSION_ID
11133
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11134
              this.sessionId = iprot.readString();
11135
            } else { 
11136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11137
            }
11138
            break;
11139
          case 4: // GATEWAY_TXN_STATUS
11140
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11141
              this.gatewayTxnStatus = iprot.readString();
11142
            } else { 
11143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11144
            }
11145
            break;
11146
          case 5: // DESCRIPTION
11147
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11148
              this.description = iprot.readString();
11149
            } else { 
11150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11151
            }
11152
            break;
11153
          case 6: // GATEWAY_TXN_ID
11154
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11155
              this.gatewayTxnId = iprot.readString();
11156
            } else { 
11157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11158
            }
11159
            break;
11160
          case 7: // AUTH_CODE
11161
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11162
              this.authCode = iprot.readString();
11163
            } else { 
11164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11165
            }
11166
            break;
11167
          case 8: // REFERENCE_CODE
11168
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11169
              this.referenceCode = iprot.readString();
11170
            } else { 
11171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11172
            }
11173
            break;
11174
          case 9: // ERROR_CODE
11175
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11176
              this.errorCode = iprot.readString();
11177
            } else { 
11178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11179
            }
11180
            break;
11181
          case 10: // STATUS
11182
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11183
              this.status = PaymentStatus.findByValue(iprot.readI32());
11184
            } else { 
11185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11186
            }
11187
            break;
11188
          case 11: // GATEWAY_TXN_DATE
11189
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11190
              this.gatewayTxnDate = iprot.readString();
11191
            } else { 
11192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11193
            }
11194
            break;
11195
          case 12: // ATTRIBUTES
11196
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11197
              {
7049 anupam.sin 11198
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
11199
                this.attributes = new ArrayList<Attribute>(_list36.size);
11200
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
695 rajveer 11201
                {
7049 anupam.sin 11202
                  Attribute _elem38; // required
11203
                  _elem38 = new Attribute();
11204
                  _elem38.read(iprot);
11205
                  this.attributes.add(_elem38);
695 rajveer 11206
                }
3430 rajveer 11207
                iprot.readListEnd();
695 rajveer 11208
              }
3430 rajveer 11209
            } else { 
11210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11211
            }
11212
            break;
11213
          default:
11214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 11215
        }
3430 rajveer 11216
        iprot.readFieldEnd();
420 ashish 11217
      }
11218
      iprot.readStructEnd();
11219
      validate();
11220
    }
11221
 
3430 rajveer 11222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 11223
      validate();
11224
 
11225
      oprot.writeStructBegin(STRUCT_DESC);
11226
      oprot.writeFieldBegin(ID_FIELD_DESC);
11227
      oprot.writeI64(this.id);
11228
      oprot.writeFieldEnd();
695 rajveer 11229
      if (this.gatewayPaymentId != null) {
11230
        oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
11231
        oprot.writeString(this.gatewayPaymentId);
420 ashish 11232
        oprot.writeFieldEnd();
11233
      }
695 rajveer 11234
      if (this.sessionId != null) {
11235
        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
11236
        oprot.writeString(this.sessionId);
420 ashish 11237
        oprot.writeFieldEnd();
11238
      }
695 rajveer 11239
      if (this.gatewayTxnStatus != null) {
11240
        oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
11241
        oprot.writeString(this.gatewayTxnStatus);
420 ashish 11242
        oprot.writeFieldEnd();
11243
      }
695 rajveer 11244
      if (this.description != null) {
11245
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
11246
        oprot.writeString(this.description);
420 ashish 11247
        oprot.writeFieldEnd();
11248
      }
695 rajveer 11249
      if (this.gatewayTxnId != null) {
11250
        oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
11251
        oprot.writeString(this.gatewayTxnId);
420 ashish 11252
        oprot.writeFieldEnd();
11253
      }
695 rajveer 11254
      if (this.authCode != null) {
420 ashish 11255
        oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
695 rajveer 11256
        oprot.writeString(this.authCode);
420 ashish 11257
        oprot.writeFieldEnd();
11258
      }
695 rajveer 11259
      if (this.referenceCode != null) {
11260
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
11261
        oprot.writeString(this.referenceCode);
420 ashish 11262
        oprot.writeFieldEnd();
11263
      }
695 rajveer 11264
      if (this.errorCode != null) {
11265
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
11266
        oprot.writeString(this.errorCode);
11267
        oprot.writeFieldEnd();
11268
      }
11269
      if (this.status != null) {
11270
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
11271
        oprot.writeI32(this.status.getValue());
11272
        oprot.writeFieldEnd();
11273
      }
1119 rajveer 11274
      if (this.gatewayTxnDate != null) {
11275
        oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
11276
        oprot.writeString(this.gatewayTxnDate);
11277
        oprot.writeFieldEnd();
11278
      }
695 rajveer 11279
      if (this.attributes != null) {
11280
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
11281
        {
3430 rajveer 11282
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
7049 anupam.sin 11283
          for (Attribute _iter39 : this.attributes)
695 rajveer 11284
          {
7049 anupam.sin 11285
            _iter39.write(oprot);
695 rajveer 11286
          }
11287
          oprot.writeListEnd();
11288
        }
11289
        oprot.writeFieldEnd();
11290
      }
420 ashish 11291
      oprot.writeFieldStop();
11292
      oprot.writeStructEnd();
11293
    }
11294
 
11295
    @Override
11296
    public String toString() {
695 rajveer 11297
      StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
420 ashish 11298
      boolean first = true;
11299
 
11300
      sb.append("id:");
11301
      sb.append(this.id);
11302
      first = false;
11303
      if (!first) sb.append(", ");
695 rajveer 11304
      sb.append("gatewayPaymentId:");
11305
      if (this.gatewayPaymentId == null) {
420 ashish 11306
        sb.append("null");
11307
      } else {
695 rajveer 11308
        sb.append(this.gatewayPaymentId);
420 ashish 11309
      }
11310
      first = false;
11311
      if (!first) sb.append(", ");
695 rajveer 11312
      sb.append("sessionId:");
11313
      if (this.sessionId == null) {
420 ashish 11314
        sb.append("null");
11315
      } else {
695 rajveer 11316
        sb.append(this.sessionId);
420 ashish 11317
      }
11318
      first = false;
11319
      if (!first) sb.append(", ");
695 rajveer 11320
      sb.append("gatewayTxnStatus:");
11321
      if (this.gatewayTxnStatus == null) {
420 ashish 11322
        sb.append("null");
11323
      } else {
695 rajveer 11324
        sb.append(this.gatewayTxnStatus);
420 ashish 11325
      }
11326
      first = false;
11327
      if (!first) sb.append(", ");
695 rajveer 11328
      sb.append("description:");
11329
      if (this.description == null) {
420 ashish 11330
        sb.append("null");
11331
      } else {
695 rajveer 11332
        sb.append(this.description);
420 ashish 11333
      }
11334
      first = false;
11335
      if (!first) sb.append(", ");
695 rajveer 11336
      sb.append("gatewayTxnId:");
11337
      if (this.gatewayTxnId == null) {
420 ashish 11338
        sb.append("null");
11339
      } else {
695 rajveer 11340
        sb.append(this.gatewayTxnId);
420 ashish 11341
      }
11342
      first = false;
11343
      if (!first) sb.append(", ");
695 rajveer 11344
      sb.append("authCode:");
11345
      if (this.authCode == null) {
420 ashish 11346
        sb.append("null");
11347
      } else {
695 rajveer 11348
        sb.append(this.authCode);
420 ashish 11349
      }
11350
      first = false;
11351
      if (!first) sb.append(", ");
695 rajveer 11352
      sb.append("referenceCode:");
11353
      if (this.referenceCode == null) {
420 ashish 11354
        sb.append("null");
11355
      } else {
695 rajveer 11356
        sb.append(this.referenceCode);
420 ashish 11357
      }
11358
      first = false;
695 rajveer 11359
      if (!first) sb.append(", ");
11360
      sb.append("errorCode:");
11361
      if (this.errorCode == null) {
11362
        sb.append("null");
11363
      } else {
11364
        sb.append(this.errorCode);
11365
      }
11366
      first = false;
11367
      if (!first) sb.append(", ");
11368
      sb.append("status:");
11369
      if (this.status == null) {
11370
        sb.append("null");
11371
      } else {
11372
        sb.append(this.status);
11373
      }
11374
      first = false;
11375
      if (!first) sb.append(", ");
1119 rajveer 11376
      sb.append("gatewayTxnDate:");
11377
      if (this.gatewayTxnDate == null) {
11378
        sb.append("null");
11379
      } else {
11380
        sb.append(this.gatewayTxnDate);
11381
      }
11382
      first = false;
11383
      if (!first) sb.append(", ");
695 rajveer 11384
      sb.append("attributes:");
11385
      if (this.attributes == null) {
11386
        sb.append("null");
11387
      } else {
11388
        sb.append(this.attributes);
11389
      }
11390
      first = false;
420 ashish 11391
      sb.append(")");
11392
      return sb.toString();
11393
    }
11394
 
3430 rajveer 11395
    public void validate() throws org.apache.thrift.TException {
420 ashish 11396
      // check for required fields
11397
    }
11398
 
3430 rajveer 11399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11400
      try {
11401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11402
      } catch (org.apache.thrift.TException te) {
11403
        throw new java.io.IOException(te);
11404
      }
11405
    }
11406
 
11407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11408
      try {
11409
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11410
        __isset_bit_vector = new BitSet(1);
11411
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11412
      } catch (org.apache.thrift.TException te) {
11413
        throw new java.io.IOException(te);
11414
      }
11415
    }
11416
 
420 ashish 11417
  }
11418
 
3430 rajveer 11419
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
11420
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
420 ashish 11421
 
3430 rajveer 11422
    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);
11423
    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 11424
 
3430 rajveer 11425
    private boolean success; // required
11426
    private PaymentException pe; // required
420 ashish 11427
 
11428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 11430
      SUCCESS((short)0, "success"),
420 ashish 11431
      PE((short)1, "pe");
11432
 
11433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11434
 
11435
      static {
11436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11437
          byName.put(field.getFieldName(), field);
11438
        }
11439
      }
11440
 
11441
      /**
11442
       * Find the _Fields constant that matches fieldId, or null if its not found.
11443
       */
11444
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11445
        switch(fieldId) {
11446
          case 0: // SUCCESS
11447
            return SUCCESS;
11448
          case 1: // PE
11449
            return PE;
11450
          default:
11451
            return null;
11452
        }
420 ashish 11453
      }
11454
 
11455
      /**
11456
       * Find the _Fields constant that matches fieldId, throwing an exception
11457
       * if it is not found.
11458
       */
11459
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11460
        _Fields fields = findByThriftId(fieldId);
11461
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11462
        return fields;
11463
      }
11464
 
11465
      /**
11466
       * Find the _Fields constant that matches name, or null if its not found.
11467
       */
11468
      public static _Fields findByName(String name) {
11469
        return byName.get(name);
11470
      }
11471
 
11472
      private final short _thriftId;
11473
      private final String _fieldName;
11474
 
11475
      _Fields(short thriftId, String fieldName) {
11476
        _thriftId = thriftId;
11477
        _fieldName = fieldName;
11478
      }
11479
 
11480
      public short getThriftFieldId() {
11481
        return _thriftId;
11482
      }
11483
 
11484
      public String getFieldName() {
11485
        return _fieldName;
11486
      }
11487
    }
11488
 
11489
    // isset id assignments
695 rajveer 11490
    private static final int __SUCCESS_ISSET_ID = 0;
11491
    private BitSet __isset_bit_vector = new BitSet(1);
420 ashish 11492
 
3430 rajveer 11493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 11494
    static {
3430 rajveer 11495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11496
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11497
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11498
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
420 ashish 11502
    }
11503
 
695 rajveer 11504
    public updatePaymentDetails_result() {
420 ashish 11505
    }
11506
 
695 rajveer 11507
    public updatePaymentDetails_result(
11508
      boolean success,
420 ashish 11509
      PaymentException pe)
11510
    {
11511
      this();
695 rajveer 11512
      this.success = success;
11513
      setSuccessIsSet(true);
420 ashish 11514
      this.pe = pe;
11515
    }
11516
 
11517
    /**
11518
     * Performs a deep copy on <i>other</i>.
11519
     */
695 rajveer 11520
    public updatePaymentDetails_result(updatePaymentDetails_result other) {
11521
      __isset_bit_vector.clear();
11522
      __isset_bit_vector.or(other.__isset_bit_vector);
11523
      this.success = other.success;
420 ashish 11524
      if (other.isSetPe()) {
11525
        this.pe = new PaymentException(other.pe);
11526
      }
11527
    }
11528
 
695 rajveer 11529
    public updatePaymentDetails_result deepCopy() {
11530
      return new updatePaymentDetails_result(this);
420 ashish 11531
    }
11532
 
3430 rajveer 11533
    @Override
11534
    public void clear() {
11535
      setSuccessIsSet(false);
11536
      this.success = false;
11537
      this.pe = null;
420 ashish 11538
    }
11539
 
695 rajveer 11540
    public boolean isSuccess() {
11541
      return this.success;
11542
    }
11543
 
3430 rajveer 11544
    public void setSuccess(boolean success) {
695 rajveer 11545
      this.success = success;
11546
      setSuccessIsSet(true);
11547
    }
11548
 
11549
    public void unsetSuccess() {
11550
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11551
    }
11552
 
3430 rajveer 11553
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
695 rajveer 11554
    public boolean isSetSuccess() {
11555
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11556
    }
11557
 
11558
    public void setSuccessIsSet(boolean value) {
11559
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11560
    }
11561
 
420 ashish 11562
    public PaymentException getPe() {
11563
      return this.pe;
11564
    }
11565
 
3430 rajveer 11566
    public void setPe(PaymentException pe) {
420 ashish 11567
      this.pe = pe;
11568
    }
11569
 
11570
    public void unsetPe() {
11571
      this.pe = null;
11572
    }
11573
 
3430 rajveer 11574
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 11575
    public boolean isSetPe() {
11576
      return this.pe != null;
11577
    }
11578
 
11579
    public void setPeIsSet(boolean value) {
11580
      if (!value) {
11581
        this.pe = null;
11582
      }
11583
    }
11584
 
11585
    public void setFieldValue(_Fields field, Object value) {
11586
      switch (field) {
695 rajveer 11587
      case SUCCESS:
11588
        if (value == null) {
11589
          unsetSuccess();
11590
        } else {
11591
          setSuccess((Boolean)value);
11592
        }
11593
        break;
11594
 
420 ashish 11595
      case PE:
11596
        if (value == null) {
11597
          unsetPe();
11598
        } else {
11599
          setPe((PaymentException)value);
11600
        }
11601
        break;
11602
 
11603
      }
11604
    }
11605
 
11606
    public Object getFieldValue(_Fields field) {
11607
      switch (field) {
695 rajveer 11608
      case SUCCESS:
3430 rajveer 11609
        return Boolean.valueOf(isSuccess());
695 rajveer 11610
 
420 ashish 11611
      case PE:
11612
        return getPe();
11613
 
11614
      }
11615
      throw new IllegalStateException();
11616
    }
11617
 
3430 rajveer 11618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11619
    public boolean isSet(_Fields field) {
11620
      if (field == null) {
11621
        throw new IllegalArgumentException();
11622
      }
420 ashish 11623
 
11624
      switch (field) {
695 rajveer 11625
      case SUCCESS:
11626
        return isSetSuccess();
420 ashish 11627
      case PE:
11628
        return isSetPe();
11629
      }
11630
      throw new IllegalStateException();
11631
    }
11632
 
11633
    @Override
11634
    public boolean equals(Object that) {
11635
      if (that == null)
11636
        return false;
695 rajveer 11637
      if (that instanceof updatePaymentDetails_result)
11638
        return this.equals((updatePaymentDetails_result)that);
420 ashish 11639
      return false;
11640
    }
11641
 
695 rajveer 11642
    public boolean equals(updatePaymentDetails_result that) {
420 ashish 11643
      if (that == null)
11644
        return false;
11645
 
695 rajveer 11646
      boolean this_present_success = true;
11647
      boolean that_present_success = true;
11648
      if (this_present_success || that_present_success) {
11649
        if (!(this_present_success && that_present_success))
11650
          return false;
11651
        if (this.success != that.success)
11652
          return false;
11653
      }
11654
 
420 ashish 11655
      boolean this_present_pe = true && this.isSetPe();
11656
      boolean that_present_pe = true && that.isSetPe();
11657
      if (this_present_pe || that_present_pe) {
11658
        if (!(this_present_pe && that_present_pe))
11659
          return false;
11660
        if (!this.pe.equals(that.pe))
11661
          return false;
11662
      }
11663
 
11664
      return true;
11665
    }
11666
 
11667
    @Override
11668
    public int hashCode() {
11669
      return 0;
11670
    }
11671
 
695 rajveer 11672
    public int compareTo(updatePaymentDetails_result other) {
420 ashish 11673
      if (!getClass().equals(other.getClass())) {
11674
        return getClass().getName().compareTo(other.getClass().getName());
11675
      }
11676
 
11677
      int lastComparison = 0;
695 rajveer 11678
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
420 ashish 11679
 
3430 rajveer 11680
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 11681
      if (lastComparison != 0) {
11682
        return lastComparison;
11683
      }
3430 rajveer 11684
      if (isSetSuccess()) {
11685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11686
        if (lastComparison != 0) {
11687
          return lastComparison;
11688
        }
695 rajveer 11689
      }
3430 rajveer 11690
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 11691
      if (lastComparison != 0) {
11692
        return lastComparison;
11693
      }
3430 rajveer 11694
      if (isSetPe()) {
11695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
11696
        if (lastComparison != 0) {
11697
          return lastComparison;
11698
        }
420 ashish 11699
      }
11700
      return 0;
11701
    }
11702
 
3430 rajveer 11703
    public _Fields fieldForId(int fieldId) {
11704
      return _Fields.findByThriftId(fieldId);
11705
    }
11706
 
11707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11708
      org.apache.thrift.protocol.TField field;
420 ashish 11709
      iprot.readStructBegin();
11710
      while (true)
11711
      {
11712
        field = iprot.readFieldBegin();
3430 rajveer 11713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 11714
          break;
11715
        }
3430 rajveer 11716
        switch (field.id) {
11717
          case 0: // SUCCESS
11718
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11719
              this.success = iprot.readBool();
11720
              setSuccessIsSet(true);
11721
            } else { 
11722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11723
            }
11724
            break;
11725
          case 1: // PE
11726
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11727
              this.pe = new PaymentException();
11728
              this.pe.read(iprot);
11729
            } else { 
11730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11731
            }
11732
            break;
11733
          default:
11734
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 11735
        }
3430 rajveer 11736
        iprot.readFieldEnd();
420 ashish 11737
      }
11738
      iprot.readStructEnd();
11739
      validate();
11740
    }
11741
 
3430 rajveer 11742
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 11743
      oprot.writeStructBegin(STRUCT_DESC);
11744
 
695 rajveer 11745
      if (this.isSetSuccess()) {
11746
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11747
        oprot.writeBool(this.success);
11748
        oprot.writeFieldEnd();
11749
      } else if (this.isSetPe()) {
420 ashish 11750
        oprot.writeFieldBegin(PE_FIELD_DESC);
11751
        this.pe.write(oprot);
11752
        oprot.writeFieldEnd();
11753
      }
11754
      oprot.writeFieldStop();
11755
      oprot.writeStructEnd();
11756
    }
11757
 
11758
    @Override
11759
    public String toString() {
695 rajveer 11760
      StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
420 ashish 11761
      boolean first = true;
11762
 
695 rajveer 11763
      sb.append("success:");
11764
      sb.append(this.success);
11765
      first = false;
11766
      if (!first) sb.append(", ");
420 ashish 11767
      sb.append("pe:");
11768
      if (this.pe == null) {
11769
        sb.append("null");
11770
      } else {
11771
        sb.append(this.pe);
11772
      }
11773
      first = false;
11774
      sb.append(")");
11775
      return sb.toString();
11776
    }
11777
 
3430 rajveer 11778
    public void validate() throws org.apache.thrift.TException {
420 ashish 11779
      // check for required fields
11780
    }
11781
 
3430 rajveer 11782
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11783
      try {
11784
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11785
      } catch (org.apache.thrift.TException te) {
11786
        throw new java.io.IOException(te);
11787
      }
11788
    }
11789
 
11790
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11791
      try {
11792
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11793
      } catch (org.apache.thrift.TException te) {
11794
        throw new java.io.IOException(te);
11795
      }
11796
    }
11797
 
420 ashish 11798
  }
11799
 
3430 rajveer 11800
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
11801
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
1629 ankur.sing 11802
 
11803
 
11804
 
11805
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11806
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 11807
;
11808
 
11809
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11810
 
11811
      static {
11812
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11813
          byName.put(field.getFieldName(), field);
11814
        }
11815
      }
11816
 
11817
      /**
11818
       * Find the _Fields constant that matches fieldId, or null if its not found.
11819
       */
11820
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11821
        switch(fieldId) {
11822
          default:
11823
            return null;
11824
        }
1629 ankur.sing 11825
      }
11826
 
11827
      /**
11828
       * Find the _Fields constant that matches fieldId, throwing an exception
11829
       * if it is not found.
11830
       */
11831
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11832
        _Fields fields = findByThriftId(fieldId);
11833
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11834
        return fields;
11835
      }
11836
 
11837
      /**
11838
       * Find the _Fields constant that matches name, or null if its not found.
11839
       */
11840
      public static _Fields findByName(String name) {
11841
        return byName.get(name);
11842
      }
11843
 
11844
      private final short _thriftId;
11845
      private final String _fieldName;
11846
 
11847
      _Fields(short thriftId, String fieldName) {
11848
        _thriftId = thriftId;
11849
        _fieldName = fieldName;
11850
      }
11851
 
11852
      public short getThriftFieldId() {
11853
        return _thriftId;
11854
      }
11855
 
11856
      public String getFieldName() {
11857
        return _fieldName;
11858
      }
11859
    }
3430 rajveer 11860
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 11861
    static {
3430 rajveer 11862
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11863
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11864
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
1629 ankur.sing 11865
    }
11866
 
1731 ankur.sing 11867
    public getSuccessfulPaymentsAmountRange_args() {
1629 ankur.sing 11868
    }
11869
 
11870
    /**
11871
     * Performs a deep copy on <i>other</i>.
11872
     */
1731 ankur.sing 11873
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 11874
    }
11875
 
1731 ankur.sing 11876
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
11877
      return new getSuccessfulPaymentsAmountRange_args(this);
1629 ankur.sing 11878
    }
11879
 
3430 rajveer 11880
    @Override
11881
    public void clear() {
1629 ankur.sing 11882
    }
11883
 
11884
    public void setFieldValue(_Fields field, Object value) {
11885
      switch (field) {
11886
      }
11887
    }
11888
 
11889
    public Object getFieldValue(_Fields field) {
11890
      switch (field) {
11891
      }
11892
      throw new IllegalStateException();
11893
    }
11894
 
3430 rajveer 11895
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11896
    public boolean isSet(_Fields field) {
11897
      if (field == null) {
11898
        throw new IllegalArgumentException();
11899
      }
1629 ankur.sing 11900
 
11901
      switch (field) {
11902
      }
11903
      throw new IllegalStateException();
11904
    }
11905
 
11906
    @Override
11907
    public boolean equals(Object that) {
11908
      if (that == null)
11909
        return false;
1731 ankur.sing 11910
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
11911
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
1629 ankur.sing 11912
      return false;
11913
    }
11914
 
1731 ankur.sing 11915
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
1629 ankur.sing 11916
      if (that == null)
11917
        return false;
11918
 
11919
      return true;
11920
    }
11921
 
11922
    @Override
11923
    public int hashCode() {
11924
      return 0;
11925
    }
11926
 
1731 ankur.sing 11927
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 11928
      if (!getClass().equals(other.getClass())) {
11929
        return getClass().getName().compareTo(other.getClass().getName());
11930
      }
11931
 
11932
      int lastComparison = 0;
1731 ankur.sing 11933
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
1629 ankur.sing 11934
 
11935
      return 0;
11936
    }
11937
 
3430 rajveer 11938
    public _Fields fieldForId(int fieldId) {
11939
      return _Fields.findByThriftId(fieldId);
11940
    }
11941
 
11942
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11943
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 11944
      iprot.readStructBegin();
11945
      while (true)
11946
      {
11947
        field = iprot.readFieldBegin();
3430 rajveer 11948
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 11949
          break;
11950
        }
3430 rajveer 11951
        switch (field.id) {
11952
          default:
11953
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 11954
        }
3430 rajveer 11955
        iprot.readFieldEnd();
1629 ankur.sing 11956
      }
11957
      iprot.readStructEnd();
11958
      validate();
11959
    }
11960
 
3430 rajveer 11961
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 11962
      validate();
11963
 
11964
      oprot.writeStructBegin(STRUCT_DESC);
11965
      oprot.writeFieldStop();
11966
      oprot.writeStructEnd();
11967
    }
11968
 
11969
    @Override
11970
    public String toString() {
1731 ankur.sing 11971
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
1629 ankur.sing 11972
      boolean first = true;
11973
 
11974
      sb.append(")");
11975
      return sb.toString();
11976
    }
11977
 
3430 rajveer 11978
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 11979
      // check for required fields
11980
    }
11981
 
3430 rajveer 11982
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11983
      try {
11984
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11985
      } catch (org.apache.thrift.TException te) {
11986
        throw new java.io.IOException(te);
11987
      }
11988
    }
11989
 
11990
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11991
      try {
11992
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11993
      } catch (org.apache.thrift.TException te) {
11994
        throw new java.io.IOException(te);
11995
      }
11996
    }
11997
 
1629 ankur.sing 11998
  }
11999
 
3430 rajveer 12000
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
12001
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
1629 ankur.sing 12002
 
3430 rajveer 12003
    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 12004
 
3430 rajveer 12005
    private List<Double> success; // required
1629 ankur.sing 12006
 
12007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12008
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 12009
      SUCCESS((short)0, "success");
12010
 
12011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12012
 
12013
      static {
12014
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12015
          byName.put(field.getFieldName(), field);
12016
        }
12017
      }
12018
 
12019
      /**
12020
       * Find the _Fields constant that matches fieldId, or null if its not found.
12021
       */
12022
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12023
        switch(fieldId) {
12024
          case 0: // SUCCESS
12025
            return SUCCESS;
12026
          default:
12027
            return null;
12028
        }
1629 ankur.sing 12029
      }
12030
 
12031
      /**
12032
       * Find the _Fields constant that matches fieldId, throwing an exception
12033
       * if it is not found.
12034
       */
12035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12036
        _Fields fields = findByThriftId(fieldId);
12037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12038
        return fields;
12039
      }
12040
 
12041
      /**
12042
       * Find the _Fields constant that matches name, or null if its not found.
12043
       */
12044
      public static _Fields findByName(String name) {
12045
        return byName.get(name);
12046
      }
12047
 
12048
      private final short _thriftId;
12049
      private final String _fieldName;
12050
 
12051
      _Fields(short thriftId, String fieldName) {
12052
        _thriftId = thriftId;
12053
        _fieldName = fieldName;
12054
      }
12055
 
12056
      public short getThriftFieldId() {
12057
        return _thriftId;
12058
      }
12059
 
12060
      public String getFieldName() {
12061
        return _fieldName;
12062
      }
12063
    }
12064
 
12065
    // isset id assignments
12066
 
3430 rajveer 12067
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 12068
    static {
3430 rajveer 12069
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12070
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12071
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12072
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
12073
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12074
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
1629 ankur.sing 12075
    }
12076
 
1731 ankur.sing 12077
    public getSuccessfulPaymentsAmountRange_result() {
1629 ankur.sing 12078
    }
12079
 
1731 ankur.sing 12080
    public getSuccessfulPaymentsAmountRange_result(
12081
      List<Double> success)
1629 ankur.sing 12082
    {
12083
      this();
12084
      this.success = success;
12085
    }
12086
 
12087
    /**
12088
     * Performs a deep copy on <i>other</i>.
12089
     */
1731 ankur.sing 12090
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
12091
      if (other.isSetSuccess()) {
12092
        List<Double> __this__success = new ArrayList<Double>();
12093
        for (Double other_element : other.success) {
12094
          __this__success.add(other_element);
1629 ankur.sing 12095
        }
1731 ankur.sing 12096
        this.success = __this__success;
1629 ankur.sing 12097
      }
12098
    }
12099
 
1731 ankur.sing 12100
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
12101
      return new getSuccessfulPaymentsAmountRange_result(this);
1629 ankur.sing 12102
    }
12103
 
3430 rajveer 12104
    @Override
12105
    public void clear() {
12106
      this.success = null;
1629 ankur.sing 12107
    }
12108
 
1731 ankur.sing 12109
    public int getSuccessSize() {
12110
      return (this.success == null) ? 0 : this.success.size();
1629 ankur.sing 12111
    }
12112
 
1731 ankur.sing 12113
    public java.util.Iterator<Double> getSuccessIterator() {
12114
      return (this.success == null) ? null : this.success.iterator();
1629 ankur.sing 12115
    }
12116
 
1731 ankur.sing 12117
    public void addToSuccess(double elem) {
12118
      if (this.success == null) {
12119
        this.success = new ArrayList<Double>();
1629 ankur.sing 12120
      }
1731 ankur.sing 12121
      this.success.add(elem);
1629 ankur.sing 12122
    }
12123
 
1731 ankur.sing 12124
    public List<Double> getSuccess() {
1629 ankur.sing 12125
      return this.success;
12126
    }
12127
 
3430 rajveer 12128
    public void setSuccess(List<Double> success) {
1629 ankur.sing 12129
      this.success = success;
12130
    }
12131
 
12132
    public void unsetSuccess() {
1731 ankur.sing 12133
      this.success = null;
1629 ankur.sing 12134
    }
12135
 
3430 rajveer 12136
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1629 ankur.sing 12137
    public boolean isSetSuccess() {
1731 ankur.sing 12138
      return this.success != null;
1629 ankur.sing 12139
    }
12140
 
12141
    public void setSuccessIsSet(boolean value) {
1731 ankur.sing 12142
      if (!value) {
12143
        this.success = null;
12144
      }
1629 ankur.sing 12145
    }
12146
 
12147
    public void setFieldValue(_Fields field, Object value) {
12148
      switch (field) {
12149
      case SUCCESS:
12150
        if (value == null) {
12151
          unsetSuccess();
12152
        } else {
1731 ankur.sing 12153
          setSuccess((List<Double>)value);
1629 ankur.sing 12154
        }
12155
        break;
12156
 
12157
      }
12158
    }
12159
 
12160
    public Object getFieldValue(_Fields field) {
12161
      switch (field) {
12162
      case SUCCESS:
1731 ankur.sing 12163
        return getSuccess();
1629 ankur.sing 12164
 
12165
      }
12166
      throw new IllegalStateException();
12167
    }
12168
 
3430 rajveer 12169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12170
    public boolean isSet(_Fields field) {
12171
      if (field == null) {
12172
        throw new IllegalArgumentException();
12173
      }
1629 ankur.sing 12174
 
12175
      switch (field) {
12176
      case SUCCESS:
12177
        return isSetSuccess();
12178
      }
12179
      throw new IllegalStateException();
12180
    }
12181
 
12182
    @Override
12183
    public boolean equals(Object that) {
12184
      if (that == null)
12185
        return false;
1731 ankur.sing 12186
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
12187
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
1629 ankur.sing 12188
      return false;
12189
    }
12190
 
1731 ankur.sing 12191
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
1629 ankur.sing 12192
      if (that == null)
12193
        return false;
12194
 
1731 ankur.sing 12195
      boolean this_present_success = true && this.isSetSuccess();
12196
      boolean that_present_success = true && that.isSetSuccess();
1629 ankur.sing 12197
      if (this_present_success || that_present_success) {
12198
        if (!(this_present_success && that_present_success))
12199
          return false;
1731 ankur.sing 12200
        if (!this.success.equals(that.success))
1629 ankur.sing 12201
          return false;
12202
      }
12203
 
12204
      return true;
12205
    }
12206
 
12207
    @Override
12208
    public int hashCode() {
12209
      return 0;
12210
    }
12211
 
1731 ankur.sing 12212
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
1629 ankur.sing 12213
      if (!getClass().equals(other.getClass())) {
12214
        return getClass().getName().compareTo(other.getClass().getName());
12215
      }
12216
 
12217
      int lastComparison = 0;
1731 ankur.sing 12218
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
1629 ankur.sing 12219
 
3430 rajveer 12220
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1629 ankur.sing 12221
      if (lastComparison != 0) {
12222
        return lastComparison;
12223
      }
3430 rajveer 12224
      if (isSetSuccess()) {
12225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12226
        if (lastComparison != 0) {
12227
          return lastComparison;
12228
        }
1629 ankur.sing 12229
      }
12230
      return 0;
12231
    }
12232
 
3430 rajveer 12233
    public _Fields fieldForId(int fieldId) {
12234
      return _Fields.findByThriftId(fieldId);
12235
    }
12236
 
12237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12238
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 12239
      iprot.readStructBegin();
12240
      while (true)
12241
      {
12242
        field = iprot.readFieldBegin();
3430 rajveer 12243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 12244
          break;
12245
        }
3430 rajveer 12246
        switch (field.id) {
12247
          case 0: // SUCCESS
12248
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12249
              {
7049 anupam.sin 12250
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
12251
                this.success = new ArrayList<Double>(_list40.size);
12252
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1731 ankur.sing 12253
                {
7049 anupam.sin 12254
                  double _elem42; // required
12255
                  _elem42 = iprot.readDouble();
12256
                  this.success.add(_elem42);
1731 ankur.sing 12257
                }
3430 rajveer 12258
                iprot.readListEnd();
1629 ankur.sing 12259
              }
3430 rajveer 12260
            } else { 
12261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12262
            }
12263
            break;
12264
          default:
12265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 12266
        }
3430 rajveer 12267
        iprot.readFieldEnd();
1629 ankur.sing 12268
      }
12269
      iprot.readStructEnd();
12270
      validate();
12271
    }
12272
 
3430 rajveer 12273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 12274
      oprot.writeStructBegin(STRUCT_DESC);
12275
 
12276
      if (this.isSetSuccess()) {
12277
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1731 ankur.sing 12278
        {
3430 rajveer 12279
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
7049 anupam.sin 12280
          for (double _iter43 : this.success)
1731 ankur.sing 12281
          {
7049 anupam.sin 12282
            oprot.writeDouble(_iter43);
1731 ankur.sing 12283
          }
12284
          oprot.writeListEnd();
12285
        }
1629 ankur.sing 12286
        oprot.writeFieldEnd();
12287
      }
12288
      oprot.writeFieldStop();
12289
      oprot.writeStructEnd();
12290
    }
12291
 
12292
    @Override
12293
    public String toString() {
1731 ankur.sing 12294
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
1629 ankur.sing 12295
      boolean first = true;
12296
 
12297
      sb.append("success:");
1731 ankur.sing 12298
      if (this.success == null) {
12299
        sb.append("null");
12300
      } else {
12301
        sb.append(this.success);
12302
      }
1629 ankur.sing 12303
      first = false;
12304
      sb.append(")");
12305
      return sb.toString();
12306
    }
12307
 
3430 rajveer 12308
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 12309
      // check for required fields
12310
    }
12311
 
3430 rajveer 12312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12313
      try {
12314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12315
      } catch (org.apache.thrift.TException te) {
12316
        throw new java.io.IOException(te);
12317
      }
12318
    }
12319
 
12320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12321
      try {
12322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12323
      } catch (org.apache.thrift.TException te) {
12324
        throw new java.io.IOException(te);
12325
      }
12326
    }
12327
 
1629 ankur.sing 12328
  }
12329
 
3430 rajveer 12330
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
12331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
2462 chandransh 12332
 
3430 rajveer 12333
    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 12334
 
3430 rajveer 12335
    private long merchantPaymentId; // required
2462 chandransh 12336
 
12337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12338
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 12339
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
12340
 
12341
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12342
 
12343
      static {
12344
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12345
          byName.put(field.getFieldName(), field);
12346
        }
12347
      }
12348
 
12349
      /**
12350
       * Find the _Fields constant that matches fieldId, or null if its not found.
12351
       */
12352
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12353
        switch(fieldId) {
12354
          case 1: // MERCHANT_PAYMENT_ID
12355
            return MERCHANT_PAYMENT_ID;
12356
          default:
12357
            return null;
12358
        }
2462 chandransh 12359
      }
12360
 
12361
      /**
12362
       * Find the _Fields constant that matches fieldId, throwing an exception
12363
       * if it is not found.
12364
       */
12365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12366
        _Fields fields = findByThriftId(fieldId);
12367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12368
        return fields;
12369
      }
12370
 
12371
      /**
12372
       * Find the _Fields constant that matches name, or null if its not found.
12373
       */
12374
      public static _Fields findByName(String name) {
12375
        return byName.get(name);
12376
      }
12377
 
12378
      private final short _thriftId;
12379
      private final String _fieldName;
12380
 
12381
      _Fields(short thriftId, String fieldName) {
12382
        _thriftId = thriftId;
12383
        _fieldName = fieldName;
12384
      }
12385
 
12386
      public short getThriftFieldId() {
12387
        return _thriftId;
12388
      }
12389
 
12390
      public String getFieldName() {
12391
        return _fieldName;
12392
      }
12393
    }
12394
 
12395
    // isset id assignments
12396
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
12397
    private BitSet __isset_bit_vector = new BitSet(1);
12398
 
3430 rajveer 12399
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 12400
    static {
3430 rajveer 12401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12402
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12404
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12405
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
2462 chandransh 12406
    }
12407
 
3010 chandransh 12408
    public initializeHdfcPayment_args() {
2462 chandransh 12409
    }
12410
 
3010 chandransh 12411
    public initializeHdfcPayment_args(
2462 chandransh 12412
      long merchantPaymentId)
12413
    {
12414
      this();
12415
      this.merchantPaymentId = merchantPaymentId;
12416
      setMerchantPaymentIdIsSet(true);
12417
    }
12418
 
12419
    /**
12420
     * Performs a deep copy on <i>other</i>.
12421
     */
3010 chandransh 12422
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
2462 chandransh 12423
      __isset_bit_vector.clear();
12424
      __isset_bit_vector.or(other.__isset_bit_vector);
12425
      this.merchantPaymentId = other.merchantPaymentId;
12426
    }
12427
 
3010 chandransh 12428
    public initializeHdfcPayment_args deepCopy() {
12429
      return new initializeHdfcPayment_args(this);
2462 chandransh 12430
    }
12431
 
3430 rajveer 12432
    @Override
12433
    public void clear() {
12434
      setMerchantPaymentIdIsSet(false);
12435
      this.merchantPaymentId = 0;
2462 chandransh 12436
    }
12437
 
12438
    public long getMerchantPaymentId() {
12439
      return this.merchantPaymentId;
12440
    }
12441
 
3430 rajveer 12442
    public void setMerchantPaymentId(long merchantPaymentId) {
2462 chandransh 12443
      this.merchantPaymentId = merchantPaymentId;
12444
      setMerchantPaymentIdIsSet(true);
12445
    }
12446
 
12447
    public void unsetMerchantPaymentId() {
12448
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
12449
    }
12450
 
3430 rajveer 12451
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
2462 chandransh 12452
    public boolean isSetMerchantPaymentId() {
12453
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
12454
    }
12455
 
12456
    public void setMerchantPaymentIdIsSet(boolean value) {
12457
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12458
    }
12459
 
12460
    public void setFieldValue(_Fields field, Object value) {
12461
      switch (field) {
12462
      case MERCHANT_PAYMENT_ID:
12463
        if (value == null) {
12464
          unsetMerchantPaymentId();
12465
        } else {
12466
          setMerchantPaymentId((Long)value);
12467
        }
12468
        break;
12469
 
12470
      }
12471
    }
12472
 
12473
    public Object getFieldValue(_Fields field) {
12474
      switch (field) {
12475
      case MERCHANT_PAYMENT_ID:
3430 rajveer 12476
        return Long.valueOf(getMerchantPaymentId());
2462 chandransh 12477
 
12478
      }
12479
      throw new IllegalStateException();
12480
    }
12481
 
3430 rajveer 12482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12483
    public boolean isSet(_Fields field) {
12484
      if (field == null) {
12485
        throw new IllegalArgumentException();
12486
      }
2462 chandransh 12487
 
12488
      switch (field) {
12489
      case MERCHANT_PAYMENT_ID:
12490
        return isSetMerchantPaymentId();
12491
      }
12492
      throw new IllegalStateException();
12493
    }
12494
 
12495
    @Override
12496
    public boolean equals(Object that) {
12497
      if (that == null)
12498
        return false;
3010 chandransh 12499
      if (that instanceof initializeHdfcPayment_args)
12500
        return this.equals((initializeHdfcPayment_args)that);
2462 chandransh 12501
      return false;
12502
    }
12503
 
3010 chandransh 12504
    public boolean equals(initializeHdfcPayment_args that) {
2462 chandransh 12505
      if (that == null)
12506
        return false;
12507
 
12508
      boolean this_present_merchantPaymentId = true;
12509
      boolean that_present_merchantPaymentId = true;
12510
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
12511
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
12512
          return false;
12513
        if (this.merchantPaymentId != that.merchantPaymentId)
12514
          return false;
12515
      }
12516
 
12517
      return true;
12518
    }
12519
 
12520
    @Override
12521
    public int hashCode() {
12522
      return 0;
12523
    }
12524
 
3010 chandransh 12525
    public int compareTo(initializeHdfcPayment_args other) {
2462 chandransh 12526
      if (!getClass().equals(other.getClass())) {
12527
        return getClass().getName().compareTo(other.getClass().getName());
12528
      }
12529
 
12530
      int lastComparison = 0;
3010 chandransh 12531
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
2462 chandransh 12532
 
3430 rajveer 12533
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
2462 chandransh 12534
      if (lastComparison != 0) {
12535
        return lastComparison;
12536
      }
3430 rajveer 12537
      if (isSetMerchantPaymentId()) {
12538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
12539
        if (lastComparison != 0) {
12540
          return lastComparison;
12541
        }
2462 chandransh 12542
      }
12543
      return 0;
12544
    }
12545
 
3430 rajveer 12546
    public _Fields fieldForId(int fieldId) {
12547
      return _Fields.findByThriftId(fieldId);
12548
    }
12549
 
12550
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12551
      org.apache.thrift.protocol.TField field;
2462 chandransh 12552
      iprot.readStructBegin();
12553
      while (true)
12554
      {
12555
        field = iprot.readFieldBegin();
3430 rajveer 12556
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 12557
          break;
12558
        }
3430 rajveer 12559
        switch (field.id) {
12560
          case 1: // MERCHANT_PAYMENT_ID
12561
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12562
              this.merchantPaymentId = iprot.readI64();
12563
              setMerchantPaymentIdIsSet(true);
12564
            } else { 
12565
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12566
            }
12567
            break;
12568
          default:
12569
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 12570
        }
3430 rajveer 12571
        iprot.readFieldEnd();
2462 chandransh 12572
      }
12573
      iprot.readStructEnd();
12574
      validate();
12575
    }
12576
 
3430 rajveer 12577
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 12578
      validate();
12579
 
12580
      oprot.writeStructBegin(STRUCT_DESC);
12581
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12582
      oprot.writeI64(this.merchantPaymentId);
12583
      oprot.writeFieldEnd();
12584
      oprot.writeFieldStop();
12585
      oprot.writeStructEnd();
12586
    }
12587
 
12588
    @Override
12589
    public String toString() {
3010 chandransh 12590
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
2462 chandransh 12591
      boolean first = true;
12592
 
12593
      sb.append("merchantPaymentId:");
12594
      sb.append(this.merchantPaymentId);
12595
      first = false;
12596
      sb.append(")");
12597
      return sb.toString();
12598
    }
12599
 
3430 rajveer 12600
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 12601
      // check for required fields
12602
    }
12603
 
3430 rajveer 12604
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12605
      try {
12606
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12607
      } catch (org.apache.thrift.TException te) {
12608
        throw new java.io.IOException(te);
12609
      }
12610
    }
12611
 
12612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12613
      try {
12614
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12615
      } catch (org.apache.thrift.TException te) {
12616
        throw new java.io.IOException(te);
12617
      }
12618
    }
12619
 
2462 chandransh 12620
  }
12621
 
3430 rajveer 12622
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
12623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
2462 chandransh 12624
 
3430 rajveer 12625
    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);
12626
    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 12627
 
3430 rajveer 12628
    private String success; // required
12629
    private PaymentException pe; // required
2462 chandransh 12630
 
12631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 12633
      SUCCESS((short)0, "success"),
12634
      PE((short)1, "pe");
12635
 
12636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12637
 
12638
      static {
12639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12640
          byName.put(field.getFieldName(), field);
12641
        }
12642
      }
12643
 
12644
      /**
12645
       * Find the _Fields constant that matches fieldId, or null if its not found.
12646
       */
12647
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12648
        switch(fieldId) {
12649
          case 0: // SUCCESS
12650
            return SUCCESS;
12651
          case 1: // PE
12652
            return PE;
12653
          default:
12654
            return null;
12655
        }
2462 chandransh 12656
      }
12657
 
12658
      /**
12659
       * Find the _Fields constant that matches fieldId, throwing an exception
12660
       * if it is not found.
12661
       */
12662
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12663
        _Fields fields = findByThriftId(fieldId);
12664
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12665
        return fields;
12666
      }
12667
 
12668
      /**
12669
       * Find the _Fields constant that matches name, or null if its not found.
12670
       */
12671
      public static _Fields findByName(String name) {
12672
        return byName.get(name);
12673
      }
12674
 
12675
      private final short _thriftId;
12676
      private final String _fieldName;
12677
 
12678
      _Fields(short thriftId, String fieldName) {
12679
        _thriftId = thriftId;
12680
        _fieldName = fieldName;
12681
      }
12682
 
12683
      public short getThriftFieldId() {
12684
        return _thriftId;
12685
      }
12686
 
12687
      public String getFieldName() {
12688
        return _fieldName;
12689
      }
12690
    }
12691
 
12692
    // isset id assignments
12693
 
3430 rajveer 12694
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 12695
    static {
3430 rajveer 12696
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12697
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12699
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12700
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
2462 chandransh 12703
    }
12704
 
3010 chandransh 12705
    public initializeHdfcPayment_result() {
2462 chandransh 12706
    }
12707
 
3010 chandransh 12708
    public initializeHdfcPayment_result(
12709
      String success,
2462 chandransh 12710
      PaymentException pe)
12711
    {
12712
      this();
12713
      this.success = success;
12714
      this.pe = pe;
12715
    }
12716
 
12717
    /**
12718
     * Performs a deep copy on <i>other</i>.
12719
     */
3010 chandransh 12720
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
2462 chandransh 12721
      if (other.isSetSuccess()) {
3010 chandransh 12722
        this.success = other.success;
2462 chandransh 12723
      }
12724
      if (other.isSetPe()) {
12725
        this.pe = new PaymentException(other.pe);
12726
      }
12727
    }
12728
 
3010 chandransh 12729
    public initializeHdfcPayment_result deepCopy() {
12730
      return new initializeHdfcPayment_result(this);
2462 chandransh 12731
    }
12732
 
3430 rajveer 12733
    @Override
12734
    public void clear() {
12735
      this.success = null;
12736
      this.pe = null;
2462 chandransh 12737
    }
12738
 
3010 chandransh 12739
    public String getSuccess() {
2462 chandransh 12740
      return this.success;
12741
    }
12742
 
3430 rajveer 12743
    public void setSuccess(String success) {
2462 chandransh 12744
      this.success = success;
12745
    }
12746
 
12747
    public void unsetSuccess() {
12748
      this.success = null;
12749
    }
12750
 
3430 rajveer 12751
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 12752
    public boolean isSetSuccess() {
12753
      return this.success != null;
12754
    }
12755
 
12756
    public void setSuccessIsSet(boolean value) {
12757
      if (!value) {
12758
        this.success = null;
12759
      }
12760
    }
12761
 
12762
    public PaymentException getPe() {
12763
      return this.pe;
12764
    }
12765
 
3430 rajveer 12766
    public void setPe(PaymentException pe) {
2462 chandransh 12767
      this.pe = pe;
12768
    }
12769
 
12770
    public void unsetPe() {
12771
      this.pe = null;
12772
    }
12773
 
3430 rajveer 12774
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 12775
    public boolean isSetPe() {
12776
      return this.pe != null;
12777
    }
12778
 
12779
    public void setPeIsSet(boolean value) {
12780
      if (!value) {
12781
        this.pe = null;
12782
      }
12783
    }
12784
 
12785
    public void setFieldValue(_Fields field, Object value) {
12786
      switch (field) {
12787
      case SUCCESS:
12788
        if (value == null) {
12789
          unsetSuccess();
12790
        } else {
3010 chandransh 12791
          setSuccess((String)value);
2462 chandransh 12792
        }
12793
        break;
12794
 
12795
      case PE:
12796
        if (value == null) {
12797
          unsetPe();
12798
        } else {
12799
          setPe((PaymentException)value);
12800
        }
12801
        break;
12802
 
12803
      }
12804
    }
12805
 
12806
    public Object getFieldValue(_Fields field) {
12807
      switch (field) {
12808
      case SUCCESS:
12809
        return getSuccess();
12810
 
12811
      case PE:
12812
        return getPe();
12813
 
12814
      }
12815
      throw new IllegalStateException();
12816
    }
12817
 
3430 rajveer 12818
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12819
    public boolean isSet(_Fields field) {
12820
      if (field == null) {
12821
        throw new IllegalArgumentException();
12822
      }
2462 chandransh 12823
 
12824
      switch (field) {
12825
      case SUCCESS:
12826
        return isSetSuccess();
12827
      case PE:
12828
        return isSetPe();
12829
      }
12830
      throw new IllegalStateException();
12831
    }
12832
 
12833
    @Override
12834
    public boolean equals(Object that) {
12835
      if (that == null)
12836
        return false;
3010 chandransh 12837
      if (that instanceof initializeHdfcPayment_result)
12838
        return this.equals((initializeHdfcPayment_result)that);
2462 chandransh 12839
      return false;
12840
    }
12841
 
3010 chandransh 12842
    public boolean equals(initializeHdfcPayment_result that) {
2462 chandransh 12843
      if (that == null)
12844
        return false;
12845
 
12846
      boolean this_present_success = true && this.isSetSuccess();
12847
      boolean that_present_success = true && that.isSetSuccess();
12848
      if (this_present_success || that_present_success) {
12849
        if (!(this_present_success && that_present_success))
12850
          return false;
12851
        if (!this.success.equals(that.success))
12852
          return false;
12853
      }
12854
 
12855
      boolean this_present_pe = true && this.isSetPe();
12856
      boolean that_present_pe = true && that.isSetPe();
12857
      if (this_present_pe || that_present_pe) {
12858
        if (!(this_present_pe && that_present_pe))
12859
          return false;
12860
        if (!this.pe.equals(that.pe))
12861
          return false;
12862
      }
12863
 
12864
      return true;
12865
    }
12866
 
12867
    @Override
12868
    public int hashCode() {
12869
      return 0;
12870
    }
12871
 
3010 chandransh 12872
    public int compareTo(initializeHdfcPayment_result other) {
12873
      if (!getClass().equals(other.getClass())) {
12874
        return getClass().getName().compareTo(other.getClass().getName());
12875
      }
12876
 
12877
      int lastComparison = 0;
12878
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
12879
 
3430 rajveer 12880
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3010 chandransh 12881
      if (lastComparison != 0) {
12882
        return lastComparison;
12883
      }
3430 rajveer 12884
      if (isSetSuccess()) {
12885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12886
        if (lastComparison != 0) {
12887
          return lastComparison;
12888
        }
3010 chandransh 12889
      }
3430 rajveer 12890
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3010 chandransh 12891
      if (lastComparison != 0) {
12892
        return lastComparison;
12893
      }
3430 rajveer 12894
      if (isSetPe()) {
12895
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
12896
        if (lastComparison != 0) {
12897
          return lastComparison;
12898
        }
3010 chandransh 12899
      }
12900
      return 0;
12901
    }
12902
 
3430 rajveer 12903
    public _Fields fieldForId(int fieldId) {
12904
      return _Fields.findByThriftId(fieldId);
12905
    }
12906
 
12907
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12908
      org.apache.thrift.protocol.TField field;
2462 chandransh 12909
      iprot.readStructBegin();
12910
      while (true)
12911
      {
12912
        field = iprot.readFieldBegin();
3430 rajveer 12913
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 12914
          break;
12915
        }
3430 rajveer 12916
        switch (field.id) {
12917
          case 0: // SUCCESS
12918
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12919
              this.success = iprot.readString();
12920
            } else { 
12921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12922
            }
12923
            break;
12924
          case 1: // PE
12925
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12926
              this.pe = new PaymentException();
12927
              this.pe.read(iprot);
12928
            } else { 
12929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12930
            }
12931
            break;
12932
          default:
12933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 12934
        }
3430 rajveer 12935
        iprot.readFieldEnd();
2462 chandransh 12936
      }
12937
      iprot.readStructEnd();
12938
      validate();
12939
    }
12940
 
3430 rajveer 12941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 12942
      oprot.writeStructBegin(STRUCT_DESC);
12943
 
12944
      if (this.isSetSuccess()) {
12945
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 12946
        oprot.writeString(this.success);
2462 chandransh 12947
        oprot.writeFieldEnd();
12948
      } else if (this.isSetPe()) {
12949
        oprot.writeFieldBegin(PE_FIELD_DESC);
12950
        this.pe.write(oprot);
12951
        oprot.writeFieldEnd();
12952
      }
12953
      oprot.writeFieldStop();
12954
      oprot.writeStructEnd();
12955
    }
12956
 
12957
    @Override
12958
    public String toString() {
3010 chandransh 12959
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
2462 chandransh 12960
      boolean first = true;
12961
 
12962
      sb.append("success:");
12963
      if (this.success == null) {
12964
        sb.append("null");
12965
      } else {
12966
        sb.append(this.success);
12967
      }
12968
      first = false;
12969
      if (!first) sb.append(", ");
12970
      sb.append("pe:");
12971
      if (this.pe == null) {
12972
        sb.append("null");
12973
      } else {
12974
        sb.append(this.pe);
12975
      }
12976
      first = false;
12977
      sb.append(")");
12978
      return sb.toString();
12979
    }
12980
 
3430 rajveer 12981
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 12982
      // check for required fields
12983
    }
12984
 
3430 rajveer 12985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12986
      try {
12987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12988
      } catch (org.apache.thrift.TException te) {
12989
        throw new java.io.IOException(te);
12990
      }
12991
    }
12992
 
12993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12994
      try {
12995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12996
      } catch (org.apache.thrift.TException te) {
12997
        throw new java.io.IOException(te);
12998
      }
12999
    }
13000
 
2462 chandransh 13001
  }
13002
 
6050 anupam.sin 13003
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
13004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
13005
 
13006
    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);
13007
    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 13008
    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 13009
 
13010
    private long merchantPaymentId; // required
13011
    private long rechargeOrderId; // required
6228 anupam.sin 13012
    private String phone; // required
6050 anupam.sin 13013
 
13014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13016
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
6228 anupam.sin 13017
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
13018
      PHONE((short)-1, "phone");
6050 anupam.sin 13019
 
13020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13021
 
13022
      static {
13023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13024
          byName.put(field.getFieldName(), field);
13025
        }
13026
      }
13027
 
13028
      /**
13029
       * Find the _Fields constant that matches fieldId, or null if its not found.
13030
       */
13031
      public static _Fields findByThriftId(int fieldId) {
13032
        switch(fieldId) {
13033
          case 1: // MERCHANT_PAYMENT_ID
13034
            return MERCHANT_PAYMENT_ID;
13035
          case 2: // RECHARGE_ORDER_ID
13036
            return RECHARGE_ORDER_ID;
6228 anupam.sin 13037
          case -1: // PHONE
13038
            return PHONE;
6050 anupam.sin 13039
          default:
13040
            return null;
13041
        }
13042
      }
13043
 
13044
      /**
13045
       * Find the _Fields constant that matches fieldId, throwing an exception
13046
       * if it is not found.
13047
       */
13048
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13049
        _Fields fields = findByThriftId(fieldId);
13050
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13051
        return fields;
13052
      }
13053
 
13054
      /**
13055
       * Find the _Fields constant that matches name, or null if its not found.
13056
       */
13057
      public static _Fields findByName(String name) {
13058
        return byName.get(name);
13059
      }
13060
 
13061
      private final short _thriftId;
13062
      private final String _fieldName;
13063
 
13064
      _Fields(short thriftId, String fieldName) {
13065
        _thriftId = thriftId;
13066
        _fieldName = fieldName;
13067
      }
13068
 
13069
      public short getThriftFieldId() {
13070
        return _thriftId;
13071
      }
13072
 
13073
      public String getFieldName() {
13074
        return _fieldName;
13075
      }
13076
    }
13077
 
13078
    // isset id assignments
13079
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
13080
    private static final int __RECHARGEORDERID_ISSET_ID = 1;
13081
    private BitSet __isset_bit_vector = new BitSet(2);
13082
 
13083
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13084
    static {
13085
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13086
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13088
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6228 anupam.sin 13090
      tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6050 anupam.sin 13092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
13094
    }
13095
 
13096
    public doHdfcPaymentForDigitalOrder_args() {
13097
    }
13098
 
13099
    public doHdfcPaymentForDigitalOrder_args(
13100
      long merchantPaymentId,
6228 anupam.sin 13101
      long rechargeOrderId,
13102
      String phone)
6050 anupam.sin 13103
    {
13104
      this();
13105
      this.merchantPaymentId = merchantPaymentId;
13106
      setMerchantPaymentIdIsSet(true);
13107
      this.rechargeOrderId = rechargeOrderId;
13108
      setRechargeOrderIdIsSet(true);
6228 anupam.sin 13109
      this.phone = phone;
6050 anupam.sin 13110
    }
13111
 
13112
    /**
13113
     * Performs a deep copy on <i>other</i>.
13114
     */
13115
    public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
13116
      __isset_bit_vector.clear();
13117
      __isset_bit_vector.or(other.__isset_bit_vector);
13118
      this.merchantPaymentId = other.merchantPaymentId;
13119
      this.rechargeOrderId = other.rechargeOrderId;
6228 anupam.sin 13120
      if (other.isSetPhone()) {
13121
        this.phone = other.phone;
13122
      }
6050 anupam.sin 13123
    }
13124
 
13125
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
13126
      return new doHdfcPaymentForDigitalOrder_args(this);
13127
    }
13128
 
13129
    @Override
13130
    public void clear() {
13131
      setMerchantPaymentIdIsSet(false);
13132
      this.merchantPaymentId = 0;
13133
      setRechargeOrderIdIsSet(false);
13134
      this.rechargeOrderId = 0;
6228 anupam.sin 13135
      this.phone = null;
6050 anupam.sin 13136
    }
13137
 
13138
    public long getMerchantPaymentId() {
13139
      return this.merchantPaymentId;
13140
    }
13141
 
13142
    public void setMerchantPaymentId(long merchantPaymentId) {
13143
      this.merchantPaymentId = merchantPaymentId;
13144
      setMerchantPaymentIdIsSet(true);
13145
    }
13146
 
13147
    public void unsetMerchantPaymentId() {
13148
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
13149
    }
13150
 
13151
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
13152
    public boolean isSetMerchantPaymentId() {
13153
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
13154
    }
13155
 
13156
    public void setMerchantPaymentIdIsSet(boolean value) {
13157
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
13158
    }
13159
 
13160
    public long getRechargeOrderId() {
13161
      return this.rechargeOrderId;
13162
    }
13163
 
13164
    public void setRechargeOrderId(long rechargeOrderId) {
13165
      this.rechargeOrderId = rechargeOrderId;
13166
      setRechargeOrderIdIsSet(true);
13167
    }
13168
 
13169
    public void unsetRechargeOrderId() {
13170
      __isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
13171
    }
13172
 
13173
    /** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
13174
    public boolean isSetRechargeOrderId() {
13175
      return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
13176
    }
13177
 
13178
    public void setRechargeOrderIdIsSet(boolean value) {
13179
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
13180
    }
13181
 
6228 anupam.sin 13182
    public String getPhone() {
13183
      return this.phone;
13184
    }
13185
 
13186
    public void setPhone(String phone) {
13187
      this.phone = phone;
13188
    }
13189
 
13190
    public void unsetPhone() {
13191
      this.phone = null;
13192
    }
13193
 
13194
    /** Returns true if field phone is set (has been assigned a value) and false otherwise */
13195
    public boolean isSetPhone() {
13196
      return this.phone != null;
13197
    }
13198
 
13199
    public void setPhoneIsSet(boolean value) {
13200
      if (!value) {
13201
        this.phone = null;
13202
      }
13203
    }
13204
 
6050 anupam.sin 13205
    public void setFieldValue(_Fields field, Object value) {
13206
      switch (field) {
13207
      case MERCHANT_PAYMENT_ID:
13208
        if (value == null) {
13209
          unsetMerchantPaymentId();
13210
        } else {
13211
          setMerchantPaymentId((Long)value);
13212
        }
13213
        break;
13214
 
13215
      case RECHARGE_ORDER_ID:
13216
        if (value == null) {
13217
          unsetRechargeOrderId();
13218
        } else {
13219
          setRechargeOrderId((Long)value);
13220
        }
13221
        break;
13222
 
6228 anupam.sin 13223
      case PHONE:
13224
        if (value == null) {
13225
          unsetPhone();
13226
        } else {
13227
          setPhone((String)value);
13228
        }
13229
        break;
13230
 
6050 anupam.sin 13231
      }
13232
    }
13233
 
13234
    public Object getFieldValue(_Fields field) {
13235
      switch (field) {
13236
      case MERCHANT_PAYMENT_ID:
13237
        return Long.valueOf(getMerchantPaymentId());
13238
 
13239
      case RECHARGE_ORDER_ID:
13240
        return Long.valueOf(getRechargeOrderId());
13241
 
6228 anupam.sin 13242
      case PHONE:
13243
        return getPhone();
13244
 
6050 anupam.sin 13245
      }
13246
      throw new IllegalStateException();
13247
    }
13248
 
13249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13250
    public boolean isSet(_Fields field) {
13251
      if (field == null) {
13252
        throw new IllegalArgumentException();
13253
      }
13254
 
13255
      switch (field) {
13256
      case MERCHANT_PAYMENT_ID:
13257
        return isSetMerchantPaymentId();
13258
      case RECHARGE_ORDER_ID:
13259
        return isSetRechargeOrderId();
6228 anupam.sin 13260
      case PHONE:
13261
        return isSetPhone();
6050 anupam.sin 13262
      }
13263
      throw new IllegalStateException();
13264
    }
13265
 
13266
    @Override
13267
    public boolean equals(Object that) {
13268
      if (that == null)
13269
        return false;
13270
      if (that instanceof doHdfcPaymentForDigitalOrder_args)
13271
        return this.equals((doHdfcPaymentForDigitalOrder_args)that);
13272
      return false;
13273
    }
13274
 
13275
    public boolean equals(doHdfcPaymentForDigitalOrder_args that) {
13276
      if (that == null)
13277
        return false;
13278
 
13279
      boolean this_present_merchantPaymentId = true;
13280
      boolean that_present_merchantPaymentId = true;
13281
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
13282
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
13283
          return false;
13284
        if (this.merchantPaymentId != that.merchantPaymentId)
13285
          return false;
13286
      }
13287
 
13288
      boolean this_present_rechargeOrderId = true;
13289
      boolean that_present_rechargeOrderId = true;
13290
      if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
13291
        if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
13292
          return false;
13293
        if (this.rechargeOrderId != that.rechargeOrderId)
13294
          return false;
13295
      }
13296
 
6228 anupam.sin 13297
      boolean this_present_phone = true && this.isSetPhone();
13298
      boolean that_present_phone = true && that.isSetPhone();
13299
      if (this_present_phone || that_present_phone) {
13300
        if (!(this_present_phone && that_present_phone))
13301
          return false;
13302
        if (!this.phone.equals(that.phone))
13303
          return false;
13304
      }
13305
 
6050 anupam.sin 13306
      return true;
13307
    }
13308
 
13309
    @Override
13310
    public int hashCode() {
13311
      return 0;
13312
    }
13313
 
13314
    public int compareTo(doHdfcPaymentForDigitalOrder_args other) {
13315
      if (!getClass().equals(other.getClass())) {
13316
        return getClass().getName().compareTo(other.getClass().getName());
13317
      }
13318
 
13319
      int lastComparison = 0;
13320
      doHdfcPaymentForDigitalOrder_args typedOther = (doHdfcPaymentForDigitalOrder_args)other;
13321
 
13322
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
13323
      if (lastComparison != 0) {
13324
        return lastComparison;
13325
      }
13326
      if (isSetMerchantPaymentId()) {
13327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
13328
        if (lastComparison != 0) {
13329
          return lastComparison;
13330
        }
13331
      }
13332
      lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
13333
      if (lastComparison != 0) {
13334
        return lastComparison;
13335
      }
13336
      if (isSetRechargeOrderId()) {
13337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
13338
        if (lastComparison != 0) {
13339
          return lastComparison;
13340
        }
13341
      }
6228 anupam.sin 13342
      lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
13343
      if (lastComparison != 0) {
13344
        return lastComparison;
13345
      }
13346
      if (isSetPhone()) {
13347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
13348
        if (lastComparison != 0) {
13349
          return lastComparison;
13350
        }
13351
      }
6050 anupam.sin 13352
      return 0;
13353
    }
13354
 
13355
    public _Fields fieldForId(int fieldId) {
13356
      return _Fields.findByThriftId(fieldId);
13357
    }
13358
 
13359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13360
      org.apache.thrift.protocol.TField field;
13361
      iprot.readStructBegin();
13362
      while (true)
13363
      {
13364
        field = iprot.readFieldBegin();
13365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13366
          break;
13367
        }
13368
        switch (field.id) {
13369
          case 1: // MERCHANT_PAYMENT_ID
13370
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13371
              this.merchantPaymentId = iprot.readI64();
13372
              setMerchantPaymentIdIsSet(true);
13373
            } else { 
13374
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13375
            }
13376
            break;
13377
          case 2: // RECHARGE_ORDER_ID
13378
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13379
              this.rechargeOrderId = iprot.readI64();
13380
              setRechargeOrderIdIsSet(true);
13381
            } else { 
13382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13383
            }
13384
            break;
6228 anupam.sin 13385
          case -1: // PHONE
13386
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13387
              this.phone = iprot.readString();
13388
            } else { 
13389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13390
            }
13391
            break;
6050 anupam.sin 13392
          default:
13393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13394
        }
13395
        iprot.readFieldEnd();
13396
      }
13397
      iprot.readStructEnd();
13398
      validate();
13399
    }
13400
 
13401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13402
      validate();
13403
 
13404
      oprot.writeStructBegin(STRUCT_DESC);
6228 anupam.sin 13405
      if (this.phone != null) {
13406
        oprot.writeFieldBegin(PHONE_FIELD_DESC);
13407
        oprot.writeString(this.phone);
13408
        oprot.writeFieldEnd();
13409
      }
6050 anupam.sin 13410
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
13411
      oprot.writeI64(this.merchantPaymentId);
13412
      oprot.writeFieldEnd();
13413
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
13414
      oprot.writeI64(this.rechargeOrderId);
13415
      oprot.writeFieldEnd();
13416
      oprot.writeFieldStop();
13417
      oprot.writeStructEnd();
13418
    }
13419
 
13420
    @Override
13421
    public String toString() {
13422
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_args(");
13423
      boolean first = true;
13424
 
13425
      sb.append("merchantPaymentId:");
13426
      sb.append(this.merchantPaymentId);
13427
      first = false;
13428
      if (!first) sb.append(", ");
13429
      sb.append("rechargeOrderId:");
13430
      sb.append(this.rechargeOrderId);
13431
      first = false;
6228 anupam.sin 13432
      if (!first) sb.append(", ");
13433
      sb.append("phone:");
13434
      if (this.phone == null) {
13435
        sb.append("null");
13436
      } else {
13437
        sb.append(this.phone);
13438
      }
13439
      first = false;
6050 anupam.sin 13440
      sb.append(")");
13441
      return sb.toString();
13442
    }
13443
 
13444
    public void validate() throws org.apache.thrift.TException {
13445
      // check for required fields
13446
    }
13447
 
13448
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13449
      try {
13450
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13451
      } catch (org.apache.thrift.TException te) {
13452
        throw new java.io.IOException(te);
13453
      }
13454
    }
13455
 
13456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13457
      try {
13458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13459
      } catch (org.apache.thrift.TException te) {
13460
        throw new java.io.IOException(te);
13461
      }
13462
    }
13463
 
13464
  }
13465
 
13466
  public static class doHdfcPaymentForDigitalOrder_result implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_result, doHdfcPaymentForDigitalOrder_result._Fields>, java.io.Serializable, Cloneable   {
13467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_result");
13468
 
13469
    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);
13470
    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);
13471
 
13472
    private String success; // required
13473
    private PaymentException pe; // required
13474
 
13475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13477
      SUCCESS((short)0, "success"),
13478
      PE((short)1, "pe");
13479
 
13480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13481
 
13482
      static {
13483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13484
          byName.put(field.getFieldName(), field);
13485
        }
13486
      }
13487
 
13488
      /**
13489
       * Find the _Fields constant that matches fieldId, or null if its not found.
13490
       */
13491
      public static _Fields findByThriftId(int fieldId) {
13492
        switch(fieldId) {
13493
          case 0: // SUCCESS
13494
            return SUCCESS;
13495
          case 1: // PE
13496
            return PE;
13497
          default:
13498
            return null;
13499
        }
13500
      }
13501
 
13502
      /**
13503
       * Find the _Fields constant that matches fieldId, throwing an exception
13504
       * if it is not found.
13505
       */
13506
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13507
        _Fields fields = findByThriftId(fieldId);
13508
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13509
        return fields;
13510
      }
13511
 
13512
      /**
13513
       * Find the _Fields constant that matches name, or null if its not found.
13514
       */
13515
      public static _Fields findByName(String name) {
13516
        return byName.get(name);
13517
      }
13518
 
13519
      private final short _thriftId;
13520
      private final String _fieldName;
13521
 
13522
      _Fields(short thriftId, String fieldName) {
13523
        _thriftId = thriftId;
13524
        _fieldName = fieldName;
13525
      }
13526
 
13527
      public short getThriftFieldId() {
13528
        return _thriftId;
13529
      }
13530
 
13531
      public String getFieldName() {
13532
        return _fieldName;
13533
      }
13534
    }
13535
 
13536
    // isset id assignments
13537
 
13538
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13539
    static {
13540
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13541
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13543
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_result.class, metaDataMap);
13547
    }
13548
 
13549
    public doHdfcPaymentForDigitalOrder_result() {
13550
    }
13551
 
13552
    public doHdfcPaymentForDigitalOrder_result(
13553
      String success,
13554
      PaymentException pe)
13555
    {
13556
      this();
13557
      this.success = success;
13558
      this.pe = pe;
13559
    }
13560
 
13561
    /**
13562
     * Performs a deep copy on <i>other</i>.
13563
     */
13564
    public doHdfcPaymentForDigitalOrder_result(doHdfcPaymentForDigitalOrder_result other) {
13565
      if (other.isSetSuccess()) {
13566
        this.success = other.success;
13567
      }
13568
      if (other.isSetPe()) {
13569
        this.pe = new PaymentException(other.pe);
13570
      }
13571
    }
13572
 
13573
    public doHdfcPaymentForDigitalOrder_result deepCopy() {
13574
      return new doHdfcPaymentForDigitalOrder_result(this);
13575
    }
13576
 
13577
    @Override
13578
    public void clear() {
13579
      this.success = null;
13580
      this.pe = null;
13581
    }
13582
 
13583
    public String getSuccess() {
13584
      return this.success;
13585
    }
13586
 
13587
    public void setSuccess(String success) {
13588
      this.success = success;
13589
    }
13590
 
13591
    public void unsetSuccess() {
13592
      this.success = null;
13593
    }
13594
 
13595
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13596
    public boolean isSetSuccess() {
13597
      return this.success != null;
13598
    }
13599
 
13600
    public void setSuccessIsSet(boolean value) {
13601
      if (!value) {
13602
        this.success = null;
13603
      }
13604
    }
13605
 
13606
    public PaymentException getPe() {
13607
      return this.pe;
13608
    }
13609
 
13610
    public void setPe(PaymentException pe) {
13611
      this.pe = pe;
13612
    }
13613
 
13614
    public void unsetPe() {
13615
      this.pe = null;
13616
    }
13617
 
13618
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
13619
    public boolean isSetPe() {
13620
      return this.pe != null;
13621
    }
13622
 
13623
    public void setPeIsSet(boolean value) {
13624
      if (!value) {
13625
        this.pe = null;
13626
      }
13627
    }
13628
 
13629
    public void setFieldValue(_Fields field, Object value) {
13630
      switch (field) {
13631
      case SUCCESS:
13632
        if (value == null) {
13633
          unsetSuccess();
13634
        } else {
13635
          setSuccess((String)value);
13636
        }
13637
        break;
13638
 
13639
      case PE:
13640
        if (value == null) {
13641
          unsetPe();
13642
        } else {
13643
          setPe((PaymentException)value);
13644
        }
13645
        break;
13646
 
13647
      }
13648
    }
13649
 
13650
    public Object getFieldValue(_Fields field) {
13651
      switch (field) {
13652
      case SUCCESS:
13653
        return getSuccess();
13654
 
13655
      case PE:
13656
        return getPe();
13657
 
13658
      }
13659
      throw new IllegalStateException();
13660
    }
13661
 
13662
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13663
    public boolean isSet(_Fields field) {
13664
      if (field == null) {
13665
        throw new IllegalArgumentException();
13666
      }
13667
 
13668
      switch (field) {
13669
      case SUCCESS:
13670
        return isSetSuccess();
13671
      case PE:
13672
        return isSetPe();
13673
      }
13674
      throw new IllegalStateException();
13675
    }
13676
 
13677
    @Override
13678
    public boolean equals(Object that) {
13679
      if (that == null)
13680
        return false;
13681
      if (that instanceof doHdfcPaymentForDigitalOrder_result)
13682
        return this.equals((doHdfcPaymentForDigitalOrder_result)that);
13683
      return false;
13684
    }
13685
 
13686
    public boolean equals(doHdfcPaymentForDigitalOrder_result that) {
13687
      if (that == null)
13688
        return false;
13689
 
13690
      boolean this_present_success = true && this.isSetSuccess();
13691
      boolean that_present_success = true && that.isSetSuccess();
13692
      if (this_present_success || that_present_success) {
13693
        if (!(this_present_success && that_present_success))
13694
          return false;
13695
        if (!this.success.equals(that.success))
13696
          return false;
13697
      }
13698
 
13699
      boolean this_present_pe = true && this.isSetPe();
13700
      boolean that_present_pe = true && that.isSetPe();
13701
      if (this_present_pe || that_present_pe) {
13702
        if (!(this_present_pe && that_present_pe))
13703
          return false;
13704
        if (!this.pe.equals(that.pe))
13705
          return false;
13706
      }
13707
 
13708
      return true;
13709
    }
13710
 
13711
    @Override
13712
    public int hashCode() {
13713
      return 0;
13714
    }
13715
 
13716
    public int compareTo(doHdfcPaymentForDigitalOrder_result other) {
13717
      if (!getClass().equals(other.getClass())) {
13718
        return getClass().getName().compareTo(other.getClass().getName());
13719
      }
13720
 
13721
      int lastComparison = 0;
13722
      doHdfcPaymentForDigitalOrder_result typedOther = (doHdfcPaymentForDigitalOrder_result)other;
13723
 
13724
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13725
      if (lastComparison != 0) {
13726
        return lastComparison;
13727
      }
13728
      if (isSetSuccess()) {
13729
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13730
        if (lastComparison != 0) {
13731
          return lastComparison;
13732
        }
13733
      }
13734
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
13735
      if (lastComparison != 0) {
13736
        return lastComparison;
13737
      }
13738
      if (isSetPe()) {
13739
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
13740
        if (lastComparison != 0) {
13741
          return lastComparison;
13742
        }
13743
      }
13744
      return 0;
13745
    }
13746
 
13747
    public _Fields fieldForId(int fieldId) {
13748
      return _Fields.findByThriftId(fieldId);
13749
    }
13750
 
13751
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13752
      org.apache.thrift.protocol.TField field;
13753
      iprot.readStructBegin();
13754
      while (true)
13755
      {
13756
        field = iprot.readFieldBegin();
13757
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13758
          break;
13759
        }
13760
        switch (field.id) {
13761
          case 0: // SUCCESS
13762
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13763
              this.success = iprot.readString();
13764
            } else { 
13765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13766
            }
13767
            break;
13768
          case 1: // PE
13769
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13770
              this.pe = new PaymentException();
13771
              this.pe.read(iprot);
13772
            } else { 
13773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13774
            }
13775
            break;
13776
          default:
13777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13778
        }
13779
        iprot.readFieldEnd();
13780
      }
13781
      iprot.readStructEnd();
13782
      validate();
13783
    }
13784
 
13785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13786
      oprot.writeStructBegin(STRUCT_DESC);
13787
 
13788
      if (this.isSetSuccess()) {
13789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13790
        oprot.writeString(this.success);
13791
        oprot.writeFieldEnd();
13792
      } else if (this.isSetPe()) {
13793
        oprot.writeFieldBegin(PE_FIELD_DESC);
13794
        this.pe.write(oprot);
13795
        oprot.writeFieldEnd();
13796
      }
13797
      oprot.writeFieldStop();
13798
      oprot.writeStructEnd();
13799
    }
13800
 
13801
    @Override
13802
    public String toString() {
13803
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_result(");
13804
      boolean first = true;
13805
 
13806
      sb.append("success:");
13807
      if (this.success == null) {
13808
        sb.append("null");
13809
      } else {
13810
        sb.append(this.success);
13811
      }
13812
      first = false;
13813
      if (!first) sb.append(", ");
13814
      sb.append("pe:");
13815
      if (this.pe == null) {
13816
        sb.append("null");
13817
      } else {
13818
        sb.append(this.pe);
13819
      }
13820
      first = false;
13821
      sb.append(")");
13822
      return sb.toString();
13823
    }
13824
 
13825
    public void validate() throws org.apache.thrift.TException {
13826
      // check for required fields
13827
    }
13828
 
13829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13830
      try {
13831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13832
      } catch (org.apache.thrift.TException te) {
13833
        throw new java.io.IOException(te);
13834
      }
13835
    }
13836
 
13837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13838
      try {
13839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13840
      } catch (org.apache.thrift.TException te) {
13841
        throw new java.io.IOException(te);
13842
      }
13843
    }
13844
 
13845
  }
13846
 
3616 chandransh 13847
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
13848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
13849
 
13850
    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);
13851
 
13852
    private long merchantPaymentId; // required
13853
 
13854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13855
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13856
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
13857
 
13858
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13859
 
13860
      static {
13861
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13862
          byName.put(field.getFieldName(), field);
13863
        }
13864
      }
13865
 
13866
      /**
13867
       * Find the _Fields constant that matches fieldId, or null if its not found.
13868
       */
13869
      public static _Fields findByThriftId(int fieldId) {
13870
        switch(fieldId) {
13871
          case 1: // MERCHANT_PAYMENT_ID
13872
            return MERCHANT_PAYMENT_ID;
13873
          default:
13874
            return null;
13875
        }
13876
      }
13877
 
13878
      /**
13879
       * Find the _Fields constant that matches fieldId, throwing an exception
13880
       * if it is not found.
13881
       */
13882
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13883
        _Fields fields = findByThriftId(fieldId);
13884
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13885
        return fields;
13886
      }
13887
 
13888
      /**
13889
       * Find the _Fields constant that matches name, or null if its not found.
13890
       */
13891
      public static _Fields findByName(String name) {
13892
        return byName.get(name);
13893
      }
13894
 
13895
      private final short _thriftId;
13896
      private final String _fieldName;
13897
 
13898
      _Fields(short thriftId, String fieldName) {
13899
        _thriftId = thriftId;
13900
        _fieldName = fieldName;
13901
      }
13902
 
13903
      public short getThriftFieldId() {
13904
        return _thriftId;
13905
      }
13906
 
13907
      public String getFieldName() {
13908
        return _fieldName;
13909
      }
13910
    }
13911
 
13912
    // isset id assignments
13913
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
13914
    private BitSet __isset_bit_vector = new BitSet(1);
13915
 
13916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13917
    static {
13918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13919
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
13923
    }
13924
 
13925
    public initializeHdfcEmiPayment_args() {
13926
    }
13927
 
13928
    public initializeHdfcEmiPayment_args(
13929
      long merchantPaymentId)
13930
    {
13931
      this();
13932
      this.merchantPaymentId = merchantPaymentId;
13933
      setMerchantPaymentIdIsSet(true);
13934
    }
13935
 
13936
    /**
13937
     * Performs a deep copy on <i>other</i>.
13938
     */
13939
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
13940
      __isset_bit_vector.clear();
13941
      __isset_bit_vector.or(other.__isset_bit_vector);
13942
      this.merchantPaymentId = other.merchantPaymentId;
13943
    }
13944
 
13945
    public initializeHdfcEmiPayment_args deepCopy() {
13946
      return new initializeHdfcEmiPayment_args(this);
13947
    }
13948
 
13949
    @Override
13950
    public void clear() {
13951
      setMerchantPaymentIdIsSet(false);
13952
      this.merchantPaymentId = 0;
13953
    }
13954
 
13955
    public long getMerchantPaymentId() {
13956
      return this.merchantPaymentId;
13957
    }
13958
 
13959
    public void setMerchantPaymentId(long merchantPaymentId) {
13960
      this.merchantPaymentId = merchantPaymentId;
13961
      setMerchantPaymentIdIsSet(true);
13962
    }
13963
 
13964
    public void unsetMerchantPaymentId() {
13965
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
13966
    }
13967
 
13968
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
13969
    public boolean isSetMerchantPaymentId() {
13970
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
13971
    }
13972
 
13973
    public void setMerchantPaymentIdIsSet(boolean value) {
13974
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
13975
    }
13976
 
13977
    public void setFieldValue(_Fields field, Object value) {
13978
      switch (field) {
13979
      case MERCHANT_PAYMENT_ID:
13980
        if (value == null) {
13981
          unsetMerchantPaymentId();
13982
        } else {
13983
          setMerchantPaymentId((Long)value);
13984
        }
13985
        break;
13986
 
13987
      }
13988
    }
13989
 
13990
    public Object getFieldValue(_Fields field) {
13991
      switch (field) {
13992
      case MERCHANT_PAYMENT_ID:
13993
        return Long.valueOf(getMerchantPaymentId());
13994
 
13995
      }
13996
      throw new IllegalStateException();
13997
    }
13998
 
13999
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14000
    public boolean isSet(_Fields field) {
14001
      if (field == null) {
14002
        throw new IllegalArgumentException();
14003
      }
14004
 
14005
      switch (field) {
14006
      case MERCHANT_PAYMENT_ID:
14007
        return isSetMerchantPaymentId();
14008
      }
14009
      throw new IllegalStateException();
14010
    }
14011
 
14012
    @Override
14013
    public boolean equals(Object that) {
14014
      if (that == null)
14015
        return false;
14016
      if (that instanceof initializeHdfcEmiPayment_args)
14017
        return this.equals((initializeHdfcEmiPayment_args)that);
14018
      return false;
14019
    }
14020
 
14021
    public boolean equals(initializeHdfcEmiPayment_args that) {
14022
      if (that == null)
14023
        return false;
14024
 
14025
      boolean this_present_merchantPaymentId = true;
14026
      boolean that_present_merchantPaymentId = true;
14027
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
14028
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
14029
          return false;
14030
        if (this.merchantPaymentId != that.merchantPaymentId)
14031
          return false;
14032
      }
14033
 
14034
      return true;
14035
    }
14036
 
14037
    @Override
14038
    public int hashCode() {
14039
      return 0;
14040
    }
14041
 
14042
    public int compareTo(initializeHdfcEmiPayment_args other) {
14043
      if (!getClass().equals(other.getClass())) {
14044
        return getClass().getName().compareTo(other.getClass().getName());
14045
      }
14046
 
14047
      int lastComparison = 0;
14048
      initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
14049
 
14050
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
14051
      if (lastComparison != 0) {
14052
        return lastComparison;
14053
      }
14054
      if (isSetMerchantPaymentId()) {
14055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
14056
        if (lastComparison != 0) {
14057
          return lastComparison;
14058
        }
14059
      }
14060
      return 0;
14061
    }
14062
 
14063
    public _Fields fieldForId(int fieldId) {
14064
      return _Fields.findByThriftId(fieldId);
14065
    }
14066
 
14067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14068
      org.apache.thrift.protocol.TField field;
14069
      iprot.readStructBegin();
14070
      while (true)
14071
      {
14072
        field = iprot.readFieldBegin();
14073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14074
          break;
14075
        }
14076
        switch (field.id) {
14077
          case 1: // MERCHANT_PAYMENT_ID
14078
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14079
              this.merchantPaymentId = iprot.readI64();
14080
              setMerchantPaymentIdIsSet(true);
14081
            } else { 
14082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14083
            }
14084
            break;
14085
          default:
14086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14087
        }
14088
        iprot.readFieldEnd();
14089
      }
14090
      iprot.readStructEnd();
14091
      validate();
14092
    }
14093
 
14094
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14095
      validate();
14096
 
14097
      oprot.writeStructBegin(STRUCT_DESC);
14098
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
14099
      oprot.writeI64(this.merchantPaymentId);
14100
      oprot.writeFieldEnd();
14101
      oprot.writeFieldStop();
14102
      oprot.writeStructEnd();
14103
    }
14104
 
14105
    @Override
14106
    public String toString() {
14107
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
14108
      boolean first = true;
14109
 
14110
      sb.append("merchantPaymentId:");
14111
      sb.append(this.merchantPaymentId);
14112
      first = false;
14113
      sb.append(")");
14114
      return sb.toString();
14115
    }
14116
 
14117
    public void validate() throws org.apache.thrift.TException {
14118
      // check for required fields
14119
    }
14120
 
14121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14122
      try {
14123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14124
      } catch (org.apache.thrift.TException te) {
14125
        throw new java.io.IOException(te);
14126
      }
14127
    }
14128
 
14129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14130
      try {
14131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14132
      } catch (org.apache.thrift.TException te) {
14133
        throw new java.io.IOException(te);
14134
      }
14135
    }
14136
 
14137
  }
14138
 
14139
  public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable   {
14140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
14141
 
14142
    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);
14143
    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);
14144
 
14145
    private String success; // required
14146
    private PaymentException pe; // required
14147
 
14148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14150
      SUCCESS((short)0, "success"),
14151
      PE((short)1, "pe");
14152
 
14153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14154
 
14155
      static {
14156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14157
          byName.put(field.getFieldName(), field);
14158
        }
14159
      }
14160
 
14161
      /**
14162
       * Find the _Fields constant that matches fieldId, or null if its not found.
14163
       */
14164
      public static _Fields findByThriftId(int fieldId) {
14165
        switch(fieldId) {
14166
          case 0: // SUCCESS
14167
            return SUCCESS;
14168
          case 1: // PE
14169
            return PE;
14170
          default:
14171
            return null;
14172
        }
14173
      }
14174
 
14175
      /**
14176
       * Find the _Fields constant that matches fieldId, throwing an exception
14177
       * if it is not found.
14178
       */
14179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14180
        _Fields fields = findByThriftId(fieldId);
14181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14182
        return fields;
14183
      }
14184
 
14185
      /**
14186
       * Find the _Fields constant that matches name, or null if its not found.
14187
       */
14188
      public static _Fields findByName(String name) {
14189
        return byName.get(name);
14190
      }
14191
 
14192
      private final short _thriftId;
14193
      private final String _fieldName;
14194
 
14195
      _Fields(short thriftId, String fieldName) {
14196
        _thriftId = thriftId;
14197
        _fieldName = fieldName;
14198
      }
14199
 
14200
      public short getThriftFieldId() {
14201
        return _thriftId;
14202
      }
14203
 
14204
      public String getFieldName() {
14205
        return _fieldName;
14206
      }
14207
    }
14208
 
14209
    // isset id assignments
14210
 
14211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14212
    static {
14213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14214
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14216
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
14220
    }
14221
 
14222
    public initializeHdfcEmiPayment_result() {
14223
    }
14224
 
14225
    public initializeHdfcEmiPayment_result(
14226
      String success,
14227
      PaymentException pe)
14228
    {
14229
      this();
14230
      this.success = success;
14231
      this.pe = pe;
14232
    }
14233
 
14234
    /**
14235
     * Performs a deep copy on <i>other</i>.
14236
     */
14237
    public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
14238
      if (other.isSetSuccess()) {
14239
        this.success = other.success;
14240
      }
14241
      if (other.isSetPe()) {
14242
        this.pe = new PaymentException(other.pe);
14243
      }
14244
    }
14245
 
14246
    public initializeHdfcEmiPayment_result deepCopy() {
14247
      return new initializeHdfcEmiPayment_result(this);
14248
    }
14249
 
14250
    @Override
14251
    public void clear() {
14252
      this.success = null;
14253
      this.pe = null;
14254
    }
14255
 
14256
    public String getSuccess() {
14257
      return this.success;
14258
    }
14259
 
14260
    public void setSuccess(String success) {
14261
      this.success = success;
14262
    }
14263
 
14264
    public void unsetSuccess() {
14265
      this.success = null;
14266
    }
14267
 
14268
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14269
    public boolean isSetSuccess() {
14270
      return this.success != null;
14271
    }
14272
 
14273
    public void setSuccessIsSet(boolean value) {
14274
      if (!value) {
14275
        this.success = null;
14276
      }
14277
    }
14278
 
14279
    public PaymentException getPe() {
14280
      return this.pe;
14281
    }
14282
 
14283
    public void setPe(PaymentException pe) {
14284
      this.pe = pe;
14285
    }
14286
 
14287
    public void unsetPe() {
14288
      this.pe = null;
14289
    }
14290
 
14291
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
14292
    public boolean isSetPe() {
14293
      return this.pe != null;
14294
    }
14295
 
14296
    public void setPeIsSet(boolean value) {
14297
      if (!value) {
14298
        this.pe = null;
14299
      }
14300
    }
14301
 
14302
    public void setFieldValue(_Fields field, Object value) {
14303
      switch (field) {
14304
      case SUCCESS:
14305
        if (value == null) {
14306
          unsetSuccess();
14307
        } else {
14308
          setSuccess((String)value);
14309
        }
14310
        break;
14311
 
14312
      case PE:
14313
        if (value == null) {
14314
          unsetPe();
14315
        } else {
14316
          setPe((PaymentException)value);
14317
        }
14318
        break;
14319
 
14320
      }
14321
    }
14322
 
14323
    public Object getFieldValue(_Fields field) {
14324
      switch (field) {
14325
      case SUCCESS:
14326
        return getSuccess();
14327
 
14328
      case PE:
14329
        return getPe();
14330
 
14331
      }
14332
      throw new IllegalStateException();
14333
    }
14334
 
14335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14336
    public boolean isSet(_Fields field) {
14337
      if (field == null) {
14338
        throw new IllegalArgumentException();
14339
      }
14340
 
14341
      switch (field) {
14342
      case SUCCESS:
14343
        return isSetSuccess();
14344
      case PE:
14345
        return isSetPe();
14346
      }
14347
      throw new IllegalStateException();
14348
    }
14349
 
14350
    @Override
14351
    public boolean equals(Object that) {
14352
      if (that == null)
14353
        return false;
14354
      if (that instanceof initializeHdfcEmiPayment_result)
14355
        return this.equals((initializeHdfcEmiPayment_result)that);
14356
      return false;
14357
    }
14358
 
14359
    public boolean equals(initializeHdfcEmiPayment_result that) {
14360
      if (that == null)
14361
        return false;
14362
 
14363
      boolean this_present_success = true && this.isSetSuccess();
14364
      boolean that_present_success = true && that.isSetSuccess();
14365
      if (this_present_success || that_present_success) {
14366
        if (!(this_present_success && that_present_success))
14367
          return false;
14368
        if (!this.success.equals(that.success))
14369
          return false;
14370
      }
14371
 
14372
      boolean this_present_pe = true && this.isSetPe();
14373
      boolean that_present_pe = true && that.isSetPe();
14374
      if (this_present_pe || that_present_pe) {
14375
        if (!(this_present_pe && that_present_pe))
14376
          return false;
14377
        if (!this.pe.equals(that.pe))
14378
          return false;
14379
      }
14380
 
14381
      return true;
14382
    }
14383
 
14384
    @Override
14385
    public int hashCode() {
14386
      return 0;
14387
    }
14388
 
14389
    public int compareTo(initializeHdfcEmiPayment_result other) {
14390
      if (!getClass().equals(other.getClass())) {
14391
        return getClass().getName().compareTo(other.getClass().getName());
14392
      }
14393
 
14394
      int lastComparison = 0;
14395
      initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
14396
 
14397
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14398
      if (lastComparison != 0) {
14399
        return lastComparison;
14400
      }
14401
      if (isSetSuccess()) {
14402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14403
        if (lastComparison != 0) {
14404
          return lastComparison;
14405
        }
14406
      }
14407
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
14408
      if (lastComparison != 0) {
14409
        return lastComparison;
14410
      }
14411
      if (isSetPe()) {
14412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
14413
        if (lastComparison != 0) {
14414
          return lastComparison;
14415
        }
14416
      }
14417
      return 0;
14418
    }
14419
 
14420
    public _Fields fieldForId(int fieldId) {
14421
      return _Fields.findByThriftId(fieldId);
14422
    }
14423
 
14424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14425
      org.apache.thrift.protocol.TField field;
14426
      iprot.readStructBegin();
14427
      while (true)
14428
      {
14429
        field = iprot.readFieldBegin();
14430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14431
          break;
14432
        }
14433
        switch (field.id) {
14434
          case 0: // SUCCESS
14435
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14436
              this.success = iprot.readString();
14437
            } else { 
14438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14439
            }
14440
            break;
14441
          case 1: // PE
14442
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14443
              this.pe = new PaymentException();
14444
              this.pe.read(iprot);
14445
            } else { 
14446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14447
            }
14448
            break;
14449
          default:
14450
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14451
        }
14452
        iprot.readFieldEnd();
14453
      }
14454
      iprot.readStructEnd();
14455
      validate();
14456
    }
14457
 
14458
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14459
      oprot.writeStructBegin(STRUCT_DESC);
14460
 
14461
      if (this.isSetSuccess()) {
14462
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14463
        oprot.writeString(this.success);
14464
        oprot.writeFieldEnd();
14465
      } else if (this.isSetPe()) {
14466
        oprot.writeFieldBegin(PE_FIELD_DESC);
14467
        this.pe.write(oprot);
14468
        oprot.writeFieldEnd();
14469
      }
14470
      oprot.writeFieldStop();
14471
      oprot.writeStructEnd();
14472
    }
14473
 
14474
    @Override
14475
    public String toString() {
14476
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
14477
      boolean first = true;
14478
 
14479
      sb.append("success:");
14480
      if (this.success == null) {
14481
        sb.append("null");
14482
      } else {
14483
        sb.append(this.success);
14484
      }
14485
      first = false;
14486
      if (!first) sb.append(", ");
14487
      sb.append("pe:");
14488
      if (this.pe == null) {
14489
        sb.append("null");
14490
      } else {
14491
        sb.append(this.pe);
14492
      }
14493
      first = false;
14494
      sb.append(")");
14495
      return sb.toString();
14496
    }
14497
 
14498
    public void validate() throws org.apache.thrift.TException {
14499
      // check for required fields
14500
    }
14501
 
14502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14503
      try {
14504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14505
      } catch (org.apache.thrift.TException te) {
14506
        throw new java.io.IOException(te);
14507
      }
14508
    }
14509
 
14510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14511
      try {
14512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14513
      } catch (org.apache.thrift.TException te) {
14514
        throw new java.io.IOException(te);
14515
      }
14516
    }
14517
 
14518
  }
14519
 
3430 rajveer 14520
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
14521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
2462 chandransh 14522
 
3430 rajveer 14523
    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);
14524
    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);
14525
    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 14526
 
3430 rajveer 14527
    private long orderId; // required
14528
    private long merchantTxnId; // required
14529
    private double amount; // required
2462 chandransh 14530
 
14531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 14533
      ORDER_ID((short)1, "orderId"),
14534
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
14535
      AMOUNT((short)3, "amount");
2462 chandransh 14536
 
14537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14538
 
14539
      static {
14540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14541
          byName.put(field.getFieldName(), field);
14542
        }
14543
      }
14544
 
14545
      /**
14546
       * Find the _Fields constant that matches fieldId, or null if its not found.
14547
       */
14548
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14549
        switch(fieldId) {
14550
          case 1: // ORDER_ID
14551
            return ORDER_ID;
14552
          case 2: // MERCHANT_TXN_ID
14553
            return MERCHANT_TXN_ID;
14554
          case 3: // AMOUNT
14555
            return AMOUNT;
14556
          default:
14557
            return null;
14558
        }
2462 chandransh 14559
      }
14560
 
14561
      /**
14562
       * Find the _Fields constant that matches fieldId, throwing an exception
14563
       * if it is not found.
14564
       */
14565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14566
        _Fields fields = findByThriftId(fieldId);
14567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14568
        return fields;
14569
      }
14570
 
14571
      /**
14572
       * Find the _Fields constant that matches name, or null if its not found.
14573
       */
14574
      public static _Fields findByName(String name) {
14575
        return byName.get(name);
14576
      }
14577
 
14578
      private final short _thriftId;
14579
      private final String _fieldName;
14580
 
14581
      _Fields(short thriftId, String fieldName) {
14582
        _thriftId = thriftId;
14583
        _fieldName = fieldName;
14584
      }
14585
 
14586
      public short getThriftFieldId() {
14587
        return _thriftId;
14588
      }
14589
 
14590
      public String getFieldName() {
14591
        return _fieldName;
14592
      }
14593
    }
14594
 
14595
    // isset id assignments
3010 chandransh 14596
    private static final int __ORDERID_ISSET_ID = 0;
14597
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
14598
    private static final int __AMOUNT_ISSET_ID = 2;
14599
    private BitSet __isset_bit_vector = new BitSet(3);
2462 chandransh 14600
 
3430 rajveer 14601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 14602
    static {
3430 rajveer 14603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14604
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14606
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14608
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
2462 chandransh 14612
    }
14613
 
3010 chandransh 14614
    public createRefund_args() {
2462 chandransh 14615
    }
14616
 
3010 chandransh 14617
    public createRefund_args(
14618
      long orderId,
14619
      long merchantTxnId,
14620
      double amount)
2462 chandransh 14621
    {
14622
      this();
3010 chandransh 14623
      this.orderId = orderId;
14624
      setOrderIdIsSet(true);
14625
      this.merchantTxnId = merchantTxnId;
14626
      setMerchantTxnIdIsSet(true);
14627
      this.amount = amount;
14628
      setAmountIsSet(true);
2462 chandransh 14629
    }
14630
 
14631
    /**
14632
     * Performs a deep copy on <i>other</i>.
14633
     */
3010 chandransh 14634
    public createRefund_args(createRefund_args other) {
2462 chandransh 14635
      __isset_bit_vector.clear();
14636
      __isset_bit_vector.or(other.__isset_bit_vector);
3010 chandransh 14637
      this.orderId = other.orderId;
14638
      this.merchantTxnId = other.merchantTxnId;
14639
      this.amount = other.amount;
2462 chandransh 14640
    }
14641
 
3010 chandransh 14642
    public createRefund_args deepCopy() {
14643
      return new createRefund_args(this);
2462 chandransh 14644
    }
14645
 
3430 rajveer 14646
    @Override
14647
    public void clear() {
14648
      setOrderIdIsSet(false);
14649
      this.orderId = 0;
14650
      setMerchantTxnIdIsSet(false);
14651
      this.merchantTxnId = 0;
14652
      setAmountIsSet(false);
14653
      this.amount = 0.0;
2462 chandransh 14654
    }
14655
 
3010 chandransh 14656
    public long getOrderId() {
14657
      return this.orderId;
2462 chandransh 14658
    }
14659
 
3430 rajveer 14660
    public void setOrderId(long orderId) {
3010 chandransh 14661
      this.orderId = orderId;
14662
      setOrderIdIsSet(true);
2462 chandransh 14663
    }
14664
 
3010 chandransh 14665
    public void unsetOrderId() {
14666
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2462 chandransh 14667
    }
14668
 
3430 rajveer 14669
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3010 chandransh 14670
    public boolean isSetOrderId() {
14671
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2462 chandransh 14672
    }
14673
 
3010 chandransh 14674
    public void setOrderIdIsSet(boolean value) {
14675
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2462 chandransh 14676
    }
14677
 
3010 chandransh 14678
    public long getMerchantTxnId() {
14679
      return this.merchantTxnId;
14680
    }
14681
 
3430 rajveer 14682
    public void setMerchantTxnId(long merchantTxnId) {
3010 chandransh 14683
      this.merchantTxnId = merchantTxnId;
14684
      setMerchantTxnIdIsSet(true);
14685
    }
14686
 
14687
    public void unsetMerchantTxnId() {
14688
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
14689
    }
14690
 
3430 rajveer 14691
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
3010 chandransh 14692
    public boolean isSetMerchantTxnId() {
14693
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
14694
    }
14695
 
14696
    public void setMerchantTxnIdIsSet(boolean value) {
14697
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
14698
    }
14699
 
14700
    public double getAmount() {
14701
      return this.amount;
14702
    }
14703
 
3430 rajveer 14704
    public void setAmount(double amount) {
3010 chandransh 14705
      this.amount = amount;
14706
      setAmountIsSet(true);
14707
    }
14708
 
14709
    public void unsetAmount() {
14710
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
14711
    }
14712
 
3430 rajveer 14713
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
3010 chandransh 14714
    public boolean isSetAmount() {
14715
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
14716
    }
14717
 
14718
    public void setAmountIsSet(boolean value) {
14719
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
14720
    }
14721
 
2462 chandransh 14722
    public void setFieldValue(_Fields field, Object value) {
14723
      switch (field) {
3010 chandransh 14724
      case ORDER_ID:
2462 chandransh 14725
        if (value == null) {
3010 chandransh 14726
          unsetOrderId();
2462 chandransh 14727
        } else {
3010 chandransh 14728
          setOrderId((Long)value);
2462 chandransh 14729
        }
14730
        break;
14731
 
3010 chandransh 14732
      case MERCHANT_TXN_ID:
14733
        if (value == null) {
14734
          unsetMerchantTxnId();
14735
        } else {
14736
          setMerchantTxnId((Long)value);
14737
        }
14738
        break;
14739
 
14740
      case AMOUNT:
14741
        if (value == null) {
14742
          unsetAmount();
14743
        } else {
14744
          setAmount((Double)value);
14745
        }
14746
        break;
14747
 
2462 chandransh 14748
      }
14749
    }
14750
 
14751
    public Object getFieldValue(_Fields field) {
14752
      switch (field) {
3010 chandransh 14753
      case ORDER_ID:
3430 rajveer 14754
        return Long.valueOf(getOrderId());
2462 chandransh 14755
 
3010 chandransh 14756
      case MERCHANT_TXN_ID:
3430 rajveer 14757
        return Long.valueOf(getMerchantTxnId());
3010 chandransh 14758
 
14759
      case AMOUNT:
3430 rajveer 14760
        return Double.valueOf(getAmount());
3010 chandransh 14761
 
2462 chandransh 14762
      }
14763
      throw new IllegalStateException();
14764
    }
14765
 
3430 rajveer 14766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14767
    public boolean isSet(_Fields field) {
14768
      if (field == null) {
14769
        throw new IllegalArgumentException();
14770
      }
2462 chandransh 14771
 
14772
      switch (field) {
3010 chandransh 14773
      case ORDER_ID:
14774
        return isSetOrderId();
14775
      case MERCHANT_TXN_ID:
14776
        return isSetMerchantTxnId();
14777
      case AMOUNT:
14778
        return isSetAmount();
2462 chandransh 14779
      }
14780
      throw new IllegalStateException();
14781
    }
14782
 
14783
    @Override
14784
    public boolean equals(Object that) {
14785
      if (that == null)
14786
        return false;
3010 chandransh 14787
      if (that instanceof createRefund_args)
14788
        return this.equals((createRefund_args)that);
2462 chandransh 14789
      return false;
14790
    }
14791
 
3010 chandransh 14792
    public boolean equals(createRefund_args that) {
2462 chandransh 14793
      if (that == null)
14794
        return false;
14795
 
3010 chandransh 14796
      boolean this_present_orderId = true;
14797
      boolean that_present_orderId = true;
14798
      if (this_present_orderId || that_present_orderId) {
14799
        if (!(this_present_orderId && that_present_orderId))
2462 chandransh 14800
          return false;
3010 chandransh 14801
        if (this.orderId != that.orderId)
2462 chandransh 14802
          return false;
14803
      }
14804
 
3010 chandransh 14805
      boolean this_present_merchantTxnId = true;
14806
      boolean that_present_merchantTxnId = true;
14807
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
14808
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
14809
          return false;
14810
        if (this.merchantTxnId != that.merchantTxnId)
14811
          return false;
14812
      }
14813
 
14814
      boolean this_present_amount = true;
14815
      boolean that_present_amount = true;
14816
      if (this_present_amount || that_present_amount) {
14817
        if (!(this_present_amount && that_present_amount))
14818
          return false;
14819
        if (this.amount != that.amount)
14820
          return false;
14821
      }
14822
 
2462 chandransh 14823
      return true;
14824
    }
14825
 
14826
    @Override
14827
    public int hashCode() {
14828
      return 0;
14829
    }
14830
 
3010 chandransh 14831
    public int compareTo(createRefund_args other) {
2462 chandransh 14832
      if (!getClass().equals(other.getClass())) {
14833
        return getClass().getName().compareTo(other.getClass().getName());
14834
      }
14835
 
14836
      int lastComparison = 0;
3010 chandransh 14837
      createRefund_args typedOther = (createRefund_args)other;
2462 chandransh 14838
 
3430 rajveer 14839
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2462 chandransh 14840
      if (lastComparison != 0) {
14841
        return lastComparison;
14842
      }
3430 rajveer 14843
      if (isSetOrderId()) {
14844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14845
        if (lastComparison != 0) {
14846
          return lastComparison;
14847
        }
2462 chandransh 14848
      }
3430 rajveer 14849
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
3010 chandransh 14850
      if (lastComparison != 0) {
14851
        return lastComparison;
14852
      }
3430 rajveer 14853
      if (isSetMerchantTxnId()) {
14854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
14855
        if (lastComparison != 0) {
14856
          return lastComparison;
14857
        }
3010 chandransh 14858
      }
3430 rajveer 14859
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
3010 chandransh 14860
      if (lastComparison != 0) {
14861
        return lastComparison;
14862
      }
3430 rajveer 14863
      if (isSetAmount()) {
14864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
14865
        if (lastComparison != 0) {
14866
          return lastComparison;
14867
        }
3010 chandransh 14868
      }
2462 chandransh 14869
      return 0;
14870
    }
14871
 
3430 rajveer 14872
    public _Fields fieldForId(int fieldId) {
14873
      return _Fields.findByThriftId(fieldId);
14874
    }
14875
 
14876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14877
      org.apache.thrift.protocol.TField field;
2462 chandransh 14878
      iprot.readStructBegin();
14879
      while (true)
14880
      {
14881
        field = iprot.readFieldBegin();
3430 rajveer 14882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 14883
          break;
14884
        }
3430 rajveer 14885
        switch (field.id) {
14886
          case 1: // ORDER_ID
14887
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14888
              this.orderId = iprot.readI64();
14889
              setOrderIdIsSet(true);
14890
            } else { 
14891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14892
            }
14893
            break;
14894
          case 2: // MERCHANT_TXN_ID
14895
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14896
              this.merchantTxnId = iprot.readI64();
14897
              setMerchantTxnIdIsSet(true);
14898
            } else { 
14899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14900
            }
14901
            break;
14902
          case 3: // AMOUNT
14903
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14904
              this.amount = iprot.readDouble();
14905
              setAmountIsSet(true);
14906
            } else { 
14907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14908
            }
14909
            break;
14910
          default:
14911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 14912
        }
3430 rajveer 14913
        iprot.readFieldEnd();
2462 chandransh 14914
      }
14915
      iprot.readStructEnd();
14916
      validate();
14917
    }
14918
 
3430 rajveer 14919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 14920
      validate();
14921
 
14922
      oprot.writeStructBegin(STRUCT_DESC);
3010 chandransh 14923
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14924
      oprot.writeI64(this.orderId);
2462 chandransh 14925
      oprot.writeFieldEnd();
3010 chandransh 14926
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
14927
      oprot.writeI64(this.merchantTxnId);
14928
      oprot.writeFieldEnd();
14929
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
14930
      oprot.writeDouble(this.amount);
14931
      oprot.writeFieldEnd();
2462 chandransh 14932
      oprot.writeFieldStop();
14933
      oprot.writeStructEnd();
14934
    }
14935
 
14936
    @Override
14937
    public String toString() {
3010 chandransh 14938
      StringBuilder sb = new StringBuilder("createRefund_args(");
2462 chandransh 14939
      boolean first = true;
14940
 
3010 chandransh 14941
      sb.append("orderId:");
14942
      sb.append(this.orderId);
2462 chandransh 14943
      first = false;
3010 chandransh 14944
      if (!first) sb.append(", ");
14945
      sb.append("merchantTxnId:");
14946
      sb.append(this.merchantTxnId);
14947
      first = false;
14948
      if (!first) sb.append(", ");
14949
      sb.append("amount:");
14950
      sb.append(this.amount);
14951
      first = false;
2462 chandransh 14952
      sb.append(")");
14953
      return sb.toString();
14954
    }
14955
 
3430 rajveer 14956
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 14957
      // check for required fields
14958
    }
14959
 
3430 rajveer 14960
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14961
      try {
14962
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14963
      } catch (org.apache.thrift.TException te) {
14964
        throw new java.io.IOException(te);
14965
      }
14966
    }
14967
 
14968
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14969
      try {
14970
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14971
      } catch (org.apache.thrift.TException te) {
14972
        throw new java.io.IOException(te);
14973
      }
14974
    }
14975
 
2462 chandransh 14976
  }
14977
 
3430 rajveer 14978
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
14979
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
2462 chandransh 14980
 
3430 rajveer 14981
    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);
14982
    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 14983
 
3430 rajveer 14984
    private long success; // required
14985
    private PaymentException pe; // required
2462 chandransh 14986
 
14987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 14989
      SUCCESS((short)0, "success"),
14990
      PE((short)1, "pe");
14991
 
14992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14993
 
14994
      static {
14995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14996
          byName.put(field.getFieldName(), field);
14997
        }
14998
      }
14999
 
15000
      /**
15001
       * Find the _Fields constant that matches fieldId, or null if its not found.
15002
       */
15003
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15004
        switch(fieldId) {
15005
          case 0: // SUCCESS
15006
            return SUCCESS;
15007
          case 1: // PE
15008
            return PE;
15009
          default:
15010
            return null;
15011
        }
2462 chandransh 15012
      }
15013
 
15014
      /**
15015
       * Find the _Fields constant that matches fieldId, throwing an exception
15016
       * if it is not found.
15017
       */
15018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15019
        _Fields fields = findByThriftId(fieldId);
15020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15021
        return fields;
15022
      }
15023
 
15024
      /**
15025
       * Find the _Fields constant that matches name, or null if its not found.
15026
       */
15027
      public static _Fields findByName(String name) {
15028
        return byName.get(name);
15029
      }
15030
 
15031
      private final short _thriftId;
15032
      private final String _fieldName;
15033
 
15034
      _Fields(short thriftId, String fieldName) {
15035
        _thriftId = thriftId;
15036
        _fieldName = fieldName;
15037
      }
15038
 
15039
      public short getThriftFieldId() {
15040
        return _thriftId;
15041
      }
15042
 
15043
      public String getFieldName() {
15044
        return _fieldName;
15045
      }
15046
    }
15047
 
15048
    // isset id assignments
3010 chandransh 15049
    private static final int __SUCCESS_ISSET_ID = 0;
15050
    private BitSet __isset_bit_vector = new BitSet(1);
2462 chandransh 15051
 
3430 rajveer 15052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 15053
    static {
3430 rajveer 15054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15057
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
2462 chandransh 15061
    }
15062
 
3010 chandransh 15063
    public createRefund_result() {
2462 chandransh 15064
    }
15065
 
3010 chandransh 15066
    public createRefund_result(
15067
      long success,
2462 chandransh 15068
      PaymentException pe)
15069
    {
15070
      this();
15071
      this.success = success;
3010 chandransh 15072
      setSuccessIsSet(true);
2462 chandransh 15073
      this.pe = pe;
15074
    }
15075
 
15076
    /**
15077
     * Performs a deep copy on <i>other</i>.
15078
     */
3010 chandransh 15079
    public createRefund_result(createRefund_result other) {
15080
      __isset_bit_vector.clear();
15081
      __isset_bit_vector.or(other.__isset_bit_vector);
15082
      this.success = other.success;
2462 chandransh 15083
      if (other.isSetPe()) {
15084
        this.pe = new PaymentException(other.pe);
15085
      }
15086
    }
15087
 
3010 chandransh 15088
    public createRefund_result deepCopy() {
15089
      return new createRefund_result(this);
2462 chandransh 15090
    }
15091
 
3430 rajveer 15092
    @Override
15093
    public void clear() {
15094
      setSuccessIsSet(false);
15095
      this.success = 0;
15096
      this.pe = null;
2462 chandransh 15097
    }
15098
 
3010 chandransh 15099
    public long getSuccess() {
2462 chandransh 15100
      return this.success;
15101
    }
15102
 
3430 rajveer 15103
    public void setSuccess(long success) {
2462 chandransh 15104
      this.success = success;
3010 chandransh 15105
      setSuccessIsSet(true);
2462 chandransh 15106
    }
15107
 
15108
    public void unsetSuccess() {
3010 chandransh 15109
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2462 chandransh 15110
    }
15111
 
3430 rajveer 15112
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 15113
    public boolean isSetSuccess() {
3010 chandransh 15114
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2462 chandransh 15115
    }
15116
 
15117
    public void setSuccessIsSet(boolean value) {
3010 chandransh 15118
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2462 chandransh 15119
    }
15120
 
15121
    public PaymentException getPe() {
15122
      return this.pe;
15123
    }
15124
 
3430 rajveer 15125
    public void setPe(PaymentException pe) {
2462 chandransh 15126
      this.pe = pe;
15127
    }
15128
 
15129
    public void unsetPe() {
15130
      this.pe = null;
15131
    }
15132
 
3430 rajveer 15133
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 15134
    public boolean isSetPe() {
15135
      return this.pe != null;
15136
    }
15137
 
15138
    public void setPeIsSet(boolean value) {
15139
      if (!value) {
15140
        this.pe = null;
15141
      }
15142
    }
15143
 
15144
    public void setFieldValue(_Fields field, Object value) {
15145
      switch (field) {
15146
      case SUCCESS:
15147
        if (value == null) {
15148
          unsetSuccess();
15149
        } else {
3010 chandransh 15150
          setSuccess((Long)value);
2462 chandransh 15151
        }
15152
        break;
15153
 
15154
      case PE:
15155
        if (value == null) {
15156
          unsetPe();
15157
        } else {
15158
          setPe((PaymentException)value);
15159
        }
15160
        break;
15161
 
15162
      }
15163
    }
15164
 
15165
    public Object getFieldValue(_Fields field) {
15166
      switch (field) {
15167
      case SUCCESS:
3430 rajveer 15168
        return Long.valueOf(getSuccess());
2462 chandransh 15169
 
15170
      case PE:
15171
        return getPe();
15172
 
15173
      }
15174
      throw new IllegalStateException();
15175
    }
15176
 
3430 rajveer 15177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15178
    public boolean isSet(_Fields field) {
15179
      if (field == null) {
15180
        throw new IllegalArgumentException();
15181
      }
2462 chandransh 15182
 
15183
      switch (field) {
15184
      case SUCCESS:
15185
        return isSetSuccess();
15186
      case PE:
15187
        return isSetPe();
15188
      }
15189
      throw new IllegalStateException();
15190
    }
15191
 
15192
    @Override
15193
    public boolean equals(Object that) {
15194
      if (that == null)
15195
        return false;
3010 chandransh 15196
      if (that instanceof createRefund_result)
15197
        return this.equals((createRefund_result)that);
2462 chandransh 15198
      return false;
15199
    }
15200
 
3010 chandransh 15201
    public boolean equals(createRefund_result that) {
2462 chandransh 15202
      if (that == null)
15203
        return false;
15204
 
3010 chandransh 15205
      boolean this_present_success = true;
15206
      boolean that_present_success = true;
2462 chandransh 15207
      if (this_present_success || that_present_success) {
15208
        if (!(this_present_success && that_present_success))
15209
          return false;
3010 chandransh 15210
        if (this.success != that.success)
2462 chandransh 15211
          return false;
15212
      }
15213
 
15214
      boolean this_present_pe = true && this.isSetPe();
15215
      boolean that_present_pe = true && that.isSetPe();
15216
      if (this_present_pe || that_present_pe) {
15217
        if (!(this_present_pe && that_present_pe))
15218
          return false;
15219
        if (!this.pe.equals(that.pe))
15220
          return false;
15221
      }
15222
 
15223
      return true;
15224
    }
15225
 
15226
    @Override
15227
    public int hashCode() {
15228
      return 0;
15229
    }
15230
 
3010 chandransh 15231
    public int compareTo(createRefund_result other) {
2462 chandransh 15232
      if (!getClass().equals(other.getClass())) {
15233
        return getClass().getName().compareTo(other.getClass().getName());
15234
      }
15235
 
15236
      int lastComparison = 0;
3010 chandransh 15237
      createRefund_result typedOther = (createRefund_result)other;
2462 chandransh 15238
 
3430 rajveer 15239
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2462 chandransh 15240
      if (lastComparison != 0) {
15241
        return lastComparison;
15242
      }
3430 rajveer 15243
      if (isSetSuccess()) {
15244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15245
        if (lastComparison != 0) {
15246
          return lastComparison;
15247
        }
2462 chandransh 15248
      }
3430 rajveer 15249
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2462 chandransh 15250
      if (lastComparison != 0) {
15251
        return lastComparison;
15252
      }
3430 rajveer 15253
      if (isSetPe()) {
15254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
15255
        if (lastComparison != 0) {
15256
          return lastComparison;
15257
        }
2462 chandransh 15258
      }
15259
      return 0;
15260
    }
15261
 
3430 rajveer 15262
    public _Fields fieldForId(int fieldId) {
15263
      return _Fields.findByThriftId(fieldId);
15264
    }
15265
 
15266
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15267
      org.apache.thrift.protocol.TField field;
2462 chandransh 15268
      iprot.readStructBegin();
15269
      while (true)
15270
      {
15271
        field = iprot.readFieldBegin();
3430 rajveer 15272
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 15273
          break;
15274
        }
3430 rajveer 15275
        switch (field.id) {
15276
          case 0: // SUCCESS
15277
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15278
              this.success = iprot.readI64();
15279
              setSuccessIsSet(true);
15280
            } else { 
15281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15282
            }
15283
            break;
15284
          case 1: // PE
15285
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15286
              this.pe = new PaymentException();
15287
              this.pe.read(iprot);
15288
            } else { 
15289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15290
            }
15291
            break;
15292
          default:
15293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 15294
        }
3430 rajveer 15295
        iprot.readFieldEnd();
2462 chandransh 15296
      }
15297
      iprot.readStructEnd();
15298
      validate();
15299
    }
15300
 
3430 rajveer 15301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 15302
      oprot.writeStructBegin(STRUCT_DESC);
15303
 
15304
      if (this.isSetSuccess()) {
15305
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 15306
        oprot.writeI64(this.success);
2462 chandransh 15307
        oprot.writeFieldEnd();
15308
      } else if (this.isSetPe()) {
15309
        oprot.writeFieldBegin(PE_FIELD_DESC);
15310
        this.pe.write(oprot);
15311
        oprot.writeFieldEnd();
15312
      }
15313
      oprot.writeFieldStop();
15314
      oprot.writeStructEnd();
15315
    }
15316
 
15317
    @Override
15318
    public String toString() {
3010 chandransh 15319
      StringBuilder sb = new StringBuilder("createRefund_result(");
2462 chandransh 15320
      boolean first = true;
15321
 
15322
      sb.append("success:");
3010 chandransh 15323
      sb.append(this.success);
2462 chandransh 15324
      first = false;
15325
      if (!first) sb.append(", ");
15326
      sb.append("pe:");
15327
      if (this.pe == null) {
15328
        sb.append("null");
15329
      } else {
15330
        sb.append(this.pe);
15331
      }
15332
      first = false;
15333
      sb.append(")");
15334
      return sb.toString();
15335
    }
15336
 
3430 rajveer 15337
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 15338
      // check for required fields
15339
    }
15340
 
3430 rajveer 15341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15342
      try {
15343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15344
      } catch (org.apache.thrift.TException te) {
15345
        throw new java.io.IOException(te);
15346
      }
15347
    }
15348
 
15349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15350
      try {
15351
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15352
      } catch (org.apache.thrift.TException te) {
15353
        throw new java.io.IOException(te);
15354
      }
15355
    }
15356
 
2462 chandransh 15357
  }
15358
 
3430 rajveer 15359
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
15360
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
2690 chandransh 15361
 
3430 rajveer 15362
    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);
8618 rajveer 15363
    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)2);
2690 chandransh 15364
 
3430 rajveer 15365
    private long merchantTxnId; // required
8618 rajveer 15366
    private boolean isDigital; // required
2690 chandransh 15367
 
15368
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15369
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8618 rajveer 15370
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
15371
      IS_DIGITAL((short)2, "isDigital");
2690 chandransh 15372
 
15373
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15374
 
15375
      static {
15376
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15377
          byName.put(field.getFieldName(), field);
15378
        }
15379
      }
15380
 
15381
      /**
15382
       * Find the _Fields constant that matches fieldId, or null if its not found.
15383
       */
15384
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15385
        switch(fieldId) {
15386
          case 1: // MERCHANT_TXN_ID
15387
            return MERCHANT_TXN_ID;
8618 rajveer 15388
          case 2: // IS_DIGITAL
15389
            return IS_DIGITAL;
3430 rajveer 15390
          default:
15391
            return null;
15392
        }
2690 chandransh 15393
      }
15394
 
15395
      /**
15396
       * Find the _Fields constant that matches fieldId, throwing an exception
15397
       * if it is not found.
15398
       */
15399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15400
        _Fields fields = findByThriftId(fieldId);
15401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15402
        return fields;
15403
      }
15404
 
15405
      /**
15406
       * Find the _Fields constant that matches name, or null if its not found.
15407
       */
15408
      public static _Fields findByName(String name) {
15409
        return byName.get(name);
15410
      }
15411
 
15412
      private final short _thriftId;
15413
      private final String _fieldName;
15414
 
15415
      _Fields(short thriftId, String fieldName) {
15416
        _thriftId = thriftId;
15417
        _fieldName = fieldName;
15418
      }
15419
 
15420
      public short getThriftFieldId() {
15421
        return _thriftId;
15422
      }
15423
 
15424
      public String getFieldName() {
15425
        return _fieldName;
15426
      }
15427
    }
15428
 
15429
    // isset id assignments
3010 chandransh 15430
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
8618 rajveer 15431
    private static final int __ISDIGITAL_ISSET_ID = 1;
15432
    private BitSet __isset_bit_vector = new BitSet(2);
2690 chandransh 15433
 
3430 rajveer 15434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 15435
    static {
3430 rajveer 15436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15437
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8618 rajveer 15439
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 15441
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15442
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
2690 chandransh 15443
    }
15444
 
3010 chandransh 15445
    public capturePayment_args() {
2690 chandransh 15446
    }
15447
 
3010 chandransh 15448
    public capturePayment_args(
8618 rajveer 15449
      long merchantTxnId,
15450
      boolean isDigital)
2690 chandransh 15451
    {
15452
      this();
15453
      this.merchantTxnId = merchantTxnId;
15454
      setMerchantTxnIdIsSet(true);
8618 rajveer 15455
      this.isDigital = isDigital;
15456
      setIsDigitalIsSet(true);
2690 chandransh 15457
    }
15458
 
15459
    /**
15460
     * Performs a deep copy on <i>other</i>.
15461
     */
3010 chandransh 15462
    public capturePayment_args(capturePayment_args other) {
2690 chandransh 15463
      __isset_bit_vector.clear();
15464
      __isset_bit_vector.or(other.__isset_bit_vector);
15465
      this.merchantTxnId = other.merchantTxnId;
8618 rajveer 15466
      this.isDigital = other.isDigital;
2690 chandransh 15467
    }
15468
 
3010 chandransh 15469
    public capturePayment_args deepCopy() {
15470
      return new capturePayment_args(this);
2690 chandransh 15471
    }
15472
 
3430 rajveer 15473
    @Override
15474
    public void clear() {
15475
      setMerchantTxnIdIsSet(false);
15476
      this.merchantTxnId = 0;
8618 rajveer 15477
      setIsDigitalIsSet(false);
15478
      this.isDigital = false;
2690 chandransh 15479
    }
15480
 
15481
    public long getMerchantTxnId() {
15482
      return this.merchantTxnId;
15483
    }
15484
 
3430 rajveer 15485
    public void setMerchantTxnId(long merchantTxnId) {
2690 chandransh 15486
      this.merchantTxnId = merchantTxnId;
15487
      setMerchantTxnIdIsSet(true);
15488
    }
15489
 
15490
    public void unsetMerchantTxnId() {
15491
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
15492
    }
15493
 
3430 rajveer 15494
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
2690 chandransh 15495
    public boolean isSetMerchantTxnId() {
15496
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
15497
    }
15498
 
15499
    public void setMerchantTxnIdIsSet(boolean value) {
15500
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
15501
    }
15502
 
8618 rajveer 15503
    public boolean isIsDigital() {
15504
      return this.isDigital;
15505
    }
15506
 
15507
    public void setIsDigital(boolean isDigital) {
15508
      this.isDigital = isDigital;
15509
      setIsDigitalIsSet(true);
15510
    }
15511
 
15512
    public void unsetIsDigital() {
15513
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
15514
    }
15515
 
15516
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
15517
    public boolean isSetIsDigital() {
15518
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
15519
    }
15520
 
15521
    public void setIsDigitalIsSet(boolean value) {
15522
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
15523
    }
15524
 
2690 chandransh 15525
    public void setFieldValue(_Fields field, Object value) {
15526
      switch (field) {
15527
      case MERCHANT_TXN_ID:
15528
        if (value == null) {
15529
          unsetMerchantTxnId();
15530
        } else {
15531
          setMerchantTxnId((Long)value);
15532
        }
15533
        break;
15534
 
8618 rajveer 15535
      case IS_DIGITAL:
15536
        if (value == null) {
15537
          unsetIsDigital();
15538
        } else {
15539
          setIsDigital((Boolean)value);
15540
        }
15541
        break;
15542
 
2690 chandransh 15543
      }
15544
    }
15545
 
15546
    public Object getFieldValue(_Fields field) {
15547
      switch (field) {
15548
      case MERCHANT_TXN_ID:
3430 rajveer 15549
        return Long.valueOf(getMerchantTxnId());
2690 chandransh 15550
 
8618 rajveer 15551
      case IS_DIGITAL:
15552
        return Boolean.valueOf(isIsDigital());
15553
 
2690 chandransh 15554
      }
15555
      throw new IllegalStateException();
15556
    }
15557
 
3430 rajveer 15558
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15559
    public boolean isSet(_Fields field) {
15560
      if (field == null) {
15561
        throw new IllegalArgumentException();
15562
      }
2690 chandransh 15563
 
15564
      switch (field) {
15565
      case MERCHANT_TXN_ID:
15566
        return isSetMerchantTxnId();
8618 rajveer 15567
      case IS_DIGITAL:
15568
        return isSetIsDigital();
2690 chandransh 15569
      }
15570
      throw new IllegalStateException();
15571
    }
15572
 
15573
    @Override
15574
    public boolean equals(Object that) {
15575
      if (that == null)
15576
        return false;
3010 chandransh 15577
      if (that instanceof capturePayment_args)
15578
        return this.equals((capturePayment_args)that);
2690 chandransh 15579
      return false;
15580
    }
15581
 
3010 chandransh 15582
    public boolean equals(capturePayment_args that) {
2690 chandransh 15583
      if (that == null)
15584
        return false;
15585
 
15586
      boolean this_present_merchantTxnId = true;
15587
      boolean that_present_merchantTxnId = true;
15588
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
15589
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
15590
          return false;
15591
        if (this.merchantTxnId != that.merchantTxnId)
15592
          return false;
15593
      }
15594
 
8618 rajveer 15595
      boolean this_present_isDigital = true;
15596
      boolean that_present_isDigital = true;
15597
      if (this_present_isDigital || that_present_isDigital) {
15598
        if (!(this_present_isDigital && that_present_isDigital))
15599
          return false;
15600
        if (this.isDigital != that.isDigital)
15601
          return false;
15602
      }
15603
 
2690 chandransh 15604
      return true;
15605
    }
15606
 
15607
    @Override
15608
    public int hashCode() {
15609
      return 0;
15610
    }
15611
 
3010 chandransh 15612
    public int compareTo(capturePayment_args other) {
2690 chandransh 15613
      if (!getClass().equals(other.getClass())) {
15614
        return getClass().getName().compareTo(other.getClass().getName());
15615
      }
15616
 
15617
      int lastComparison = 0;
3010 chandransh 15618
      capturePayment_args typedOther = (capturePayment_args)other;
2690 chandransh 15619
 
3430 rajveer 15620
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
2690 chandransh 15621
      if (lastComparison != 0) {
15622
        return lastComparison;
15623
      }
3430 rajveer 15624
      if (isSetMerchantTxnId()) {
15625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
15626
        if (lastComparison != 0) {
15627
          return lastComparison;
15628
        }
2690 chandransh 15629
      }
8618 rajveer 15630
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
15631
      if (lastComparison != 0) {
15632
        return lastComparison;
15633
      }
15634
      if (isSetIsDigital()) {
15635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
15636
        if (lastComparison != 0) {
15637
          return lastComparison;
15638
        }
15639
      }
2690 chandransh 15640
      return 0;
15641
    }
15642
 
3430 rajveer 15643
    public _Fields fieldForId(int fieldId) {
15644
      return _Fields.findByThriftId(fieldId);
15645
    }
15646
 
15647
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15648
      org.apache.thrift.protocol.TField field;
2690 chandransh 15649
      iprot.readStructBegin();
15650
      while (true)
15651
      {
15652
        field = iprot.readFieldBegin();
3430 rajveer 15653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 15654
          break;
15655
        }
3430 rajveer 15656
        switch (field.id) {
15657
          case 1: // MERCHANT_TXN_ID
15658
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15659
              this.merchantTxnId = iprot.readI64();
15660
              setMerchantTxnIdIsSet(true);
15661
            } else { 
15662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15663
            }
15664
            break;
8618 rajveer 15665
          case 2: // IS_DIGITAL
15666
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15667
              this.isDigital = iprot.readBool();
15668
              setIsDigitalIsSet(true);
15669
            } else { 
15670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15671
            }
15672
            break;
3430 rajveer 15673
          default:
15674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 15675
        }
3430 rajveer 15676
        iprot.readFieldEnd();
2690 chandransh 15677
      }
15678
      iprot.readStructEnd();
15679
      validate();
15680
    }
15681
 
3430 rajveer 15682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 15683
      validate();
15684
 
15685
      oprot.writeStructBegin(STRUCT_DESC);
15686
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
15687
      oprot.writeI64(this.merchantTxnId);
15688
      oprot.writeFieldEnd();
8618 rajveer 15689
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
15690
      oprot.writeBool(this.isDigital);
15691
      oprot.writeFieldEnd();
2690 chandransh 15692
      oprot.writeFieldStop();
15693
      oprot.writeStructEnd();
15694
    }
15695
 
15696
    @Override
15697
    public String toString() {
3010 chandransh 15698
      StringBuilder sb = new StringBuilder("capturePayment_args(");
2690 chandransh 15699
      boolean first = true;
15700
 
15701
      sb.append("merchantTxnId:");
15702
      sb.append(this.merchantTxnId);
15703
      first = false;
8618 rajveer 15704
      if (!first) sb.append(", ");
15705
      sb.append("isDigital:");
15706
      sb.append(this.isDigital);
15707
      first = false;
2690 chandransh 15708
      sb.append(")");
15709
      return sb.toString();
15710
    }
15711
 
3430 rajveer 15712
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 15713
      // check for required fields
15714
    }
15715
 
3430 rajveer 15716
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15717
      try {
15718
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15719
      } catch (org.apache.thrift.TException te) {
15720
        throw new java.io.IOException(te);
15721
      }
15722
    }
15723
 
15724
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15725
      try {
15726
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15727
      } catch (org.apache.thrift.TException te) {
15728
        throw new java.io.IOException(te);
15729
      }
15730
    }
15731
 
2690 chandransh 15732
  }
15733
 
3430 rajveer 15734
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
15735
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
2690 chandransh 15736
 
3430 rajveer 15737
    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);
15738
    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 15739
 
3430 rajveer 15740
    private boolean success; // required
15741
    private PaymentException pe; // required
2690 chandransh 15742
 
15743
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15744
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 15745
      SUCCESS((short)0, "success"),
15746
      PE((short)1, "pe");
15747
 
15748
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15749
 
15750
      static {
15751
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15752
          byName.put(field.getFieldName(), field);
15753
        }
15754
      }
15755
 
15756
      /**
15757
       * Find the _Fields constant that matches fieldId, or null if its not found.
15758
       */
15759
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15760
        switch(fieldId) {
15761
          case 0: // SUCCESS
15762
            return SUCCESS;
15763
          case 1: // PE
15764
            return PE;
15765
          default:
15766
            return null;
15767
        }
2690 chandransh 15768
      }
15769
 
15770
      /**
15771
       * Find the _Fields constant that matches fieldId, throwing an exception
15772
       * if it is not found.
15773
       */
15774
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15775
        _Fields fields = findByThriftId(fieldId);
15776
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15777
        return fields;
15778
      }
15779
 
15780
      /**
15781
       * Find the _Fields constant that matches name, or null if its not found.
15782
       */
15783
      public static _Fields findByName(String name) {
15784
        return byName.get(name);
15785
      }
15786
 
15787
      private final short _thriftId;
15788
      private final String _fieldName;
15789
 
15790
      _Fields(short thriftId, String fieldName) {
15791
        _thriftId = thriftId;
15792
        _fieldName = fieldName;
15793
      }
15794
 
15795
      public short getThriftFieldId() {
15796
        return _thriftId;
15797
      }
15798
 
15799
      public String getFieldName() {
15800
        return _fieldName;
15801
      }
15802
    }
15803
 
15804
    // isset id assignments
15805
    private static final int __SUCCESS_ISSET_ID = 0;
15806
    private BitSet __isset_bit_vector = new BitSet(1);
15807
 
3430 rajveer 15808
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 15809
    static {
3430 rajveer 15810
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15811
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15812
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15813
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15814
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15815
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15816
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
2690 chandransh 15817
    }
15818
 
3010 chandransh 15819
    public capturePayment_result() {
2690 chandransh 15820
    }
15821
 
3010 chandransh 15822
    public capturePayment_result(
15823
      boolean success,
2690 chandransh 15824
      PaymentException pe)
15825
    {
15826
      this();
15827
      this.success = success;
15828
      setSuccessIsSet(true);
15829
      this.pe = pe;
15830
    }
15831
 
15832
    /**
15833
     * Performs a deep copy on <i>other</i>.
15834
     */
3010 chandransh 15835
    public capturePayment_result(capturePayment_result other) {
2690 chandransh 15836
      __isset_bit_vector.clear();
15837
      __isset_bit_vector.or(other.__isset_bit_vector);
15838
      this.success = other.success;
15839
      if (other.isSetPe()) {
15840
        this.pe = new PaymentException(other.pe);
15841
      }
15842
    }
15843
 
3010 chandransh 15844
    public capturePayment_result deepCopy() {
15845
      return new capturePayment_result(this);
2690 chandransh 15846
    }
15847
 
3430 rajveer 15848
    @Override
15849
    public void clear() {
15850
      setSuccessIsSet(false);
15851
      this.success = false;
15852
      this.pe = null;
2690 chandransh 15853
    }
15854
 
3010 chandransh 15855
    public boolean isSuccess() {
2690 chandransh 15856
      return this.success;
15857
    }
15858
 
3430 rajveer 15859
    public void setSuccess(boolean success) {
2690 chandransh 15860
      this.success = success;
15861
      setSuccessIsSet(true);
15862
    }
15863
 
15864
    public void unsetSuccess() {
15865
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15866
    }
15867
 
3430 rajveer 15868
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 15869
    public boolean isSetSuccess() {
15870
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15871
    }
15872
 
15873
    public void setSuccessIsSet(boolean value) {
15874
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15875
    }
15876
 
15877
    public PaymentException getPe() {
15878
      return this.pe;
15879
    }
15880
 
3430 rajveer 15881
    public void setPe(PaymentException pe) {
2690 chandransh 15882
      this.pe = pe;
15883
    }
15884
 
15885
    public void unsetPe() {
15886
      this.pe = null;
15887
    }
15888
 
3430 rajveer 15889
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2690 chandransh 15890
    public boolean isSetPe() {
15891
      return this.pe != null;
15892
    }
15893
 
15894
    public void setPeIsSet(boolean value) {
15895
      if (!value) {
15896
        this.pe = null;
15897
      }
15898
    }
15899
 
15900
    public void setFieldValue(_Fields field, Object value) {
15901
      switch (field) {
15902
      case SUCCESS:
15903
        if (value == null) {
15904
          unsetSuccess();
15905
        } else {
3010 chandransh 15906
          setSuccess((Boolean)value);
2690 chandransh 15907
        }
15908
        break;
15909
 
15910
      case PE:
15911
        if (value == null) {
15912
          unsetPe();
15913
        } else {
15914
          setPe((PaymentException)value);
15915
        }
15916
        break;
15917
 
15918
      }
15919
    }
15920
 
15921
    public Object getFieldValue(_Fields field) {
15922
      switch (field) {
15923
      case SUCCESS:
3430 rajveer 15924
        return Boolean.valueOf(isSuccess());
2690 chandransh 15925
 
15926
      case PE:
15927
        return getPe();
15928
 
15929
      }
15930
      throw new IllegalStateException();
15931
    }
15932
 
3430 rajveer 15933
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15934
    public boolean isSet(_Fields field) {
15935
      if (field == null) {
15936
        throw new IllegalArgumentException();
15937
      }
2690 chandransh 15938
 
15939
      switch (field) {
15940
      case SUCCESS:
15941
        return isSetSuccess();
15942
      case PE:
15943
        return isSetPe();
15944
      }
15945
      throw new IllegalStateException();
15946
    }
15947
 
15948
    @Override
15949
    public boolean equals(Object that) {
15950
      if (that == null)
15951
        return false;
3010 chandransh 15952
      if (that instanceof capturePayment_result)
15953
        return this.equals((capturePayment_result)that);
2690 chandransh 15954
      return false;
15955
    }
15956
 
3010 chandransh 15957
    public boolean equals(capturePayment_result that) {
2690 chandransh 15958
      if (that == null)
15959
        return false;
15960
 
15961
      boolean this_present_success = true;
15962
      boolean that_present_success = true;
15963
      if (this_present_success || that_present_success) {
15964
        if (!(this_present_success && that_present_success))
15965
          return false;
15966
        if (this.success != that.success)
15967
          return false;
15968
      }
15969
 
15970
      boolean this_present_pe = true && this.isSetPe();
15971
      boolean that_present_pe = true && that.isSetPe();
15972
      if (this_present_pe || that_present_pe) {
15973
        if (!(this_present_pe && that_present_pe))
15974
          return false;
15975
        if (!this.pe.equals(that.pe))
15976
          return false;
15977
      }
15978
 
15979
      return true;
15980
    }
15981
 
15982
    @Override
15983
    public int hashCode() {
15984
      return 0;
15985
    }
15986
 
3010 chandransh 15987
    public int compareTo(capturePayment_result other) {
2690 chandransh 15988
      if (!getClass().equals(other.getClass())) {
15989
        return getClass().getName().compareTo(other.getClass().getName());
15990
      }
15991
 
15992
      int lastComparison = 0;
3010 chandransh 15993
      capturePayment_result typedOther = (capturePayment_result)other;
2690 chandransh 15994
 
3430 rajveer 15995
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 15996
      if (lastComparison != 0) {
15997
        return lastComparison;
15998
      }
3430 rajveer 15999
      if (isSetSuccess()) {
16000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16001
        if (lastComparison != 0) {
16002
          return lastComparison;
16003
        }
2690 chandransh 16004
      }
3430 rajveer 16005
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2690 chandransh 16006
      if (lastComparison != 0) {
16007
        return lastComparison;
16008
      }
3430 rajveer 16009
      if (isSetPe()) {
16010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
16011
        if (lastComparison != 0) {
16012
          return lastComparison;
16013
        }
2690 chandransh 16014
      }
16015
      return 0;
16016
    }
16017
 
3430 rajveer 16018
    public _Fields fieldForId(int fieldId) {
16019
      return _Fields.findByThriftId(fieldId);
16020
    }
16021
 
16022
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16023
      org.apache.thrift.protocol.TField field;
2690 chandransh 16024
      iprot.readStructBegin();
16025
      while (true)
16026
      {
16027
        field = iprot.readFieldBegin();
3430 rajveer 16028
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 16029
          break;
16030
        }
3430 rajveer 16031
        switch (field.id) {
16032
          case 0: // SUCCESS
16033
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16034
              this.success = iprot.readBool();
16035
              setSuccessIsSet(true);
16036
            } else { 
16037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16038
            }
16039
            break;
16040
          case 1: // PE
16041
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16042
              this.pe = new PaymentException();
16043
              this.pe.read(iprot);
16044
            } else { 
16045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16046
            }
16047
            break;
16048
          default:
16049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 16050
        }
3430 rajveer 16051
        iprot.readFieldEnd();
2690 chandransh 16052
      }
16053
      iprot.readStructEnd();
16054
      validate();
16055
    }
16056
 
3430 rajveer 16057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 16058
      oprot.writeStructBegin(STRUCT_DESC);
16059
 
16060
      if (this.isSetSuccess()) {
16061
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 16062
        oprot.writeBool(this.success);
2690 chandransh 16063
        oprot.writeFieldEnd();
16064
      } else if (this.isSetPe()) {
16065
        oprot.writeFieldBegin(PE_FIELD_DESC);
16066
        this.pe.write(oprot);
16067
        oprot.writeFieldEnd();
16068
      }
16069
      oprot.writeFieldStop();
16070
      oprot.writeStructEnd();
16071
    }
16072
 
16073
    @Override
16074
    public String toString() {
3010 chandransh 16075
      StringBuilder sb = new StringBuilder("capturePayment_result(");
2690 chandransh 16076
      boolean first = true;
16077
 
16078
      sb.append("success:");
16079
      sb.append(this.success);
16080
      first = false;
16081
      if (!first) sb.append(", ");
16082
      sb.append("pe:");
16083
      if (this.pe == null) {
16084
        sb.append("null");
16085
      } else {
16086
        sb.append(this.pe);
16087
      }
16088
      first = false;
16089
      sb.append(")");
16090
      return sb.toString();
16091
    }
16092
 
3430 rajveer 16093
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 16094
      // check for required fields
16095
    }
16096
 
3430 rajveer 16097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16098
      try {
16099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16100
      } catch (org.apache.thrift.TException te) {
16101
        throw new java.io.IOException(te);
16102
      }
16103
    }
16104
 
16105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16106
      try {
16107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16108
      } catch (org.apache.thrift.TException te) {
16109
        throw new java.io.IOException(te);
16110
      }
16111
    }
16112
 
2690 chandransh 16113
  }
16114
 
6486 rajveer 16115
  public static class refundPayment_args implements org.apache.thrift.TBase<refundPayment_args, refundPayment_args._Fields>, java.io.Serializable, Cloneable   {
16116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundPayment_args");
16117
 
16118
    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);
16119
    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);
16120
    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);
16121
 
16122
    private long merchantTxnId; // required
16123
    private double amount; // required
16124
    private boolean isDigital; // required
16125
 
16126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16128
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
16129
      AMOUNT((short)2, "amount"),
16130
      IS_DIGITAL((short)3, "isDigital");
16131
 
16132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16133
 
16134
      static {
16135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16136
          byName.put(field.getFieldName(), field);
16137
        }
16138
      }
16139
 
16140
      /**
16141
       * Find the _Fields constant that matches fieldId, or null if its not found.
16142
       */
16143
      public static _Fields findByThriftId(int fieldId) {
16144
        switch(fieldId) {
16145
          case 1: // MERCHANT_TXN_ID
16146
            return MERCHANT_TXN_ID;
16147
          case 2: // AMOUNT
16148
            return AMOUNT;
16149
          case 3: // IS_DIGITAL
16150
            return IS_DIGITAL;
16151
          default:
16152
            return null;
16153
        }
16154
      }
16155
 
16156
      /**
16157
       * Find the _Fields constant that matches fieldId, throwing an exception
16158
       * if it is not found.
16159
       */
16160
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16161
        _Fields fields = findByThriftId(fieldId);
16162
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16163
        return fields;
16164
      }
16165
 
16166
      /**
16167
       * Find the _Fields constant that matches name, or null if its not found.
16168
       */
16169
      public static _Fields findByName(String name) {
16170
        return byName.get(name);
16171
      }
16172
 
16173
      private final short _thriftId;
16174
      private final String _fieldName;
16175
 
16176
      _Fields(short thriftId, String fieldName) {
16177
        _thriftId = thriftId;
16178
        _fieldName = fieldName;
16179
      }
16180
 
16181
      public short getThriftFieldId() {
16182
        return _thriftId;
16183
      }
16184
 
16185
      public String getFieldName() {
16186
        return _fieldName;
16187
      }
16188
    }
16189
 
16190
    // isset id assignments
16191
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
16192
    private static final int __AMOUNT_ISSET_ID = 1;
16193
    private static final int __ISDIGITAL_ISSET_ID = 2;
16194
    private BitSet __isset_bit_vector = new BitSet(3);
16195
 
16196
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16197
    static {
16198
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16199
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16201
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16202
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
16203
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16204
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16205
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16206
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundPayment_args.class, metaDataMap);
16207
    }
16208
 
16209
    public refundPayment_args() {
16210
    }
16211
 
16212
    public refundPayment_args(
16213
      long merchantTxnId,
16214
      double amount,
16215
      boolean isDigital)
16216
    {
16217
      this();
16218
      this.merchantTxnId = merchantTxnId;
16219
      setMerchantTxnIdIsSet(true);
16220
      this.amount = amount;
16221
      setAmountIsSet(true);
16222
      this.isDigital = isDigital;
16223
      setIsDigitalIsSet(true);
16224
    }
16225
 
16226
    /**
16227
     * Performs a deep copy on <i>other</i>.
16228
     */
16229
    public refundPayment_args(refundPayment_args other) {
16230
      __isset_bit_vector.clear();
16231
      __isset_bit_vector.or(other.__isset_bit_vector);
16232
      this.merchantTxnId = other.merchantTxnId;
16233
      this.amount = other.amount;
16234
      this.isDigital = other.isDigital;
16235
    }
16236
 
16237
    public refundPayment_args deepCopy() {
16238
      return new refundPayment_args(this);
16239
    }
16240
 
16241
    @Override
16242
    public void clear() {
16243
      setMerchantTxnIdIsSet(false);
16244
      this.merchantTxnId = 0;
16245
      setAmountIsSet(false);
16246
      this.amount = 0.0;
16247
      setIsDigitalIsSet(false);
16248
      this.isDigital = false;
16249
    }
16250
 
16251
    public long getMerchantTxnId() {
16252
      return this.merchantTxnId;
16253
    }
16254
 
16255
    public void setMerchantTxnId(long merchantTxnId) {
16256
      this.merchantTxnId = merchantTxnId;
16257
      setMerchantTxnIdIsSet(true);
16258
    }
16259
 
16260
    public void unsetMerchantTxnId() {
16261
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
16262
    }
16263
 
16264
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
16265
    public boolean isSetMerchantTxnId() {
16266
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
16267
    }
16268
 
16269
    public void setMerchantTxnIdIsSet(boolean value) {
16270
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
16271
    }
16272
 
16273
    public double getAmount() {
16274
      return this.amount;
16275
    }
16276
 
16277
    public void setAmount(double amount) {
16278
      this.amount = amount;
16279
      setAmountIsSet(true);
16280
    }
16281
 
16282
    public void unsetAmount() {
16283
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
16284
    }
16285
 
16286
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
16287
    public boolean isSetAmount() {
16288
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
16289
    }
16290
 
16291
    public void setAmountIsSet(boolean value) {
16292
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
16293
    }
16294
 
16295
    public boolean isIsDigital() {
16296
      return this.isDigital;
16297
    }
16298
 
16299
    public void setIsDigital(boolean isDigital) {
16300
      this.isDigital = isDigital;
16301
      setIsDigitalIsSet(true);
16302
    }
16303
 
16304
    public void unsetIsDigital() {
16305
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
16306
    }
16307
 
16308
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
16309
    public boolean isSetIsDigital() {
16310
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
16311
    }
16312
 
16313
    public void setIsDigitalIsSet(boolean value) {
16314
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
16315
    }
16316
 
16317
    public void setFieldValue(_Fields field, Object value) {
16318
      switch (field) {
16319
      case MERCHANT_TXN_ID:
16320
        if (value == null) {
16321
          unsetMerchantTxnId();
16322
        } else {
16323
          setMerchantTxnId((Long)value);
16324
        }
16325
        break;
16326
 
16327
      case AMOUNT:
16328
        if (value == null) {
16329
          unsetAmount();
16330
        } else {
16331
          setAmount((Double)value);
16332
        }
16333
        break;
16334
 
16335
      case IS_DIGITAL:
16336
        if (value == null) {
16337
          unsetIsDigital();
16338
        } else {
16339
          setIsDigital((Boolean)value);
16340
        }
16341
        break;
16342
 
16343
      }
16344
    }
16345
 
16346
    public Object getFieldValue(_Fields field) {
16347
      switch (field) {
16348
      case MERCHANT_TXN_ID:
16349
        return Long.valueOf(getMerchantTxnId());
16350
 
16351
      case AMOUNT:
16352
        return Double.valueOf(getAmount());
16353
 
16354
      case IS_DIGITAL:
16355
        return Boolean.valueOf(isIsDigital());
16356
 
16357
      }
16358
      throw new IllegalStateException();
16359
    }
16360
 
16361
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16362
    public boolean isSet(_Fields field) {
16363
      if (field == null) {
16364
        throw new IllegalArgumentException();
16365
      }
16366
 
16367
      switch (field) {
16368
      case MERCHANT_TXN_ID:
16369
        return isSetMerchantTxnId();
16370
      case AMOUNT:
16371
        return isSetAmount();
16372
      case IS_DIGITAL:
16373
        return isSetIsDigital();
16374
      }
16375
      throw new IllegalStateException();
16376
    }
16377
 
16378
    @Override
16379
    public boolean equals(Object that) {
16380
      if (that == null)
16381
        return false;
16382
      if (that instanceof refundPayment_args)
16383
        return this.equals((refundPayment_args)that);
16384
      return false;
16385
    }
16386
 
16387
    public boolean equals(refundPayment_args that) {
16388
      if (that == null)
16389
        return false;
16390
 
16391
      boolean this_present_merchantTxnId = true;
16392
      boolean that_present_merchantTxnId = true;
16393
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
16394
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
16395
          return false;
16396
        if (this.merchantTxnId != that.merchantTxnId)
16397
          return false;
16398
      }
16399
 
16400
      boolean this_present_amount = true;
16401
      boolean that_present_amount = true;
16402
      if (this_present_amount || that_present_amount) {
16403
        if (!(this_present_amount && that_present_amount))
16404
          return false;
16405
        if (this.amount != that.amount)
16406
          return false;
16407
      }
16408
 
16409
      boolean this_present_isDigital = true;
16410
      boolean that_present_isDigital = true;
16411
      if (this_present_isDigital || that_present_isDigital) {
16412
        if (!(this_present_isDigital && that_present_isDigital))
16413
          return false;
16414
        if (this.isDigital != that.isDigital)
16415
          return false;
16416
      }
16417
 
16418
      return true;
16419
    }
16420
 
16421
    @Override
16422
    public int hashCode() {
16423
      return 0;
16424
    }
16425
 
16426
    public int compareTo(refundPayment_args other) {
16427
      if (!getClass().equals(other.getClass())) {
16428
        return getClass().getName().compareTo(other.getClass().getName());
16429
      }
16430
 
16431
      int lastComparison = 0;
16432
      refundPayment_args typedOther = (refundPayment_args)other;
16433
 
16434
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
16435
      if (lastComparison != 0) {
16436
        return lastComparison;
16437
      }
16438
      if (isSetMerchantTxnId()) {
16439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
16440
        if (lastComparison != 0) {
16441
          return lastComparison;
16442
        }
16443
      }
16444
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
16445
      if (lastComparison != 0) {
16446
        return lastComparison;
16447
      }
16448
      if (isSetAmount()) {
16449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
16450
        if (lastComparison != 0) {
16451
          return lastComparison;
16452
        }
16453
      }
16454
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
16455
      if (lastComparison != 0) {
16456
        return lastComparison;
16457
      }
16458
      if (isSetIsDigital()) {
16459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
16460
        if (lastComparison != 0) {
16461
          return lastComparison;
16462
        }
16463
      }
16464
      return 0;
16465
    }
16466
 
16467
    public _Fields fieldForId(int fieldId) {
16468
      return _Fields.findByThriftId(fieldId);
16469
    }
16470
 
16471
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16472
      org.apache.thrift.protocol.TField field;
16473
      iprot.readStructBegin();
16474
      while (true)
16475
      {
16476
        field = iprot.readFieldBegin();
16477
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16478
          break;
16479
        }
16480
        switch (field.id) {
16481
          case 1: // MERCHANT_TXN_ID
16482
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16483
              this.merchantTxnId = iprot.readI64();
16484
              setMerchantTxnIdIsSet(true);
16485
            } else { 
16486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16487
            }
16488
            break;
16489
          case 2: // AMOUNT
16490
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
16491
              this.amount = iprot.readDouble();
16492
              setAmountIsSet(true);
16493
            } else { 
16494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16495
            }
16496
            break;
16497
          case 3: // IS_DIGITAL
16498
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16499
              this.isDigital = iprot.readBool();
16500
              setIsDigitalIsSet(true);
16501
            } else { 
16502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16503
            }
16504
            break;
16505
          default:
16506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16507
        }
16508
        iprot.readFieldEnd();
16509
      }
16510
      iprot.readStructEnd();
16511
      validate();
16512
    }
16513
 
16514
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16515
      validate();
16516
 
16517
      oprot.writeStructBegin(STRUCT_DESC);
16518
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
16519
      oprot.writeI64(this.merchantTxnId);
16520
      oprot.writeFieldEnd();
16521
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
16522
      oprot.writeDouble(this.amount);
16523
      oprot.writeFieldEnd();
16524
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
16525
      oprot.writeBool(this.isDigital);
16526
      oprot.writeFieldEnd();
16527
      oprot.writeFieldStop();
16528
      oprot.writeStructEnd();
16529
    }
16530
 
16531
    @Override
16532
    public String toString() {
16533
      StringBuilder sb = new StringBuilder("refundPayment_args(");
16534
      boolean first = true;
16535
 
16536
      sb.append("merchantTxnId:");
16537
      sb.append(this.merchantTxnId);
16538
      first = false;
16539
      if (!first) sb.append(", ");
16540
      sb.append("amount:");
16541
      sb.append(this.amount);
16542
      first = false;
16543
      if (!first) sb.append(", ");
16544
      sb.append("isDigital:");
16545
      sb.append(this.isDigital);
16546
      first = false;
16547
      sb.append(")");
16548
      return sb.toString();
16549
    }
16550
 
16551
    public void validate() throws org.apache.thrift.TException {
16552
      // check for required fields
16553
    }
16554
 
16555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16556
      try {
16557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16558
      } catch (org.apache.thrift.TException te) {
16559
        throw new java.io.IOException(te);
16560
      }
16561
    }
16562
 
16563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16564
      try {
16565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16566
      } catch (org.apache.thrift.TException te) {
16567
        throw new java.io.IOException(te);
16568
      }
16569
    }
16570
 
16571
  }
16572
 
16573
  public static class refundPayment_result implements org.apache.thrift.TBase<refundPayment_result, refundPayment_result._Fields>, java.io.Serializable, Cloneable   {
16574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundPayment_result");
16575
 
16576
    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);
16577
    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);
16578
 
16579
    private boolean success; // required
16580
    private PaymentException pe; // required
16581
 
16582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16584
      SUCCESS((short)0, "success"),
16585
      PE((short)1, "pe");
16586
 
16587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16588
 
16589
      static {
16590
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16591
          byName.put(field.getFieldName(), field);
16592
        }
16593
      }
16594
 
16595
      /**
16596
       * Find the _Fields constant that matches fieldId, or null if its not found.
16597
       */
16598
      public static _Fields findByThriftId(int fieldId) {
16599
        switch(fieldId) {
16600
          case 0: // SUCCESS
16601
            return SUCCESS;
16602
          case 1: // PE
16603
            return PE;
16604
          default:
16605
            return null;
16606
        }
16607
      }
16608
 
16609
      /**
16610
       * Find the _Fields constant that matches fieldId, throwing an exception
16611
       * if it is not found.
16612
       */
16613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16614
        _Fields fields = findByThriftId(fieldId);
16615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16616
        return fields;
16617
      }
16618
 
16619
      /**
16620
       * Find the _Fields constant that matches name, or null if its not found.
16621
       */
16622
      public static _Fields findByName(String name) {
16623
        return byName.get(name);
16624
      }
16625
 
16626
      private final short _thriftId;
16627
      private final String _fieldName;
16628
 
16629
      _Fields(short thriftId, String fieldName) {
16630
        _thriftId = thriftId;
16631
        _fieldName = fieldName;
16632
      }
16633
 
16634
      public short getThriftFieldId() {
16635
        return _thriftId;
16636
      }
16637
 
16638
      public String getFieldName() {
16639
        return _fieldName;
16640
      }
16641
    }
16642
 
16643
    // isset id assignments
16644
    private static final int __SUCCESS_ISSET_ID = 0;
16645
    private BitSet __isset_bit_vector = new BitSet(1);
16646
 
16647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16648
    static {
16649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16650
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16652
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16653
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundPayment_result.class, metaDataMap);
16656
    }
16657
 
16658
    public refundPayment_result() {
16659
    }
16660
 
16661
    public refundPayment_result(
16662
      boolean success,
16663
      PaymentException pe)
16664
    {
16665
      this();
16666
      this.success = success;
16667
      setSuccessIsSet(true);
16668
      this.pe = pe;
16669
    }
16670
 
16671
    /**
16672
     * Performs a deep copy on <i>other</i>.
16673
     */
16674
    public refundPayment_result(refundPayment_result other) {
16675
      __isset_bit_vector.clear();
16676
      __isset_bit_vector.or(other.__isset_bit_vector);
16677
      this.success = other.success;
16678
      if (other.isSetPe()) {
16679
        this.pe = new PaymentException(other.pe);
16680
      }
16681
    }
16682
 
16683
    public refundPayment_result deepCopy() {
16684
      return new refundPayment_result(this);
16685
    }
16686
 
16687
    @Override
16688
    public void clear() {
16689
      setSuccessIsSet(false);
16690
      this.success = false;
16691
      this.pe = null;
16692
    }
16693
 
16694
    public boolean isSuccess() {
16695
      return this.success;
16696
    }
16697
 
16698
    public void setSuccess(boolean success) {
16699
      this.success = success;
16700
      setSuccessIsSet(true);
16701
    }
16702
 
16703
    public void unsetSuccess() {
16704
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16705
    }
16706
 
16707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16708
    public boolean isSetSuccess() {
16709
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16710
    }
16711
 
16712
    public void setSuccessIsSet(boolean value) {
16713
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16714
    }
16715
 
16716
    public PaymentException getPe() {
16717
      return this.pe;
16718
    }
16719
 
16720
    public void setPe(PaymentException pe) {
16721
      this.pe = pe;
16722
    }
16723
 
16724
    public void unsetPe() {
16725
      this.pe = null;
16726
    }
16727
 
16728
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
16729
    public boolean isSetPe() {
16730
      return this.pe != null;
16731
    }
16732
 
16733
    public void setPeIsSet(boolean value) {
16734
      if (!value) {
16735
        this.pe = null;
16736
      }
16737
    }
16738
 
16739
    public void setFieldValue(_Fields field, Object value) {
16740
      switch (field) {
16741
      case SUCCESS:
16742
        if (value == null) {
16743
          unsetSuccess();
16744
        } else {
16745
          setSuccess((Boolean)value);
16746
        }
16747
        break;
16748
 
16749
      case PE:
16750
        if (value == null) {
16751
          unsetPe();
16752
        } else {
16753
          setPe((PaymentException)value);
16754
        }
16755
        break;
16756
 
16757
      }
16758
    }
16759
 
16760
    public Object getFieldValue(_Fields field) {
16761
      switch (field) {
16762
      case SUCCESS:
16763
        return Boolean.valueOf(isSuccess());
16764
 
16765
      case PE:
16766
        return getPe();
16767
 
16768
      }
16769
      throw new IllegalStateException();
16770
    }
16771
 
16772
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16773
    public boolean isSet(_Fields field) {
16774
      if (field == null) {
16775
        throw new IllegalArgumentException();
16776
      }
16777
 
16778
      switch (field) {
16779
      case SUCCESS:
16780
        return isSetSuccess();
16781
      case PE:
16782
        return isSetPe();
16783
      }
16784
      throw new IllegalStateException();
16785
    }
16786
 
16787
    @Override
16788
    public boolean equals(Object that) {
16789
      if (that == null)
16790
        return false;
16791
      if (that instanceof refundPayment_result)
16792
        return this.equals((refundPayment_result)that);
16793
      return false;
16794
    }
16795
 
16796
    public boolean equals(refundPayment_result that) {
16797
      if (that == null)
16798
        return false;
16799
 
16800
      boolean this_present_success = true;
16801
      boolean that_present_success = true;
16802
      if (this_present_success || that_present_success) {
16803
        if (!(this_present_success && that_present_success))
16804
          return false;
16805
        if (this.success != that.success)
16806
          return false;
16807
      }
16808
 
16809
      boolean this_present_pe = true && this.isSetPe();
16810
      boolean that_present_pe = true && that.isSetPe();
16811
      if (this_present_pe || that_present_pe) {
16812
        if (!(this_present_pe && that_present_pe))
16813
          return false;
16814
        if (!this.pe.equals(that.pe))
16815
          return false;
16816
      }
16817
 
16818
      return true;
16819
    }
16820
 
16821
    @Override
16822
    public int hashCode() {
16823
      return 0;
16824
    }
16825
 
16826
    public int compareTo(refundPayment_result other) {
16827
      if (!getClass().equals(other.getClass())) {
16828
        return getClass().getName().compareTo(other.getClass().getName());
16829
      }
16830
 
16831
      int lastComparison = 0;
16832
      refundPayment_result typedOther = (refundPayment_result)other;
16833
 
16834
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16835
      if (lastComparison != 0) {
16836
        return lastComparison;
16837
      }
16838
      if (isSetSuccess()) {
16839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16840
        if (lastComparison != 0) {
16841
          return lastComparison;
16842
        }
16843
      }
16844
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
16845
      if (lastComparison != 0) {
16846
        return lastComparison;
16847
      }
16848
      if (isSetPe()) {
16849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
16850
        if (lastComparison != 0) {
16851
          return lastComparison;
16852
        }
16853
      }
16854
      return 0;
16855
    }
16856
 
16857
    public _Fields fieldForId(int fieldId) {
16858
      return _Fields.findByThriftId(fieldId);
16859
    }
16860
 
16861
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16862
      org.apache.thrift.protocol.TField field;
16863
      iprot.readStructBegin();
16864
      while (true)
16865
      {
16866
        field = iprot.readFieldBegin();
16867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16868
          break;
16869
        }
16870
        switch (field.id) {
16871
          case 0: // SUCCESS
16872
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16873
              this.success = iprot.readBool();
16874
              setSuccessIsSet(true);
16875
            } else { 
16876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16877
            }
16878
            break;
16879
          case 1: // PE
16880
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16881
              this.pe = new PaymentException();
16882
              this.pe.read(iprot);
16883
            } else { 
16884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16885
            }
16886
            break;
16887
          default:
16888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16889
        }
16890
        iprot.readFieldEnd();
16891
      }
16892
      iprot.readStructEnd();
16893
      validate();
16894
    }
16895
 
16896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16897
      oprot.writeStructBegin(STRUCT_DESC);
16898
 
16899
      if (this.isSetSuccess()) {
16900
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16901
        oprot.writeBool(this.success);
16902
        oprot.writeFieldEnd();
16903
      } else if (this.isSetPe()) {
16904
        oprot.writeFieldBegin(PE_FIELD_DESC);
16905
        this.pe.write(oprot);
16906
        oprot.writeFieldEnd();
16907
      }
16908
      oprot.writeFieldStop();
16909
      oprot.writeStructEnd();
16910
    }
16911
 
16912
    @Override
16913
    public String toString() {
16914
      StringBuilder sb = new StringBuilder("refundPayment_result(");
16915
      boolean first = true;
16916
 
16917
      sb.append("success:");
16918
      sb.append(this.success);
16919
      first = false;
16920
      if (!first) sb.append(", ");
16921
      sb.append("pe:");
16922
      if (this.pe == null) {
16923
        sb.append("null");
16924
      } else {
16925
        sb.append(this.pe);
16926
      }
16927
      first = false;
16928
      sb.append(")");
16929
      return sb.toString();
16930
    }
16931
 
16932
    public void validate() throws org.apache.thrift.TException {
16933
      // check for required fields
16934
    }
16935
 
16936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16937
      try {
16938
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16939
      } catch (org.apache.thrift.TException te) {
16940
        throw new java.io.IOException(te);
16941
      }
16942
    }
16943
 
16944
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16945
      try {
16946
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16947
      } catch (org.apache.thrift.TException te) {
16948
        throw new java.io.IOException(te);
16949
      }
16950
    }
16951
 
16952
  }
16953
 
3956 chandransh 16954
  public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable   {
16955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
16956
 
16957
    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);
16958
    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);
16959
    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);
16960
    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);
16961
    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);
16962
 
16963
    private long merchantTxnId; // required
16964
    private double amount; // required
16965
    private String xferBy; // required
16966
    private String xferTxnId; // required
16967
    private long xferDate; // required
16968
 
16969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16970
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16971
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
16972
      AMOUNT((short)2, "amount"),
16973
      XFER_BY((short)3, "xferBy"),
16974
      XFER_TXN_ID((short)4, "xferTxnId"),
16975
      XFER_DATE((short)5, "xferDate");
16976
 
16977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16978
 
16979
      static {
16980
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16981
          byName.put(field.getFieldName(), field);
16982
        }
16983
      }
16984
 
16985
      /**
16986
       * Find the _Fields constant that matches fieldId, or null if its not found.
16987
       */
16988
      public static _Fields findByThriftId(int fieldId) {
16989
        switch(fieldId) {
16990
          case 1: // MERCHANT_TXN_ID
16991
            return MERCHANT_TXN_ID;
16992
          case 2: // AMOUNT
16993
            return AMOUNT;
16994
          case 3: // XFER_BY
16995
            return XFER_BY;
16996
          case 4: // XFER_TXN_ID
16997
            return XFER_TXN_ID;
16998
          case 5: // XFER_DATE
16999
            return XFER_DATE;
17000
          default:
17001
            return null;
17002
        }
17003
      }
17004
 
17005
      /**
17006
       * Find the _Fields constant that matches fieldId, throwing an exception
17007
       * if it is not found.
17008
       */
17009
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17010
        _Fields fields = findByThriftId(fieldId);
17011
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17012
        return fields;
17013
      }
17014
 
17015
      /**
17016
       * Find the _Fields constant that matches name, or null if its not found.
17017
       */
17018
      public static _Fields findByName(String name) {
17019
        return byName.get(name);
17020
      }
17021
 
17022
      private final short _thriftId;
17023
      private final String _fieldName;
17024
 
17025
      _Fields(short thriftId, String fieldName) {
17026
        _thriftId = thriftId;
17027
        _fieldName = fieldName;
17028
      }
17029
 
17030
      public short getThriftFieldId() {
17031
        return _thriftId;
17032
      }
17033
 
17034
      public String getFieldName() {
17035
        return _fieldName;
17036
      }
17037
    }
17038
 
17039
    // isset id assignments
17040
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
17041
    private static final int __AMOUNT_ISSET_ID = 1;
17042
    private static final int __XFERDATE_ISSET_ID = 2;
17043
    private BitSet __isset_bit_vector = new BitSet(3);
17044
 
17045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17046
    static {
17047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17048
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17050
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
17052
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17054
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17056
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17057
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
17060
    }
17061
 
17062
    public partiallyCapturePayment_args() {
17063
    }
17064
 
17065
    public partiallyCapturePayment_args(
17066
      long merchantTxnId,
17067
      double amount,
17068
      String xferBy,
17069
      String xferTxnId,
17070
      long xferDate)
17071
    {
17072
      this();
17073
      this.merchantTxnId = merchantTxnId;
17074
      setMerchantTxnIdIsSet(true);
17075
      this.amount = amount;
17076
      setAmountIsSet(true);
17077
      this.xferBy = xferBy;
17078
      this.xferTxnId = xferTxnId;
17079
      this.xferDate = xferDate;
17080
      setXferDateIsSet(true);
17081
    }
17082
 
17083
    /**
17084
     * Performs a deep copy on <i>other</i>.
17085
     */
17086
    public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
17087
      __isset_bit_vector.clear();
17088
      __isset_bit_vector.or(other.__isset_bit_vector);
17089
      this.merchantTxnId = other.merchantTxnId;
17090
      this.amount = other.amount;
17091
      if (other.isSetXferBy()) {
17092
        this.xferBy = other.xferBy;
17093
      }
17094
      if (other.isSetXferTxnId()) {
17095
        this.xferTxnId = other.xferTxnId;
17096
      }
17097
      this.xferDate = other.xferDate;
17098
    }
17099
 
17100
    public partiallyCapturePayment_args deepCopy() {
17101
      return new partiallyCapturePayment_args(this);
17102
    }
17103
 
17104
    @Override
17105
    public void clear() {
17106
      setMerchantTxnIdIsSet(false);
17107
      this.merchantTxnId = 0;
17108
      setAmountIsSet(false);
17109
      this.amount = 0.0;
17110
      this.xferBy = null;
17111
      this.xferTxnId = null;
17112
      setXferDateIsSet(false);
17113
      this.xferDate = 0;
17114
    }
17115
 
17116
    public long getMerchantTxnId() {
17117
      return this.merchantTxnId;
17118
    }
17119
 
17120
    public void setMerchantTxnId(long merchantTxnId) {
17121
      this.merchantTxnId = merchantTxnId;
17122
      setMerchantTxnIdIsSet(true);
17123
    }
17124
 
17125
    public void unsetMerchantTxnId() {
17126
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
17127
    }
17128
 
17129
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
17130
    public boolean isSetMerchantTxnId() {
17131
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
17132
    }
17133
 
17134
    public void setMerchantTxnIdIsSet(boolean value) {
17135
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
17136
    }
17137
 
17138
    public double getAmount() {
17139
      return this.amount;
17140
    }
17141
 
17142
    public void setAmount(double amount) {
17143
      this.amount = amount;
17144
      setAmountIsSet(true);
17145
    }
17146
 
17147
    public void unsetAmount() {
17148
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
17149
    }
17150
 
17151
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
17152
    public boolean isSetAmount() {
17153
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
17154
    }
17155
 
17156
    public void setAmountIsSet(boolean value) {
17157
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
17158
    }
17159
 
17160
    public String getXferBy() {
17161
      return this.xferBy;
17162
    }
17163
 
17164
    public void setXferBy(String xferBy) {
17165
      this.xferBy = xferBy;
17166
    }
17167
 
17168
    public void unsetXferBy() {
17169
      this.xferBy = null;
17170
    }
17171
 
17172
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
17173
    public boolean isSetXferBy() {
17174
      return this.xferBy != null;
17175
    }
17176
 
17177
    public void setXferByIsSet(boolean value) {
17178
      if (!value) {
17179
        this.xferBy = null;
17180
      }
17181
    }
17182
 
17183
    public String getXferTxnId() {
17184
      return this.xferTxnId;
17185
    }
17186
 
17187
    public void setXferTxnId(String xferTxnId) {
17188
      this.xferTxnId = xferTxnId;
17189
    }
17190
 
17191
    public void unsetXferTxnId() {
17192
      this.xferTxnId = null;
17193
    }
17194
 
17195
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
17196
    public boolean isSetXferTxnId() {
17197
      return this.xferTxnId != null;
17198
    }
17199
 
17200
    public void setXferTxnIdIsSet(boolean value) {
17201
      if (!value) {
17202
        this.xferTxnId = null;
17203
      }
17204
    }
17205
 
17206
    public long getXferDate() {
17207
      return this.xferDate;
17208
    }
17209
 
17210
    public void setXferDate(long xferDate) {
17211
      this.xferDate = xferDate;
17212
      setXferDateIsSet(true);
17213
    }
17214
 
17215
    public void unsetXferDate() {
17216
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
17217
    }
17218
 
17219
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
17220
    public boolean isSetXferDate() {
17221
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
17222
    }
17223
 
17224
    public void setXferDateIsSet(boolean value) {
17225
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
17226
    }
17227
 
17228
    public void setFieldValue(_Fields field, Object value) {
17229
      switch (field) {
17230
      case MERCHANT_TXN_ID:
17231
        if (value == null) {
17232
          unsetMerchantTxnId();
17233
        } else {
17234
          setMerchantTxnId((Long)value);
17235
        }
17236
        break;
17237
 
17238
      case AMOUNT:
17239
        if (value == null) {
17240
          unsetAmount();
17241
        } else {
17242
          setAmount((Double)value);
17243
        }
17244
        break;
17245
 
17246
      case XFER_BY:
17247
        if (value == null) {
17248
          unsetXferBy();
17249
        } else {
17250
          setXferBy((String)value);
17251
        }
17252
        break;
17253
 
17254
      case XFER_TXN_ID:
17255
        if (value == null) {
17256
          unsetXferTxnId();
17257
        } else {
17258
          setXferTxnId((String)value);
17259
        }
17260
        break;
17261
 
17262
      case XFER_DATE:
17263
        if (value == null) {
17264
          unsetXferDate();
17265
        } else {
17266
          setXferDate((Long)value);
17267
        }
17268
        break;
17269
 
17270
      }
17271
    }
17272
 
17273
    public Object getFieldValue(_Fields field) {
17274
      switch (field) {
17275
      case MERCHANT_TXN_ID:
17276
        return Long.valueOf(getMerchantTxnId());
17277
 
17278
      case AMOUNT:
17279
        return Double.valueOf(getAmount());
17280
 
17281
      case XFER_BY:
17282
        return getXferBy();
17283
 
17284
      case XFER_TXN_ID:
17285
        return getXferTxnId();
17286
 
17287
      case XFER_DATE:
17288
        return Long.valueOf(getXferDate());
17289
 
17290
      }
17291
      throw new IllegalStateException();
17292
    }
17293
 
17294
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17295
    public boolean isSet(_Fields field) {
17296
      if (field == null) {
17297
        throw new IllegalArgumentException();
17298
      }
17299
 
17300
      switch (field) {
17301
      case MERCHANT_TXN_ID:
17302
        return isSetMerchantTxnId();
17303
      case AMOUNT:
17304
        return isSetAmount();
17305
      case XFER_BY:
17306
        return isSetXferBy();
17307
      case XFER_TXN_ID:
17308
        return isSetXferTxnId();
17309
      case XFER_DATE:
17310
        return isSetXferDate();
17311
      }
17312
      throw new IllegalStateException();
17313
    }
17314
 
17315
    @Override
17316
    public boolean equals(Object that) {
17317
      if (that == null)
17318
        return false;
17319
      if (that instanceof partiallyCapturePayment_args)
17320
        return this.equals((partiallyCapturePayment_args)that);
17321
      return false;
17322
    }
17323
 
17324
    public boolean equals(partiallyCapturePayment_args that) {
17325
      if (that == null)
17326
        return false;
17327
 
17328
      boolean this_present_merchantTxnId = true;
17329
      boolean that_present_merchantTxnId = true;
17330
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
17331
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
17332
          return false;
17333
        if (this.merchantTxnId != that.merchantTxnId)
17334
          return false;
17335
      }
17336
 
17337
      boolean this_present_amount = true;
17338
      boolean that_present_amount = true;
17339
      if (this_present_amount || that_present_amount) {
17340
        if (!(this_present_amount && that_present_amount))
17341
          return false;
17342
        if (this.amount != that.amount)
17343
          return false;
17344
      }
17345
 
17346
      boolean this_present_xferBy = true && this.isSetXferBy();
17347
      boolean that_present_xferBy = true && that.isSetXferBy();
17348
      if (this_present_xferBy || that_present_xferBy) {
17349
        if (!(this_present_xferBy && that_present_xferBy))
17350
          return false;
17351
        if (!this.xferBy.equals(that.xferBy))
17352
          return false;
17353
      }
17354
 
17355
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
17356
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
17357
      if (this_present_xferTxnId || that_present_xferTxnId) {
17358
        if (!(this_present_xferTxnId && that_present_xferTxnId))
17359
          return false;
17360
        if (!this.xferTxnId.equals(that.xferTxnId))
17361
          return false;
17362
      }
17363
 
17364
      boolean this_present_xferDate = true;
17365
      boolean that_present_xferDate = true;
17366
      if (this_present_xferDate || that_present_xferDate) {
17367
        if (!(this_present_xferDate && that_present_xferDate))
17368
          return false;
17369
        if (this.xferDate != that.xferDate)
17370
          return false;
17371
      }
17372
 
17373
      return true;
17374
    }
17375
 
17376
    @Override
17377
    public int hashCode() {
17378
      return 0;
17379
    }
17380
 
17381
    public int compareTo(partiallyCapturePayment_args other) {
17382
      if (!getClass().equals(other.getClass())) {
17383
        return getClass().getName().compareTo(other.getClass().getName());
17384
      }
17385
 
17386
      int lastComparison = 0;
17387
      partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
17388
 
17389
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
17390
      if (lastComparison != 0) {
17391
        return lastComparison;
17392
      }
17393
      if (isSetMerchantTxnId()) {
17394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
17395
        if (lastComparison != 0) {
17396
          return lastComparison;
17397
        }
17398
      }
17399
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
17400
      if (lastComparison != 0) {
17401
        return lastComparison;
17402
      }
17403
      if (isSetAmount()) {
17404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
17405
        if (lastComparison != 0) {
17406
          return lastComparison;
17407
        }
17408
      }
17409
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
17410
      if (lastComparison != 0) {
17411
        return lastComparison;
17412
      }
17413
      if (isSetXferBy()) {
17414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
17415
        if (lastComparison != 0) {
17416
          return lastComparison;
17417
        }
17418
      }
17419
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
17420
      if (lastComparison != 0) {
17421
        return lastComparison;
17422
      }
17423
      if (isSetXferTxnId()) {
17424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
17425
        if (lastComparison != 0) {
17426
          return lastComparison;
17427
        }
17428
      }
17429
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
17430
      if (lastComparison != 0) {
17431
        return lastComparison;
17432
      }
17433
      if (isSetXferDate()) {
17434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
17435
        if (lastComparison != 0) {
17436
          return lastComparison;
17437
        }
17438
      }
17439
      return 0;
17440
    }
17441
 
17442
    public _Fields fieldForId(int fieldId) {
17443
      return _Fields.findByThriftId(fieldId);
17444
    }
17445
 
17446
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17447
      org.apache.thrift.protocol.TField field;
17448
      iprot.readStructBegin();
17449
      while (true)
17450
      {
17451
        field = iprot.readFieldBegin();
17452
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17453
          break;
17454
        }
17455
        switch (field.id) {
17456
          case 1: // MERCHANT_TXN_ID
17457
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17458
              this.merchantTxnId = iprot.readI64();
17459
              setMerchantTxnIdIsSet(true);
17460
            } else { 
17461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17462
            }
17463
            break;
17464
          case 2: // AMOUNT
17465
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
17466
              this.amount = iprot.readDouble();
17467
              setAmountIsSet(true);
17468
            } else { 
17469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17470
            }
17471
            break;
17472
          case 3: // XFER_BY
17473
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17474
              this.xferBy = iprot.readString();
17475
            } else { 
17476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17477
            }
17478
            break;
17479
          case 4: // XFER_TXN_ID
17480
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17481
              this.xferTxnId = iprot.readString();
17482
            } else { 
17483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17484
            }
17485
            break;
17486
          case 5: // XFER_DATE
17487
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17488
              this.xferDate = iprot.readI64();
17489
              setXferDateIsSet(true);
17490
            } else { 
17491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17492
            }
17493
            break;
17494
          default:
17495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17496
        }
17497
        iprot.readFieldEnd();
17498
      }
17499
      iprot.readStructEnd();
17500
      validate();
17501
    }
17502
 
17503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17504
      validate();
17505
 
17506
      oprot.writeStructBegin(STRUCT_DESC);
17507
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
17508
      oprot.writeI64(this.merchantTxnId);
17509
      oprot.writeFieldEnd();
17510
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
17511
      oprot.writeDouble(this.amount);
17512
      oprot.writeFieldEnd();
17513
      if (this.xferBy != null) {
17514
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
17515
        oprot.writeString(this.xferBy);
17516
        oprot.writeFieldEnd();
17517
      }
17518
      if (this.xferTxnId != null) {
17519
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
17520
        oprot.writeString(this.xferTxnId);
17521
        oprot.writeFieldEnd();
17522
      }
17523
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
17524
      oprot.writeI64(this.xferDate);
17525
      oprot.writeFieldEnd();
17526
      oprot.writeFieldStop();
17527
      oprot.writeStructEnd();
17528
    }
17529
 
17530
    @Override
17531
    public String toString() {
17532
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
17533
      boolean first = true;
17534
 
17535
      sb.append("merchantTxnId:");
17536
      sb.append(this.merchantTxnId);
17537
      first = false;
17538
      if (!first) sb.append(", ");
17539
      sb.append("amount:");
17540
      sb.append(this.amount);
17541
      first = false;
17542
      if (!first) sb.append(", ");
17543
      sb.append("xferBy:");
17544
      if (this.xferBy == null) {
17545
        sb.append("null");
17546
      } else {
17547
        sb.append(this.xferBy);
17548
      }
17549
      first = false;
17550
      if (!first) sb.append(", ");
17551
      sb.append("xferTxnId:");
17552
      if (this.xferTxnId == null) {
17553
        sb.append("null");
17554
      } else {
17555
        sb.append(this.xferTxnId);
17556
      }
17557
      first = false;
17558
      if (!first) sb.append(", ");
17559
      sb.append("xferDate:");
17560
      sb.append(this.xferDate);
17561
      first = false;
17562
      sb.append(")");
17563
      return sb.toString();
17564
    }
17565
 
17566
    public void validate() throws org.apache.thrift.TException {
17567
      // check for required fields
17568
    }
17569
 
17570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17571
      try {
17572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17573
      } catch (org.apache.thrift.TException te) {
17574
        throw new java.io.IOException(te);
17575
      }
17576
    }
17577
 
17578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17579
      try {
17580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17581
      } catch (org.apache.thrift.TException te) {
17582
        throw new java.io.IOException(te);
17583
      }
17584
    }
17585
 
17586
  }
17587
 
17588
  public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable   {
17589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
17590
 
17591
    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);
17592
    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);
17593
 
17594
    private boolean success; // required
17595
    private PaymentException pe; // required
17596
 
17597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17599
      SUCCESS((short)0, "success"),
17600
      PE((short)1, "pe");
17601
 
17602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17603
 
17604
      static {
17605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17606
          byName.put(field.getFieldName(), field);
17607
        }
17608
      }
17609
 
17610
      /**
17611
       * Find the _Fields constant that matches fieldId, or null if its not found.
17612
       */
17613
      public static _Fields findByThriftId(int fieldId) {
17614
        switch(fieldId) {
17615
          case 0: // SUCCESS
17616
            return SUCCESS;
17617
          case 1: // PE
17618
            return PE;
17619
          default:
17620
            return null;
17621
        }
17622
      }
17623
 
17624
      /**
17625
       * Find the _Fields constant that matches fieldId, throwing an exception
17626
       * if it is not found.
17627
       */
17628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17629
        _Fields fields = findByThriftId(fieldId);
17630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17631
        return fields;
17632
      }
17633
 
17634
      /**
17635
       * Find the _Fields constant that matches name, or null if its not found.
17636
       */
17637
      public static _Fields findByName(String name) {
17638
        return byName.get(name);
17639
      }
17640
 
17641
      private final short _thriftId;
17642
      private final String _fieldName;
17643
 
17644
      _Fields(short thriftId, String fieldName) {
17645
        _thriftId = thriftId;
17646
        _fieldName = fieldName;
17647
      }
17648
 
17649
      public short getThriftFieldId() {
17650
        return _thriftId;
17651
      }
17652
 
17653
      public String getFieldName() {
17654
        return _fieldName;
17655
      }
17656
    }
17657
 
17658
    // isset id assignments
17659
    private static final int __SUCCESS_ISSET_ID = 0;
17660
    private BitSet __isset_bit_vector = new BitSet(1);
17661
 
17662
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17663
    static {
17664
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17665
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17666
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17667
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17668
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17669
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17670
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
17671
    }
17672
 
17673
    public partiallyCapturePayment_result() {
17674
    }
17675
 
17676
    public partiallyCapturePayment_result(
17677
      boolean success,
17678
      PaymentException pe)
17679
    {
17680
      this();
17681
      this.success = success;
17682
      setSuccessIsSet(true);
17683
      this.pe = pe;
17684
    }
17685
 
17686
    /**
17687
     * Performs a deep copy on <i>other</i>.
17688
     */
17689
    public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
17690
      __isset_bit_vector.clear();
17691
      __isset_bit_vector.or(other.__isset_bit_vector);
17692
      this.success = other.success;
17693
      if (other.isSetPe()) {
17694
        this.pe = new PaymentException(other.pe);
17695
      }
17696
    }
17697
 
17698
    public partiallyCapturePayment_result deepCopy() {
17699
      return new partiallyCapturePayment_result(this);
17700
    }
17701
 
17702
    @Override
17703
    public void clear() {
17704
      setSuccessIsSet(false);
17705
      this.success = false;
17706
      this.pe = null;
17707
    }
17708
 
17709
    public boolean isSuccess() {
17710
      return this.success;
17711
    }
17712
 
17713
    public void setSuccess(boolean success) {
17714
      this.success = success;
17715
      setSuccessIsSet(true);
17716
    }
17717
 
17718
    public void unsetSuccess() {
17719
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17720
    }
17721
 
17722
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17723
    public boolean isSetSuccess() {
17724
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17725
    }
17726
 
17727
    public void setSuccessIsSet(boolean value) {
17728
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17729
    }
17730
 
17731
    public PaymentException getPe() {
17732
      return this.pe;
17733
    }
17734
 
17735
    public void setPe(PaymentException pe) {
17736
      this.pe = pe;
17737
    }
17738
 
17739
    public void unsetPe() {
17740
      this.pe = null;
17741
    }
17742
 
17743
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
17744
    public boolean isSetPe() {
17745
      return this.pe != null;
17746
    }
17747
 
17748
    public void setPeIsSet(boolean value) {
17749
      if (!value) {
17750
        this.pe = null;
17751
      }
17752
    }
17753
 
17754
    public void setFieldValue(_Fields field, Object value) {
17755
      switch (field) {
17756
      case SUCCESS:
17757
        if (value == null) {
17758
          unsetSuccess();
17759
        } else {
17760
          setSuccess((Boolean)value);
17761
        }
17762
        break;
17763
 
17764
      case PE:
17765
        if (value == null) {
17766
          unsetPe();
17767
        } else {
17768
          setPe((PaymentException)value);
17769
        }
17770
        break;
17771
 
17772
      }
17773
    }
17774
 
17775
    public Object getFieldValue(_Fields field) {
17776
      switch (field) {
17777
      case SUCCESS:
17778
        return Boolean.valueOf(isSuccess());
17779
 
17780
      case PE:
17781
        return getPe();
17782
 
17783
      }
17784
      throw new IllegalStateException();
17785
    }
17786
 
17787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17788
    public boolean isSet(_Fields field) {
17789
      if (field == null) {
17790
        throw new IllegalArgumentException();
17791
      }
17792
 
17793
      switch (field) {
17794
      case SUCCESS:
17795
        return isSetSuccess();
17796
      case PE:
17797
        return isSetPe();
17798
      }
17799
      throw new IllegalStateException();
17800
    }
17801
 
17802
    @Override
17803
    public boolean equals(Object that) {
17804
      if (that == null)
17805
        return false;
17806
      if (that instanceof partiallyCapturePayment_result)
17807
        return this.equals((partiallyCapturePayment_result)that);
17808
      return false;
17809
    }
17810
 
17811
    public boolean equals(partiallyCapturePayment_result that) {
17812
      if (that == null)
17813
        return false;
17814
 
17815
      boolean this_present_success = true;
17816
      boolean that_present_success = true;
17817
      if (this_present_success || that_present_success) {
17818
        if (!(this_present_success && that_present_success))
17819
          return false;
17820
        if (this.success != that.success)
17821
          return false;
17822
      }
17823
 
17824
      boolean this_present_pe = true && this.isSetPe();
17825
      boolean that_present_pe = true && that.isSetPe();
17826
      if (this_present_pe || that_present_pe) {
17827
        if (!(this_present_pe && that_present_pe))
17828
          return false;
17829
        if (!this.pe.equals(that.pe))
17830
          return false;
17831
      }
17832
 
17833
      return true;
17834
    }
17835
 
17836
    @Override
17837
    public int hashCode() {
17838
      return 0;
17839
    }
17840
 
17841
    public int compareTo(partiallyCapturePayment_result other) {
17842
      if (!getClass().equals(other.getClass())) {
17843
        return getClass().getName().compareTo(other.getClass().getName());
17844
      }
17845
 
17846
      int lastComparison = 0;
17847
      partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
17848
 
17849
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17850
      if (lastComparison != 0) {
17851
        return lastComparison;
17852
      }
17853
      if (isSetSuccess()) {
17854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17855
        if (lastComparison != 0) {
17856
          return lastComparison;
17857
        }
17858
      }
17859
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
17860
      if (lastComparison != 0) {
17861
        return lastComparison;
17862
      }
17863
      if (isSetPe()) {
17864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
17865
        if (lastComparison != 0) {
17866
          return lastComparison;
17867
        }
17868
      }
17869
      return 0;
17870
    }
17871
 
17872
    public _Fields fieldForId(int fieldId) {
17873
      return _Fields.findByThriftId(fieldId);
17874
    }
17875
 
17876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17877
      org.apache.thrift.protocol.TField field;
17878
      iprot.readStructBegin();
17879
      while (true)
17880
      {
17881
        field = iprot.readFieldBegin();
17882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17883
          break;
17884
        }
17885
        switch (field.id) {
17886
          case 0: // SUCCESS
17887
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17888
              this.success = iprot.readBool();
17889
              setSuccessIsSet(true);
17890
            } else { 
17891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17892
            }
17893
            break;
17894
          case 1: // PE
17895
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17896
              this.pe = new PaymentException();
17897
              this.pe.read(iprot);
17898
            } else { 
17899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17900
            }
17901
            break;
17902
          default:
17903
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17904
        }
17905
        iprot.readFieldEnd();
17906
      }
17907
      iprot.readStructEnd();
17908
      validate();
17909
    }
17910
 
17911
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17912
      oprot.writeStructBegin(STRUCT_DESC);
17913
 
17914
      if (this.isSetSuccess()) {
17915
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17916
        oprot.writeBool(this.success);
17917
        oprot.writeFieldEnd();
17918
      } else if (this.isSetPe()) {
17919
        oprot.writeFieldBegin(PE_FIELD_DESC);
17920
        this.pe.write(oprot);
17921
        oprot.writeFieldEnd();
17922
      }
17923
      oprot.writeFieldStop();
17924
      oprot.writeStructEnd();
17925
    }
17926
 
17927
    @Override
17928
    public String toString() {
17929
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
17930
      boolean first = true;
17931
 
17932
      sb.append("success:");
17933
      sb.append(this.success);
17934
      first = false;
17935
      if (!first) sb.append(", ");
17936
      sb.append("pe:");
17937
      if (this.pe == null) {
17938
        sb.append("null");
17939
      } else {
17940
        sb.append(this.pe);
17941
      }
17942
      first = false;
17943
      sb.append(")");
17944
      return sb.toString();
17945
    }
17946
 
17947
    public void validate() throws org.apache.thrift.TException {
17948
      // check for required fields
17949
    }
17950
 
17951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17952
      try {
17953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17954
      } catch (org.apache.thrift.TException te) {
17955
        throw new java.io.IOException(te);
17956
      }
17957
    }
17958
 
17959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17960
      try {
17961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17962
      } catch (org.apache.thrift.TException te) {
17963
        throw new java.io.IOException(te);
17964
      }
17965
    }
17966
 
17967
  }
17968
 
4008 mandeep.dh 17969
  public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
17970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
17971
 
17972
    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);
17973
 
17974
    private ExtraPaymentProcessingType category; // required
17975
 
17976
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17977
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17978
      /**
17979
       * 
17980
       * @see ExtraPaymentProcessingType
17981
       */
17982
      CATEGORY((short)1, "category");
17983
 
17984
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17985
 
17986
      static {
17987
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17988
          byName.put(field.getFieldName(), field);
17989
        }
17990
      }
17991
 
17992
      /**
17993
       * Find the _Fields constant that matches fieldId, or null if its not found.
17994
       */
17995
      public static _Fields findByThriftId(int fieldId) {
17996
        switch(fieldId) {
17997
          case 1: // CATEGORY
17998
            return CATEGORY;
17999
          default:
18000
            return null;
18001
        }
18002
      }
18003
 
18004
      /**
18005
       * Find the _Fields constant that matches fieldId, throwing an exception
18006
       * if it is not found.
18007
       */
18008
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18009
        _Fields fields = findByThriftId(fieldId);
18010
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18011
        return fields;
18012
      }
18013
 
18014
      /**
18015
       * Find the _Fields constant that matches name, or null if its not found.
18016
       */
18017
      public static _Fields findByName(String name) {
18018
        return byName.get(name);
18019
      }
18020
 
18021
      private final short _thriftId;
18022
      private final String _fieldName;
18023
 
18024
      _Fields(short thriftId, String fieldName) {
18025
        _thriftId = thriftId;
18026
        _fieldName = fieldName;
18027
      }
18028
 
18029
      public short getThriftFieldId() {
18030
        return _thriftId;
18031
      }
18032
 
18033
      public String getFieldName() {
18034
        return _fieldName;
18035
      }
18036
    }
18037
 
18038
    // isset id assignments
18039
 
18040
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18041
    static {
18042
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18043
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18044
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
18045
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18046
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
18047
    }
18048
 
18049
    public getPaymentsRequiringExtraProcessing_args() {
18050
    }
18051
 
18052
    public getPaymentsRequiringExtraProcessing_args(
18053
      ExtraPaymentProcessingType category)
18054
    {
18055
      this();
18056
      this.category = category;
18057
    }
18058
 
18059
    /**
18060
     * Performs a deep copy on <i>other</i>.
18061
     */
18062
    public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
18063
      if (other.isSetCategory()) {
18064
        this.category = other.category;
18065
      }
18066
    }
18067
 
18068
    public getPaymentsRequiringExtraProcessing_args deepCopy() {
18069
      return new getPaymentsRequiringExtraProcessing_args(this);
18070
    }
18071
 
18072
    @Override
18073
    public void clear() {
18074
      this.category = null;
18075
    }
18076
 
18077
    /**
18078
     * 
18079
     * @see ExtraPaymentProcessingType
18080
     */
18081
    public ExtraPaymentProcessingType getCategory() {
18082
      return this.category;
18083
    }
18084
 
18085
    /**
18086
     * 
18087
     * @see ExtraPaymentProcessingType
18088
     */
18089
    public void setCategory(ExtraPaymentProcessingType category) {
18090
      this.category = category;
18091
    }
18092
 
18093
    public void unsetCategory() {
18094
      this.category = null;
18095
    }
18096
 
18097
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
18098
    public boolean isSetCategory() {
18099
      return this.category != null;
18100
    }
18101
 
18102
    public void setCategoryIsSet(boolean value) {
18103
      if (!value) {
18104
        this.category = null;
18105
      }
18106
    }
18107
 
18108
    public void setFieldValue(_Fields field, Object value) {
18109
      switch (field) {
18110
      case CATEGORY:
18111
        if (value == null) {
18112
          unsetCategory();
18113
        } else {
18114
          setCategory((ExtraPaymentProcessingType)value);
18115
        }
18116
        break;
18117
 
18118
      }
18119
    }
18120
 
18121
    public Object getFieldValue(_Fields field) {
18122
      switch (field) {
18123
      case CATEGORY:
18124
        return getCategory();
18125
 
18126
      }
18127
      throw new IllegalStateException();
18128
    }
18129
 
18130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18131
    public boolean isSet(_Fields field) {
18132
      if (field == null) {
18133
        throw new IllegalArgumentException();
18134
      }
18135
 
18136
      switch (field) {
18137
      case CATEGORY:
18138
        return isSetCategory();
18139
      }
18140
      throw new IllegalStateException();
18141
    }
18142
 
18143
    @Override
18144
    public boolean equals(Object that) {
18145
      if (that == null)
18146
        return false;
18147
      if (that instanceof getPaymentsRequiringExtraProcessing_args)
18148
        return this.equals((getPaymentsRequiringExtraProcessing_args)that);
18149
      return false;
18150
    }
18151
 
18152
    public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
18153
      if (that == null)
18154
        return false;
18155
 
18156
      boolean this_present_category = true && this.isSetCategory();
18157
      boolean that_present_category = true && that.isSetCategory();
18158
      if (this_present_category || that_present_category) {
18159
        if (!(this_present_category && that_present_category))
18160
          return false;
18161
        if (!this.category.equals(that.category))
18162
          return false;
18163
      }
18164
 
18165
      return true;
18166
    }
18167
 
18168
    @Override
18169
    public int hashCode() {
18170
      return 0;
18171
    }
18172
 
18173
    public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
18174
      if (!getClass().equals(other.getClass())) {
18175
        return getClass().getName().compareTo(other.getClass().getName());
18176
      }
18177
 
18178
      int lastComparison = 0;
18179
      getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
18180
 
18181
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
18182
      if (lastComparison != 0) {
18183
        return lastComparison;
18184
      }
18185
      if (isSetCategory()) {
18186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
18187
        if (lastComparison != 0) {
18188
          return lastComparison;
18189
        }
18190
      }
18191
      return 0;
18192
    }
18193
 
18194
    public _Fields fieldForId(int fieldId) {
18195
      return _Fields.findByThriftId(fieldId);
18196
    }
18197
 
18198
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18199
      org.apache.thrift.protocol.TField field;
18200
      iprot.readStructBegin();
18201
      while (true)
18202
      {
18203
        field = iprot.readFieldBegin();
18204
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18205
          break;
18206
        }
18207
        switch (field.id) {
18208
          case 1: // CATEGORY
18209
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18210
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
18211
            } else { 
18212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18213
            }
18214
            break;
18215
          default:
18216
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18217
        }
18218
        iprot.readFieldEnd();
18219
      }
18220
      iprot.readStructEnd();
18221
      validate();
18222
    }
18223
 
18224
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18225
      validate();
18226
 
18227
      oprot.writeStructBegin(STRUCT_DESC);
18228
      if (this.category != null) {
18229
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
18230
        oprot.writeI32(this.category.getValue());
18231
        oprot.writeFieldEnd();
18232
      }
18233
      oprot.writeFieldStop();
18234
      oprot.writeStructEnd();
18235
    }
18236
 
18237
    @Override
18238
    public String toString() {
18239
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
18240
      boolean first = true;
18241
 
18242
      sb.append("category:");
18243
      if (this.category == null) {
18244
        sb.append("null");
18245
      } else {
18246
        sb.append(this.category);
18247
      }
18248
      first = false;
18249
      sb.append(")");
18250
      return sb.toString();
18251
    }
18252
 
18253
    public void validate() throws org.apache.thrift.TException {
18254
      // check for required fields
18255
    }
18256
 
18257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18258
      try {
18259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18260
      } catch (org.apache.thrift.TException te) {
18261
        throw new java.io.IOException(te);
18262
      }
18263
    }
18264
 
18265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18266
      try {
18267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18268
      } catch (org.apache.thrift.TException te) {
18269
        throw new java.io.IOException(te);
18270
      }
18271
    }
18272
 
18273
  }
18274
 
18275
  public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
18276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
18277
 
18278
    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);
18279
 
18280
    private List<Long> success; // required
18281
 
18282
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18283
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18284
      SUCCESS((short)0, "success");
18285
 
18286
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18287
 
18288
      static {
18289
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18290
          byName.put(field.getFieldName(), field);
18291
        }
18292
      }
18293
 
18294
      /**
18295
       * Find the _Fields constant that matches fieldId, or null if its not found.
18296
       */
18297
      public static _Fields findByThriftId(int fieldId) {
18298
        switch(fieldId) {
18299
          case 0: // SUCCESS
18300
            return SUCCESS;
18301
          default:
18302
            return null;
18303
        }
18304
      }
18305
 
18306
      /**
18307
       * Find the _Fields constant that matches fieldId, throwing an exception
18308
       * if it is not found.
18309
       */
18310
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18311
        _Fields fields = findByThriftId(fieldId);
18312
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18313
        return fields;
18314
      }
18315
 
18316
      /**
18317
       * Find the _Fields constant that matches name, or null if its not found.
18318
       */
18319
      public static _Fields findByName(String name) {
18320
        return byName.get(name);
18321
      }
18322
 
18323
      private final short _thriftId;
18324
      private final String _fieldName;
18325
 
18326
      _Fields(short thriftId, String fieldName) {
18327
        _thriftId = thriftId;
18328
        _fieldName = fieldName;
18329
      }
18330
 
18331
      public short getThriftFieldId() {
18332
        return _thriftId;
18333
      }
18334
 
18335
      public String getFieldName() {
18336
        return _fieldName;
18337
      }
18338
    }
18339
 
18340
    // isset id assignments
18341
 
18342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18343
    static {
18344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18345
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18346
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18347
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
18348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
18350
    }
18351
 
18352
    public getPaymentsRequiringExtraProcessing_result() {
18353
    }
18354
 
18355
    public getPaymentsRequiringExtraProcessing_result(
18356
      List<Long> success)
18357
    {
18358
      this();
18359
      this.success = success;
18360
    }
18361
 
18362
    /**
18363
     * Performs a deep copy on <i>other</i>.
18364
     */
18365
    public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
18366
      if (other.isSetSuccess()) {
18367
        List<Long> __this__success = new ArrayList<Long>();
18368
        for (Long other_element : other.success) {
18369
          __this__success.add(other_element);
18370
        }
18371
        this.success = __this__success;
18372
      }
18373
    }
18374
 
18375
    public getPaymentsRequiringExtraProcessing_result deepCopy() {
18376
      return new getPaymentsRequiringExtraProcessing_result(this);
18377
    }
18378
 
18379
    @Override
18380
    public void clear() {
18381
      this.success = null;
18382
    }
18383
 
18384
    public int getSuccessSize() {
18385
      return (this.success == null) ? 0 : this.success.size();
18386
    }
18387
 
18388
    public java.util.Iterator<Long> getSuccessIterator() {
18389
      return (this.success == null) ? null : this.success.iterator();
18390
    }
18391
 
18392
    public void addToSuccess(long elem) {
18393
      if (this.success == null) {
18394
        this.success = new ArrayList<Long>();
18395
      }
18396
      this.success.add(elem);
18397
    }
18398
 
18399
    public List<Long> getSuccess() {
18400
      return this.success;
18401
    }
18402
 
18403
    public void setSuccess(List<Long> success) {
18404
      this.success = success;
18405
    }
18406
 
18407
    public void unsetSuccess() {
18408
      this.success = null;
18409
    }
18410
 
18411
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18412
    public boolean isSetSuccess() {
18413
      return this.success != null;
18414
    }
18415
 
18416
    public void setSuccessIsSet(boolean value) {
18417
      if (!value) {
18418
        this.success = null;
18419
      }
18420
    }
18421
 
18422
    public void setFieldValue(_Fields field, Object value) {
18423
      switch (field) {
18424
      case SUCCESS:
18425
        if (value == null) {
18426
          unsetSuccess();
18427
        } else {
18428
          setSuccess((List<Long>)value);
18429
        }
18430
        break;
18431
 
18432
      }
18433
    }
18434
 
18435
    public Object getFieldValue(_Fields field) {
18436
      switch (field) {
18437
      case SUCCESS:
18438
        return getSuccess();
18439
 
18440
      }
18441
      throw new IllegalStateException();
18442
    }
18443
 
18444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18445
    public boolean isSet(_Fields field) {
18446
      if (field == null) {
18447
        throw new IllegalArgumentException();
18448
      }
18449
 
18450
      switch (field) {
18451
      case SUCCESS:
18452
        return isSetSuccess();
18453
      }
18454
      throw new IllegalStateException();
18455
    }
18456
 
18457
    @Override
18458
    public boolean equals(Object that) {
18459
      if (that == null)
18460
        return false;
18461
      if (that instanceof getPaymentsRequiringExtraProcessing_result)
18462
        return this.equals((getPaymentsRequiringExtraProcessing_result)that);
18463
      return false;
18464
    }
18465
 
18466
    public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
18467
      if (that == null)
18468
        return false;
18469
 
18470
      boolean this_present_success = true && this.isSetSuccess();
18471
      boolean that_present_success = true && that.isSetSuccess();
18472
      if (this_present_success || that_present_success) {
18473
        if (!(this_present_success && that_present_success))
18474
          return false;
18475
        if (!this.success.equals(that.success))
18476
          return false;
18477
      }
18478
 
18479
      return true;
18480
    }
18481
 
18482
    @Override
18483
    public int hashCode() {
18484
      return 0;
18485
    }
18486
 
18487
    public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
18488
      if (!getClass().equals(other.getClass())) {
18489
        return getClass().getName().compareTo(other.getClass().getName());
18490
      }
18491
 
18492
      int lastComparison = 0;
18493
      getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
18494
 
18495
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18496
      if (lastComparison != 0) {
18497
        return lastComparison;
18498
      }
18499
      if (isSetSuccess()) {
18500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18501
        if (lastComparison != 0) {
18502
          return lastComparison;
18503
        }
18504
      }
18505
      return 0;
18506
    }
18507
 
18508
    public _Fields fieldForId(int fieldId) {
18509
      return _Fields.findByThriftId(fieldId);
18510
    }
18511
 
18512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18513
      org.apache.thrift.protocol.TField field;
18514
      iprot.readStructBegin();
18515
      while (true)
18516
      {
18517
        field = iprot.readFieldBegin();
18518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18519
          break;
18520
        }
18521
        switch (field.id) {
18522
          case 0: // SUCCESS
18523
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18524
              {
7049 anupam.sin 18525
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
18526
                this.success = new ArrayList<Long>(_list44.size);
18527
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
4008 mandeep.dh 18528
                {
7049 anupam.sin 18529
                  long _elem46; // required
18530
                  _elem46 = iprot.readI64();
18531
                  this.success.add(_elem46);
4008 mandeep.dh 18532
                }
18533
                iprot.readListEnd();
18534
              }
18535
            } else { 
18536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18537
            }
18538
            break;
18539
          default:
18540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18541
        }
18542
        iprot.readFieldEnd();
18543
      }
18544
      iprot.readStructEnd();
18545
      validate();
18546
    }
18547
 
18548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18549
      oprot.writeStructBegin(STRUCT_DESC);
18550
 
18551
      if (this.isSetSuccess()) {
18552
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18553
        {
18554
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7049 anupam.sin 18555
          for (long _iter47 : this.success)
4008 mandeep.dh 18556
          {
7049 anupam.sin 18557
            oprot.writeI64(_iter47);
4008 mandeep.dh 18558
          }
18559
          oprot.writeListEnd();
18560
        }
18561
        oprot.writeFieldEnd();
18562
      }
18563
      oprot.writeFieldStop();
18564
      oprot.writeStructEnd();
18565
    }
18566
 
18567
    @Override
18568
    public String toString() {
18569
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
18570
      boolean first = true;
18571
 
18572
      sb.append("success:");
18573
      if (this.success == null) {
18574
        sb.append("null");
18575
      } else {
18576
        sb.append(this.success);
18577
      }
18578
      first = false;
18579
      sb.append(")");
18580
      return sb.toString();
18581
    }
18582
 
18583
    public void validate() throws org.apache.thrift.TException {
18584
      // check for required fields
18585
    }
18586
 
18587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18588
      try {
18589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18590
      } catch (org.apache.thrift.TException te) {
18591
        throw new java.io.IOException(te);
18592
      }
18593
    }
18594
 
18595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18596
      try {
18597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18598
      } catch (org.apache.thrift.TException te) {
18599
        throw new java.io.IOException(te);
18600
      }
18601
    }
18602
 
18603
  }
18604
 
18605
  public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
18606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
18607
 
18608
    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);
18609
    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);
18610
 
18611
    private long paymentId; // required
18612
    private ExtraPaymentProcessingType category; // required
18613
 
18614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18616
      PAYMENT_ID((short)1, "paymentId"),
18617
      /**
18618
       * 
18619
       * @see ExtraPaymentProcessingType
18620
       */
18621
      CATEGORY((short)2, "category");
18622
 
18623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18624
 
18625
      static {
18626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18627
          byName.put(field.getFieldName(), field);
18628
        }
18629
      }
18630
 
18631
      /**
18632
       * Find the _Fields constant that matches fieldId, or null if its not found.
18633
       */
18634
      public static _Fields findByThriftId(int fieldId) {
18635
        switch(fieldId) {
18636
          case 1: // PAYMENT_ID
18637
            return PAYMENT_ID;
18638
          case 2: // CATEGORY
18639
            return CATEGORY;
18640
          default:
18641
            return null;
18642
        }
18643
      }
18644
 
18645
      /**
18646
       * Find the _Fields constant that matches fieldId, throwing an exception
18647
       * if it is not found.
18648
       */
18649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18650
        _Fields fields = findByThriftId(fieldId);
18651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18652
        return fields;
18653
      }
18654
 
18655
      /**
18656
       * Find the _Fields constant that matches name, or null if its not found.
18657
       */
18658
      public static _Fields findByName(String name) {
18659
        return byName.get(name);
18660
      }
18661
 
18662
      private final short _thriftId;
18663
      private final String _fieldName;
18664
 
18665
      _Fields(short thriftId, String fieldName) {
18666
        _thriftId = thriftId;
18667
        _fieldName = fieldName;
18668
      }
18669
 
18670
      public short getThriftFieldId() {
18671
        return _thriftId;
18672
      }
18673
 
18674
      public String getFieldName() {
18675
        return _fieldName;
18676
      }
18677
    }
18678
 
18679
    // isset id assignments
18680
    private static final int __PAYMENTID_ISSET_ID = 0;
18681
    private BitSet __isset_bit_vector = new BitSet(1);
18682
 
18683
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18684
    static {
18685
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18686
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18687
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18688
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18689
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
18690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
18692
    }
18693
 
18694
    public markPaymentAsProcessed_args() {
18695
    }
18696
 
18697
    public markPaymentAsProcessed_args(
18698
      long paymentId,
18699
      ExtraPaymentProcessingType category)
18700
    {
18701
      this();
18702
      this.paymentId = paymentId;
18703
      setPaymentIdIsSet(true);
18704
      this.category = category;
18705
    }
18706
 
18707
    /**
18708
     * Performs a deep copy on <i>other</i>.
18709
     */
18710
    public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
18711
      __isset_bit_vector.clear();
18712
      __isset_bit_vector.or(other.__isset_bit_vector);
18713
      this.paymentId = other.paymentId;
18714
      if (other.isSetCategory()) {
18715
        this.category = other.category;
18716
      }
18717
    }
18718
 
18719
    public markPaymentAsProcessed_args deepCopy() {
18720
      return new markPaymentAsProcessed_args(this);
18721
    }
18722
 
18723
    @Override
18724
    public void clear() {
18725
      setPaymentIdIsSet(false);
18726
      this.paymentId = 0;
18727
      this.category = null;
18728
    }
18729
 
18730
    public long getPaymentId() {
18731
      return this.paymentId;
18732
    }
18733
 
18734
    public void setPaymentId(long paymentId) {
18735
      this.paymentId = paymentId;
18736
      setPaymentIdIsSet(true);
18737
    }
18738
 
18739
    public void unsetPaymentId() {
18740
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
18741
    }
18742
 
18743
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
18744
    public boolean isSetPaymentId() {
18745
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
18746
    }
18747
 
18748
    public void setPaymentIdIsSet(boolean value) {
18749
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
18750
    }
18751
 
18752
    /**
18753
     * 
18754
     * @see ExtraPaymentProcessingType
18755
     */
18756
    public ExtraPaymentProcessingType getCategory() {
18757
      return this.category;
18758
    }
18759
 
18760
    /**
18761
     * 
18762
     * @see ExtraPaymentProcessingType
18763
     */
18764
    public void setCategory(ExtraPaymentProcessingType category) {
18765
      this.category = category;
18766
    }
18767
 
18768
    public void unsetCategory() {
18769
      this.category = null;
18770
    }
18771
 
18772
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
18773
    public boolean isSetCategory() {
18774
      return this.category != null;
18775
    }
18776
 
18777
    public void setCategoryIsSet(boolean value) {
18778
      if (!value) {
18779
        this.category = null;
18780
      }
18781
    }
18782
 
18783
    public void setFieldValue(_Fields field, Object value) {
18784
      switch (field) {
18785
      case PAYMENT_ID:
18786
        if (value == null) {
18787
          unsetPaymentId();
18788
        } else {
18789
          setPaymentId((Long)value);
18790
        }
18791
        break;
18792
 
18793
      case CATEGORY:
18794
        if (value == null) {
18795
          unsetCategory();
18796
        } else {
18797
          setCategory((ExtraPaymentProcessingType)value);
18798
        }
18799
        break;
18800
 
18801
      }
18802
    }
18803
 
18804
    public Object getFieldValue(_Fields field) {
18805
      switch (field) {
18806
      case PAYMENT_ID:
18807
        return Long.valueOf(getPaymentId());
18808
 
18809
      case CATEGORY:
18810
        return getCategory();
18811
 
18812
      }
18813
      throw new IllegalStateException();
18814
    }
18815
 
18816
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18817
    public boolean isSet(_Fields field) {
18818
      if (field == null) {
18819
        throw new IllegalArgumentException();
18820
      }
18821
 
18822
      switch (field) {
18823
      case PAYMENT_ID:
18824
        return isSetPaymentId();
18825
      case CATEGORY:
18826
        return isSetCategory();
18827
      }
18828
      throw new IllegalStateException();
18829
    }
18830
 
18831
    @Override
18832
    public boolean equals(Object that) {
18833
      if (that == null)
18834
        return false;
18835
      if (that instanceof markPaymentAsProcessed_args)
18836
        return this.equals((markPaymentAsProcessed_args)that);
18837
      return false;
18838
    }
18839
 
18840
    public boolean equals(markPaymentAsProcessed_args that) {
18841
      if (that == null)
18842
        return false;
18843
 
18844
      boolean this_present_paymentId = true;
18845
      boolean that_present_paymentId = true;
18846
      if (this_present_paymentId || that_present_paymentId) {
18847
        if (!(this_present_paymentId && that_present_paymentId))
18848
          return false;
18849
        if (this.paymentId != that.paymentId)
18850
          return false;
18851
      }
18852
 
18853
      boolean this_present_category = true && this.isSetCategory();
18854
      boolean that_present_category = true && that.isSetCategory();
18855
      if (this_present_category || that_present_category) {
18856
        if (!(this_present_category && that_present_category))
18857
          return false;
18858
        if (!this.category.equals(that.category))
18859
          return false;
18860
      }
18861
 
18862
      return true;
18863
    }
18864
 
18865
    @Override
18866
    public int hashCode() {
18867
      return 0;
18868
    }
18869
 
18870
    public int compareTo(markPaymentAsProcessed_args other) {
18871
      if (!getClass().equals(other.getClass())) {
18872
        return getClass().getName().compareTo(other.getClass().getName());
18873
      }
18874
 
18875
      int lastComparison = 0;
18876
      markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
18877
 
18878
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
18879
      if (lastComparison != 0) {
18880
        return lastComparison;
18881
      }
18882
      if (isSetPaymentId()) {
18883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
18884
        if (lastComparison != 0) {
18885
          return lastComparison;
18886
        }
18887
      }
18888
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
18889
      if (lastComparison != 0) {
18890
        return lastComparison;
18891
      }
18892
      if (isSetCategory()) {
18893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
18894
        if (lastComparison != 0) {
18895
          return lastComparison;
18896
        }
18897
      }
18898
      return 0;
18899
    }
18900
 
18901
    public _Fields fieldForId(int fieldId) {
18902
      return _Fields.findByThriftId(fieldId);
18903
    }
18904
 
18905
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18906
      org.apache.thrift.protocol.TField field;
18907
      iprot.readStructBegin();
18908
      while (true)
18909
      {
18910
        field = iprot.readFieldBegin();
18911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18912
          break;
18913
        }
18914
        switch (field.id) {
18915
          case 1: // PAYMENT_ID
18916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18917
              this.paymentId = iprot.readI64();
18918
              setPaymentIdIsSet(true);
18919
            } else { 
18920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18921
            }
18922
            break;
18923
          case 2: // CATEGORY
18924
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18925
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
18926
            } else { 
18927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18928
            }
18929
            break;
18930
          default:
18931
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18932
        }
18933
        iprot.readFieldEnd();
18934
      }
18935
      iprot.readStructEnd();
18936
      validate();
18937
    }
18938
 
18939
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18940
      validate();
18941
 
18942
      oprot.writeStructBegin(STRUCT_DESC);
18943
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
18944
      oprot.writeI64(this.paymentId);
18945
      oprot.writeFieldEnd();
18946
      if (this.category != null) {
18947
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
18948
        oprot.writeI32(this.category.getValue());
18949
        oprot.writeFieldEnd();
18950
      }
18951
      oprot.writeFieldStop();
18952
      oprot.writeStructEnd();
18953
    }
18954
 
18955
    @Override
18956
    public String toString() {
18957
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
18958
      boolean first = true;
18959
 
18960
      sb.append("paymentId:");
18961
      sb.append(this.paymentId);
18962
      first = false;
18963
      if (!first) sb.append(", ");
18964
      sb.append("category:");
18965
      if (this.category == null) {
18966
        sb.append("null");
18967
      } else {
18968
        sb.append(this.category);
18969
      }
18970
      first = false;
18971
      sb.append(")");
18972
      return sb.toString();
18973
    }
18974
 
18975
    public void validate() throws org.apache.thrift.TException {
18976
      // check for required fields
18977
    }
18978
 
18979
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18980
      try {
18981
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18982
      } catch (org.apache.thrift.TException te) {
18983
        throw new java.io.IOException(te);
18984
      }
18985
    }
18986
 
18987
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18988
      try {
18989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18990
      } catch (org.apache.thrift.TException te) {
18991
        throw new java.io.IOException(te);
18992
      }
18993
    }
18994
 
18995
  }
18996
 
18997
  public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
18998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
18999
 
19000
 
19001
 
19002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19004
;
19005
 
19006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19007
 
19008
      static {
19009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19010
          byName.put(field.getFieldName(), field);
19011
        }
19012
      }
19013
 
19014
      /**
19015
       * Find the _Fields constant that matches fieldId, or null if its not found.
19016
       */
19017
      public static _Fields findByThriftId(int fieldId) {
19018
        switch(fieldId) {
19019
          default:
19020
            return null;
19021
        }
19022
      }
19023
 
19024
      /**
19025
       * Find the _Fields constant that matches fieldId, throwing an exception
19026
       * if it is not found.
19027
       */
19028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19029
        _Fields fields = findByThriftId(fieldId);
19030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19031
        return fields;
19032
      }
19033
 
19034
      /**
19035
       * Find the _Fields constant that matches name, or null if its not found.
19036
       */
19037
      public static _Fields findByName(String name) {
19038
        return byName.get(name);
19039
      }
19040
 
19041
      private final short _thriftId;
19042
      private final String _fieldName;
19043
 
19044
      _Fields(short thriftId, String fieldName) {
19045
        _thriftId = thriftId;
19046
        _fieldName = fieldName;
19047
      }
19048
 
19049
      public short getThriftFieldId() {
19050
        return _thriftId;
19051
      }
19052
 
19053
      public String getFieldName() {
19054
        return _fieldName;
19055
      }
19056
    }
19057
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19058
    static {
19059
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
19062
    }
19063
 
19064
    public markPaymentAsProcessed_result() {
19065
    }
19066
 
19067
    /**
19068
     * Performs a deep copy on <i>other</i>.
19069
     */
19070
    public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
19071
    }
19072
 
19073
    public markPaymentAsProcessed_result deepCopy() {
19074
      return new markPaymentAsProcessed_result(this);
19075
    }
19076
 
19077
    @Override
19078
    public void clear() {
19079
    }
19080
 
19081
    public void setFieldValue(_Fields field, Object value) {
19082
      switch (field) {
19083
      }
19084
    }
19085
 
19086
    public Object getFieldValue(_Fields field) {
19087
      switch (field) {
19088
      }
19089
      throw new IllegalStateException();
19090
    }
19091
 
19092
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19093
    public boolean isSet(_Fields field) {
19094
      if (field == null) {
19095
        throw new IllegalArgumentException();
19096
      }
19097
 
19098
      switch (field) {
19099
      }
19100
      throw new IllegalStateException();
19101
    }
19102
 
19103
    @Override
19104
    public boolean equals(Object that) {
19105
      if (that == null)
19106
        return false;
19107
      if (that instanceof markPaymentAsProcessed_result)
19108
        return this.equals((markPaymentAsProcessed_result)that);
19109
      return false;
19110
    }
19111
 
19112
    public boolean equals(markPaymentAsProcessed_result that) {
19113
      if (that == null)
19114
        return false;
19115
 
19116
      return true;
19117
    }
19118
 
19119
    @Override
19120
    public int hashCode() {
19121
      return 0;
19122
    }
19123
 
19124
    public int compareTo(markPaymentAsProcessed_result other) {
19125
      if (!getClass().equals(other.getClass())) {
19126
        return getClass().getName().compareTo(other.getClass().getName());
19127
      }
19128
 
19129
      int lastComparison = 0;
19130
      markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
19131
 
19132
      return 0;
19133
    }
19134
 
19135
    public _Fields fieldForId(int fieldId) {
19136
      return _Fields.findByThriftId(fieldId);
19137
    }
19138
 
19139
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19140
      org.apache.thrift.protocol.TField field;
19141
      iprot.readStructBegin();
19142
      while (true)
19143
      {
19144
        field = iprot.readFieldBegin();
19145
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19146
          break;
19147
        }
19148
        switch (field.id) {
19149
          default:
19150
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19151
        }
19152
        iprot.readFieldEnd();
19153
      }
19154
      iprot.readStructEnd();
19155
      validate();
19156
    }
19157
 
19158
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19159
      oprot.writeStructBegin(STRUCT_DESC);
19160
 
19161
      oprot.writeFieldStop();
19162
      oprot.writeStructEnd();
19163
    }
19164
 
19165
    @Override
19166
    public String toString() {
19167
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
19168
      boolean first = true;
19169
 
19170
      sb.append(")");
19171
      return sb.toString();
19172
    }
19173
 
19174
    public void validate() throws org.apache.thrift.TException {
19175
      // check for required fields
19176
    }
19177
 
19178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19179
      try {
19180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19181
      } catch (org.apache.thrift.TException te) {
19182
        throw new java.io.IOException(te);
19183
      }
19184
    }
19185
 
19186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19187
      try {
19188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19189
      } catch (org.apache.thrift.TException te) {
19190
        throw new java.io.IOException(te);
19191
      }
19192
    }
19193
 
19194
  }
19195
 
123 ashish 19196
}